@paroicms/site-generator-plugin 0.11.0 → 0.12.0
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.
- package/gen-backend/dist/generator/fake-content-generator/content-report.js +81 -0
- package/gen-backend/dist/generator/fake-content-generator/create-database-with-fake-content.js +80 -0
- package/gen-backend/dist/generator/fake-content-generator/fill-nodels.js +115 -0
- package/gen-backend/dist/generator/fake-content-generator/fill-site-fields.js +63 -0
- package/gen-backend/dist/generator/fake-content-generator/fill-taxonomy-fields.js +57 -0
- package/gen-backend/dist/generator/site-generator/site-generator.js +1 -1
- package/gen-backend/dist/generator/site-schema-generator/create-site-schema.js +5 -0
- package/gen-backend/prompts/initial-1-analysis.md +3 -1
- package/gen-front/dist/gen-front.css +1 -1
- package/gen-front/dist/gen-front.mjs +45 -47
- package/package.json +7 -5
- package/gen-backend/dist/generator/fake-content-generator.ts/content-report.js +0 -15
- package/gen-backend/dist/generator/fake-content-generator.ts/create-database-with-fake-content.js +0 -238
- /package/gen-backend/dist/generator/{fake-content-generator.ts → fake-content-generator}/content-helpers.js +0 -0
- /package/gen-backend/dist/generator/{fake-content-generator.ts → fake-content-generator}/create-node-contents.js +0 -0
- /package/gen-backend/dist/generator/{fake-content-generator.ts → fake-content-generator}/fake-content-types.js +0 -0
- /package/gen-backend/dist/generator/{fake-content-generator.ts → fake-content-generator}/generate-fake-content.js +0 -0
- /package/gen-backend/dist/generator/{fake-content-generator.ts → fake-content-generator}/invoke-generate-fake-content.js +0 -0
|
@@ -6,7 +6,7 @@ var Wy=Object.defineProperty;var Py=(r,l,i)=>l in r?Wy(r,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 Fh;function Iy(){if(Fh)return Fl;Fh=1;var r=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function i(u,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var g in c)g!=="key"&&(f[g]=c[g])}else f=c;return c=f.ref,{$$typeof:r,type:u,key:d,ref:c!==void 0?c:null,props:f}}return Fl.Fragment=l,Fl.jsx=i,Fl.jsxs=i,Fl}var Wh;function ev(){return Wh||(Wh=1,po.exports=Iy()),po.exports}var E=ev();const ie=r=>typeof r=="string",Wl=()=>{let r,l;const i=new Promise((u,c)=>{r=u,l=c});return i.resolve=r,i.reject=l,i},Ph=r=>r==null?"":""+r,tv=(r,l,i)=>{r.forEach(u=>{l[u]&&(i[u]=l[u])})},nv=/###/g,Ih=r=>r&&r.indexOf("###")>-1?r.replace(nv,"."):r,ep=r=>!r||ie(r),ai=(r,l,i)=>{const u=ie(l)?l.split("."):l;let c=0;for(;c<u.length-1;){if(ep(r))return{};const f=Ih(u[c]);!r[f]&&i&&(r[f]=new i),Object.prototype.hasOwnProperty.call(r,f)?r=r[f]:r={},++c}return ep(r)?{}:{obj:r,k:Ih(u[c])}},tp=(r,l,i)=>{const{obj:u,k:c}=ai(r,l,Object);if(u!==void 0||l.length===1){u[c]=i;return}let f=l[l.length-1],d=l.slice(0,l.length-1),g=ai(r,d,Object);for(;g.obj===void 0&&d.length;)f=`${d[d.length-1]}.${f}`,d=d.slice(0,d.length-1),g=ai(r,d,Object),g!=null&&g.obj&&typeof g.obj[`${g.k}.${f}`]<"u"&&(g.obj=void 0);g.obj[`${g.k}.${f}`]=i},av=(r,l,i,u)=>{const{obj:c,k:f}=ai(r,l,Object);c[f]=c[f]||[],c[f].push(i)},Us=(r,l)=>{const{obj:i,k:u}=ai(r,l);if(i&&Object.prototype.hasOwnProperty.call(i,u))return i[u]},lv=(r,l,i)=>{const u=Us(r,i);return u!==void 0?u:Us(l,i)},Vp=(r,l,i)=>{for(const u in l)u!=="__proto__"&&u!=="constructor"&&(u in r?ie(r[u])||r[u]instanceof String||ie(l[u])||l[u]instanceof String?i&&(r[u]=l[u]):Vp(r[u],l[u],i):r[u]=l[u]);return r},Za=r=>r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var iv={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const sv=r=>ie(r)?r.replace(/[&<>"'\/]/g,l=>iv[l]):r;class uv{constructor(l){this.capacity=l,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(l){const i=this.regExpMap.get(l);if(i!==void 0)return i;const u=new RegExp(l);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(l,u),this.regExpQueue.push(l),u}}const rv=[" ",",","?","!",";"],ov=new uv(20),cv=(r,l,i)=>{l=l||"",i=i||"";const u=rv.filter(d=>l.indexOf(d)<0&&i.indexOf(d)<0);if(u.length===0)return!0;const c=ov.getRegExp(`(${u.map(d=>d==="?"?"\\?":d).join("|")})`);let f=!c.test(r);if(!f){const d=r.indexOf(i);d>0&&!c.test(r.substring(0,d))&&(f=!0)}return f},zo=function(r,l){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!r)return;if(r[l])return Object.prototype.hasOwnProperty.call(r,l)?r[l]:void 0;const u=l.split(i);let c=r;for(let f=0;f<u.length;){if(!c||typeof c!="object")return;let d,g="";for(let p=f;p<u.length;++p)if(p!==f&&(g+=i),g+=u[p],d=c[g],d!==void 0){if(["string","number","boolean"].indexOf(typeof d)>-1&&p<u.length-1)continue;f+=p-f+1;break}c=d}return c},Hs=r=>r==null?void 0:r.replace("_","-"),fv={type:"logger",log(r){this.output("log",r)},warn(r){this.output("warn",r)},error(r){this.output("error",r)},output(r,l){var i,u;(u=(i=console==null?void 0:console[r])==null?void 0:i.apply)==null||u.call(i,console,l)}};class Bs{constructor(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(l,i)}init(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=i.prefix||"i18next:",this.logger=l||fv,this.options=i,this.debug=i.debug}log(){for(var l=arguments.length,i=new Array(l),u=0;u<l;u++)i[u]=arguments[u];return this.forward(i,"log","",!0)}warn(){for(var l=arguments.length,i=new Array(l),u=0;u<l;u++)i[u]=arguments[u];return this.forward(i,"warn","",!0)}error(){for(var l=arguments.length,i=new Array(l),u=0;u<l;u++)i[u]=arguments[u];return this.forward(i,"error","")}deprecate(){for(var l=arguments.length,i=new Array(l),u=0;u<l;u++)i[u]=arguments[u];return this.forward(i,"warn","WARNING DEPRECATED: ",!0)}forward(l,i,u,c){return c&&!this.debug?null:(ie(l[0])&&(l[0]=`${u}${this.prefix} ${l[0]}`),this.logger[i](l))}create(l){return new Bs(this.logger,{prefix:`${this.prefix}:${l}:`,...this.options})}clone(l){return l=l||this.options,l.prefix=l.prefix||this.prefix,new Bs(this.logger,l)}}var Zt=new Bs;class Xs{constructor(){this.observers={}}on(l,i){return l.split(" ").forEach(u=>{this.observers[u]||(this.observers[u]=new Map);const c=this.observers[u].get(i)||0;this.observers[u].set(i,c+1)}),this}off(l,i){if(this.observers[l]){if(!i){delete this.observers[l];return}this.observers[l].delete(i)}}emit(l){for(var i=arguments.length,u=new Array(i>1?i-1:0),c=1;c<i;c++)u[c-1]=arguments[c];this.observers[l]&&Array.from(this.observers[l].entries()).forEach(d=>{let[g,p]=d;for(let h=0;h<p;h++)g(...u)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(d=>{let[g,p]=d;for(let h=0;h<p;h++)g.apply(g,[l,...u])})}}class np extends Xs{constructor(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=l||{},this.options=i,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 i=this.options.ns.indexOf(l);i>-1&&this.options.ns.splice(i,1)}getResource(l,i,u){var h,y;let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const f=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,d=c.ignoreJSONStructure!==void 0?c.ignoreJSONStructure:this.options.ignoreJSONStructure;let g;l.indexOf(".")>-1?g=l.split("."):(g=[l,i],u&&(Array.isArray(u)?g.push(...u):ie(u)&&f?g.push(...u.split(f)):g.push(u)));const p=Us(this.data,g);return!p&&!i&&!u&&l.indexOf(".")>-1&&(l=g[0],i=g[1],u=g.slice(2).join(".")),p||!d||!ie(u)?p:zo((y=(h=this.data)==null?void 0:h[l])==null?void 0:y[i],u,f)}addResource(l,i,u,c){let f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const d=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator;let g=[l,i];u&&(g=g.concat(d?u.split(d):u)),l.indexOf(".")>-1&&(g=l.split("."),c=i,i=g[1]),this.addNamespaces(i),tp(this.data,g,c),f.silent||this.emit("added",l,i,u,c)}addResources(l,i,u){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const f in u)(ie(u[f])||Array.isArray(u[f]))&&this.addResource(l,i,f,u[f],{silent:!0});c.silent||this.emit("added",l,i,u)}addResourceBundle(l,i,u,c,f){let d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},g=[l,i];l.indexOf(".")>-1&&(g=l.split("."),c=u,u=i,i=g[1]),this.addNamespaces(i);let p=Us(this.data,g)||{};d.skipCopy||(u=JSON.parse(JSON.stringify(u))),c?Vp(p,u,f):p={...p,...u},tp(this.data,g,p),d.silent||this.emit("added",l,i,u)}removeResourceBundle(l,i){this.hasResourceBundle(l,i)&&delete this.data[l][i],this.removeNamespaces(i),this.emit("removed",l,i)}hasResourceBundle(l,i){return this.getResource(l,i)!==void 0}getResourceBundle(l,i){return i||(i=this.options.defaultNS),this.getResource(l,i)}getDataByLanguage(l){return this.data[l]}hasLanguageSomeTranslations(l){const i=this.getDataByLanguage(l);return!!(i&&Object.keys(i)||[]).find(c=>i[c]&&Object.keys(i[c]).length>0)}toJSON(){return this.data}}var Yp={processors:{},addPostProcessor(r){this.processors[r.name]=r},handle(r,l,i,u,c){return r.forEach(f=>{var d;l=((d=this.processors[f])==null?void 0:d.process(l,i,u,c))??l}),l}};const ap={},lp=r=>!ie(r)&&typeof r!="boolean"&&typeof r!="number";class qs extends Xs{constructor(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),tv(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],l,this),this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Zt.create("translator")}changeLanguage(l){l&&(this.language=l)}exists(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(l==null)return!1;const u=this.resolve(l,i);return(u==null?void 0:u.res)!==void 0}extractFromKey(l,i){let u=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;u===void 0&&(u=":");const c=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let f=i.ns||this.options.defaultNS||[];const d=u&&l.indexOf(u)>-1,g=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!cv(l,u,c);if(d&&!g){const p=l.match(this.interpolator.nestingRegexp);if(p&&p.length>0)return{key:l,namespaces:ie(f)?[f]:f};const h=l.split(u);(u!==c||u===c&&this.options.ns.indexOf(h[0])>-1)&&(f=h.shift()),l=h.join(c)}return{key:l,namespaces:ie(f)?[f]:f}}translate(l,i,u){if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),l==null)return"";Array.isArray(l)||(l=[String(l)]);const c=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,f=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:d,namespaces:g}=this.extractFromKey(l[l.length-1],i),p=g[g.length-1],h=i.lng||this.language,y=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((h==null?void 0:h.toLowerCase())==="cimode"){if(y){const le=i.nsSeparator||this.options.nsSeparator;return c?{res:`${p}${le}${d}`,usedKey:d,exactUsedKey:d,usedLng:h,usedNS:p,usedParams:this.getUsedParamsDetails(i)}:`${p}${le}${d}`}return c?{res:d,usedKey:d,exactUsedKey:d,usedLng:h,usedNS:p,usedParams:this.getUsedParamsDetails(i)}:d}const S=this.resolve(l,i);let b=S==null?void 0:S.res;const A=(S==null?void 0:S.usedKey)||d,R=(S==null?void 0:S.exactUsedKey)||d,k=["[object Number]","[object Function]","[object RegExp]"],M=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,H=!this.i18nFormat||this.i18nFormat.handleAsObject,G=i.count!==void 0&&!ie(i.count),$=qs.hasDefaultValue(i),F=G?this.pluralResolver.getSuffix(h,i.count,i):"",X=i.ordinal&&G?this.pluralResolver.getSuffix(h,i.count,{ordinal:!1}):"",ue=G&&!i.ordinal&&i.count===0,W=ue&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${F}`]||i[`defaultValue${X}`]||i.defaultValue;let K=b;H&&!b&&$&&(K=W);const J=lp(K),re=Object.prototype.toString.apply(K);if(H&&K&&J&&k.indexOf(re)<0&&!(ie(M)&&Array.isArray(K))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const le=this.options.returnedObjectHandler?this.options.returnedObjectHandler(A,K,{...i,ns:g}):`key '${d} (${this.language})' returned an object instead of string.`;return c?(S.res=le,S.usedParams=this.getUsedParamsDetails(i),S):le}if(f){const le=Array.isArray(K),me=le?[]:{},ft=le?R:A;for(const Me in K)if(Object.prototype.hasOwnProperty.call(K,Me)){const Ce=`${ft}${f}${Me}`;$&&!b?me[Me]=this.translate(Ce,{...i,defaultValue:lp(W)?W[Me]:void 0,joinArrays:!1,ns:g}):me[Me]=this.translate(Ce,{...i,joinArrays:!1,ns:g}),me[Me]===Ce&&(me[Me]=K[Me])}b=me}}else if(H&&ie(M)&&Array.isArray(b))b=b.join(M),b&&(b=this.extendTranslation(b,l,i,u));else{let le=!1,me=!1;!this.isValidLookup(b)&&$&&(le=!0,b=W),this.isValidLookup(b)||(me=!0,b=d);const Me=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&me?void 0:b,Ce=$&&W!==b&&this.options.updateMissing;if(me||le||Ce){if(this.logger.log(Ce?"updateKey":"missingKey",h,p,d,Ce?W:b),f){const oe=this.resolve(d,{...i,keySeparator:!1});oe&&oe.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 _=[];const V=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&V&&V[0])for(let oe=0;oe<V.length;oe++)_.push(V[oe]);else this.options.saveMissingTo==="all"?_=this.languageUtils.toResolveHierarchy(i.lng||this.language):_.push(i.lng||this.language);const I=(oe,T,q)=>{var Y;const Q=$&&q!==b?q:Me;this.options.missingKeyHandler?this.options.missingKeyHandler(oe,p,T,Q,Ce,i):(Y=this.backendConnector)!=null&&Y.saveMissing&&this.backendConnector.saveMissing(oe,p,T,Q,Ce,i),this.emit("missingKey",oe,p,T,b)};this.options.saveMissing&&(this.options.saveMissingPlurals&&G?_.forEach(oe=>{const T=this.pluralResolver.getSuffixes(oe,i);ue&&i[`defaultValue${this.options.pluralSeparator}zero`]&&T.indexOf(`${this.options.pluralSeparator}zero`)<0&&T.push(`${this.options.pluralSeparator}zero`),T.forEach(q=>{I([oe],d+q,i[`defaultValue${q}`]||W)})}):I(_,d,W))}b=this.extendTranslation(b,l,i,S,u),me&&b===d&&this.options.appendNamespaceToMissingKey&&(b=`${p}:${d}`),(me||le)&&this.options.parseMissingKeyHandler&&(b=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${p}:${d}`:d,le?b:void 0))}return c?(S.res=b,S.usedParams=this.getUsedParamsDetails(i),S):b}extendTranslation(l,i,u,c,f){var h,y;var d=this;if((h=this.i18nFormat)!=null&&h.parse)l=this.i18nFormat.parse(l,{...this.options.interpolation.defaultVariables,...u},u.lng||this.language||c.usedLng,c.usedNS,c.usedKey,{resolved:c});else if(!u.skipInterpolation){u.interpolation&&this.interpolator.init({...u,interpolation:{...this.options.interpolation,...u.interpolation}});const S=ie(l)&&(((y=u==null?void 0:u.interpolation)==null?void 0:y.skipOnVariables)!==void 0?u.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let b;if(S){const R=l.match(this.interpolator.nestingRegexp);b=R&&R.length}let A=u.replace&&!ie(u.replace)?u.replace:u;if(this.options.interpolation.defaultVariables&&(A={...this.options.interpolation.defaultVariables,...A}),l=this.interpolator.interpolate(l,A,u.lng||this.language||c.usedLng,u),S){const R=l.match(this.interpolator.nestingRegexp),k=R&&R.length;b<k&&(u.nest=!1)}!u.lng&&c&&c.res&&(u.lng=this.language||c.usedLng),u.nest!==!1&&(l=this.interpolator.nest(l,function(){for(var R=arguments.length,k=new Array(R),M=0;M<R;M++)k[M]=arguments[M];return(f==null?void 0:f[0])===k[0]&&!u.context?(d.logger.warn(`It seems you are nesting recursively key: ${k[0]} in key: ${i[0]}`),null):d.translate(...k,i)},u)),u.interpolation&&this.interpolator.reset()}const g=u.postProcess||this.options.postProcess,p=ie(g)?[g]:g;return l!=null&&(p!=null&&p.length)&&u.applyPostProcessor!==!1&&(l=Yp.handle(p,l,i,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...c,usedParams:this.getUsedParamsDetails(u)},...u}:u,this)),l}resolve(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u,c,f,d,g;return ie(l)&&(l=[l]),l.forEach(p=>{if(this.isValidLookup(u))return;const h=this.extractFromKey(p,i),y=h.key;c=y;let S=h.namespaces;this.options.fallbackNS&&(S=S.concat(this.options.fallbackNS));const b=i.count!==void 0&&!ie(i.count),A=b&&!i.ordinal&&i.count===0,R=i.context!==void 0&&(ie(i.context)||typeof i.context=="number")&&i.context!=="",k=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);S.forEach(M=>{var H,G;this.isValidLookup(u)||(g=M,!ap[`${k[0]}-${M}`]&&((H=this.utils)!=null&&H.hasLoadedNamespace)&&!((G=this.utils)!=null&&G.hasLoadedNamespace(g))&&(ap[`${k[0]}-${M}`]=!0,this.logger.warn(`key "${c}" for languages "${k.join(", ")}" won't get resolved as namespace "${g}" 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!!!")),k.forEach($=>{var ue;if(this.isValidLookup(u))return;d=$;const F=[y];if((ue=this.i18nFormat)!=null&&ue.addLookupKeys)this.i18nFormat.addLookupKeys(F,y,$,M,i);else{let W;b&&(W=this.pluralResolver.getSuffix($,i.count,i));const K=`${this.options.pluralSeparator}zero`,J=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(b&&(F.push(y+W),i.ordinal&&W.indexOf(J)===0&&F.push(y+W.replace(J,this.options.pluralSeparator)),A&&F.push(y+K)),R){const re=`${y}${this.options.contextSeparator}${i.context}`;F.push(re),b&&(F.push(re+W),i.ordinal&&W.indexOf(J)===0&&F.push(re+W.replace(J,this.options.pluralSeparator)),A&&F.push(re+K))}}let X;for(;X=F.pop();)this.isValidLookup(u)||(f=X,u=this.getResource($,M,X,i))}))})}),{res:u,usedKey:c,exactUsedKey:f,usedLng:d,usedNS:g}}isValidLookup(l){return l!==void 0&&!(!this.options.returnNull&&l===null)&&!(!this.options.returnEmptyString&&l==="")}getResource(l,i,u){var f;let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(f=this.i18nFormat)!=null&&f.getResource?this.i18nFormat.getResource(l,i,u,c):this.resourceStore.getResource(l,i,u,c)}getUsedParamsDetails(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const i=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],u=l.replace&&!ie(l.replace);let c=u?l.replace:l;if(u&&typeof l.count<"u"&&(c.count=l.count),this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),!u){c={...c};for(const f of i)delete c[f]}return c}static hasDefaultValue(l){const i="defaultValue";for(const u in l)if(Object.prototype.hasOwnProperty.call(l,u)&&i===u.substring(0,i.length)&&l[u]!==void 0)return!0;return!1}}class ip{constructor(l){this.options=l,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Zt.create("languageUtils")}getScriptPartFromCode(l){if(l=Hs(l),!l||l.indexOf("-")<0)return null;const i=l.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))}getLanguagePartFromCode(l){if(l=Hs(l),!l||l.indexOf("-")<0)return l;const i=l.split("-");return this.formatLanguageCode(i[0])}formatLanguageCode(l){if(ie(l)&&l.indexOf("-")>-1){let i;try{i=Intl.getCanonicalLocales(l)[0]}catch{}return i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i||(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 i;return l.forEach(u=>{if(i)return;const c=this.formatLanguageCode(u);(!this.options.supportedLngs||this.isSupportedCode(c))&&(i=c)}),!i&&this.options.supportedLngs&&l.forEach(u=>{if(i)return;const c=this.getLanguagePartFromCode(u);if(this.isSupportedCode(c))return i=c;i=this.options.supportedLngs.find(f=>{if(f===c)return f;if(!(f.indexOf("-")<0&&c.indexOf("-")<0)&&(f.indexOf("-")>0&&c.indexOf("-")<0&&f.substring(0,f.indexOf("-"))===c||f.indexOf(c)===0&&c.length>1))return f})}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}getFallbackCodes(l,i){if(!l)return[];if(typeof l=="function"&&(l=l(i)),ie(l)&&(l=[l]),Array.isArray(l))return l;if(!i)return l.default||[];let u=l[i];return u||(u=l[this.getScriptPartFromCode(i)]),u||(u=l[this.formatLanguageCode(i)]),u||(u=l[this.getLanguagePartFromCode(i)]),u||(u=l.default),u||[]}toResolveHierarchy(l,i){const u=this.getFallbackCodes(i||this.options.fallbackLng||[],l),c=[],f=d=>{d&&(this.isSupportedCode(d)?c.push(d):this.logger.warn(`rejecting language code not found in supportedLngs: ${d}`))};return ie(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))):ie(l)&&f(this.formatLanguageCode(l)),u.forEach(d=>{c.indexOf(d)<0&&f(this.formatLanguageCode(d))}),c}}const sp={zero:0,one:1,two:2,few:3,many:4,other:5},up={select:r=>r===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class dv{constructor(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=l,this.options=i,this.logger=Zt.create("pluralResolver"),this.pluralRulesCache={}}addRule(l,i){this.rules[l]=i}clearCache(){this.pluralRulesCache={}}getRule(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const u=Hs(l==="dev"?"en":l),c=i.ordinal?"ordinal":"cardinal",f=JSON.stringify({cleanedCode:u,type:c});if(f in this.pluralRulesCache)return this.pluralRulesCache[f];let d;try{d=new Intl.PluralRules(u,{type:c})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),up;if(!l.match(/-|_/))return up;const p=this.languageUtils.getLanguagePartFromCode(l);d=this.getRule(p,i)}return this.pluralRulesCache[f]=d,d}needsPlural(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=this.getRule(l,i);return u||(u=this.getRule("dev",i)),(u==null?void 0:u.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(l,i){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(l,u).map(c=>`${i}${c}`)}getSuffixes(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=this.getRule(l,i);return u||(u=this.getRule("dev",i)),u?u.resolvedOptions().pluralCategories.sort((c,f)=>sp[c]-sp[f]).map(c=>`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${c}`):[]}getSuffix(l,i){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const c=this.getRule(l,u);return c?`${this.options.prepend}${u.ordinal?`ordinal${this.options.prepend}`:""}${c.select(i)}`:(this.logger.warn(`no plural rule found for: ${l}`),this.getSuffix("dev",i,u))}}const rp=function(r,l,i){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,f=lv(r,l,i);return!f&&c&&ie(i)&&(f=zo(r,i,u),f===void 0&&(f=zo(l,i,u))),f},go=r=>r.replace(/\$/g,"$$$$");class hv{constructor(){var i;let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Zt.create("interpolator"),this.options=l,this.format=((i=l==null?void 0:l.interpolation)==null?void 0:i.format)||(u=>u),this.init(l)}init(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};l.interpolation||(l.interpolation={escapeValue:!0});const{escape:i,escapeValue:u,useRawValueToEscape:c,prefix:f,prefixEscaped:d,suffix:g,suffixEscaped:p,formatSeparator:h,unescapeSuffix:y,unescapePrefix:S,nestingPrefix:b,nestingPrefixEscaped:A,nestingSuffix:R,nestingSuffixEscaped:k,nestingOptionsSeparator:M,maxReplaces:H,alwaysFormat:G}=l.interpolation;this.escape=i!==void 0?i:sv,this.escapeValue=u!==void 0?u:!0,this.useRawValueToEscape=c!==void 0?c:!1,this.prefix=f?Za(f):d||"{{",this.suffix=g?Za(g):p||"}}",this.formatSeparator=h||",",this.unescapePrefix=y?"":S||"-",this.unescapeSuffix=this.unescapePrefix?"":y||"",this.nestingPrefix=b?Za(b):A||Za("$t("),this.nestingSuffix=R?Za(R):k||Za(")"),this.nestingOptionsSeparator=M||",",this.maxReplaces=H||1e3,this.alwaysFormat=G!==void 0?G:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const l=(i,u)=>(i==null?void 0:i.source)===u?(i.lastIndex=0,i):new RegExp(u,"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,i,u,c){var A;let f,d,g;const p=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},h=R=>{if(R.indexOf(this.formatSeparator)<0){const G=rp(i,p,R,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(G,void 0,u,{...c,...i,interpolationkey:R}):G}const k=R.split(this.formatSeparator),M=k.shift().trim(),H=k.join(this.formatSeparator).trim();return this.format(rp(i,p,M,this.options.keySeparator,this.options.ignoreJSONStructure),H,u,{...c,...i,interpolationkey:M})};this.resetRegExp();const y=(c==null?void 0:c.missingInterpolationHandler)||this.options.missingInterpolationHandler,S=((A=c==null?void 0:c.interpolation)==null?void 0:A.skipOnVariables)!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:R=>go(R)},{regex:this.regexp,safeValue:R=>this.escapeValue?go(this.escape(R)):go(R)}].forEach(R=>{for(g=0;f=R.regex.exec(l);){const k=f[1].trim();if(d=h(k),d===void 0)if(typeof y=="function"){const H=y(l,f,c);d=ie(H)?H:""}else if(c&&Object.prototype.hasOwnProperty.call(c,k))d="";else if(S){d=f[0];continue}else this.logger.warn(`missed to pass in variable ${k} for interpolating ${l}`),d="";else!ie(d)&&!this.useRawValueToEscape&&(d=Ph(d));const M=R.safeValue(d);if(l=l.replace(f[0],M),S?(R.regex.lastIndex+=d.length,R.regex.lastIndex-=f[0].length):R.regex.lastIndex=0,g++,g>=this.maxReplaces)break}}),l}nest(l,i){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c,f,d;const g=(p,h)=>{const y=this.nestingOptionsSeparator;if(p.indexOf(y)<0)return p;const S=p.split(new RegExp(`${y}[ ]*{`));let b=`{${S[1]}`;p=S[0],b=this.interpolate(b,d);const A=b.match(/'/g),R=b.match(/"/g);(((A==null?void 0:A.length)??0)%2===0&&!R||R.length%2!==0)&&(b=b.replace(/'/g,'"'));try{d=JSON.parse(b),h&&(d={...h,...d})}catch(k){return this.logger.warn(`failed parsing options string in nesting for key ${p}`,k),`${p}${y}${b}`}return d.defaultValue&&d.defaultValue.indexOf(this.prefix)>-1&&delete d.defaultValue,p};for(;c=this.nestingRegexp.exec(l);){let p=[];d={...u},d=d.replace&&!ie(d.replace)?d.replace:d,d.applyPostProcessor=!1,delete d.defaultValue;let h=!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(),p=y,h=!0}if(f=i(g.call(this,c[1].trim(),d),d),f&&c[0]===l&&!ie(f))return f;ie(f)||(f=Ph(f)),f||(this.logger.warn(`missed to resolve ${c[1]} for nesting ${l}`),f=""),h&&(f=p.reduce((y,S)=>this.format(y,S,u.lng,{...u,interpolationkey:c[1].trim()}),f.trim())),l=l.replace(c[0],f),this.regexp.lastIndex=0}return l}}const pv=r=>{let l=r.toLowerCase().trim();const i={};if(r.indexOf("(")>-1){const u=r.split("(");l=u[0].toLowerCase().trim();const c=u[1].substring(0,u[1].length-1);l==="currency"&&c.indexOf(":")<0?i.currency||(i.currency=c.trim()):l==="relativetime"&&c.indexOf(":")<0?i.range||(i.range=c.trim()):c.split(";").forEach(d=>{if(d){const[g,...p]=d.split(":"),h=p.join(":").trim().replace(/^'+|'+$/g,""),y=g.trim();i[y]||(i[y]=h),h==="false"&&(i[y]=!1),h==="true"&&(i[y]=!0),isNaN(h)||(i[y]=parseInt(h,10))}})}return{formatName:l,formatOptions:i}},Ka=r=>{const l={};return(i,u,c)=>{let f=c;c&&c.interpolationkey&&c.formatParams&&c.formatParams[c.interpolationkey]&&c[c.interpolationkey]&&(f={...f,[c.interpolationkey]:void 0});const d=u+JSON.stringify(f);let g=l[d];return g||(g=r(Hs(u),c),l[d]=g),g(i)}};class gv{constructor(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Zt.create("formatter"),this.options=l,this.formats={number:Ka((i,u)=>{const c=new Intl.NumberFormat(i,{...u});return f=>c.format(f)}),currency:Ka((i,u)=>{const c=new Intl.NumberFormat(i,{...u,style:"currency"});return f=>c.format(f)}),datetime:Ka((i,u)=>{const c=new Intl.DateTimeFormat(i,{...u});return f=>c.format(f)}),relativetime:Ka((i,u)=>{const c=new Intl.RelativeTimeFormat(i,{...u});return f=>c.format(f,u.range||"day")}),list:Ka((i,u)=>{const c=new Intl.ListFormat(i,{...u});return f=>c.format(f)})},this.init(l)}init(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=i.interpolation.formatSeparator||","}add(l,i){this.formats[l.toLowerCase().trim()]=i}addCached(l,i){this.formats[l.toLowerCase().trim()]=Ka(i)}format(l,i,u){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const f=i.split(this.formatSeparator);if(f.length>1&&f[0].indexOf("(")>1&&f[0].indexOf(")")<0&&f.find(g=>g.indexOf(")")>-1)){const g=f.findIndex(p=>p.indexOf(")")>-1);f[0]=[f[0],...f.splice(1,g)].join(this.formatSeparator)}return f.reduce((g,p)=>{var S;const{formatName:h,formatOptions:y}=pv(p);if(this.formats[h]){let b=g;try{const A=((S=c==null?void 0:c.formatParams)==null?void 0:S[c.interpolationkey])||{},R=A.locale||A.lng||c.locale||c.lng||u;b=this.formats[h](g,R,{...y,...c,...A})}catch(A){this.logger.warn(A)}return b}else this.logger.warn(`there was no format function for ${h}`);return g},l)}}const mv=(r,l)=>{r.pending[l]!==void 0&&(delete r.pending[l],r.pendingCount--)};class yv extends Xs{constructor(l,i,u){var f,d;let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=l,this.store=i,this.services=u,this.languageUtils=u.languageUtils,this.options=c,this.logger=Zt.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=[],(d=(f=this.backend)==null?void 0:f.init)==null||d.call(f,u,c.backend,c)}queueLoad(l,i,u,c){const f={},d={},g={},p={};return l.forEach(h=>{let y=!0;i.forEach(S=>{const b=`${h}|${S}`;!u.reload&&this.store.hasResourceBundle(h,S)?this.state[b]=2:this.state[b]<0||(this.state[b]===1?d[b]===void 0&&(d[b]=!0):(this.state[b]=1,y=!1,d[b]===void 0&&(d[b]=!0),f[b]===void 0&&(f[b]=!0),p[S]===void 0&&(p[S]=!0)))}),y||(g[h]=!0)}),(Object.keys(f).length||Object.keys(d).length)&&this.queue.push({pending:d,pendingCount:Object.keys(d).length,loaded:{},errors:[],callback:c}),{toLoad:Object.keys(f),pending:Object.keys(d),toLoadLanguages:Object.keys(g),toLoadNamespaces:Object.keys(p)}}loaded(l,i,u){const c=l.split("|"),f=c[0],d=c[1];i&&this.emit("failedLoading",f,d,i),!i&&u&&this.store.addResourceBundle(f,d,u,void 0,void 0,{skipCopy:!0}),this.state[l]=i?-1:2,i&&u&&(this.state[l]=0);const g={};this.queue.forEach(p=>{av(p.loaded,[f],d),mv(p,l),i&&p.errors.push(i),p.pendingCount===0&&!p.done&&(Object.keys(p.loaded).forEach(h=>{g[h]||(g[h]={});const y=p.loaded[h];y.length&&y.forEach(S=>{g[h][S]===void 0&&(g[h][S]=!0)})}),p.done=!0,p.errors.length?p.callback(p.errors):p.callback())}),this.emit("loaded",g),this.queue=this.queue.filter(p=>!p.done)}read(l,i,u){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,d=arguments.length>5?arguments[5]:void 0;if(!l.length)return d(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:l,ns:i,fcName:u,tried:c,wait:f,callback:d});return}this.readingCalls++;const g=(h,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(h&&y&&c<this.maxRetries){setTimeout(()=>{this.read.call(this,l,i,u,c+1,f*2,d)},f);return}d(h,y)},p=this.backend[u].bind(this.backend);if(p.length===2){try{const h=p(l,i);h&&typeof h.then=="function"?h.then(y=>g(null,y)).catch(g):g(null,h)}catch(h){g(h)}return}return p(l,i,g)}prepareLoading(l,i){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),c&&c();ie(l)&&(l=this.languageUtils.toResolveHierarchy(l)),ie(i)&&(i=[i]);const f=this.queueLoad(l,i,u,c);if(!f.toLoad.length)return f.pending.length||c(),null;f.toLoad.forEach(d=>{this.loadOne(d)})}load(l,i,u){this.prepareLoading(l,i,{},u)}reload(l,i,u){this.prepareLoading(l,i,{reload:!0},u)}loadOne(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const u=l.split("|"),c=u[0],f=u[1];this.read(c,f,"read",void 0,void 0,(d,g)=>{d&&this.logger.warn(`${i}loading namespace ${f} for language ${c} failed`,d),!d&&g&&this.logger.log(`${i}loaded namespace ${f} for language ${c}`,g),this.loaded(l,d,g)})}saveMissing(l,i,u,c,f){var p,h,y,S,b;let d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},g=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((h=(p=this.services)==null?void 0:p.utils)!=null&&h.hasLoadedNamespace&&!((S=(y=this.services)==null?void 0:y.utils)!=null&&S.hasLoadedNamespace(i))){this.logger.warn(`did not save key "${u}" as the namespace "${i}" 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(!(u==null||u==="")){if((b=this.backend)!=null&&b.create){const A={...d,isUpdate:f},R=this.backend.create.bind(this.backend);if(R.length<6)try{let k;R.length===5?k=R(l,i,u,c,A):k=R(l,i,u,c),k&&typeof k.then=="function"?k.then(M=>g(null,M)).catch(g):g(null,k)}catch(k){g(k)}else R(l,i,u,c,g,A)}!l||!l[0]||this.store.addResource(l[0],i,u,c)}}}const op=()=>({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:r=>{let l={};if(typeof r[1]=="object"&&(l=r[1]),ie(r[1])&&(l.defaultValue=r[1]),ie(r[2])&&(l.tDescription=r[2]),typeof r[2]=="object"||typeof r[3]=="object"){const i=r[3]||r[2];Object.keys(i).forEach(u=>{l[u]=i[u]})}return l},interpolation:{escapeValue:!0,format:r=>r,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),cp=r=>{var l,i;return ie(r.ns)&&(r.ns=[r.ns]),ie(r.fallbackLng)&&(r.fallbackLng=[r.fallbackLng]),ie(r.fallbackNS)&&(r.fallbackNS=[r.fallbackNS]),((i=(l=r.supportedLngs)==null?void 0:l.indexOf)==null?void 0:i.call(l,"cimode"))<0&&(r.supportedLngs=r.supportedLngs.concat(["cimode"])),typeof r.initImmediate=="boolean"&&(r.initAsync=r.initImmediate),r},Cs=()=>{},vv=r=>{Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(i=>{typeof r[i]=="function"&&(r[i]=r[i].bind(r))})};class si extends Xs{constructor(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(super(),this.options=cp(l),this.services={},this.logger=Zt,this.modules={external:[]},vv(this),i&&!this.isInitialized&&!l.isClone){if(!this.options.initAsync)return this.init(l,i),this;setTimeout(()=>{this.init(l,i)},0)}}init(){var l=this;let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof i=="function"&&(u=i,i={}),i.defaultNS==null&&i.ns&&(ie(i.ns)?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));const c=op();this.options={...c,...this.options,...cp(i)},this.options.interpolation={...c.interpolation,...this.options.interpolation},i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator);const f=y=>y?typeof y=="function"?new y:y:null;if(!this.options.isClone){this.modules.logger?Zt.init(f(this.modules.logger),this.options):Zt.init(null,this.options);let y;this.modules.formatter?y=this.modules.formatter:y=gv;const S=new ip(this.options);this.store=new np(this.options.resources,this.options);const b=this.services;b.logger=Zt,b.resourceStore=this.store,b.languageUtils=S,b.pluralResolver=new dv(S,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),y&&(!this.options.interpolation.format||this.options.interpolation.format===c.interpolation.format)&&(b.formatter=f(y),b.formatter.init(b,this.options),this.options.interpolation.format=b.formatter.format.bind(b.formatter)),b.interpolator=new hv(this.options),b.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},b.backendConnector=new yv(f(this.modules.backend),b.resourceStore,b,this.options),b.backendConnector.on("*",function(A){for(var R=arguments.length,k=new Array(R>1?R-1:0),M=1;M<R;M++)k[M-1]=arguments[M];l.emit(A,...k)}),this.modules.languageDetector&&(b.languageDetector=f(this.modules.languageDetector),b.languageDetector.init&&b.languageDetector.init(b,this.options.detection,this.options)),this.modules.i18nFormat&&(b.i18nFormat=f(this.modules.i18nFormat),b.i18nFormat.init&&b.i18nFormat.init(this)),this.translator=new qs(this.services,this.options),this.translator.on("*",function(A){for(var R=arguments.length,k=new Array(R>1?R-1:0),M=1;M<R;M++)k[M-1]=arguments[M];l.emit(A,...k)}),this.modules.external.forEach(A=>{A.init&&A.init(this)})}if(this.format=this.options.interpolation.format,u||(u=Cs),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const y=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);y.length>0&&y[0]!=="dev"&&(this.options.lng=y[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(y=>{this[y]=function(){return l.store[y](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(y=>{this[y]=function(){return l.store[y](...arguments),l}});const p=Wl(),h=()=>{const y=(S,b)=>{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),p.resolve(b),u(S,b)};if(this.languages&&!this.isInitialized)return y(null,this.t.bind(this));this.changeLanguage(this.options.lng,y)};return this.options.resources||!this.options.initAsync?h():setTimeout(h,0),p}loadResources(l){var f,d;let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cs;const c=ie(l)?l:this.language;if(typeof l=="function"&&(u=l),!this.options.resources||this.options.partialBundledLanguages){if((c==null?void 0:c.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return u();const g=[],p=h=>{if(!h||h==="cimode")return;this.services.languageUtils.toResolveHierarchy(h).forEach(S=>{S!=="cimode"&&g.indexOf(S)<0&&g.push(S)})};c?p(c):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(y=>p(y)),(d=(f=this.options.preload)==null?void 0:f.forEach)==null||d.call(f,h=>p(h)),this.services.backendConnector.load(g,this.options.ns,h=>{!h&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),u(h)})}else u(null)}reloadResources(l,i,u){const c=Wl();return typeof l=="function"&&(u=l,l=void 0),typeof i=="function"&&(u=i,i=void 0),l||(l=this.languages),i||(i=this.options.ns),u||(u=Cs),this.services.backendConnector.reload(l,i,f=>{c.resolve(),u(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"&&Yp.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 i=0;i<this.languages.length;i++){const u=this.languages[i];if(!(["cimode","dev"].indexOf(u)>-1)&&this.store.hasLanguageSomeTranslations(u)){this.resolvedLanguage=u;break}}}changeLanguage(l,i){var u=this;this.isLanguageChangingTo=l;const c=Wl();this.emit("languageChanging",l);const f=p=>{this.language=p,this.languages=this.services.languageUtils.toResolveHierarchy(p),this.resolvedLanguage=void 0,this.setResolvedLanguage(p)},d=(p,h)=>{h?(f(h),this.translator.changeLanguage(h),this.isLanguageChangingTo=void 0,this.emit("languageChanged",h),this.logger.log("languageChanged",h)):this.isLanguageChangingTo=void 0,c.resolve(function(){return u.t(...arguments)}),i&&i(p,function(){return u.t(...arguments)})},g=p=>{var y,S;!l&&!p&&this.services.languageDetector&&(p=[]);const h=ie(p)?p:this.services.languageUtils.getBestMatchFromCodes(p);h&&(this.language||f(h),this.translator.language||this.translator.changeLanguage(h),(S=(y=this.services.languageDetector)==null?void 0:y.cacheUserLanguage)==null||S.call(y,h)),this.loadResources(h,b=>{d(b,h)})};return!l&&this.services.languageDetector&&!this.services.languageDetector.async?g(this.services.languageDetector.detect()):!l&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(g):this.services.languageDetector.detect(g):g(l),c}getFixedT(l,i,u){var c=this;const f=function(d,g){let p;if(typeof g!="object"){for(var h=arguments.length,y=new Array(h>2?h-2:0),S=2;S<h;S++)y[S-2]=arguments[S];p=c.options.overloadTranslationOptionHandler([d,g].concat(y))}else p={...g};p.lng=p.lng||f.lng,p.lngs=p.lngs||f.lngs,p.ns=p.ns||f.ns,p.keyPrefix!==""&&(p.keyPrefix=p.keyPrefix||u||f.keyPrefix);const b=c.options.keySeparator||".";let A;return p.keyPrefix&&Array.isArray(d)?A=d.map(R=>`${p.keyPrefix}${b}${R}`):A=p.keyPrefix?`${p.keyPrefix}${b}${d}`:d,c.t(A,p)};return ie(l)?f.lng=l:f.lngs=l,f.ns=i,f.keyPrefix=u,f}t(){var c;for(var l=arguments.length,i=new Array(l),u=0;u<l;u++)i[u]=arguments[u];return(c=this.translator)==null?void 0:c.translate(...i)}exists(){var c;for(var l=arguments.length,i=new Array(l),u=0;u<l;u++)i[u]=arguments[u];return(c=this.translator)==null?void 0:c.exists(...i)}setDefaultNamespace(l){this.options.defaultNS=l}hasLoadedNamespace(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};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 u=i.lng||this.resolvedLanguage||this.languages[0],c=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(u.toLowerCase()==="cimode")return!0;const d=(g,p)=>{const h=this.services.backendConnector.state[`${g}|${p}`];return h===-1||h===0||h===2};if(i.precheck){const g=i.precheck(this,d);if(g!==void 0)return g}return!!(this.hasResourceBundle(u,l)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||d(u,l)&&(!c||d(f,l)))}loadNamespaces(l,i){const u=Wl();return this.options.ns?(ie(l)&&(l=[l]),l.forEach(c=>{this.options.ns.indexOf(c)<0&&this.options.ns.push(c)}),this.loadResources(c=>{u.resolve(),i&&i(c)}),u):(i&&i(),Promise.resolve())}loadLanguages(l,i){const u=Wl();ie(l)&&(l=[l]);const c=this.options.preload||[],f=l.filter(d=>c.indexOf(d)<0&&this.services.languageUtils.isSupportedCode(d));return f.length?(this.options.preload=c.concat(f),this.loadResources(d=>{u.resolve(),i&&i(d)}),u):(i&&i(),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 i=["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"],u=((f=this.services)==null?void 0:f.languageUtils)||new ip(op());return i.indexOf(u.getLanguagePartFromCode(l))>-1||l.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;return new si(l,i)}cloneInstance(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cs;const u=l.forkResourceStore;u&&delete l.forkResourceStore;const c={...this.options,...l,isClone:!0},f=new si(c);if((l.debug!==void 0||l.prefix!==void 0)&&(f.logger=f.logger.clone(l)),["store","services","language"].forEach(g=>{f[g]=this[g]}),f.services={...this.services},f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},u){const g=Object.keys(this.store.data).reduce((p,h)=>(p[h]={...this.store.data[h]},Object.keys(p[h]).reduce((y,S)=>(y[S]={...p[h][S]},y),{})),{});f.store=new np(g,c),f.services.resourceStore=f.store}return f.translator=new qs(f.services,c),f.translator.on("*",function(g){for(var p=arguments.length,h=new Array(p>1?p-1:0),y=1;y<p;y++)h[y-1]=arguments[y];f.emit(g,...h)}),f.init(c,i),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 tt=si.createInstance();tt.createInstance=si.createInstance;tt.createInstance;tt.dir;tt.init;tt.loadResources;tt.reloadResources;tt.use;tt.changeLanguage;tt.getFixedT;tt.t;tt.exists;tt.setDefaultNamespace;tt.hasLoadedNamespace;tt.loadNamespaces;tt.loadLanguages;var mo={exports:{}},ce={};/**
|
|
9
|
+
*/var Fh;function Iy(){if(Fh)return Fl;Fh=1;var r=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function i(s,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var g in c)g!=="key"&&(f[g]=c[g])}else f=c;return c=f.ref,{$$typeof:r,type:s,key:d,ref:c!==void 0?c:null,props:f}}return Fl.Fragment=l,Fl.jsx=i,Fl.jsxs=i,Fl}var Wh;function ev(){return Wh||(Wh=1,po.exports=Iy()),po.exports}var E=ev();const ie=r=>typeof r=="string",Wl=()=>{let r,l;const i=new Promise((s,c)=>{r=s,l=c});return i.resolve=r,i.reject=l,i},Ph=r=>r==null?"":""+r,tv=(r,l,i)=>{r.forEach(s=>{l[s]&&(i[s]=l[s])})},nv=/###/g,Ih=r=>r&&r.indexOf("###")>-1?r.replace(nv,"."):r,ep=r=>!r||ie(r),ai=(r,l,i)=>{const s=ie(l)?l.split("."):l;let c=0;for(;c<s.length-1;){if(ep(r))return{};const f=Ih(s[c]);!r[f]&&i&&(r[f]=new i),Object.prototype.hasOwnProperty.call(r,f)?r=r[f]:r={},++c}return ep(r)?{}:{obj:r,k:Ih(s[c])}},tp=(r,l,i)=>{const{obj:s,k:c}=ai(r,l,Object);if(s!==void 0||l.length===1){s[c]=i;return}let f=l[l.length-1],d=l.slice(0,l.length-1),g=ai(r,d,Object);for(;g.obj===void 0&&d.length;)f=`${d[d.length-1]}.${f}`,d=d.slice(0,d.length-1),g=ai(r,d,Object),g!=null&&g.obj&&typeof g.obj[`${g.k}.${f}`]<"u"&&(g.obj=void 0);g.obj[`${g.k}.${f}`]=i},av=(r,l,i,s)=>{const{obj:c,k:f}=ai(r,l,Object);c[f]=c[f]||[],c[f].push(i)},Uu=(r,l)=>{const{obj:i,k:s}=ai(r,l);if(i&&Object.prototype.hasOwnProperty.call(i,s))return i[s]},lv=(r,l,i)=>{const s=Uu(r,i);return s!==void 0?s:Uu(l,i)},Vp=(r,l,i)=>{for(const s in l)s!=="__proto__"&&s!=="constructor"&&(s in r?ie(r[s])||r[s]instanceof String||ie(l[s])||l[s]instanceof String?i&&(r[s]=l[s]):Vp(r[s],l[s],i):r[s]=l[s]);return r},Za=r=>r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var iv={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const uv=r=>ie(r)?r.replace(/[&<>"'\/]/g,l=>iv[l]):r;class sv{constructor(l){this.capacity=l,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(l){const i=this.regExpMap.get(l);if(i!==void 0)return i;const s=new RegExp(l);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(l,s),this.regExpQueue.push(l),s}}const rv=[" ",",","?","!",";"],ov=new sv(20),cv=(r,l,i)=>{l=l||"",i=i||"";const s=rv.filter(d=>l.indexOf(d)<0&&i.indexOf(d)<0);if(s.length===0)return!0;const c=ov.getRegExp(`(${s.map(d=>d==="?"?"\\?":d).join("|")})`);let f=!c.test(r);if(!f){const d=r.indexOf(i);d>0&&!c.test(r.substring(0,d))&&(f=!0)}return f},zo=function(r,l){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!r)return;if(r[l])return Object.prototype.hasOwnProperty.call(r,l)?r[l]:void 0;const s=l.split(i);let c=r;for(let f=0;f<s.length;){if(!c||typeof c!="object")return;let d,g="";for(let p=f;p<s.length;++p)if(p!==f&&(g+=i),g+=s[p],d=c[g],d!==void 0){if(["string","number","boolean"].indexOf(typeof d)>-1&&p<s.length-1)continue;f+=p-f+1;break}c=d}return c},Hu=r=>r==null?void 0:r.replace("_","-"),fv={type:"logger",log(r){this.output("log",r)},warn(r){this.output("warn",r)},error(r){this.output("error",r)},output(r,l){var i,s;(s=(i=console==null?void 0:console[r])==null?void 0:i.apply)==null||s.call(i,console,l)}};class Bu{constructor(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(l,i)}init(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=i.prefix||"i18next:",this.logger=l||fv,this.options=i,this.debug=i.debug}log(){for(var l=arguments.length,i=new Array(l),s=0;s<l;s++)i[s]=arguments[s];return this.forward(i,"log","",!0)}warn(){for(var l=arguments.length,i=new Array(l),s=0;s<l;s++)i[s]=arguments[s];return this.forward(i,"warn","",!0)}error(){for(var l=arguments.length,i=new Array(l),s=0;s<l;s++)i[s]=arguments[s];return this.forward(i,"error","")}deprecate(){for(var l=arguments.length,i=new Array(l),s=0;s<l;s++)i[s]=arguments[s];return this.forward(i,"warn","WARNING DEPRECATED: ",!0)}forward(l,i,s,c){return c&&!this.debug?null:(ie(l[0])&&(l[0]=`${s}${this.prefix} ${l[0]}`),this.logger[i](l))}create(l){return new Bu(this.logger,{prefix:`${this.prefix}:${l}:`,...this.options})}clone(l){return l=l||this.options,l.prefix=l.prefix||this.prefix,new Bu(this.logger,l)}}var Zt=new Bu;class Xu{constructor(){this.observers={}}on(l,i){return l.split(" ").forEach(s=>{this.observers[s]||(this.observers[s]=new Map);const c=this.observers[s].get(i)||0;this.observers[s].set(i,c+1)}),this}off(l,i){if(this.observers[l]){if(!i){delete this.observers[l];return}this.observers[l].delete(i)}}emit(l){for(var i=arguments.length,s=new Array(i>1?i-1:0),c=1;c<i;c++)s[c-1]=arguments[c];this.observers[l]&&Array.from(this.observers[l].entries()).forEach(d=>{let[g,p]=d;for(let h=0;h<p;h++)g(...s)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(d=>{let[g,p]=d;for(let h=0;h<p;h++)g.apply(g,[l,...s])})}}class np extends Xu{constructor(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=l||{},this.options=i,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 i=this.options.ns.indexOf(l);i>-1&&this.options.ns.splice(i,1)}getResource(l,i,s){var h,y;let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const f=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,d=c.ignoreJSONStructure!==void 0?c.ignoreJSONStructure:this.options.ignoreJSONStructure;let g;l.indexOf(".")>-1?g=l.split("."):(g=[l,i],s&&(Array.isArray(s)?g.push(...s):ie(s)&&f?g.push(...s.split(f)):g.push(s)));const p=Uu(this.data,g);return!p&&!i&&!s&&l.indexOf(".")>-1&&(l=g[0],i=g[1],s=g.slice(2).join(".")),p||!d||!ie(s)?p:zo((y=(h=this.data)==null?void 0:h[l])==null?void 0:y[i],s,f)}addResource(l,i,s,c){let f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const d=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator;let g=[l,i];s&&(g=g.concat(d?s.split(d):s)),l.indexOf(".")>-1&&(g=l.split("."),c=i,i=g[1]),this.addNamespaces(i),tp(this.data,g,c),f.silent||this.emit("added",l,i,s,c)}addResources(l,i,s){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const f in s)(ie(s[f])||Array.isArray(s[f]))&&this.addResource(l,i,f,s[f],{silent:!0});c.silent||this.emit("added",l,i,s)}addResourceBundle(l,i,s,c,f){let d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},g=[l,i];l.indexOf(".")>-1&&(g=l.split("."),c=s,s=i,i=g[1]),this.addNamespaces(i);let p=Uu(this.data,g)||{};d.skipCopy||(s=JSON.parse(JSON.stringify(s))),c?Vp(p,s,f):p={...p,...s},tp(this.data,g,p),d.silent||this.emit("added",l,i,s)}removeResourceBundle(l,i){this.hasResourceBundle(l,i)&&delete this.data[l][i],this.removeNamespaces(i),this.emit("removed",l,i)}hasResourceBundle(l,i){return this.getResource(l,i)!==void 0}getResourceBundle(l,i){return i||(i=this.options.defaultNS),this.getResource(l,i)}getDataByLanguage(l){return this.data[l]}hasLanguageSomeTranslations(l){const i=this.getDataByLanguage(l);return!!(i&&Object.keys(i)||[]).find(c=>i[c]&&Object.keys(i[c]).length>0)}toJSON(){return this.data}}var Yp={processors:{},addPostProcessor(r){this.processors[r.name]=r},handle(r,l,i,s,c){return r.forEach(f=>{var d;l=((d=this.processors[f])==null?void 0:d.process(l,i,s,c))??l}),l}};const ap={},lp=r=>!ie(r)&&typeof r!="boolean"&&typeof r!="number";class qu extends Xu{constructor(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),tv(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],l,this),this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Zt.create("translator")}changeLanguage(l){l&&(this.language=l)}exists(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(l==null)return!1;const s=this.resolve(l,i);return(s==null?void 0:s.res)!==void 0}extractFromKey(l,i){let s=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const c=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let f=i.ns||this.options.defaultNS||[];const d=s&&l.indexOf(s)>-1,g=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!cv(l,s,c);if(d&&!g){const p=l.match(this.interpolator.nestingRegexp);if(p&&p.length>0)return{key:l,namespaces:ie(f)?[f]:f};const h=l.split(s);(s!==c||s===c&&this.options.ns.indexOf(h[0])>-1)&&(f=h.shift()),l=h.join(c)}return{key:l,namespaces:ie(f)?[f]:f}}translate(l,i,s){if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),l==null)return"";Array.isArray(l)||(l=[String(l)]);const c=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,f=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:d,namespaces:g}=this.extractFromKey(l[l.length-1],i),p=g[g.length-1],h=i.lng||this.language,y=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((h==null?void 0:h.toLowerCase())==="cimode"){if(y){const le=i.nsSeparator||this.options.nsSeparator;return c?{res:`${p}${le}${d}`,usedKey:d,exactUsedKey:d,usedLng:h,usedNS:p,usedParams:this.getUsedParamsDetails(i)}:`${p}${le}${d}`}return c?{res:d,usedKey:d,exactUsedKey:d,usedLng:h,usedNS:p,usedParams:this.getUsedParamsDetails(i)}:d}const S=this.resolve(l,i);let b=S==null?void 0:S.res;const A=(S==null?void 0:S.usedKey)||d,R=(S==null?void 0:S.exactUsedKey)||d,k=["[object Number]","[object Function]","[object RegExp]"],M=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,H=!this.i18nFormat||this.i18nFormat.handleAsObject,G=i.count!==void 0&&!ie(i.count),$=qu.hasDefaultValue(i),F=G?this.pluralResolver.getSuffix(h,i.count,i):"",X=i.ordinal&&G?this.pluralResolver.getSuffix(h,i.count,{ordinal:!1}):"",se=G&&!i.ordinal&&i.count===0,W=se&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${F}`]||i[`defaultValue${X}`]||i.defaultValue;let K=b;H&&!b&&$&&(K=W);const J=lp(K),re=Object.prototype.toString.apply(K);if(H&&K&&J&&k.indexOf(re)<0&&!(ie(M)&&Array.isArray(K))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const le=this.options.returnedObjectHandler?this.options.returnedObjectHandler(A,K,{...i,ns:g}):`key '${d} (${this.language})' returned an object instead of string.`;return c?(S.res=le,S.usedParams=this.getUsedParamsDetails(i),S):le}if(f){const le=Array.isArray(K),me=le?[]:{},ft=le?R:A;for(const Me in K)if(Object.prototype.hasOwnProperty.call(K,Me)){const Ce=`${ft}${f}${Me}`;$&&!b?me[Me]=this.translate(Ce,{...i,defaultValue:lp(W)?W[Me]:void 0,joinArrays:!1,ns:g}):me[Me]=this.translate(Ce,{...i,joinArrays:!1,ns:g}),me[Me]===Ce&&(me[Me]=K[Me])}b=me}}else if(H&&ie(M)&&Array.isArray(b))b=b.join(M),b&&(b=this.extendTranslation(b,l,i,s));else{let le=!1,me=!1;!this.isValidLookup(b)&&$&&(le=!0,b=W),this.isValidLookup(b)||(me=!0,b=d);const Me=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&me?void 0:b,Ce=$&&W!==b&&this.options.updateMissing;if(me||le||Ce){if(this.logger.log(Ce?"updateKey":"missingKey",h,p,d,Ce?W:b),f){const oe=this.resolve(d,{...i,keySeparator:!1});oe&&oe.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 _=[];const V=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&V&&V[0])for(let oe=0;oe<V.length;oe++)_.push(V[oe]);else this.options.saveMissingTo==="all"?_=this.languageUtils.toResolveHierarchy(i.lng||this.language):_.push(i.lng||this.language);const I=(oe,T,q)=>{var Y;const Q=$&&q!==b?q:Me;this.options.missingKeyHandler?this.options.missingKeyHandler(oe,p,T,Q,Ce,i):(Y=this.backendConnector)!=null&&Y.saveMissing&&this.backendConnector.saveMissing(oe,p,T,Q,Ce,i),this.emit("missingKey",oe,p,T,b)};this.options.saveMissing&&(this.options.saveMissingPlurals&&G?_.forEach(oe=>{const T=this.pluralResolver.getSuffixes(oe,i);se&&i[`defaultValue${this.options.pluralSeparator}zero`]&&T.indexOf(`${this.options.pluralSeparator}zero`)<0&&T.push(`${this.options.pluralSeparator}zero`),T.forEach(q=>{I([oe],d+q,i[`defaultValue${q}`]||W)})}):I(_,d,W))}b=this.extendTranslation(b,l,i,S,s),me&&b===d&&this.options.appendNamespaceToMissingKey&&(b=`${p}:${d}`),(me||le)&&this.options.parseMissingKeyHandler&&(b=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${p}:${d}`:d,le?b:void 0))}return c?(S.res=b,S.usedParams=this.getUsedParamsDetails(i),S):b}extendTranslation(l,i,s,c,f){var h,y;var d=this;if((h=this.i18nFormat)!=null&&h.parse)l=this.i18nFormat.parse(l,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||c.usedLng,c.usedNS,c.usedKey,{resolved:c});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const S=ie(l)&&(((y=s==null?void 0:s.interpolation)==null?void 0:y.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let b;if(S){const R=l.match(this.interpolator.nestingRegexp);b=R&&R.length}let A=s.replace&&!ie(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(A={...this.options.interpolation.defaultVariables,...A}),l=this.interpolator.interpolate(l,A,s.lng||this.language||c.usedLng,s),S){const R=l.match(this.interpolator.nestingRegexp),k=R&&R.length;b<k&&(s.nest=!1)}!s.lng&&c&&c.res&&(s.lng=this.language||c.usedLng),s.nest!==!1&&(l=this.interpolator.nest(l,function(){for(var R=arguments.length,k=new Array(R),M=0;M<R;M++)k[M]=arguments[M];return(f==null?void 0:f[0])===k[0]&&!s.context?(d.logger.warn(`It seems you are nesting recursively key: ${k[0]} in key: ${i[0]}`),null):d.translate(...k,i)},s)),s.interpolation&&this.interpolator.reset()}const g=s.postProcess||this.options.postProcess,p=ie(g)?[g]:g;return l!=null&&(p!=null&&p.length)&&s.applyPostProcessor!==!1&&(l=Yp.handle(p,l,i,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...c,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),l}resolve(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,c,f,d,g;return ie(l)&&(l=[l]),l.forEach(p=>{if(this.isValidLookup(s))return;const h=this.extractFromKey(p,i),y=h.key;c=y;let S=h.namespaces;this.options.fallbackNS&&(S=S.concat(this.options.fallbackNS));const b=i.count!==void 0&&!ie(i.count),A=b&&!i.ordinal&&i.count===0,R=i.context!==void 0&&(ie(i.context)||typeof i.context=="number")&&i.context!=="",k=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);S.forEach(M=>{var H,G;this.isValidLookup(s)||(g=M,!ap[`${k[0]}-${M}`]&&((H=this.utils)!=null&&H.hasLoadedNamespace)&&!((G=this.utils)!=null&&G.hasLoadedNamespace(g))&&(ap[`${k[0]}-${M}`]=!0,this.logger.warn(`key "${c}" for languages "${k.join(", ")}" won't get resolved as namespace "${g}" 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!!!")),k.forEach($=>{var se;if(this.isValidLookup(s))return;d=$;const F=[y];if((se=this.i18nFormat)!=null&&se.addLookupKeys)this.i18nFormat.addLookupKeys(F,y,$,M,i);else{let W;b&&(W=this.pluralResolver.getSuffix($,i.count,i));const K=`${this.options.pluralSeparator}zero`,J=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(b&&(F.push(y+W),i.ordinal&&W.indexOf(J)===0&&F.push(y+W.replace(J,this.options.pluralSeparator)),A&&F.push(y+K)),R){const re=`${y}${this.options.contextSeparator}${i.context}`;F.push(re),b&&(F.push(re+W),i.ordinal&&W.indexOf(J)===0&&F.push(re+W.replace(J,this.options.pluralSeparator)),A&&F.push(re+K))}}let X;for(;X=F.pop();)this.isValidLookup(s)||(f=X,s=this.getResource($,M,X,i))}))})}),{res:s,usedKey:c,exactUsedKey:f,usedLng:d,usedNS:g}}isValidLookup(l){return l!==void 0&&!(!this.options.returnNull&&l===null)&&!(!this.options.returnEmptyString&&l==="")}getResource(l,i,s){var f;let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(f=this.i18nFormat)!=null&&f.getResource?this.i18nFormat.getResource(l,i,s,c):this.resourceStore.getResource(l,i,s,c)}getUsedParamsDetails(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const i=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=l.replace&&!ie(l.replace);let c=s?l.replace:l;if(s&&typeof l.count<"u"&&(c.count=l.count),this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),!s){c={...c};for(const f of i)delete c[f]}return c}static hasDefaultValue(l){const i="defaultValue";for(const s in l)if(Object.prototype.hasOwnProperty.call(l,s)&&i===s.substring(0,i.length)&&l[s]!==void 0)return!0;return!1}}class ip{constructor(l){this.options=l,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Zt.create("languageUtils")}getScriptPartFromCode(l){if(l=Hu(l),!l||l.indexOf("-")<0)return null;const i=l.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))}getLanguagePartFromCode(l){if(l=Hu(l),!l||l.indexOf("-")<0)return l;const i=l.split("-");return this.formatLanguageCode(i[0])}formatLanguageCode(l){if(ie(l)&&l.indexOf("-")>-1){let i;try{i=Intl.getCanonicalLocales(l)[0]}catch{}return i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i||(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 i;return l.forEach(s=>{if(i)return;const c=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(c))&&(i=c)}),!i&&this.options.supportedLngs&&l.forEach(s=>{if(i)return;const c=this.getLanguagePartFromCode(s);if(this.isSupportedCode(c))return i=c;i=this.options.supportedLngs.find(f=>{if(f===c)return f;if(!(f.indexOf("-")<0&&c.indexOf("-")<0)&&(f.indexOf("-")>0&&c.indexOf("-")<0&&f.substring(0,f.indexOf("-"))===c||f.indexOf(c)===0&&c.length>1))return f})}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}getFallbackCodes(l,i){if(!l)return[];if(typeof l=="function"&&(l=l(i)),ie(l)&&(l=[l]),Array.isArray(l))return l;if(!i)return l.default||[];let s=l[i];return s||(s=l[this.getScriptPartFromCode(i)]),s||(s=l[this.formatLanguageCode(i)]),s||(s=l[this.getLanguagePartFromCode(i)]),s||(s=l.default),s||[]}toResolveHierarchy(l,i){const s=this.getFallbackCodes(i||this.options.fallbackLng||[],l),c=[],f=d=>{d&&(this.isSupportedCode(d)?c.push(d):this.logger.warn(`rejecting language code not found in supportedLngs: ${d}`))};return ie(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))):ie(l)&&f(this.formatLanguageCode(l)),s.forEach(d=>{c.indexOf(d)<0&&f(this.formatLanguageCode(d))}),c}}const up={zero:0,one:1,two:2,few:3,many:4,other:5},sp={select:r=>r===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class dv{constructor(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=l,this.options=i,this.logger=Zt.create("pluralResolver"),this.pluralRulesCache={}}addRule(l,i){this.rules[l]=i}clearCache(){this.pluralRulesCache={}}getRule(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=Hu(l==="dev"?"en":l),c=i.ordinal?"ordinal":"cardinal",f=JSON.stringify({cleanedCode:s,type:c});if(f in this.pluralRulesCache)return this.pluralRulesCache[f];let d;try{d=new Intl.PluralRules(s,{type:c})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),sp;if(!l.match(/-|_/))return sp;const p=this.languageUtils.getLanguagePartFromCode(l);d=this.getRule(p,i)}return this.pluralRulesCache[f]=d,d}needsPlural(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.getRule(l,i);return s||(s=this.getRule("dev",i)),(s==null?void 0:s.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(l,i){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(l,s).map(c=>`${i}${c}`)}getSuffixes(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.getRule(l,i);return s||(s=this.getRule("dev",i)),s?s.resolvedOptions().pluralCategories.sort((c,f)=>up[c]-up[f]).map(c=>`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${c}`):[]}getSuffix(l,i){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const c=this.getRule(l,s);return c?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${c.select(i)}`:(this.logger.warn(`no plural rule found for: ${l}`),this.getSuffix("dev",i,s))}}const rp=function(r,l,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,f=lv(r,l,i);return!f&&c&&ie(i)&&(f=zo(r,i,s),f===void 0&&(f=zo(l,i,s))),f},go=r=>r.replace(/\$/g,"$$$$");class hv{constructor(){var i;let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Zt.create("interpolator"),this.options=l,this.format=((i=l==null?void 0:l.interpolation)==null?void 0:i.format)||(s=>s),this.init(l)}init(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};l.interpolation||(l.interpolation={escapeValue:!0});const{escape:i,escapeValue:s,useRawValueToEscape:c,prefix:f,prefixEscaped:d,suffix:g,suffixEscaped:p,formatSeparator:h,unescapeSuffix:y,unescapePrefix:S,nestingPrefix:b,nestingPrefixEscaped:A,nestingSuffix:R,nestingSuffixEscaped:k,nestingOptionsSeparator:M,maxReplaces:H,alwaysFormat:G}=l.interpolation;this.escape=i!==void 0?i:uv,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=c!==void 0?c:!1,this.prefix=f?Za(f):d||"{{",this.suffix=g?Za(g):p||"}}",this.formatSeparator=h||",",this.unescapePrefix=y?"":S||"-",this.unescapeSuffix=this.unescapePrefix?"":y||"",this.nestingPrefix=b?Za(b):A||Za("$t("),this.nestingSuffix=R?Za(R):k||Za(")"),this.nestingOptionsSeparator=M||",",this.maxReplaces=H||1e3,this.alwaysFormat=G!==void 0?G:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const l=(i,s)=>(i==null?void 0:i.source)===s?(i.lastIndex=0,i):new RegExp(s,"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,i,s,c){var A;let f,d,g;const p=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},h=R=>{if(R.indexOf(this.formatSeparator)<0){const G=rp(i,p,R,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(G,void 0,s,{...c,...i,interpolationkey:R}):G}const k=R.split(this.formatSeparator),M=k.shift().trim(),H=k.join(this.formatSeparator).trim();return this.format(rp(i,p,M,this.options.keySeparator,this.options.ignoreJSONStructure),H,s,{...c,...i,interpolationkey:M})};this.resetRegExp();const y=(c==null?void 0:c.missingInterpolationHandler)||this.options.missingInterpolationHandler,S=((A=c==null?void 0:c.interpolation)==null?void 0:A.skipOnVariables)!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:R=>go(R)},{regex:this.regexp,safeValue:R=>this.escapeValue?go(this.escape(R)):go(R)}].forEach(R=>{for(g=0;f=R.regex.exec(l);){const k=f[1].trim();if(d=h(k),d===void 0)if(typeof y=="function"){const H=y(l,f,c);d=ie(H)?H:""}else if(c&&Object.prototype.hasOwnProperty.call(c,k))d="";else if(S){d=f[0];continue}else this.logger.warn(`missed to pass in variable ${k} for interpolating ${l}`),d="";else!ie(d)&&!this.useRawValueToEscape&&(d=Ph(d));const M=R.safeValue(d);if(l=l.replace(f[0],M),S?(R.regex.lastIndex+=d.length,R.regex.lastIndex-=f[0].length):R.regex.lastIndex=0,g++,g>=this.maxReplaces)break}}),l}nest(l,i){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c,f,d;const g=(p,h)=>{const y=this.nestingOptionsSeparator;if(p.indexOf(y)<0)return p;const S=p.split(new RegExp(`${y}[ ]*{`));let b=`{${S[1]}`;p=S[0],b=this.interpolate(b,d);const A=b.match(/'/g),R=b.match(/"/g);(((A==null?void 0:A.length)??0)%2===0&&!R||R.length%2!==0)&&(b=b.replace(/'/g,'"'));try{d=JSON.parse(b),h&&(d={...h,...d})}catch(k){return this.logger.warn(`failed parsing options string in nesting for key ${p}`,k),`${p}${y}${b}`}return d.defaultValue&&d.defaultValue.indexOf(this.prefix)>-1&&delete d.defaultValue,p};for(;c=this.nestingRegexp.exec(l);){let p=[];d={...s},d=d.replace&&!ie(d.replace)?d.replace:d,d.applyPostProcessor=!1,delete d.defaultValue;let h=!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(),p=y,h=!0}if(f=i(g.call(this,c[1].trim(),d),d),f&&c[0]===l&&!ie(f))return f;ie(f)||(f=Ph(f)),f||(this.logger.warn(`missed to resolve ${c[1]} for nesting ${l}`),f=""),h&&(f=p.reduce((y,S)=>this.format(y,S,s.lng,{...s,interpolationkey:c[1].trim()}),f.trim())),l=l.replace(c[0],f),this.regexp.lastIndex=0}return l}}const pv=r=>{let l=r.toLowerCase().trim();const i={};if(r.indexOf("(")>-1){const s=r.split("(");l=s[0].toLowerCase().trim();const c=s[1].substring(0,s[1].length-1);l==="currency"&&c.indexOf(":")<0?i.currency||(i.currency=c.trim()):l==="relativetime"&&c.indexOf(":")<0?i.range||(i.range=c.trim()):c.split(";").forEach(d=>{if(d){const[g,...p]=d.split(":"),h=p.join(":").trim().replace(/^'+|'+$/g,""),y=g.trim();i[y]||(i[y]=h),h==="false"&&(i[y]=!1),h==="true"&&(i[y]=!0),isNaN(h)||(i[y]=parseInt(h,10))}})}return{formatName:l,formatOptions:i}},Ka=r=>{const l={};return(i,s,c)=>{let f=c;c&&c.interpolationkey&&c.formatParams&&c.formatParams[c.interpolationkey]&&c[c.interpolationkey]&&(f={...f,[c.interpolationkey]:void 0});const d=s+JSON.stringify(f);let g=l[d];return g||(g=r(Hu(s),c),l[d]=g),g(i)}};class gv{constructor(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Zt.create("formatter"),this.options=l,this.formats={number:Ka((i,s)=>{const c=new Intl.NumberFormat(i,{...s});return f=>c.format(f)}),currency:Ka((i,s)=>{const c=new Intl.NumberFormat(i,{...s,style:"currency"});return f=>c.format(f)}),datetime:Ka((i,s)=>{const c=new Intl.DateTimeFormat(i,{...s});return f=>c.format(f)}),relativetime:Ka((i,s)=>{const c=new Intl.RelativeTimeFormat(i,{...s});return f=>c.format(f,s.range||"day")}),list:Ka((i,s)=>{const c=new Intl.ListFormat(i,{...s});return f=>c.format(f)})},this.init(l)}init(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=i.interpolation.formatSeparator||","}add(l,i){this.formats[l.toLowerCase().trim()]=i}addCached(l,i){this.formats[l.toLowerCase().trim()]=Ka(i)}format(l,i,s){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const f=i.split(this.formatSeparator);if(f.length>1&&f[0].indexOf("(")>1&&f[0].indexOf(")")<0&&f.find(g=>g.indexOf(")")>-1)){const g=f.findIndex(p=>p.indexOf(")")>-1);f[0]=[f[0],...f.splice(1,g)].join(this.formatSeparator)}return f.reduce((g,p)=>{var S;const{formatName:h,formatOptions:y}=pv(p);if(this.formats[h]){let b=g;try{const A=((S=c==null?void 0:c.formatParams)==null?void 0:S[c.interpolationkey])||{},R=A.locale||A.lng||c.locale||c.lng||s;b=this.formats[h](g,R,{...y,...c,...A})}catch(A){this.logger.warn(A)}return b}else this.logger.warn(`there was no format function for ${h}`);return g},l)}}const mv=(r,l)=>{r.pending[l]!==void 0&&(delete r.pending[l],r.pendingCount--)};class yv extends Xu{constructor(l,i,s){var f,d;let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=l,this.store=i,this.services=s,this.languageUtils=s.languageUtils,this.options=c,this.logger=Zt.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=[],(d=(f=this.backend)==null?void 0:f.init)==null||d.call(f,s,c.backend,c)}queueLoad(l,i,s,c){const f={},d={},g={},p={};return l.forEach(h=>{let y=!0;i.forEach(S=>{const b=`${h}|${S}`;!s.reload&&this.store.hasResourceBundle(h,S)?this.state[b]=2:this.state[b]<0||(this.state[b]===1?d[b]===void 0&&(d[b]=!0):(this.state[b]=1,y=!1,d[b]===void 0&&(d[b]=!0),f[b]===void 0&&(f[b]=!0),p[S]===void 0&&(p[S]=!0)))}),y||(g[h]=!0)}),(Object.keys(f).length||Object.keys(d).length)&&this.queue.push({pending:d,pendingCount:Object.keys(d).length,loaded:{},errors:[],callback:c}),{toLoad:Object.keys(f),pending:Object.keys(d),toLoadLanguages:Object.keys(g),toLoadNamespaces:Object.keys(p)}}loaded(l,i,s){const c=l.split("|"),f=c[0],d=c[1];i&&this.emit("failedLoading",f,d,i),!i&&s&&this.store.addResourceBundle(f,d,s,void 0,void 0,{skipCopy:!0}),this.state[l]=i?-1:2,i&&s&&(this.state[l]=0);const g={};this.queue.forEach(p=>{av(p.loaded,[f],d),mv(p,l),i&&p.errors.push(i),p.pendingCount===0&&!p.done&&(Object.keys(p.loaded).forEach(h=>{g[h]||(g[h]={});const y=p.loaded[h];y.length&&y.forEach(S=>{g[h][S]===void 0&&(g[h][S]=!0)})}),p.done=!0,p.errors.length?p.callback(p.errors):p.callback())}),this.emit("loaded",g),this.queue=this.queue.filter(p=>!p.done)}read(l,i,s){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,d=arguments.length>5?arguments[5]:void 0;if(!l.length)return d(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:l,ns:i,fcName:s,tried:c,wait:f,callback:d});return}this.readingCalls++;const g=(h,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(h&&y&&c<this.maxRetries){setTimeout(()=>{this.read.call(this,l,i,s,c+1,f*2,d)},f);return}d(h,y)},p=this.backend[s].bind(this.backend);if(p.length===2){try{const h=p(l,i);h&&typeof h.then=="function"?h.then(y=>g(null,y)).catch(g):g(null,h)}catch(h){g(h)}return}return p(l,i,g)}prepareLoading(l,i){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),c&&c();ie(l)&&(l=this.languageUtils.toResolveHierarchy(l)),ie(i)&&(i=[i]);const f=this.queueLoad(l,i,s,c);if(!f.toLoad.length)return f.pending.length||c(),null;f.toLoad.forEach(d=>{this.loadOne(d)})}load(l,i,s){this.prepareLoading(l,i,{},s)}reload(l,i,s){this.prepareLoading(l,i,{reload:!0},s)}loadOne(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const s=l.split("|"),c=s[0],f=s[1];this.read(c,f,"read",void 0,void 0,(d,g)=>{d&&this.logger.warn(`${i}loading namespace ${f} for language ${c} failed`,d),!d&&g&&this.logger.log(`${i}loaded namespace ${f} for language ${c}`,g),this.loaded(l,d,g)})}saveMissing(l,i,s,c,f){var p,h,y,S,b;let d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},g=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((h=(p=this.services)==null?void 0:p.utils)!=null&&h.hasLoadedNamespace&&!((S=(y=this.services)==null?void 0:y.utils)!=null&&S.hasLoadedNamespace(i))){this.logger.warn(`did not save key "${s}" as the namespace "${i}" 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((b=this.backend)!=null&&b.create){const A={...d,isUpdate:f},R=this.backend.create.bind(this.backend);if(R.length<6)try{let k;R.length===5?k=R(l,i,s,c,A):k=R(l,i,s,c),k&&typeof k.then=="function"?k.then(M=>g(null,M)).catch(g):g(null,k)}catch(k){g(k)}else R(l,i,s,c,g,A)}!l||!l[0]||this.store.addResource(l[0],i,s,c)}}}const op=()=>({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:r=>{let l={};if(typeof r[1]=="object"&&(l=r[1]),ie(r[1])&&(l.defaultValue=r[1]),ie(r[2])&&(l.tDescription=r[2]),typeof r[2]=="object"||typeof r[3]=="object"){const i=r[3]||r[2];Object.keys(i).forEach(s=>{l[s]=i[s]})}return l},interpolation:{escapeValue:!0,format:r=>r,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),cp=r=>{var l,i;return ie(r.ns)&&(r.ns=[r.ns]),ie(r.fallbackLng)&&(r.fallbackLng=[r.fallbackLng]),ie(r.fallbackNS)&&(r.fallbackNS=[r.fallbackNS]),((i=(l=r.supportedLngs)==null?void 0:l.indexOf)==null?void 0:i.call(l,"cimode"))<0&&(r.supportedLngs=r.supportedLngs.concat(["cimode"])),typeof r.initImmediate=="boolean"&&(r.initAsync=r.initImmediate),r},Cu=()=>{},vv=r=>{Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(i=>{typeof r[i]=="function"&&(r[i]=r[i].bind(r))})};class ui extends Xu{constructor(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(super(),this.options=cp(l),this.services={},this.logger=Zt,this.modules={external:[]},vv(this),i&&!this.isInitialized&&!l.isClone){if(!this.options.initAsync)return this.init(l,i),this;setTimeout(()=>{this.init(l,i)},0)}}init(){var l=this;let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof i=="function"&&(s=i,i={}),i.defaultNS==null&&i.ns&&(ie(i.ns)?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));const c=op();this.options={...c,...this.options,...cp(i)},this.options.interpolation={...c.interpolation,...this.options.interpolation},i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator);const f=y=>y?typeof y=="function"?new y:y:null;if(!this.options.isClone){this.modules.logger?Zt.init(f(this.modules.logger),this.options):Zt.init(null,this.options);let y;this.modules.formatter?y=this.modules.formatter:y=gv;const S=new ip(this.options);this.store=new np(this.options.resources,this.options);const b=this.services;b.logger=Zt,b.resourceStore=this.store,b.languageUtils=S,b.pluralResolver=new dv(S,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),y&&(!this.options.interpolation.format||this.options.interpolation.format===c.interpolation.format)&&(b.formatter=f(y),b.formatter.init(b,this.options),this.options.interpolation.format=b.formatter.format.bind(b.formatter)),b.interpolator=new hv(this.options),b.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},b.backendConnector=new yv(f(this.modules.backend),b.resourceStore,b,this.options),b.backendConnector.on("*",function(A){for(var R=arguments.length,k=new Array(R>1?R-1:0),M=1;M<R;M++)k[M-1]=arguments[M];l.emit(A,...k)}),this.modules.languageDetector&&(b.languageDetector=f(this.modules.languageDetector),b.languageDetector.init&&b.languageDetector.init(b,this.options.detection,this.options)),this.modules.i18nFormat&&(b.i18nFormat=f(this.modules.i18nFormat),b.i18nFormat.init&&b.i18nFormat.init(this)),this.translator=new qu(this.services,this.options),this.translator.on("*",function(A){for(var R=arguments.length,k=new Array(R>1?R-1:0),M=1;M<R;M++)k[M-1]=arguments[M];l.emit(A,...k)}),this.modules.external.forEach(A=>{A.init&&A.init(this)})}if(this.format=this.options.interpolation.format,s||(s=Cu),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const y=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);y.length>0&&y[0]!=="dev"&&(this.options.lng=y[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(y=>{this[y]=function(){return l.store[y](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(y=>{this[y]=function(){return l.store[y](...arguments),l}});const p=Wl(),h=()=>{const y=(S,b)=>{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),p.resolve(b),s(S,b)};if(this.languages&&!this.isInitialized)return y(null,this.t.bind(this));this.changeLanguage(this.options.lng,y)};return this.options.resources||!this.options.initAsync?h():setTimeout(h,0),p}loadResources(l){var f,d;let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cu;const c=ie(l)?l:this.language;if(typeof l=="function"&&(s=l),!this.options.resources||this.options.partialBundledLanguages){if((c==null?void 0:c.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const g=[],p=h=>{if(!h||h==="cimode")return;this.services.languageUtils.toResolveHierarchy(h).forEach(S=>{S!=="cimode"&&g.indexOf(S)<0&&g.push(S)})};c?p(c):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(y=>p(y)),(d=(f=this.options.preload)==null?void 0:f.forEach)==null||d.call(f,h=>p(h)),this.services.backendConnector.load(g,this.options.ns,h=>{!h&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(h)})}else s(null)}reloadResources(l,i,s){const c=Wl();return typeof l=="function"&&(s=l,l=void 0),typeof i=="function"&&(s=i,i=void 0),l||(l=this.languages),i||(i=this.options.ns),s||(s=Cu),this.services.backendConnector.reload(l,i,f=>{c.resolve(),s(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"&&Yp.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 i=0;i<this.languages.length;i++){const s=this.languages[i];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}changeLanguage(l,i){var s=this;this.isLanguageChangingTo=l;const c=Wl();this.emit("languageChanging",l);const f=p=>{this.language=p,this.languages=this.services.languageUtils.toResolveHierarchy(p),this.resolvedLanguage=void 0,this.setResolvedLanguage(p)},d=(p,h)=>{h?(f(h),this.translator.changeLanguage(h),this.isLanguageChangingTo=void 0,this.emit("languageChanged",h),this.logger.log("languageChanged",h)):this.isLanguageChangingTo=void 0,c.resolve(function(){return s.t(...arguments)}),i&&i(p,function(){return s.t(...arguments)})},g=p=>{var y,S;!l&&!p&&this.services.languageDetector&&(p=[]);const h=ie(p)?p:this.services.languageUtils.getBestMatchFromCodes(p);h&&(this.language||f(h),this.translator.language||this.translator.changeLanguage(h),(S=(y=this.services.languageDetector)==null?void 0:y.cacheUserLanguage)==null||S.call(y,h)),this.loadResources(h,b=>{d(b,h)})};return!l&&this.services.languageDetector&&!this.services.languageDetector.async?g(this.services.languageDetector.detect()):!l&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(g):this.services.languageDetector.detect(g):g(l),c}getFixedT(l,i,s){var c=this;const f=function(d,g){let p;if(typeof g!="object"){for(var h=arguments.length,y=new Array(h>2?h-2:0),S=2;S<h;S++)y[S-2]=arguments[S];p=c.options.overloadTranslationOptionHandler([d,g].concat(y))}else p={...g};p.lng=p.lng||f.lng,p.lngs=p.lngs||f.lngs,p.ns=p.ns||f.ns,p.keyPrefix!==""&&(p.keyPrefix=p.keyPrefix||s||f.keyPrefix);const b=c.options.keySeparator||".";let A;return p.keyPrefix&&Array.isArray(d)?A=d.map(R=>`${p.keyPrefix}${b}${R}`):A=p.keyPrefix?`${p.keyPrefix}${b}${d}`:d,c.t(A,p)};return ie(l)?f.lng=l:f.lngs=l,f.ns=i,f.keyPrefix=s,f}t(){var c;for(var l=arguments.length,i=new Array(l),s=0;s<l;s++)i[s]=arguments[s];return(c=this.translator)==null?void 0:c.translate(...i)}exists(){var c;for(var l=arguments.length,i=new Array(l),s=0;s<l;s++)i[s]=arguments[s];return(c=this.translator)==null?void 0:c.exists(...i)}setDefaultNamespace(l){this.options.defaultNS=l}hasLoadedNamespace(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};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=i.lng||this.resolvedLanguage||this.languages[0],c=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const d=(g,p)=>{const h=this.services.backendConnector.state[`${g}|${p}`];return h===-1||h===0||h===2};if(i.precheck){const g=i.precheck(this,d);if(g!==void 0)return g}return!!(this.hasResourceBundle(s,l)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||d(s,l)&&(!c||d(f,l)))}loadNamespaces(l,i){const s=Wl();return this.options.ns?(ie(l)&&(l=[l]),l.forEach(c=>{this.options.ns.indexOf(c)<0&&this.options.ns.push(c)}),this.loadResources(c=>{s.resolve(),i&&i(c)}),s):(i&&i(),Promise.resolve())}loadLanguages(l,i){const s=Wl();ie(l)&&(l=[l]);const c=this.options.preload||[],f=l.filter(d=>c.indexOf(d)<0&&this.services.languageUtils.isSupportedCode(d));return f.length?(this.options.preload=c.concat(f),this.loadResources(d=>{s.resolve(),i&&i(d)}),s):(i&&i(),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 i=["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 ip(op());return i.indexOf(s.getLanguagePartFromCode(l))>-1||l.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;return new ui(l,i)}cloneInstance(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cu;const s=l.forkResourceStore;s&&delete l.forkResourceStore;const c={...this.options,...l,isClone:!0},f=new ui(c);if((l.debug!==void 0||l.prefix!==void 0)&&(f.logger=f.logger.clone(l)),["store","services","language"].forEach(g=>{f[g]=this[g]}),f.services={...this.services},f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},s){const g=Object.keys(this.store.data).reduce((p,h)=>(p[h]={...this.store.data[h]},Object.keys(p[h]).reduce((y,S)=>(y[S]={...p[h][S]},y),{})),{});f.store=new np(g,c),f.services.resourceStore=f.store}return f.translator=new qu(f.services,c),f.translator.on("*",function(g){for(var p=arguments.length,h=new Array(p>1?p-1:0),y=1;y<p;y++)h[y-1]=arguments[y];f.emit(g,...h)}),f.init(c,i),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 tt=ui.createInstance();tt.createInstance=ui.createInstance;tt.createInstance;tt.dir;tt.init;tt.loadResources;tt.reloadResources;tt.use;tt.changeLanguage;tt.getFixedT;tt.t;tt.exists;tt.setDefaultNamespace;tt.hasLoadedNamespace;tt.loadNamespaces;tt.loadLanguages;var mo={exports:{}},ce={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react.production.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@ var Wy=Object.defineProperty;var Py=(r,l,i)=>l in r?Wy(r,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 fp;function bv(){if(fp)return ce;fp=1;var r=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),S=Symbol.iterator;function b(T){return T===null||typeof T!="object"?null:(T=S&&T[S]||T["@@iterator"],typeof T=="function"?T:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,k={};function M(T,q,Q){this.props=T,this.context=q,this.refs=k,this.updater=Q||A}M.prototype.isReactComponent={},M.prototype.setState=function(T,q){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,q,"setState")},M.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function H(){}H.prototype=M.prototype;function G(T,q,Q){this.props=T,this.context=q,this.refs=k,this.updater=Q||A}var $=G.prototype=new H;$.constructor=G,R($,M.prototype),$.isPureReactComponent=!0;var F=Array.isArray,X={H:null,A:null,T:null,S:null,V:null},ue=Object.prototype.hasOwnProperty;function W(T,q,Q,Y,ee,ye){return Q=ye.ref,{$$typeof:r,type:T,key:q,ref:Q!==void 0?Q:null,props:ye}}function K(T,q){return W(T.type,q,void 0,void 0,void 0,T.props)}function J(T){return typeof T=="object"&&T!==null&&T.$$typeof===r}function re(T){var q={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(Q){return q[Q]})}var le=/\/+/g;function me(T,q){return typeof T=="object"&&T!==null&&T.key!=null?re(""+T.key):q.toString(36)}function ft(){}function Me(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(ft,ft):(T.status="pending",T.then(function(q){T.status==="pending"&&(T.status="fulfilled",T.value=q)},function(q){T.status==="pending"&&(T.status="rejected",T.reason=q)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function Ce(T,q,Q,Y,ee){var ye=typeof T;(ye==="undefined"||ye==="boolean")&&(T=null);var se=!1;if(T===null)se=!0;else switch(ye){case"bigint":case"string":case"number":se=!0;break;case"object":switch(T.$$typeof){case r:case l:se=!0;break;case y:return se=T._init,Ce(se(T._payload),q,Q,Y,ee)}}if(se)return ee=ee(T),se=Y===""?"."+me(T,0):Y,F(ee)?(Q="",se!=null&&(Q=se.replace(le,"$&/")+"/"),Ce(ee,q,Q,"",function(dn){return dn})):ee!=null&&(J(ee)&&(ee=K(ee,Q+(ee.key==null||T&&T.key===ee.key?"":(""+ee.key).replace(le,"$&/")+"/")+se)),q.push(ee)),1;se=0;var dt=Y===""?".":Y+":";if(F(T))for(var ke=0;ke<T.length;ke++)Y=T[ke],ye=dt+me(Y,ke),se+=Ce(Y,q,Q,ye,ee);else if(ke=b(T),typeof ke=="function")for(T=ke.call(T),ke=0;!(Y=T.next()).done;)Y=Y.value,ye=dt+me(Y,ke++),se+=Ce(Y,q,Q,ye,ee);else if(ye==="object"){if(typeof T.then=="function")return Ce(Me(T),q,Q,Y,ee);throw q=String(T),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return se}function _(T,q,Q){if(T==null)return T;var Y=[],ee=0;return Ce(T,Y,"","",function(ye){return q.call(Q,ye,ee++)}),Y}function V(T){if(T._status===-1){var q=T._result;q=q(),q.then(function(Q){(T._status===0||T._status===-1)&&(T._status=1,T._result=Q)},function(Q){(T._status===0||T._status===-1)&&(T._status=2,T._result=Q)}),T._status===-1&&(T._status=0,T._result=q)}if(T._status===1)return T._result.default;throw T._result}var I=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)};function oe(){}return ce.Children={map:_,forEach:function(T,q,Q){_(T,function(){q.apply(this,arguments)},Q)},count:function(T){var q=0;return _(T,function(){q++}),q},toArray:function(T){return _(T,function(q){return q})||[]},only:function(T){if(!J(T))throw Error("React.Children.only expected to receive a single React element child.");return T}},ce.Component=M,ce.Fragment=i,ce.Profiler=c,ce.PureComponent=G,ce.StrictMode=u,ce.Suspense=p,ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,ce.__COMPILER_RUNTIME={__proto__:null,c:function(T){return X.H.useMemoCache(T)}},ce.cache=function(T){return function(){return T.apply(null,arguments)}},ce.cloneElement=function(T,q,Q){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var Y=R({},T.props),ee=T.key,ye=void 0;if(q!=null)for(se in q.ref!==void 0&&(ye=void 0),q.key!==void 0&&(ee=""+q.key),q)!ue.call(q,se)||se==="key"||se==="__self"||se==="__source"||se==="ref"&&q.ref===void 0||(Y[se]=q[se]);var se=arguments.length-2;if(se===1)Y.children=Q;else if(1<se){for(var dt=Array(se),ke=0;ke<se;ke++)dt[ke]=arguments[ke+2];Y.children=dt}return W(T.type,ee,void 0,void 0,ye,Y)},ce.createContext=function(T){return T={$$typeof:d,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:f,_context:T},T},ce.createElement=function(T,q,Q){var Y,ee={},ye=null;if(q!=null)for(Y in q.key!==void 0&&(ye=""+q.key),q)ue.call(q,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(ee[Y]=q[Y]);var se=arguments.length-2;if(se===1)ee.children=Q;else if(1<se){for(var dt=Array(se),ke=0;ke<se;ke++)dt[ke]=arguments[ke+2];ee.children=dt}if(T&&T.defaultProps)for(Y in se=T.defaultProps,se)ee[Y]===void 0&&(ee[Y]=se[Y]);return W(T,ye,void 0,void 0,null,ee)},ce.createRef=function(){return{current:null}},ce.forwardRef=function(T){return{$$typeof:g,render:T}},ce.isValidElement=J,ce.lazy=function(T){return{$$typeof:y,_payload:{_status:-1,_result:T},_init:V}},ce.memo=function(T,q){return{$$typeof:h,type:T,compare:q===void 0?null:q}},ce.startTransition=function(T){var q=X.T,Q={};X.T=Q;try{var Y=T(),ee=X.S;ee!==null&&ee(Q,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(oe,I)}catch(ye){I(ye)}finally{X.T=q}},ce.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},ce.use=function(T){return X.H.use(T)},ce.useActionState=function(T,q,Q){return X.H.useActionState(T,q,Q)},ce.useCallback=function(T,q){return X.H.useCallback(T,q)},ce.useContext=function(T){return X.H.useContext(T)},ce.useDebugValue=function(){},ce.useDeferredValue=function(T,q){return X.H.useDeferredValue(T,q)},ce.useEffect=function(T,q,Q){var Y=X.H;if(typeof Q=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Y.useEffect(T,q)},ce.useId=function(){return X.H.useId()},ce.useImperativeHandle=function(T,q,Q){return X.H.useImperativeHandle(T,q,Q)},ce.useInsertionEffect=function(T,q){return X.H.useInsertionEffect(T,q)},ce.useLayoutEffect=function(T,q){return X.H.useLayoutEffect(T,q)},ce.useMemo=function(T,q){return X.H.useMemo(T,q)},ce.useOptimistic=function(T,q){return X.H.useOptimistic(T,q)},ce.useReducer=function(T,q,Q){return X.H.useReducer(T,q,Q)},ce.useRef=function(T){return X.H.useRef(T)},ce.useState=function(T){return X.H.useState(T)},ce.useSyncExternalStore=function(T,q,Q){return X.H.useSyncExternalStore(T,q,Q)},ce.useTransition=function(){return X.H.useTransition()},ce.version="19.1.0",ce}var dp;function oi(){return dp||(dp=1,mo.exports=bv()),mo.exports}var O=oi();const Qp=Ho(O),Sv=(r,l,i,u)=>{var f,d,g,p;const c=[i,{code:l,...u||{}}];if((d=(f=r==null?void 0:r.services)==null?void 0:f.logger)!=null&&d.forward)return r.services.logger.forward(c,"warn","react-i18next::",!0);aa(c[0])&&(c[0]=`react-i18next:: ${c[0]}`),(p=(g=r==null?void 0:r.services)==null?void 0:g.logger)!=null&&p.warn?r.services.logger.warn(...c):console!=null&&console.warn&&console.warn(...c)},hp={},ko=(r,l,i,u)=>{aa(i)&&hp[i]||(aa(i)&&(hp[i]=new Date),Sv(r,l,i,u))},Xp=(r,l)=>()=>{if(r.isInitialized)l();else{const i=()=>{setTimeout(()=>{r.off("initialized",i)},0),l()};r.on("initialized",i)}},Do=(r,l,i)=>{r.loadNamespaces(l,Xp(r,i))},pp=(r,l,i,u)=>{if(aa(i)&&(i=[i]),r.options.preload&&r.options.preload.indexOf(l)>-1)return Do(r,i,u);i.forEach(c=>{r.options.ns.indexOf(c)<0&&r.options.ns.push(c)}),r.loadLanguages(l,Xp(r,u))},xv=(r,l,i={})=>!l.languages||!l.languages.length?(ko(l,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:l.languages}),!0):l.hasLoadedNamespace(r,{lng:i.lng,precheck:(u,c)=>{var f;if(((f=i.bindI18n)==null?void 0:f.indexOf("languageChanging"))>-1&&u.services.backendConnector.backend&&u.isLanguageChangingTo&&!c(u.isLanguageChangingTo,r))return!1}}),aa=r=>typeof r=="string",Ev=r=>typeof r=="object"&&r!==null,Tv=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Rv={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},wv=r=>Rv[r],Nv=r=>r.replace(Tv,wv);let jo={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Nv};const Av=(r={})=>{jo={...jo,...r}},Ov=()=>jo;let Zp;const Cv=r=>{Zp=r},zv=()=>Zp,kv={type:"3rdParty",init(r){Av(r.options.react),Cv(r)}},Dv=O.createContext();class jv{constructor(){this.usedNamespaces={}}addUsedNamespaces(l){l.forEach(i=>{this.usedNamespaces[i]||(this.usedNamespaces[i]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Mv=(r,l)=>{const i=O.useRef();return O.useEffect(()=>{i.current=r},[r,l]),i.current},Kp=(r,l,i,u)=>r.getFixedT(l,i,u),_v=(r,l,i,u)=>O.useCallback(Kp(r,l,i,u),[r,l,i,u]),nt=(r,l={})=>{var F,X,ue,W;const{i18n:i}=l,{i18n:u,defaultNS:c}=O.useContext(Dv)||{},f=i||u||zv();if(f&&!f.reportNamespaces&&(f.reportNamespaces=new jv),!f){ko(f,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const K=(re,le)=>aa(le)?le:Ev(le)&&aa(le.defaultValue)?le.defaultValue:Array.isArray(re)?re[re.length-1]:re,J=[K,{},!1];return J.t=K,J.i18n={},J.ready=!1,J}(F=f.options.react)!=null&&F.wait&&ko(f,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const d={...Ov(),...f.options.react,...l},{useSuspense:g,keyPrefix:p}=d;let h=c||((X=f.options)==null?void 0:X.defaultNS);h=aa(h)?[h]:h||["translation"],(W=(ue=f.reportNamespaces).addUsedNamespaces)==null||W.call(ue,h);const y=(f.isInitialized||f.initializedStoreOnce)&&h.every(K=>xv(K,f,d)),S=_v(f,l.lng||null,d.nsMode==="fallback"?h:h[0],p),b=()=>S,A=()=>Kp(f,l.lng||null,d.nsMode==="fallback"?h:h[0],p),[R,k]=O.useState(b);let M=h.join();l.lng&&(M=`${l.lng}${M}`);const H=Mv(M),G=O.useRef(!0);O.useEffect(()=>{const{bindI18n:K,bindI18nStore:J}=d;G.current=!0,!y&&!g&&(l.lng?pp(f,l.lng,h,()=>{G.current&&k(A)}):Do(f,h,()=>{G.current&&k(A)})),y&&H&&H!==M&&G.current&&k(A);const re=()=>{G.current&&k(A)};return K&&(f==null||f.on(K,re)),J&&(f==null||f.store.on(J,re)),()=>{G.current=!1,f&&(K==null||K.split(" ").forEach(le=>f.off(le,re))),J&&f&&J.split(" ").forEach(le=>f.store.off(le,re))}},[f,M]),O.useEffect(()=>{G.current&&y&&k(b)},[f,p,y]);const $=[R,f,y];if($.t=R,$.i18n=f,$.ready=y,y||!y&&!g)return $;throw new Promise(K=>{l.lng?pp(f,l.lng,h,()=>K()):Do(f,h,()=>K())})},Lv="ParoiCMS Site Generator",Uv="<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>",Hv="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.",Bv="Add a new text field to the page…",qv="Modify the Site Schema",Gv="Create a Site Schema",$v="Generate the website",Vv="Generate site with sample data (recommended)",Yv="Generate an empty site",Qv="Open the back-office",Xv="Open the site",Zv="Generated Schema",Kv="Tree View",Jv="Site Schema",Fv="Node Types",Wv="Labels",Pv="Select language",Iv="Explanations",e0="Current Activity",t0="An error occurred: {{ message }}",n0="An error occurred",a0="Start Again",l0="Step",i0="Step {{stepNumber}}: {{kind}}",s0="This step is in progress…",u0="This step failed.",r0="This step had no effect.",o0="No session data available",c0="Step not found",f0="Welcome to ParoiCMS Site Generator",d0="Close and start again",h0="Reset Schema",p0="unknown error",g0="Create New Site",m0="Generating your site…",y0="The site is generated",v0="Email:",b0="Password:",S0="I agree",x0="You are about to generate your website.",E0="Cancel",T0="Confirm",R0="Site URL:",w0="Admin URL:",N0="Copy all information to clipboard",A0="<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>",O0="Initial Schema Creation",C0="Schema Update",z0="Site Generation",k0={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…"},D0="Login Email",j0="Login Password",M0="Generated Site",_0="Your session has expired. Please refresh the page to start a new session.",L0="Failed to submit your prompt. Please try again.",U0="Failed to generate the site. Please try again.",H0='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> — ParoiCMS is a personal project, to contact me, come <a href="https://paroi.tech/en" target="_blank">here</a>.',B0="Extend your session",q0="Failed to refresh your session. Please try again.",G0="Error connecting to server. Please check your connection and try again.",$0="Tip: If you want to start over, open the generator in a new tab and close this one.",V0={title:Lv,startInstruction:Uv,createPromptPlaceholder:Hv,updatePromptPlaceholder:Bv,modifySchema:qv,createSchema:Gv,generateTheWebsite:$v,generateSiteWithData:Vv,generateEmptySite:Yv,administration:Qv,viewSite:Xv,generatedSchema:Zv,treeView:Kv,siteSchema:Jv,nodeTypes:Fv,labels:Wv,languageSelector:Pv,explanation:Iv,currentActivity:e0,errorOccurred:t0,unknownErrorOccurred:n0,startAgain:a0,step:l0,stepTitle:i0,stepPending:s0,stepFailed:u0,stepNoEffect:r0,noSessionData:o0,stepNotFound:c0,welcomeTitle:f0,reset:d0,resetSchema:h0,unknownError:p0,createNewSite:g0,generatingSite:m0,siteGenerated:y0,email:v0,password:b0,agree:S0,aboutToGenerateWebsite:x0,cancel:E0,confirm:T0,siteUrl:R0,adminUrl:w0,copyToClipboard:N0,introduction:A0,initialSchema:O0,updateSchema:C0,generateSite:z0,activity:k0,loginEmail:D0,loginPassword:j0,generatedSite:M0,sessionExpired:_0,promptSubmissionFailed:L0,generationFailed:U0,footerText:H0,extendYourSession:B0,sessionRenewalFailed:q0,errorConnectingToServer:G0,newTabRestartMessage:$0},Y0="ParoiCMS - Générateur de Site",Q0="<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>",X0="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.",Z0="Ajoute un nouveau champ texte à la page…",K0="Modifier le schéma du site",J0="Créer un schéma de site",F0="Générer le site web",W0="Générer le site avec des données d'exemple (recommandé)",P0="Générer un site vide",I0="Ouvrir l'espace d'administration du site",eb="Ouvrir le site",tb="Schéma généré",nb="Arborescence",ab="Schéma du site",lb="Types de nœuds",ib="Libellés",sb="Sélectionner la langue",ub="Explications",rb="Activité en cours",ob="Une erreur est survenue : {{ message }}",cb="Une erreur est survenue",fb="Recommencer",db="Étape",hb="Étape {{stepNumber}} : {{kind}}",pb="Cette étape est en cours…",gb="Cette étape a échoué.",mb="Cette étape n'a eu aucun effet.",yb="Données de session non disponibles",vb="Étape introuvable",bb="Bienvenue sur le générateur de site ParoiCMS",Sb="Fermer et réinitialiser",xb="Réinitialiser le schéma",Eb="erreur inconnue",Tb="Créer un nouveau site",Rb="Génération de votre site…",wb="Le site est généré",Nb="Email :",Ab="Mot de passe :",Ob="J'accepte",Cb="Vous êtes sur le point de générer votre site web.",zb="Annuler",kb="Confirmer",Db="URL du site :",jb="URL d'admin :",Mb="Copier toutes les informations dans le presse-papier",_b="<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>",Lb="Création du schéma initial",Ub="Mise à jour du schéma",Hb="Génération du site",Bb={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…"},qb="Email de connexion",Gb="Mot de passe",$b="Site généré",Vb="Votre session a expiré. Veuillez rafraîchir la page pour démarrer une nouvelle session.",Yb="Échec de l'envoi de votre demande. Veuillez réessayer.",Qb="Échec de la génération du site. Veuillez réessayer.",Xb='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> — ParoiCMS est un projet personnel, pour me contacter, passez <a href="https://paroi.tech/fr" target="_blank">par ici</a>.',Zb="Prolonger votre session",Kb="Échec du renouvellement de votre session. Veuillez réessayer.",Jb="Erreur de connexion au serveur. Veuillez vérifier votre connexion et réessayer.",Fb="Astuce : si vous souhaitez repartir de zéro, ouvrez le générateur dans un nouvel onglet et fermez celui-ci.",Wb={title:Y0,startInstruction:Q0,createPromptPlaceholder:X0,updatePromptPlaceholder:Z0,modifySchema:K0,createSchema:J0,generateTheWebsite:F0,generateSiteWithData:W0,generateEmptySite:P0,administration:I0,viewSite:eb,generatedSchema:tb,treeView:nb,siteSchema:ab,nodeTypes:lb,labels:ib,languageSelector:sb,explanation:ub,currentActivity:rb,errorOccurred:ob,unknownErrorOccurred:cb,startAgain:fb,step:db,stepTitle:hb,stepPending:pb,stepFailed:gb,stepNoEffect:mb,noSessionData:yb,stepNotFound:vb,welcomeTitle:bb,reset:Sb,resetSchema:xb,unknownError:Eb,createNewSite:Tb,generatingSite:Rb,siteGenerated:wb,email:Nb,password:Ab,agree:Ob,aboutToGenerateWebsite:Cb,cancel:zb,confirm:kb,siteUrl:Db,adminUrl:jb,copyToClipboard:Mb,introduction:_b,initialSchema:Lb,updateSchema:Ub,generateSite:Hb,activity:Bb,loginEmail:qb,loginPassword:Gb,generatedSite:$b,sessionExpired:Vb,promptSubmissionFailed:Yb,generationFailed:Qb,footerText:Xb,extendYourSession:Zb,sessionRenewalFailed:Kb,errorConnectingToServer:Jb,newTabRestartMessage:Fb},Pb=`<p>
|
|
17
|
+
*/var fp;function bv(){if(fp)return ce;fp=1;var r=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),S=Symbol.iterator;function b(T){return T===null||typeof T!="object"?null:(T=S&&T[S]||T["@@iterator"],typeof T=="function"?T:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,k={};function M(T,q,Q){this.props=T,this.context=q,this.refs=k,this.updater=Q||A}M.prototype.isReactComponent={},M.prototype.setState=function(T,q){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,q,"setState")},M.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function H(){}H.prototype=M.prototype;function G(T,q,Q){this.props=T,this.context=q,this.refs=k,this.updater=Q||A}var $=G.prototype=new H;$.constructor=G,R($,M.prototype),$.isPureReactComponent=!0;var F=Array.isArray,X={H:null,A:null,T:null,S:null,V:null},se=Object.prototype.hasOwnProperty;function W(T,q,Q,Y,ee,ye){return Q=ye.ref,{$$typeof:r,type:T,key:q,ref:Q!==void 0?Q:null,props:ye}}function K(T,q){return W(T.type,q,void 0,void 0,void 0,T.props)}function J(T){return typeof T=="object"&&T!==null&&T.$$typeof===r}function re(T){var q={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(Q){return q[Q]})}var le=/\/+/g;function me(T,q){return typeof T=="object"&&T!==null&&T.key!=null?re(""+T.key):q.toString(36)}function ft(){}function Me(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(ft,ft):(T.status="pending",T.then(function(q){T.status==="pending"&&(T.status="fulfilled",T.value=q)},function(q){T.status==="pending"&&(T.status="rejected",T.reason=q)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function Ce(T,q,Q,Y,ee){var ye=typeof T;(ye==="undefined"||ye==="boolean")&&(T=null);var ue=!1;if(T===null)ue=!0;else switch(ye){case"bigint":case"string":case"number":ue=!0;break;case"object":switch(T.$$typeof){case r:case l:ue=!0;break;case y:return ue=T._init,Ce(ue(T._payload),q,Q,Y,ee)}}if(ue)return ee=ee(T),ue=Y===""?"."+me(T,0):Y,F(ee)?(Q="",ue!=null&&(Q=ue.replace(le,"$&/")+"/"),Ce(ee,q,Q,"",function(dn){return dn})):ee!=null&&(J(ee)&&(ee=K(ee,Q+(ee.key==null||T&&T.key===ee.key?"":(""+ee.key).replace(le,"$&/")+"/")+ue)),q.push(ee)),1;ue=0;var dt=Y===""?".":Y+":";if(F(T))for(var ke=0;ke<T.length;ke++)Y=T[ke],ye=dt+me(Y,ke),ue+=Ce(Y,q,Q,ye,ee);else if(ke=b(T),typeof ke=="function")for(T=ke.call(T),ke=0;!(Y=T.next()).done;)Y=Y.value,ye=dt+me(Y,ke++),ue+=Ce(Y,q,Q,ye,ee);else if(ye==="object"){if(typeof T.then=="function")return Ce(Me(T),q,Q,Y,ee);throw q=String(T),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return ue}function _(T,q,Q){if(T==null)return T;var Y=[],ee=0;return Ce(T,Y,"","",function(ye){return q.call(Q,ye,ee++)}),Y}function V(T){if(T._status===-1){var q=T._result;q=q(),q.then(function(Q){(T._status===0||T._status===-1)&&(T._status=1,T._result=Q)},function(Q){(T._status===0||T._status===-1)&&(T._status=2,T._result=Q)}),T._status===-1&&(T._status=0,T._result=q)}if(T._status===1)return T._result.default;throw T._result}var I=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)};function oe(){}return ce.Children={map:_,forEach:function(T,q,Q){_(T,function(){q.apply(this,arguments)},Q)},count:function(T){var q=0;return _(T,function(){q++}),q},toArray:function(T){return _(T,function(q){return q})||[]},only:function(T){if(!J(T))throw Error("React.Children.only expected to receive a single React element child.");return T}},ce.Component=M,ce.Fragment=i,ce.Profiler=c,ce.PureComponent=G,ce.StrictMode=s,ce.Suspense=p,ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,ce.__COMPILER_RUNTIME={__proto__:null,c:function(T){return X.H.useMemoCache(T)}},ce.cache=function(T){return function(){return T.apply(null,arguments)}},ce.cloneElement=function(T,q,Q){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var Y=R({},T.props),ee=T.key,ye=void 0;if(q!=null)for(ue in q.ref!==void 0&&(ye=void 0),q.key!==void 0&&(ee=""+q.key),q)!se.call(q,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&q.ref===void 0||(Y[ue]=q[ue]);var ue=arguments.length-2;if(ue===1)Y.children=Q;else if(1<ue){for(var dt=Array(ue),ke=0;ke<ue;ke++)dt[ke]=arguments[ke+2];Y.children=dt}return W(T.type,ee,void 0,void 0,ye,Y)},ce.createContext=function(T){return T={$$typeof:d,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:f,_context:T},T},ce.createElement=function(T,q,Q){var Y,ee={},ye=null;if(q!=null)for(Y in q.key!==void 0&&(ye=""+q.key),q)se.call(q,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(ee[Y]=q[Y]);var ue=arguments.length-2;if(ue===1)ee.children=Q;else if(1<ue){for(var dt=Array(ue),ke=0;ke<ue;ke++)dt[ke]=arguments[ke+2];ee.children=dt}if(T&&T.defaultProps)for(Y in ue=T.defaultProps,ue)ee[Y]===void 0&&(ee[Y]=ue[Y]);return W(T,ye,void 0,void 0,null,ee)},ce.createRef=function(){return{current:null}},ce.forwardRef=function(T){return{$$typeof:g,render:T}},ce.isValidElement=J,ce.lazy=function(T){return{$$typeof:y,_payload:{_status:-1,_result:T},_init:V}},ce.memo=function(T,q){return{$$typeof:h,type:T,compare:q===void 0?null:q}},ce.startTransition=function(T){var q=X.T,Q={};X.T=Q;try{var Y=T(),ee=X.S;ee!==null&&ee(Q,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(oe,I)}catch(ye){I(ye)}finally{X.T=q}},ce.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},ce.use=function(T){return X.H.use(T)},ce.useActionState=function(T,q,Q){return X.H.useActionState(T,q,Q)},ce.useCallback=function(T,q){return X.H.useCallback(T,q)},ce.useContext=function(T){return X.H.useContext(T)},ce.useDebugValue=function(){},ce.useDeferredValue=function(T,q){return X.H.useDeferredValue(T,q)},ce.useEffect=function(T,q,Q){var Y=X.H;if(typeof Q=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Y.useEffect(T,q)},ce.useId=function(){return X.H.useId()},ce.useImperativeHandle=function(T,q,Q){return X.H.useImperativeHandle(T,q,Q)},ce.useInsertionEffect=function(T,q){return X.H.useInsertionEffect(T,q)},ce.useLayoutEffect=function(T,q){return X.H.useLayoutEffect(T,q)},ce.useMemo=function(T,q){return X.H.useMemo(T,q)},ce.useOptimistic=function(T,q){return X.H.useOptimistic(T,q)},ce.useReducer=function(T,q,Q){return X.H.useReducer(T,q,Q)},ce.useRef=function(T){return X.H.useRef(T)},ce.useState=function(T){return X.H.useState(T)},ce.useSyncExternalStore=function(T,q,Q){return X.H.useSyncExternalStore(T,q,Q)},ce.useTransition=function(){return X.H.useTransition()},ce.version="19.1.0",ce}var dp;function oi(){return dp||(dp=1,mo.exports=bv()),mo.exports}var O=oi();const Qp=Ho(O),Sv=(r,l,i,s)=>{var f,d,g,p;const c=[i,{code:l,...s||{}}];if((d=(f=r==null?void 0:r.services)==null?void 0:f.logger)!=null&&d.forward)return r.services.logger.forward(c,"warn","react-i18next::",!0);aa(c[0])&&(c[0]=`react-i18next:: ${c[0]}`),(p=(g=r==null?void 0:r.services)==null?void 0:g.logger)!=null&&p.warn?r.services.logger.warn(...c):console!=null&&console.warn&&console.warn(...c)},hp={},ko=(r,l,i,s)=>{aa(i)&&hp[i]||(aa(i)&&(hp[i]=new Date),Sv(r,l,i,s))},Xp=(r,l)=>()=>{if(r.isInitialized)l();else{const i=()=>{setTimeout(()=>{r.off("initialized",i)},0),l()};r.on("initialized",i)}},Do=(r,l,i)=>{r.loadNamespaces(l,Xp(r,i))},pp=(r,l,i,s)=>{if(aa(i)&&(i=[i]),r.options.preload&&r.options.preload.indexOf(l)>-1)return Do(r,i,s);i.forEach(c=>{r.options.ns.indexOf(c)<0&&r.options.ns.push(c)}),r.loadLanguages(l,Xp(r,s))},xv=(r,l,i={})=>!l.languages||!l.languages.length?(ko(l,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:l.languages}),!0):l.hasLoadedNamespace(r,{lng:i.lng,precheck:(s,c)=>{var f;if(((f=i.bindI18n)==null?void 0:f.indexOf("languageChanging"))>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!c(s.isLanguageChangingTo,r))return!1}}),aa=r=>typeof r=="string",Ev=r=>typeof r=="object"&&r!==null,Tv=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Rv={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},wv=r=>Rv[r],Nv=r=>r.replace(Tv,wv);let jo={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Nv};const Av=(r={})=>{jo={...jo,...r}},Ov=()=>jo;let Zp;const Cv=r=>{Zp=r},zv=()=>Zp,kv={type:"3rdParty",init(r){Av(r.options.react),Cv(r)}},Dv=O.createContext();class jv{constructor(){this.usedNamespaces={}}addUsedNamespaces(l){l.forEach(i=>{this.usedNamespaces[i]||(this.usedNamespaces[i]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Mv=(r,l)=>{const i=O.useRef();return O.useEffect(()=>{i.current=r},[r,l]),i.current},Kp=(r,l,i,s)=>r.getFixedT(l,i,s),_v=(r,l,i,s)=>O.useCallback(Kp(r,l,i,s),[r,l,i,s]),nt=(r,l={})=>{var F,X,se,W;const{i18n:i}=l,{i18n:s,defaultNS:c}=O.useContext(Dv)||{},f=i||s||zv();if(f&&!f.reportNamespaces&&(f.reportNamespaces=new jv),!f){ko(f,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const K=(re,le)=>aa(le)?le:Ev(le)&&aa(le.defaultValue)?le.defaultValue:Array.isArray(re)?re[re.length-1]:re,J=[K,{},!1];return J.t=K,J.i18n={},J.ready=!1,J}(F=f.options.react)!=null&&F.wait&&ko(f,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const d={...Ov(),...f.options.react,...l},{useSuspense:g,keyPrefix:p}=d;let h=c||((X=f.options)==null?void 0:X.defaultNS);h=aa(h)?[h]:h||["translation"],(W=(se=f.reportNamespaces).addUsedNamespaces)==null||W.call(se,h);const y=(f.isInitialized||f.initializedStoreOnce)&&h.every(K=>xv(K,f,d)),S=_v(f,l.lng||null,d.nsMode==="fallback"?h:h[0],p),b=()=>S,A=()=>Kp(f,l.lng||null,d.nsMode==="fallback"?h:h[0],p),[R,k]=O.useState(b);let M=h.join();l.lng&&(M=`${l.lng}${M}`);const H=Mv(M),G=O.useRef(!0);O.useEffect(()=>{const{bindI18n:K,bindI18nStore:J}=d;G.current=!0,!y&&!g&&(l.lng?pp(f,l.lng,h,()=>{G.current&&k(A)}):Do(f,h,()=>{G.current&&k(A)})),y&&H&&H!==M&&G.current&&k(A);const re=()=>{G.current&&k(A)};return K&&(f==null||f.on(K,re)),J&&(f==null||f.store.on(J,re)),()=>{G.current=!1,f&&(K==null||K.split(" ").forEach(le=>f.off(le,re))),J&&f&&J.split(" ").forEach(le=>f.store.off(le,re))}},[f,M]),O.useEffect(()=>{G.current&&y&&k(b)},[f,p,y]);const $=[R,f,y];if($.t=R,$.i18n=f,$.ready=y,y||!y&&!g)return $;throw new Promise(K=>{l.lng?pp(f,l.lng,h,()=>K()):Do(f,h,()=>K())})},Lv="ParoiCMS Site Generator",Uv="<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>",Hv="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.",Bv="Add a new text field to the page…",qv="Modify the Site Schema",Gv="Create a Site Schema",$v="Generate the website",Vv="Generate site with sample data (recommended)",Yv="Generate an empty site",Qv="Open the back-office",Xv="Open the site",Zv="Generated Schema",Kv="Tree View",Jv="Site Schema",Fv="Node Types",Wv="Labels",Pv="Select language",Iv="Explanations",e0="Current Activity",t0="An error occurred: {{ message }}",n0="An error occurred",a0="Start Again",l0="Step",i0="Step {{stepNumber}}: {{kind}}",u0="This step is in progress…",s0="This step failed.",r0="This step had no effect.",o0="No session data available",c0="Step not found",f0="Welcome to ParoiCMS Site Generator",d0="Close and start again",h0="Reset Schema",p0="unknown error",g0="Create New Site",m0="Generating your site…",y0="The site is generated",v0="Email:",b0="Password:",S0="I agree",x0="You are about to generate your website.",E0="Cancel",T0="Confirm",R0="Site URL:",w0="Admin URL:",N0="Copy all information to clipboard",A0="<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>",O0="Initial Schema Creation",C0="Schema Update",z0="Site Generation",k0={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…"},D0="Login Email",j0="Login Password",M0="Generated Site",_0="Your session has expired. Please refresh the page to start a new session.",L0="Failed to submit your prompt. Please try again.",U0="Failed to generate the site. Please try again.",H0='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> — ParoiCMS is a personal project, to contact me, come <a href="https://paroi.tech/en" target="_blank">here</a>.',B0="Extend your session",q0="Failed to refresh your session. Please try again.",G0="Error connecting to server. Please check your connection and try again.",$0="Tip: If you want to start over, open the generator in a new tab and close this one.",V0={title:Lv,startInstruction:Uv,createPromptPlaceholder:Hv,updatePromptPlaceholder:Bv,modifySchema:qv,createSchema:Gv,generateTheWebsite:$v,generateSiteWithData:Vv,generateEmptySite:Yv,administration:Qv,viewSite:Xv,generatedSchema:Zv,treeView:Kv,siteSchema:Jv,nodeTypes:Fv,labels:Wv,languageSelector:Pv,explanation:Iv,currentActivity:e0,errorOccurred:t0,unknownErrorOccurred:n0,startAgain:a0,step:l0,stepTitle:i0,stepPending:u0,stepFailed:s0,stepNoEffect:r0,noSessionData:o0,stepNotFound:c0,welcomeTitle:f0,reset:d0,resetSchema:h0,unknownError:p0,createNewSite:g0,generatingSite:m0,siteGenerated:y0,email:v0,password:b0,agree:S0,aboutToGenerateWebsite:x0,cancel:E0,confirm:T0,siteUrl:R0,adminUrl:w0,copyToClipboard:N0,introduction:A0,initialSchema:O0,updateSchema:C0,generateSite:z0,activity:k0,loginEmail:D0,loginPassword:j0,generatedSite:M0,sessionExpired:_0,promptSubmissionFailed:L0,generationFailed:U0,footerText:H0,extendYourSession:B0,sessionRenewalFailed:q0,errorConnectingToServer:G0,newTabRestartMessage:$0},Y0="ParoiCMS - Générateur de Site",Q0="<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>",X0="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.",Z0="Ajoute un nouveau champ texte à la page…",K0="Modifier le schéma du site",J0="Créer un schéma de site",F0="Générer le site web",W0="Générer le site avec des données d'exemple (recommandé)",P0="Générer un site vide",I0="Ouvrir l'espace d'administration du site",eb="Ouvrir le site",tb="Schéma généré",nb="Arborescence",ab="Schéma du site",lb="Types de nœuds",ib="Libellés",ub="Sélectionner la langue",sb="Explications",rb="Activité en cours",ob="Une erreur est survenue : {{ message }}",cb="Une erreur est survenue",fb="Recommencer",db="Étape",hb="Étape {{stepNumber}} : {{kind}}",pb="Cette étape est en cours…",gb="Cette étape a échoué.",mb="Cette étape n'a eu aucun effet.",yb="Données de session non disponibles",vb="Étape introuvable",bb="Bienvenue sur le générateur de site ParoiCMS",Sb="Fermer et réinitialiser",xb="Réinitialiser le schéma",Eb="erreur inconnue",Tb="Créer un nouveau site",Rb="Génération de votre site…",wb="Le site est généré",Nb="Email :",Ab="Mot de passe :",Ob="J'accepte",Cb="Vous êtes sur le point de générer votre site web.",zb="Annuler",kb="Confirmer",Db="URL du site :",jb="URL d'admin :",Mb="Copier toutes les informations dans le presse-papier",_b="<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>",Lb="Création du schéma initial",Ub="Mise à jour du schéma",Hb="Génération du site",Bb={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…"},qb="Email de connexion",Gb="Mot de passe",$b="Site généré",Vb="Votre session a expiré. Veuillez rafraîchir la page pour démarrer une nouvelle session.",Yb="Échec de l'envoi de votre demande. Veuillez réessayer.",Qb="Échec de la génération du site. Veuillez réessayer.",Xb='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> — ParoiCMS est un projet personnel, pour me contacter, passez <a href="https://paroi.tech/fr" target="_blank">par ici</a>.',Zb="Prolonger votre session",Kb="Échec du renouvellement de votre session. Veuillez réessayer.",Jb="Erreur de connexion au serveur. Veuillez vérifier votre connexion et réessayer.",Fb="Astuce : si vous souhaitez repartir de zéro, ouvrez le générateur dans un nouvel onglet et fermez celui-ci.",Wb={title:Y0,startInstruction:Q0,createPromptPlaceholder:X0,updatePromptPlaceholder:Z0,modifySchema:K0,createSchema:J0,generateTheWebsite:F0,generateSiteWithData:W0,generateEmptySite:P0,administration:I0,viewSite:eb,generatedSchema:tb,treeView:nb,siteSchema:ab,nodeTypes:lb,labels:ib,languageSelector:ub,explanation:sb,currentActivity:rb,errorOccurred:ob,unknownErrorOccurred:cb,startAgain:fb,step:db,stepTitle:hb,stepPending:pb,stepFailed:gb,stepNoEffect:mb,noSessionData:yb,stepNotFound:vb,welcomeTitle:bb,reset:Sb,resetSchema:xb,unknownError:Eb,createNewSite:Tb,generatingSite:Rb,siteGenerated:wb,email:Nb,password:Ab,agree:Ob,aboutToGenerateWebsite:Cb,cancel:zb,confirm:kb,siteUrl:Db,adminUrl:jb,copyToClipboard:Mb,introduction:_b,initialSchema:Lb,updateSchema:Ub,generateSite:Hb,activity:Bb,loginEmail:qb,loginPassword:Gb,generatedSite:$b,sessionExpired:Vb,promptSubmissionFailed:Yb,generationFailed:Qb,footerText:Xb,extendYourSession:Zb,sessionRenewalFailed:Kb,errorConnectingToServer:Jb,newTabRestartMessage:Fb},Pb=`<p>
|
|
18
18
|
Welcome to the Site Generator of ParoiCMS. ParoiCMS is:
|
|
19
19
|
</p>
|
|
20
20
|
<ul>
|
|
@@ -44,8 +44,7 @@ var Wy=Object.defineProperty;var Py=(r,l,i)=>l in r?Wy(r,l,{enumerable:!0,config
|
|
|
44
44
|
environment.</strong>
|
|
45
45
|
</p>
|
|
46
46
|
<p>
|
|
47
|
-
Your data
|
|
48
|
-
tracking cookies except for those of the reCAPTCHA. A session identifier will follow you on the
|
|
47
|
+
Your data will be kept for debug purposes. A session identifier will follow you on the
|
|
49
48
|
tab of your browser, it will be deleted when you close the tab.
|
|
50
49
|
</p>`,Ib=`<p>
|
|
51
50
|
Bienvenue dans le générateur de sites de ParoiCMS. ParoiCMS est :
|
|
@@ -79,9 +78,8 @@ var Wy=Object.defineProperty;var Py=(r,l,i)=>l in r?Wy(r,l,{enumerable:!0,config
|
|
|
79
78
|
exécuté dans un environnement local.</strong>
|
|
80
79
|
</p>
|
|
81
80
|
<p>
|
|
82
|
-
Vos données
|
|
83
|
-
|
|
84
|
-
de votre navigateur, il sera supprimé lorsque vous fermerez l'onglet.
|
|
81
|
+
Vos données seront conservées à des fins de débogage. Un identifiant de session vous suivra sur
|
|
82
|
+
l'onglet de votre navigateur, il sera supprimé lorsque vous fermerez l'onglet.
|
|
85
83
|
</p>`,eS=`<p>
|
|
86
84
|
Congratulations! Your website has been generated.
|
|
87
85
|
</p>
|
|
@@ -147,7 +145,7 @@ var Wy=Object.defineProperty;var Py=(r,l,i)=>l in r?Wy(r,l,{enumerable:!0,config
|
|
|
147
145
|
*
|
|
148
146
|
* This source code is licensed under the MIT license found in the
|
|
149
147
|
* LICENSE file in the root directory of this source tree.
|
|
150
|
-
*/var gp;function aS(){return gp||(gp=1,function(r){function l(_,V){var I=_.length;_.push(V);e:for(;0<I;){var oe=I-1>>>1,T=_[oe];if(0<c(T,V))_[oe]=V,_[I]=T,I=oe;else break e}}function i(_){return _.length===0?null:_[0]}function
|
|
148
|
+
*/var gp;function aS(){return gp||(gp=1,function(r){function l(_,V){var I=_.length;_.push(V);e:for(;0<I;){var oe=I-1>>>1,T=_[oe];if(0<c(T,V))_[oe]=V,_[I]=T,I=oe;else break e}}function i(_){return _.length===0?null:_[0]}function s(_){if(_.length===0)return null;var V=_[0],I=_.pop();if(I!==V){_[0]=I;e:for(var oe=0,T=_.length,q=T>>>1;oe<q;){var Q=2*(oe+1)-1,Y=_[Q],ee=Q+1,ye=_[ee];if(0>c(Y,I))ee<T&&0>c(ye,Y)?(_[oe]=ye,_[ee]=I,oe=ee):(_[oe]=Y,_[Q]=I,oe=Q);else if(ee<T&&0>c(ye,I))_[oe]=ye,_[ee]=I,oe=ee;else break e}}return V}function c(_,V){var I=_.sortIndex-V.sortIndex;return I!==0?I:_.id-V.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;r.unstable_now=function(){return f.now()}}else{var d=Date,g=d.now();r.unstable_now=function(){return d.now()-g}}var p=[],h=[],y=1,S=null,b=3,A=!1,R=!1,k=!1,M=!1,H=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;function F(_){for(var V=i(h);V!==null;){if(V.callback===null)s(h);else if(V.startTime<=_)s(h),V.sortIndex=V.expirationTime,l(p,V);else break;V=i(h)}}function X(_){if(k=!1,F(_),!R)if(i(p)!==null)R=!0,se||(se=!0,me());else{var V=i(h);V!==null&&Ce(X,V.startTime-_)}}var se=!1,W=-1,K=5,J=-1;function re(){return M?!0:!(r.unstable_now()-J<K)}function le(){if(M=!1,se){var _=r.unstable_now();J=_;var V=!0;try{e:{R=!1,k&&(k=!1,G(W),W=-1),A=!0;var I=b;try{t:{for(F(_),S=i(p);S!==null&&!(S.expirationTime>_&&re());){var oe=S.callback;if(typeof oe=="function"){S.callback=null,b=S.priorityLevel;var T=oe(S.expirationTime<=_);if(_=r.unstable_now(),typeof T=="function"){S.callback=T,F(_),V=!0;break t}S===i(p)&&s(p),F(_)}else s(p);S=i(p)}if(S!==null)V=!0;else{var q=i(h);q!==null&&Ce(X,q.startTime-_),V=!1}}break e}finally{S=null,b=I,A=!1}V=void 0}}finally{V?me():se=!1}}}var me;if(typeof $=="function")me=function(){$(le)};else if(typeof MessageChannel<"u"){var ft=new MessageChannel,Me=ft.port2;ft.port1.onmessage=le,me=function(){Me.postMessage(null)}}else me=function(){H(le,0)};function Ce(_,V){W=H(function(){_(r.unstable_now())},V)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(_){_.callback=null},r.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"):K=0<_?Math.floor(1e3/_):5},r.unstable_getCurrentPriorityLevel=function(){return b},r.unstable_next=function(_){switch(b){case 1:case 2:case 3:var V=3;break;default:V=b}var I=b;b=V;try{return _()}finally{b=I}},r.unstable_requestPaint=function(){M=!0},r.unstable_runWithPriority=function(_,V){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var I=b;b=_;try{return V()}finally{b=I}},r.unstable_scheduleCallback=function(_,V,I){var oe=r.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?oe+I:oe):I=oe,_){case 1:var T=-1;break;case 2:T=250;break;case 5:T=1073741823;break;case 4:T=1e4;break;default:T=5e3}return T=I+T,_={id:y++,callback:V,priorityLevel:_,startTime:I,expirationTime:T,sortIndex:-1},I>oe?(_.sortIndex=I,l(h,_),i(p)===null&&_===i(h)&&(k?(G(W),W=-1):k=!0,Ce(X,I-oe))):(_.sortIndex=T,l(p,_),R||A||(R=!0,se||(se=!0,me()))),_},r.unstable_shouldYield=re,r.unstable_wrapCallback=function(_){var V=b;return function(){var I=b;b=V;try{return _.apply(this,arguments)}finally{b=I}}}}(bo)),bo}var mp;function lS(){return mp||(mp=1,vo.exports=aS()),vo.exports}var So={exports:{}},Ie={};/**
|
|
151
149
|
* @license React
|
|
152
150
|
* react-dom.production.js
|
|
153
151
|
*
|
|
@@ -155,7 +153,7 @@ var Wy=Object.defineProperty;var Py=(r,l,i)=>l in r?Wy(r,l,{enumerable:!0,config
|
|
|
155
153
|
*
|
|
156
154
|
* This source code is licensed under the MIT license found in the
|
|
157
155
|
* LICENSE file in the root directory of this source tree.
|
|
158
|
-
*/var yp;function iS(){if(yp)return Ie;yp=1;var r=oi();function l(p){var h="https://react.dev/errors/"+p;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)h+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var
|
|
156
|
+
*/var yp;function iS(){if(yp)return Ie;yp=1;var r=oi();function l(p){var h="https://react.dev/errors/"+p;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)h+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={d:{f:i,r:function(){throw Error(l(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(p,h,y){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:S==null?null:""+S,children:p,containerInfo:h,implementation:y}}var d=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(p,h){if(p==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Ie.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Ie.createPortal=function(p,h){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(l(299));return f(p,h,null,y)},Ie.flushSync=function(p){var h=d.T,y=s.p;try{if(d.T=null,s.p=2,p)return p()}finally{d.T=h,s.p=y,s.d.f()}},Ie.preconnect=function(p,h){typeof p=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,s.d.C(p,h))},Ie.prefetchDNS=function(p){typeof p=="string"&&s.d.D(p)},Ie.preinit=function(p,h){if(typeof p=="string"&&h&&typeof h.as=="string"){var y=h.as,S=g(y,h.crossOrigin),b=typeof h.integrity=="string"?h.integrity:void 0,A=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;y==="style"?s.d.S(p,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:S,integrity:b,fetchPriority:A}):y==="script"&&s.d.X(p,{crossOrigin:S,integrity:b,fetchPriority:A,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Ie.preinitModule=function(p,h){if(typeof p=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var y=g(h.as,h.crossOrigin);s.d.M(p,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&s.d.M(p)},Ie.preload=function(p,h){if(typeof p=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var y=h.as,S=g(y,h.crossOrigin);s.d.L(p,y,{crossOrigin:S,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Ie.preloadModule=function(p,h){if(typeof p=="string")if(h){var y=g(h.as,h.crossOrigin);s.d.m(p,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else s.d.m(p)},Ie.requestFormReset=function(p){s.d.r(p)},Ie.unstable_batchedUpdates=function(p,h){return p(h)},Ie.useFormState=function(p,h,y){return d.H.useFormState(p,h,y)},Ie.useFormStatus=function(){return d.H.useHostTransitionStatus()},Ie.version="19.1.0",Ie}var vp;function uS(){if(vp)return So.exports;vp=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(l){console.error(l)}}return r(),So.exports=iS(),So.exports}/**
|
|
159
157
|
* @license React
|
|
160
158
|
* react-dom-client.production.js
|
|
161
159
|
*
|
|
@@ -163,17 +161,17 @@ var Wy=Object.defineProperty;var Py=(r,l,i)=>l in r?Wy(r,l,{enumerable:!0,config
|
|
|
163
161
|
*
|
|
164
162
|
* This source code is licensed under the MIT license found in the
|
|
165
163
|
* LICENSE file in the root directory of this source tree.
|
|
166
|
-
*/var bp;function uS(){if(bp)return Pl;bp=1;var r=lS(),l=oi(),i=sS();function u(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 d(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 g(e){if(f(e)!==e)throw Error(u(188))}function p(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(u(188));return t!==e?null:e}for(var n=e,a=t;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(a=s.return,a!==null){n=a;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return g(s),e;if(o===a)return g(s),t;o=o.sibling}throw Error(u(188))}if(n.return!==a.return)n=s,a=o;else{for(var m=!1,v=s.child;v;){if(v===n){m=!0,n=s,a=o;break}if(v===a){m=!0,a=s,n=o;break}v=v.sibling}if(!m){for(v=o.child;v;){if(v===n){m=!0,n=o,a=s;break}if(v===a){m=!0,a=o,n=s;break}v=v.sibling}if(!m)throw Error(u(189))}}if(n.alternate!==a)throw Error(u(190))}if(n.tag!==3)throw Error(u(188));return n.stateNode.current===n?e:t}function h(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=h(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"),A=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),H=Symbol.for("react.provider"),G=Symbol.for("react.consumer"),$=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),ue=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),re=Symbol.for("react.memo_cache_sentinel"),le=Symbol.iterator;function me(e){return e===null||typeof e!="object"?null:(e=le&&e[le]||e["@@iterator"],typeof e=="function"?e:null)}var ft=Symbol.for("react.client.reference");function Me(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ft?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case M:return"Profiler";case k:return"StrictMode";case X:return"Suspense";case ue:return"SuspenseList";case J:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case $:return(e.displayName||"Context")+".Provider";case G: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 W:return t=e.displayName||null,t!==null?t:Me(e.type)||"Memo";case K:t=e._payload,e=e._init;try{return Me(e(t))}catch{}}return null}var Ce=Array.isArray,_=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},oe=[],T=-1;function q(e){return{current:e}}function Q(e){0>T||(e.current=oe[T],oe[T]=null,T--)}function Y(e,t){T++,oe[T]=e.current,e.current=t}var ee=q(null),ye=q(null),se=q(null),dt=q(null);function ke(e,t){switch(Y(se,t),Y(ye,e),Y(ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Rh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Rh(t),e=wh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Q(ee),Y(ee,e)}function dn(){Q(ee),Q(ye),Q(se)}function Ps(e){e.memoizedState!==null&&Y(dt,e);var t=ee.current,n=wh(t,e.type);t!==n&&(Y(ye,e),Y(ee,n))}function pi(e){ye.current===e&&(Q(ee),Q(ye)),dt.current===e&&(Q(dt),Ql._currentValue=I)}var Is=Object.prototype.hasOwnProperty,eu=r.unstable_scheduleCallback,tu=r.unstable_cancelCallback,Cg=r.unstable_shouldYield,zg=r.unstable_requestPaint,qt=r.unstable_now,kg=r.unstable_getCurrentPriorityLevel,ac=r.unstable_ImmediatePriority,lc=r.unstable_UserBlockingPriority,gi=r.unstable_NormalPriority,Dg=r.unstable_LowPriority,ic=r.unstable_IdlePriority,jg=r.log,Mg=r.unstable_setDisableYieldValue,Ia=null,ht=null;function hn(e){if(typeof jg=="function"&&Mg(e),ht&&typeof ht.setStrictMode=="function")try{ht.setStrictMode(Ia,e)}catch{}}var pt=Math.clz32?Math.clz32:Ug,_g=Math.log,Lg=Math.LN2;function Ug(e){return e>>>=0,e===0?32:31-(_g(e)/Lg|0)|0}var mi=256,yi=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 vi(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var s=0,o=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var v=a&134217727;return v!==0?(a=v&~o,a!==0?s=Bn(a):(m&=v,m!==0?s=Bn(m):n||(n=v&~e,n!==0&&(s=Bn(n))))):(v=a&~o,v!==0?s=Bn(v):m!==0?s=Bn(m):n||(n=a&~e,n!==0&&(s=Bn(n)))),s===0?0:t!==0&&t!==s&&(t&o)===0&&(o=s&-s,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:s}function el(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Hg(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 sc(){var e=mi;return mi<<=1,(mi&4194048)===0&&(mi=256),e}function uc(){var e=yi;return yi<<=1,(yi&62914560)===0&&(yi=4194304),e}function nu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function tl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Bg(e,t,n,a,s,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,z=e.hiddenUpdates;for(n=m&~n;0<n;){var L=31-pt(n),B=1<<L;v[L]=0,x[L]=-1;var D=z[L];if(D!==null)for(z[L]=null,L=0;L<D.length;L++){var j=D[L];j!==null&&(j.lane&=-536870913)}n&=~B}a!==0&&rc(e,a,0),o!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=o&~(m&~t))}function rc(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 oc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-pt(n),s=1<<a;s&t|e[a]&t&&(e[a]|=t),n&=~s}}function au(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 lu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function cc(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:Yh(e.type))}function qg(e,t){var n=V.p;try{return V.p=e,t()}finally{V.p=n}}var pn=Math.random().toString(36).slice(2),We="__reactFiber$"+pn,st="__reactProps$"+pn,ra="__reactContainer$"+pn,iu="__reactEvents$"+pn,Gg="__reactListeners$"+pn,$g="__reactHandles$"+pn,fc="__reactResources$"+pn,nl="__reactMarker$"+pn;function su(e){delete e[We],delete e[st],delete e[iu],delete e[Gg],delete e[$g]}function oa(e){var t=e[We];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ra]||n[We]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ch(e);e!==null;){if(n=e[We])return n;e=Ch(e)}return t}e=n,n=e.parentNode}return null}function ca(e){if(e=e[We]||e[ra]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function al(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function fa(e){var t=e[fc];return t||(t=e[fc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ye(e){e[nl]=!0}var dc=new Set,hc={};function qn(e,t){da(e,t),da(e+"Capture",t)}function da(e,t){for(hc[e]=t,e=0;e<t.length;e++)dc.add(t[e])}var Vg=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]*$"),pc={},gc={};function Yg(e){return Is.call(gc,e)?!0:Is.call(pc,e)?!1:Vg.test(e)?gc[e]=!0:(pc[e]=!0,!1)}function bi(e,t,n){if(Yg(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 Si(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 Kt(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 uu,mc;function ha(e){if(uu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);uu=t&&t[1]||"",mc=-1<n.stack.indexOf(`
|
|
164
|
+
*/var bp;function sS(){if(bp)return Pl;bp=1;var r=lS(),l=oi(),i=uS();function s(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 d(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 g(e){if(f(e)!==e)throw Error(s(188))}function p(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(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 g(u),e;if(o===a)return g(u),t;o=o.sibling}throw Error(s(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(s(189))}}if(n.alternate!==a)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function h(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=h(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"),A=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),H=Symbol.for("react.provider"),G=Symbol.for("react.consumer"),$=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),re=Symbol.for("react.memo_cache_sentinel"),le=Symbol.iterator;function me(e){return e===null||typeof e!="object"?null:(e=le&&e[le]||e["@@iterator"],typeof e=="function"?e:null)}var ft=Symbol.for("react.client.reference");function Me(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ft?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case M:return"Profiler";case k:return"StrictMode";case X:return"Suspense";case se:return"SuspenseList";case J:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case $:return(e.displayName||"Context")+".Provider";case G: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 W:return t=e.displayName||null,t!==null?t:Me(e.type)||"Memo";case K:t=e._payload,e=e._init;try{return Me(e(t))}catch{}}return null}var Ce=Array.isArray,_=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},oe=[],T=-1;function q(e){return{current:e}}function Q(e){0>T||(e.current=oe[T],oe[T]=null,T--)}function Y(e,t){T++,oe[T]=e.current,e.current=t}var ee=q(null),ye=q(null),ue=q(null),dt=q(null);function ke(e,t){switch(Y(ue,t),Y(ye,e),Y(ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Rh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Rh(t),e=wh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Q(ee),Y(ee,e)}function dn(){Q(ee),Q(ye),Q(ue)}function Pu(e){e.memoizedState!==null&&Y(dt,e);var t=ee.current,n=wh(t,e.type);t!==n&&(Y(ye,e),Y(ee,n))}function pi(e){ye.current===e&&(Q(ee),Q(ye)),dt.current===e&&(Q(dt),Ql._currentValue=I)}var Iu=Object.prototype.hasOwnProperty,es=r.unstable_scheduleCallback,ts=r.unstable_cancelCallback,Cg=r.unstable_shouldYield,zg=r.unstable_requestPaint,qt=r.unstable_now,kg=r.unstable_getCurrentPriorityLevel,ac=r.unstable_ImmediatePriority,lc=r.unstable_UserBlockingPriority,gi=r.unstable_NormalPriority,Dg=r.unstable_LowPriority,ic=r.unstable_IdlePriority,jg=r.log,Mg=r.unstable_setDisableYieldValue,Ia=null,ht=null;function hn(e){if(typeof jg=="function"&&Mg(e),ht&&typeof ht.setStrictMode=="function")try{ht.setStrictMode(Ia,e)}catch{}}var pt=Math.clz32?Math.clz32:Ug,_g=Math.log,Lg=Math.LN2;function Ug(e){return e>>>=0,e===0?32:31-(_g(e)/Lg|0)|0}var mi=256,yi=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 vi(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 el(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Hg(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 uc(){var e=mi;return mi<<=1,(mi&4194048)===0&&(mi=256),e}function sc(){var e=yi;return yi<<=1,(yi&62914560)===0&&(yi=4194304),e}function ns(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function tl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Bg(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,z=e.hiddenUpdates;for(n=m&~n;0<n;){var L=31-pt(n),B=1<<L;v[L]=0,x[L]=-1;var D=z[L];if(D!==null)for(z[L]=null,L=0;L<D.length;L++){var j=D[L];j!==null&&(j.lane&=-536870913)}n&=~B}a!==0&&rc(e,a,0),o!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=o&~(m&~t))}function rc(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 oc(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 as(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 ls(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function cc(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:Yh(e.type))}function qg(e,t){var n=V.p;try{return V.p=e,t()}finally{V.p=n}}var pn=Math.random().toString(36).slice(2),We="__reactFiber$"+pn,ut="__reactProps$"+pn,ra="__reactContainer$"+pn,is="__reactEvents$"+pn,Gg="__reactListeners$"+pn,$g="__reactHandles$"+pn,fc="__reactResources$"+pn,nl="__reactMarker$"+pn;function us(e){delete e[We],delete e[ut],delete e[is],delete e[Gg],delete e[$g]}function oa(e){var t=e[We];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ra]||n[We]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ch(e);e!==null;){if(n=e[We])return n;e=Ch(e)}return t}e=n,n=e.parentNode}return null}function ca(e){if(e=e[We]||e[ra]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function al(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function fa(e){var t=e[fc];return t||(t=e[fc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ye(e){e[nl]=!0}var dc=new Set,hc={};function qn(e,t){da(e,t),da(e+"Capture",t)}function da(e,t){for(hc[e]=t,e=0;e<t.length;e++)dc.add(t[e])}var Vg=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]*$"),pc={},gc={};function Yg(e){return Iu.call(gc,e)?!0:Iu.call(pc,e)?!1:Vg.test(e)?gc[e]=!0:(pc[e]=!0,!1)}function bi(e,t,n){if(Yg(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 Si(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 Kt(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 ss,mc;function ha(e){if(ss===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ss=t&&t[1]||"",mc=-1<n.stack.indexOf(`
|
|
167
165
|
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
168
|
-
`+
|
|
166
|
+
`+ss+e+mc}var rs=!1;function os(e,t){if(!e||rs)return"";rs=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(j){var D=j}Reflect.construct(e,[],B)}else{try{B.call()}catch(j){D=j}e.call(B.prototype)}}else{try{throw Error()}catch(j){D=j}(B=e())&&typeof B.catch=="function"&&B.catch(function(){})}}catch(j){if(j&&D&&typeof j.stack=="string")return[j.stack,D.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(`
|
|
169
167
|
`),z=v.split(`
|
|
170
|
-
`);for(
|
|
171
|
-
`+x[a].replace(" at new "," at ");return e.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",e.displayName)),L}while(1<=a&&0<=
|
|
168
|
+
`);for(u=a=0;a<x.length&&!x[a].includes("DetermineComponentFrameRoot");)a++;for(;u<z.length&&!z[u].includes("DetermineComponentFrameRoot");)u++;if(a===x.length||u===z.length)for(a=x.length-1,u=z.length-1;1<=a&&0<=u&&x[a]!==z[u];)u--;for(;1<=a&&0<=u;a--,u--)if(x[a]!==z[u]){if(a!==1||u!==1)do if(a--,u--,0>u||x[a]!==z[u]){var L=`
|
|
169
|
+
`+x[a].replace(" at new "," at ");return e.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",e.displayName)),L}while(1<=a&&0<=u);break}}}finally{rs=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ha(n):""}function Qg(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 os(e.type,!1);case 11:return os(e.type.render,!1);case 1:return os(e.type,!0);case 31:return ha("Activity");default:return""}}function yc(e){try{var t="";do t+=Qg(e),e=e.return;while(e);return t}catch(n){return`
|
|
172
170
|
Error generating stack: `+n.message+`
|
|
173
|
-
`+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 vc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Xg(e){var t=vc(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 s=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.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 xi(e){e._valueTracker||(e._valueTracker=Xg(e))}function bc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=vc(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Ei(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 Zg=/[\n"\\]/g;function Rt(e){return e.replace(Zg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function cu(e,t,n,a,s,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?fu(e,m,Tt(t)):n!=null?fu(e,m,Tt(n)):a!=null&&e.removeAttribute("value"),s==null&&o!=null&&(e.defaultChecked=!!o),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Tt(v):e.removeAttribute("name")}function Sc(e,t,n,a,s,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??s,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 fu(e,t,n){t==="number"&&Ei(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function pa(e,t,n,a){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Tt(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,a&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function xc(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 Ec(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(u(92));if(Ce(a)){if(1<a.length)throw Error(u(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 Kg=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 Tc(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||Kg.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Rc(e,t,n){if(t!=null&&typeof t!="object")throw Error(u(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 s in t)a=t[s],t.hasOwnProperty(s)&&n[s]!==a&&Tc(e,s,a)}else for(var o in t)t.hasOwnProperty(o)&&Tc(e,o,t[o])}function du(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 Jg=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"]]),Fg=/^[\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 Ti(e){return Fg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var hu=null;function pu(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 wc(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(cu(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 s=a[st]||null;if(!s)throw Error(u(90));cu(a,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&bc(a)}break e;case"textarea":xc(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&pa(e,!!n.multiple,t,!1)}}}var gu=!1;function Nc(e,t,n){if(gu)return e(t,n);gu=!0;try{var a=e(t);return a}finally{if(gu=!1,(ma!==null||ya!==null)&&(rs(),ma&&(t=ma,e=ya,ya=ma=null,wc(t),e)))for(t=0;t<e.length;t++)wc(e[t])}}function ll(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(u(231,t,typeof n));return n}var Jt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),mu=!1;if(Jt)try{var il={};Object.defineProperty(il,"passive",{get:function(){mu=!0}}),window.addEventListener("test",il,il),window.removeEventListener("test",il,il)}catch{mu=!1}var gn=null,yu=null,Ri=null;function Ac(){if(Ri)return Ri;var e,t=yu,n=t.length,a,s="value"in gn?gn.value:gn.textContent,o=s.length;for(e=0;e<n&&t[e]===s[e];e++);var m=n-e;for(a=1;a<=m&&t[n-a]===s[o-a];a++);return Ri=s.slice(e,1<a?1-a:void 0)}function wi(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 Ni(){return!0}function Oc(){return!1}function ut(e){function t(n,a,s,o,m){this._reactName=n,this._targetInst=s,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)?Ni:Oc,this.isPropagationStopped=Oc,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=Ni)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ni)},persist:function(){},isPersistent:Ni}),t}var Gn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ai=ut(Gn),sl=y({},Gn,{view:0,detail:0}),Wg=ut(sl),vu,bu,ul,Oi=y({},sl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xu,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"?(vu=e.screenX-ul.screenX,bu=e.screenY-ul.screenY):bu=vu=0,ul=e),vu)},movementY:function(e){return"movementY"in e?e.movementY:bu}}),Cc=ut(Oi),Pg=y({},Oi,{dataTransfer:0}),Ig=ut(Pg),em=y({},sl,{relatedTarget:0}),Su=ut(em),tm=y({},Gn,{animationName:0,elapsedTime:0,pseudoElement:0}),nm=ut(tm),am=y({},Gn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lm=ut(am),im=y({},Gn,{data:0}),zc=ut(im),sm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},um={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"},rm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function om(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=rm[e])?!!t[e]:!1}function xu(){return om}var cm=y({},sl,{key:function(e){if(e.key){var t=sm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=wi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?um[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xu,charCode:function(e){return e.type==="keypress"?wi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?wi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),fm=ut(cm),dm=y({},Oi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kc=ut(dm),hm=y({},sl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xu}),pm=ut(hm),gm=y({},Gn,{propertyName:0,elapsedTime:0,pseudoElement:0}),mm=ut(gm),ym=y({},Oi,{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}),vm=ut(ym),bm=y({},Gn,{newState:0,oldState:0}),Sm=ut(bm),xm=[9,13,27,32],Eu=Jt&&"CompositionEvent"in window,rl=null;Jt&&"documentMode"in document&&(rl=document.documentMode);var Em=Jt&&"TextEvent"in window&&!rl,Dc=Jt&&(!Eu||rl&&8<rl&&11>=rl),jc=" ",Mc=!1;function _c(e,t){switch(e){case"keyup":return xm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var va=!1;function Tm(e,t){switch(e){case"compositionend":return Lc(t);case"keypress":return t.which!==32?null:(Mc=!0,jc);case"textInput":return e=t.data,e===jc&&Mc?null:e;default:return null}}function Rm(e,t){if(va)return e==="compositionend"||!Eu&&_c(e,t)?(e=Ac(),Ri=yu=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 Dc&&t.locale!=="ko"?null:t.data;default:return null}}var wm={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 Uc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!wm[e.type]:t==="textarea"}function Hc(e,t,n,a){ma?ya?ya.push(a):ya=[a]:ma=a,t=ps(t,"onChange"),0<t.length&&(n=new Ai("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var ol=null,cl=null;function Nm(e){bh(e,0)}function Ci(e){var t=al(e);if(bc(t))return e}function Bc(e,t){if(e==="change")return t}var qc=!1;if(Jt){var Tu;if(Jt){var Ru="oninput"in document;if(!Ru){var Gc=document.createElement("div");Gc.setAttribute("oninput","return;"),Ru=typeof Gc.oninput=="function"}Tu=Ru}else Tu=!1;qc=Tu&&(!document.documentMode||9<document.documentMode)}function $c(){ol&&(ol.detachEvent("onpropertychange",Vc),cl=ol=null)}function Vc(e){if(e.propertyName==="value"&&Ci(cl)){var t=[];Hc(t,cl,e,pu(e)),Nc(Nm,t)}}function Am(e,t,n){e==="focusin"?($c(),ol=t,cl=n,ol.attachEvent("onpropertychange",Vc)):e==="focusout"&&$c()}function Om(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ci(cl)}function Cm(e,t){if(e==="click")return Ci(t)}function zm(e,t){if(e==="input"||e==="change")return Ci(t)}function km(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gt=typeof Object.is=="function"?Object.is:km;function fl(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 s=n[a];if(!Is.call(t,s)||!gt(e[s],t[s]))return!1}return!0}function Yc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Qc(e,t){var n=Yc(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=Yc(n)}}function Xc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zc(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ei(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=Ei(e.document)}return t}function wu(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 Dm=Jt&&"documentMode"in document&&11>=document.documentMode,ba=null,Nu=null,dl=null,Au=!1;function Kc(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Au||ba==null||ba!==Ei(a)||(a=ba,"selectionStart"in a&&wu(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}),dl&&fl(dl,a)||(dl=a,a=ps(Nu,"onSelect"),0<a.length&&(t=new Ai("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")},Ou={},Jc={};Jt&&(Jc=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 Vn(e){if(Ou[e])return Ou[e];if(!Sa[e])return e;var t=Sa[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Jc)return Ou[e]=t[n];return e}var Fc=Vn("animationend"),Wc=Vn("animationiteration"),Pc=Vn("animationstart"),jm=Vn("transitionrun"),Mm=Vn("transitionstart"),_m=Vn("transitioncancel"),Ic=Vn("transitionend"),ef=new Map,Cu="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(" ");Cu.push("scrollEnd");function _t(e,t){ef.set(e,t),qn(t,[e])}var tf=new WeakMap;function wt(e,t){if(typeof e=="object"&&e!==null){var n=tf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:yc(t)},tf.set(e,t),t)}return{value:e,source:t,stack:yc(t)}}var Nt=[],xa=0,zu=0;function zi(){for(var e=xa,t=zu=xa=0;t<e;){var n=Nt[t];Nt[t++]=null;var a=Nt[t];Nt[t++]=null;var s=Nt[t];Nt[t++]=null;var o=Nt[t];if(Nt[t++]=null,a!==null&&s!==null){var m=a.pending;m===null?s.next=s:(s.next=m.next,m.next=s),a.pending=s}o!==0&&nf(n,s,o)}}function ki(e,t,n,a){Nt[xa++]=e,Nt[xa++]=t,Nt[xa++]=n,Nt[xa++]=a,zu|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function ku(e,t,n,a){return ki(e,t,n,a),Di(e)}function Ea(e,t){return ki(e,null,null,t),Di(e)}function nf(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var s=!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||(s=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,s&&t!==null&&(s=31-pt(n),e=o.hiddenUpdates,a=e[s],a===null?e[s]=[t]:a.push(t),t.lane=n|536870912),o):null}function Di(e){if(50<Ul)throw Ul=0,Ur=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ta={};function Lm(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 Lm(e,t,n,a)}function Du(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ft(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 af(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 ji(e,t,n,a,s,o){var m=0;if(a=e,typeof e=="function")Du(e)&&(m=1);else if(typeof e=="string")m=Hy(e,n,ee.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case J:return e=mt(31,n,t,s),e.elementType=J,e.lanes=o,e;case R:return Yn(n.children,s,o,t);case k:m=8,s|=24;break;case M:return e=mt(12,n,t,s|2),e.elementType=M,e.lanes=o,e;case X:return e=mt(13,n,t,s),e.elementType=X,e.lanes=o,e;case ue:return e=mt(19,n,t,s),e.elementType=ue,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case H:case $:m=10;break e;case G:m=9;break e;case F:m=11;break e;case W:m=14;break e;case K:m=16,a=null;break e}m=29,n=Error(u(130,e===null?"null":typeof e,"")),a=null}return t=mt(m,n,t,s),t.elementType=e,t.type=a,t.lanes=o,t}function Yn(e,t,n,a){return e=mt(7,e,a,t),e.lanes=n,e}function ju(e,t,n){return e=mt(6,e,null,t),e.lanes=n,e}function Mu(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,Mi=null,_i=0,At=[],Ot=0,Qn=null,Wt=1,Pt="";function Xn(e,t){Ra[wa++]=_i,Ra[wa++]=Mi,Mi=e,_i=t}function lf(e,t,n){At[Ot++]=Wt,At[Ot++]=Pt,At[Ot++]=Qn,Qn=e;var a=Wt;e=Pt;var s=32-pt(a)-1;a&=~(1<<s),n+=1;var o=32-pt(t)+s;if(30<o){var m=s-s%5;o=(a&(1<<m)-1).toString(32),a>>=m,s-=m,Wt=1<<32-pt(t)+s|n<<s|a,Pt=o+e}else Wt=1<<o|n<<s|a,Pt=e}function _u(e){e.return!==null&&(Xn(e,1),lf(e,1,0))}function Lu(e){for(;e===Mi;)Mi=Ra[--wa],Ra[wa]=null,_i=Ra[--wa],Ra[wa]=null;for(;e===Qn;)Qn=At[--Ot],At[Ot]=null,Pt=At[--Ot],At[Ot]=null,Wt=At[--Ot],At[Ot]=null}var at=null,Le=null,be=!1,Zn=null,Gt=!1,Uu=Error(u(519));function Kn(e){var t=Error(u(418,""));throw gl(wt(t,e)),Uu}function sf(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[We]=e,t[st]=a,n){case"dialog":pe("cancel",t),pe("close",t);break;case"iframe":case"object":case"embed":pe("load",t);break;case"video":case"audio":for(n=0;n<Bl.length;n++)pe(Bl[n],t);break;case"source":pe("error",t);break;case"img":case"image":case"link":pe("error",t),pe("load",t);break;case"details":pe("toggle",t);break;case"input":pe("invalid",t),Sc(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0),xi(t);break;case"select":pe("invalid",t);break;case"textarea":pe("invalid",t),Ec(t,a.value,a.defaultValue,a.children),xi(t)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||Th(t.textContent,n)?(a.popover!=null&&(pe("beforetoggle",t),pe("toggle",t)),a.onScroll!=null&&pe("scroll",t),a.onScrollEnd!=null&&pe("scrollend",t),a.onClick!=null&&(t.onclick=gs),t=!0):t=!1,t||Kn(e)}function uf(e){for(at=e.return;at;)switch(at.tag){case 5:case 13:Gt=!1;return;case 27:case 3:Gt=!0;return;default:at=at.return}}function hl(e){if(e!==at)return!1;if(!be)return uf(e),be=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Ir(e.type,e.memoizedProps)),n=!n),n&&Le&&Kn(e),uf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(n=e.data,n==="/$"){if(t===0){Le=Ut(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}Le=null}}else t===27?(t=Le,kn(e.type)?(e=ao,ao=null,Le=e):Le=t):Le=at?Ut(e.stateNode.nextSibling):null;return!0}function pl(){Le=at=null,be=!1}function rf(){var e=Zn;return e!==null&&(ct===null?ct=e:ct.push.apply(ct,e),Zn=null),e}function gl(e){Zn===null?Zn=[e]:Zn.push(e)}var Hu=q(null),Jn=null,It=null;function mn(e,t,n){Y(Hu,t._currentValue),t._currentValue=n}function en(e){e._currentValue=Hu.current,Q(Hu)}function Bu(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 qu(e,t,n,a){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var o=s.dependencies;if(o!==null){var m=s.child;o=o.firstContext;e:for(;o!==null;){var v=o;o=s;for(var x=0;x<t.length;x++)if(v.context===t[x]){o.lanes|=n,v=o.alternate,v!==null&&(v.lanes|=n),Bu(o.return,n,e),a||(m=null);break e}o=v.next}}else if(s.tag===18){if(m=s.return,m===null)throw Error(u(341));m.lanes|=n,o=m.alternate,o!==null&&(o.lanes|=n),Bu(m,n,e),m=null}else m=s.child;if(m!==null)m.return=s;else for(m=s;m!==null;){if(m===e){m=null;break}if(s=m.sibling,s!==null){s.return=m.return,m=s;break}m=m.return}s=m}}function ml(e,t,n,a){e=null;for(var s=t,o=!1;s!==null;){if(!o){if((s.flags&524288)!==0)o=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var m=s.alternate;if(m===null)throw Error(u(387));if(m=m.memoizedProps,m!==null){var v=s.type;gt(s.pendingProps.value,m.value)||(e!==null?e.push(v):e=[v])}}else if(s===dt.current){if(m=s.alternate,m===null)throw Error(u(387));m.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(Ql):e=[Ql])}s=s.return}e!==null&&qu(t,e,n,a),t.flags|=262144}function Li(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,It=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Pe(e){return of(Jn,e)}function Ui(e,t){return Jn===null&&Fn(e),of(e,t)}function of(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},It===null){if(e===null)throw Error(u(308));It=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else It=It.next=t;return n}var Um=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()})}},Hm=r.unstable_scheduleCallback,Bm=r.unstable_NormalPriority,$e={$$typeof:$,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Gu(){return{controller:new Um,data:new Map,refCount:0}}function yl(e){e.refCount--,e.refCount===0&&Hm(Bm,function(){e.controller.abort()})}var vl=null,$u=0,Na=0,Aa=null;function qm(e,t){if(vl===null){var n=vl=[];$u=0,Na=Yr(),Aa={status:"pending",value:void 0,then:function(a){n.push(a)}}}return $u++,t.then(cf,cf),t}function cf(){if(--$u===0&&vl!==null){Aa!==null&&(Aa.status="fulfilled");var e=vl;vl=null,Na=0,Aa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Gm(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var s=0;s<n.length;s++)(0,n[s])(t)},function(s){for(a.status="rejected",a.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),a}var ff=_.S;_.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&qm(e,t),ff!==null&&ff(e,t)};var Wn=q(null);function Vu(){var e=Wn.current;return e!==null?e:ze.pooledCache}function Hi(e,t){t===null?Y(Wn,Wn.current):Y(Wn,t.pool)}function df(){var e=Vu();return e===null?null:{parent:$e._currentValue,pool:e}}var bl=Error(u(460)),hf=Error(u(474)),Bi=Error(u(542)),Yu={then:function(){}};function pf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function qi(){}function gf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(qi,qi),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,yf(e),e;default:if(typeof t.status=="string")t.then(qi,qi);else{if(e=ze,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=a}},function(a){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,yf(e),e}throw Sl=t,bl}}var Sl=null;function mf(){if(Sl===null)throw Error(u(459));var e=Sl;return Sl=null,e}function yf(e){if(e===bl||e===Bi)throw Error(u(483))}var yn=!1;function Qu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xu(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,(xe&2)!==0){var s=a.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),a.pending=t,t=Di(e),nf(e,null,n),t}return ki(e,a,t,n),Di(e)}function xl(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,oc(e,n)}}function Zu(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var s=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?s=o=m:o=o.next=m,n=n.next}while(n!==null);o===null?s=o=t:o=o.next=t}else s=o=t;n={baseState:a.baseState,firstBaseUpdate:s,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 Ku=!1;function El(){if(Ku){var e=Aa;if(e!==null)throw e}}function Tl(e,t,n,a){Ku=!1;var s=e.updateQueue;yn=!1;var o=s.firstBaseUpdate,m=s.lastBaseUpdate,v=s.shared.pending;if(v!==null){s.shared.pending=null;var x=v,z=x.next;x.next=null,m===null?o=z:m.next=z,m=x;var L=e.alternate;L!==null&&(L=L.updateQueue,v=L.lastBaseUpdate,v!==m&&(v===null?L.firstBaseUpdate=z:v.next=z,L.lastBaseUpdate=x))}if(o!==null){var B=s.baseState;m=0,L=z=x=null,v=o;do{var D=v.lane&-536870913,j=D!==v.lane;if(j?(ge&D)===D:(a&D)===D){D!==0&&D===Na&&(Ku=!0),L!==null&&(L=L.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var ae=e,te=v;D=t;var Ne=n;switch(te.tag){case 1:if(ae=te.payload,typeof ae=="function"){B=ae.call(Ne,B,D);break e}B=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=te.payload,D=typeof ae=="function"?ae.call(Ne,B,D):ae,D==null)break e;B=y({},B,D);break e;case 2:yn=!0}}D=v.callback,D!==null&&(e.flags|=64,j&&(e.flags|=8192),j=s.callbacks,j===null?s.callbacks=[D]:j.push(D))}else j={lane:D,tag:v.tag,payload:v.payload,callback:v.callback,next:null},L===null?(z=L=j,x=B):L=L.next=j,m|=D;if(v=v.next,v===null){if(v=s.shared.pending,v===null)break;j=v,v=j.next,j.next=null,s.lastBaseUpdate=j,s.shared.pending=null}}while(!0);L===null&&(x=B),s.baseState=x,s.firstBaseUpdate=z,s.lastBaseUpdate=L,o===null&&(s.shared.lanes=0),An|=m,e.lanes=m,e.memoizedState=B}}function vf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function bf(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)vf(n[e],t)}var Oa=q(null),Gi=q(0);function Sf(e,t){e=rn,Y(Gi,e),Y(Oa,t),rn=e|t.baseLanes}function Ju(){Y(Gi,rn),Y(Oa,Oa.current)}function Fu(){rn=Gi.current,Q(Oa),Q(Gi)}var Sn=0,fe=null,Re=null,qe=null,$i=!1,Ca=!1,Pn=!1,Vi=0,Rl=0,za=null,$m=0;function He(){throw Error(u(321))}function Wu(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 Pu(e,t,n,a,s,o){return Sn=o,fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?ad:ld,Pn=!1,o=n(a,s),Pn=!1,Ca&&(o=Ef(t,n,a,s)),xf(e),o}function xf(e){_.H=Ji;var t=Re!==null&&Re.next!==null;if(Sn=0,qe=Re=fe=null,$i=!1,Rl=0,za=null,t)throw Error(u(300));e===null||Qe||(e=e.dependencies,e!==null&&Li(e)&&(Qe=!0))}function Ef(e,t,n,a){fe=e;var s=0;do{if(Ca&&(za=null),Rl=0,Ca=!1,25<=s)throw Error(u(301));if(s+=1,qe=Re=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}_.H=Jm,o=t(n,a)}while(Ca);return o}function Vm(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?wl(t):t,e=e.useState()[0],(Re!==null?Re.memoizedState:null)!==e&&(fe.flags|=1024),t}function Iu(){var e=Vi!==0;return Vi=0,e}function er(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function tr(e){if($i){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}$i=!1}Sn=0,qe=Re=fe=null,Ca=!1,Rl=Vi=0,za=null}function rt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qe===null?fe.memoizedState=qe=e:qe=qe.next=e,qe}function Ge(){if(Re===null){var e=fe.alternate;e=e!==null?e.memoizedState:null}else e=Re.next;var t=qe===null?fe.memoizedState:qe.next;if(t!==null)qe=t,Re=e;else{if(e===null)throw fe.alternate===null?Error(u(467)):Error(u(310));Re=e,e={memoizedState:Re.memoizedState,baseState:Re.baseState,baseQueue:Re.baseQueue,queue:Re.queue,next:null},qe===null?fe.memoizedState=qe=e:qe=qe.next=e}return qe}function nr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function wl(e){var t=Rl;return Rl+=1,za===null&&(za=[]),e=gf(za,e,t),t=fe,(qe===null?t.memoizedState:qe.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?ad:ld),e}function Yi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return wl(e);if(e.$$typeof===$)return Pe(e)}throw Error(u(438,String(e)))}function ar(e){var t=null,n=fe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=fe.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=nr(),fe.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]=re;return t.index++,n}function tn(e,t){return typeof t=="function"?t(e):t}function Qi(e){var t=Ge();return lr(t,Re,e)}function lr(e,t,n){var a=e.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=n;var s=e.baseQueue,o=a.pending;if(o!==null){if(s!==null){var m=s.next;s.next=o.next,o.next=m}t.baseQueue=s=o,a.pending=null}if(o=e.baseState,s===null)e.memoizedState=o;else{t=s.next;var v=m=null,x=null,z=t,L=!1;do{var B=z.lane&-536870913;if(B!==z.lane?(ge&B)===B:(Sn&B)===B){var D=z.revertLane;if(D===0)x!==null&&(x=x.next={lane:0,revertLane:0,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),B===Na&&(L=!0);else if((Sn&D)===D){z=z.next,D===Na&&(L=!0);continue}else B={lane:0,revertLane:z.revertLane,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},x===null?(v=x=B,m=o):x=x.next=B,fe.lanes|=D,An|=D;B=z.action,Pn&&n(o,B),o=z.hasEagerState?z.eagerState:n(o,B)}else D={lane:B,revertLane:z.revertLane,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},x===null?(v=x=D,m=o):x=x.next=D,fe.lanes|=B,An|=B;z=z.next}while(z!==null&&z!==t);if(x===null?m=o:x.next=v,!gt(o,e.memoizedState)&&(Qe=!0,L&&(n=Aa,n!==null)))throw n;e.memoizedState=o,e.baseState=m,e.baseQueue=x,a.lastRenderedState=o}return s===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function ir(e){var t=Ge(),n=t.queue;if(n===null)throw Error(u(311));n.lastRenderedReducer=e;var a=n.dispatch,s=n.pending,o=t.memoizedState;if(s!==null){n.pending=null;var m=s=s.next;do o=e(o,m.action),m=m.next;while(m!==s);gt(o,t.memoizedState)||(Qe=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,a]}function Tf(e,t,n){var a=fe,s=Ge(),o=be;if(o){if(n===void 0)throw Error(u(407));n=n()}else n=t();var m=!gt((Re||s).memoizedState,n);m&&(s.memoizedState=n,Qe=!0),s=s.queue;var v=Nf.bind(null,a,s,e);if(Nl(2048,8,v,[e]),s.getSnapshot!==t||m||qe!==null&&qe.memoizedState.tag&1){if(a.flags|=2048,ka(9,Xi(),wf.bind(null,a,s,n,t),null),ze===null)throw Error(u(349));o||(Sn&124)!==0||Rf(a,t,n)}return n}function Rf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=fe.updateQueue,t===null?(t=nr(),fe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function wf(e,t,n,a){t.value=n,t.getSnapshot=a,Af(t)&&Of(e)}function Nf(e,t,n){return n(function(){Af(t)&&Of(e)})}function Af(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!gt(e,n)}catch{return!0}}function Of(e){var t=Ea(e,2);t!==null&&xt(t,e,2)}function sr(e){var t=rt();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:tn,lastRenderedState:e},t}function Cf(e,t,n,a){return e.baseState=n,lr(e,Re,typeof a=="function"?a:tn)}function Ym(e,t,n,a,s){if(Ki(e))throw Error(u(485));if(e=t.action,e!==null){var o={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){o.listeners.push(m)}};_.T!==null?n(!0):o.isTransition=!1,a(o),n=t.pending,n===null?(o.next=t.pending=o,zf(t,o)):(o.next=n.next,t.pending=n.next=o)}}function zf(e,t){var n=t.action,a=t.payload,s=e.state;if(t.isTransition){var o=_.T,m={};_.T=m;try{var v=n(s,a),x=_.S;x!==null&&x(m,v),kf(e,t,v)}catch(z){ur(e,t,z)}finally{_.T=o}}else try{o=n(s,a),kf(e,t,o)}catch(z){ur(e,t,z)}}function kf(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Df(e,t,a)},function(a){return ur(e,t,a)}):Df(e,t,n)}function Df(e,t,n){t.status="fulfilled",t.value=n,jf(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,zf(e,n)))}function ur(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,jf(t),t=t.next;while(t!==a)}e.action=null}function jf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Mf(e,t){return t}function _f(e,t){if(be){var n=ze.formState;if(n!==null){e:{var a=fe;if(be){if(Le){t:{for(var s=Le,o=Gt;s.nodeType!==8;){if(!o){s=null;break t}if(s=Ut(s.nextSibling),s===null){s=null;break t}}o=s.data,s=o==="F!"||o==="F"?s:null}if(s){Le=Ut(s.nextSibling),a=s.data==="F!";break e}}Kn(a)}a=!1}a&&(t=n[0])}}return n=rt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mf,lastRenderedState:t},n.queue=a,n=ed.bind(null,fe,a),a.dispatch=n,a=sr(!1),o=dr.bind(null,fe,!1,a.queue),a=rt(),s={state:t,dispatch:null,action:e,pending:null},a.queue=s,n=Ym.bind(null,fe,s,o,n),s.dispatch=n,a.memoizedState=e,[t,n,!1]}function Lf(e){var t=Ge();return Uf(t,Re,e)}function Uf(e,t,n){if(t=lr(e,t,Mf)[0],e=Qi(tn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=wl(t)}catch(m){throw m===bl?Bi:m}else a=t;t=Ge();var s=t.queue,o=s.dispatch;return n!==t.memoizedState&&(fe.flags|=2048,ka(9,Xi(),Qm.bind(null,s,n),null)),[a,o,e]}function Qm(e,t){e.action=t}function Hf(e){var t=Ge(),n=Re;if(n!==null)return Uf(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=fe.updateQueue,t===null&&(t=nr(),fe.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 Xi(){return{destroy:void 0,resource:void 0}}function Bf(){return Ge().memoizedState}function Zi(e,t,n,a){var s=rt();a=a===void 0?null:a,fe.flags|=e,s.memoizedState=ka(1|t,Xi(),n,a)}function Nl(e,t,n,a){var s=Ge();a=a===void 0?null:a;var o=s.memoizedState.inst;Re!==null&&a!==null&&Wu(a,Re.memoizedState.deps)?s.memoizedState=ka(t,o,n,a):(fe.flags|=e,s.memoizedState=ka(1|t,o,n,a))}function qf(e,t){Zi(8390656,8,e,t)}function Gf(e,t){Nl(2048,8,e,t)}function $f(e,t){return Nl(4,2,e,t)}function Vf(e,t){return Nl(4,4,e,t)}function Yf(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 Qf(e,t,n){n=n!=null?n.concat([e]):null,Nl(4,4,Yf.bind(null,t,e),n)}function rr(){}function Xf(e,t){var n=Ge();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Wu(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Zf(e,t){var n=Ge();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Wu(t,a[1]))return a[0];if(a=e(),Pn){hn(!0);try{e()}finally{hn(!1)}}return n.memoizedState=[a,t],a}function or(e,t,n){return n===void 0||(Sn&1073741824)!==0?e.memoizedState=t:(e.memoizedState=n,e=Fd(),fe.lanes|=e,An|=e,n)}function Kf(e,t,n,a){return gt(n,t)?n:Oa.current!==null?(e=or(e,n,a),gt(e,t)||(Qe=!0),e):(Sn&42)===0?(Qe=!0,e.memoizedState=n):(e=Fd(),fe.lanes|=e,An|=e,t)}function Jf(e,t,n,a,s){var o=V.p;V.p=o!==0&&8>o?o:8;var m=_.T,v={};_.T=v,dr(e,!1,t,n);try{var x=s(),z=_.S;if(z!==null&&z(v,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var L=Gm(x,a);Al(e,t,L,St(e))}else Al(e,t,a,St(e))}catch(B){Al(e,t,{then:function(){},status:"rejected",reason:B},St())}finally{V.p=o,_.T=m}}function Xm(){}function cr(e,t,n,a){if(e.tag!==5)throw Error(u(476));var s=Ff(e).queue;Jf(e,s,t,I,n===null?Xm:function(){return Wf(e),n(a)})}function Ff(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:I},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Wf(e){var t=Ff(e).next.queue;Al(e,t,{},St())}function fr(){return Pe(Ql)}function Pf(){return Ge().memoizedState}function If(){return Ge().memoizedState}function Zm(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),xl(a,t,n)),t={cache:Gu()},e.payload=t;return}t=t.return}}function Km(e,t,n){var a=St();n={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Ki(e)?td(t,n):(n=ku(e,t,n,a),n!==null&&(xt(n,e,a),nd(n,t,a)))}function ed(e,t,n){var a=St();Al(e,t,n,a)}function Al(e,t,n,a){var s={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ki(e))td(t,s);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(s.hasEagerState=!0,s.eagerState=v,gt(v,m))return ki(e,t,s,0),ze===null&&zi(),!1}catch{}finally{}if(n=ku(e,t,s,a),n!==null)return xt(n,e,a),nd(n,t,a),!0}return!1}function dr(e,t,n,a){if(a={lane:2,revertLane:Yr(),action:a,hasEagerState:!1,eagerState:null,next:null},Ki(e)){if(t)throw Error(u(479))}else t=ku(e,n,a,2),t!==null&&xt(t,e,2)}function Ki(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function td(e,t){Ca=$i=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function nd(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,oc(e,n)}}var Ji={readContext:Pe,use:Yi,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},ad={readContext:Pe,use:Yi,useCallback:function(e,t){return rt().memoizedState=[e,t===void 0?null:t],e},useContext:Pe,useEffect:qf,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Zi(4194308,4,Yf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zi(4194308,4,e,t)},useInsertionEffect:function(e,t){Zi(4,2,e,t)},useMemo:function(e,t){var n=rt();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=rt();if(n!==void 0){var s=n(t);if(Pn){hn(!0);try{n(t)}finally{hn(!1)}}}else s=t;return a.memoizedState=a.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},a.queue=e,e=e.dispatch=Km.bind(null,fe,e),[a.memoizedState,e]},useRef:function(e){var t=rt();return e={current:e},t.memoizedState=e},useState:function(e){e=sr(e);var t=e.queue,n=ed.bind(null,fe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:rr,useDeferredValue:function(e,t){var n=rt();return or(n,e,t)},useTransition:function(){var e=sr(!1);return e=Jf.bind(null,fe,e.queue,!0,!1),rt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=fe,s=rt();if(be){if(n===void 0)throw Error(u(407));n=n()}else{if(n=t(),ze===null)throw Error(u(349));(ge&124)!==0||Rf(a,t,n)}s.memoizedState=n;var o={value:n,getSnapshot:t};return s.queue=o,qf(Nf.bind(null,a,o,e),[e]),a.flags|=2048,ka(9,Xi(),wf.bind(null,a,o,n,t),null),n},useId:function(){var e=rt(),t=ze.identifierPrefix;if(be){var n=Pt,a=Wt;n=(a&~(1<<32-pt(a)-1)).toString(32)+n,t="«"+t+"R"+n,n=Vi++,0<n&&(t+="H"+n.toString(32)),t+="»"}else n=$m++,t="«"+t+"r"+n.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:fr,useFormState:_f,useActionState:_f,useOptimistic:function(e){var t=rt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=dr.bind(null,fe,!0,n),n.dispatch=t,[e,t]},useMemoCache:ar,useCacheRefresh:function(){return rt().memoizedState=Zm.bind(null,fe)}},ld={readContext:Pe,use:Yi,useCallback:Xf,useContext:Pe,useEffect:Gf,useImperativeHandle:Qf,useInsertionEffect:$f,useLayoutEffect:Vf,useMemo:Zf,useReducer:Qi,useRef:Bf,useState:function(){return Qi(tn)},useDebugValue:rr,useDeferredValue:function(e,t){var n=Ge();return Kf(n,Re.memoizedState,e,t)},useTransition:function(){var e=Qi(tn)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:wl(e),t]},useSyncExternalStore:Tf,useId:Pf,useHostTransitionStatus:fr,useFormState:Lf,useActionState:Lf,useOptimistic:function(e,t){var n=Ge();return Cf(n,Re,e,t)},useMemoCache:ar,useCacheRefresh:If},Jm={readContext:Pe,use:Yi,useCallback:Xf,useContext:Pe,useEffect:Gf,useImperativeHandle:Qf,useInsertionEffect:$f,useLayoutEffect:Vf,useMemo:Zf,useReducer:ir,useRef:Bf,useState:function(){return ir(tn)},useDebugValue:rr,useDeferredValue:function(e,t){var n=Ge();return Re===null?or(n,e,t):Kf(n,Re.memoizedState,e,t)},useTransition:function(){var e=ir(tn)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:wl(e),t]},useSyncExternalStore:Tf,useId:Pf,useHostTransitionStatus:fr,useFormState:Hf,useActionState:Hf,useOptimistic:function(e,t){var n=Ge();return Re!==null?Cf(n,Re,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ar,useCacheRefresh:If},Da=null,Ol=0;function Fi(e){var t=Ol;return Ol+=1,Da===null&&(Da=[]),gf(Da,e,t)}function Cl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Wi(e,t){throw t.$$typeof===S?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function id(e){var t=e._init;return t(e._payload)}function sd(e){function t(N,w){if(e){var C=N.deletions;C===null?(N.deletions=[w],N.flags|=16):C.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 s(N,w){return N=Ft(N,w),N.index=0,N.sibling=null,N}function o(N,w,C){return N.index=C,e?(C=N.alternate,C!==null?(C=C.index,C<w?(N.flags|=67108866,w):C):(N.flags|=67108866,w)):(N.flags|=1048576,w)}function m(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function v(N,w,C,U){return w===null||w.tag!==6?(w=ju(C,N.mode,U),w.return=N,w):(w=s(w,C),w.return=N,w)}function x(N,w,C,U){var Z=C.type;return Z===R?L(N,w,C.props.children,U,C.key):w!==null&&(w.elementType===Z||typeof Z=="object"&&Z!==null&&Z.$$typeof===K&&id(Z)===w.type)?(w=s(w,C.props),Cl(w,C),w.return=N,w):(w=ji(C.type,C.key,C.props,null,N.mode,U),Cl(w,C),w.return=N,w)}function z(N,w,C,U){return w===null||w.tag!==4||w.stateNode.containerInfo!==C.containerInfo||w.stateNode.implementation!==C.implementation?(w=Mu(C,N.mode,U),w.return=N,w):(w=s(w,C.children||[]),w.return=N,w)}function L(N,w,C,U,Z){return w===null||w.tag!==7?(w=Yn(C,N.mode,U,Z),w.return=N,w):(w=s(w,C),w.return=N,w)}function B(N,w,C){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=ju(""+w,N.mode,C),w.return=N,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case b:return C=ji(w.type,w.key,w.props,null,N.mode,C),Cl(C,w),C.return=N,C;case A:return w=Mu(w,N.mode,C),w.return=N,w;case K:var U=w._init;return w=U(w._payload),B(N,w,C)}if(Ce(w)||me(w))return w=Yn(w,N.mode,C,null),w.return=N,w;if(typeof w.then=="function")return B(N,Fi(w),C);if(w.$$typeof===$)return B(N,Ui(N,w),C);Wi(N,w)}return null}function D(N,w,C,U){var Z=w!==null?w.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return Z!==null?null:v(N,w,""+C,U);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case b:return C.key===Z?x(N,w,C,U):null;case A:return C.key===Z?z(N,w,C,U):null;case K:return Z=C._init,C=Z(C._payload),D(N,w,C,U)}if(Ce(C)||me(C))return Z!==null?null:L(N,w,C,U,null);if(typeof C.then=="function")return D(N,w,Fi(C),U);if(C.$$typeof===$)return D(N,w,Ui(N,C),U);Wi(N,C)}return null}function j(N,w,C,U,Z){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return N=N.get(C)||null,v(w,N,""+U,Z);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case b:return N=N.get(U.key===null?C:U.key)||null,x(w,N,U,Z);case A:return N=N.get(U.key===null?C:U.key)||null,z(w,N,U,Z);case K:var de=U._init;return U=de(U._payload),j(N,w,C,U,Z)}if(Ce(U)||me(U))return N=N.get(C)||null,L(w,N,U,Z,null);if(typeof U.then=="function")return j(N,w,C,Fi(U),Z);if(U.$$typeof===$)return j(N,w,C,Ui(w,U),Z);Wi(w,U)}return null}function ae(N,w,C,U){for(var Z=null,de=null,P=w,ne=w=0,Ze=null;P!==null&&ne<C.length;ne++){P.index>ne?(Ze=P,P=null):Ze=P.sibling;var ve=D(N,P,C[ne],U);if(ve===null){P===null&&(P=Ze);break}e&&P&&ve.alternate===null&&t(N,P),w=o(ve,w,ne),de===null?Z=ve:de.sibling=ve,de=ve,P=Ze}if(ne===C.length)return n(N,P),be&&Xn(N,ne),Z;if(P===null){for(;ne<C.length;ne++)P=B(N,C[ne],U),P!==null&&(w=o(P,w,ne),de===null?Z=P:de.sibling=P,de=P);return be&&Xn(N,ne),Z}for(P=a(P);ne<C.length;ne++)Ze=j(P,N,ne,C[ne],U),Ze!==null&&(e&&Ze.alternate!==null&&P.delete(Ze.key===null?ne:Ze.key),w=o(Ze,w,ne),de===null?Z=Ze:de.sibling=Ze,de=Ze);return e&&P.forEach(function(Ln){return t(N,Ln)}),be&&Xn(N,ne),Z}function te(N,w,C,U){if(C==null)throw Error(u(151));for(var Z=null,de=null,P=w,ne=w=0,Ze=null,ve=C.next();P!==null&&!ve.done;ne++,ve=C.next()){P.index>ne?(Ze=P,P=null):Ze=P.sibling;var Ln=D(N,P,ve.value,U);if(Ln===null){P===null&&(P=Ze);break}e&&P&&Ln.alternate===null&&t(N,P),w=o(Ln,w,ne),de===null?Z=Ln:de.sibling=Ln,de=Ln,P=Ze}if(ve.done)return n(N,P),be&&Xn(N,ne),Z;if(P===null){for(;!ve.done;ne++,ve=C.next())ve=B(N,ve.value,U),ve!==null&&(w=o(ve,w,ne),de===null?Z=ve:de.sibling=ve,de=ve);return be&&Xn(N,ne),Z}for(P=a(P);!ve.done;ne++,ve=C.next())ve=j(P,N,ne,ve.value,U),ve!==null&&(e&&ve.alternate!==null&&P.delete(ve.key===null?ne:ve.key),w=o(ve,w,ne),de===null?Z=ve:de.sibling=ve,de=ve);return e&&P.forEach(function(Fy){return t(N,Fy)}),be&&Xn(N,ne),Z}function Ne(N,w,C,U){if(typeof C=="object"&&C!==null&&C.type===R&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case b:e:{for(var Z=C.key;w!==null;){if(w.key===Z){if(Z=C.type,Z===R){if(w.tag===7){n(N,w.sibling),U=s(w,C.props.children),U.return=N,N=U;break e}}else if(w.elementType===Z||typeof Z=="object"&&Z!==null&&Z.$$typeof===K&&id(Z)===w.type){n(N,w.sibling),U=s(w,C.props),Cl(U,C),U.return=N,N=U;break e}n(N,w);break}else t(N,w);w=w.sibling}C.type===R?(U=Yn(C.props.children,N.mode,U,C.key),U.return=N,N=U):(U=ji(C.type,C.key,C.props,null,N.mode,U),Cl(U,C),U.return=N,N=U)}return m(N);case A:e:{for(Z=C.key;w!==null;){if(w.key===Z)if(w.tag===4&&w.stateNode.containerInfo===C.containerInfo&&w.stateNode.implementation===C.implementation){n(N,w.sibling),U=s(w,C.children||[]),U.return=N,N=U;break e}else{n(N,w);break}else t(N,w);w=w.sibling}U=Mu(C,N.mode,U),U.return=N,N=U}return m(N);case K:return Z=C._init,C=Z(C._payload),Ne(N,w,C,U)}if(Ce(C))return ae(N,w,C,U);if(me(C)){if(Z=me(C),typeof Z!="function")throw Error(u(150));return C=Z.call(C),te(N,w,C,U)}if(typeof C.then=="function")return Ne(N,w,Fi(C),U);if(C.$$typeof===$)return Ne(N,w,Ui(N,C),U);Wi(N,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,w!==null&&w.tag===6?(n(N,w.sibling),U=s(w,C),U.return=N,N=U):(n(N,w),U=ju(C,N.mode,U),U.return=N,N=U),m(N)):n(N,w)}return function(N,w,C,U){try{Ol=0;var Z=Ne(N,w,C,U);return Da=null,Z}catch(P){if(P===bl||P===Bi)throw P;var de=mt(29,P,null,N.mode);return de.lanes=U,de.return=N,de}finally{}}}var ja=sd(!0),ud=sd(!1),Ct=q(null),$t=null;function xn(e){var t=e.alternate;Y(Ve,Ve.current&1),Y(Ct,e),$t===null&&(t===null||Oa.current!==null||t.memoizedState!==null)&&($t=e)}function rd(e){if(e.tag===22){if(Y(Ve,Ve.current),Y(Ct,e),$t===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&($t=e)}}else En()}function En(){Y(Ve,Ve.current),Y(Ct,Ct.current)}function nn(e){Q(Ct),$t===e&&($t=null),Q(Ve)}var Ve=q(0);function Pi(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==="$?"||no(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 hr(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 pr={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=St(),s=vn(a);s.payload=t,n!=null&&(s.callback=n),t=bn(e,s,a),t!==null&&(xt(t,e,a),xl(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=St(),s=vn(a);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=bn(e,s,a),t!==null&&(xt(t,e,a),xl(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),xl(t,e,n))}};function od(e,t,n,a,s,o,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,o,m):t.prototype&&t.prototype.isPureReactComponent?!fl(n,a)||!fl(s,o):!0}function cd(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&&pr.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 s in e)n[s]===void 0&&(n[s]=e[s])}return n}var Ii=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 fd(e){Ii(e)}function dd(e){console.error(e)}function hd(e){Ii(e)}function es(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function pd(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function gr(e,t,n){return n=vn(n),n.tag=3,n.payload={element:null},n.callback=function(){es(e,t)},n}function gd(e){return e=vn(e),e.tag=3,e}function md(e,t,n,a){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var o=a.value;e.payload=function(){return s(o)},e.callback=function(){pd(t,n,a)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){pd(t,n,a),typeof s!="function"&&(On===null?On=new Set([this]):On.add(this));var v=a.stack;this.componentDidCatch(a.value,{componentStack:v!==null?v:""})})}function Fm(e,t,n,a,s){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&ml(t,n,s,!0),n=Ct.current,n!==null){switch(n.tag){case 13:return $t===null?Br():n.alternate===null&&Ue===0&&(Ue=3),n.flags&=-257,n.flags|=65536,n.lanes=s,a===Yu?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),Gr(e,a,s)),!1;case 22:return n.flags|=65536,a===Yu?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)),Gr(e,a,s)),!1}throw Error(u(435,n.tag))}return Gr(e,a,s),Br(),!1}if(be)return t=Ct.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,a!==Uu&&(e=Error(u(422),{cause:a}),gl(wt(e,n)))):(a!==Uu&&(t=Error(u(423),{cause:a}),gl(wt(t,n))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,a=wt(a,n),s=gr(e.stateNode,a,s),Zu(e,s),Ue!==4&&(Ue=2)),!1;var o=Error(u(520),{cause:a});if(o=wt(o,n),Ll===null?Ll=[o]:Ll.push(o),Ue!==4&&(Ue=2),t===null)return!0;a=wt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=s&-s,n.lanes|=e,e=gr(n.stateNode,a,e),Zu(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,s&=-s,n.lanes|=s,s=gd(s),md(s,e,n,a),Zu(n,s),!1}n=n.return}while(n!==null);return!1}var yd=Error(u(461)),Qe=!1;function Ke(e,t,n,a){t.child=e===null?ud(t,null,n,a):ja(t,e.child,n,a)}function vd(e,t,n,a,s){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=Pu(e,t,n,m,o,s),v=Iu(),e!==null&&!Qe?(er(e,t,s),an(e,t,s)):(be&&v&&_u(t),t.flags|=1,Ke(e,t,a,s),t.child)}function bd(e,t,n,a,s){if(e===null){var o=n.type;return typeof o=="function"&&!Du(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,Sd(e,t,o,a,s)):(e=ji(n.type,null,a,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!Tr(e,s)){var m=o.memoizedProps;if(n=n.compare,n=n!==null?n:fl,n(m,a)&&e.ref===t.ref)return an(e,t,s)}return t.flags|=1,e=Ft(o,a),e.ref=t.ref,e.return=t,t.child=e}function Sd(e,t,n,a,s){if(e!==null){var o=e.memoizedProps;if(fl(o,a)&&e.ref===t.ref)if(Qe=!1,t.pendingProps=a=o,Tr(e,s))(e.flags&131072)!==0&&(Qe=!0);else return t.lanes=e.lanes,an(e,t,s)}return mr(e,t,n,a,s)}function xd(e,t,n){var a=t.pendingProps,s=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(s=t.child=e.child,o=0;s!==null;)o=o|s.lanes|s.childLanes,s=s.sibling;t.childLanes=o&~a}else t.childLanes=0,t.child=null;return Ed(e,t,a,n)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Hi(t,o!==null?o.cachePool:null),o!==null?Sf(t,o):Ju(),rd(t);else return t.lanes=t.childLanes=536870912,Ed(e,t,o!==null?o.baseLanes|n:n,n)}else o!==null?(Hi(t,o.cachePool),Sf(t,o),En(),t.memoizedState=null):(e!==null&&Hi(t,null),Ju(),En());return Ke(e,t,s,n),t.child}function Ed(e,t,n,a){var s=Vu();return s=s===null?null:{parent:$e._currentValue,pool:s},t.memoizedState={baseLanes:n,cachePool:s},e!==null&&Hi(t,null),Ju(),rd(t),e!==null&&ml(e,t,a,!0),null}function ts(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(u(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function mr(e,t,n,a,s){return Fn(t),n=Pu(e,t,n,a,void 0,s),a=Iu(),e!==null&&!Qe?(er(e,t,s),an(e,t,s)):(be&&a&&_u(t),t.flags|=1,Ke(e,t,n,s),t.child)}function Td(e,t,n,a,s,o){return Fn(t),t.updateQueue=null,n=Ef(t,a,n,s),xf(e),a=Iu(),e!==null&&!Qe?(er(e,t,o),an(e,t,o)):(be&&a&&_u(t),t.flags|=1,Ke(e,t,n,o),t.child)}function Rd(e,t,n,a,s){if(Fn(t),t.stateNode===null){var o=Ta,m=n.contextType;typeof m=="object"&&m!==null&&(o=Pe(m)),o=new n(a,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=pr,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=a,o.state=t.memoizedState,o.refs={},Qu(t),m=n.contextType,o.context=typeof m=="object"&&m!==null?Pe(m):Ta,o.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(hr(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&&pr.enqueueReplaceState(o,o.state,null),Tl(t,a,o,s),El(),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 z=o.context,L=n.contextType;m=Ta,typeof L=="object"&&L!==null&&(m=Pe(L));var B=n.getDerivedStateFromProps;L=typeof B=="function"||typeof o.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,L||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(v||z!==m)&&cd(t,o,a,m),yn=!1;var D=t.memoizedState;o.state=D,Tl(t,a,o,s),El(),z=t.memoizedState,v||D!==z||yn?(typeof B=="function"&&(hr(t,n,B,a),z=t.memoizedState),(x=yn||od(t,n,x,a,D,z,m))?(L||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=z),o.props=a,o.state=z,o.context=m,a=x):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{o=t.stateNode,Xu(e,t),m=t.memoizedProps,L=In(n,m),o.props=L,B=t.pendingProps,D=o.context,z=n.contextType,x=Ta,typeof z=="object"&&z!==null&&(x=Pe(z)),v=n.getDerivedStateFromProps,(z=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(m!==B||D!==x)&&cd(t,o,a,x),yn=!1,D=t.memoizedState,o.state=D,Tl(t,a,o,s),El();var j=t.memoizedState;m!==B||D!==j||yn||e!==null&&e.dependencies!==null&&Li(e.dependencies)?(typeof v=="function"&&(hr(t,n,v,a),j=t.memoizedState),(L=yn||od(t,n,L,a,D,j,x)||e!==null&&e.dependencies!==null&&Li(e.dependencies))?(z||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(a,j,x),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(a,j,x)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||m===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=j),o.props=a,o.state=j,o.context=x,a=L):(typeof o.componentDidUpdate!="function"||m===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),a=!1)}return o=a,ts(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=ja(t,e.child,null,s),t.child=ja(t,null,n,s)):Ke(e,t,n,s),t.memoizedState=o.state,e=t.child):e=an(e,t,s),e}function wd(e,t,n,a){return pl(),t.flags|=256,Ke(e,t,n,a),t.child}var yr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vr(e){return{baseLanes:e,cachePool:df()}}function br(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=zt),e}function Nd(e,t,n){var a=t.pendingProps,s=!1,o=(t.flags&128)!==0,m;if((m=o)||(m=e!==null&&e.memoizedState===null?!1:(Ve.current&2)!==0),m&&(s=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(be){if(s?xn(t):En(),be){var v=Le,x;if(x=v){e:{for(x=v,v=Gt;x.nodeType!==8;){if(!v){v=null;break e}if(x=Ut(x.nextSibling),x===null){v=null;break e}}v=x}v!==null?(t.memoizedState={dehydrated:v,treeContext:Qn!==null?{id:Wt,overflow:Pt}:null,retryLane:536870912,hydrationErrors:null},x=mt(18,null,null,0),x.stateNode=v,x.return=t,t.child=x,at=t,Le=null,x=!0):x=!1}x||Kn(t)}if(v=t.memoizedState,v!==null&&(v=v.dehydrated,v!==null))return no(v)?t.lanes=32:t.lanes=536870912,null;nn(t)}return v=a.children,a=a.fallback,s?(En(),s=t.mode,v=ns({mode:"hidden",children:v},s),a=Yn(a,s,n,null),v.return=t,a.return=t,v.sibling=a,t.child=v,s=t.child,s.memoizedState=vr(n),s.childLanes=br(e,m,n),t.memoizedState=yr,a):(xn(t),Sr(t,v))}if(x=e.memoizedState,x!==null&&(v=x.dehydrated,v!==null)){if(o)t.flags&256?(xn(t),t.flags&=-257,t=xr(e,t,n)):t.memoizedState!==null?(En(),t.child=e.child,t.flags|=128,t=null):(En(),s=a.fallback,v=t.mode,a=ns({mode:"visible",children:a.children},v),s=Yn(s,v,n,null),s.flags|=2,a.return=t,s.return=t,a.sibling=s,t.child=a,ja(t,e.child,null,n),a=t.child,a.memoizedState=vr(n),a.childLanes=br(e,m,n),t.memoizedState=yr,t=s);else if(xn(t),no(v)){if(m=v.nextSibling&&v.nextSibling.dataset,m)var z=m.dgst;m=z,a=Error(u(419)),a.stack="",a.digest=m,gl({value:a,source:null,stack:null}),t=xr(e,t,n)}else if(Qe||ml(e,t,n,!1),m=(n&e.childLanes)!==0,Qe||m){if(m=ze,m!==null&&(a=n&-n,a=(a&42)!==0?1:au(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),yd;v.data==="$?"||Br(),t=xr(e,t,n)}else v.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=x.treeContext,Le=Ut(v.nextSibling),at=t,be=!0,Zn=null,Gt=!1,e!==null&&(At[Ot++]=Wt,At[Ot++]=Pt,At[Ot++]=Qn,Wt=e.id,Pt=e.overflow,Qn=t),t=Sr(t,a.children),t.flags|=4096);return t}return s?(En(),s=a.fallback,v=t.mode,x=e.child,z=x.sibling,a=Ft(x,{mode:"hidden",children:a.children}),a.subtreeFlags=x.subtreeFlags&65011712,z!==null?s=Ft(z,s):(s=Yn(s,v,n,null),s.flags|=2),s.return=t,a.return=t,a.sibling=s,t.child=a,a=s,s=t.child,v=e.child.memoizedState,v===null?v=vr(n):(x=v.cachePool,x!==null?(z=$e._currentValue,x=x.parent!==z?{parent:z,pool:z}:x):x=df(),v={baseLanes:v.baseLanes|n,cachePool:x}),s.memoizedState=v,s.childLanes=br(e,m,n),t.memoizedState=yr,a):(xn(t),n=e.child,e=n.sibling,n=Ft(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 Sr(e,t){return t=ns({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ns(e,t){return e=mt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function xr(e,t,n){return ja(t,e.child,null,n),e=Sr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ad(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Bu(e.return,t,n)}function Er(e,t,n,a,s){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:s}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=a,o.tail=n,o.tailMode=s)}function Od(e,t,n){var a=t.pendingProps,s=a.revealOrder,o=a.tail;if(Ke(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&&Ad(e,n,t);else if(e.tag===19)Ad(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),s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Pi(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Er(t,!1,s,n,o);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Pi(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Er(t,!0,n,null,o);break;case"together":Er(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function an(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),An|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ml(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,n=Ft(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ft(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Tr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Li(e)))}function Wm(e,t,n){switch(t.tag){case 3:ke(t,t.stateNode.containerInfo),mn(t,$e,e.memoizedState.cache),pl();break;case 27:case 5:Ps(t);break;case 4:ke(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?Nd(e,t,n):(xn(t),e=an(e,t,n),e!==null?e.sibling:null);xn(t);break;case 19:var s=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(ml(e,t,n,!1),a=(n&t.childLanes)!==0),s){if(a)return Od(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Y(Ve,Ve.current),a)break;return null;case 22:case 23:return t.lanes=0,xd(e,t,n);case 24:mn(t,$e,e.memoizedState.cache)}return an(e,t,n)}function Cd(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Qe=!0;else{if(!Tr(e,n)&&(t.flags&128)===0)return Qe=!1,Wm(e,t,n);Qe=(e.flags&131072)!==0}else Qe=!1,be&&(t.flags&1048576)!==0&&lf(t,_i,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var a=t.elementType,s=a._init;if(a=s(a._payload),t.type=a,typeof a=="function")Du(a)?(e=In(a,e),t.tag=1,t=Rd(null,t,a,e,n)):(t.tag=0,t=mr(null,t,a,e,n));else{if(a!=null){if(s=a.$$typeof,s===F){t.tag=11,t=vd(null,t,a,e,n);break e}else if(s===W){t.tag=14,t=bd(null,t,a,e,n);break e}}throw t=Me(a)||a,Error(u(306,t,""))}}return t;case 0:return mr(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,s=In(a,t.pendingProps),Rd(e,t,a,s,n);case 3:e:{if(ke(t,t.stateNode.containerInfo),e===null)throw Error(u(387));a=t.pendingProps;var o=t.memoizedState;s=o.element,Xu(e,t),Tl(t,a,null,n);var m=t.memoizedState;if(a=m.cache,mn(t,$e,a),a!==o.cache&&qu(t,[$e],n,!0),El(),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=wd(e,t,a,n);break e}else if(a!==s){s=wt(Error(u(424)),t),gl(s),t=wd(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(Le=Ut(e.firstChild),at=t,be=!0,Zn=null,Gt=!0,n=ud(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(pl(),a===s){t=an(e,t,n);break e}Ke(e,t,a,n)}t=t.child}return t;case 26:return ts(e,t),e===null?(n=jh(t.type,null,t.pendingProps,null))?t.memoizedState=n:be||(n=t.type,e=t.pendingProps,a=ms(se.current).createElement(n),a[We]=t,a[st]=e,Fe(a,n,e),Ye(a),t.stateNode=a):t.memoizedState=jh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ps(t),e===null&&be&&(a=t.stateNode=zh(t.type,t.pendingProps,se.current),at=t,Gt=!0,s=Le,kn(t.type)?(ao=s,Le=Ut(a.firstChild)):Le=s),Ke(e,t,t.pendingProps.children,n),ts(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&be&&((s=a=Le)&&(a=wy(a,t.type,t.pendingProps,Gt),a!==null?(t.stateNode=a,at=t,Le=Ut(a.firstChild),Gt=!1,s=!0):s=!1),s||Kn(t)),Ps(t),s=t.type,o=t.pendingProps,m=e!==null?e.memoizedProps:null,a=o.children,Ir(s,o)?a=null:m!==null&&Ir(s,m)&&(t.flags|=32),t.memoizedState!==null&&(s=Pu(e,t,Vm,null,null,n),Ql._currentValue=s),ts(e,t),Ke(e,t,a,n),t.child;case 6:return e===null&&be&&((e=n=Le)&&(n=Ny(n,t.pendingProps,Gt),n!==null?(t.stateNode=n,at=t,Le=null,e=!0):e=!1),e||Kn(t)),null;case 13:return Nd(e,t,n);case 4:return ke(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ja(t,null,a,n):Ke(e,t,a,n),t.child;case 11:return vd(e,t,t.type,t.pendingProps,n);case 7:return Ke(e,t,t.pendingProps,n),t.child;case 8:return Ke(e,t,t.pendingProps.children,n),t.child;case 12:return Ke(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,mn(t,t.type,a.value),Ke(e,t,a.children,n),t.child;case 9:return s=t.type._context,a=t.pendingProps.children,Fn(t),s=Pe(s),a=a(s),t.flags|=1,Ke(e,t,a,n),t.child;case 14:return bd(e,t,t.type,t.pendingProps,n);case 15:return Sd(e,t,t.type,t.pendingProps,n);case 19:return Od(e,t,n);case 31:return a=t.pendingProps,n=t.mode,a={mode:a.mode,children:a.children},e===null?(n=ns(a,n),n.ref=t.ref,t.child=n,n.return=t,t=n):(n=Ft(e.child,a),n.ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return xd(e,t,n);case 24:return Fn(t),a=Pe($e),e===null?(s=Vu(),s===null&&(s=ze,o=Gu(),s.pooledCache=o,o.refCount++,o!==null&&(s.pooledCacheLanes|=n),s=o),t.memoizedState={parent:a,cache:s},Qu(t),mn(t,$e,s)):((e.lanes&n)!==0&&(Xu(e,t),Tl(t,null,null,n),El()),s=e.memoizedState,o=t.memoizedState,s.parent!==a?(s={parent:a,cache:a},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),mn(t,$e,a)):(a=o.cache,mn(t,$e,a),a!==s.cache&&qu(t,[$e],n,!0))),Ke(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function ln(e){e.flags|=4}function zd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Hh(t)){if(t=Ct.current,t!==null&&((ge&4194048)===ge?$t!==null:(ge&62914560)!==ge&&(ge&536870912)===0||t!==$t))throw Sl=Yu,hf;e.flags|=8192}}function as(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?uc():536870912,e.lanes|=t,Ua|=t)}function zl(e,t){if(!be)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 _e(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags&65011712,a|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags,a|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function Pm(e,t,n){var a=t.pendingProps;switch(Lu(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _e(t),null;case 1:return _e(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),en($e),dn(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(hl(t)?ln(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,rf())),_e(t),null;case 26:return n=t.memoizedState,e===null?(ln(t),n!==null?(_e(t),zd(t,n)):(_e(t),t.flags&=-16777217)):n?n!==e.memoizedState?(ln(t),_e(t),zd(t,n)):(_e(t),t.flags&=-16777217):(e.memoizedProps!==a&&ln(t),_e(t),t.flags&=-16777217),null;case 27:pi(t),n=se.current;var s=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ln(t);else{if(!a){if(t.stateNode===null)throw Error(u(166));return _e(t),null}e=ee.current,hl(t)?sf(t):(e=zh(s,a,n),t.stateNode=e,ln(t))}return _e(t),null;case 5:if(pi(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ln(t);else{if(!a){if(t.stateNode===null)throw Error(u(166));return _e(t),null}if(e=ee.current,hl(t))sf(t);else{switch(s=ms(se.current),e){case 1:e=s.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=s.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof a.is=="string"?s.createElement("select",{is:a.is}):s.createElement("select"),a.multiple?e.multiple=!0:a.size&&(e.size=a.size);break;default:e=typeof a.is=="string"?s.createElement(n,{is:a.is}):s.createElement(n)}}e[We]=t,e[st]=a;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)e.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=e;e:switch(Fe(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&&ln(t)}}return _e(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&ln(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=se.current,hl(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,s=at,s!==null)switch(s.tag){case 27:case 5:a=s.memoizedProps}e[We]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Th(e.nodeValue,n)),e||Kn(t)}else e=ms(e).createTextNode(a),e[We]=t,t.stateNode=e}return _e(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=hl(t),a!==null&&a.dehydrated!==null){if(e===null){if(!s)throw Error(u(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(u(317));s[We]=t}else pl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;_e(t),s=!1}else s=rf(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(nn(t),t):(nn(t),null)}if(nn(t),(t.flags&128)!==0)return t.lanes=n,t;if(n=a!==null,e=e!==null&&e.memoizedState!==null,n){a=t.child,s=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(s=a.alternate.memoizedState.cachePool.pool);var o=null;a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==s&&(a.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),as(t,t.updateQueue),_e(t),null;case 4:return dn(),e===null&&Kr(t.stateNode.containerInfo),_e(t),null;case 10:return en(t.type),_e(t),null;case 19:if(Q(Ve),s=t.memoizedState,s===null)return _e(t),null;if(a=(t.flags&128)!==0,o=s.rendering,o===null)if(a)zl(s,!1);else{if(Ue!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Pi(e),o!==null){for(t.flags|=128,zl(s,!1),e=o.updateQueue,t.updateQueue=e,as(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)af(n,e),n=n.sibling;return Y(Ve,Ve.current&1|2),t.child}e=e.sibling}s.tail!==null&&qt()>ss&&(t.flags|=128,a=!0,zl(s,!1),t.lanes=4194304)}else{if(!a)if(e=Pi(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,as(t,e),zl(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!be)return _e(t),null}else 2*qt()-s.renderingStartTime>ss&&n!==536870912&&(t.flags|=128,a=!0,zl(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(e=s.last,e!==null?e.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=qt(),t.sibling=null,e=Ve.current,Y(Ve,a?e&1|2:e&1),t):(_e(t),null);case 22:case 23:return nn(t),Fu(),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&&(_e(t),t.subtreeFlags&6&&(t.flags|=8192)):_e(t),n=t.updateQueue,n!==null&&as(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&&Q(Wn),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),en($e),_e(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Im(e,t){switch(Lu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return en($e),dn(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return pi(t),null;case 13:if(nn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));pl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Q(Ve),null;case 4:return dn(),null;case 10:return en(t.type),null;case 22:case 23:return nn(t),Fu(),e!==null&&Q(Wn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return en($e),null;case 25:return null;default:return null}}function kd(e,t){switch(Lu(t),t.tag){case 3:en($e),dn();break;case 26:case 27:case 5:pi(t);break;case 4:dn();break;case 13:nn(t);break;case 19:Q(Ve);break;case 10:en(t.type);break;case 22:case 23:nn(t),Fu(),e!==null&&Q(Wn);break;case 24:en($e)}}function kl(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var s=a.next;n=s;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!==s)}}catch(v){Ae(t,t.return,v)}}function Tn(e,t,n){try{var a=t.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var o=s.next;a=o;do{if((a.tag&e)===e){var m=a.inst,v=m.destroy;if(v!==void 0){m.destroy=void 0,s=t;var x=n,z=v;try{z()}catch(L){Ae(s,x,L)}}}a=a.next}while(a!==o)}}catch(L){Ae(t,t.return,L)}}function Dd(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{bf(t,n)}catch(a){Ae(e,e.return,a)}}}function jd(e,t,n){n.props=In(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Ae(e,t,a)}}function Dl(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(s){Ae(e,t,s)}}function Vt(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(s){Ae(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){Ae(e,t,s)}else n.current=null}function Md(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(s){Ae(e,e.return,s)}}function Rr(e,t,n){try{var a=e.stateNode;Sy(a,e.type,n,t),a[st]=t}catch(s){Ae(e,e.return,s)}}function _d(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&kn(e.type)||e.tag===4}function wr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_d(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 Nr(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=gs));else if(a!==4&&(a===27&&kn(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Nr(e,t,n),e=e.sibling;e!==null;)Nr(e,t,n),e=e.sibling}function ls(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(ls(e,t,n),e=e.sibling;e!==null;)ls(e,t,n),e=e.sibling}function Ld(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);Fe(t,a,n),t[We]=e,t[st]=n}catch(o){Ae(e,e.return,o)}}var sn=!1,Be=!1,Ar=!1,Ud=typeof WeakSet=="function"?WeakSet:Set,Xe=null;function ey(e,t){if(e=e.containerInfo,Wr=Es,e=Zc(e),wu(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 s=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,z=0,L=0,B=e,D=null;t:for(;;){for(var j;B!==n||s!==0&&B.nodeType!==3||(v=m+s),B!==o||a!==0&&B.nodeType!==3||(x=m+a),B.nodeType===3&&(m+=B.nodeValue.length),(j=B.firstChild)!==null;)D=B,B=j;for(;;){if(B===e)break t;if(D===n&&++z===s&&(v=m),D===o&&++L===a&&(x=m),(j=B.nextSibling)!==null)break;B=D,D=B.parentNode}B=j}n=v===-1||x===-1?null:{start:v,end:x}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pr={focusedElem:e,selectionRange:n},Es=!1,Xe=t;Xe!==null;)if(t=Xe,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Xe=e;else for(;Xe!==null;){switch(t=Xe,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,s=o.memoizedProps,o=o.memoizedState,a=n.stateNode;try{var ae=In(n.type,s,n.elementType===n.type);e=a.getSnapshotBeforeUpdate(ae,o),a.__reactInternalSnapshotBeforeUpdate=e}catch(te){Ae(n,n.return,te)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)to(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":to(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(u(163))}if(e=t.sibling,e!==null){e.return=t.return,Xe=e;break}Xe=t.return}}function Hd(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Rn(e,n),a&4&&kl(5,n);break;case 1:if(Rn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(m){Ae(n,n.return,m)}else{var s=In(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Ae(n,n.return,m)}}a&64&&Dd(n),a&512&&Dl(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{bf(e,t)}catch(m){Ae(n,n.return,m)}}break;case 27:t===null&&a&4&&Ld(n);case 26:case 5:Rn(e,n),t===null&&a&4&&Md(n),a&512&&Dl(n,n.return);break;case 12:Rn(e,n);break;case 13:Rn(e,n),a&4&&Gd(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=oy.bind(null,n),Ay(e,n))));break;case 22:if(a=n.memoizedState!==null||sn,!a){t=t!==null&&t.memoizedState!==null||Be,s=sn;var o=Be;sn=a,(Be=t)&&!o?wn(e,n,(n.subtreeFlags&8772)!==0):Rn(e,n),sn=s,Be=o}break;case 30:break;default:Rn(e,n)}}function Bd(e){var t=e.alternate;t!==null&&(e.alternate=null,Bd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&su(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,ot=!1;function un(e,t,n){for(n=n.child;n!==null;)qd(e,t,n),n=n.sibling}function qd(e,t,n){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(Ia,n)}catch{}switch(n.tag){case 26:Be||Vt(n,t),un(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Be||Vt(n,t);var a=De,s=ot;kn(n.type)&&(De=n.stateNode,ot=!1),un(e,t,n),Gl(n.stateNode),De=a,ot=s;break;case 5:Be||Vt(n,t);case 6:if(a=De,s=ot,De=null,un(e,t,n),De=a,ot=s,De!==null)if(ot)try{(De.nodeType===9?De.body:De.nodeName==="HTML"?De.ownerDocument.body:De).removeChild(n.stateNode)}catch(o){Ae(n,t,o)}else try{De.removeChild(n.stateNode)}catch(o){Ae(n,t,o)}break;case 18:De!==null&&(ot?(e=De,Oh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Jl(e)):Oh(De,n.stateNode));break;case 4:a=De,s=ot,De=n.stateNode.containerInfo,ot=!0,un(e,t,n),De=a,ot=s;break;case 0:case 11:case 14:case 15:Be||Tn(2,n,t),Be||Tn(4,n,t),un(e,t,n);break;case 1:Be||(Vt(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&jd(n,t,a)),un(e,t,n);break;case 21:un(e,t,n);break;case 22:Be=(a=Be)||n.memoizedState!==null,un(e,t,n),Be=a;break;default:un(e,t,n)}}function Gd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Jl(e)}catch(n){Ae(t,t.return,n)}}function ty(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ud),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ud),t;default:throw Error(u(435,e.tag))}}function Or(e,t){var n=ty(e);t.forEach(function(a){var s=cy.bind(null,e,a);n.has(a)||(n.add(a),a.then(s,s))})}function yt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var s=n[a],o=e,m=t,v=m;e:for(;v!==null;){switch(v.tag){case 27:if(kn(v.type)){De=v.stateNode,ot=!1;break e}break;case 5:De=v.stateNode,ot=!1;break e;case 3:case 4:De=v.stateNode.containerInfo,ot=!0;break e}v=v.return}if(De===null)throw Error(u(160));qd(o,m,s),De=null,ot=!1,o=s.alternate,o!==null&&(o.return=null),s.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)$d(t,e),t=t.sibling}var Lt=null;function $d(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),kl(3,e),Tn(5,e,e.return));break;case 1:yt(t,e),vt(e),a&512&&(Be||n===null||Vt(n,n.return)),a&64&&sn&&(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 s=Lt;if(yt(t,e),vt(e),a&512&&(Be||n===null||Vt(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,s=s.ownerDocument||s;t:switch(a){case"title":o=s.getElementsByTagName("title")[0],(!o||o[nl]||o[We]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=s.createElement(a),s.head.insertBefore(o,s.querySelector("head > title"))),Fe(o,a,n),o[We]=e,Ye(o),a=o;break e;case"link":var m=Lh("link","href",s).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=s.createElement(a),Fe(o,a,n),s.head.appendChild(o);break;case"meta":if(m=Lh("meta","content",s).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=s.createElement(a),Fe(o,a,n),s.head.appendChild(o);break;default:throw Error(u(468,a))}o[We]=e,Ye(o),a=o}e.stateNode=a}else Uh(s,e.type,e.stateNode);else e.stateNode=_h(s,a,e.memoizedProps);else o!==a?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,a===null?Uh(s,e.type,e.stateNode):_h(s,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Rr(e,e.memoizedProps,n.memoizedProps)}break;case 27:yt(t,e),vt(e),a&512&&(Be||n===null||Vt(n,n.return)),n!==null&&a&4&&Rr(e,e.memoizedProps,n.memoizedProps);break;case 5:if(yt(t,e),vt(e),a&512&&(Be||n===null||Vt(n,n.return)),e.flags&32){s=e.stateNode;try{ga(s,"")}catch(j){Ae(e,e.return,j)}}a&4&&e.stateNode!=null&&(s=e.memoizedProps,Rr(e,s,n!==null?n.memoizedProps:s)),a&1024&&(Ar=!0);break;case 6:if(yt(t,e),vt(e),a&4){if(e.stateNode===null)throw Error(u(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(j){Ae(e,e.return,j)}}break;case 3:if(bs=null,s=Lt,Lt=ys(t.containerInfo),yt(t,e),Lt=s,vt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Jl(t.containerInfo)}catch(j){Ae(e,e.return,j)}Ar&&(Ar=!1,Vd(e));break;case 4:a=Lt,Lt=ys(e.stateNode.containerInfo),yt(t,e),vt(e),Lt=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)&&(Mr=qt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Or(e,a)));break;case 22:s=e.memoizedState!==null;var x=n!==null&&n.memoizedState!==null,z=sn,L=Be;if(sn=z||s,Be=L||x,yt(t,e),Be=L,sn=z,vt(e),a&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(n===null||x||sn||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,s)m=o.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{v=x.stateNode;var B=x.memoizedProps.style,D=B!=null&&B.hasOwnProperty("display")?B.display:null;v.style.display=D==null||typeof D=="boolean"?"":(""+D).trim()}}catch(j){Ae(x,x.return,j)}}}else if(t.tag===6){if(n===null){x=t;try{x.stateNode.nodeValue=s?"":x.memoizedProps}catch(j){Ae(x,x.return,j)}}}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,Or(e,n))));break;case 19:yt(t,e),vt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Or(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(_d(a)){n=a;break}a=a.return}if(n==null)throw Error(u(160));switch(n.tag){case 27:var s=n.stateNode,o=wr(e);ls(e,o,s);break;case 5:var m=n.stateNode;n.flags&32&&(ga(m,""),n.flags&=-33);var v=wr(e);ls(e,v,m);break;case 3:case 4:var x=n.stateNode.containerInfo,z=wr(e);Nr(e,z,x);break;default:throw Error(u(161))}}catch(L){Ae(e,e.return,L)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Vd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Vd(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;)Hd(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:Vt(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&jd(t,t.return,n),ea(t);break;case 27:Gl(t.stateNode);case 26:case 5:Vt(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,s=e,o=t,m=o.flags;switch(o.tag){case 0:case 11:case 15:wn(s,o,n),kl(4,o);break;case 1:if(wn(s,o,n),a=o,s=a.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(z){Ae(a,a.return,z)}if(a=o,s=a.updateQueue,s!==null){var v=a.stateNode;try{var x=s.shared.hiddenCallbacks;if(x!==null)for(s.shared.hiddenCallbacks=null,s=0;s<x.length;s++)vf(x[s],v)}catch(z){Ae(a,a.return,z)}}n&&m&64&&Dd(o),Dl(o,o.return);break;case 27:Ld(o);case 26:case 5:wn(s,o,n),n&&a===null&&m&4&&Md(o),Dl(o,o.return);break;case 12:wn(s,o,n);break;case 13:wn(s,o,n),n&&m&4&&Gd(s,o);break;case 22:o.memoizedState===null&&wn(s,o,n),Dl(o,o.return);break;case 30:break;default:wn(s,o,n)}t=t.sibling}}function Cr(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&&yl(n))}function zr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&yl(e))}function Yt(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Yd(e,t,n,a),t=t.sibling}function Yd(e,t,n,a){var s=t.flags;switch(t.tag){case 0:case 11:case 15:Yt(e,t,n,a),s&2048&&kl(9,t);break;case 1:Yt(e,t,n,a);break;case 3:Yt(e,t,n,a),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&yl(e)));break;case 12:if(s&2048){Yt(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){Ae(t,t.return,x)}}else Yt(e,t,n,a);break;case 13:Yt(e,t,n,a);break;case 23:break;case 22:o=t.stateNode,m=t.alternate,t.memoizedState!==null?o._visibility&2?Yt(e,t,n,a):jl(e,t):o._visibility&2?Yt(e,t,n,a):(o._visibility|=2,Ma(e,t,n,a,(t.subtreeFlags&10256)!==0)),s&2048&&Cr(m,t);break;case 24:Yt(e,t,n,a),s&2048&&zr(t.alternate,t);break;default:Yt(e,t,n,a)}}function Ma(e,t,n,a,s){for(s=s&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var o=e,m=t,v=n,x=a,z=m.flags;switch(m.tag){case 0:case 11:case 15:Ma(o,m,v,x,s),kl(8,m);break;case 23:break;case 22:var L=m.stateNode;m.memoizedState!==null?L._visibility&2?Ma(o,m,v,x,s):jl(o,m):(L._visibility|=2,Ma(o,m,v,x,s)),s&&z&2048&&Cr(m.alternate,m);break;case 24:Ma(o,m,v,x,s),s&&z&2048&&zr(m.alternate,m);break;default:Ma(o,m,v,x,s)}t=t.sibling}}function jl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,s=a.flags;switch(a.tag){case 22:jl(n,a),s&2048&&Cr(a.alternate,a);break;case 24:jl(n,a),s&2048&&zr(a.alternate,a);break;default:jl(n,a)}t=t.sibling}}var Ml=8192;function _a(e){if(e.subtreeFlags&Ml)for(e=e.child;e!==null;)Qd(e),e=e.sibling}function Qd(e){switch(e.tag){case 26:_a(e),e.flags&Ml&&e.memoizedState!==null&&qy(Lt,e.memoizedState,e.memoizedProps);break;case 5:_a(e);break;case 3:case 4:var t=Lt;Lt=ys(e.stateNode.containerInfo),_a(e),Lt=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Ml,Ml=16777216,_a(e),Ml=t):_a(e));break;default:_a(e)}}function Xd(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 _l(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];Xe=a,Kd(a,e)}Xd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Zd(e),e=e.sibling}function Zd(e){switch(e.tag){case 0:case 11:case 15:_l(e),e.flags&2048&&Tn(9,e,e.return);break;case 3:_l(e);break;case 12:_l(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,is(e)):_l(e);break;default:_l(e)}}function is(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];Xe=a,Kd(a,e)}Xd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Tn(8,t,t.return),is(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,is(t));break;default:is(t)}e=e.sibling}}function Kd(e,t){for(;Xe!==null;){var n=Xe;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:yl(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Xe=a;else e:for(n=e;Xe!==null;){a=Xe;var s=a.sibling,o=a.return;if(Bd(a),a===n){Xe=null;break e}if(s!==null){s.return=o,Xe=s;break e}Xe=o}}}var ny={getCacheForType:function(e){var t=Pe($e),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},ay=typeof WeakMap=="function"?WeakMap:Map,xe=0,ze=null,he=null,ge=0,Ee=0,bt=null,Nn=!1,La=!1,kr=!1,rn=0,Ue=0,An=0,ta=0,Dr=0,zt=0,Ua=0,Ll=null,ct=null,jr=!1,Mr=0,ss=1/0,us=null,On=null,Je=0,Cn=null,Ha=null,Ba=0,_r=0,Lr=null,Jd=null,Ul=0,Ur=null;function St(){if((xe&2)!==0&&ge!==0)return ge&-ge;if(_.T!==null){var e=Na;return e!==0?e:Yr()}return cc()}function Fd(){zt===0&&(zt=(ge&536870912)===0||be?sc():536870912);var e=Ct.current;return e!==null&&(e.flags|=32),zt}function xt(e,t,n){(e===ze&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)&&(qa(e,0),zn(e,ge,zt,!1)),tl(e,n),((xe&2)===0||e!==ze)&&(e===ze&&((xe&2)===0&&(ta|=n),Ue===4&&zn(e,ge,zt,!1)),Qt(e))}function Wd(e,t,n){if((xe&6)!==0)throw Error(u(327));var a=!n&&(t&124)===0&&(t&e.expiredLanes)===0||el(e,t),s=a?sy(e,t):qr(e,t,!0),o=a;do{if(s===0){La&&!a&&zn(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!ly(n)){s=qr(e,t,!1),o=!1;continue}if(s===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;s=Ll;var x=v.current.memoizedState.isDehydrated;if(x&&(qa(v,m).flags|=256),m=qr(v,m,!1),m!==2){if(kr&&!x){v.errorRecoveryDisabledLanes|=o,ta|=o,s=4;break e}o=ct,ct=s,o!==null&&(ct===null?ct=o:ct.push.apply(ct,o))}s=m}if(o=!1,s!==2)continue}}if(s===1){qa(e,0),zn(e,t,0,!0);break}e:{switch(a=e,o=s,o){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:zn(a,t,zt,!Nn);break e;case 2:ct=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(s=Mr+300-qt(),10<s)){if(zn(a,t,zt,!Nn),vi(a,0,!0)!==0)break e;a.timeoutHandle=Nh(Pd.bind(null,a,n,ct,us,jr,t,zt,ta,Ua,Nn,o,2,-0,0),s);break e}Pd(a,n,ct,us,jr,t,zt,ta,Ua,Nn,o,0,-0,0)}}break}while(!0);Qt(e)}function Pd(e,t,n,a,s,o,m,v,x,z,L,B,D,j){if(e.timeoutHandle=-1,B=t.subtreeFlags,(B&8192||(B&16785408)===16785408)&&(Yl={stylesheets:null,count:0,unsuspend:By},Qd(t),B=Gy(),B!==null)){e.cancelPendingCommit=B(ih.bind(null,e,t,o,n,a,s,m,v,x,L,1,D,j)),zn(e,o,m,!z);return}ih(e,t,o,n,a,s,m,v,x)}function ly(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 s=n[a],o=s.getSnapshot;s=s.value;try{if(!gt(o(),s))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&=~Dr,t&=~ta,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var s=t;0<s;){var o=31-pt(s),m=1<<o;a[o]=-1,s&=~m}n!==0&&rc(e,n,t)}function rs(){return(xe&6)===0?(Hl(0),!1):!0}function Hr(){if(he!==null){if(Ee===0)var e=he.return;else e=he,It=Jn=null,tr(e),Da=null,Ol=0,e=he;for(;e!==null;)kd(e.alternate,e),e=e.return;he=null}}function qa(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Ey(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Hr(),ze=e,he=n=Ft(e.current,null),ge=t,Ee=0,bt=null,Nn=!1,La=el(e,t),kr=!1,Ua=zt=Dr=ta=An=Ue=0,ct=Ll=null,jr=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var s=31-pt(a),o=1<<s;t|=e[s],a&=~o}return rn=t,zi(),n}function Id(e,t){fe=null,_.H=Ji,t===bl||t===Bi?(t=mf(),Ee=3):t===hf?(t=mf(),Ee=4):Ee=t===yd?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,bt=t,he===null&&(Ue=1,es(e,wt(t,e.current)))}function eh(){var e=_.H;return _.H=Ji,e===null?Ji:e}function th(){var e=_.A;return _.A=ny,e}function Br(){Ue=4,Nn||(ge&4194048)!==ge&&Ct.current!==null||(La=!0),(An&134217727)===0&&(ta&134217727)===0||ze===null||zn(ze,ge,zt,!1)}function qr(e,t,n){var a=xe;xe|=2;var s=eh(),o=th();(ze!==e||ge!==t)&&(us=null,qa(e,t)),t=!1;var m=Ue;e:do try{if(Ee!==0&&he!==null){var v=he,x=bt;switch(Ee){case 8:Hr(),m=6;break e;case 3:case 2:case 9:case 6:Ct.current===null&&(t=!0);var z=Ee;if(Ee=0,bt=null,Ga(e,v,x,z),n&&La){m=0;break e}break;default:z=Ee,Ee=0,bt=null,Ga(e,v,x,z)}}iy(),m=Ue;break}catch(L){Id(e,L)}while(!0);return t&&e.shellSuspendCounter++,It=Jn=null,xe=a,_.H=s,_.A=o,he===null&&(ze=null,ge=0,zi()),m}function iy(){for(;he!==null;)nh(he)}function sy(e,t){var n=xe;xe|=2;var a=eh(),s=th();ze!==e||ge!==t?(us=null,ss=qt()+500,qa(e,t)):La=el(e,t);e:do try{if(Ee!==0&&he!==null){t=he;var o=bt;t:switch(Ee){case 1:Ee=0,bt=null,Ga(e,t,o,1);break;case 2:case 9:if(pf(o)){Ee=0,bt=null,ah(t);break}t=function(){Ee!==2&&Ee!==9||ze!==e||(Ee=7),Qt(e)},o.then(t,t);break e;case 3:Ee=7;break e;case 4:Ee=5;break e;case 7:pf(o)?(Ee=0,bt=null,ah(t)):(Ee=0,bt=null,Ga(e,t,o,7));break;case 5:var m=null;switch(he.tag){case 26:m=he.memoizedState;case 5:case 27:var v=he;if(!m||Hh(m)){Ee=0,bt=null;var x=v.sibling;if(x!==null)he=x;else{var z=v.return;z!==null?(he=z,os(z)):he=null}break t}}Ee=0,bt=null,Ga(e,t,o,5);break;case 6:Ee=0,bt=null,Ga(e,t,o,6);break;case 8:Hr(),Ue=6;break e;default:throw Error(u(462))}}uy();break}catch(L){Id(e,L)}while(!0);return It=Jn=null,_.H=a,_.A=s,xe=n,he!==null?0:(ze=null,ge=0,zi(),Ue)}function uy(){for(;he!==null&&!Cg();)nh(he)}function nh(e){var t=Cd(e.alternate,e,rn);e.memoizedProps=e.pendingProps,t===null?os(e):he=t}function ah(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Td(n,t,t.pendingProps,t.type,void 0,ge);break;case 11:t=Td(n,t,t.pendingProps,t.type.render,t.ref,ge);break;case 5:tr(t);default:kd(n,t),t=he=af(t,rn),t=Cd(n,t,rn)}e.memoizedProps=e.pendingProps,t===null?os(e):he=t}function Ga(e,t,n,a){It=Jn=null,tr(t),Da=null,Ol=0;var s=t.return;try{if(Fm(e,s,t,n,ge)){Ue=1,es(e,wt(n,e.current)),he=null;return}}catch(o){if(s!==null)throw he=s,o;Ue=1,es(e,wt(n,e.current)),he=null;return}t.flags&32768?(be||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))),lh(t,e)):os(t)}function os(e){var t=e;do{if((t.flags&32768)!==0){lh(t,Nn);return}e=t.return;var n=Pm(t.alternate,t,rn);if(n!==null){he=n;return}if(t=t.sibling,t!==null){he=t;return}he=t=e}while(t!==null);Ue===0&&(Ue=5)}function lh(e,t){do{var n=Im(e.alternate,e);if(n!==null){n.flags&=32767,he=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){he=e;return}he=e=n}while(e!==null);Ue=6,he=null}function ih(e,t,n,a,s,o,m,v,x){e.cancelPendingCommit=null;do cs();while(Je!==0);if((xe&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(o=t.lanes|t.childLanes,o|=zu,Bg(e,n,o,m,v,x),e===ze&&(he=ze=null,ge=0),Ha=t,Cn=e,Ba=n,_r=o,Lr=s,Jd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,fy(gi,function(){return ch(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=_.T,_.T=null,s=V.p,V.p=2,m=xe,xe|=4;try{ey(e,t,n)}finally{xe=m,V.p=s,_.T=a}}Je=1,sh(),uh(),rh()}}function sh(){if(Je===1){Je=0;var e=Cn,t=Ha,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=_.T,_.T=null;var a=V.p;V.p=2;var s=xe;xe|=4;try{$d(t,e);var o=Pr,m=Zc(e.containerInfo),v=o.focusedElem,x=o.selectionRange;if(m!==v&&v&&v.ownerDocument&&Xc(v.ownerDocument.documentElement,v)){if(x!==null&&wu(v)){var z=x.start,L=x.end;if(L===void 0&&(L=z),"selectionStart"in v)v.selectionStart=z,v.selectionEnd=Math.min(L,v.value.length);else{var B=v.ownerDocument||document,D=B&&B.defaultView||window;if(D.getSelection){var j=D.getSelection(),ae=v.textContent.length,te=Math.min(x.start,ae),Ne=x.end===void 0?te:Math.min(x.end,ae);!j.extend&&te>Ne&&(m=Ne,Ne=te,te=m);var N=Qc(v,te),w=Qc(v,Ne);if(N&&w&&(j.rangeCount!==1||j.anchorNode!==N.node||j.anchorOffset!==N.offset||j.focusNode!==w.node||j.focusOffset!==w.offset)){var C=B.createRange();C.setStart(N.node,N.offset),j.removeAllRanges(),te>Ne?(j.addRange(C),j.extend(w.node,w.offset)):(C.setEnd(w.node,w.offset),j.addRange(C))}}}}for(B=[],j=v;j=j.parentNode;)j.nodeType===1&&B.push({element:j,left:j.scrollLeft,top:j.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<B.length;v++){var U=B[v];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}Es=!!Wr,Pr=Wr=null}finally{xe=s,V.p=a,_.T=n}}e.current=t,Je=2}}function uh(){if(Je===2){Je=0;var e=Cn,t=Ha,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=_.T,_.T=null;var a=V.p;V.p=2;var s=xe;xe|=4;try{Hd(e,t.alternate,t)}finally{xe=s,V.p=a,_.T=n}}Je=3}}function rh(){if(Je===4||Je===3){Je=0,zg();var e=Cn,t=Ha,n=Ba,a=Jd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Je=5:(Je=0,Ha=Cn=null,oh(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(On=null),lu(n),t=t.stateNode,ht&&typeof ht.onCommitFiberRoot=="function")try{ht.onCommitFiberRoot(Ia,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=_.T,s=V.p,V.p=2,_.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{_.T=t,V.p=s}}(Ba&3)!==0&&cs(),Qt(e),s=e.pendingLanes,(n&4194090)!==0&&(s&42)!==0?e===Ur?Ul++:(Ul=0,Ur=e):Ul=0,Hl(0)}}function oh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,yl(t)))}function cs(e){return sh(),uh(),rh(),ch()}function ch(){if(Je!==5)return!1;var e=Cn,t=_r;_r=0;var n=lu(Ba),a=_.T,s=V.p;try{V.p=32>n?32:n,_.T=null,n=Lr,Lr=null;var o=Cn,m=Ba;if(Je=0,Ha=Cn=null,Ba=0,(xe&6)!==0)throw Error(u(331));var v=xe;if(xe|=4,Zd(o.current),Yd(o,o.current,m,n),xe=v,Hl(0,!1),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot(Ia,o)}catch{}return!0}finally{V.p=s,_.T=a,oh(e,t)}}function fh(e,t,n){t=wt(n,t),t=gr(e.stateNode,t,2),e=bn(e,t,2),e!==null&&(tl(e,2),Qt(e))}function Ae(e,t,n){if(e.tag===3)fh(e,e,n);else for(;t!==null;){if(t.tag===3){fh(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=gd(2),a=bn(t,n,2),a!==null&&(md(n,a,t,e),tl(a,2),Qt(a));break}}t=t.return}}function Gr(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new ay;var s=new Set;a.set(t,s)}else s=a.get(t),s===void 0&&(s=new Set,a.set(t,s));s.has(n)||(kr=!0,s.add(n),e=ry.bind(null,e,t,n),t.then(e,e))}function ry(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ze===e&&(ge&n)===n&&(Ue===4||Ue===3&&(ge&62914560)===ge&&300>qt()-Mr?(xe&2)===0&&qa(e,0):Dr|=n,Ua===ge&&(Ua=0)),Qt(e)}function dh(e,t){t===0&&(t=uc()),e=Ea(e,t),e!==null&&(tl(e,t),Qt(e))}function oy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),dh(e,n)}function cy(e,t){var n=0;switch(e.tag){case 13:var a=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),dh(e,n)}function fy(e,t){return eu(e,t)}var fs=null,$a=null,$r=!1,ds=!1,Vr=!1,na=0;function Qt(e){e!==$a&&e.next===null&&($a===null?fs=$a=e:$a=$a.next=e),ds=!0,$r||($r=!0,hy())}function Hl(e,t){if(!Vr&&ds){Vr=!0;do for(var n=!1,a=fs;a!==null;){if(e!==0){var s=a.pendingLanes;if(s===0)var o=0;else{var m=a.suspendedLanes,v=a.pingedLanes;o=(1<<31-pt(42|e)+1)-1,o&=s&~(m&~v),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,mh(a,o))}else o=ge,o=vi(a,a===ze?o:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(o&3)===0||el(a,o)||(n=!0,mh(a,o));a=a.next}while(n);Vr=!1}}function dy(){hh()}function hh(){ds=$r=!1;var e=0;na!==0&&(xy()&&(e=na),na=0);for(var t=qt(),n=null,a=fs;a!==null;){var s=a.next,o=ph(a,t);o===0?(a.next=null,n===null?fs=s:n.next=s,s===null&&($a=n)):(n=a,(e!==0||(o&3)!==0)&&(ds=!0)),a=s}Hl(e)}function ph(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,s=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var m=31-pt(o),v=1<<m,x=s[m];x===-1?((v&n)===0||(v&a)!==0)&&(s[m]=Hg(v,t)):x<=t&&(e.expiredLanes|=v),o&=~v}if(t=ze,n=ge,n=vi(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&tu(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||el(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&tu(a),lu(n)){case 2:case 8:n=lc;break;case 32:n=gi;break;case 268435456:n=ic;break;default:n=gi}return a=gh.bind(null,e),n=eu(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&tu(a),e.callbackPriority=2,e.callbackNode=null,2}function gh(e,t){if(Je!==0&&Je!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(cs()&&e.callbackNode!==n)return null;var a=ge;return a=vi(e,e===ze?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Wd(e,a,t),ph(e,qt()),e.callbackNode!=null&&e.callbackNode===n?gh.bind(null,e):null)}function mh(e,t){if(cs())return null;Wd(e,t,!0)}function hy(){Ty(function(){(xe&6)!==0?eu(ac,dy):hh()})}function Yr(){return na===0&&(na=sc()),na}function yh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ti(""+e)}function vh(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 py(e,t,n,a,s){if(t==="submit"&&n&&n.stateNode===s){var o=yh((s[st]||null).action),m=a.submitter;m&&(t=(t=m[st]||null)?yh(t.formAction):m.getAttribute("formAction"),t!==null&&(o=t,m=null));var v=new Ai("action","action",null,a,s);e.push({event:v,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(na!==0){var x=m?vh(s,m):new FormData(s);cr(n,{pending:!0,data:x,method:s.method,action:o},null,x)}}else typeof o=="function"&&(v.preventDefault(),x=m?vh(s,m):new FormData(s),cr(n,{pending:!0,data:x,method:s.method,action:o},o,x))},currentTarget:s}]})}}for(var Qr=0;Qr<Cu.length;Qr++){var Xr=Cu[Qr],gy=Xr.toLowerCase(),my=Xr[0].toUpperCase()+Xr.slice(1);_t(gy,"on"+my)}_t(Fc,"onAnimationEnd"),_t(Wc,"onAnimationIteration"),_t(Pc,"onAnimationStart"),_t("dblclick","onDoubleClick"),_t("focusin","onFocus"),_t("focusout","onBlur"),_t(jm,"onTransitionRun"),_t(Mm,"onTransitionStart"),_t(_m,"onTransitionCancel"),_t(Ic,"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 Bl="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(" "),yy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Bl));function bh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],s=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,z=v.currentTarget;if(v=v.listener,x!==o&&s.isPropagationStopped())break e;o=v,s.currentTarget=z;try{o(s)}catch(L){Ii(L)}s.currentTarget=null,o=x}else for(m=0;m<a.length;m++){if(v=a[m],x=v.instance,z=v.currentTarget,v=v.listener,x!==o&&s.isPropagationStopped())break e;o=v,s.currentTarget=z;try{o(s)}catch(L){Ii(L)}s.currentTarget=null,o=x}}}}function pe(e,t){var n=t[iu];n===void 0&&(n=t[iu]=new Set);var a=e+"__bubble";n.has(a)||(Sh(t,e,2,!1),n.add(a))}function Zr(e,t,n){var a=0;t&&(a|=4),Sh(n,e,a,t)}var hs="_reactListening"+Math.random().toString(36).slice(2);function Kr(e){if(!e[hs]){e[hs]=!0,dc.forEach(function(n){n!=="selectionchange"&&(yy.has(n)||Zr(n,!1,e),Zr(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[hs]||(t[hs]=!0,Zr("selectionchange",!1,t))}}function Sh(e,t,n,a){switch(Yh(t)){case 2:var s=Yy;break;case 8:s=Qy;break;default:s=ro}n=s.bind(null,t,n,e),s=void 0,!mu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),a?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Jr(e,t,n,a,s){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===s)break;if(m===4)for(m=a.return;m!==null;){var x=m.tag;if((x===3||x===4)&&m.stateNode.containerInfo===s)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}Nc(function(){var z=o,L=pu(n),B=[];e:{var D=ef.get(e);if(D!==void 0){var j=Ai,ae=e;switch(e){case"keypress":if(wi(n)===0)break e;case"keydown":case"keyup":j=fm;break;case"focusin":ae="focus",j=Su;break;case"focusout":ae="blur",j=Su;break;case"beforeblur":case"afterblur":j=Su;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":j=Cc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=Ig;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=pm;break;case Fc:case Wc:case Pc:j=nm;break;case Ic:j=mm;break;case"scroll":case"scrollend":j=Wg;break;case"wheel":j=vm;break;case"copy":case"cut":case"paste":j=lm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=kc;break;case"toggle":case"beforetoggle":j=Sm}var te=(t&4)!==0,Ne=!te&&(e==="scroll"||e==="scrollend"),N=te?D!==null?D+"Capture":null:D;te=[];for(var w=z,C;w!==null;){var U=w;if(C=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||C===null||N===null||(U=ll(w,N),U!=null&&te.push(ql(w,U,C))),Ne)break;w=w.return}0<te.length&&(D=new j(D,ae,null,n,L),B.push({event:D,listeners:te}))}}if((t&7)===0){e:{if(D=e==="mouseover"||e==="pointerover",j=e==="mouseout"||e==="pointerout",D&&n!==hu&&(ae=n.relatedTarget||n.fromElement)&&(oa(ae)||ae[ra]))break e;if((j||D)&&(D=L.window===L?L:(D=L.ownerDocument)?D.defaultView||D.parentWindow:window,j?(ae=n.relatedTarget||n.toElement,j=z,ae=ae?oa(ae):null,ae!==null&&(Ne=f(ae),te=ae.tag,ae!==Ne||te!==5&&te!==27&&te!==6)&&(ae=null)):(j=null,ae=z),j!==ae)){if(te=Cc,U="onMouseLeave",N="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(te=kc,U="onPointerLeave",N="onPointerEnter",w="pointer"),Ne=j==null?D:al(j),C=ae==null?D:al(ae),D=new te(U,w+"leave",j,n,L),D.target=Ne,D.relatedTarget=C,U=null,oa(L)===z&&(te=new te(N,w+"enter",ae,n,L),te.target=C,te.relatedTarget=Ne,U=te),Ne=U,j&&ae)t:{for(te=j,N=ae,w=0,C=te;C;C=Va(C))w++;for(C=0,U=N;U;U=Va(U))C++;for(;0<w-C;)te=Va(te),w--;for(;0<C-w;)N=Va(N),C--;for(;w--;){if(te===N||N!==null&&te===N.alternate)break t;te=Va(te),N=Va(N)}te=null}else te=null;j!==null&&xh(B,D,j,te,!1),ae!==null&&Ne!==null&&xh(B,Ne,ae,te,!0)}}e:{if(D=z?al(z):window,j=D.nodeName&&D.nodeName.toLowerCase(),j==="select"||j==="input"&&D.type==="file")var Z=Bc;else if(Uc(D))if(qc)Z=zm;else{Z=Om;var de=Am}else j=D.nodeName,!j||j.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?z&&du(z.elementType)&&(Z=Bc):Z=Cm;if(Z&&(Z=Z(e,z))){Hc(B,Z,n,L);break e}de&&de(e,D,z),e==="focusout"&&z&&D.type==="number"&&z.memoizedProps.value!=null&&fu(D,"number",D.value)}switch(de=z?al(z):window,e){case"focusin":(Uc(de)||de.contentEditable==="true")&&(ba=de,Nu=z,dl=null);break;case"focusout":dl=Nu=ba=null;break;case"mousedown":Au=!0;break;case"contextmenu":case"mouseup":case"dragend":Au=!1,Kc(B,n,L);break;case"selectionchange":if(Dm)break;case"keydown":case"keyup":Kc(B,n,L)}var P;if(Eu)e:{switch(e){case"compositionstart":var ne="onCompositionStart";break e;case"compositionend":ne="onCompositionEnd";break e;case"compositionupdate":ne="onCompositionUpdate";break e}ne=void 0}else va?_c(e,n)&&(ne="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ne="onCompositionStart");ne&&(Dc&&n.locale!=="ko"&&(va||ne!=="onCompositionStart"?ne==="onCompositionEnd"&&va&&(P=Ac()):(gn=L,yu="value"in gn?gn.value:gn.textContent,va=!0)),de=ps(z,ne),0<de.length&&(ne=new zc(ne,e,null,n,L),B.push({event:ne,listeners:de}),P?ne.data=P:(P=Lc(n),P!==null&&(ne.data=P)))),(P=Em?Tm(e,n):Rm(e,n))&&(ne=ps(z,"onBeforeInput"),0<ne.length&&(de=new zc("onBeforeInput","beforeinput",null,n,L),B.push({event:de,listeners:ne}),de.data=P)),py(B,e,z,n,L)}bh(B,t)})}function ql(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ps(e,t){for(var n=t+"Capture",a=[];e!==null;){var s=e,o=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||o===null||(s=ll(e,n),s!=null&&a.unshift(ql(e,s,o)),s=ll(e,t),s!=null&&a.push(ql(e,s,o))),e.tag===3)return a;e=e.return}return[]}function Va(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function xh(e,t,n,a,s){for(var o=t._reactName,m=[];n!==null&&n!==a;){var v=n,x=v.alternate,z=v.stateNode;if(v=v.tag,x!==null&&x===a)break;v!==5&&v!==26&&v!==27||z===null||(x=z,s?(z=ll(n,o),z!=null&&m.unshift(ql(n,z,x))):s||(z=ll(n,o),z!=null&&m.push(ql(n,z,x)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}var vy=/\r\n?/g,by=/\u0000|\uFFFD/g;function Eh(e){return(typeof e=="string"?e:""+e).replace(vy,`
|
|
174
|
-
`).replace(by,"")}function Th(e,t){return t=Eh(t),Eh(e)===t}function gs(){}function we(e,t,n,a,s,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":Si(e,"class",a);break;case"tabIndex":Si(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Si(e,n,a);break;case"style":Rc(e,a,o);break;case"data":if(t!=="object"){Si(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=Ti(""+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"&&we(e,t,"name",s.name,s,null),we(e,t,"formEncType",s.formEncType,s,null),we(e,t,"formMethod",s.formMethod,s,null),we(e,t,"formTarget",s.formTarget,s,null)):(we(e,t,"encType",s.encType,s,null),we(e,t,"method",s.method,s,null),we(e,t,"target",s.target,s,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Ti(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=gs);break;case"onScroll":a!=null&&pe("scroll",e);break;case"onScrollEnd":a!=null&&pe("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(u(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=Ti(""+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":pe("beforetoggle",e),pe("toggle",e),bi(e,"popover",a);break;case"xlinkActuate":Kt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Kt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Kt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Kt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Kt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Kt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":bi(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=Jg.get(n)||n,bi(e,n,a))}}function Fr(e,t,n,a,s,o){switch(n){case"style":Rc(e,a,o);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(u(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&&pe("scroll",e);break;case"onScrollEnd":a!=null&&pe("scrollend",e);break;case"onClick":a!=null&&(e.onclick=gs);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!hc.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),t=n.slice(2,s?n.length-7:void 0),o=e[st]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,s),typeof a=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,s);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):bi(e,n,a)}}}function Fe(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":pe("error",e),pe("load",e);var a=!1,s=!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":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:we(e,t,o,m,n,null)}}s&&we(e,t,"srcSet",n.srcSet,n,null),a&&we(e,t,"src",n.src,n,null);return;case"input":pe("invalid",e);var v=o=m=s=null,x=null,z=null;for(a in n)if(n.hasOwnProperty(a)){var L=n[a];if(L!=null)switch(a){case"name":s=L;break;case"type":m=L;break;case"checked":x=L;break;case"defaultChecked":z=L;break;case"value":o=L;break;case"defaultValue":v=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(u(137,t));break;default:we(e,t,a,L,n,null)}}Sc(e,o,v,x,z,m,s,!1),xi(e);return;case"select":pe("invalid",e),a=m=o=null;for(s in n)if(n.hasOwnProperty(s)&&(v=n[s],v!=null))switch(s){case"value":o=v;break;case"defaultValue":m=v;break;case"multiple":a=v;default:we(e,t,s,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":pe("invalid",e),o=s=a=null;for(m in n)if(n.hasOwnProperty(m)&&(v=n[m],v!=null))switch(m){case"value":a=v;break;case"defaultValue":s=v;break;case"children":o=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(u(91));break;default:we(e,t,m,v,n,null)}Ec(e,a,s,o),xi(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:we(e,t,x,a,n,null)}return;case"dialog":pe("beforetoggle",e),pe("toggle",e),pe("cancel",e),pe("close",e);break;case"iframe":case"object":pe("load",e);break;case"video":case"audio":for(a=0;a<Bl.length;a++)pe(Bl[a],e);break;case"image":pe("error",e),pe("load",e);break;case"details":pe("toggle",e);break;case"embed":case"source":case"link":pe("error",e),pe("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(z in n)if(n.hasOwnProperty(z)&&(a=n[z],a!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:we(e,t,z,a,n,null)}return;default:if(du(t)){for(L in n)n.hasOwnProperty(L)&&(a=n[L],a!==void 0&&Fr(e,t,L,a,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(a=n[v],a!=null&&we(e,t,v,a,n,null))}function Sy(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 s=null,o=null,m=null,v=null,x=null,z=null,L=null;for(j in n){var B=n[j];if(n.hasOwnProperty(j)&&B!=null)switch(j){case"checked":break;case"value":break;case"defaultValue":x=B;default:a.hasOwnProperty(j)||we(e,t,j,null,a,B)}}for(var D in a){var j=a[D];if(B=n[D],a.hasOwnProperty(D)&&(j!=null||B!=null))switch(D){case"type":o=j;break;case"name":s=j;break;case"checked":z=j;break;case"defaultChecked":L=j;break;case"value":m=j;break;case"defaultValue":v=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(u(137,t));break;default:j!==B&&we(e,t,D,j,a,B)}}cu(e,m,v,x,z,L,o,s);return;case"select":j=m=v=D=null;for(o in n)if(x=n[o],n.hasOwnProperty(o)&&x!=null)switch(o){case"value":break;case"multiple":j=x;default:a.hasOwnProperty(o)||we(e,t,o,null,a,x)}for(s in a)if(o=a[s],x=n[s],a.hasOwnProperty(s)&&(o!=null||x!=null))switch(s){case"value":D=o;break;case"defaultValue":v=o;break;case"multiple":m=o;default:o!==x&&we(e,t,s,o,a,x)}t=v,n=m,a=j,D!=null?pa(e,!!n,D,!1):!!a!=!!n&&(t!=null?pa(e,!!n,t,!0):pa(e,!!n,n?[]:"",!1));return;case"textarea":j=D=null;for(v in n)if(s=n[v],n.hasOwnProperty(v)&&s!=null&&!a.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:we(e,t,v,null,a,s)}for(m in a)if(s=a[m],o=n[m],a.hasOwnProperty(m)&&(s!=null||o!=null))switch(m){case"value":D=s;break;case"defaultValue":j=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(u(91));break;default:s!==o&&we(e,t,m,s,a,o)}xc(e,D,j);return;case"option":for(var ae in n)if(D=n[ae],n.hasOwnProperty(ae)&&D!=null&&!a.hasOwnProperty(ae))switch(ae){case"selected":e.selected=!1;break;default:we(e,t,ae,null,a,D)}for(x in a)if(D=a[x],j=n[x],a.hasOwnProperty(x)&&D!==j&&(D!=null||j!=null))switch(x){case"selected":e.selected=D&&typeof D!="function"&&typeof D!="symbol";break;default:we(e,t,x,D,a,j)}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 n)D=n[te],n.hasOwnProperty(te)&&D!=null&&!a.hasOwnProperty(te)&&we(e,t,te,null,a,D);for(z in a)if(D=a[z],j=n[z],a.hasOwnProperty(z)&&D!==j&&(D!=null||j!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(u(137,t));break;default:we(e,t,z,D,a,j)}return;default:if(du(t)){for(var Ne in n)D=n[Ne],n.hasOwnProperty(Ne)&&D!==void 0&&!a.hasOwnProperty(Ne)&&Fr(e,t,Ne,void 0,a,D);for(L in a)D=a[L],j=n[L],!a.hasOwnProperty(L)||D===j||D===void 0&&j===void 0||Fr(e,t,L,D,a,j);return}}for(var N in n)D=n[N],n.hasOwnProperty(N)&&D!=null&&!a.hasOwnProperty(N)&&we(e,t,N,null,a,D);for(B in a)D=a[B],j=n[B],!a.hasOwnProperty(B)||D===j||D==null&&j==null||we(e,t,B,D,a,j)}var Wr=null,Pr=null;function ms(e){return e.nodeType===9?e:e.ownerDocument}function Rh(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 wh(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 Ir(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 eo=null;function xy(){var e=window.event;return e&&e.type==="popstate"?e===eo?!1:(eo=e,!0):(eo=null,!1)}var Nh=typeof setTimeout=="function"?setTimeout:void 0,Ey=typeof clearTimeout=="function"?clearTimeout:void 0,Ah=typeof Promise=="function"?Promise:void 0,Ty=typeof queueMicrotask=="function"?queueMicrotask:typeof Ah<"u"?function(e){return Ah.resolve(null).then(e).catch(Ry)}:Nh;function Ry(e){setTimeout(function(){throw e})}function kn(e){return e==="head"}function Oh(e,t){var n=t,a=0,s=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&&Gl(m.documentElement),n&2&&Gl(m.body),n&4)for(n=m.head,Gl(n),m=n.firstChild;m;){var v=m.nextSibling,x=m.nodeName;m[nl]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&m.rel.toLowerCase()==="stylesheet"||n.removeChild(m),m=v}}if(s===0){e.removeChild(o),Jl(t);return}s--}else n==="$"||n==="$?"||n==="$!"?s++:a=n.charCodeAt(0)-48;else a=0;n=o}while(n);Jl(t)}function to(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":to(n),su(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function wy(e,t,n,a){for(;e.nodeType===1;){var s=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[nl])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!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Ut(e.nextSibling),e===null)break}return null}function Ny(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Ut(e.nextSibling),e===null))return null;return e}function no(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function Ay(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 Ut(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 ao=null;function Ch(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 zh(e,t,n){switch(t=ms(n),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function Gl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);su(e)}var kt=new Map,kh=new Set;function ys(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var on=V.d;V.d={f:Oy,r:Cy,D:zy,C:ky,L:Dy,m:jy,X:_y,S:My,M:Ly};function Oy(){var e=on.f(),t=rs();return e||t}function Cy(e){var t=ca(e);t!==null&&t.tag===5&&t.type==="form"?Wf(t):on.r(e)}var Ya=typeof document>"u"?null:document;function Dh(e,t,n){var a=Ya;if(a&&typeof t=="string"&&t){var s=Rt(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),kh.has(s)||(kh.add(s),e={rel:e,crossOrigin:n,href:t},a.querySelector(s)===null&&(t=a.createElement("link"),Fe(t,"link",e),Ye(t),a.head.appendChild(t)))}}function zy(e){on.D(e),Dh("dns-prefetch",e,null)}function ky(e,t){on.C(e,t),Dh("preconnect",e,t)}function Dy(e,t,n){on.L(e,t,n);var a=Ya;if(a&&e&&t){var s='link[rel="preload"][as="'+Rt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+Rt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+Rt(n.imageSizes)+'"]')):s+='[href="'+Rt(e)+'"]';var o=s;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(s)!==null||t==="style"&&a.querySelector($l(o))||t==="script"&&a.querySelector(Vl(o))||(t=a.createElement("link"),Fe(t,"link",e),Ye(t),a.head.appendChild(t)))}}function jy(e,t){on.m(e,t);var n=Ya;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+Rt(a)+'"][href="'+Rt(e)+'"]',o=s;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(s)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Vl(o)))return}a=n.createElement("link"),Fe(a,"link",e),Ye(a),n.head.appendChild(a)}}}function My(e,t,n){on.S(e,t,n);var a=Ya;if(a&&e){var s=fa(a).hoistableStyles,o=Qa(e);t=t||"default";var m=s.get(o);if(!m){var v={loading:0,preload:null};if(m=a.querySelector($l(o)))v.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},n),(n=kt.get(o))&&lo(e,n);var x=m=a.createElement("link");Ye(x),Fe(x,"link",e),x._p=new Promise(function(z,L){x.onload=z,x.onerror=L}),x.addEventListener("load",function(){v.loading|=1}),x.addEventListener("error",function(){v.loading|=2}),v.loading|=4,vs(m,t,a)}m={type:"stylesheet",instance:m,count:1,state:v},s.set(o,m)}}}function _y(e,t){on.X(e,t);var n=Ya;if(n&&e){var a=fa(n).hoistableScripts,s=Xa(e),o=a.get(s);o||(o=n.querySelector(Vl(s)),o||(e=y({src:e,async:!0},t),(t=kt.get(s))&&io(e,t),o=n.createElement("script"),Ye(o),Fe(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(s,o))}}function Ly(e,t){on.M(e,t);var n=Ya;if(n&&e){var a=fa(n).hoistableScripts,s=Xa(e),o=a.get(s);o||(o=n.querySelector(Vl(s)),o||(e=y({src:e,async:!0,type:"module"},t),(t=kt.get(s))&&io(e,t),o=n.createElement("script"),Ye(o),Fe(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(s,o))}}function jh(e,t,n,a){var s=(s=se.current)?ys(s):null;if(!s)throw Error(u(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(s).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(s).hoistableStyles,m=o.get(e);if(m||(s=s.ownerDocument||s,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,m),(o=s.querySelector($l(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||Uy(s,e,n,m.state))),t&&a===null)throw Error(u(528,""));return m}if(t&&a!==null)throw Error(u(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(s).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(u(444,e))}}function Qa(e){return'href="'+Rt(e)+'"'}function $l(e){return'link[rel="stylesheet"]['+e+"]"}function Mh(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function Uy(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}),Fe(t,"link",n),Ye(t),e.head.appendChild(t))}function Xa(e){return'[src="'+Rt(e)+'"]'}function Vl(e){return"script[async]"+e}function _h(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,Ye(a),a;var s=y({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ye(a),Fe(a,"style",s),vs(a,n.precedence,e),t.instance=a;case"stylesheet":s=Qa(n.href);var o=e.querySelector($l(s));if(o)return t.state.loading|=4,t.instance=o,Ye(o),o;a=Mh(n),(s=kt.get(s))&&lo(a,s),o=(e.ownerDocument||e).createElement("link"),Ye(o);var m=o;return m._p=new Promise(function(v,x){m.onload=v,m.onerror=x}),Fe(o,"link",a),t.state.loading|=4,vs(o,n.precedence,e),t.instance=o;case"script":return o=Xa(n.src),(s=e.querySelector(Vl(o)))?(t.instance=s,Ye(s),s):(a=n,(s=kt.get(o))&&(a=y({},n),io(a,s)),e=e.ownerDocument||e,s=e.createElement("script"),Ye(s),Fe(s,"link",a),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,vs(a,n.precedence,e));return t.instance}function vs(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=a.length?a[a.length-1]:null,o=s,m=0;m<a.length;m++){var v=a[m];if(v.dataset.precedence===t)o=v;else if(o!==s)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function lo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function io(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var bs=null;function Lh(e,t,n){if(bs===null){var a=new Map,s=bs=new Map;s.set(n,a)}else s=bs,a=s.get(n),a||(a=new Map,s.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),s=0;s<n.length;s++){var o=n[s];if(!(o[nl]||o[We]||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 Uh(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Hy(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 Hh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Yl=null;function By(){}function qy(e,t,n){if(Yl===null)throw Error(u(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 s=Qa(n.href),o=e.querySelector($l(s));if(o){e=o._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(a.count++,a=Ss.bind(a),e.then(a,a)),t.state.loading|=4,t.instance=o,Ye(o);return}o=e.ownerDocument||e,n=Mh(n),(s=kt.get(s))&&lo(n,s),o=o.createElement("link"),Ye(o);var m=o;m._p=new Promise(function(v,x){m.onload=v,m.onerror=x}),Fe(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=Ss.bind(a),e.addEventListener("load",t),e.addEventListener("error",t))}}function Gy(){if(Yl===null)throw Error(u(475));var e=Yl;return e.stylesheets&&e.count===0&&so(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&so(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 Ss(){if(this.count--,this.count===0){if(this.stylesheets)so(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var xs=null;function so(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,xs=new Map,t.forEach($y,e),xs=null,Ss.call(e))}function $y(e,t){if(!(t.state.loading&4)){var n=xs.get(e);if(n)var a=n.get(null);else{n=new Map,xs.set(e,n);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<s.length;o++){var m=s[o];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),a=m)}a&&n.set(null,a)}s=t.instance,m=s.getAttribute("data-precedence"),o=n.get(m)||a,o===a&&n.set(null,s),n.set(m,s),this.count++,a=Ss.bind(this),s.addEventListener("load",a),s.addEventListener("error",a),o?o.parentNode.insertBefore(s,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var Ql={$$typeof:$,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function Vy(e,t,n,a,s,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=nu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nu(0),this.hiddenUpdates=nu(null),this.identifierPrefix=a,this.onUncaughtError=s,this.onCaughtError=o,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function Bh(e,t,n,a,s,o,m,v,x,z,L,B){return e=new Vy(e,t,n,m,v,x,z,B),t=1,o===!0&&(t|=24),o=mt(3,null,null,t),e.current=o,o.stateNode=e,t=Gu(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:a,isDehydrated:n,cache:t},Qu(o),e}function qh(e){return e?(e=Ta,e):Ta}function Gh(e,t,n,a,s,o){s=qh(s),a.context===null?a.context=s:a.pendingContext=s,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),xl(n,e,t))}function $h(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function uo(e,t){$h(e,t),(e=e.alternate)&&$h(e,t)}function Vh(e){if(e.tag===13){var t=Ea(e,67108864);t!==null&&xt(t,e,67108864),uo(e,67108864)}}var Es=!0;function Yy(e,t,n,a){var s=_.T;_.T=null;var o=V.p;try{V.p=2,ro(e,t,n,a)}finally{V.p=o,_.T=s}}function Qy(e,t,n,a){var s=_.T;_.T=null;var o=V.p;try{V.p=8,ro(e,t,n,a)}finally{V.p=o,_.T=s}}function ro(e,t,n,a){if(Es){var s=oo(a);if(s===null)Jr(e,t,a,Ts,n),Qh(e,a);else if(Zy(s,e,t,n,a))a.stopPropagation();else if(Qh(e,a),t&4&&-1<Xy.indexOf(e)){for(;s!==null;){var o=ca(s);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}Qt(o),(xe&6)===0&&(ss=qt()+500,Hl(0))}}break;case 13:v=Ea(o,2),v!==null&&xt(v,o,2),rs(),uo(o,2)}if(o=oo(a),o===null&&Jr(e,t,a,Ts,n),o===s)break;s=o}s!==null&&a.stopPropagation()}else Jr(e,t,a,null,n)}}function oo(e){return e=pu(e),co(e)}var Ts=null;function co(e){if(Ts=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=d(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 Ts=e,null}function Yh(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(kg()){case ac:return 2;case lc:return 8;case gi:case Dg:return 32;case ic:return 268435456;default:return 32}default:return 32}}var fo=!1,Dn=null,jn=null,Mn=null,Xl=new Map,Zl=new Map,_n=[],Xy="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 Qh(e,t){switch(e){case"focusin":case"focusout":Dn=null;break;case"dragenter":case"dragleave":jn=null;break;case"mouseover":case"mouseout":Mn=null;break;case"pointerover":case"pointerout":Xl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zl.delete(t.pointerId)}}function Kl(e,t,n,a,s,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:o,targetContainers:[s]},t!==null&&(t=ca(t),t!==null&&Vh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Zy(e,t,n,a,s){switch(t){case"focusin":return Dn=Kl(Dn,e,t,n,a,s),!0;case"dragenter":return jn=Kl(jn,e,t,n,a,s),!0;case"mouseover":return Mn=Kl(Mn,e,t,n,a,s),!0;case"pointerover":var o=s.pointerId;return Xl.set(o,Kl(Xl.get(o)||null,e,t,n,a,s)),!0;case"gotpointercapture":return o=s.pointerId,Zl.set(o,Kl(Zl.get(o)||null,e,t,n,a,s)),!0}return!1}function Xh(e){var t=oa(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=d(n),t!==null){e.blockedOn=t,qg(e.priority,function(){if(n.tag===13){var a=St();a=au(a);var s=Ea(n,a);s!==null&&xt(s,n,a),uo(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 Rs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=oo(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);hu=a,n.target.dispatchEvent(a),hu=null}else return t=ca(n),t!==null&&Vh(t),e.blockedOn=n,!1;t.shift()}return!0}function Zh(e,t,n){Rs(e)&&n.delete(t)}function Ky(){fo=!1,Dn!==null&&Rs(Dn)&&(Dn=null),jn!==null&&Rs(jn)&&(jn=null),Mn!==null&&Rs(Mn)&&(Mn=null),Xl.forEach(Zh),Zl.forEach(Zh)}function ws(e,t){e.blockedOn===t&&(e.blockedOn=null,fo||(fo=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Ky)))}var Ns=null;function Kh(e){Ns!==e&&(Ns=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){Ns===e&&(Ns=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],s=e[t+2];if(typeof a!="function"){if(co(a||n)===null)continue;break}var o=ca(n);o!==null&&(e.splice(t,3),t-=3,cr(o,{pending:!0,data:s,method:n.method,action:a},a,s))}}))}function Jl(e){function t(x){return ws(x,e)}Dn!==null&&ws(Dn,e),jn!==null&&ws(jn,e),Mn!==null&&ws(Mn,e),Xl.forEach(t),Zl.forEach(t);for(var n=0;n<_n.length;n++){var a=_n[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<_n.length&&(n=_n[0],n.blockedOn===null);)Xh(n),n.blockedOn===null&&_n.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var s=n[a],o=n[a+1],m=s[st]||null;if(typeof o=="function")m||Kh(n);else if(m){var v=null;if(o&&o.hasAttribute("formAction")){if(s=o,m=o[st]||null)v=m.formAction;else if(co(s)!==null)continue}else v=m.action;typeof v=="function"?n[a+1]=v:(n.splice(a,3),a-=3),Kh(n)}}}function ho(e){this._internalRoot=e}As.prototype.render=ho.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var n=t.current,a=St();Gh(n,a,e,t,null,null)},As.prototype.unmount=ho.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Gh(e.current,2,null,e,null,null),rs(),t[ra]=null}};function As(e){this._internalRoot=e}As.prototype.unstable_scheduleHydration=function(e){if(e){var t=cc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<_n.length&&t!==0&&t<_n[n].priority;n++);_n.splice(n,0,e),n===0&&Xh(e)}};var Jh=l.version;if(Jh!=="19.1.0")throw Error(u(527,Jh,"19.1.0"));V.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=p(t),e=e!==null?h(e):null,e=e===null?null:e.stateNode,e};var Jy={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Os=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Os.isDisabled&&Os.supportsFiber)try{Ia=Os.inject(Jy),ht=Os}catch{}}return Pl.createRoot=function(e,t){if(!c(e))throw Error(u(299));var n=!1,a="",s=fd,o=dd,m=hd,v=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=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=Bh(e,1,!1,null,null,n,a,s,o,m,v,null),e[ra]=t.current,Kr(e),new ho(t)},Pl.hydrateRoot=function(e,t,n){if(!c(e))throw Error(u(299));var a=!1,s="",o=fd,m=dd,v=hd,x=null,z=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(s=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&&(z=n.formState)),t=Bh(e,1,!0,t,n??null,a,s,o,m,v,x,z),t.context=qh(null),n=t.current,a=St(),a=au(a),s=vn(a),s.callback=null,bn(n,s,a),n=a,t.current.lanes=n,tl(t,n),Qt(t),e[ra]=t.current,Kr(e),new As(t)},Pl.version="19.1.0",Pl}var Sp;function rS(){if(Sp)return yo.exports;Sp=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(l){console.error(l)}}return r(),yo.exports=uS(),yo.exports}var oS=rS();const cS=Ho(oS);var Il={},xp;function fS(){if(xp)return Il;xp=1,Object.defineProperty(Il,"__esModule",{value:!0}),Il.parse=d,Il.serialize=h;const r=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,l=/^[\u0021-\u003A\u003C-\u007E]*$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,u=/^[\u0020-\u003A\u003D-\u007E]*$/,c=Object.prototype.toString,f=(()=>{const b=function(){};return b.prototype=Object.create(null),b})();function d(b,A){const R=new f,k=b.length;if(k<2)return R;const M=(A==null?void 0:A.decode)||y;let H=0;do{const G=b.indexOf("=",H);if(G===-1)break;const $=b.indexOf(";",H),F=$===-1?k:$;if(G>F){H=b.lastIndexOf(";",G-1)+1;continue}const X=g(b,H,G),ue=p(b,G,X),W=b.slice(X,ue);if(R[W]===void 0){let K=g(b,G+1,F),J=p(b,F,K);const re=M(b.slice(K,J));R[W]=re}H=F+1}while(H<k);return R}function g(b,A,R){do{const k=b.charCodeAt(A);if(k!==32&&k!==9)return A}while(++A<R);return R}function p(b,A,R){for(;A>R;){const k=b.charCodeAt(--A);if(k!==32&&k!==9)return A+1}return R}function h(b,A,R){const k=(R==null?void 0:R.encode)||encodeURIComponent;if(!r.test(b))throw new TypeError(`argument name is invalid: ${b}`);const M=k(A);if(!l.test(M))throw new TypeError(`argument val is invalid: ${A}`);let H=b+"="+M;if(!R)return H;if(R.maxAge!==void 0){if(!Number.isInteger(R.maxAge))throw new TypeError(`option maxAge is invalid: ${R.maxAge}`);H+="; Max-Age="+R.maxAge}if(R.domain){if(!i.test(R.domain))throw new TypeError(`option domain is invalid: ${R.domain}`);H+="; Domain="+R.domain}if(R.path){if(!u.test(R.path))throw new TypeError(`option path is invalid: ${R.path}`);H+="; Path="+R.path}if(R.expires){if(!S(R.expires)||!Number.isFinite(R.expires.valueOf()))throw new TypeError(`option expires is invalid: ${R.expires}`);H+="; Expires="+R.expires.toUTCString()}if(R.httpOnly&&(H+="; HttpOnly"),R.secure&&(H+="; Secure"),R.partitioned&&(H+="; Partitioned"),R.priority)switch(typeof R.priority=="string"?R.priority.toLowerCase():void 0){case"low":H+="; Priority=Low";break;case"medium":H+="; Priority=Medium";break;case"high":H+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${R.priority}`)}if(R.sameSite)switch(typeof R.sameSite=="string"?R.sameSite.toLowerCase():R.sameSite){case!0:case"strict":H+="; SameSite=Strict";break;case"lax":H+="; SameSite=Lax";break;case"none":H+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${R.sameSite}`)}return H}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 Il}fS();var Ep="popstate";function dS(r={}){function l(c,f){let{pathname:d="/",search:g="",hash:p=""}=ia(c.location.hash.substring(1));return!d.startsWith("/")&&!d.startsWith(".")&&(d="/"+d),Mo("",{pathname:d,search:g,hash:p},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function i(c,f){let d=c.document.querySelector("base"),g="";if(d&&d.getAttribute("href")){let p=c.location.href,h=p.indexOf("#");g=h===-1?p:p.slice(0,h)}return g+"#"+(typeof f=="string"?f:ui(f))}function u(c,f){Mt(c.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(f)})`)}return pS(l,i,u,r)}function je(r,l){if(r===!1||r===null||typeof r>"u")throw new Error(l)}function Mt(r,l){if(!r){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function hS(){return Math.random().toString(36).substring(2,10)}function Tp(r,l){return{usr:r.state,key:r.key,idx:l}}function Mo(r,l,i=null,u){return{pathname:typeof r=="string"?r:r.pathname,search:"",hash:"",...typeof l=="string"?ia(l):l,state:i,key:l&&l.key||u||hS()}}function ui({pathname:r="/",search:l="",hash:i=""}){return l&&l!=="?"&&(r+=l.charAt(0)==="?"?l:"?"+l),i&&i!=="#"&&(r+=i.charAt(0)==="#"?i:"#"+i),r}function ia(r){let l={};if(r){let i=r.indexOf("#");i>=0&&(l.hash=r.substring(i),r=r.substring(0,i));let u=r.indexOf("?");u>=0&&(l.search=r.substring(u),r=r.substring(0,u)),r&&(l.pathname=r)}return l}function pS(r,l,i,u={}){let{window:c=document.defaultView,v5Compat:f=!1}=u,d=c.history,g="POP",p=null,h=y();h==null&&(h=0,d.replaceState({...d.state,idx:h},""));function y(){return(d.state||{idx:null}).idx}function S(){g="POP";let M=y(),H=M==null?null:M-h;h=M,p&&p({action:g,location:k.location,delta:H})}function b(M,H){g="PUSH";let G=Mo(k.location,M,H);i&&i(G,M),h=y()+1;let $=Tp(G,h),F=k.createHref(G);try{d.pushState($,"",F)}catch(X){if(X instanceof DOMException&&X.name==="DataCloneError")throw X;c.location.assign(F)}f&&p&&p({action:g,location:k.location,delta:1})}function A(M,H){g="REPLACE";let G=Mo(k.location,M,H);i&&i(G,M),h=y();let $=Tp(G,h),F=k.createHref(G);d.replaceState($,"",F),f&&p&&p({action:g,location:k.location,delta:0})}function R(M){let H=c.location.origin!=="null"?c.location.origin:c.location.href,G=typeof M=="string"?M:ui(M);return G=G.replace(/ $/,"%20"),je(H,`No window.location.(origin|href) available to create URL for href: ${G}`),new URL(G,H)}let k={get action(){return g},get location(){return r(c,d)},listen(M){if(p)throw new Error("A history only accepts one active listener");return c.addEventListener(Ep,S),p=M,()=>{c.removeEventListener(Ep,S),p=null}},createHref(M){return l(c,M)},createURL:R,encodeLocation(M){let H=R(M);return{pathname:H.pathname,search:H.search,hash:H.hash}},push:b,replace:A,go(M){return d.go(M)}};return k}function Jp(r,l,i="/"){return gS(r,l,i,!1)}function gS(r,l,i,u){let c=typeof l=="string"?ia(l):l,f=fn(c.pathname||"/",i);if(f==null)return null;let d=Fp(r);mS(d);let g=null;for(let p=0;g==null&&p<d.length;++p){let h=AS(f);g=wS(d[p],h,u)}return g}function Fp(r,l=[],i=[],u=""){let c=(f,d,g)=>{let p={relativePath:g===void 0?f.path||"":g,caseSensitive:f.caseSensitive===!0,childrenIndex:d,route:f};p.relativePath.startsWith("/")&&(je(p.relativePath.startsWith(u),`Absolute route path "${p.relativePath}" nested under path "${u}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(u.length));let h=cn([u,p.relativePath]),y=i.concat(p);f.children&&f.children.length>0&&(je(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),Fp(f.children,l,y,h)),!(f.path==null&&!f.index)&&l.push({path:h,score:TS(h,f.index),routesMeta:y})};return r.forEach((f,d)=>{var g;if(f.path===""||!((g=f.path)!=null&&g.includes("?")))c(f,d);else for(let p of Wp(f.path))c(f,d,p)}),l}function Wp(r){let l=r.split("/");if(l.length===0)return[];let[i,...u]=l,c=i.endsWith("?"),f=i.replace(/\?$/,"");if(u.length===0)return c?[f,""]:[f];let d=Wp(u.join("/")),g=[];return g.push(...d.map(p=>p===""?f:[f,p].join("/"))),c&&g.push(...d),g.map(p=>r.startsWith("/")&&p===""?"/":p)}function mS(r){r.sort((l,i)=>l.score!==i.score?i.score-l.score:RS(l.routesMeta.map(u=>u.childrenIndex),i.routesMeta.map(u=>u.childrenIndex)))}var yS=/^:[\w-]+$/,vS=3,bS=2,SS=1,xS=10,ES=-2,Rp=r=>r==="*";function TS(r,l){let i=r.split("/"),u=i.length;return i.some(Rp)&&(u+=ES),l&&(u+=bS),i.filter(c=>!Rp(c)).reduce((c,f)=>c+(yS.test(f)?vS:f===""?SS:xS),u)}function RS(r,l){return r.length===l.length&&r.slice(0,-1).every((u,c)=>u===l[c])?r[r.length-1]-l[l.length-1]:0}function wS(r,l,i=!1){let{routesMeta:u}=r,c={},f="/",d=[];for(let g=0;g<u.length;++g){let p=u[g],h=g===u.length-1,y=f==="/"?l:l.slice(f.length)||"/",S=Gs({path:p.relativePath,caseSensitive:p.caseSensitive,end:h},y),b=p.route;if(!S&&h&&i&&!u[u.length-1].route.index&&(S=Gs({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},y)),!S)return null;Object.assign(c,S.params),d.push({params:c,pathname:cn([f,S.pathname]),pathnameBase:kS(cn([f,S.pathnameBase])),route:b}),S.pathnameBase!=="/"&&(f=cn([f,S.pathnameBase]))}return d}function Gs(r,l){typeof r=="string"&&(r={path:r,caseSensitive:!1,end:!0});let[i,u]=NS(r.path,r.caseSensitive,r.end),c=l.match(i);if(!c)return null;let f=c[0],d=f.replace(/(.)\/+$/,"$1"),g=c.slice(1);return{params:u.reduce((h,{paramName:y,isOptional:S},b)=>{if(y==="*"){let R=g[b]||"";d=f.slice(0,f.length-R.length).replace(/(.)\/+$/,"$1")}const A=g[b];return S&&!A?h[y]=void 0:h[y]=(A||"").replace(/%2F/g,"/"),h},{}),pathname:f,pathnameBase:d,pattern:r}}function NS(r,l=!1,i=!0){Mt(r==="*"||!r.endsWith("*")||r.endsWith("/*"),`Route path "${r}" will be treated as if it were "${r.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${r.replace(/\*$/,"/*")}".`);let u=[],c="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,g,p)=>(u.push({paramName:g,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return r.endsWith("*")?(u.push({paramName:"*"}),c+=r==="*"||r==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?c+="\\/*$":r!==""&&r!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,l?void 0:"i"),u]}function AS(r){try{return r.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return Mt(!1,`The URL path "${r}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),r}}function fn(r,l){if(l==="/")return r;if(!r.toLowerCase().startsWith(l.toLowerCase()))return null;let i=l.endsWith("/")?l.length-1:l.length,u=r.charAt(i);return u&&u!=="/"?null:r.slice(i)||"/"}function OS(r,l="/"){let{pathname:i,search:u="",hash:c=""}=typeof r=="string"?ia(r):r;return{pathname:i?i.startsWith("/")?i:CS(i,l):l,search:DS(u),hash:jS(c)}}function CS(r,l){let i=l.replace(/\/+$/,"").split("/");return r.split("/").forEach(c=>{c===".."?i.length>1&&i.pop():c!=="."&&i.push(c)}),i.length>1?i.join("/"):"/"}function xo(r,l,i,u){return`Cannot include a '${r}' character in a manually specified \`to.${l}\` field [${JSON.stringify(u)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function zS(r){return r.filter((l,i)=>i===0||l.route.path&&l.route.path.length>0)}function Bo(r){let l=zS(r);return l.map((i,u)=>u===l.length-1?i.pathname:i.pathnameBase)}function qo(r,l,i,u=!1){let c;typeof r=="string"?c=ia(r):(c={...r},je(!c.pathname||!c.pathname.includes("?"),xo("?","pathname","search",c)),je(!c.pathname||!c.pathname.includes("#"),xo("#","pathname","hash",c)),je(!c.search||!c.search.includes("#"),xo("#","search","hash",c)));let f=r===""||c.pathname==="",d=f?"/":c.pathname,g;if(d==null)g=i;else{let S=l.length-1;if(!u&&d.startsWith("..")){let b=d.split("/");for(;b[0]==="..";)b.shift(),S-=1;c.pathname=b.join("/")}g=S>=0?l[S]:"/"}let p=OS(c,g),h=d&&d!=="/"&&d.endsWith("/"),y=(f||d===".")&&i.endsWith("/");return!p.pathname.endsWith("/")&&(h||y)&&(p.pathname+="/"),p}var cn=r=>r.join("/").replace(/\/\/+/g,"/"),kS=r=>r.replace(/\/+$/,"").replace(/^\/*/,"/"),DS=r=>!r||r==="?"?"":r.startsWith("?")?r:"?"+r,jS=r=>!r||r==="#"?"":r.startsWith("#")?r:"#"+r;function MS(r){return r!=null&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.internal=="boolean"&&"data"in r}var Pp=["POST","PUT","PATCH","DELETE"];new Set(Pp);var _S=["GET",...Pp];new Set(_S);var Fa=O.createContext(null);Fa.displayName="DataRouter";var Zs=O.createContext(null);Zs.displayName="DataRouterState";var Ip=O.createContext({isTransitioning:!1});Ip.displayName="ViewTransition";var LS=O.createContext(new Map);LS.displayName="Fetchers";var US=O.createContext(null);US.displayName="Await";var Ht=O.createContext(null);Ht.displayName="Navigation";var ci=O.createContext(null);ci.displayName="Location";var Bt=O.createContext({outlet:null,matches:[],isDataRoute:!1});Bt.displayName="Route";var Go=O.createContext(null);Go.displayName="RouteError";function HS(r,{relative:l}={}){je(Wa(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:u}=O.useContext(Ht),{hash:c,pathname:f,search:d}=fi(r,{relative:l}),g=f;return i!=="/"&&(g=f==="/"?i:cn([i,f])),u.createHref({pathname:g,search:d,hash:c})}function Wa(){return O.useContext(ci)!=null}function Hn(){return je(Wa(),"useLocation() may be used only in the context of a <Router> component."),O.useContext(ci).location}var eg="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function tg(r){O.useContext(Ht).static||O.useLayoutEffect(r)}function Pa(){let{isDataRoute:r}=O.useContext(Bt);return r?PS():BS()}function BS(){je(Wa(),"useNavigate() may be used only in the context of a <Router> component.");let r=O.useContext(Fa),{basename:l,navigator:i}=O.useContext(Ht),{matches:u}=O.useContext(Bt),{pathname:c}=Hn(),f=JSON.stringify(Bo(u)),d=O.useRef(!1);return tg(()=>{d.current=!0}),O.useCallback((p,h={})=>{if(Mt(d.current,eg),!d.current)return;if(typeof p=="number"){i.go(p);return}let y=qo(p,JSON.parse(f),c,h.relative==="path");r==null&&l!=="/"&&(y.pathname=y.pathname==="/"?l:cn([l,y.pathname])),(h.replace?i.replace:i.push)(y,h.state,h)},[l,i,f,c,r])}O.createContext(null);function qS(){let{matches:r}=O.useContext(Bt),l=r[r.length-1];return l?l.params:{}}function fi(r,{relative:l}={}){let{matches:i}=O.useContext(Bt),{pathname:u}=Hn(),c=JSON.stringify(Bo(i));return O.useMemo(()=>qo(r,JSON.parse(c),u,l==="path"),[r,c,u,l])}function GS(r,l){return ng(r,l)}function ng(r,l,i,u){var G;je(Wa(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c,static:f}=O.useContext(Ht),{matches:d}=O.useContext(Bt),g=d[d.length-1],p=g?g.params:{},h=g?g.pathname:"/",y=g?g.pathnameBase:"/",S=g&&g.route;{let $=S&&S.path||"";ag(h,!S||$.endsWith("*")||$.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${$}">) 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.
|
|
171
|
+
`+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 vc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Xg(e){var t=vc(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 xi(e){e._valueTracker||(e._valueTracker=Xg(e))}function bc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=vc(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Ei(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 Zg=/[\n"\\]/g;function Rt(e){return e.replace(Zg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function cs(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?fs(e,m,Tt(t)):n!=null?fs(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 Sc(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 fs(e,t,n){t==="number"&&Ei(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 xc(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 Ec(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(s(92));if(Ce(a)){if(1<a.length)throw Error(s(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 Kg=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 Tc(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||Kg.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Rc(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(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&&Tc(e,u,a)}else for(var o in t)t.hasOwnProperty(o)&&Tc(e,o,t[o])}function ds(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 Jg=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"]]),Fg=/^[\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 Ti(e){return Fg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var hs=null;function ps(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 wc(e){var t=ca(e);if(t&&(e=t.stateNode)){var n=e[ut]||null;e:switch(e=t.stateNode,t.type){case"input":if(cs(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[ut]||null;if(!u)throw Error(s(90));cs(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&&bc(a)}break e;case"textarea":xc(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&pa(e,!!n.multiple,t,!1)}}}var gs=!1;function Nc(e,t,n){if(gs)return e(t,n);gs=!0;try{var a=e(t);return a}finally{if(gs=!1,(ma!==null||ya!==null)&&(ru(),ma&&(t=ma,e=ya,ya=ma=null,wc(t),e)))for(t=0;t<e.length;t++)wc(e[t])}}function ll(e,t){var n=e.stateNode;if(n===null)return null;var a=n[ut]||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(s(231,t,typeof n));return n}var Jt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ms=!1;if(Jt)try{var il={};Object.defineProperty(il,"passive",{get:function(){ms=!0}}),window.addEventListener("test",il,il),window.removeEventListener("test",il,il)}catch{ms=!1}var gn=null,ys=null,Ri=null;function Ac(){if(Ri)return Ri;var e,t=ys,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 Ri=u.slice(e,1<a?1-a:void 0)}function wi(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 Ni(){return!0}function Oc(){return!1}function st(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)?Ni:Oc,this.isPropagationStopped=Oc,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=Ni)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ni)},persist:function(){},isPersistent:Ni}),t}var Gn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ai=st(Gn),ul=y({},Gn,{view:0,detail:0}),Wg=st(ul),vs,bs,sl,Oi=y({},ul,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xs,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!==sl&&(sl&&e.type==="mousemove"?(vs=e.screenX-sl.screenX,bs=e.screenY-sl.screenY):bs=vs=0,sl=e),vs)},movementY:function(e){return"movementY"in e?e.movementY:bs}}),Cc=st(Oi),Pg=y({},Oi,{dataTransfer:0}),Ig=st(Pg),em=y({},ul,{relatedTarget:0}),Ss=st(em),tm=y({},Gn,{animationName:0,elapsedTime:0,pseudoElement:0}),nm=st(tm),am=y({},Gn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lm=st(am),im=y({},Gn,{data:0}),zc=st(im),um={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sm={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"},rm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function om(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=rm[e])?!!t[e]:!1}function xs(){return om}var cm=y({},ul,{key:function(e){if(e.key){var t=um[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=wi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?sm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xs,charCode:function(e){return e.type==="keypress"?wi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?wi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),fm=st(cm),dm=y({},Oi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kc=st(dm),hm=y({},ul,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xs}),pm=st(hm),gm=y({},Gn,{propertyName:0,elapsedTime:0,pseudoElement:0}),mm=st(gm),ym=y({},Oi,{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}),vm=st(ym),bm=y({},Gn,{newState:0,oldState:0}),Sm=st(bm),xm=[9,13,27,32],Es=Jt&&"CompositionEvent"in window,rl=null;Jt&&"documentMode"in document&&(rl=document.documentMode);var Em=Jt&&"TextEvent"in window&&!rl,Dc=Jt&&(!Es||rl&&8<rl&&11>=rl),jc=" ",Mc=!1;function _c(e,t){switch(e){case"keyup":return xm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var va=!1;function Tm(e,t){switch(e){case"compositionend":return Lc(t);case"keypress":return t.which!==32?null:(Mc=!0,jc);case"textInput":return e=t.data,e===jc&&Mc?null:e;default:return null}}function Rm(e,t){if(va)return e==="compositionend"||!Es&&_c(e,t)?(e=Ac(),Ri=ys=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 Dc&&t.locale!=="ko"?null:t.data;default:return null}}var wm={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 Uc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!wm[e.type]:t==="textarea"}function Hc(e,t,n,a){ma?ya?ya.push(a):ya=[a]:ma=a,t=pu(t,"onChange"),0<t.length&&(n=new Ai("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var ol=null,cl=null;function Nm(e){bh(e,0)}function Ci(e){var t=al(e);if(bc(t))return e}function Bc(e,t){if(e==="change")return t}var qc=!1;if(Jt){var Ts;if(Jt){var Rs="oninput"in document;if(!Rs){var Gc=document.createElement("div");Gc.setAttribute("oninput","return;"),Rs=typeof Gc.oninput=="function"}Ts=Rs}else Ts=!1;qc=Ts&&(!document.documentMode||9<document.documentMode)}function $c(){ol&&(ol.detachEvent("onpropertychange",Vc),cl=ol=null)}function Vc(e){if(e.propertyName==="value"&&Ci(cl)){var t=[];Hc(t,cl,e,ps(e)),Nc(Nm,t)}}function Am(e,t,n){e==="focusin"?($c(),ol=t,cl=n,ol.attachEvent("onpropertychange",Vc)):e==="focusout"&&$c()}function Om(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ci(cl)}function Cm(e,t){if(e==="click")return Ci(t)}function zm(e,t){if(e==="input"||e==="change")return Ci(t)}function km(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gt=typeof Object.is=="function"?Object.is:km;function fl(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(!Iu.call(t,u)||!gt(e[u],t[u]))return!1}return!0}function Yc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Qc(e,t){var n=Yc(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=Yc(n)}}function Xc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zc(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ei(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=Ei(e.document)}return t}function ws(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 Dm=Jt&&"documentMode"in document&&11>=document.documentMode,ba=null,Ns=null,dl=null,As=!1;function Kc(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;As||ba==null||ba!==Ei(a)||(a=ba,"selectionStart"in a&&ws(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}),dl&&fl(dl,a)||(dl=a,a=pu(Ns,"onSelect"),0<a.length&&(t=new Ai("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")},Os={},Jc={};Jt&&(Jc=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 Vn(e){if(Os[e])return Os[e];if(!Sa[e])return e;var t=Sa[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Jc)return Os[e]=t[n];return e}var Fc=Vn("animationend"),Wc=Vn("animationiteration"),Pc=Vn("animationstart"),jm=Vn("transitionrun"),Mm=Vn("transitionstart"),_m=Vn("transitioncancel"),Ic=Vn("transitionend"),ef=new Map,Cs="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(" ");Cs.push("scrollEnd");function _t(e,t){ef.set(e,t),qn(t,[e])}var tf=new WeakMap;function wt(e,t){if(typeof e=="object"&&e!==null){var n=tf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:yc(t)},tf.set(e,t),t)}return{value:e,source:t,stack:yc(t)}}var Nt=[],xa=0,zs=0;function zi(){for(var e=xa,t=zs=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&&nf(n,u,o)}}function ki(e,t,n,a){Nt[xa++]=e,Nt[xa++]=t,Nt[xa++]=n,Nt[xa++]=a,zs|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function ks(e,t,n,a){return ki(e,t,n,a),Di(e)}function Ea(e,t){return ki(e,null,null,t),Di(e)}function nf(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 Di(e){if(50<Ul)throw Ul=0,Ur=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ta={};function Lm(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 Lm(e,t,n,a)}function Ds(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ft(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 af(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 ji(e,t,n,a,u,o){var m=0;if(a=e,typeof e=="function")Ds(e)&&(m=1);else if(typeof e=="string")m=Hy(e,n,ee.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case J:return e=mt(31,n,t,u),e.elementType=J,e.lanes=o,e;case R:return Yn(n.children,u,o,t);case k:m=8,u|=24;break;case M:return e=mt(12,n,t,u|2),e.elementType=M,e.lanes=o,e;case X:return e=mt(13,n,t,u),e.elementType=X,e.lanes=o,e;case se:return e=mt(19,n,t,u),e.elementType=se,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case H:case $:m=10;break e;case G:m=9;break e;case F:m=11;break e;case W:m=14;break e;case K:m=16,a=null;break e}m=29,n=Error(s(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 Yn(e,t,n,a){return e=mt(7,e,a,t),e.lanes=n,e}function js(e,t,n){return e=mt(6,e,null,t),e.lanes=n,e}function Ms(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,Mi=null,_i=0,At=[],Ot=0,Qn=null,Wt=1,Pt="";function Xn(e,t){Ra[wa++]=_i,Ra[wa++]=Mi,Mi=e,_i=t}function lf(e,t,n){At[Ot++]=Wt,At[Ot++]=Pt,At[Ot++]=Qn,Qn=e;var a=Wt;e=Pt;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,Wt=1<<32-pt(t)+u|n<<u|a,Pt=o+e}else Wt=1<<o|n<<u|a,Pt=e}function _s(e){e.return!==null&&(Xn(e,1),lf(e,1,0))}function Ls(e){for(;e===Mi;)Mi=Ra[--wa],Ra[wa]=null,_i=Ra[--wa],Ra[wa]=null;for(;e===Qn;)Qn=At[--Ot],At[Ot]=null,Pt=At[--Ot],At[Ot]=null,Wt=At[--Ot],At[Ot]=null}var at=null,Le=null,be=!1,Zn=null,Gt=!1,Us=Error(s(519));function Kn(e){var t=Error(s(418,""));throw gl(wt(t,e)),Us}function uf(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[We]=e,t[ut]=a,n){case"dialog":pe("cancel",t),pe("close",t);break;case"iframe":case"object":case"embed":pe("load",t);break;case"video":case"audio":for(n=0;n<Bl.length;n++)pe(Bl[n],t);break;case"source":pe("error",t);break;case"img":case"image":case"link":pe("error",t),pe("load",t);break;case"details":pe("toggle",t);break;case"input":pe("invalid",t),Sc(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0),xi(t);break;case"select":pe("invalid",t);break;case"textarea":pe("invalid",t),Ec(t,a.value,a.defaultValue,a.children),xi(t)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||Th(t.textContent,n)?(a.popover!=null&&(pe("beforetoggle",t),pe("toggle",t)),a.onScroll!=null&&pe("scroll",t),a.onScrollEnd!=null&&pe("scrollend",t),a.onClick!=null&&(t.onclick=gu),t=!0):t=!1,t||Kn(e)}function sf(e){for(at=e.return;at;)switch(at.tag){case 5:case 13:Gt=!1;return;case 27:case 3:Gt=!0;return;default:at=at.return}}function hl(e){if(e!==at)return!1;if(!be)return sf(e),be=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Ir(e.type,e.memoizedProps)),n=!n),n&&Le&&Kn(e),sf(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(n=e.data,n==="/$"){if(t===0){Le=Ut(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}Le=null}}else t===27?(t=Le,kn(e.type)?(e=ao,ao=null,Le=e):Le=t):Le=at?Ut(e.stateNode.nextSibling):null;return!0}function pl(){Le=at=null,be=!1}function rf(){var e=Zn;return e!==null&&(ct===null?ct=e:ct.push.apply(ct,e),Zn=null),e}function gl(e){Zn===null?Zn=[e]:Zn.push(e)}var Hs=q(null),Jn=null,It=null;function mn(e,t,n){Y(Hs,t._currentValue),t._currentValue=n}function en(e){e._currentValue=Hs.current,Q(Hs)}function Bs(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 qs(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),Bs(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(s(341));m.lanes|=n,o=m.alternate,o!==null&&(o.lanes|=n),Bs(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 ml(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(s(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(s(387));m.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Ql):e=[Ql])}u=u.return}e!==null&&qs(t,e,n,a),t.flags|=262144}function Li(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,It=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Pe(e){return of(Jn,e)}function Ui(e,t){return Jn===null&&Fn(e),of(e,t)}function of(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},It===null){if(e===null)throw Error(s(308));It=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else It=It.next=t;return n}var Um=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()})}},Hm=r.unstable_scheduleCallback,Bm=r.unstable_NormalPriority,$e={$$typeof:$,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Gs(){return{controller:new Um,data:new Map,refCount:0}}function yl(e){e.refCount--,e.refCount===0&&Hm(Bm,function(){e.controller.abort()})}var vl=null,$s=0,Na=0,Aa=null;function qm(e,t){if(vl===null){var n=vl=[];$s=0,Na=Yr(),Aa={status:"pending",value:void 0,then:function(a){n.push(a)}}}return $s++,t.then(cf,cf),t}function cf(){if(--$s===0&&vl!==null){Aa!==null&&(Aa.status="fulfilled");var e=vl;vl=null,Na=0,Aa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Gm(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 ff=_.S;_.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&qm(e,t),ff!==null&&ff(e,t)};var Wn=q(null);function Vs(){var e=Wn.current;return e!==null?e:ze.pooledCache}function Hi(e,t){t===null?Y(Wn,Wn.current):Y(Wn,t.pool)}function df(){var e=Vs();return e===null?null:{parent:$e._currentValue,pool:e}}var bl=Error(s(460)),hf=Error(s(474)),Bi=Error(s(542)),Ys={then:function(){}};function pf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function qi(){}function gf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(qi,qi),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,yf(e),e;default:if(typeof t.status=="string")t.then(qi,qi);else{if(e=ze,e!==null&&100<e.shellSuspendCounter)throw Error(s(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,yf(e),e}throw Sl=t,bl}}var Sl=null;function mf(){if(Sl===null)throw Error(s(459));var e=Sl;return Sl=null,e}function yf(e){if(e===bl||e===Bi)throw Error(s(483))}var yn=!1;function Qs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xs(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,(xe&2)!==0){var u=a.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),a.pending=t,t=Di(e),nf(e,null,n),t}return ki(e,a,t,n),Di(e)}function xl(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,oc(e,n)}}function Zs(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 Ks=!1;function El(){if(Ks){var e=Aa;if(e!==null)throw e}}function Tl(e,t,n,a){Ks=!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,z=x.next;x.next=null,m===null?o=z:m.next=z,m=x;var L=e.alternate;L!==null&&(L=L.updateQueue,v=L.lastBaseUpdate,v!==m&&(v===null?L.firstBaseUpdate=z:v.next=z,L.lastBaseUpdate=x))}if(o!==null){var B=u.baseState;m=0,L=z=x=null,v=o;do{var D=v.lane&-536870913,j=D!==v.lane;if(j?(ge&D)===D:(a&D)===D){D!==0&&D===Na&&(Ks=!0),L!==null&&(L=L.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var ae=e,te=v;D=t;var Ne=n;switch(te.tag){case 1:if(ae=te.payload,typeof ae=="function"){B=ae.call(Ne,B,D);break e}B=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=te.payload,D=typeof ae=="function"?ae.call(Ne,B,D):ae,D==null)break e;B=y({},B,D);break e;case 2:yn=!0}}D=v.callback,D!==null&&(e.flags|=64,j&&(e.flags|=8192),j=u.callbacks,j===null?u.callbacks=[D]:j.push(D))}else j={lane:D,tag:v.tag,payload:v.payload,callback:v.callback,next:null},L===null?(z=L=j,x=B):L=L.next=j,m|=D;if(v=v.next,v===null){if(v=u.shared.pending,v===null)break;j=v,v=j.next,j.next=null,u.lastBaseUpdate=j,u.shared.pending=null}}while(!0);L===null&&(x=B),u.baseState=x,u.firstBaseUpdate=z,u.lastBaseUpdate=L,o===null&&(u.shared.lanes=0),An|=m,e.lanes=m,e.memoizedState=B}}function vf(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function bf(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)vf(n[e],t)}var Oa=q(null),Gi=q(0);function Sf(e,t){e=rn,Y(Gi,e),Y(Oa,t),rn=e|t.baseLanes}function Js(){Y(Gi,rn),Y(Oa,Oa.current)}function Fs(){rn=Gi.current,Q(Oa),Q(Gi)}var Sn=0,fe=null,Re=null,qe=null,$i=!1,Ca=!1,Pn=!1,Vi=0,Rl=0,za=null,$m=0;function He(){throw Error(s(321))}function Ws(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 Ps(e,t,n,a,u,o){return Sn=o,fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?ad:ld,Pn=!1,o=n(a,u),Pn=!1,Ca&&(o=Ef(t,n,a,u)),xf(e),o}function xf(e){_.H=Ji;var t=Re!==null&&Re.next!==null;if(Sn=0,qe=Re=fe=null,$i=!1,Rl=0,za=null,t)throw Error(s(300));e===null||Qe||(e=e.dependencies,e!==null&&Li(e)&&(Qe=!0))}function Ef(e,t,n,a){fe=e;var u=0;do{if(Ca&&(za=null),Rl=0,Ca=!1,25<=u)throw Error(s(301));if(u+=1,qe=Re=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}_.H=Jm,o=t(n,a)}while(Ca);return o}function Vm(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?wl(t):t,e=e.useState()[0],(Re!==null?Re.memoizedState:null)!==e&&(fe.flags|=1024),t}function Is(){var e=Vi!==0;return Vi=0,e}function er(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function tr(e){if($i){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}$i=!1}Sn=0,qe=Re=fe=null,Ca=!1,Rl=Vi=0,za=null}function rt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qe===null?fe.memoizedState=qe=e:qe=qe.next=e,qe}function Ge(){if(Re===null){var e=fe.alternate;e=e!==null?e.memoizedState:null}else e=Re.next;var t=qe===null?fe.memoizedState:qe.next;if(t!==null)qe=t,Re=e;else{if(e===null)throw fe.alternate===null?Error(s(467)):Error(s(310));Re=e,e={memoizedState:Re.memoizedState,baseState:Re.baseState,baseQueue:Re.baseQueue,queue:Re.queue,next:null},qe===null?fe.memoizedState=qe=e:qe=qe.next=e}return qe}function nr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function wl(e){var t=Rl;return Rl+=1,za===null&&(za=[]),e=gf(za,e,t),t=fe,(qe===null?t.memoizedState:qe.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?ad:ld),e}function Yi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return wl(e);if(e.$$typeof===$)return Pe(e)}throw Error(s(438,String(e)))}function ar(e){var t=null,n=fe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=fe.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=nr(),fe.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]=re;return t.index++,n}function tn(e,t){return typeof t=="function"?t(e):t}function Qi(e){var t=Ge();return lr(t,Re,e)}function lr(e,t,n){var a=e.queue;if(a===null)throw Error(s(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,z=t,L=!1;do{var B=z.lane&-536870913;if(B!==z.lane?(ge&B)===B:(Sn&B)===B){var D=z.revertLane;if(D===0)x!==null&&(x=x.next={lane:0,revertLane:0,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),B===Na&&(L=!0);else if((Sn&D)===D){z=z.next,D===Na&&(L=!0);continue}else B={lane:0,revertLane:z.revertLane,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},x===null?(v=x=B,m=o):x=x.next=B,fe.lanes|=D,An|=D;B=z.action,Pn&&n(o,B),o=z.hasEagerState?z.eagerState:n(o,B)}else D={lane:B,revertLane:z.revertLane,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},x===null?(v=x=D,m=o):x=x.next=D,fe.lanes|=B,An|=B;z=z.next}while(z!==null&&z!==t);if(x===null?m=o:x.next=v,!gt(o,e.memoizedState)&&(Qe=!0,L&&(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 ir(e){var t=Ge(),n=t.queue;if(n===null)throw Error(s(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)||(Qe=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,a]}function Tf(e,t,n){var a=fe,u=Ge(),o=be;if(o){if(n===void 0)throw Error(s(407));n=n()}else n=t();var m=!gt((Re||u).memoizedState,n);m&&(u.memoizedState=n,Qe=!0),u=u.queue;var v=Nf.bind(null,a,u,e);if(Nl(2048,8,v,[e]),u.getSnapshot!==t||m||qe!==null&&qe.memoizedState.tag&1){if(a.flags|=2048,ka(9,Xi(),wf.bind(null,a,u,n,t),null),ze===null)throw Error(s(349));o||(Sn&124)!==0||Rf(a,t,n)}return n}function Rf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=fe.updateQueue,t===null?(t=nr(),fe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function wf(e,t,n,a){t.value=n,t.getSnapshot=a,Af(t)&&Of(e)}function Nf(e,t,n){return n(function(){Af(t)&&Of(e)})}function Af(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!gt(e,n)}catch{return!0}}function Of(e){var t=Ea(e,2);t!==null&&xt(t,e,2)}function ur(e){var t=rt();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:tn,lastRenderedState:e},t}function Cf(e,t,n,a){return e.baseState=n,lr(e,Re,typeof a=="function"?a:tn)}function Ym(e,t,n,a,u){if(Ki(e))throw Error(s(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)}};_.T!==null?n(!0):o.isTransition=!1,a(o),n=t.pending,n===null?(o.next=t.pending=o,zf(t,o)):(o.next=n.next,t.pending=n.next=o)}}function zf(e,t){var n=t.action,a=t.payload,u=e.state;if(t.isTransition){var o=_.T,m={};_.T=m;try{var v=n(u,a),x=_.S;x!==null&&x(m,v),kf(e,t,v)}catch(z){sr(e,t,z)}finally{_.T=o}}else try{o=n(u,a),kf(e,t,o)}catch(z){sr(e,t,z)}}function kf(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Df(e,t,a)},function(a){return sr(e,t,a)}):Df(e,t,n)}function Df(e,t,n){t.status="fulfilled",t.value=n,jf(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,zf(e,n)))}function sr(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,jf(t),t=t.next;while(t!==a)}e.action=null}function jf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Mf(e,t){return t}function _f(e,t){if(be){var n=ze.formState;if(n!==null){e:{var a=fe;if(be){if(Le){t:{for(var u=Le,o=Gt;u.nodeType!==8;){if(!o){u=null;break t}if(u=Ut(u.nextSibling),u===null){u=null;break t}}o=u.data,u=o==="F!"||o==="F"?u:null}if(u){Le=Ut(u.nextSibling),a=u.data==="F!";break e}}Kn(a)}a=!1}a&&(t=n[0])}}return n=rt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mf,lastRenderedState:t},n.queue=a,n=ed.bind(null,fe,a),a.dispatch=n,a=ur(!1),o=dr.bind(null,fe,!1,a.queue),a=rt(),u={state:t,dispatch:null,action:e,pending:null},a.queue=u,n=Ym.bind(null,fe,u,o,n),u.dispatch=n,a.memoizedState=e,[t,n,!1]}function Lf(e){var t=Ge();return Uf(t,Re,e)}function Uf(e,t,n){if(t=lr(e,t,Mf)[0],e=Qi(tn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=wl(t)}catch(m){throw m===bl?Bi:m}else a=t;t=Ge();var u=t.queue,o=u.dispatch;return n!==t.memoizedState&&(fe.flags|=2048,ka(9,Xi(),Qm.bind(null,u,n),null)),[a,o,e]}function Qm(e,t){e.action=t}function Hf(e){var t=Ge(),n=Re;if(n!==null)return Uf(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=fe.updateQueue,t===null&&(t=nr(),fe.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 Xi(){return{destroy:void 0,resource:void 0}}function Bf(){return Ge().memoizedState}function Zi(e,t,n,a){var u=rt();a=a===void 0?null:a,fe.flags|=e,u.memoizedState=ka(1|t,Xi(),n,a)}function Nl(e,t,n,a){var u=Ge();a=a===void 0?null:a;var o=u.memoizedState.inst;Re!==null&&a!==null&&Ws(a,Re.memoizedState.deps)?u.memoizedState=ka(t,o,n,a):(fe.flags|=e,u.memoizedState=ka(1|t,o,n,a))}function qf(e,t){Zi(8390656,8,e,t)}function Gf(e,t){Nl(2048,8,e,t)}function $f(e,t){return Nl(4,2,e,t)}function Vf(e,t){return Nl(4,4,e,t)}function Yf(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 Qf(e,t,n){n=n!=null?n.concat([e]):null,Nl(4,4,Yf.bind(null,t,e),n)}function rr(){}function Xf(e,t){var n=Ge();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Ws(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Zf(e,t){var n=Ge();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Ws(t,a[1]))return a[0];if(a=e(),Pn){hn(!0);try{e()}finally{hn(!1)}}return n.memoizedState=[a,t],a}function or(e,t,n){return n===void 0||(Sn&1073741824)!==0?e.memoizedState=t:(e.memoizedState=n,e=Fd(),fe.lanes|=e,An|=e,n)}function Kf(e,t,n,a){return gt(n,t)?n:Oa.current!==null?(e=or(e,n,a),gt(e,t)||(Qe=!0),e):(Sn&42)===0?(Qe=!0,e.memoizedState=n):(e=Fd(),fe.lanes|=e,An|=e,t)}function Jf(e,t,n,a,u){var o=V.p;V.p=o!==0&&8>o?o:8;var m=_.T,v={};_.T=v,dr(e,!1,t,n);try{var x=u(),z=_.S;if(z!==null&&z(v,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var L=Gm(x,a);Al(e,t,L,St(e))}else Al(e,t,a,St(e))}catch(B){Al(e,t,{then:function(){},status:"rejected",reason:B},St())}finally{V.p=o,_.T=m}}function Xm(){}function cr(e,t,n,a){if(e.tag!==5)throw Error(s(476));var u=Ff(e).queue;Jf(e,u,t,I,n===null?Xm:function(){return Wf(e),n(a)})}function Ff(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:I},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Wf(e){var t=Ff(e).next.queue;Al(e,t,{},St())}function fr(){return Pe(Ql)}function Pf(){return Ge().memoizedState}function If(){return Ge().memoizedState}function Zm(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),xl(a,t,n)),t={cache:Gs()},e.payload=t;return}t=t.return}}function Km(e,t,n){var a=St();n={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Ki(e)?td(t,n):(n=ks(e,t,n,a),n!==null&&(xt(n,e,a),nd(n,t,a)))}function ed(e,t,n){var a=St();Al(e,t,n,a)}function Al(e,t,n,a){var u={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ki(e))td(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 ki(e,t,u,0),ze===null&&zi(),!1}catch{}finally{}if(n=ks(e,t,u,a),n!==null)return xt(n,e,a),nd(n,t,a),!0}return!1}function dr(e,t,n,a){if(a={lane:2,revertLane:Yr(),action:a,hasEagerState:!1,eagerState:null,next:null},Ki(e)){if(t)throw Error(s(479))}else t=ks(e,n,a,2),t!==null&&xt(t,e,2)}function Ki(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function td(e,t){Ca=$i=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function nd(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,oc(e,n)}}var Ji={readContext:Pe,use:Yi,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},ad={readContext:Pe,use:Yi,useCallback:function(e,t){return rt().memoizedState=[e,t===void 0?null:t],e},useContext:Pe,useEffect:qf,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Zi(4194308,4,Yf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zi(4194308,4,e,t)},useInsertionEffect:function(e,t){Zi(4,2,e,t)},useMemo:function(e,t){var n=rt();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=rt();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=Km.bind(null,fe,e),[a.memoizedState,e]},useRef:function(e){var t=rt();return e={current:e},t.memoizedState=e},useState:function(e){e=ur(e);var t=e.queue,n=ed.bind(null,fe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:rr,useDeferredValue:function(e,t){var n=rt();return or(n,e,t)},useTransition:function(){var e=ur(!1);return e=Jf.bind(null,fe,e.queue,!0,!1),rt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=fe,u=rt();if(be){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),ze===null)throw Error(s(349));(ge&124)!==0||Rf(a,t,n)}u.memoizedState=n;var o={value:n,getSnapshot:t};return u.queue=o,qf(Nf.bind(null,a,o,e),[e]),a.flags|=2048,ka(9,Xi(),wf.bind(null,a,o,n,t),null),n},useId:function(){var e=rt(),t=ze.identifierPrefix;if(be){var n=Pt,a=Wt;n=(a&~(1<<32-pt(a)-1)).toString(32)+n,t="«"+t+"R"+n,n=Vi++,0<n&&(t+="H"+n.toString(32)),t+="»"}else n=$m++,t="«"+t+"r"+n.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:fr,useFormState:_f,useActionState:_f,useOptimistic:function(e){var t=rt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=dr.bind(null,fe,!0,n),n.dispatch=t,[e,t]},useMemoCache:ar,useCacheRefresh:function(){return rt().memoizedState=Zm.bind(null,fe)}},ld={readContext:Pe,use:Yi,useCallback:Xf,useContext:Pe,useEffect:Gf,useImperativeHandle:Qf,useInsertionEffect:$f,useLayoutEffect:Vf,useMemo:Zf,useReducer:Qi,useRef:Bf,useState:function(){return Qi(tn)},useDebugValue:rr,useDeferredValue:function(e,t){var n=Ge();return Kf(n,Re.memoizedState,e,t)},useTransition:function(){var e=Qi(tn)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:wl(e),t]},useSyncExternalStore:Tf,useId:Pf,useHostTransitionStatus:fr,useFormState:Lf,useActionState:Lf,useOptimistic:function(e,t){var n=Ge();return Cf(n,Re,e,t)},useMemoCache:ar,useCacheRefresh:If},Jm={readContext:Pe,use:Yi,useCallback:Xf,useContext:Pe,useEffect:Gf,useImperativeHandle:Qf,useInsertionEffect:$f,useLayoutEffect:Vf,useMemo:Zf,useReducer:ir,useRef:Bf,useState:function(){return ir(tn)},useDebugValue:rr,useDeferredValue:function(e,t){var n=Ge();return Re===null?or(n,e,t):Kf(n,Re.memoizedState,e,t)},useTransition:function(){var e=ir(tn)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:wl(e),t]},useSyncExternalStore:Tf,useId:Pf,useHostTransitionStatus:fr,useFormState:Hf,useActionState:Hf,useOptimistic:function(e,t){var n=Ge();return Re!==null?Cf(n,Re,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ar,useCacheRefresh:If},Da=null,Ol=0;function Fi(e){var t=Ol;return Ol+=1,Da===null&&(Da=[]),gf(Da,e,t)}function Cl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Wi(e,t){throw t.$$typeof===S?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function id(e){var t=e._init;return t(e._payload)}function ud(e){function t(N,w){if(e){var C=N.deletions;C===null?(N.deletions=[w],N.flags|=16):C.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=Ft(N,w),N.index=0,N.sibling=null,N}function o(N,w,C){return N.index=C,e?(C=N.alternate,C!==null?(C=C.index,C<w?(N.flags|=67108866,w):C):(N.flags|=67108866,w)):(N.flags|=1048576,w)}function m(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function v(N,w,C,U){return w===null||w.tag!==6?(w=js(C,N.mode,U),w.return=N,w):(w=u(w,C),w.return=N,w)}function x(N,w,C,U){var Z=C.type;return Z===R?L(N,w,C.props.children,U,C.key):w!==null&&(w.elementType===Z||typeof Z=="object"&&Z!==null&&Z.$$typeof===K&&id(Z)===w.type)?(w=u(w,C.props),Cl(w,C),w.return=N,w):(w=ji(C.type,C.key,C.props,null,N.mode,U),Cl(w,C),w.return=N,w)}function z(N,w,C,U){return w===null||w.tag!==4||w.stateNode.containerInfo!==C.containerInfo||w.stateNode.implementation!==C.implementation?(w=Ms(C,N.mode,U),w.return=N,w):(w=u(w,C.children||[]),w.return=N,w)}function L(N,w,C,U,Z){return w===null||w.tag!==7?(w=Yn(C,N.mode,U,Z),w.return=N,w):(w=u(w,C),w.return=N,w)}function B(N,w,C){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=js(""+w,N.mode,C),w.return=N,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case b:return C=ji(w.type,w.key,w.props,null,N.mode,C),Cl(C,w),C.return=N,C;case A:return w=Ms(w,N.mode,C),w.return=N,w;case K:var U=w._init;return w=U(w._payload),B(N,w,C)}if(Ce(w)||me(w))return w=Yn(w,N.mode,C,null),w.return=N,w;if(typeof w.then=="function")return B(N,Fi(w),C);if(w.$$typeof===$)return B(N,Ui(N,w),C);Wi(N,w)}return null}function D(N,w,C,U){var Z=w!==null?w.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return Z!==null?null:v(N,w,""+C,U);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case b:return C.key===Z?x(N,w,C,U):null;case A:return C.key===Z?z(N,w,C,U):null;case K:return Z=C._init,C=Z(C._payload),D(N,w,C,U)}if(Ce(C)||me(C))return Z!==null?null:L(N,w,C,U,null);if(typeof C.then=="function")return D(N,w,Fi(C),U);if(C.$$typeof===$)return D(N,w,Ui(N,C),U);Wi(N,C)}return null}function j(N,w,C,U,Z){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return N=N.get(C)||null,v(w,N,""+U,Z);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case b:return N=N.get(U.key===null?C:U.key)||null,x(w,N,U,Z);case A:return N=N.get(U.key===null?C:U.key)||null,z(w,N,U,Z);case K:var de=U._init;return U=de(U._payload),j(N,w,C,U,Z)}if(Ce(U)||me(U))return N=N.get(C)||null,L(w,N,U,Z,null);if(typeof U.then=="function")return j(N,w,C,Fi(U),Z);if(U.$$typeof===$)return j(N,w,C,Ui(w,U),Z);Wi(w,U)}return null}function ae(N,w,C,U){for(var Z=null,de=null,P=w,ne=w=0,Ze=null;P!==null&&ne<C.length;ne++){P.index>ne?(Ze=P,P=null):Ze=P.sibling;var ve=D(N,P,C[ne],U);if(ve===null){P===null&&(P=Ze);break}e&&P&&ve.alternate===null&&t(N,P),w=o(ve,w,ne),de===null?Z=ve:de.sibling=ve,de=ve,P=Ze}if(ne===C.length)return n(N,P),be&&Xn(N,ne),Z;if(P===null){for(;ne<C.length;ne++)P=B(N,C[ne],U),P!==null&&(w=o(P,w,ne),de===null?Z=P:de.sibling=P,de=P);return be&&Xn(N,ne),Z}for(P=a(P);ne<C.length;ne++)Ze=j(P,N,ne,C[ne],U),Ze!==null&&(e&&Ze.alternate!==null&&P.delete(Ze.key===null?ne:Ze.key),w=o(Ze,w,ne),de===null?Z=Ze:de.sibling=Ze,de=Ze);return e&&P.forEach(function(Ln){return t(N,Ln)}),be&&Xn(N,ne),Z}function te(N,w,C,U){if(C==null)throw Error(s(151));for(var Z=null,de=null,P=w,ne=w=0,Ze=null,ve=C.next();P!==null&&!ve.done;ne++,ve=C.next()){P.index>ne?(Ze=P,P=null):Ze=P.sibling;var Ln=D(N,P,ve.value,U);if(Ln===null){P===null&&(P=Ze);break}e&&P&&Ln.alternate===null&&t(N,P),w=o(Ln,w,ne),de===null?Z=Ln:de.sibling=Ln,de=Ln,P=Ze}if(ve.done)return n(N,P),be&&Xn(N,ne),Z;if(P===null){for(;!ve.done;ne++,ve=C.next())ve=B(N,ve.value,U),ve!==null&&(w=o(ve,w,ne),de===null?Z=ve:de.sibling=ve,de=ve);return be&&Xn(N,ne),Z}for(P=a(P);!ve.done;ne++,ve=C.next())ve=j(P,N,ne,ve.value,U),ve!==null&&(e&&ve.alternate!==null&&P.delete(ve.key===null?ne:ve.key),w=o(ve,w,ne),de===null?Z=ve:de.sibling=ve,de=ve);return e&&P.forEach(function(Fy){return t(N,Fy)}),be&&Xn(N,ne),Z}function Ne(N,w,C,U){if(typeof C=="object"&&C!==null&&C.type===R&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case b:e:{for(var Z=C.key;w!==null;){if(w.key===Z){if(Z=C.type,Z===R){if(w.tag===7){n(N,w.sibling),U=u(w,C.props.children),U.return=N,N=U;break e}}else if(w.elementType===Z||typeof Z=="object"&&Z!==null&&Z.$$typeof===K&&id(Z)===w.type){n(N,w.sibling),U=u(w,C.props),Cl(U,C),U.return=N,N=U;break e}n(N,w);break}else t(N,w);w=w.sibling}C.type===R?(U=Yn(C.props.children,N.mode,U,C.key),U.return=N,N=U):(U=ji(C.type,C.key,C.props,null,N.mode,U),Cl(U,C),U.return=N,N=U)}return m(N);case A:e:{for(Z=C.key;w!==null;){if(w.key===Z)if(w.tag===4&&w.stateNode.containerInfo===C.containerInfo&&w.stateNode.implementation===C.implementation){n(N,w.sibling),U=u(w,C.children||[]),U.return=N,N=U;break e}else{n(N,w);break}else t(N,w);w=w.sibling}U=Ms(C,N.mode,U),U.return=N,N=U}return m(N);case K:return Z=C._init,C=Z(C._payload),Ne(N,w,C,U)}if(Ce(C))return ae(N,w,C,U);if(me(C)){if(Z=me(C),typeof Z!="function")throw Error(s(150));return C=Z.call(C),te(N,w,C,U)}if(typeof C.then=="function")return Ne(N,w,Fi(C),U);if(C.$$typeof===$)return Ne(N,w,Ui(N,C),U);Wi(N,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,w!==null&&w.tag===6?(n(N,w.sibling),U=u(w,C),U.return=N,N=U):(n(N,w),U=js(C,N.mode,U),U.return=N,N=U),m(N)):n(N,w)}return function(N,w,C,U){try{Ol=0;var Z=Ne(N,w,C,U);return Da=null,Z}catch(P){if(P===bl||P===Bi)throw P;var de=mt(29,P,null,N.mode);return de.lanes=U,de.return=N,de}finally{}}}var ja=ud(!0),sd=ud(!1),Ct=q(null),$t=null;function xn(e){var t=e.alternate;Y(Ve,Ve.current&1),Y(Ct,e),$t===null&&(t===null||Oa.current!==null||t.memoizedState!==null)&&($t=e)}function rd(e){if(e.tag===22){if(Y(Ve,Ve.current),Y(Ct,e),$t===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&($t=e)}}else En()}function En(){Y(Ve,Ve.current),Y(Ct,Ct.current)}function nn(e){Q(Ct),$t===e&&($t=null),Q(Ve)}var Ve=q(0);function Pi(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==="$?"||no(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 hr(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 pr={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),xl(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),xl(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),xl(t,e,n))}};function od(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?!fl(n,a)||!fl(u,o):!0}function cd(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&&pr.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 Ii=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 fd(e){Ii(e)}function dd(e){console.error(e)}function hd(e){Ii(e)}function eu(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function pd(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 gr(e,t,n){return n=vn(n),n.tag=3,n.payload={element:null},n.callback=function(){eu(e,t)},n}function gd(e){return e=vn(e),e.tag=3,e}function md(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(){pd(t,n,a)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){pd(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 Fm(e,t,n,a,u){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&ml(t,n,u,!0),n=Ct.current,n!==null){switch(n.tag){case 13:return $t===null?Br():n.alternate===null&&Ue===0&&(Ue=3),n.flags&=-257,n.flags|=65536,n.lanes=u,a===Ys?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),Gr(e,a,u)),!1;case 22:return n.flags|=65536,a===Ys?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)),Gr(e,a,u)),!1}throw Error(s(435,n.tag))}return Gr(e,a,u),Br(),!1}if(be)return t=Ct.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,a!==Us&&(e=Error(s(422),{cause:a}),gl(wt(e,n)))):(a!==Us&&(t=Error(s(423),{cause:a}),gl(wt(t,n))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,a=wt(a,n),u=gr(e.stateNode,a,u),Zs(e,u),Ue!==4&&(Ue=2)),!1;var o=Error(s(520),{cause:a});if(o=wt(o,n),Ll===null?Ll=[o]:Ll.push(o),Ue!==4&&(Ue=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=gr(n.stateNode,a,e),Zs(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=gd(u),md(u,e,n,a),Zs(n,u),!1}n=n.return}while(n!==null);return!1}var yd=Error(s(461)),Qe=!1;function Ke(e,t,n,a){t.child=e===null?sd(t,null,n,a):ja(t,e.child,n,a)}function vd(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=Ps(e,t,n,m,o,u),v=Is(),e!==null&&!Qe?(er(e,t,u),an(e,t,u)):(be&&v&&_s(t),t.flags|=1,Ke(e,t,a,u),t.child)}function bd(e,t,n,a,u){if(e===null){var o=n.type;return typeof o=="function"&&!Ds(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,Sd(e,t,o,a,u)):(e=ji(n.type,null,a,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!Tr(e,u)){var m=o.memoizedProps;if(n=n.compare,n=n!==null?n:fl,n(m,a)&&e.ref===t.ref)return an(e,t,u)}return t.flags|=1,e=Ft(o,a),e.ref=t.ref,e.return=t,t.child=e}function Sd(e,t,n,a,u){if(e!==null){var o=e.memoizedProps;if(fl(o,a)&&e.ref===t.ref)if(Qe=!1,t.pendingProps=a=o,Tr(e,u))(e.flags&131072)!==0&&(Qe=!0);else return t.lanes=e.lanes,an(e,t,u)}return mr(e,t,n,a,u)}function xd(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 Ed(e,t,a,n)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Hi(t,o!==null?o.cachePool:null),o!==null?Sf(t,o):Js(),rd(t);else return t.lanes=t.childLanes=536870912,Ed(e,t,o!==null?o.baseLanes|n:n,n)}else o!==null?(Hi(t,o.cachePool),Sf(t,o),En(),t.memoizedState=null):(e!==null&&Hi(t,null),Js(),En());return Ke(e,t,u,n),t.child}function Ed(e,t,n,a){var u=Vs();return u=u===null?null:{parent:$e._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&Hi(t,null),Js(),rd(t),e!==null&&ml(e,t,a,!0),null}function tu(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(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function mr(e,t,n,a,u){return Fn(t),n=Ps(e,t,n,a,void 0,u),a=Is(),e!==null&&!Qe?(er(e,t,u),an(e,t,u)):(be&&a&&_s(t),t.flags|=1,Ke(e,t,n,u),t.child)}function Td(e,t,n,a,u,o){return Fn(t),t.updateQueue=null,n=Ef(t,a,n,u),xf(e),a=Is(),e!==null&&!Qe?(er(e,t,o),an(e,t,o)):(be&&a&&_s(t),t.flags|=1,Ke(e,t,n,o),t.child)}function Rd(e,t,n,a,u){if(Fn(t),t.stateNode===null){var o=Ta,m=n.contextType;typeof m=="object"&&m!==null&&(o=Pe(m)),o=new n(a,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=pr,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=a,o.state=t.memoizedState,o.refs={},Qs(t),m=n.contextType,o.context=typeof m=="object"&&m!==null?Pe(m):Ta,o.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(hr(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&&pr.enqueueReplaceState(o,o.state,null),Tl(t,a,o,u),El(),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 z=o.context,L=n.contextType;m=Ta,typeof L=="object"&&L!==null&&(m=Pe(L));var B=n.getDerivedStateFromProps;L=typeof B=="function"||typeof o.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,L||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(v||z!==m)&&cd(t,o,a,m),yn=!1;var D=t.memoizedState;o.state=D,Tl(t,a,o,u),El(),z=t.memoizedState,v||D!==z||yn?(typeof B=="function"&&(hr(t,n,B,a),z=t.memoizedState),(x=yn||od(t,n,x,a,D,z,m))?(L||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=z),o.props=a,o.state=z,o.context=m,a=x):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{o=t.stateNode,Xs(e,t),m=t.memoizedProps,L=In(n,m),o.props=L,B=t.pendingProps,D=o.context,z=n.contextType,x=Ta,typeof z=="object"&&z!==null&&(x=Pe(z)),v=n.getDerivedStateFromProps,(z=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(m!==B||D!==x)&&cd(t,o,a,x),yn=!1,D=t.memoizedState,o.state=D,Tl(t,a,o,u),El();var j=t.memoizedState;m!==B||D!==j||yn||e!==null&&e.dependencies!==null&&Li(e.dependencies)?(typeof v=="function"&&(hr(t,n,v,a),j=t.memoizedState),(L=yn||od(t,n,L,a,D,j,x)||e!==null&&e.dependencies!==null&&Li(e.dependencies))?(z||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(a,j,x),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(a,j,x)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||m===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=j),o.props=a,o.state=j,o.context=x,a=L):(typeof o.componentDidUpdate!="function"||m===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),a=!1)}return o=a,tu(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=ja(t,e.child,null,u),t.child=ja(t,null,n,u)):Ke(e,t,n,u),t.memoizedState=o.state,e=t.child):e=an(e,t,u),e}function wd(e,t,n,a){return pl(),t.flags|=256,Ke(e,t,n,a),t.child}var yr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vr(e){return{baseLanes:e,cachePool:df()}}function br(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=zt),e}function Nd(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(be){if(u?xn(t):En(),be){var v=Le,x;if(x=v){e:{for(x=v,v=Gt;x.nodeType!==8;){if(!v){v=null;break e}if(x=Ut(x.nextSibling),x===null){v=null;break e}}v=x}v!==null?(t.memoizedState={dehydrated:v,treeContext:Qn!==null?{id:Wt,overflow:Pt}:null,retryLane:536870912,hydrationErrors:null},x=mt(18,null,null,0),x.stateNode=v,x.return=t,t.child=x,at=t,Le=null,x=!0):x=!1}x||Kn(t)}if(v=t.memoizedState,v!==null&&(v=v.dehydrated,v!==null))return no(v)?t.lanes=32:t.lanes=536870912,null;nn(t)}return v=a.children,a=a.fallback,u?(En(),u=t.mode,v=nu({mode:"hidden",children:v},u),a=Yn(a,u,n,null),v.return=t,a.return=t,v.sibling=a,t.child=v,u=t.child,u.memoizedState=vr(n),u.childLanes=br(e,m,n),t.memoizedState=yr,a):(xn(t),Sr(t,v))}if(x=e.memoizedState,x!==null&&(v=x.dehydrated,v!==null)){if(o)t.flags&256?(xn(t),t.flags&=-257,t=xr(e,t,n)):t.memoizedState!==null?(En(),t.child=e.child,t.flags|=128,t=null):(En(),u=a.fallback,v=t.mode,a=nu({mode:"visible",children:a.children},v),u=Yn(u,v,n,null),u.flags|=2,a.return=t,u.return=t,a.sibling=u,t.child=a,ja(t,e.child,null,n),a=t.child,a.memoizedState=vr(n),a.childLanes=br(e,m,n),t.memoizedState=yr,t=u);else if(xn(t),no(v)){if(m=v.nextSibling&&v.nextSibling.dataset,m)var z=m.dgst;m=z,a=Error(s(419)),a.stack="",a.digest=m,gl({value:a,source:null,stack:null}),t=xr(e,t,n)}else if(Qe||ml(e,t,n,!1),m=(n&e.childLanes)!==0,Qe||m){if(m=ze,m!==null&&(a=n&-n,a=(a&42)!==0?1:as(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),yd;v.data==="$?"||Br(),t=xr(e,t,n)}else v.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=x.treeContext,Le=Ut(v.nextSibling),at=t,be=!0,Zn=null,Gt=!1,e!==null&&(At[Ot++]=Wt,At[Ot++]=Pt,At[Ot++]=Qn,Wt=e.id,Pt=e.overflow,Qn=t),t=Sr(t,a.children),t.flags|=4096);return t}return u?(En(),u=a.fallback,v=t.mode,x=e.child,z=x.sibling,a=Ft(x,{mode:"hidden",children:a.children}),a.subtreeFlags=x.subtreeFlags&65011712,z!==null?u=Ft(z,u):(u=Yn(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=vr(n):(x=v.cachePool,x!==null?(z=$e._currentValue,x=x.parent!==z?{parent:z,pool:z}:x):x=df(),v={baseLanes:v.baseLanes|n,cachePool:x}),u.memoizedState=v,u.childLanes=br(e,m,n),t.memoizedState=yr,a):(xn(t),n=e.child,e=n.sibling,n=Ft(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 Sr(e,t){return t=nu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function nu(e,t){return e=mt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function xr(e,t,n){return ja(t,e.child,null,n),e=Sr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ad(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Bs(e.return,t,n)}function Er(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 Od(e,t,n){var a=t.pendingProps,u=a.revealOrder,o=a.tail;if(Ke(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&&Ad(e,n,t);else if(e.tag===19)Ad(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&&Pi(e)===null&&(u=n),n=n.sibling;n=u,n===null?(u=t.child,t.child=null):(u=n.sibling,n.sibling=null),Er(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&&Pi(e)===null){t.child=u;break}e=u.sibling,u.sibling=n,n=u,u=e}Er(t,!0,n,null,o);break;case"together":Er(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function an(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),An|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ml(e,t,n,!1),(n&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,n=Ft(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ft(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Tr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Li(e)))}function Wm(e,t,n){switch(t.tag){case 3:ke(t,t.stateNode.containerInfo),mn(t,$e,e.memoizedState.cache),pl();break;case 27:case 5:Pu(t);break;case 4:ke(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?Nd(e,t,n):(xn(t),e=an(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||(ml(e,t,n,!1),a=(n&t.childLanes)!==0),u){if(a)return Od(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,xd(e,t,n);case 24:mn(t,$e,e.memoizedState.cache)}return an(e,t,n)}function Cd(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Qe=!0;else{if(!Tr(e,n)&&(t.flags&128)===0)return Qe=!1,Wm(e,t,n);Qe=(e.flags&131072)!==0}else Qe=!1,be&&(t.flags&1048576)!==0&&lf(t,_i,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")Ds(a)?(e=In(a,e),t.tag=1,t=Rd(null,t,a,e,n)):(t.tag=0,t=mr(null,t,a,e,n));else{if(a!=null){if(u=a.$$typeof,u===F){t.tag=11,t=vd(null,t,a,e,n);break e}else if(u===W){t.tag=14,t=bd(null,t,a,e,n);break e}}throw t=Me(a)||a,Error(s(306,t,""))}}return t;case 0:return mr(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,u=In(a,t.pendingProps),Rd(e,t,a,u,n);case 3:e:{if(ke(t,t.stateNode.containerInfo),e===null)throw Error(s(387));a=t.pendingProps;var o=t.memoizedState;u=o.element,Xs(e,t),Tl(t,a,null,n);var m=t.memoizedState;if(a=m.cache,mn(t,$e,a),a!==o.cache&&qs(t,[$e],n,!0),El(),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=wd(e,t,a,n);break e}else if(a!==u){u=wt(Error(s(424)),t),gl(u),t=wd(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(Le=Ut(e.firstChild),at=t,be=!0,Zn=null,Gt=!0,n=sd(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(pl(),a===u){t=an(e,t,n);break e}Ke(e,t,a,n)}t=t.child}return t;case 26:return tu(e,t),e===null?(n=jh(t.type,null,t.pendingProps,null))?t.memoizedState=n:be||(n=t.type,e=t.pendingProps,a=mu(ue.current).createElement(n),a[We]=t,a[ut]=e,Fe(a,n,e),Ye(a),t.stateNode=a):t.memoizedState=jh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Pu(t),e===null&&be&&(a=t.stateNode=zh(t.type,t.pendingProps,ue.current),at=t,Gt=!0,u=Le,kn(t.type)?(ao=u,Le=Ut(a.firstChild)):Le=u),Ke(e,t,t.pendingProps.children,n),tu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&be&&((u=a=Le)&&(a=wy(a,t.type,t.pendingProps,Gt),a!==null?(t.stateNode=a,at=t,Le=Ut(a.firstChild),Gt=!1,u=!0):u=!1),u||Kn(t)),Pu(t),u=t.type,o=t.pendingProps,m=e!==null?e.memoizedProps:null,a=o.children,Ir(u,o)?a=null:m!==null&&Ir(u,m)&&(t.flags|=32),t.memoizedState!==null&&(u=Ps(e,t,Vm,null,null,n),Ql._currentValue=u),tu(e,t),Ke(e,t,a,n),t.child;case 6:return e===null&&be&&((e=n=Le)&&(n=Ny(n,t.pendingProps,Gt),n!==null?(t.stateNode=n,at=t,Le=null,e=!0):e=!1),e||Kn(t)),null;case 13:return Nd(e,t,n);case 4:return ke(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ja(t,null,a,n):Ke(e,t,a,n),t.child;case 11:return vd(e,t,t.type,t.pendingProps,n);case 7:return Ke(e,t,t.pendingProps,n),t.child;case 8:return Ke(e,t,t.pendingProps.children,n),t.child;case 12:return Ke(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,mn(t,t.type,a.value),Ke(e,t,a.children,n),t.child;case 9:return u=t.type._context,a=t.pendingProps.children,Fn(t),u=Pe(u),a=a(u),t.flags|=1,Ke(e,t,a,n),t.child;case 14:return bd(e,t,t.type,t.pendingProps,n);case 15:return Sd(e,t,t.type,t.pendingProps,n);case 19:return Od(e,t,n);case 31:return a=t.pendingProps,n=t.mode,a={mode:a.mode,children:a.children},e===null?(n=nu(a,n),n.ref=t.ref,t.child=n,n.return=t,t=n):(n=Ft(e.child,a),n.ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return xd(e,t,n);case 24:return Fn(t),a=Pe($e),e===null?(u=Vs(),u===null&&(u=ze,o=Gs(),u.pooledCache=o,o.refCount++,o!==null&&(u.pooledCacheLanes|=n),u=o),t.memoizedState={parent:a,cache:u},Qs(t),mn(t,$e,u)):((e.lanes&n)!==0&&(Xs(e,t),Tl(t,null,null,n),El()),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,$e,a)):(a=o.cache,mn(t,$e,a),a!==u.cache&&qs(t,[$e],n,!0))),Ke(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function ln(e){e.flags|=4}function zd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Hh(t)){if(t=Ct.current,t!==null&&((ge&4194048)===ge?$t!==null:(ge&62914560)!==ge&&(ge&536870912)===0||t!==$t))throw Sl=Ys,hf;e.flags|=8192}}function au(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?sc():536870912,e.lanes|=t,Ua|=t)}function zl(e,t){if(!be)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 _e(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 Pm(e,t,n){var a=t.pendingProps;switch(Ls(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _e(t),null;case 1:return _e(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),en($e),dn(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(hl(t)?ln(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,rf())),_e(t),null;case 26:return n=t.memoizedState,e===null?(ln(t),n!==null?(_e(t),zd(t,n)):(_e(t),t.flags&=-16777217)):n?n!==e.memoizedState?(ln(t),_e(t),zd(t,n)):(_e(t),t.flags&=-16777217):(e.memoizedProps!==a&&ln(t),_e(t),t.flags&=-16777217),null;case 27:pi(t),n=ue.current;var u=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ln(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return _e(t),null}e=ee.current,hl(t)?uf(t):(e=zh(u,a,n),t.stateNode=e,ln(t))}return _e(t),null;case 5:if(pi(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ln(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return _e(t),null}if(e=ee.current,hl(t))uf(t);else{switch(u=mu(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[We]=t,e[ut]=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(Fe(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&&ln(t)}}return _e(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&ln(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(s(166));if(e=ue.current,hl(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[We]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Th(e.nodeValue,n)),e||Kn(t)}else e=mu(e).createTextNode(a),e[We]=t,t.stateNode=e}return _e(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=hl(t),a!==null&&a.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[We]=t}else pl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;_e(t),u=!1}else u=rf(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(nn(t),t):(nn(t),null)}if(nn(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),au(t,t.updateQueue),_e(t),null;case 4:return dn(),e===null&&Kr(t.stateNode.containerInfo),_e(t),null;case 10:return en(t.type),_e(t),null;case 19:if(Q(Ve),u=t.memoizedState,u===null)return _e(t),null;if(a=(t.flags&128)!==0,o=u.rendering,o===null)if(a)zl(u,!1);else{if(Ue!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Pi(e),o!==null){for(t.flags|=128,zl(u,!1),e=o.updateQueue,t.updateQueue=e,au(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)af(n,e),n=n.sibling;return Y(Ve,Ve.current&1|2),t.child}e=e.sibling}u.tail!==null&&qt()>uu&&(t.flags|=128,a=!0,zl(u,!1),t.lanes=4194304)}else{if(!a)if(e=Pi(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,au(t,e),zl(u,!0),u.tail===null&&u.tailMode==="hidden"&&!o.alternate&&!be)return _e(t),null}else 2*qt()-u.renderingStartTime>uu&&n!==536870912&&(t.flags|=128,a=!0,zl(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=qt(),t.sibling=null,e=Ve.current,Y(Ve,a?e&1|2:e&1),t):(_e(t),null);case 22:case 23:return nn(t),Fs(),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&&(_e(t),t.subtreeFlags&6&&(t.flags|=8192)):_e(t),n=t.updateQueue,n!==null&&au(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&&Q(Wn),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),en($e),_e(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Im(e,t){switch(Ls(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return en($e),dn(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return pi(t),null;case 13:if(nn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));pl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Q(Ve),null;case 4:return dn(),null;case 10:return en(t.type),null;case 22:case 23:return nn(t),Fs(),e!==null&&Q(Wn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return en($e),null;case 25:return null;default:return null}}function kd(e,t){switch(Ls(t),t.tag){case 3:en($e),dn();break;case 26:case 27:case 5:pi(t);break;case 4:dn();break;case 13:nn(t);break;case 19:Q(Ve);break;case 10:en(t.type);break;case 22:case 23:nn(t),Fs(),e!==null&&Q(Wn);break;case 24:en($e)}}function kl(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){Ae(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,z=v;try{z()}catch(L){Ae(u,x,L)}}}a=a.next}while(a!==o)}}catch(L){Ae(t,t.return,L)}}function Dd(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{bf(t,n)}catch(a){Ae(e,e.return,a)}}}function jd(e,t,n){n.props=In(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Ae(e,t,a)}}function Dl(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){Ae(e,t,u)}}function Vt(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(u){Ae(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){Ae(e,t,u)}else n.current=null}function Md(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){Ae(e,e.return,u)}}function Rr(e,t,n){try{var a=e.stateNode;Sy(a,e.type,n,t),a[ut]=t}catch(u){Ae(e,e.return,u)}}function _d(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&kn(e.type)||e.tag===4}function wr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_d(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 Nr(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=gu));else if(a!==4&&(a===27&&kn(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Nr(e,t,n),e=e.sibling;e!==null;)Nr(e,t,n),e=e.sibling}function lu(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(lu(e,t,n),e=e.sibling;e!==null;)lu(e,t,n),e=e.sibling}function Ld(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);Fe(t,a,n),t[We]=e,t[ut]=n}catch(o){Ae(e,e.return,o)}}var un=!1,Be=!1,Ar=!1,Ud=typeof WeakSet=="function"?WeakSet:Set,Xe=null;function ey(e,t){if(e=e.containerInfo,Wr=Eu,e=Zc(e),ws(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,z=0,L=0,B=e,D=null;t:for(;;){for(var j;B!==n||u!==0&&B.nodeType!==3||(v=m+u),B!==o||a!==0&&B.nodeType!==3||(x=m+a),B.nodeType===3&&(m+=B.nodeValue.length),(j=B.firstChild)!==null;)D=B,B=j;for(;;){if(B===e)break t;if(D===n&&++z===u&&(v=m),D===o&&++L===a&&(x=m),(j=B.nextSibling)!==null)break;B=D,D=B.parentNode}B=j}n=v===-1||x===-1?null:{start:v,end:x}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pr={focusedElem:e,selectionRange:n},Eu=!1,Xe=t;Xe!==null;)if(t=Xe,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Xe=e;else for(;Xe!==null;){switch(t=Xe,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 ae=In(n.type,u,n.elementType===n.type);e=a.getSnapshotBeforeUpdate(ae,o),a.__reactInternalSnapshotBeforeUpdate=e}catch(te){Ae(n,n.return,te)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)to(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":to(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,Xe=e;break}Xe=t.return}}function Hd(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Rn(e,n),a&4&&kl(5,n);break;case 1:if(Rn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(m){Ae(n,n.return,m)}else{var u=In(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Ae(n,n.return,m)}}a&64&&Dd(n),a&512&&Dl(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{bf(e,t)}catch(m){Ae(n,n.return,m)}}break;case 27:t===null&&a&4&&Ld(n);case 26:case 5:Rn(e,n),t===null&&a&4&&Md(n),a&512&&Dl(n,n.return);break;case 12:Rn(e,n);break;case 13:Rn(e,n),a&4&&Gd(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=oy.bind(null,n),Ay(e,n))));break;case 22:if(a=n.memoizedState!==null||un,!a){t=t!==null&&t.memoizedState!==null||Be,u=un;var o=Be;un=a,(Be=t)&&!o?wn(e,n,(n.subtreeFlags&8772)!==0):Rn(e,n),un=u,Be=o}break;case 30:break;default:Rn(e,n)}}function Bd(e){var t=e.alternate;t!==null&&(e.alternate=null,Bd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&us(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,ot=!1;function sn(e,t,n){for(n=n.child;n!==null;)qd(e,t,n),n=n.sibling}function qd(e,t,n){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(Ia,n)}catch{}switch(n.tag){case 26:Be||Vt(n,t),sn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Be||Vt(n,t);var a=De,u=ot;kn(n.type)&&(De=n.stateNode,ot=!1),sn(e,t,n),Gl(n.stateNode),De=a,ot=u;break;case 5:Be||Vt(n,t);case 6:if(a=De,u=ot,De=null,sn(e,t,n),De=a,ot=u,De!==null)if(ot)try{(De.nodeType===9?De.body:De.nodeName==="HTML"?De.ownerDocument.body:De).removeChild(n.stateNode)}catch(o){Ae(n,t,o)}else try{De.removeChild(n.stateNode)}catch(o){Ae(n,t,o)}break;case 18:De!==null&&(ot?(e=De,Oh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Jl(e)):Oh(De,n.stateNode));break;case 4:a=De,u=ot,De=n.stateNode.containerInfo,ot=!0,sn(e,t,n),De=a,ot=u;break;case 0:case 11:case 14:case 15:Be||Tn(2,n,t),Be||Tn(4,n,t),sn(e,t,n);break;case 1:Be||(Vt(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&jd(n,t,a)),sn(e,t,n);break;case 21:sn(e,t,n);break;case 22:Be=(a=Be)||n.memoizedState!==null,sn(e,t,n),Be=a;break;default:sn(e,t,n)}}function Gd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Jl(e)}catch(n){Ae(t,t.return,n)}}function ty(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ud),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ud),t;default:throw Error(s(435,e.tag))}}function Or(e,t){var n=ty(e);t.forEach(function(a){var u=cy.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)){De=v.stateNode,ot=!1;break e}break;case 5:De=v.stateNode,ot=!1;break e;case 3:case 4:De=v.stateNode.containerInfo,ot=!0;break e}v=v.return}if(De===null)throw Error(s(160));qd(o,m,u),De=null,ot=!1,o=u.alternate,o!==null&&(o.return=null),u.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)$d(t,e),t=t.sibling}var Lt=null;function $d(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),kl(3,e),Tn(5,e,e.return));break;case 1:yt(t,e),vt(e),a&512&&(Be||n===null||Vt(n,n.return)),a&64&&un&&(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=Lt;if(yt(t,e),vt(e),a&512&&(Be||n===null||Vt(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[nl]||o[We]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=u.createElement(a),u.head.insertBefore(o,u.querySelector("head > title"))),Fe(o,a,n),o[We]=e,Ye(o),a=o;break e;case"link":var m=Lh("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),Fe(o,a,n),u.head.appendChild(o);break;case"meta":if(m=Lh("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),Fe(o,a,n),u.head.appendChild(o);break;default:throw Error(s(468,a))}o[We]=e,Ye(o),a=o}e.stateNode=a}else Uh(u,e.type,e.stateNode);else e.stateNode=_h(u,a,e.memoizedProps);else o!==a?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,a===null?Uh(u,e.type,e.stateNode):_h(u,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Rr(e,e.memoizedProps,n.memoizedProps)}break;case 27:yt(t,e),vt(e),a&512&&(Be||n===null||Vt(n,n.return)),n!==null&&a&4&&Rr(e,e.memoizedProps,n.memoizedProps);break;case 5:if(yt(t,e),vt(e),a&512&&(Be||n===null||Vt(n,n.return)),e.flags&32){u=e.stateNode;try{ga(u,"")}catch(j){Ae(e,e.return,j)}}a&4&&e.stateNode!=null&&(u=e.memoizedProps,Rr(e,u,n!==null?n.memoizedProps:u)),a&1024&&(Ar=!0);break;case 6:if(yt(t,e),vt(e),a&4){if(e.stateNode===null)throw Error(s(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(j){Ae(e,e.return,j)}}break;case 3:if(bu=null,u=Lt,Lt=yu(t.containerInfo),yt(t,e),Lt=u,vt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Jl(t.containerInfo)}catch(j){Ae(e,e.return,j)}Ar&&(Ar=!1,Vd(e));break;case 4:a=Lt,Lt=yu(e.stateNode.containerInfo),yt(t,e),vt(e),Lt=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)&&(Mr=qt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Or(e,a)));break;case 22:u=e.memoizedState!==null;var x=n!==null&&n.memoizedState!==null,z=un,L=Be;if(un=z||u,Be=L||x,yt(t,e),Be=L,un=z,vt(e),a&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(n===null||x||un||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 B=x.memoizedProps.style,D=B!=null&&B.hasOwnProperty("display")?B.display:null;v.style.display=D==null||typeof D=="boolean"?"":(""+D).trim()}}catch(j){Ae(x,x.return,j)}}}else if(t.tag===6){if(n===null){x=t;try{x.stateNode.nodeValue=u?"":x.memoizedProps}catch(j){Ae(x,x.return,j)}}}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,Or(e,n))));break;case 19:yt(t,e),vt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Or(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(_d(a)){n=a;break}a=a.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var u=n.stateNode,o=wr(e);lu(e,o,u);break;case 5:var m=n.stateNode;n.flags&32&&(ga(m,""),n.flags&=-33);var v=wr(e);lu(e,v,m);break;case 3:case 4:var x=n.stateNode.containerInfo,z=wr(e);Nr(e,z,x);break;default:throw Error(s(161))}}catch(L){Ae(e,e.return,L)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Vd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Vd(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;)Hd(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:Vt(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&jd(t,t.return,n),ea(t);break;case 27:Gl(t.stateNode);case 26:case 5:Vt(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),kl(4,o);break;case 1:if(wn(u,o,n),a=o,u=a.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(z){Ae(a,a.return,z)}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++)vf(x[u],v)}catch(z){Ae(a,a.return,z)}}n&&m&64&&Dd(o),Dl(o,o.return);break;case 27:Ld(o);case 26:case 5:wn(u,o,n),n&&a===null&&m&4&&Md(o),Dl(o,o.return);break;case 12:wn(u,o,n);break;case 13:wn(u,o,n),n&&m&4&&Gd(u,o);break;case 22:o.memoizedState===null&&wn(u,o,n),Dl(o,o.return);break;case 30:break;default:wn(u,o,n)}t=t.sibling}}function Cr(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&&yl(n))}function zr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&yl(e))}function Yt(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Yd(e,t,n,a),t=t.sibling}function Yd(e,t,n,a){var u=t.flags;switch(t.tag){case 0:case 11:case 15:Yt(e,t,n,a),u&2048&&kl(9,t);break;case 1:Yt(e,t,n,a);break;case 3:Yt(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&&yl(e)));break;case 12:if(u&2048){Yt(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){Ae(t,t.return,x)}}else Yt(e,t,n,a);break;case 13:Yt(e,t,n,a);break;case 23:break;case 22:o=t.stateNode,m=t.alternate,t.memoizedState!==null?o._visibility&2?Yt(e,t,n,a):jl(e,t):o._visibility&2?Yt(e,t,n,a):(o._visibility|=2,Ma(e,t,n,a,(t.subtreeFlags&10256)!==0)),u&2048&&Cr(m,t);break;case 24:Yt(e,t,n,a),u&2048&&zr(t.alternate,t);break;default:Yt(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,z=m.flags;switch(m.tag){case 0:case 11:case 15:Ma(o,m,v,x,u),kl(8,m);break;case 23:break;case 22:var L=m.stateNode;m.memoizedState!==null?L._visibility&2?Ma(o,m,v,x,u):jl(o,m):(L._visibility|=2,Ma(o,m,v,x,u)),u&&z&2048&&Cr(m.alternate,m);break;case 24:Ma(o,m,v,x,u),u&&z&2048&&zr(m.alternate,m);break;default:Ma(o,m,v,x,u)}t=t.sibling}}function jl(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:jl(n,a),u&2048&&Cr(a.alternate,a);break;case 24:jl(n,a),u&2048&&zr(a.alternate,a);break;default:jl(n,a)}t=t.sibling}}var Ml=8192;function _a(e){if(e.subtreeFlags&Ml)for(e=e.child;e!==null;)Qd(e),e=e.sibling}function Qd(e){switch(e.tag){case 26:_a(e),e.flags&Ml&&e.memoizedState!==null&&qy(Lt,e.memoizedState,e.memoizedProps);break;case 5:_a(e);break;case 3:case 4:var t=Lt;Lt=yu(e.stateNode.containerInfo),_a(e),Lt=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Ml,Ml=16777216,_a(e),Ml=t):_a(e));break;default:_a(e)}}function Xd(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 _l(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];Xe=a,Kd(a,e)}Xd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Zd(e),e=e.sibling}function Zd(e){switch(e.tag){case 0:case 11:case 15:_l(e),e.flags&2048&&Tn(9,e,e.return);break;case 3:_l(e);break;case 12:_l(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,iu(e)):_l(e);break;default:_l(e)}}function iu(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];Xe=a,Kd(a,e)}Xd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Tn(8,t,t.return),iu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,iu(t));break;default:iu(t)}e=e.sibling}}function Kd(e,t){for(;Xe!==null;){var n=Xe;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:yl(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Xe=a;else e:for(n=e;Xe!==null;){a=Xe;var u=a.sibling,o=a.return;if(Bd(a),a===n){Xe=null;break e}if(u!==null){u.return=o,Xe=u;break e}Xe=o}}}var ny={getCacheForType:function(e){var t=Pe($e),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},ay=typeof WeakMap=="function"?WeakMap:Map,xe=0,ze=null,he=null,ge=0,Ee=0,bt=null,Nn=!1,La=!1,kr=!1,rn=0,Ue=0,An=0,ta=0,Dr=0,zt=0,Ua=0,Ll=null,ct=null,jr=!1,Mr=0,uu=1/0,su=null,On=null,Je=0,Cn=null,Ha=null,Ba=0,_r=0,Lr=null,Jd=null,Ul=0,Ur=null;function St(){if((xe&2)!==0&&ge!==0)return ge&-ge;if(_.T!==null){var e=Na;return e!==0?e:Yr()}return cc()}function Fd(){zt===0&&(zt=(ge&536870912)===0||be?uc():536870912);var e=Ct.current;return e!==null&&(e.flags|=32),zt}function xt(e,t,n){(e===ze&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)&&(qa(e,0),zn(e,ge,zt,!1)),tl(e,n),((xe&2)===0||e!==ze)&&(e===ze&&((xe&2)===0&&(ta|=n),Ue===4&&zn(e,ge,zt,!1)),Qt(e))}function Wd(e,t,n){if((xe&6)!==0)throw Error(s(327));var a=!n&&(t&124)===0&&(t&e.expiredLanes)===0||el(e,t),u=a?uy(e,t):qr(e,t,!0),o=a;do{if(u===0){La&&!a&&zn(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!ly(n)){u=qr(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=Ll;var x=v.current.memoizedState.isDehydrated;if(x&&(qa(v,m).flags|=256),m=qr(v,m,!1),m!==2){if(kr&&!x){v.errorRecoveryDisabledLanes|=o,ta|=o,u=4;break e}o=ct,ct=u,o!==null&&(ct===null?ct=o:ct.push.apply(ct,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(s(345));case 4:if((t&4194048)!==t)break;case 6:zn(a,t,zt,!Nn);break e;case 2:ct=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(u=Mr+300-qt(),10<u)){if(zn(a,t,zt,!Nn),vi(a,0,!0)!==0)break e;a.timeoutHandle=Nh(Pd.bind(null,a,n,ct,su,jr,t,zt,ta,Ua,Nn,o,2,-0,0),u);break e}Pd(a,n,ct,su,jr,t,zt,ta,Ua,Nn,o,0,-0,0)}}break}while(!0);Qt(e)}function Pd(e,t,n,a,u,o,m,v,x,z,L,B,D,j){if(e.timeoutHandle=-1,B=t.subtreeFlags,(B&8192||(B&16785408)===16785408)&&(Yl={stylesheets:null,count:0,unsuspend:By},Qd(t),B=Gy(),B!==null)){e.cancelPendingCommit=B(ih.bind(null,e,t,o,n,a,u,m,v,x,L,1,D,j)),zn(e,o,m,!z);return}ih(e,t,o,n,a,u,m,v,x)}function ly(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&=~Dr,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&&rc(e,n,t)}function ru(){return(xe&6)===0?(Hl(0),!1):!0}function Hr(){if(he!==null){if(Ee===0)var e=he.return;else e=he,It=Jn=null,tr(e),Da=null,Ol=0,e=he;for(;e!==null;)kd(e.alternate,e),e=e.return;he=null}}function qa(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Ey(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Hr(),ze=e,he=n=Ft(e.current,null),ge=t,Ee=0,bt=null,Nn=!1,La=el(e,t),kr=!1,Ua=zt=Dr=ta=An=Ue=0,ct=Ll=null,jr=!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 rn=t,zi(),n}function Id(e,t){fe=null,_.H=Ji,t===bl||t===Bi?(t=mf(),Ee=3):t===hf?(t=mf(),Ee=4):Ee=t===yd?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,bt=t,he===null&&(Ue=1,eu(e,wt(t,e.current)))}function eh(){var e=_.H;return _.H=Ji,e===null?Ji:e}function th(){var e=_.A;return _.A=ny,e}function Br(){Ue=4,Nn||(ge&4194048)!==ge&&Ct.current!==null||(La=!0),(An&134217727)===0&&(ta&134217727)===0||ze===null||zn(ze,ge,zt,!1)}function qr(e,t,n){var a=xe;xe|=2;var u=eh(),o=th();(ze!==e||ge!==t)&&(su=null,qa(e,t)),t=!1;var m=Ue;e:do try{if(Ee!==0&&he!==null){var v=he,x=bt;switch(Ee){case 8:Hr(),m=6;break e;case 3:case 2:case 9:case 6:Ct.current===null&&(t=!0);var z=Ee;if(Ee=0,bt=null,Ga(e,v,x,z),n&&La){m=0;break e}break;default:z=Ee,Ee=0,bt=null,Ga(e,v,x,z)}}iy(),m=Ue;break}catch(L){Id(e,L)}while(!0);return t&&e.shellSuspendCounter++,It=Jn=null,xe=a,_.H=u,_.A=o,he===null&&(ze=null,ge=0,zi()),m}function iy(){for(;he!==null;)nh(he)}function uy(e,t){var n=xe;xe|=2;var a=eh(),u=th();ze!==e||ge!==t?(su=null,uu=qt()+500,qa(e,t)):La=el(e,t);e:do try{if(Ee!==0&&he!==null){t=he;var o=bt;t:switch(Ee){case 1:Ee=0,bt=null,Ga(e,t,o,1);break;case 2:case 9:if(pf(o)){Ee=0,bt=null,ah(t);break}t=function(){Ee!==2&&Ee!==9||ze!==e||(Ee=7),Qt(e)},o.then(t,t);break e;case 3:Ee=7;break e;case 4:Ee=5;break e;case 7:pf(o)?(Ee=0,bt=null,ah(t)):(Ee=0,bt=null,Ga(e,t,o,7));break;case 5:var m=null;switch(he.tag){case 26:m=he.memoizedState;case 5:case 27:var v=he;if(!m||Hh(m)){Ee=0,bt=null;var x=v.sibling;if(x!==null)he=x;else{var z=v.return;z!==null?(he=z,ou(z)):he=null}break t}}Ee=0,bt=null,Ga(e,t,o,5);break;case 6:Ee=0,bt=null,Ga(e,t,o,6);break;case 8:Hr(),Ue=6;break e;default:throw Error(s(462))}}sy();break}catch(L){Id(e,L)}while(!0);return It=Jn=null,_.H=a,_.A=u,xe=n,he!==null?0:(ze=null,ge=0,zi(),Ue)}function sy(){for(;he!==null&&!Cg();)nh(he)}function nh(e){var t=Cd(e.alternate,e,rn);e.memoizedProps=e.pendingProps,t===null?ou(e):he=t}function ah(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Td(n,t,t.pendingProps,t.type,void 0,ge);break;case 11:t=Td(n,t,t.pendingProps,t.type.render,t.ref,ge);break;case 5:tr(t);default:kd(n,t),t=he=af(t,rn),t=Cd(n,t,rn)}e.memoizedProps=e.pendingProps,t===null?ou(e):he=t}function Ga(e,t,n,a){It=Jn=null,tr(t),Da=null,Ol=0;var u=t.return;try{if(Fm(e,u,t,n,ge)){Ue=1,eu(e,wt(n,e.current)),he=null;return}}catch(o){if(u!==null)throw he=u,o;Ue=1,eu(e,wt(n,e.current)),he=null;return}t.flags&32768?(be||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))),lh(t,e)):ou(t)}function ou(e){var t=e;do{if((t.flags&32768)!==0){lh(t,Nn);return}e=t.return;var n=Pm(t.alternate,t,rn);if(n!==null){he=n;return}if(t=t.sibling,t!==null){he=t;return}he=t=e}while(t!==null);Ue===0&&(Ue=5)}function lh(e,t){do{var n=Im(e.alternate,e);if(n!==null){n.flags&=32767,he=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){he=e;return}he=e=n}while(e!==null);Ue=6,he=null}function ih(e,t,n,a,u,o,m,v,x){e.cancelPendingCommit=null;do cu();while(Je!==0);if((xe&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(o=t.lanes|t.childLanes,o|=zs,Bg(e,n,o,m,v,x),e===ze&&(he=ze=null,ge=0),Ha=t,Cn=e,Ba=n,_r=o,Lr=u,Jd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,fy(gi,function(){return ch(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=_.T,_.T=null,u=V.p,V.p=2,m=xe,xe|=4;try{ey(e,t,n)}finally{xe=m,V.p=u,_.T=a}}Je=1,uh(),sh(),rh()}}function uh(){if(Je===1){Je=0;var e=Cn,t=Ha,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=_.T,_.T=null;var a=V.p;V.p=2;var u=xe;xe|=4;try{$d(t,e);var o=Pr,m=Zc(e.containerInfo),v=o.focusedElem,x=o.selectionRange;if(m!==v&&v&&v.ownerDocument&&Xc(v.ownerDocument.documentElement,v)){if(x!==null&&ws(v)){var z=x.start,L=x.end;if(L===void 0&&(L=z),"selectionStart"in v)v.selectionStart=z,v.selectionEnd=Math.min(L,v.value.length);else{var B=v.ownerDocument||document,D=B&&B.defaultView||window;if(D.getSelection){var j=D.getSelection(),ae=v.textContent.length,te=Math.min(x.start,ae),Ne=x.end===void 0?te:Math.min(x.end,ae);!j.extend&&te>Ne&&(m=Ne,Ne=te,te=m);var N=Qc(v,te),w=Qc(v,Ne);if(N&&w&&(j.rangeCount!==1||j.anchorNode!==N.node||j.anchorOffset!==N.offset||j.focusNode!==w.node||j.focusOffset!==w.offset)){var C=B.createRange();C.setStart(N.node,N.offset),j.removeAllRanges(),te>Ne?(j.addRange(C),j.extend(w.node,w.offset)):(C.setEnd(w.node,w.offset),j.addRange(C))}}}}for(B=[],j=v;j=j.parentNode;)j.nodeType===1&&B.push({element:j,left:j.scrollLeft,top:j.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<B.length;v++){var U=B[v];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}Eu=!!Wr,Pr=Wr=null}finally{xe=u,V.p=a,_.T=n}}e.current=t,Je=2}}function sh(){if(Je===2){Je=0;var e=Cn,t=Ha,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=_.T,_.T=null;var a=V.p;V.p=2;var u=xe;xe|=4;try{Hd(e,t.alternate,t)}finally{xe=u,V.p=a,_.T=n}}Je=3}}function rh(){if(Je===4||Je===3){Je=0,zg();var e=Cn,t=Ha,n=Ba,a=Jd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Je=5:(Je=0,Ha=Cn=null,oh(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(On=null),ls(n),t=t.stateNode,ht&&typeof ht.onCommitFiberRoot=="function")try{ht.onCommitFiberRoot(Ia,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=_.T,u=V.p,V.p=2,_.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{_.T=t,V.p=u}}(Ba&3)!==0&&cu(),Qt(e),u=e.pendingLanes,(n&4194090)!==0&&(u&42)!==0?e===Ur?Ul++:(Ul=0,Ur=e):Ul=0,Hl(0)}}function oh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,yl(t)))}function cu(e){return uh(),sh(),rh(),ch()}function ch(){if(Je!==5)return!1;var e=Cn,t=_r;_r=0;var n=ls(Ba),a=_.T,u=V.p;try{V.p=32>n?32:n,_.T=null,n=Lr,Lr=null;var o=Cn,m=Ba;if(Je=0,Ha=Cn=null,Ba=0,(xe&6)!==0)throw Error(s(331));var v=xe;if(xe|=4,Zd(o.current),Yd(o,o.current,m,n),xe=v,Hl(0,!1),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot(Ia,o)}catch{}return!0}finally{V.p=u,_.T=a,oh(e,t)}}function fh(e,t,n){t=wt(n,t),t=gr(e.stateNode,t,2),e=bn(e,t,2),e!==null&&(tl(e,2),Qt(e))}function Ae(e,t,n){if(e.tag===3)fh(e,e,n);else for(;t!==null;){if(t.tag===3){fh(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=gd(2),a=bn(t,n,2),a!==null&&(md(n,a,t,e),tl(a,2),Qt(a));break}}t=t.return}}function Gr(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new ay;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)||(kr=!0,u.add(n),e=ry.bind(null,e,t,n),t.then(e,e))}function ry(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ze===e&&(ge&n)===n&&(Ue===4||Ue===3&&(ge&62914560)===ge&&300>qt()-Mr?(xe&2)===0&&qa(e,0):Dr|=n,Ua===ge&&(Ua=0)),Qt(e)}function dh(e,t){t===0&&(t=sc()),e=Ea(e,t),e!==null&&(tl(e,t),Qt(e))}function oy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),dh(e,n)}function cy(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(s(314))}a!==null&&a.delete(t),dh(e,n)}function fy(e,t){return es(e,t)}var fu=null,$a=null,$r=!1,du=!1,Vr=!1,na=0;function Qt(e){e!==$a&&e.next===null&&($a===null?fu=$a=e:$a=$a.next=e),du=!0,$r||($r=!0,hy())}function Hl(e,t){if(!Vr&&du){Vr=!0;do for(var n=!1,a=fu;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,mh(a,o))}else o=ge,o=vi(a,a===ze?o:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(o&3)===0||el(a,o)||(n=!0,mh(a,o));a=a.next}while(n);Vr=!1}}function dy(){hh()}function hh(){du=$r=!1;var e=0;na!==0&&(xy()&&(e=na),na=0);for(var t=qt(),n=null,a=fu;a!==null;){var u=a.next,o=ph(a,t);o===0?(a.next=null,n===null?fu=u:n.next=u,u===null&&($a=n)):(n=a,(e!==0||(o&3)!==0)&&(du=!0)),a=u}Hl(e)}function ph(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]=Hg(v,t)):x<=t&&(e.expiredLanes|=v),o&=~v}if(t=ze,n=ge,n=vi(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&ts(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||el(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&ts(a),ls(n)){case 2:case 8:n=lc;break;case 32:n=gi;break;case 268435456:n=ic;break;default:n=gi}return a=gh.bind(null,e),n=es(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&ts(a),e.callbackPriority=2,e.callbackNode=null,2}function gh(e,t){if(Je!==0&&Je!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(cu()&&e.callbackNode!==n)return null;var a=ge;return a=vi(e,e===ze?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Wd(e,a,t),ph(e,qt()),e.callbackNode!=null&&e.callbackNode===n?gh.bind(null,e):null)}function mh(e,t){if(cu())return null;Wd(e,t,!0)}function hy(){Ty(function(){(xe&6)!==0?es(ac,dy):hh()})}function Yr(){return na===0&&(na=uc()),na}function yh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ti(""+e)}function vh(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 py(e,t,n,a,u){if(t==="submit"&&n&&n.stateNode===u){var o=yh((u[ut]||null).action),m=a.submitter;m&&(t=(t=m[ut]||null)?yh(t.formAction):m.getAttribute("formAction"),t!==null&&(o=t,m=null));var v=new Ai("action","action",null,a,u);e.push({event:v,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(na!==0){var x=m?vh(u,m):new FormData(u);cr(n,{pending:!0,data:x,method:u.method,action:o},null,x)}}else typeof o=="function"&&(v.preventDefault(),x=m?vh(u,m):new FormData(u),cr(n,{pending:!0,data:x,method:u.method,action:o},o,x))},currentTarget:u}]})}}for(var Qr=0;Qr<Cs.length;Qr++){var Xr=Cs[Qr],gy=Xr.toLowerCase(),my=Xr[0].toUpperCase()+Xr.slice(1);_t(gy,"on"+my)}_t(Fc,"onAnimationEnd"),_t(Wc,"onAnimationIteration"),_t(Pc,"onAnimationStart"),_t("dblclick","onDoubleClick"),_t("focusin","onFocus"),_t("focusout","onBlur"),_t(jm,"onTransitionRun"),_t(Mm,"onTransitionStart"),_t(_m,"onTransitionCancel"),_t(Ic,"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 Bl="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(" "),yy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Bl));function bh(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,z=v.currentTarget;if(v=v.listener,x!==o&&u.isPropagationStopped())break e;o=v,u.currentTarget=z;try{o(u)}catch(L){Ii(L)}u.currentTarget=null,o=x}else for(m=0;m<a.length;m++){if(v=a[m],x=v.instance,z=v.currentTarget,v=v.listener,x!==o&&u.isPropagationStopped())break e;o=v,u.currentTarget=z;try{o(u)}catch(L){Ii(L)}u.currentTarget=null,o=x}}}}function pe(e,t){var n=t[is];n===void 0&&(n=t[is]=new Set);var a=e+"__bubble";n.has(a)||(Sh(t,e,2,!1),n.add(a))}function Zr(e,t,n){var a=0;t&&(a|=4),Sh(n,e,a,t)}var hu="_reactListening"+Math.random().toString(36).slice(2);function Kr(e){if(!e[hu]){e[hu]=!0,dc.forEach(function(n){n!=="selectionchange"&&(yy.has(n)||Zr(n,!1,e),Zr(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[hu]||(t[hu]=!0,Zr("selectionchange",!1,t))}}function Sh(e,t,n,a){switch(Yh(t)){case 2:var u=Yy;break;case 8:u=Qy;break;default:u=ro}n=u.bind(null,t,n,e),u=void 0,!ms||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 Jr(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}Nc(function(){var z=o,L=ps(n),B=[];e:{var D=ef.get(e);if(D!==void 0){var j=Ai,ae=e;switch(e){case"keypress":if(wi(n)===0)break e;case"keydown":case"keyup":j=fm;break;case"focusin":ae="focus",j=Ss;break;case"focusout":ae="blur",j=Ss;break;case"beforeblur":case"afterblur":j=Ss;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":j=Cc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=Ig;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=pm;break;case Fc:case Wc:case Pc:j=nm;break;case Ic:j=mm;break;case"scroll":case"scrollend":j=Wg;break;case"wheel":j=vm;break;case"copy":case"cut":case"paste":j=lm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=kc;break;case"toggle":case"beforetoggle":j=Sm}var te=(t&4)!==0,Ne=!te&&(e==="scroll"||e==="scrollend"),N=te?D!==null?D+"Capture":null:D;te=[];for(var w=z,C;w!==null;){var U=w;if(C=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||C===null||N===null||(U=ll(w,N),U!=null&&te.push(ql(w,U,C))),Ne)break;w=w.return}0<te.length&&(D=new j(D,ae,null,n,L),B.push({event:D,listeners:te}))}}if((t&7)===0){e:{if(D=e==="mouseover"||e==="pointerover",j=e==="mouseout"||e==="pointerout",D&&n!==hs&&(ae=n.relatedTarget||n.fromElement)&&(oa(ae)||ae[ra]))break e;if((j||D)&&(D=L.window===L?L:(D=L.ownerDocument)?D.defaultView||D.parentWindow:window,j?(ae=n.relatedTarget||n.toElement,j=z,ae=ae?oa(ae):null,ae!==null&&(Ne=f(ae),te=ae.tag,ae!==Ne||te!==5&&te!==27&&te!==6)&&(ae=null)):(j=null,ae=z),j!==ae)){if(te=Cc,U="onMouseLeave",N="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(te=kc,U="onPointerLeave",N="onPointerEnter",w="pointer"),Ne=j==null?D:al(j),C=ae==null?D:al(ae),D=new te(U,w+"leave",j,n,L),D.target=Ne,D.relatedTarget=C,U=null,oa(L)===z&&(te=new te(N,w+"enter",ae,n,L),te.target=C,te.relatedTarget=Ne,U=te),Ne=U,j&&ae)t:{for(te=j,N=ae,w=0,C=te;C;C=Va(C))w++;for(C=0,U=N;U;U=Va(U))C++;for(;0<w-C;)te=Va(te),w--;for(;0<C-w;)N=Va(N),C--;for(;w--;){if(te===N||N!==null&&te===N.alternate)break t;te=Va(te),N=Va(N)}te=null}else te=null;j!==null&&xh(B,D,j,te,!1),ae!==null&&Ne!==null&&xh(B,Ne,ae,te,!0)}}e:{if(D=z?al(z):window,j=D.nodeName&&D.nodeName.toLowerCase(),j==="select"||j==="input"&&D.type==="file")var Z=Bc;else if(Uc(D))if(qc)Z=zm;else{Z=Om;var de=Am}else j=D.nodeName,!j||j.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?z&&ds(z.elementType)&&(Z=Bc):Z=Cm;if(Z&&(Z=Z(e,z))){Hc(B,Z,n,L);break e}de&&de(e,D,z),e==="focusout"&&z&&D.type==="number"&&z.memoizedProps.value!=null&&fs(D,"number",D.value)}switch(de=z?al(z):window,e){case"focusin":(Uc(de)||de.contentEditable==="true")&&(ba=de,Ns=z,dl=null);break;case"focusout":dl=Ns=ba=null;break;case"mousedown":As=!0;break;case"contextmenu":case"mouseup":case"dragend":As=!1,Kc(B,n,L);break;case"selectionchange":if(Dm)break;case"keydown":case"keyup":Kc(B,n,L)}var P;if(Es)e:{switch(e){case"compositionstart":var ne="onCompositionStart";break e;case"compositionend":ne="onCompositionEnd";break e;case"compositionupdate":ne="onCompositionUpdate";break e}ne=void 0}else va?_c(e,n)&&(ne="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ne="onCompositionStart");ne&&(Dc&&n.locale!=="ko"&&(va||ne!=="onCompositionStart"?ne==="onCompositionEnd"&&va&&(P=Ac()):(gn=L,ys="value"in gn?gn.value:gn.textContent,va=!0)),de=pu(z,ne),0<de.length&&(ne=new zc(ne,e,null,n,L),B.push({event:ne,listeners:de}),P?ne.data=P:(P=Lc(n),P!==null&&(ne.data=P)))),(P=Em?Tm(e,n):Rm(e,n))&&(ne=pu(z,"onBeforeInput"),0<ne.length&&(de=new zc("onBeforeInput","beforeinput",null,n,L),B.push({event:de,listeners:ne}),de.data=P)),py(B,e,z,n,L)}bh(B,t)})}function ql(e,t,n){return{instance:e,listener:t,currentTarget:n}}function pu(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=ll(e,n),u!=null&&a.unshift(ql(e,u,o)),u=ll(e,t),u!=null&&a.push(ql(e,u,o))),e.tag===3)return a;e=e.return}return[]}function Va(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function xh(e,t,n,a,u){for(var o=t._reactName,m=[];n!==null&&n!==a;){var v=n,x=v.alternate,z=v.stateNode;if(v=v.tag,x!==null&&x===a)break;v!==5&&v!==26&&v!==27||z===null||(x=z,u?(z=ll(n,o),z!=null&&m.unshift(ql(n,z,x))):u||(z=ll(n,o),z!=null&&m.push(ql(n,z,x)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}var vy=/\r\n?/g,by=/\u0000|\uFFFD/g;function Eh(e){return(typeof e=="string"?e:""+e).replace(vy,`
|
|
172
|
+
`).replace(by,"")}function Th(e,t){return t=Eh(t),Eh(e)===t}function gu(){}function we(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":Si(e,"class",a);break;case"tabIndex":Si(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Si(e,n,a);break;case"style":Rc(e,a,o);break;case"data":if(t!=="object"){Si(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=Ti(""+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"&&we(e,t,"name",u.name,u,null),we(e,t,"formEncType",u.formEncType,u,null),we(e,t,"formMethod",u.formMethod,u,null),we(e,t,"formTarget",u.formTarget,u,null)):(we(e,t,"encType",u.encType,u,null),we(e,t,"method",u.method,u,null),we(e,t,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Ti(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=gu);break;case"onScroll":a!=null&&pe("scroll",e);break;case"onScrollEnd":a!=null&&pe("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(u.children!=null)throw Error(s(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=Ti(""+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":pe("beforetoggle",e),pe("toggle",e),bi(e,"popover",a);break;case"xlinkActuate":Kt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Kt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Kt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Kt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Kt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Kt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":bi(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=Jg.get(n)||n,bi(e,n,a))}}function Fr(e,t,n,a,u,o){switch(n){case"style":Rc(e,a,o);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(u.children!=null)throw Error(s(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&&pe("scroll",e);break;case"onScrollEnd":a!=null&&pe("scrollend",e);break;case"onClick":a!=null&&(e.onclick=gu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!hc.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[ut]||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,""):bi(e,n,a)}}}function Fe(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":pe("error",e),pe("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(s(137,t));default:we(e,t,o,m,n,null)}}u&&we(e,t,"srcSet",n.srcSet,n,null),a&&we(e,t,"src",n.src,n,null);return;case"input":pe("invalid",e);var v=o=m=u=null,x=null,z=null;for(a in n)if(n.hasOwnProperty(a)){var L=n[a];if(L!=null)switch(a){case"name":u=L;break;case"type":m=L;break;case"checked":x=L;break;case"defaultChecked":z=L;break;case"value":o=L;break;case"defaultValue":v=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(s(137,t));break;default:we(e,t,a,L,n,null)}}Sc(e,o,v,x,z,m,u,!1),xi(e);return;case"select":pe("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:we(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":pe("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(s(91));break;default:we(e,t,m,v,n,null)}Ec(e,a,u,o),xi(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:we(e,t,x,a,n,null)}return;case"dialog":pe("beforetoggle",e),pe("toggle",e),pe("cancel",e),pe("close",e);break;case"iframe":case"object":pe("load",e);break;case"video":case"audio":for(a=0;a<Bl.length;a++)pe(Bl[a],e);break;case"image":pe("error",e),pe("load",e);break;case"details":pe("toggle",e);break;case"embed":case"source":case"link":pe("error",e),pe("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(z in n)if(n.hasOwnProperty(z)&&(a=n[z],a!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:we(e,t,z,a,n,null)}return;default:if(ds(t)){for(L in n)n.hasOwnProperty(L)&&(a=n[L],a!==void 0&&Fr(e,t,L,a,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(a=n[v],a!=null&&we(e,t,v,a,n,null))}function Sy(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,z=null,L=null;for(j in n){var B=n[j];if(n.hasOwnProperty(j)&&B!=null)switch(j){case"checked":break;case"value":break;case"defaultValue":x=B;default:a.hasOwnProperty(j)||we(e,t,j,null,a,B)}}for(var D in a){var j=a[D];if(B=n[D],a.hasOwnProperty(D)&&(j!=null||B!=null))switch(D){case"type":o=j;break;case"name":u=j;break;case"checked":z=j;break;case"defaultChecked":L=j;break;case"value":m=j;break;case"defaultValue":v=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(s(137,t));break;default:j!==B&&we(e,t,D,j,a,B)}}cs(e,m,v,x,z,L,o,u);return;case"select":j=m=v=D=null;for(o in n)if(x=n[o],n.hasOwnProperty(o)&&x!=null)switch(o){case"value":break;case"multiple":j=x;default:a.hasOwnProperty(o)||we(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":D=o;break;case"defaultValue":v=o;break;case"multiple":m=o;default:o!==x&&we(e,t,u,o,a,x)}t=v,n=m,a=j,D!=null?pa(e,!!n,D,!1):!!a!=!!n&&(t!=null?pa(e,!!n,t,!0):pa(e,!!n,n?[]:"",!1));return;case"textarea":j=D=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:we(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":D=u;break;case"defaultValue":j=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(s(91));break;default:u!==o&&we(e,t,m,u,a,o)}xc(e,D,j);return;case"option":for(var ae in n)if(D=n[ae],n.hasOwnProperty(ae)&&D!=null&&!a.hasOwnProperty(ae))switch(ae){case"selected":e.selected=!1;break;default:we(e,t,ae,null,a,D)}for(x in a)if(D=a[x],j=n[x],a.hasOwnProperty(x)&&D!==j&&(D!=null||j!=null))switch(x){case"selected":e.selected=D&&typeof D!="function"&&typeof D!="symbol";break;default:we(e,t,x,D,a,j)}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 n)D=n[te],n.hasOwnProperty(te)&&D!=null&&!a.hasOwnProperty(te)&&we(e,t,te,null,a,D);for(z in a)if(D=a[z],j=n[z],a.hasOwnProperty(z)&&D!==j&&(D!=null||j!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(s(137,t));break;default:we(e,t,z,D,a,j)}return;default:if(ds(t)){for(var Ne in n)D=n[Ne],n.hasOwnProperty(Ne)&&D!==void 0&&!a.hasOwnProperty(Ne)&&Fr(e,t,Ne,void 0,a,D);for(L in a)D=a[L],j=n[L],!a.hasOwnProperty(L)||D===j||D===void 0&&j===void 0||Fr(e,t,L,D,a,j);return}}for(var N in n)D=n[N],n.hasOwnProperty(N)&&D!=null&&!a.hasOwnProperty(N)&&we(e,t,N,null,a,D);for(B in a)D=a[B],j=n[B],!a.hasOwnProperty(B)||D===j||D==null&&j==null||we(e,t,B,D,a,j)}var Wr=null,Pr=null;function mu(e){return e.nodeType===9?e:e.ownerDocument}function Rh(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 wh(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 Ir(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 eo=null;function xy(){var e=window.event;return e&&e.type==="popstate"?e===eo?!1:(eo=e,!0):(eo=null,!1)}var Nh=typeof setTimeout=="function"?setTimeout:void 0,Ey=typeof clearTimeout=="function"?clearTimeout:void 0,Ah=typeof Promise=="function"?Promise:void 0,Ty=typeof queueMicrotask=="function"?queueMicrotask:typeof Ah<"u"?function(e){return Ah.resolve(null).then(e).catch(Ry)}:Nh;function Ry(e){setTimeout(function(){throw e})}function kn(e){return e==="head"}function Oh(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&&Gl(m.documentElement),n&2&&Gl(m.body),n&4)for(n=m.head,Gl(n),m=n.firstChild;m;){var v=m.nextSibling,x=m.nodeName;m[nl]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&m.rel.toLowerCase()==="stylesheet"||n.removeChild(m),m=v}}if(u===0){e.removeChild(o),Jl(t);return}u--}else n==="$"||n==="$?"||n==="$!"?u++:a=n.charCodeAt(0)-48;else a=0;n=o}while(n);Jl(t)}function to(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":to(n),us(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function wy(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[nl])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=Ut(e.nextSibling),e===null)break}return null}function Ny(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Ut(e.nextSibling),e===null))return null;return e}function no(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function Ay(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 Ut(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 ao=null;function Ch(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 zh(e,t,n){switch(t=mu(n),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 Gl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);us(e)}var kt=new Map,kh=new Set;function yu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var on=V.d;V.d={f:Oy,r:Cy,D:zy,C:ky,L:Dy,m:jy,X:_y,S:My,M:Ly};function Oy(){var e=on.f(),t=ru();return e||t}function Cy(e){var t=ca(e);t!==null&&t.tag===5&&t.type==="form"?Wf(t):on.r(e)}var Ya=typeof document>"u"?null:document;function Dh(e,t,n){var a=Ya;if(a&&typeof t=="string"&&t){var u=Rt(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),kh.has(u)||(kh.add(u),e={rel:e,crossOrigin:n,href:t},a.querySelector(u)===null&&(t=a.createElement("link"),Fe(t,"link",e),Ye(t),a.head.appendChild(t)))}}function zy(e){on.D(e),Dh("dns-prefetch",e,null)}function ky(e,t){on.C(e,t),Dh("preconnect",e,t)}function Dy(e,t,n){on.L(e,t,n);var a=Ya;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($l(o))||t==="script"&&a.querySelector(Vl(o))||(t=a.createElement("link"),Fe(t,"link",e),Ye(t),a.head.appendChild(t)))}}function jy(e,t){on.m(e,t);var n=Ya;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(Vl(o)))return}a=n.createElement("link"),Fe(a,"link",e),Ye(a),n.head.appendChild(a)}}}function My(e,t,n){on.S(e,t,n);var a=Ya;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($l(o)))v.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},n),(n=kt.get(o))&&lo(e,n);var x=m=a.createElement("link");Ye(x),Fe(x,"link",e),x._p=new Promise(function(z,L){x.onload=z,x.onerror=L}),x.addEventListener("load",function(){v.loading|=1}),x.addEventListener("error",function(){v.loading|=2}),v.loading|=4,vu(m,t,a)}m={type:"stylesheet",instance:m,count:1,state:v},u.set(o,m)}}}function _y(e,t){on.X(e,t);var n=Ya;if(n&&e){var a=fa(n).hoistableScripts,u=Xa(e),o=a.get(u);o||(o=n.querySelector(Vl(u)),o||(e=y({src:e,async:!0},t),(t=kt.get(u))&&io(e,t),o=n.createElement("script"),Ye(o),Fe(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(u,o))}}function Ly(e,t){on.M(e,t);var n=Ya;if(n&&e){var a=fa(n).hoistableScripts,u=Xa(e),o=a.get(u);o||(o=n.querySelector(Vl(u)),o||(e=y({src:e,async:!0,type:"module"},t),(t=kt.get(u))&&io(e,t),o=n.createElement("script"),Ye(o),Fe(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(u,o))}}function jh(e,t,n,a){var u=(u=ue.current)?yu(u):null;if(!u)throw Error(s(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($l(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||Uy(u,e,n,m.state))),t&&a===null)throw Error(s(528,""));return m}if(t&&a!==null)throw Error(s(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(s(444,e))}}function Qa(e){return'href="'+Rt(e)+'"'}function $l(e){return'link[rel="stylesheet"]['+e+"]"}function Mh(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function Uy(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}),Fe(t,"link",n),Ye(t),e.head.appendChild(t))}function Xa(e){return'[src="'+Rt(e)+'"]'}function Vl(e){return"script[async]"+e}function _h(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,Ye(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"),Ye(a),Fe(a,"style",u),vu(a,n.precedence,e),t.instance=a;case"stylesheet":u=Qa(n.href);var o=e.querySelector($l(u));if(o)return t.state.loading|=4,t.instance=o,Ye(o),o;a=Mh(n),(u=kt.get(u))&&lo(a,u),o=(e.ownerDocument||e).createElement("link"),Ye(o);var m=o;return m._p=new Promise(function(v,x){m.onload=v,m.onerror=x}),Fe(o,"link",a),t.state.loading|=4,vu(o,n.precedence,e),t.instance=o;case"script":return o=Xa(n.src),(u=e.querySelector(Vl(o)))?(t.instance=u,Ye(u),u):(a=n,(u=kt.get(o))&&(a=y({},n),io(a,u)),e=e.ownerDocument||e,u=e.createElement("script"),Ye(u),Fe(u,"link",a),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&&(a=t.instance,t.state.loading|=4,vu(a,n.precedence,e));return t.instance}function vu(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 lo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function io(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var bu=null;function Lh(e,t,n){if(bu===null){var a=new Map,u=bu=new Map;u.set(n,a)}else u=bu,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[nl]||o[We]||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 Uh(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Hy(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 Hh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Yl=null;function By(){}function qy(e,t,n){if(Yl===null)throw Error(s(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($l(u));if(o){e=o._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(a.count++,a=Su.bind(a),e.then(a,a)),t.state.loading|=4,t.instance=o,Ye(o);return}o=e.ownerDocument||e,n=Mh(n),(u=kt.get(u))&&lo(n,u),o=o.createElement("link"),Ye(o);var m=o;m._p=new Promise(function(v,x){m.onload=v,m.onerror=x}),Fe(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=Su.bind(a),e.addEventListener("load",t),e.addEventListener("error",t))}}function Gy(){if(Yl===null)throw Error(s(475));var e=Yl;return e.stylesheets&&e.count===0&&uo(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&uo(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 Su(){if(this.count--,this.count===0){if(this.stylesheets)uo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var xu=null;function uo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,xu=new Map,t.forEach($y,e),xu=null,Su.call(e))}function $y(e,t){if(!(t.state.loading&4)){var n=xu.get(e);if(n)var a=n.get(null);else{n=new Map,xu.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=Su.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 Ql={$$typeof:$,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function Vy(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=ns(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ns(0),this.hiddenUpdates=ns(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 Bh(e,t,n,a,u,o,m,v,x,z,L,B){return e=new Vy(e,t,n,m,v,x,z,B),t=1,o===!0&&(t|=24),o=mt(3,null,null,t),e.current=o,o.stateNode=e,t=Gs(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:a,isDehydrated:n,cache:t},Qs(o),e}function qh(e){return e?(e=Ta,e):Ta}function Gh(e,t,n,a,u,o){u=qh(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),xl(n,e,t))}function $h(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function so(e,t){$h(e,t),(e=e.alternate)&&$h(e,t)}function Vh(e){if(e.tag===13){var t=Ea(e,67108864);t!==null&&xt(t,e,67108864),so(e,67108864)}}var Eu=!0;function Yy(e,t,n,a){var u=_.T;_.T=null;var o=V.p;try{V.p=2,ro(e,t,n,a)}finally{V.p=o,_.T=u}}function Qy(e,t,n,a){var u=_.T;_.T=null;var o=V.p;try{V.p=8,ro(e,t,n,a)}finally{V.p=o,_.T=u}}function ro(e,t,n,a){if(Eu){var u=oo(a);if(u===null)Jr(e,t,a,Tu,n),Qh(e,a);else if(Zy(u,e,t,n,a))a.stopPropagation();else if(Qh(e,a),t&4&&-1<Xy.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}Qt(o),(xe&6)===0&&(uu=qt()+500,Hl(0))}}break;case 13:v=Ea(o,2),v!==null&&xt(v,o,2),ru(),so(o,2)}if(o=oo(a),o===null&&Jr(e,t,a,Tu,n),o===u)break;u=o}u!==null&&a.stopPropagation()}else Jr(e,t,a,null,n)}}function oo(e){return e=ps(e),co(e)}var Tu=null;function co(e){if(Tu=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=d(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 Tu=e,null}function Yh(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(kg()){case ac:return 2;case lc:return 8;case gi:case Dg:return 32;case ic:return 268435456;default:return 32}default:return 32}}var fo=!1,Dn=null,jn=null,Mn=null,Xl=new Map,Zl=new Map,_n=[],Xy="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 Qh(e,t){switch(e){case"focusin":case"focusout":Dn=null;break;case"dragenter":case"dragleave":jn=null;break;case"mouseover":case"mouseout":Mn=null;break;case"pointerover":case"pointerout":Xl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zl.delete(t.pointerId)}}function Kl(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&&Vh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function Zy(e,t,n,a,u){switch(t){case"focusin":return Dn=Kl(Dn,e,t,n,a,u),!0;case"dragenter":return jn=Kl(jn,e,t,n,a,u),!0;case"mouseover":return Mn=Kl(Mn,e,t,n,a,u),!0;case"pointerover":var o=u.pointerId;return Xl.set(o,Kl(Xl.get(o)||null,e,t,n,a,u)),!0;case"gotpointercapture":return o=u.pointerId,Zl.set(o,Kl(Zl.get(o)||null,e,t,n,a,u)),!0}return!1}function Xh(e){var t=oa(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=d(n),t!==null){e.blockedOn=t,qg(e.priority,function(){if(n.tag===13){var a=St();a=as(a);var u=Ea(n,a);u!==null&&xt(u,n,a),so(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 Ru(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=oo(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);hs=a,n.target.dispatchEvent(a),hs=null}else return t=ca(n),t!==null&&Vh(t),e.blockedOn=n,!1;t.shift()}return!0}function Zh(e,t,n){Ru(e)&&n.delete(t)}function Ky(){fo=!1,Dn!==null&&Ru(Dn)&&(Dn=null),jn!==null&&Ru(jn)&&(jn=null),Mn!==null&&Ru(Mn)&&(Mn=null),Xl.forEach(Zh),Zl.forEach(Zh)}function wu(e,t){e.blockedOn===t&&(e.blockedOn=null,fo||(fo=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Ky)))}var Nu=null;function Kh(e){Nu!==e&&(Nu=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){Nu===e&&(Nu=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(co(a||n)===null)continue;break}var o=ca(n);o!==null&&(e.splice(t,3),t-=3,cr(o,{pending:!0,data:u,method:n.method,action:a},a,u))}}))}function Jl(e){function t(x){return wu(x,e)}Dn!==null&&wu(Dn,e),jn!==null&&wu(jn,e),Mn!==null&&wu(Mn,e),Xl.forEach(t),Zl.forEach(t);for(var n=0;n<_n.length;n++){var a=_n[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<_n.length&&(n=_n[0],n.blockedOn===null);)Xh(n),n.blockedOn===null&&_n.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[ut]||null;if(typeof o=="function")m||Kh(n);else if(m){var v=null;if(o&&o.hasAttribute("formAction")){if(u=o,m=o[ut]||null)v=m.formAction;else if(co(u)!==null)continue}else v=m.action;typeof v=="function"?n[a+1]=v:(n.splice(a,3),a-=3),Kh(n)}}}function ho(e){this._internalRoot=e}Au.prototype.render=ho.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,a=St();Gh(n,a,e,t,null,null)},Au.prototype.unmount=ho.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Gh(e.current,2,null,e,null,null),ru(),t[ra]=null}};function Au(e){this._internalRoot=e}Au.prototype.unstable_scheduleHydration=function(e){if(e){var t=cc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<_n.length&&t!==0&&t<_n[n].priority;n++);_n.splice(n,0,e),n===0&&Xh(e)}};var Jh=l.version;if(Jh!=="19.1.0")throw Error(s(527,Jh,"19.1.0"));V.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=p(t),e=e!==null?h(e):null,e=e===null?null:e.stateNode,e};var Jy={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ou.isDisabled&&Ou.supportsFiber)try{Ia=Ou.inject(Jy),ht=Ou}catch{}}return Pl.createRoot=function(e,t){if(!c(e))throw Error(s(299));var n=!1,a="",u=fd,o=dd,m=hd,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=Bh(e,1,!1,null,null,n,a,u,o,m,v,null),e[ra]=t.current,Kr(e),new ho(t)},Pl.hydrateRoot=function(e,t,n){if(!c(e))throw Error(s(299));var a=!1,u="",o=fd,m=dd,v=hd,x=null,z=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&&(z=n.formState)),t=Bh(e,1,!0,t,n??null,a,u,o,m,v,x,z),t.context=qh(null),n=t.current,a=St(),a=as(a),u=vn(a),u.callback=null,bn(n,u,a),n=a,t.current.lanes=n,tl(t,n),Qt(t),e[ra]=t.current,Kr(e),new Au(t)},Pl.version="19.1.0",Pl}var Sp;function rS(){if(Sp)return yo.exports;Sp=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(l){console.error(l)}}return r(),yo.exports=sS(),yo.exports}var oS=rS();const cS=Ho(oS);var Il={},xp;function fS(){if(xp)return Il;xp=1,Object.defineProperty(Il,"__esModule",{value:!0}),Il.parse=d,Il.serialize=h;const r=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,l=/^[\u0021-\u003A\u003C-\u007E]*$/,i=/^([.]?[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]*$/,c=Object.prototype.toString,f=(()=>{const b=function(){};return b.prototype=Object.create(null),b})();function d(b,A){const R=new f,k=b.length;if(k<2)return R;const M=(A==null?void 0:A.decode)||y;let H=0;do{const G=b.indexOf("=",H);if(G===-1)break;const $=b.indexOf(";",H),F=$===-1?k:$;if(G>F){H=b.lastIndexOf(";",G-1)+1;continue}const X=g(b,H,G),se=p(b,G,X),W=b.slice(X,se);if(R[W]===void 0){let K=g(b,G+1,F),J=p(b,F,K);const re=M(b.slice(K,J));R[W]=re}H=F+1}while(H<k);return R}function g(b,A,R){do{const k=b.charCodeAt(A);if(k!==32&&k!==9)return A}while(++A<R);return R}function p(b,A,R){for(;A>R;){const k=b.charCodeAt(--A);if(k!==32&&k!==9)return A+1}return R}function h(b,A,R){const k=(R==null?void 0:R.encode)||encodeURIComponent;if(!r.test(b))throw new TypeError(`argument name is invalid: ${b}`);const M=k(A);if(!l.test(M))throw new TypeError(`argument val is invalid: ${A}`);let H=b+"="+M;if(!R)return H;if(R.maxAge!==void 0){if(!Number.isInteger(R.maxAge))throw new TypeError(`option maxAge is invalid: ${R.maxAge}`);H+="; Max-Age="+R.maxAge}if(R.domain){if(!i.test(R.domain))throw new TypeError(`option domain is invalid: ${R.domain}`);H+="; Domain="+R.domain}if(R.path){if(!s.test(R.path))throw new TypeError(`option path is invalid: ${R.path}`);H+="; Path="+R.path}if(R.expires){if(!S(R.expires)||!Number.isFinite(R.expires.valueOf()))throw new TypeError(`option expires is invalid: ${R.expires}`);H+="; Expires="+R.expires.toUTCString()}if(R.httpOnly&&(H+="; HttpOnly"),R.secure&&(H+="; Secure"),R.partitioned&&(H+="; Partitioned"),R.priority)switch(typeof R.priority=="string"?R.priority.toLowerCase():void 0){case"low":H+="; Priority=Low";break;case"medium":H+="; Priority=Medium";break;case"high":H+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${R.priority}`)}if(R.sameSite)switch(typeof R.sameSite=="string"?R.sameSite.toLowerCase():R.sameSite){case!0:case"strict":H+="; SameSite=Strict";break;case"lax":H+="; SameSite=Lax";break;case"none":H+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${R.sameSite}`)}return H}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 Il}fS();var Ep="popstate";function dS(r={}){function l(c,f){let{pathname:d="/",search:g="",hash:p=""}=ia(c.location.hash.substring(1));return!d.startsWith("/")&&!d.startsWith(".")&&(d="/"+d),Mo("",{pathname:d,search:g,hash:p},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function i(c,f){let d=c.document.querySelector("base"),g="";if(d&&d.getAttribute("href")){let p=c.location.href,h=p.indexOf("#");g=h===-1?p:p.slice(0,h)}return g+"#"+(typeof f=="string"?f:si(f))}function s(c,f){Mt(c.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(f)})`)}return pS(l,i,s,r)}function je(r,l){if(r===!1||r===null||typeof r>"u")throw new Error(l)}function Mt(r,l){if(!r){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function hS(){return Math.random().toString(36).substring(2,10)}function Tp(r,l){return{usr:r.state,key:r.key,idx:l}}function Mo(r,l,i=null,s){return{pathname:typeof r=="string"?r:r.pathname,search:"",hash:"",...typeof l=="string"?ia(l):l,state:i,key:l&&l.key||s||hS()}}function si({pathname:r="/",search:l="",hash:i=""}){return l&&l!=="?"&&(r+=l.charAt(0)==="?"?l:"?"+l),i&&i!=="#"&&(r+=i.charAt(0)==="#"?i:"#"+i),r}function ia(r){let l={};if(r){let i=r.indexOf("#");i>=0&&(l.hash=r.substring(i),r=r.substring(0,i));let s=r.indexOf("?");s>=0&&(l.search=r.substring(s),r=r.substring(0,s)),r&&(l.pathname=r)}return l}function pS(r,l,i,s={}){let{window:c=document.defaultView,v5Compat:f=!1}=s,d=c.history,g="POP",p=null,h=y();h==null&&(h=0,d.replaceState({...d.state,idx:h},""));function y(){return(d.state||{idx:null}).idx}function S(){g="POP";let M=y(),H=M==null?null:M-h;h=M,p&&p({action:g,location:k.location,delta:H})}function b(M,H){g="PUSH";let G=Mo(k.location,M,H);i&&i(G,M),h=y()+1;let $=Tp(G,h),F=k.createHref(G);try{d.pushState($,"",F)}catch(X){if(X instanceof DOMException&&X.name==="DataCloneError")throw X;c.location.assign(F)}f&&p&&p({action:g,location:k.location,delta:1})}function A(M,H){g="REPLACE";let G=Mo(k.location,M,H);i&&i(G,M),h=y();let $=Tp(G,h),F=k.createHref(G);d.replaceState($,"",F),f&&p&&p({action:g,location:k.location,delta:0})}function R(M){let H=c.location.origin!=="null"?c.location.origin:c.location.href,G=typeof M=="string"?M:si(M);return G=G.replace(/ $/,"%20"),je(H,`No window.location.(origin|href) available to create URL for href: ${G}`),new URL(G,H)}let k={get action(){return g},get location(){return r(c,d)},listen(M){if(p)throw new Error("A history only accepts one active listener");return c.addEventListener(Ep,S),p=M,()=>{c.removeEventListener(Ep,S),p=null}},createHref(M){return l(c,M)},createURL:R,encodeLocation(M){let H=R(M);return{pathname:H.pathname,search:H.search,hash:H.hash}},push:b,replace:A,go(M){return d.go(M)}};return k}function Jp(r,l,i="/"){return gS(r,l,i,!1)}function gS(r,l,i,s){let c=typeof l=="string"?ia(l):l,f=fn(c.pathname||"/",i);if(f==null)return null;let d=Fp(r);mS(d);let g=null;for(let p=0;g==null&&p<d.length;++p){let h=AS(f);g=wS(d[p],h,s)}return g}function Fp(r,l=[],i=[],s=""){let c=(f,d,g)=>{let p={relativePath:g===void 0?f.path||"":g,caseSensitive:f.caseSensitive===!0,childrenIndex:d,route:f};p.relativePath.startsWith("/")&&(je(p.relativePath.startsWith(s),`Absolute route path "${p.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(s.length));let h=cn([s,p.relativePath]),y=i.concat(p);f.children&&f.children.length>0&&(je(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),Fp(f.children,l,y,h)),!(f.path==null&&!f.index)&&l.push({path:h,score:TS(h,f.index),routesMeta:y})};return r.forEach((f,d)=>{var g;if(f.path===""||!((g=f.path)!=null&&g.includes("?")))c(f,d);else for(let p of Wp(f.path))c(f,d,p)}),l}function Wp(r){let l=r.split("/");if(l.length===0)return[];let[i,...s]=l,c=i.endsWith("?"),f=i.replace(/\?$/,"");if(s.length===0)return c?[f,""]:[f];let d=Wp(s.join("/")),g=[];return g.push(...d.map(p=>p===""?f:[f,p].join("/"))),c&&g.push(...d),g.map(p=>r.startsWith("/")&&p===""?"/":p)}function mS(r){r.sort((l,i)=>l.score!==i.score?i.score-l.score:RS(l.routesMeta.map(s=>s.childrenIndex),i.routesMeta.map(s=>s.childrenIndex)))}var yS=/^:[\w-]+$/,vS=3,bS=2,SS=1,xS=10,ES=-2,Rp=r=>r==="*";function TS(r,l){let i=r.split("/"),s=i.length;return i.some(Rp)&&(s+=ES),l&&(s+=bS),i.filter(c=>!Rp(c)).reduce((c,f)=>c+(yS.test(f)?vS:f===""?SS:xS),s)}function RS(r,l){return r.length===l.length&&r.slice(0,-1).every((s,c)=>s===l[c])?r[r.length-1]-l[l.length-1]:0}function wS(r,l,i=!1){let{routesMeta:s}=r,c={},f="/",d=[];for(let g=0;g<s.length;++g){let p=s[g],h=g===s.length-1,y=f==="/"?l:l.slice(f.length)||"/",S=Gu({path:p.relativePath,caseSensitive:p.caseSensitive,end:h},y),b=p.route;if(!S&&h&&i&&!s[s.length-1].route.index&&(S=Gu({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},y)),!S)return null;Object.assign(c,S.params),d.push({params:c,pathname:cn([f,S.pathname]),pathnameBase:kS(cn([f,S.pathnameBase])),route:b}),S.pathnameBase!=="/"&&(f=cn([f,S.pathnameBase]))}return d}function Gu(r,l){typeof r=="string"&&(r={path:r,caseSensitive:!1,end:!0});let[i,s]=NS(r.path,r.caseSensitive,r.end),c=l.match(i);if(!c)return null;let f=c[0],d=f.replace(/(.)\/+$/,"$1"),g=c.slice(1);return{params:s.reduce((h,{paramName:y,isOptional:S},b)=>{if(y==="*"){let R=g[b]||"";d=f.slice(0,f.length-R.length).replace(/(.)\/+$/,"$1")}const A=g[b];return S&&!A?h[y]=void 0:h[y]=(A||"").replace(/%2F/g,"/"),h},{}),pathname:f,pathnameBase:d,pattern:r}}function NS(r,l=!1,i=!0){Mt(r==="*"||!r.endsWith("*")||r.endsWith("/*"),`Route path "${r}" will be treated as if it were "${r.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${r.replace(/\*$/,"/*")}".`);let s=[],c="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,g,p)=>(s.push({paramName:g,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return r.endsWith("*")?(s.push({paramName:"*"}),c+=r==="*"||r==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?c+="\\/*$":r!==""&&r!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,l?void 0:"i"),s]}function AS(r){try{return r.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return Mt(!1,`The URL path "${r}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),r}}function fn(r,l){if(l==="/")return r;if(!r.toLowerCase().startsWith(l.toLowerCase()))return null;let i=l.endsWith("/")?l.length-1:l.length,s=r.charAt(i);return s&&s!=="/"?null:r.slice(i)||"/"}function OS(r,l="/"){let{pathname:i,search:s="",hash:c=""}=typeof r=="string"?ia(r):r;return{pathname:i?i.startsWith("/")?i:CS(i,l):l,search:DS(s),hash:jS(c)}}function CS(r,l){let i=l.replace(/\/+$/,"").split("/");return r.split("/").forEach(c=>{c===".."?i.length>1&&i.pop():c!=="."&&i.push(c)}),i.length>1?i.join("/"):"/"}function xo(r,l,i,s){return`Cannot include a '${r}' character in a manually specified \`to.${l}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function zS(r){return r.filter((l,i)=>i===0||l.route.path&&l.route.path.length>0)}function Bo(r){let l=zS(r);return l.map((i,s)=>s===l.length-1?i.pathname:i.pathnameBase)}function qo(r,l,i,s=!1){let c;typeof r=="string"?c=ia(r):(c={...r},je(!c.pathname||!c.pathname.includes("?"),xo("?","pathname","search",c)),je(!c.pathname||!c.pathname.includes("#"),xo("#","pathname","hash",c)),je(!c.search||!c.search.includes("#"),xo("#","search","hash",c)));let f=r===""||c.pathname==="",d=f?"/":c.pathname,g;if(d==null)g=i;else{let S=l.length-1;if(!s&&d.startsWith("..")){let b=d.split("/");for(;b[0]==="..";)b.shift(),S-=1;c.pathname=b.join("/")}g=S>=0?l[S]:"/"}let p=OS(c,g),h=d&&d!=="/"&&d.endsWith("/"),y=(f||d===".")&&i.endsWith("/");return!p.pathname.endsWith("/")&&(h||y)&&(p.pathname+="/"),p}var cn=r=>r.join("/").replace(/\/\/+/g,"/"),kS=r=>r.replace(/\/+$/,"").replace(/^\/*/,"/"),DS=r=>!r||r==="?"?"":r.startsWith("?")?r:"?"+r,jS=r=>!r||r==="#"?"":r.startsWith("#")?r:"#"+r;function MS(r){return r!=null&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.internal=="boolean"&&"data"in r}var Pp=["POST","PUT","PATCH","DELETE"];new Set(Pp);var _S=["GET",...Pp];new Set(_S);var Fa=O.createContext(null);Fa.displayName="DataRouter";var Zu=O.createContext(null);Zu.displayName="DataRouterState";var Ip=O.createContext({isTransitioning:!1});Ip.displayName="ViewTransition";var LS=O.createContext(new Map);LS.displayName="Fetchers";var US=O.createContext(null);US.displayName="Await";var Ht=O.createContext(null);Ht.displayName="Navigation";var ci=O.createContext(null);ci.displayName="Location";var Bt=O.createContext({outlet:null,matches:[],isDataRoute:!1});Bt.displayName="Route";var Go=O.createContext(null);Go.displayName="RouteError";function HS(r,{relative:l}={}){je(Wa(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:s}=O.useContext(Ht),{hash:c,pathname:f,search:d}=fi(r,{relative:l}),g=f;return i!=="/"&&(g=f==="/"?i:cn([i,f])),s.createHref({pathname:g,search:d,hash:c})}function Wa(){return O.useContext(ci)!=null}function Hn(){return je(Wa(),"useLocation() may be used only in the context of a <Router> component."),O.useContext(ci).location}var eg="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function tg(r){O.useContext(Ht).static||O.useLayoutEffect(r)}function Pa(){let{isDataRoute:r}=O.useContext(Bt);return r?PS():BS()}function BS(){je(Wa(),"useNavigate() may be used only in the context of a <Router> component.");let r=O.useContext(Fa),{basename:l,navigator:i}=O.useContext(Ht),{matches:s}=O.useContext(Bt),{pathname:c}=Hn(),f=JSON.stringify(Bo(s)),d=O.useRef(!1);return tg(()=>{d.current=!0}),O.useCallback((p,h={})=>{if(Mt(d.current,eg),!d.current)return;if(typeof p=="number"){i.go(p);return}let y=qo(p,JSON.parse(f),c,h.relative==="path");r==null&&l!=="/"&&(y.pathname=y.pathname==="/"?l:cn([l,y.pathname])),(h.replace?i.replace:i.push)(y,h.state,h)},[l,i,f,c,r])}O.createContext(null);function qS(){let{matches:r}=O.useContext(Bt),l=r[r.length-1];return l?l.params:{}}function fi(r,{relative:l}={}){let{matches:i}=O.useContext(Bt),{pathname:s}=Hn(),c=JSON.stringify(Bo(i));return O.useMemo(()=>qo(r,JSON.parse(c),s,l==="path"),[r,c,s,l])}function GS(r,l){return ng(r,l)}function ng(r,l,i,s){var G;je(Wa(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c,static:f}=O.useContext(Ht),{matches:d}=O.useContext(Bt),g=d[d.length-1],p=g?g.params:{},h=g?g.pathname:"/",y=g?g.pathnameBase:"/",S=g&&g.route;{let $=S&&S.path||"";ag(h,!S||$.endsWith("*")||$.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${$}">) 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.
|
|
175
173
|
|
|
176
|
-
Please change the parent <Route path="${$}"> to <Route path="${$==="/"?"*":`${$}/*`}">.`)}let b=Hn(),A;if(l){let $=typeof l=="string"?ia(l):l;je(y==="/"||((G=$.pathname)==null?void 0:G.startsWith(y)),`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 "${y}" but pathname "${$.pathname}" was given in the \`location\` prop.`),A=$}else A=b;let R=A.pathname||"/",k=R;if(y!=="/"){let $=y.replace(/^\//,"").split("/");k="/"+R.replace(/^\//,"").split("/").slice($.length).join("/")}let M=!f&&i&&i.matches&&i.matches.length>0?i.matches:Jp(r,{pathname:k});Mt(S||M!=null,`No routes matched location "${A.pathname}${A.search}${A.hash}" `),Mt(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 "${A.pathname}${A.search}${A.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 H=XS(M&&M.map($=>Object.assign({},$,{params:Object.assign({},p,$.params),pathname:cn([y,c.encodeLocation?c.encodeLocation($.pathname).pathname:$.pathname]),pathnameBase:$.pathnameBase==="/"?y:cn([y,c.encodeLocation?c.encodeLocation($.pathnameBase).pathname:$.pathnameBase])})),d,i,u);return l&&H?O.createElement(ci.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...A},navigationType:"POP"}},H):H}function $S(){let r=WS(),l=MS(r)?`${r.status} ${r.statusText}`:r instanceof Error?r.message:JSON.stringify(r),i=r instanceof Error?r.stack:null,u="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:u},f={padding:"2px 4px",backgroundColor:u},d=null;return console.error("Error handled by React Router default ErrorBoundary:",r),d=O.createElement(O.Fragment,null,O.createElement("p",null,"💿 Hey developer 👋"),O.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",O.createElement("code",{style:f},"ErrorBoundary")," or"," ",O.createElement("code",{style:f},"errorElement")," prop on your route.")),O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},l),i?O.createElement("pre",{style:c},i):null,d)}var VS=O.createElement($S,null),YS=class extends O.Component{constructor(r){super(r),this.state={location:r.location,revalidation:r.revalidation,error:r.error}}static getDerivedStateFromError(r){return{error:r}}static getDerivedStateFromProps(r,l){return l.location!==r.location||l.revalidation!=="idle"&&r.revalidation==="idle"?{error:r.error,location:r.location,revalidation:r.revalidation}:{error:r.error!==void 0?r.error:l.error,location:l.location,revalidation:r.revalidation||l.revalidation}}componentDidCatch(r,l){console.error("React Router caught the following error during render",r,l)}render(){return this.state.error!==void 0?O.createElement(Bt.Provider,{value:this.props.routeContext},O.createElement(Go.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function QS({routeContext:r,match:l,children:i}){let u=O.useContext(Fa);return u&&u.static&&u.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=l.route.id),O.createElement(Bt.Provider,{value:r},i)}function XS(r,l=[],i=null,u=null){if(r==null){if(!i)return null;if(i.errors)r=i.matches;else if(l.length===0&&!i.initialized&&i.matches.length>0)r=i.matches;else return null}let c=r,f=i==null?void 0:i.errors;if(f!=null){let p=c.findIndex(h=>h.route.id&&(f==null?void 0:f[h.route.id])!==void 0);je(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),c=c.slice(0,Math.min(c.length,p+1))}let d=!1,g=-1;if(i)for(let p=0;p<c.length;p++){let h=c[p];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(g=p),h.route.id){let{loaderData:y,errors:S}=i,b=h.route.loader&&!y.hasOwnProperty(h.route.id)&&(!S||S[h.route.id]===void 0);if(h.route.lazy||b){d=!0,g>=0?c=c.slice(0,g+1):c=[c[0]];break}}}return c.reduceRight((p,h,y)=>{let S,b=!1,A=null,R=null;i&&(S=f&&h.route.id?f[h.route.id]:void 0,A=h.route.errorElement||VS,d&&(g<0&&y===0?(ag("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,R=null):g===y&&(b=!0,R=h.route.hydrateFallbackElement||null)));let k=l.concat(c.slice(0,y+1)),M=()=>{let H;return S?H=A:b?H=R:h.route.Component?H=O.createElement(h.route.Component,null):h.route.element?H=h.route.element:H=p,O.createElement(QS,{match:h,routeContext:{outlet:p,matches:k,isDataRoute:i!=null},children:H})};return i&&(h.route.ErrorBoundary||h.route.errorElement||y===0)?O.createElement(YS,{location:i.location,revalidation:i.revalidation,component:A,error:S,children:M(),routeContext:{outlet:null,matches:k,isDataRoute:!0}}):M()},null)}function $o(r){return`${r} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ZS(r){let l=O.useContext(Fa);return je(l,$o(r)),l}function KS(r){let l=O.useContext(Zs);return je(l,$o(r)),l}function JS(r){let l=O.useContext(Bt);return je(l,$o(r)),l}function Vo(r){let l=JS(r),i=l.matches[l.matches.length-1];return je(i.route.id,`${r} can only be used on routes that contain a unique "id"`),i.route.id}function FS(){return Vo("useRouteId")}function WS(){var u;let r=O.useContext(Go),l=KS("useRouteError"),i=Vo("useRouteError");return r!==void 0?r:(u=l.errors)==null?void 0:u[i]}function PS(){let{router:r}=ZS("useNavigate"),l=Vo("useNavigate"),i=O.useRef(!1);return tg(()=>{i.current=!0}),O.useCallback(async(c,f={})=>{Mt(i.current,eg),i.current&&(typeof c=="number"?r.navigate(c):await r.navigate(c,{fromRouteId:l,...f}))},[r,l])}var wp={};function ag(r,l,i){!l&&!wp[r]&&(wp[r]=!0,Mt(!1,i))}O.memo(IS);function IS({routes:r,future:l,state:i}){return ng(r,void 0,i,l)}function e1({to:r,replace:l,state:i,relative:u}){je(Wa(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=O.useContext(Ht);Mt(!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}=O.useContext(Bt),{pathname:d}=Hn(),g=Pa(),p=qo(r,Bo(f),d,u==="path"),h=JSON.stringify(p);return O.useEffect(()=>{g(JSON.parse(h),{replace:l,state:i,relative:u})},[g,h,u,l,i]),null}function js(r){je(!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 t1({basename:r="/",children:l=null,location:i,navigationType:u="POP",navigator:c,static:f=!1}){je(!Wa(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=r.replace(/^\/*/,"/"),g=O.useMemo(()=>({basename:d,navigator:c,static:f,future:{}}),[d,c,f]);typeof i=="string"&&(i=ia(i));let{pathname:p="/",search:h="",hash:y="",state:S=null,key:b="default"}=i,A=O.useMemo(()=>{let R=fn(p,d);return R==null?null:{location:{pathname:R,search:h,hash:y,state:S,key:b},navigationType:u}},[d,p,h,y,S,b,u]);return Mt(A!=null,`<Router basename="${d}"> is not able to match the URL "${p}${h}${y}" because it does not start with the basename, so the <Router> won't render anything.`),A==null?null:O.createElement(Ht.Provider,{value:g},O.createElement(ci.Provider,{children:l,value:A}))}function n1({children:r,location:l}){return GS(_o(r),l)}function _o(r,l=[]){let i=[];return O.Children.forEach(r,(u,c)=>{if(!O.isValidElement(u))return;let f=[...l,c];if(u.type===O.Fragment){i.push.apply(i,_o(u.props.children,f));return}je(u.type===js,`[${typeof u.type=="string"?u.type:u.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),je(!u.props.index||!u.props.children,"An index route cannot have child routes.");let d={id:u.props.id||f.join("-"),caseSensitive:u.props.caseSensitive,element:u.props.element,Component:u.props.Component,index:u.props.index,path:u.props.path,loader:u.props.loader,action:u.props.action,hydrateFallbackElement:u.props.hydrateFallbackElement,HydrateFallback:u.props.HydrateFallback,errorElement:u.props.errorElement,ErrorBoundary:u.props.ErrorBoundary,hasErrorBoundary:u.props.hasErrorBoundary===!0||u.props.ErrorBoundary!=null||u.props.errorElement!=null,shouldRevalidate:u.props.shouldRevalidate,handle:u.props.handle,lazy:u.props.lazy};u.props.children&&(d.children=_o(u.props.children,f)),i.push(d)}),i}var Ms="get",_s="application/x-www-form-urlencoded";function Ks(r){return r!=null&&typeof r.tagName=="string"}function a1(r){return Ks(r)&&r.tagName.toLowerCase()==="button"}function l1(r){return Ks(r)&&r.tagName.toLowerCase()==="form"}function i1(r){return Ks(r)&&r.tagName.toLowerCase()==="input"}function s1(r){return!!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)}function u1(r,l){return r.button===0&&(!l||l==="_self")&&!s1(r)}var zs=null;function r1(){if(zs===null)try{new FormData(document.createElement("form"),0),zs=!1}catch{zs=!0}return zs}var o1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Eo(r){return r!=null&&!o1.has(r)?(Mt(!1,`"${r}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${_s}"`),null):r}function c1(r,l){let i,u,c,f,d;if(l1(r)){let g=r.getAttribute("action");u=g?fn(g,l):null,i=r.getAttribute("method")||Ms,c=Eo(r.getAttribute("enctype"))||_s,f=new FormData(r)}else if(a1(r)||i1(r)&&(r.type==="submit"||r.type==="image")){let g=r.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=r.getAttribute("formaction")||g.getAttribute("action");if(u=p?fn(p,l):null,i=r.getAttribute("formmethod")||g.getAttribute("method")||Ms,c=Eo(r.getAttribute("formenctype"))||Eo(g.getAttribute("enctype"))||_s,f=new FormData(g,r),!r1()){let{name:h,type:y,value:S}=r;if(y==="image"){let b=h?`${h}.`:"";f.append(`${b}x`,"0"),f.append(`${b}y`,"0")}else h&&f.append(h,S)}}else{if(Ks(r))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=Ms,u=null,c=_s,d=r}return f&&c==="text/plain"&&(d=f,f=void 0),{action:u,method:i.toLowerCase(),encType:c,formData:f,body:d}}function Yo(r,l){if(r===!1||r===null||typeof r>"u")throw new Error(l)}async function f1(r,l){if(r.id in l)return l[r.id];try{let i=await import(r.module);return l[r.id]=i,i}catch(i){return console.error(`Error loading route module \`${r.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function d1(r){return r==null?!1:r.href==null?r.rel==="preload"&&typeof r.imageSrcSet=="string"&&typeof r.imageSizes=="string":typeof r.rel=="string"&&typeof r.href=="string"}async function h1(r,l,i){let u=await Promise.all(r.map(async c=>{let f=l.routes[c.route.id];if(f){let d=await f1(f,i);return d.links?d.links():[]}return[]}));return y1(u.flat(1).filter(d1).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function Np(r,l,i,u,c,f){let d=(p,h)=>i[h]?p.route.id!==i[h].route.id:!0,g=(p,h)=>{var y;return i[h].pathname!==p.pathname||((y=i[h].route.path)==null?void 0:y.endsWith("*"))&&i[h].params["*"]!==p.params["*"]};return f==="assets"?l.filter((p,h)=>d(p,h)||g(p,h)):f==="data"?l.filter((p,h)=>{var S;let y=u.routes[p.route.id];if(!y||!y.hasLoader)return!1;if(d(p,h)||g(p,h))return!0;if(p.route.shouldRevalidate){let b=p.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:((S=i[0])==null?void 0:S.params)||{},nextUrl:new URL(r,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function p1(r,l,{includeHydrateFallback:i}={}){return g1(r.map(u=>{let c=l.routes[u.route.id];if(!c)return[];let f=[c.module];return c.clientActionModule&&(f=f.concat(c.clientActionModule)),c.clientLoaderModule&&(f=f.concat(c.clientLoaderModule)),i&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function g1(r){return[...new Set(r)]}function m1(r){let l={},i=Object.keys(r).sort();for(let u of i)l[u]=r[u];return l}function y1(r,l){let i=new Set;return new Set(l),r.reduce((u,c)=>{let f=JSON.stringify(m1(c));return i.has(f)||(i.add(f),u.push({key:f,link:c})),u},[])}var v1=new Set([100,101,204,205]);function b1(r,l){let i=typeof r=="string"?new URL(r,typeof window>"u"?"server://singlefetch/":window.location.origin):r;return i.pathname==="/"?i.pathname="_root.data":l&&fn(i.pathname,l)==="/"?i.pathname=`${l.replace(/\/$/,"")}/_root.data`:i.pathname=`${i.pathname.replace(/\/$/,"")}.data`,i}function lg(){let r=O.useContext(Fa);return Yo(r,"You must render this element inside a <DataRouterContext.Provider> element"),r}function S1(){let r=O.useContext(Zs);return Yo(r,"You must render this element inside a <DataRouterStateContext.Provider> element"),r}var Qo=O.createContext(void 0);Qo.displayName="FrameworkContext";function ig(){let r=O.useContext(Qo);return Yo(r,"You must render this element inside a <HydratedRouter> element"),r}function x1(r,l){let i=O.useContext(Qo),[u,c]=O.useState(!1),[f,d]=O.useState(!1),{onFocus:g,onBlur:p,onMouseEnter:h,onMouseLeave:y,onTouchStart:S}=l,b=O.useRef(null);O.useEffect(()=>{if(r==="render"&&d(!0),r==="viewport"){let k=H=>{H.forEach(G=>{d(G.isIntersecting)})},M=new IntersectionObserver(k,{threshold:.5});return b.current&&M.observe(b.current),()=>{M.disconnect()}}},[r]),O.useEffect(()=>{if(u){let k=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(k)}}},[u]);let A=()=>{c(!0)},R=()=>{c(!1),d(!1)};return i?r!=="intent"?[f,b,{}]:[f,b,{onFocus:ei(g,A),onBlur:ei(p,R),onMouseEnter:ei(h,A),onMouseLeave:ei(y,R),onTouchStart:ei(S,A)}]:[!1,b,{}]}function ei(r,l){return i=>{r&&r(i),i.defaultPrevented||l(i)}}function E1({page:r,...l}){let{router:i}=lg(),u=O.useMemo(()=>Jp(i.routes,r,i.basename),[i.routes,r,i.basename]);return u?O.createElement(R1,{page:r,matches:u,...l}):null}function T1(r){let{manifest:l,routeModules:i}=ig(),[u,c]=O.useState([]);return O.useEffect(()=>{let f=!1;return h1(r,l,i).then(d=>{f||c(d)}),()=>{f=!0}},[r,l,i]),u}function R1({page:r,matches:l,...i}){let u=Hn(),{manifest:c,routeModules:f}=ig(),{basename:d}=lg(),{loaderData:g,matches:p}=S1(),h=O.useMemo(()=>Np(r,l,p,c,u,"data"),[r,l,p,c,u]),y=O.useMemo(()=>Np(r,l,p,c,u,"assets"),[r,l,p,c,u]),S=O.useMemo(()=>{if(r===u.pathname+u.search+u.hash)return[];let R=new Set,k=!1;if(l.forEach(H=>{var $;let G=c.routes[H.route.id];!G||!G.hasLoader||(!h.some(F=>F.route.id===H.route.id)&&H.route.id in g&&(($=f[H.route.id])!=null&&$.shouldRevalidate)||G.hasClientLoader?k=!0:R.add(H.route.id))}),R.size===0)return[];let M=b1(r,d);return k&&R.size>0&&M.searchParams.set("_routes",l.filter(H=>R.has(H.route.id)).map(H=>H.route.id).join(",")),[M.pathname+M.search]},[d,g,u,c,h,l,r,f]),b=O.useMemo(()=>p1(y,c),[y,c]),A=T1(y);return O.createElement(O.Fragment,null,S.map(R=>O.createElement("link",{key:R,rel:"prefetch",as:"fetch",href:R,...i})),b.map(R=>O.createElement("link",{key:R,rel:"modulepreload",href:R,...i})),A.map(({key:R,link:k})=>O.createElement("link",{key:R,...k})))}function w1(...r){return l=>{r.forEach(i=>{typeof i=="function"?i(l):i!=null&&(i.current=l)})}}var sg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{sg&&(window.__reactRouterVersion="7.5.3")}catch{}function N1({basename:r,children:l,window:i}){let u=O.useRef();u.current==null&&(u.current=dS({window:i,v5Compat:!0}));let c=u.current,[f,d]=O.useState({action:c.action,location:c.location}),g=O.useCallback(p=>{O.startTransition(()=>d(p))},[d]);return O.useLayoutEffect(()=>c.listen(g),[c,g]),O.createElement(t1,{basename:r,children:l,location:f.location,navigationType:f.action,navigator:c})}var ug=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rg=O.forwardRef(function({onClick:l,discover:i="render",prefetch:u="none",relative:c,reloadDocument:f,replace:d,state:g,target:p,to:h,preventScrollReset:y,viewTransition:S,...b},A){let{basename:R}=O.useContext(Ht),k=typeof h=="string"&&ug.test(h),M,H=!1;if(typeof h=="string"&&k&&(M=h,sg))try{let J=new URL(window.location.href),re=h.startsWith("//")?new URL(J.protocol+h):new URL(h),le=fn(re.pathname,R);re.origin===J.origin&&le!=null?h=le+re.search+re.hash:H=!0}catch{Mt(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let G=HS(h,{relative:c}),[$,F,X]=x1(u,b),ue=z1(h,{replace:d,state:g,target:p,preventScrollReset:y,relative:c,viewTransition:S});function W(J){l&&l(J),J.defaultPrevented||ue(J)}let K=O.createElement("a",{...b,...X,href:M||G,onClick:H||f?l:W,ref:w1(A,F),target:p,"data-discover":!k&&i==="render"?"true":void 0});return $&&!k?O.createElement(O.Fragment,null,K,O.createElement(E1,{page:G})):K});rg.displayName="Link";var A1=O.forwardRef(function({"aria-current":l="page",caseSensitive:i=!1,className:u="",end:c=!1,style:f,to:d,viewTransition:g,children:p,...h},y){let S=fi(d,{relative:h.relative}),b=Hn(),A=O.useContext(Zs),{navigator:R,basename:k}=O.useContext(Ht),M=A!=null&&_1(S)&&g===!0,H=R.encodeLocation?R.encodeLocation(S).pathname:S.pathname,G=b.pathname,$=A&&A.navigation&&A.navigation.location?A.navigation.location.pathname:null;i||(G=G.toLowerCase(),$=$?$.toLowerCase():null,H=H.toLowerCase()),$&&k&&($=fn($,k)||$);const F=H!=="/"&&H.endsWith("/")?H.length-1:H.length;let X=G===H||!c&&G.startsWith(H)&&G.charAt(F)==="/",ue=$!=null&&($===H||!c&&$.startsWith(H)&&$.charAt(H.length)==="/"),W={isActive:X,isPending:ue,isTransitioning:M},K=X?l:void 0,J;typeof u=="function"?J=u(W):J=[u,X?"active":null,ue?"pending":null,M?"transitioning":null].filter(Boolean).join(" ");let re=typeof f=="function"?f(W):f;return O.createElement(rg,{...h,"aria-current":K,className:J,ref:y,style:re,to:d,viewTransition:g},typeof p=="function"?p(W):p)});A1.displayName="NavLink";var O1=O.forwardRef(({discover:r="render",fetcherKey:l,navigate:i,reloadDocument:u,replace:c,state:f,method:d=Ms,action:g,onSubmit:p,relative:h,preventScrollReset:y,viewTransition:S,...b},A)=>{let R=j1(),k=M1(g,{relative:h}),M=d.toLowerCase()==="get"?"get":"post",H=typeof g=="string"&&ug.test(g),G=$=>{if(p&&p($),$.defaultPrevented)return;$.preventDefault();let F=$.nativeEvent.submitter,X=(F==null?void 0:F.getAttribute("formmethod"))||d;R(F||$.currentTarget,{fetcherKey:l,method:X,navigate:i,replace:c,state:f,relative:h,preventScrollReset:y,viewTransition:S})};return O.createElement("form",{ref:A,method:M,action:k,onSubmit:u?p:G,...b,"data-discover":!H&&r==="render"?"true":void 0})});O1.displayName="Form";function C1(r){return`${r} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function og(r){let l=O.useContext(Fa);return je(l,C1(r)),l}function z1(r,{target:l,replace:i,state:u,preventScrollReset:c,relative:f,viewTransition:d}={}){let g=Pa(),p=Hn(),h=fi(r,{relative:f});return O.useCallback(y=>{if(u1(y,l)){y.preventDefault();let S=i!==void 0?i:ui(p)===ui(h);g(r,{replace:S,state:u,preventScrollReset:c,relative:f,viewTransition:d})}},[p,g,h,i,u,l,r,c,f,d])}var k1=0,D1=()=>`__${String(++k1)}__`;function j1(){let{router:r}=og("useSubmit"),{basename:l}=O.useContext(Ht),i=FS();return O.useCallback(async(u,c={})=>{let{action:f,method:d,encType:g,formData:p,body:h}=c1(u,l);if(c.navigate===!1){let y=c.fetcherKey||D1();await r.fetch(y,i,c.action||f,{preventScrollReset:c.preventScrollReset,formData:p,body:h,formMethod:c.method||d,formEncType:c.encType||g,flushSync:c.flushSync})}else await r.navigate(c.action||f,{preventScrollReset:c.preventScrollReset,formData:p,body:h,formMethod:c.method||d,formEncType:c.encType||g,replace:c.replace,state:c.state,fromRouteId:i,flushSync:c.flushSync,viewTransition:c.viewTransition})},[r,l,i])}function M1(r,{relative:l}={}){let{basename:i}=O.useContext(Ht),u=O.useContext(Bt);je(u,"useFormAction must be used inside a RouteContext");let[c]=u.matches.slice(-1),f={...fi(r||".",{relative:l})},d=Hn();if(r==null){f.search=d.search;let g=new URLSearchParams(f.search),p=g.getAll("index");if(p.some(y=>y==="")){g.delete("index"),p.filter(S=>S).forEach(S=>g.append("index",S));let y=g.toString();f.search=y?`?${y}`:""}}return(!r||r===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(f.pathname=f.pathname==="/"?i:cn([i,f.pathname])),ui(f)}function _1(r,l={}){let i=O.useContext(Ip);je(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:u}=og("useViewTransitionState"),c=fi(r,{relative:l.relative});if(!i.isTransitioning)return!1;let f=fn(i.currentLocation.pathname,u)||i.currentLocation.pathname,d=fn(i.nextLocation.pathname,u)||i.nextLocation.pathname;return Gs(c.pathname,d)!=null||Gs(c.pathname,f)!=null}new TextEncoder;[...v1];function L1(r){return r.varName?` for '${r.varName}'`:""}function U1(r,l={}){if(r==null||r===""&&!l.allowEmpty)throw new Error(`Missing string value${L1(l)}`);return typeof r=="string"?r:r.toString()}const H1=`${`//${document.location.host}`}/api/plugin/site-generator`;let cg;const[To]=document.getElementsByClassName("js-script-site-generator");To&&To instanceof HTMLScriptElement&&(cg=U1(To.dataset.googleRecaptchaKey,{varName:"data-google-recaptcha-key"}));const Ro=cg;async function Un(r){try{const l=await fetch(H1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});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 B1={},Ap=r=>{let l;const i=new Set,u=(y,S)=>{const b=typeof y=="function"?y(l):y;if(!Object.is(b,l)){const A=l;l=S??(typeof b!="object"||b===null)?b:Object.assign({},l,b),i.forEach(R=>R(l,A))}},c=()=>l,p={setState:u,getState:c,getInitialState:()=>h,subscribe:y=>(i.add(y),()=>i.delete(y)),destroy:()=>{(B1?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),i.clear()}},h=l=r(u,c,p);return p},q1=r=>r?Ap(r):Ap;var wo={exports:{}},No={},Ao={exports:{}},Oo={};/**
|
|
174
|
+
Please change the parent <Route path="${$}"> to <Route path="${$==="/"?"*":`${$}/*`}">.`)}let b=Hn(),A;if(l){let $=typeof l=="string"?ia(l):l;je(y==="/"||((G=$.pathname)==null?void 0:G.startsWith(y)),`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 "${y}" but pathname "${$.pathname}" was given in the \`location\` prop.`),A=$}else A=b;let R=A.pathname||"/",k=R;if(y!=="/"){let $=y.replace(/^\//,"").split("/");k="/"+R.replace(/^\//,"").split("/").slice($.length).join("/")}let M=!f&&i&&i.matches&&i.matches.length>0?i.matches:Jp(r,{pathname:k});Mt(S||M!=null,`No routes matched location "${A.pathname}${A.search}${A.hash}" `),Mt(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 "${A.pathname}${A.search}${A.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 H=XS(M&&M.map($=>Object.assign({},$,{params:Object.assign({},p,$.params),pathname:cn([y,c.encodeLocation?c.encodeLocation($.pathname).pathname:$.pathname]),pathnameBase:$.pathnameBase==="/"?y:cn([y,c.encodeLocation?c.encodeLocation($.pathnameBase).pathname:$.pathnameBase])})),d,i,s);return l&&H?O.createElement(ci.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...A},navigationType:"POP"}},H):H}function $S(){let r=WS(),l=MS(r)?`${r.status} ${r.statusText}`:r instanceof Error?r.message:JSON.stringify(r),i=r instanceof Error?r.stack:null,s="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:s},f={padding:"2px 4px",backgroundColor:s},d=null;return console.error("Error handled by React Router default ErrorBoundary:",r),d=O.createElement(O.Fragment,null,O.createElement("p",null,"💿 Hey developer 👋"),O.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",O.createElement("code",{style:f},"ErrorBoundary")," or"," ",O.createElement("code",{style:f},"errorElement")," prop on your route.")),O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},l),i?O.createElement("pre",{style:c},i):null,d)}var VS=O.createElement($S,null),YS=class extends O.Component{constructor(r){super(r),this.state={location:r.location,revalidation:r.revalidation,error:r.error}}static getDerivedStateFromError(r){return{error:r}}static getDerivedStateFromProps(r,l){return l.location!==r.location||l.revalidation!=="idle"&&r.revalidation==="idle"?{error:r.error,location:r.location,revalidation:r.revalidation}:{error:r.error!==void 0?r.error:l.error,location:l.location,revalidation:r.revalidation||l.revalidation}}componentDidCatch(r,l){console.error("React Router caught the following error during render",r,l)}render(){return this.state.error!==void 0?O.createElement(Bt.Provider,{value:this.props.routeContext},O.createElement(Go.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function QS({routeContext:r,match:l,children:i}){let s=O.useContext(Fa);return s&&s.static&&s.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=l.route.id),O.createElement(Bt.Provider,{value:r},i)}function XS(r,l=[],i=null,s=null){if(r==null){if(!i)return null;if(i.errors)r=i.matches;else if(l.length===0&&!i.initialized&&i.matches.length>0)r=i.matches;else return null}let c=r,f=i==null?void 0:i.errors;if(f!=null){let p=c.findIndex(h=>h.route.id&&(f==null?void 0:f[h.route.id])!==void 0);je(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),c=c.slice(0,Math.min(c.length,p+1))}let d=!1,g=-1;if(i)for(let p=0;p<c.length;p++){let h=c[p];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(g=p),h.route.id){let{loaderData:y,errors:S}=i,b=h.route.loader&&!y.hasOwnProperty(h.route.id)&&(!S||S[h.route.id]===void 0);if(h.route.lazy||b){d=!0,g>=0?c=c.slice(0,g+1):c=[c[0]];break}}}return c.reduceRight((p,h,y)=>{let S,b=!1,A=null,R=null;i&&(S=f&&h.route.id?f[h.route.id]:void 0,A=h.route.errorElement||VS,d&&(g<0&&y===0?(ag("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,R=null):g===y&&(b=!0,R=h.route.hydrateFallbackElement||null)));let k=l.concat(c.slice(0,y+1)),M=()=>{let H;return S?H=A:b?H=R:h.route.Component?H=O.createElement(h.route.Component,null):h.route.element?H=h.route.element:H=p,O.createElement(QS,{match:h,routeContext:{outlet:p,matches:k,isDataRoute:i!=null},children:H})};return i&&(h.route.ErrorBoundary||h.route.errorElement||y===0)?O.createElement(YS,{location:i.location,revalidation:i.revalidation,component:A,error:S,children:M(),routeContext:{outlet:null,matches:k,isDataRoute:!0}}):M()},null)}function $o(r){return`${r} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ZS(r){let l=O.useContext(Fa);return je(l,$o(r)),l}function KS(r){let l=O.useContext(Zu);return je(l,$o(r)),l}function JS(r){let l=O.useContext(Bt);return je(l,$o(r)),l}function Vo(r){let l=JS(r),i=l.matches[l.matches.length-1];return je(i.route.id,`${r} can only be used on routes that contain a unique "id"`),i.route.id}function FS(){return Vo("useRouteId")}function WS(){var s;let r=O.useContext(Go),l=KS("useRouteError"),i=Vo("useRouteError");return r!==void 0?r:(s=l.errors)==null?void 0:s[i]}function PS(){let{router:r}=ZS("useNavigate"),l=Vo("useNavigate"),i=O.useRef(!1);return tg(()=>{i.current=!0}),O.useCallback(async(c,f={})=>{Mt(i.current,eg),i.current&&(typeof c=="number"?r.navigate(c):await r.navigate(c,{fromRouteId:l,...f}))},[r,l])}var wp={};function ag(r,l,i){!l&&!wp[r]&&(wp[r]=!0,Mt(!1,i))}O.memo(IS);function IS({routes:r,future:l,state:i}){return ng(r,void 0,i,l)}function e1({to:r,replace:l,state:i,relative:s}){je(Wa(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=O.useContext(Ht);Mt(!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}=O.useContext(Bt),{pathname:d}=Hn(),g=Pa(),p=qo(r,Bo(f),d,s==="path"),h=JSON.stringify(p);return O.useEffect(()=>{g(JSON.parse(h),{replace:l,state:i,relative:s})},[g,h,s,l,i]),null}function ju(r){je(!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 t1({basename:r="/",children:l=null,location:i,navigationType:s="POP",navigator:c,static:f=!1}){je(!Wa(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=r.replace(/^\/*/,"/"),g=O.useMemo(()=>({basename:d,navigator:c,static:f,future:{}}),[d,c,f]);typeof i=="string"&&(i=ia(i));let{pathname:p="/",search:h="",hash:y="",state:S=null,key:b="default"}=i,A=O.useMemo(()=>{let R=fn(p,d);return R==null?null:{location:{pathname:R,search:h,hash:y,state:S,key:b},navigationType:s}},[d,p,h,y,S,b,s]);return Mt(A!=null,`<Router basename="${d}"> is not able to match the URL "${p}${h}${y}" because it does not start with the basename, so the <Router> won't render anything.`),A==null?null:O.createElement(Ht.Provider,{value:g},O.createElement(ci.Provider,{children:l,value:A}))}function n1({children:r,location:l}){return GS(_o(r),l)}function _o(r,l=[]){let i=[];return O.Children.forEach(r,(s,c)=>{if(!O.isValidElement(s))return;let f=[...l,c];if(s.type===O.Fragment){i.push.apply(i,_o(s.props.children,f));return}je(s.type===ju,`[${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>`),je(!s.props.index||!s.props.children,"An index route cannot have child routes.");let d={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&&(d.children=_o(s.props.children,f)),i.push(d)}),i}var Mu="get",_u="application/x-www-form-urlencoded";function Ku(r){return r!=null&&typeof r.tagName=="string"}function a1(r){return Ku(r)&&r.tagName.toLowerCase()==="button"}function l1(r){return Ku(r)&&r.tagName.toLowerCase()==="form"}function i1(r){return Ku(r)&&r.tagName.toLowerCase()==="input"}function u1(r){return!!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)}function s1(r,l){return r.button===0&&(!l||l==="_self")&&!u1(r)}var zu=null;function r1(){if(zu===null)try{new FormData(document.createElement("form"),0),zu=!1}catch{zu=!0}return zu}var o1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Eo(r){return r!=null&&!o1.has(r)?(Mt(!1,`"${r}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${_u}"`),null):r}function c1(r,l){let i,s,c,f,d;if(l1(r)){let g=r.getAttribute("action");s=g?fn(g,l):null,i=r.getAttribute("method")||Mu,c=Eo(r.getAttribute("enctype"))||_u,f=new FormData(r)}else if(a1(r)||i1(r)&&(r.type==="submit"||r.type==="image")){let g=r.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=r.getAttribute("formaction")||g.getAttribute("action");if(s=p?fn(p,l):null,i=r.getAttribute("formmethod")||g.getAttribute("method")||Mu,c=Eo(r.getAttribute("formenctype"))||Eo(g.getAttribute("enctype"))||_u,f=new FormData(g,r),!r1()){let{name:h,type:y,value:S}=r;if(y==="image"){let b=h?`${h}.`:"";f.append(`${b}x`,"0"),f.append(`${b}y`,"0")}else h&&f.append(h,S)}}else{if(Ku(r))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=Mu,s=null,c=_u,d=r}return f&&c==="text/plain"&&(d=f,f=void 0),{action:s,method:i.toLowerCase(),encType:c,formData:f,body:d}}function Yo(r,l){if(r===!1||r===null||typeof r>"u")throw new Error(l)}async function f1(r,l){if(r.id in l)return l[r.id];try{let i=await import(r.module);return l[r.id]=i,i}catch(i){return console.error(`Error loading route module \`${r.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function d1(r){return r==null?!1:r.href==null?r.rel==="preload"&&typeof r.imageSrcSet=="string"&&typeof r.imageSizes=="string":typeof r.rel=="string"&&typeof r.href=="string"}async function h1(r,l,i){let s=await Promise.all(r.map(async c=>{let f=l.routes[c.route.id];if(f){let d=await f1(f,i);return d.links?d.links():[]}return[]}));return y1(s.flat(1).filter(d1).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function Np(r,l,i,s,c,f){let d=(p,h)=>i[h]?p.route.id!==i[h].route.id:!0,g=(p,h)=>{var y;return i[h].pathname!==p.pathname||((y=i[h].route.path)==null?void 0:y.endsWith("*"))&&i[h].params["*"]!==p.params["*"]};return f==="assets"?l.filter((p,h)=>d(p,h)||g(p,h)):f==="data"?l.filter((p,h)=>{var S;let y=s.routes[p.route.id];if(!y||!y.hasLoader)return!1;if(d(p,h)||g(p,h))return!0;if(p.route.shouldRevalidate){let b=p.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:((S=i[0])==null?void 0:S.params)||{},nextUrl:new URL(r,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function p1(r,l,{includeHydrateFallback:i}={}){return g1(r.map(s=>{let c=l.routes[s.route.id];if(!c)return[];let f=[c.module];return c.clientActionModule&&(f=f.concat(c.clientActionModule)),c.clientLoaderModule&&(f=f.concat(c.clientLoaderModule)),i&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function g1(r){return[...new Set(r)]}function m1(r){let l={},i=Object.keys(r).sort();for(let s of i)l[s]=r[s];return l}function y1(r,l){let i=new Set;return new Set(l),r.reduce((s,c)=>{let f=JSON.stringify(m1(c));return i.has(f)||(i.add(f),s.push({key:f,link:c})),s},[])}var v1=new Set([100,101,204,205]);function b1(r,l){let i=typeof r=="string"?new URL(r,typeof window>"u"?"server://singlefetch/":window.location.origin):r;return i.pathname==="/"?i.pathname="_root.data":l&&fn(i.pathname,l)==="/"?i.pathname=`${l.replace(/\/$/,"")}/_root.data`:i.pathname=`${i.pathname.replace(/\/$/,"")}.data`,i}function lg(){let r=O.useContext(Fa);return Yo(r,"You must render this element inside a <DataRouterContext.Provider> element"),r}function S1(){let r=O.useContext(Zu);return Yo(r,"You must render this element inside a <DataRouterStateContext.Provider> element"),r}var Qo=O.createContext(void 0);Qo.displayName="FrameworkContext";function ig(){let r=O.useContext(Qo);return Yo(r,"You must render this element inside a <HydratedRouter> element"),r}function x1(r,l){let i=O.useContext(Qo),[s,c]=O.useState(!1),[f,d]=O.useState(!1),{onFocus:g,onBlur:p,onMouseEnter:h,onMouseLeave:y,onTouchStart:S}=l,b=O.useRef(null);O.useEffect(()=>{if(r==="render"&&d(!0),r==="viewport"){let k=H=>{H.forEach(G=>{d(G.isIntersecting)})},M=new IntersectionObserver(k,{threshold:.5});return b.current&&M.observe(b.current),()=>{M.disconnect()}}},[r]),O.useEffect(()=>{if(s){let k=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(k)}}},[s]);let A=()=>{c(!0)},R=()=>{c(!1),d(!1)};return i?r!=="intent"?[f,b,{}]:[f,b,{onFocus:ei(g,A),onBlur:ei(p,R),onMouseEnter:ei(h,A),onMouseLeave:ei(y,R),onTouchStart:ei(S,A)}]:[!1,b,{}]}function ei(r,l){return i=>{r&&r(i),i.defaultPrevented||l(i)}}function E1({page:r,...l}){let{router:i}=lg(),s=O.useMemo(()=>Jp(i.routes,r,i.basename),[i.routes,r,i.basename]);return s?O.createElement(R1,{page:r,matches:s,...l}):null}function T1(r){let{manifest:l,routeModules:i}=ig(),[s,c]=O.useState([]);return O.useEffect(()=>{let f=!1;return h1(r,l,i).then(d=>{f||c(d)}),()=>{f=!0}},[r,l,i]),s}function R1({page:r,matches:l,...i}){let s=Hn(),{manifest:c,routeModules:f}=ig(),{basename:d}=lg(),{loaderData:g,matches:p}=S1(),h=O.useMemo(()=>Np(r,l,p,c,s,"data"),[r,l,p,c,s]),y=O.useMemo(()=>Np(r,l,p,c,s,"assets"),[r,l,p,c,s]),S=O.useMemo(()=>{if(r===s.pathname+s.search+s.hash)return[];let R=new Set,k=!1;if(l.forEach(H=>{var $;let G=c.routes[H.route.id];!G||!G.hasLoader||(!h.some(F=>F.route.id===H.route.id)&&H.route.id in g&&(($=f[H.route.id])!=null&&$.shouldRevalidate)||G.hasClientLoader?k=!0:R.add(H.route.id))}),R.size===0)return[];let M=b1(r,d);return k&&R.size>0&&M.searchParams.set("_routes",l.filter(H=>R.has(H.route.id)).map(H=>H.route.id).join(",")),[M.pathname+M.search]},[d,g,s,c,h,l,r,f]),b=O.useMemo(()=>p1(y,c),[y,c]),A=T1(y);return O.createElement(O.Fragment,null,S.map(R=>O.createElement("link",{key:R,rel:"prefetch",as:"fetch",href:R,...i})),b.map(R=>O.createElement("link",{key:R,rel:"modulepreload",href:R,...i})),A.map(({key:R,link:k})=>O.createElement("link",{key:R,...k})))}function w1(...r){return l=>{r.forEach(i=>{typeof i=="function"?i(l):i!=null&&(i.current=l)})}}var ug=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{ug&&(window.__reactRouterVersion="7.5.3")}catch{}function N1({basename:r,children:l,window:i}){let s=O.useRef();s.current==null&&(s.current=dS({window:i,v5Compat:!0}));let c=s.current,[f,d]=O.useState({action:c.action,location:c.location}),g=O.useCallback(p=>{O.startTransition(()=>d(p))},[d]);return O.useLayoutEffect(()=>c.listen(g),[c,g]),O.createElement(t1,{basename:r,children:l,location:f.location,navigationType:f.action,navigator:c})}var sg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rg=O.forwardRef(function({onClick:l,discover:i="render",prefetch:s="none",relative:c,reloadDocument:f,replace:d,state:g,target:p,to:h,preventScrollReset:y,viewTransition:S,...b},A){let{basename:R}=O.useContext(Ht),k=typeof h=="string"&&sg.test(h),M,H=!1;if(typeof h=="string"&&k&&(M=h,ug))try{let J=new URL(window.location.href),re=h.startsWith("//")?new URL(J.protocol+h):new URL(h),le=fn(re.pathname,R);re.origin===J.origin&&le!=null?h=le+re.search+re.hash:H=!0}catch{Mt(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let G=HS(h,{relative:c}),[$,F,X]=x1(s,b),se=z1(h,{replace:d,state:g,target:p,preventScrollReset:y,relative:c,viewTransition:S});function W(J){l&&l(J),J.defaultPrevented||se(J)}let K=O.createElement("a",{...b,...X,href:M||G,onClick:H||f?l:W,ref:w1(A,F),target:p,"data-discover":!k&&i==="render"?"true":void 0});return $&&!k?O.createElement(O.Fragment,null,K,O.createElement(E1,{page:G})):K});rg.displayName="Link";var A1=O.forwardRef(function({"aria-current":l="page",caseSensitive:i=!1,className:s="",end:c=!1,style:f,to:d,viewTransition:g,children:p,...h},y){let S=fi(d,{relative:h.relative}),b=Hn(),A=O.useContext(Zu),{navigator:R,basename:k}=O.useContext(Ht),M=A!=null&&_1(S)&&g===!0,H=R.encodeLocation?R.encodeLocation(S).pathname:S.pathname,G=b.pathname,$=A&&A.navigation&&A.navigation.location?A.navigation.location.pathname:null;i||(G=G.toLowerCase(),$=$?$.toLowerCase():null,H=H.toLowerCase()),$&&k&&($=fn($,k)||$);const F=H!=="/"&&H.endsWith("/")?H.length-1:H.length;let X=G===H||!c&&G.startsWith(H)&&G.charAt(F)==="/",se=$!=null&&($===H||!c&&$.startsWith(H)&&$.charAt(H.length)==="/"),W={isActive:X,isPending:se,isTransitioning:M},K=X?l:void 0,J;typeof s=="function"?J=s(W):J=[s,X?"active":null,se?"pending":null,M?"transitioning":null].filter(Boolean).join(" ");let re=typeof f=="function"?f(W):f;return O.createElement(rg,{...h,"aria-current":K,className:J,ref:y,style:re,to:d,viewTransition:g},typeof p=="function"?p(W):p)});A1.displayName="NavLink";var O1=O.forwardRef(({discover:r="render",fetcherKey:l,navigate:i,reloadDocument:s,replace:c,state:f,method:d=Mu,action:g,onSubmit:p,relative:h,preventScrollReset:y,viewTransition:S,...b},A)=>{let R=j1(),k=M1(g,{relative:h}),M=d.toLowerCase()==="get"?"get":"post",H=typeof g=="string"&&sg.test(g),G=$=>{if(p&&p($),$.defaultPrevented)return;$.preventDefault();let F=$.nativeEvent.submitter,X=(F==null?void 0:F.getAttribute("formmethod"))||d;R(F||$.currentTarget,{fetcherKey:l,method:X,navigate:i,replace:c,state:f,relative:h,preventScrollReset:y,viewTransition:S})};return O.createElement("form",{ref:A,method:M,action:k,onSubmit:s?p:G,...b,"data-discover":!H&&r==="render"?"true":void 0})});O1.displayName="Form";function C1(r){return`${r} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function og(r){let l=O.useContext(Fa);return je(l,C1(r)),l}function z1(r,{target:l,replace:i,state:s,preventScrollReset:c,relative:f,viewTransition:d}={}){let g=Pa(),p=Hn(),h=fi(r,{relative:f});return O.useCallback(y=>{if(s1(y,l)){y.preventDefault();let S=i!==void 0?i:si(p)===si(h);g(r,{replace:S,state:s,preventScrollReset:c,relative:f,viewTransition:d})}},[p,g,h,i,s,l,r,c,f,d])}var k1=0,D1=()=>`__${String(++k1)}__`;function j1(){let{router:r}=og("useSubmit"),{basename:l}=O.useContext(Ht),i=FS();return O.useCallback(async(s,c={})=>{let{action:f,method:d,encType:g,formData:p,body:h}=c1(s,l);if(c.navigate===!1){let y=c.fetcherKey||D1();await r.fetch(y,i,c.action||f,{preventScrollReset:c.preventScrollReset,formData:p,body:h,formMethod:c.method||d,formEncType:c.encType||g,flushSync:c.flushSync})}else await r.navigate(c.action||f,{preventScrollReset:c.preventScrollReset,formData:p,body:h,formMethod:c.method||d,formEncType:c.encType||g,replace:c.replace,state:c.state,fromRouteId:i,flushSync:c.flushSync,viewTransition:c.viewTransition})},[r,l,i])}function M1(r,{relative:l}={}){let{basename:i}=O.useContext(Ht),s=O.useContext(Bt);je(s,"useFormAction must be used inside a RouteContext");let[c]=s.matches.slice(-1),f={...fi(r||".",{relative:l})},d=Hn();if(r==null){f.search=d.search;let g=new URLSearchParams(f.search),p=g.getAll("index");if(p.some(y=>y==="")){g.delete("index"),p.filter(S=>S).forEach(S=>g.append("index",S));let y=g.toString();f.search=y?`?${y}`:""}}return(!r||r===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(f.pathname=f.pathname==="/"?i:cn([i,f.pathname])),si(f)}function _1(r,l={}){let i=O.useContext(Ip);je(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=og("useViewTransitionState"),c=fi(r,{relative:l.relative});if(!i.isTransitioning)return!1;let f=fn(i.currentLocation.pathname,s)||i.currentLocation.pathname,d=fn(i.nextLocation.pathname,s)||i.nextLocation.pathname;return Gu(c.pathname,d)!=null||Gu(c.pathname,f)!=null}new TextEncoder;[...v1];function L1(r){return r.varName?` for '${r.varName}'`:""}function U1(r,l={}){if(r==null||r===""&&!l.allowEmpty)throw new Error(`Missing string value${L1(l)}`);return typeof r=="string"?r:r.toString()}const H1=`${`//${document.location.host}`}/api/plugin/site-generator`;let cg;const[To]=document.getElementsByClassName("js-script-site-generator");To&&To instanceof HTMLScriptElement&&(cg=U1(To.dataset.googleRecaptchaKey,{varName:"data-google-recaptcha-key"}));const Ro=cg;async function Un(r){try{const l=await fetch(H1,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});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 B1={},Ap=r=>{let l;const i=new Set,s=(y,S)=>{const b=typeof y=="function"?y(l):y;if(!Object.is(b,l)){const A=l;l=S??(typeof b!="object"||b===null)?b:Object.assign({},l,b),i.forEach(R=>R(l,A))}},c=()=>l,p={setState:s,getState:c,getInitialState:()=>h,subscribe:y=>(i.add(y),()=>i.delete(y)),destroy:()=>{(B1?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),i.clear()}},h=l=r(s,c,p);return p},q1=r=>r?Ap(r):Ap;var wo={exports:{}},No={},Ao={exports:{}},Oo={};/**
|
|
177
175
|
* @license React
|
|
178
176
|
* use-sync-external-store-shim.production.min.js
|
|
179
177
|
*
|
|
@@ -181,7 +179,7 @@ Please change the parent <Route path="${$}"> to <Route path="${$==="/"?"*":`${$}
|
|
|
181
179
|
*
|
|
182
180
|
* This source code is licensed under the MIT license found in the
|
|
183
181
|
* LICENSE file in the root directory of this source tree.
|
|
184
|
-
*/var Op;function G1(){if(Op)return Oo;Op=1;var r=oi();function l(S,b){return S===b&&(S!==0||1/S===1/b)||S!==S&&b!==b}var i=typeof Object.is=="function"?Object.is:l,
|
|
182
|
+
*/var Op;function G1(){if(Op)return Oo;Op=1;var r=oi();function l(S,b){return S===b&&(S!==0||1/S===1/b)||S!==S&&b!==b}var i=typeof Object.is=="function"?Object.is:l,s=r.useState,c=r.useEffect,f=r.useLayoutEffect,d=r.useDebugValue;function g(S,b){var A=b(),R=s({inst:{value:A,getSnapshot:b}}),k=R[0].inst,M=R[1];return f(function(){k.value=A,k.getSnapshot=b,p(k)&&M({inst:k})},[S,A,b]),c(function(){return p(k)&&M({inst:k}),S(function(){p(k)&&M({inst:k})})},[S]),d(A),A}function p(S){var b=S.getSnapshot;S=S.value;try{var A=b();return!i(S,A)}catch{return!0}}function h(S,b){return b()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:g;return Oo.useSyncExternalStore=r.useSyncExternalStore!==void 0?r.useSyncExternalStore:y,Oo}var Cp;function $1(){return Cp||(Cp=1,Ao.exports=G1()),Ao.exports}/**
|
|
185
183
|
* @license React
|
|
186
184
|
* use-sync-external-store-shim/with-selector.production.min.js
|
|
187
185
|
*
|
|
@@ -189,65 +187,65 @@ Please change the parent <Route path="${$}"> to <Route path="${$==="/"?"*":`${$}
|
|
|
189
187
|
*
|
|
190
188
|
* This source code is licensed under the MIT license found in the
|
|
191
189
|
* LICENSE file in the root directory of this source tree.
|
|
192
|
-
*/var zp;function V1(){if(zp)return No;zp=1;var r=oi(),l=$1();function i(h,y){return h===y&&(h!==0||1/h===1/y)||h!==h&&y!==y}var u=typeof Object.is=="function"?Object.is:i,c=l.useSyncExternalStore,f=r.useRef,d=r.useEffect,g=r.useMemo,p=r.useDebugValue;return No.useSyncExternalStoreWithSelector=function(h,y,S,b,A){var R=f(null);if(R.current===null){var k={hasValue:!1,value:null};R.current=k}else k=R.current;R=g(function(){function H(ue){if(!G){if(G=!0,$=ue,ue=b(ue),A!==void 0&&k.hasValue){var W=k.value;if(A(W,ue))return F=W}return F=ue}if(W=F,u($,ue))return W;var K=b(ue);return A!==void 0&&A(W,K)?W:($=ue,F=K)}var G=!1,$,F,X=S===void 0?null:S;return[function(){return H(y())},X===null?void 0:function(){return H(X())}]},[y,S,b,A]);var M=c(h,R[0],R[1]);return d(function(){k.hasValue=!0,k.value=M},[M]),p(M),M},No}var kp;function Y1(){return kp||(kp=1,wo.exports=V1()),wo.exports}var Q1=Y1();const X1=Ho(Q1),fg={},{useDebugValue:Z1}=Qp,{useSyncExternalStoreWithSelector:K1}=X1;let Dp=!1;const J1=r=>r;function F1(r,l=J1,i){(fg?"production":void 0)!=="production"&&i&&!Dp&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Dp=!0);const u=K1(r.subscribe,r.getState,r.getServerState||r.getInitialState,l,i);return Z1(u),u}const jp=r=>{(fg?"production":void 0)!=="production"&&typeof r!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const l=typeof r=="function"?q1(r):r,i=(u,c)=>F1(l,u,c);return Object.assign(i,l),i},W1=r=>r?jp(r):jp,Xo="site-generator-session-token";function Mp(r){try{sessionStorage.setItem(Xo,r)}catch(l){console.error("Failed to save session token",l)}}function ri(){try{return sessionStorage.getItem(Xo)??void 0}catch(r){console.error("Failed to get session token",r)}}function P1(){try{sessionStorage.removeItem(Xo)}catch(r){console.error("Failed to remove session token",r)}}const I1=2e3,Ja=new Map;function ex(r){if(Ja.has(r))return;const l=window.setInterval(()=>{tx(r)},I1);Ja.set(r,l)}function ks(r){const l=Ja.get(r);l&&(window.clearInterval(l),Ja.delete(r))}function Zo(){Ja.forEach(r=>{window.clearInterval(r)}),Ja.clear()}async function tx(r){const l=ri();if(!l){ks(r);return}try{const i=await Un({command:"loadStep",sessionToken:l,stepNumber:r});if(i.success&&i.result){const u=i.result;nx(u),u.status!=="pending"&&ks(r)}else console.error("Error polling step:",i),ks(r)}catch(i){console.error("Error polling step:",i),ks(r)}}function nx(r){const{updateStep:l}=sa.getState();l(r)}function Co(r){Zo(),r.steps.forEach(l=>{l.status==="pending"&&ex(l.stepNumber)})}const sa=W1((r,l)=>({workSession:void 0,isLoading:!1,error:void 0,activeStepNumber:void 0,setWorkSession:i=>{r({workSession:i}),i&&Co(i)},updateStep:i=>{const{workSession:u}=l();if(!u)return;const c=u.steps.map(d=>d.stepNumber===i.stepNumber?i:d),f={...u,steps:c};r({workSession:f}),i.status==="pending"&&Co(f)},appendNewStep:i=>{const{workSession:u}=l();if(!u)return;const c={...u,steps:[...u.steps,i]};r({workSession:c}),i.status==="pending"&&Co(c)},setIsLoading:i=>r({isLoading:i}),setError:i=>r({error:i}),setActiveStepNumber:i=>r({activeStepNumber:i}),resetSession:()=>{Zo(),r({workSession:void 0,isLoading:!1,error:void 0,activeStepNumber:void 0})}})),et=O.forwardRef((r,l)=>{const{label:i,severity:u="primary",loading:c,children:f,onClick:d,className:g="",disabled:p,...h}=r,[y,S]=O.useState(!1),b=y||c,A=["Button",u==="secondary"?"secondary":"",b?"loading":"",g].filter(Boolean).join(" "),R=async k=>{if(d)try{k.preventDefault(),S(!0),await d(k)}finally{S(!1)}};return E.jsxs("button",{ref:l,type:"button",className:A,onClick:R,disabled:p||b,...h,children:[!b&&f,!b&&i]})});et.displayName="Button";function Js({size:r="medium"}){return E.jsx("div",{className:`Spinner Spinner-${r}`,"aria-label":"Loading"})}function Ls({activeStep:r}){const{t:l}=nt(),i=Pa(),{workSession:u}=sa(),c=()=>{i("/")},f=d=>{i(`/step/${d}`)};return!u||!u.steps||u.steps.length===0?E.jsx("div",{className:"Sidebar",children:E.jsx(et,{className:`Sidebar-button ${r===void 0?"active":""}`,onClick:c,children:l("startAgain")})}):E.jsxs("div",{className:"Sidebar",children:[E.jsx(et,{className:`Sidebar-button ${r===void 0?"active":""}`,onClick:c,children:l("startAgain")}),E.jsx("div",{className:"Sidebar-steps",children:u.steps.map(d=>E.jsxs("div",{className:"Sidebar-step",children:[E.jsx(et,{className:`Sidebar-button ${r===d.stepNumber?"active":""} ${d.status==="pending"?"has-spinner":""}`,onClick:()=>f(d.stepNumber),children:`${l("step")} ${d.stepNumber}: ${l(d.kind)}`}),d.status==="pending"&&E.jsx("div",{className:"Sidebar-spinner",children:E.jsx(Js,{size:"small"})})]},d.stepNumber))})]})}function dg({initialValue:r="",placeholder:l,submitLabel:i,onSubmit:u,isLoading:c=!1,error:f}){const{t:d}=nt(),[g,p]=O.useState(r),h=S=>{p(S.target.value)},y=async()=>{g.trim()&&await u(g.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||d("createPromptPlaceholder"),value:g,onChange:h,rows:6,disabled:c}),E.jsx(et,{onClick:y,loading:c,disabled:!g.trim()||c,className:"PromptForm-button mt-3",children:i})]})}function Et({header:r,footer:l,children:i,className:u=""}){const c=["Card",u].filter(Boolean).join(" ");return E.jsxs("div",{className:c,children:[r&&E.jsx("div",{className:"Card-header",children:r}),E.jsx("div",{className:"Card-body",children:i}),l&&E.jsx("div",{className:"Card-footer",children:l})]})}function ax(){const{t:r}=nt(),l=Pa(),[i,u]=O.useState(!1),[c,f]=O.useState(void 0),{workSession:d,appendNewStep:g}=sa(),p=async h=>{if(!d)return;u(!0),f(void 0);const y=ri();if(!y){f(r("sessionExpired")),u(!1);return}try{const S=await Un({command:"createSiteSchema",sessionToken:y,prompt:h});if(S.success&&S.result){const b=S.result;g(b),l(`/step/${b.stepNumber}`)}else f(r("promptSubmissionFailed"))}catch(S){console.error("Error submitting prompt:",S),f(r("errorOccurred"))}finally{u(!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:r("welcomeTitle")}),E.jsx("div",{className:"Text mb-4",dangerouslySetInnerHTML:{__html:r("startInstruction")}}),d&&d.steps.length>0&&E.jsx("p",{className:"InfoText",children:r("newTabRestartMessage")}),E.jsx(dg,{submitLabel:r("createSchema"),onSubmit:p,isLoading:i,error:c})]})}),E.jsx("div",{className:"RouteLayout-sidebar",children:E.jsx(Ls,{activeStep:void 0})})]})}function lx(r){return"siteId"in r}function Ko(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let ua=Ko();function hg(r){ua=r}const li={exec:()=>null};function Se(r,l=""){let i=typeof r=="string"?r:r.source;const u={replace:(c,f)=>{let d=typeof f=="string"?f:f.source;return d=d.replace(it.caret,"$1"),i=i.replace(c,d),u},getRegex:()=>new RegExp(i,l)};return u}const 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:r=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}#`),htmlBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}<(?:[a-z].*>|!--)`,"i")},ix=/^(?:[ \t]*(?:\n|$))+/,sx=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ux=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,di=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,rx=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Jo=/(?:[*+-]|\d{1,9}[.)])/,pg=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,gg=Se(pg).replace(/bull/g,Jo).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(),ox=Se(pg).replace(/bull/g,Jo).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(),Fo=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,cx=/^[^\n]+/,Wo=/(?!\s*\])(?:\\.|[^\[\]\\])+/,fx=Se(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Wo).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),dx=Se(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Jo).getRegex(),Fs="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",Po=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,hx=Se("^ {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",Po).replace("tag",Fs).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),mg=Se(Fo).replace("hr",di).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",Fs).getRegex(),px=Se(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",mg).getRegex(),Io={blockquote:px,code:sx,def:fx,fences:ux,heading:rx,hr:di,html:hx,lheading:gg,list:dx,newline:ix,paragraph:mg,table:li,text:cx},_p=Se("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",di).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",Fs).getRegex(),gx={...Io,lheading:ox,table:_p,paragraph:Se(Fo).replace("hr",di).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",_p).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",Fs).getRegex()},mx={...Io,html:Se(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Po).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:li,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Se(Fo).replace("hr",di).replace("heading",` *#{1,6} *[^
|
|
193
|
-
]`).replace("lheading",gg).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},yx=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,vx=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,yg=/^( {2,}|\\)\n(?!\s*$)/,bx=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,
|
|
190
|
+
*/var zp;function V1(){if(zp)return No;zp=1;var r=oi(),l=$1();function i(h,y){return h===y&&(h!==0||1/h===1/y)||h!==h&&y!==y}var s=typeof Object.is=="function"?Object.is:i,c=l.useSyncExternalStore,f=r.useRef,d=r.useEffect,g=r.useMemo,p=r.useDebugValue;return No.useSyncExternalStoreWithSelector=function(h,y,S,b,A){var R=f(null);if(R.current===null){var k={hasValue:!1,value:null};R.current=k}else k=R.current;R=g(function(){function H(se){if(!G){if(G=!0,$=se,se=b(se),A!==void 0&&k.hasValue){var W=k.value;if(A(W,se))return F=W}return F=se}if(W=F,s($,se))return W;var K=b(se);return A!==void 0&&A(W,K)?W:($=se,F=K)}var G=!1,$,F,X=S===void 0?null:S;return[function(){return H(y())},X===null?void 0:function(){return H(X())}]},[y,S,b,A]);var M=c(h,R[0],R[1]);return d(function(){k.hasValue=!0,k.value=M},[M]),p(M),M},No}var kp;function Y1(){return kp||(kp=1,wo.exports=V1()),wo.exports}var Q1=Y1();const X1=Ho(Q1),fg={},{useDebugValue:Z1}=Qp,{useSyncExternalStoreWithSelector:K1}=X1;let Dp=!1;const J1=r=>r;function F1(r,l=J1,i){(fg?"production":void 0)!=="production"&&i&&!Dp&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Dp=!0);const s=K1(r.subscribe,r.getState,r.getServerState||r.getInitialState,l,i);return Z1(s),s}const jp=r=>{(fg?"production":void 0)!=="production"&&typeof r!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const l=typeof r=="function"?q1(r):r,i=(s,c)=>F1(l,s,c);return Object.assign(i,l),i},W1=r=>r?jp(r):jp,Xo="site-generator-session-token";function Mp(r){try{sessionStorage.setItem(Xo,r)}catch(l){console.error("Failed to save session token",l)}}function ri(){try{return sessionStorage.getItem(Xo)??void 0}catch(r){console.error("Failed to get session token",r)}}function P1(){try{sessionStorage.removeItem(Xo)}catch(r){console.error("Failed to remove session token",r)}}const I1=2e3,Ja=new Map;function ex(r){if(Ja.has(r))return;const l=window.setInterval(()=>{tx(r)},I1);Ja.set(r,l)}function ku(r){const l=Ja.get(r);l&&(window.clearInterval(l),Ja.delete(r))}function Zo(){Ja.forEach(r=>{window.clearInterval(r)}),Ja.clear()}async function tx(r){const l=ri();if(!l){ku(r);return}try{const i=await Un({command:"loadStep",sessionToken:l,stepNumber:r});if(i.success&&i.result){const s=i.result;nx(s),s.status!=="pending"&&ku(r)}else console.error("Error polling step:",i),ku(r)}catch(i){console.error("Error polling step:",i),ku(r)}}function nx(r){const{updateStep:l}=ua.getState();l(r)}function Co(r){Zo(),r.steps.forEach(l=>{l.status==="pending"&&ex(l.stepNumber)})}const ua=W1((r,l)=>({workSession:void 0,isLoading:!1,error:void 0,activeStepNumber:void 0,setWorkSession:i=>{r({workSession:i}),i&&Co(i)},updateStep:i=>{const{workSession:s}=l();if(!s)return;const c=s.steps.map(d=>d.stepNumber===i.stepNumber?i:d),f={...s,steps:c};r({workSession:f}),i.status==="pending"&&Co(f)},appendNewStep:i=>{const{workSession:s}=l();if(!s)return;const c={...s,steps:[...s.steps,i]};r({workSession:c}),i.status==="pending"&&Co(c)},setIsLoading:i=>r({isLoading:i}),setError:i=>r({error:i}),setActiveStepNumber:i=>r({activeStepNumber:i}),resetSession:()=>{Zo(),r({workSession:void 0,isLoading:!1,error:void 0,activeStepNumber:void 0})}})),et=O.forwardRef((r,l)=>{const{label:i,severity:s="primary",loading:c,children:f,onClick:d,className:g="",disabled:p,...h}=r,[y,S]=O.useState(!1),b=y||c,A=["Button",s==="secondary"?"secondary":"",b?"loading":"",g].filter(Boolean).join(" "),R=async k=>{if(d)try{k.preventDefault(),S(!0),await d(k)}finally{S(!1)}};return E.jsxs("button",{ref:l,type:"button",className:A,onClick:R,disabled:p||b,...h,children:[!b&&f,!b&&i]})});et.displayName="Button";function Ju({size:r="medium"}){return E.jsx("div",{className:`Spinner Spinner-${r}`,"aria-label":"Loading"})}function Lu({activeStep:r}){const{t:l}=nt(),i=Pa(),{workSession:s}=ua(),c=()=>{i("/")},f=d=>{i(`/step/${d}`)};return!s||!s.steps||s.steps.length===0?E.jsx("div",{className:"Sidebar",children:E.jsx(et,{className:`Sidebar-button ${r===void 0?"active":""}`,onClick:c,children:l("startAgain")})}):E.jsxs("div",{className:"Sidebar",children:[E.jsx(et,{className:`Sidebar-button ${r===void 0?"active":""}`,onClick:c,children:l("startAgain")}),E.jsx("div",{className:"Sidebar-steps",children:s.steps.map(d=>E.jsxs("div",{className:"Sidebar-step",children:[E.jsx(et,{className:`Sidebar-button ${r===d.stepNumber?"active":""} ${d.status==="pending"?"has-spinner":""}`,onClick:()=>f(d.stepNumber),children:`${l("step")} ${d.stepNumber}: ${l(d.kind)}`}),d.status==="pending"&&E.jsx("div",{className:"Sidebar-spinner",children:E.jsx(Ju,{size:"small"})})]},d.stepNumber))})]})}function dg({initialValue:r="",placeholder:l,submitLabel:i,onSubmit:s,isLoading:c=!1,error:f}){const{t:d}=nt(),[g,p]=O.useState(r),h=S=>{p(S.target.value)},y=async()=>{g.trim()&&await s(g.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||d("createPromptPlaceholder"),value:g,onChange:h,rows:6,disabled:c}),E.jsx(et,{onClick:y,loading:c,disabled:!g.trim()||c,className:"PromptForm-button mt-3",children:i})]})}function Et({header:r,footer:l,children:i,className:s=""}){const c=["Card",s].filter(Boolean).join(" ");return E.jsxs("div",{className:c,children:[r&&E.jsx("div",{className:"Card-header",children:r}),E.jsx("div",{className:"Card-body",children:i}),l&&E.jsx("div",{className:"Card-footer",children:l})]})}function ax(){const{t:r}=nt(),l=Pa(),[i,s]=O.useState(!1),[c,f]=O.useState(void 0),{workSession:d,appendNewStep:g}=ua(),p=async h=>{if(!d)return;s(!0),f(void 0);const y=ri();if(!y){f(r("sessionExpired")),s(!1);return}try{const S=await Un({command:"createSiteSchema",sessionToken:y,prompt:h});if(S.success&&S.result){const b=S.result;g(b),l(`/step/${b.stepNumber}`)}else f(r("promptSubmissionFailed"))}catch(S){console.error("Error submitting prompt:",S),f(r("errorOccurred"))}finally{s(!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:r("welcomeTitle")}),E.jsx("div",{className:"Text mb-4",dangerouslySetInnerHTML:{__html:r("startInstruction")}}),d&&d.steps.length>0&&E.jsx("p",{className:"InfoText",children:r("newTabRestartMessage")}),E.jsx(dg,{submitLabel:r("createSchema"),onSubmit:p,isLoading:i,error:c})]})}),E.jsx("div",{className:"RouteLayout-sidebar",children:E.jsx(Lu,{activeStep:void 0})})]})}function lx(r){return"siteId"in r}function Ko(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let sa=Ko();function hg(r){sa=r}const li={exec:()=>null};function Se(r,l=""){let i=typeof r=="string"?r:r.source;const s={replace:(c,f)=>{let d=typeof f=="string"?f:f.source;return d=d.replace(it.caret,"$1"),i=i.replace(c,d),s},getRegex:()=>new RegExp(i,l)};return s}const 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:r=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}#`),htmlBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}<(?:[a-z].*>|!--)`,"i")},ix=/^(?:[ \t]*(?:\n|$))+/,ux=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,sx=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,di=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,rx=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Jo=/(?:[*+-]|\d{1,9}[.)])/,pg=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,gg=Se(pg).replace(/bull/g,Jo).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(),ox=Se(pg).replace(/bull/g,Jo).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(),Fo=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,cx=/^[^\n]+/,Wo=/(?!\s*\])(?:\\.|[^\[\]\\])+/,fx=Se(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Wo).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),dx=Se(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Jo).getRegex(),Fu="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",Po=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,hx=Se("^ {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",Po).replace("tag",Fu).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),mg=Se(Fo).replace("hr",di).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",Fu).getRegex(),px=Se(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",mg).getRegex(),Io={blockquote:px,code:ux,def:fx,fences:sx,heading:rx,hr:di,html:hx,lheading:gg,list:dx,newline:ix,paragraph:mg,table:li,text:cx},_p=Se("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",di).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",Fu).getRegex(),gx={...Io,lheading:ox,table:_p,paragraph:Se(Fo).replace("hr",di).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",_p).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",Fu).getRegex()},mx={...Io,html:Se(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Po).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:li,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Se(Fo).replace("hr",di).replace("heading",` *#{1,6} *[^
|
|
191
|
+
]`).replace("lheading",gg).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},yx=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,vx=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,yg=/^( {2,}|\\)\n(?!\s*$)/,bx=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Wu=/[\p{P}\p{S}]/u,ec=/[\s\p{P}\p{S}]/u,vg=/[^\s\p{P}\p{S}]/u,Sx=Se(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ec).getRegex(),bg=/(?!~)[\p{P}\p{S}]/u,xx=/(?!~)[\s\p{P}\p{S}]/u,Ex=/(?:[^\s\p{P}\p{S}]|~)/u,Tx=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Sg=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Rx=Se(Sg,"u").replace(/punct/g,Wu).getRegex(),wx=Se(Sg,"u").replace(/punct/g,bg).getRegex(),xg="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Nx=Se(xg,"gu").replace(/notPunctSpace/g,vg).replace(/punctSpace/g,ec).replace(/punct/g,Wu).getRegex(),Ax=Se(xg,"gu").replace(/notPunctSpace/g,Ex).replace(/punctSpace/g,xx).replace(/punct/g,bg).getRegex(),Ox=Se("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,vg).replace(/punctSpace/g,ec).replace(/punct/g,Wu).getRegex(),Cx=Se(/\\(punct)/,"gu").replace(/punct/g,Wu).getRegex(),zx=Se(/^<(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(),kx=Se(Po).replace("(?:-->|$)","-->").getRegex(),Dx=Se("^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",kx).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),$u=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,jx=Se(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",$u).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Eg=Se(/^!?\[(label)\]\[(ref)\]/).replace("label",$u).replace("ref",Wo).getRegex(),Tg=Se(/^!?\[(ref)\](?:\[\])?/).replace("ref",Wo).getRegex(),Mx=Se("reflink|nolink(?!\\()","g").replace("reflink",Eg).replace("nolink",Tg).getRegex(),tc={_backpedal:li,anyPunctuation:Cx,autolink:zx,blockSkip:Tx,br:yg,code:vx,del:li,emStrongLDelim:Rx,emStrongRDelimAst:Nx,emStrongRDelimUnd:Ox,escape:yx,link:jx,nolink:Tg,punctuation:Sx,reflink:Eg,reflinkSearch:Mx,tag:Dx,text:bx,url:li},_x={...tc,link:Se(/^!?\[(label)\]\((.*?)\)/).replace("label",$u).getRegex(),reflink:Se(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",$u).getRegex()},Lo={...tc,emStrongRDelimAst:Ax,emStrongLDelim:wx,url:Se(/^((?: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.!#$%&'*+\/=?_`{\|}~-]+@)))/},Lx={...Lo,br:Se(yg).replace("{2,}","*").getRegex(),text:Se(Lo.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Du={normal:Io,gfm:gx,pedantic:mx},ti={normal:tc,gfm:Lo,breaks:Lx,pedantic:_x},Ux={"&":"&","<":"<",">":">",'"':""","'":"'"},Lp=r=>Ux[r];function Xt(r,l){if(l){if(it.escapeTest.test(r))return r.replace(it.escapeReplace,Lp)}else if(it.escapeTestNoEncode.test(r))return r.replace(it.escapeReplaceNoEncode,Lp);return r}function Up(r){try{r=encodeURI(r).replace(it.percentDecode,"%")}catch{return null}return r}function Hp(r,l){var f;const i=r.replace(it.findPipe,(d,g,p)=>{let h=!1,y=g;for(;--y>=0&&p[y]==="\\";)h=!h;return h?"|":" |"}),s=i.split(it.splitPipe);let c=0;if(s[0].trim()||s.shift(),s.length>0&&!((f=s.at(-1))!=null&&f.trim())&&s.pop(),l)if(s.length>l)s.splice(l);else for(;s.length<l;)s.push("");for(;c<s.length;c++)s[c]=s[c].trim().replace(it.slashPipe,"|");return s}function ni(r,l,i){const s=r.length;if(s===0)return"";let c=0;for(;c<s&&r.charAt(s-c-1)===l;)c++;return r.slice(0,s-c)}function Hx(r,l){if(r.indexOf(l[1])===-1)return-1;let i=0;for(let s=0;s<r.length;s++)if(r[s]==="\\")s++;else if(r[s]===l[0])i++;else if(r[s]===l[1]&&(i--,i<0))return s;return-1}function Bp(r,l,i,s,c){const f=l.href,d=l.title||null,g=r[1].replace(c.other.outputLinkReplace,"$1");if(r[0].charAt(0)!=="!"){s.state.inLink=!0;const p={type:"link",raw:i,href:f,title:d,text:g,tokens:s.inlineTokens(g)};return s.state.inLink=!1,p}return{type:"image",raw:i,href:f,title:d,text:g}}function Bx(r,l,i){const s=r.match(i.other.indentCodeCompensation);if(s===null)return l;const c=s[1];return l.split(`
|
|
194
192
|
`).map(f=>{const d=f.match(i.other.beginningSpace);if(d===null)return f;const[g]=d;return g.length>=c.length?f.slice(c.length):f}).join(`
|
|
195
|
-
`)}class
|
|
196
|
-
`)}}}fences(l){const i=this.rules.block.fences.exec(l);if(i){const
|
|
197
|
-
`)}}blockquote(l){const i=this.rules.block.blockquote.exec(l);if(i){let
|
|
193
|
+
`)}class Vu{constructor(l){Oe(this,"options");Oe(this,"rules");Oe(this,"lexer");this.options=l||sa}space(l){const i=this.rules.block.newline.exec(l);if(i&&i[0].length>0)return{type:"space",raw:i[0]}}code(l){const i=this.rules.block.code.exec(l);if(i){const s=i[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:i[0],codeBlockStyle:"indented",text:this.options.pedantic?s:ni(s,`
|
|
194
|
+
`)}}}fences(l){const i=this.rules.block.fences.exec(l);if(i){const s=i[0],c=Bx(s,i[3]||"",this.rules);return{type:"code",raw:s,lang:i[2]?i[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):i[2],text:c}}}heading(l){const i=this.rules.block.heading.exec(l);if(i){let s=i[2].trim();if(this.rules.other.endingHash.test(s)){const c=ni(s,"#");(this.options.pedantic||!c||this.rules.other.endingSpaceChar.test(c))&&(s=c.trim())}return{type:"heading",raw:i[0],depth:i[1].length,text:s,tokens:this.lexer.inline(s)}}}hr(l){const i=this.rules.block.hr.exec(l);if(i)return{type:"hr",raw:ni(i[0],`
|
|
195
|
+
`)}}blockquote(l){const i=this.rules.block.blockquote.exec(l);if(i){let s=ni(i[0],`
|
|
198
196
|
`).split(`
|
|
199
|
-
`),c="",f="";const d=[];for(;
|
|
197
|
+
`),c="",f="";const d=[];for(;s.length>0;){let g=!1;const p=[];let h;for(h=0;h<s.length;h++)if(this.rules.other.blockquoteStart.test(s[h]))p.push(s[h]),g=!0;else if(!g)p.push(s[h]);else break;s=s.slice(h);const y=p.join(`
|
|
200
198
|
`),S=y.replace(this.rules.other.blockquoteSetextReplace,`
|
|
201
199
|
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");c=c?`${c}
|
|
202
200
|
${y}`:y,f=f?`${f}
|
|
203
|
-
${S}`:S;const b=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(S,d,!0),this.lexer.state.top=b,
|
|
204
|
-
`+
|
|
201
|
+
${S}`:S;const b=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(S,d,!0),this.lexer.state.top=b,s.length===0)break;const A=d.at(-1);if((A==null?void 0:A.type)==="code")break;if((A==null?void 0:A.type)==="blockquote"){const R=A,k=R.raw+`
|
|
202
|
+
`+s.join(`
|
|
205
203
|
`),M=this.blockquote(k);d[d.length-1]=M,c=c.substring(0,c.length-R.raw.length)+M.raw,f=f.substring(0,f.length-R.text.length)+M.text;break}else if((A==null?void 0:A.type)==="list"){const R=A,k=R.raw+`
|
|
206
|
-
`+
|
|
207
|
-
`),M=this.list(k);d[d.length-1]=M,c=c.substring(0,c.length-A.raw.length)+M.raw,f=f.substring(0,f.length-R.raw.length)+M.raw,
|
|
208
|
-
`);continue}}return{type:"blockquote",raw:c,tokens:d,text:f}}}list(l){let i=this.rules.block.list.exec(l);if(i){let
|
|
204
|
+
`+s.join(`
|
|
205
|
+
`),M=this.list(k);d[d.length-1]=M,c=c.substring(0,c.length-A.raw.length)+M.raw,f=f.substring(0,f.length-R.raw.length)+M.raw,s=k.substring(d.at(-1).raw.length).split(`
|
|
206
|
+
`);continue}}return{type:"blockquote",raw:c,tokens:d,text:f}}}list(l){let i=this.rules.block.list.exec(l);if(i){let s=i[1].trim();const c=s.length>1,f={type:"list",raw:"",ordered:c,start:c?+s.slice(0,-1):"",loose:!1,items:[]};s=c?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=c?s:"[*+-]");const d=this.rules.other.listItemRegex(s);let g=!1;for(;l;){let h=!1,y="",S="";if(!(i=d.exec(l))||this.rules.block.hr.test(l))break;y=i[0],l=l.substring(y.length);let b=i[2].split(`
|
|
209
207
|
`,1)[0].replace(this.rules.other.listReplaceTabs,G=>" ".repeat(3*G.length)),A=l.split(`
|
|
210
208
|
`,1)[0],R=!b.trim(),k=0;if(this.options.pedantic?(k=2,S=b.trimStart()):R?k=i[1].length+1:(k=i[2].search(this.rules.other.nonSpaceChar),k=k>4?1:k,S=b.slice(k),k+=i[1].length),R&&this.rules.other.blankLine.test(A)&&(y+=A+`
|
|
211
|
-
`,l=l.substring(A.length+1),h=!0),!h){const G=this.rules.other.nextBulletRegex(k),$=this.rules.other.hrRegex(k),F=this.rules.other.fencesBeginRegex(k),X=this.rules.other.headingBeginRegex(k),
|
|
212
|
-
`,1)[0];let K;if(A=W,this.options.pedantic?(A=A.replace(this.rules.other.listReplaceNesting," "),K=A):K=A.replace(this.rules.other.tabCharGlobal," "),F.test(A)||X.test(A)||
|
|
209
|
+
`,l=l.substring(A.length+1),h=!0),!h){const G=this.rules.other.nextBulletRegex(k),$=this.rules.other.hrRegex(k),F=this.rules.other.fencesBeginRegex(k),X=this.rules.other.headingBeginRegex(k),se=this.rules.other.htmlBeginRegex(k);for(;l;){const W=l.split(`
|
|
210
|
+
`,1)[0];let K;if(A=W,this.options.pedantic?(A=A.replace(this.rules.other.listReplaceNesting," "),K=A):K=A.replace(this.rules.other.tabCharGlobal," "),F.test(A)||X.test(A)||se.test(A)||G.test(A)||$.test(A))break;if(K.search(this.rules.other.nonSpaceChar)>=k||!A.trim())S+=`
|
|
213
211
|
`+K.slice(k);else{if(R||b.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||F.test(b)||X.test(b)||$.test(b))break;S+=`
|
|
214
212
|
`+A}!R&&!A.trim()&&(R=!0),y+=W+`
|
|
215
|
-
`,l=l.substring(W.length+1),b=K.slice(k)}}f.loose||(g?f.loose=!0:this.rules.other.doubleBlankLine.test(y)&&(g=!0));let M=null,H;this.options.gfm&&(M=this.rules.other.listIsTask.exec(S),M&&(H=M[0]!=="[ ] ",S=S.replace(this.rules.other.listReplaceTask,""))),f.items.push({type:"list_item",raw:y,task:!!M,checked:H,loose:!1,text:S,tokens:[]}),f.raw+=y}const p=f.items.at(-1);if(p)p.raw=p.raw.trimEnd(),p.text=p.text.trimEnd();else return;f.raw=f.raw.trimEnd();for(let h=0;h<f.items.length;h++)if(this.lexer.state.top=!1,f.items[h].tokens=this.lexer.blockTokens(f.items[h].text,[]),!f.loose){const y=f.items[h].tokens.filter(b=>b.type==="space"),S=y.length>0&&y.some(b=>this.rules.other.anyLine.test(b.raw));f.loose=S}if(f.loose)for(let h=0;h<f.items.length;h++)f.items[h].loose=!0;return f}}html(l){const i=this.rules.block.html.exec(l);if(i)return{type:"html",block:!0,raw:i[0],pre:i[1]==="pre"||i[1]==="script"||i[1]==="style",text:i[0]}}def(l){const i=this.rules.block.def.exec(l);if(i){const
|
|
216
|
-
`):[],d={type:"table",raw:i[0],header:[],align:[],rows:[]};if(
|
|
217
|
-
`?i[1].slice(0,-1):i[1];return{type:"paragraph",raw:i[0],text:
|
|
218
|
-
`),this.blockTokens(l,this.tokens);for(let i=0;i<this.inlineQueue.length;i++){const
|
|
213
|
+
`,l=l.substring(W.length+1),b=K.slice(k)}}f.loose||(g?f.loose=!0:this.rules.other.doubleBlankLine.test(y)&&(g=!0));let M=null,H;this.options.gfm&&(M=this.rules.other.listIsTask.exec(S),M&&(H=M[0]!=="[ ] ",S=S.replace(this.rules.other.listReplaceTask,""))),f.items.push({type:"list_item",raw:y,task:!!M,checked:H,loose:!1,text:S,tokens:[]}),f.raw+=y}const p=f.items.at(-1);if(p)p.raw=p.raw.trimEnd(),p.text=p.text.trimEnd();else return;f.raw=f.raw.trimEnd();for(let h=0;h<f.items.length;h++)if(this.lexer.state.top=!1,f.items[h].tokens=this.lexer.blockTokens(f.items[h].text,[]),!f.loose){const y=f.items[h].tokens.filter(b=>b.type==="space"),S=y.length>0&&y.some(b=>this.rules.other.anyLine.test(b.raw));f.loose=S}if(f.loose)for(let h=0;h<f.items.length;h++)f.items[h].loose=!0;return f}}html(l){const i=this.rules.block.html.exec(l);if(i)return{type:"html",block:!0,raw:i[0],pre:i[1]==="pre"||i[1]==="script"||i[1]==="style",text:i[0]}}def(l){const i=this.rules.block.def.exec(l);if(i){const s=i[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),c=i[2]?i[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",f=i[3]?i[3].substring(1,i[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):i[3];return{type:"def",tag:s,raw:i[0],href:c,title:f}}}table(l){var g;const i=this.rules.block.table.exec(l);if(!i||!this.rules.other.tableDelimiter.test(i[2]))return;const s=Hp(i[1]),c=i[2].replace(this.rules.other.tableAlignChars,"").split("|"),f=(g=i[3])!=null&&g.trim()?i[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
214
|
+
`):[],d={type:"table",raw:i[0],header:[],align:[],rows:[]};if(s.length===c.length){for(const p of c)this.rules.other.tableAlignRight.test(p)?d.align.push("right"):this.rules.other.tableAlignCenter.test(p)?d.align.push("center"):this.rules.other.tableAlignLeft.test(p)?d.align.push("left"):d.align.push(null);for(let p=0;p<s.length;p++)d.header.push({text:s[p],tokens:this.lexer.inline(s[p]),header:!0,align:d.align[p]});for(const p of f)d.rows.push(Hp(p,d.header.length).map((h,y)=>({text:h,tokens:this.lexer.inline(h),header:!1,align:d.align[y]})));return d}}lheading(l){const i=this.rules.block.lheading.exec(l);if(i)return{type:"heading",raw:i[0],depth:i[2].charAt(0)==="="?1:2,text:i[1],tokens:this.lexer.inline(i[1])}}paragraph(l){const i=this.rules.block.paragraph.exec(l);if(i){const s=i[1].charAt(i[1].length-1)===`
|
|
215
|
+
`?i[1].slice(0,-1):i[1];return{type:"paragraph",raw:i[0],text:s,tokens:this.lexer.inline(s)}}}text(l){const i=this.rules.block.text.exec(l);if(i)return{type:"text",raw:i[0],text:i[0],tokens:this.lexer.inline(i[0])}}escape(l){const i=this.rules.inline.escape.exec(l);if(i)return{type:"escape",raw:i[0],text:i[1]}}tag(l){const i=this.rules.inline.tag.exec(l);if(i)return!this.lexer.state.inLink&&this.rules.other.startATag.test(i[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(i[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(i[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(i[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:i[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:i[0]}}link(l){const i=this.rules.inline.link.exec(l);if(i){const s=i[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(s)){if(!this.rules.other.endAngleBracket.test(s))return;const d=ni(s.slice(0,-1),"\\");if((s.length-d.length)%2===0)return}else{const d=Hx(i[2],"()");if(d>-1){const p=(i[0].indexOf("!")===0?5:4)+i[1].length+d;i[2]=i[2].substring(0,d),i[0]=i[0].substring(0,p).trim(),i[3]=""}}let c=i[2],f="";if(this.options.pedantic){const d=this.rules.other.pedanticHrefTitle.exec(c);d&&(c=d[1],f=d[3])}else f=i[3]?i[3].slice(1,-1):"";return c=c.trim(),this.rules.other.startAngleBracket.test(c)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(s)?c=c.slice(1):c=c.slice(1,-1)),Bp(i,{href:c&&c.replace(this.rules.inline.anyPunctuation,"$1"),title:f&&f.replace(this.rules.inline.anyPunctuation,"$1")},i[0],this.lexer,this.rules)}}reflink(l,i){let s;if((s=this.rules.inline.reflink.exec(l))||(s=this.rules.inline.nolink.exec(l))){const c=(s[2]||s[1]).replace(this.rules.other.multipleSpaceGlobal," "),f=i[c.toLowerCase()];if(!f){const d=s[0].charAt(0);return{type:"text",raw:d,text:d}}return Bp(s,f,s[0],this.lexer,this.rules)}}emStrong(l,i,s=""){let c=this.rules.inline.emStrongLDelim.exec(l);if(!c||c[3]&&s.match(this.rules.other.unicodeAlphaNumeric))return;if(!(c[1]||c[2]||"")||!s||this.rules.inline.punctuation.exec(s)){const d=[...c[0]].length-1;let g,p,h=d,y=0;const S=c[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(S.lastIndex=0,i=i.slice(-1*l.length+d);(c=S.exec(i))!=null;){if(g=c[1]||c[2]||c[3]||c[4]||c[5]||c[6],!g)continue;if(p=[...g].length,c[3]||c[4]){h+=p;continue}else if((c[5]||c[6])&&d%3&&!((d+p)%3)){y+=p;continue}if(h-=p,h>0)continue;p=Math.min(p,p+h+y);const b=[...c[0]][0].length,A=l.slice(0,d+c.index+b+p);if(Math.min(d,p)%2){const k=A.slice(1,-1);return{type:"em",raw:A,text:k,tokens:this.lexer.inlineTokens(k)}}const R=A.slice(2,-2);return{type:"strong",raw:A,text:R,tokens:this.lexer.inlineTokens(R)}}}}codespan(l){const i=this.rules.inline.code.exec(l);if(i){let s=i[2].replace(this.rules.other.newLineCharGlobal," ");const c=this.rules.other.nonSpaceChar.test(s),f=this.rules.other.startingSpaceChar.test(s)&&this.rules.other.endingSpaceChar.test(s);return c&&f&&(s=s.substring(1,s.length-1)),{type:"codespan",raw:i[0],text:s}}}br(l){const i=this.rules.inline.br.exec(l);if(i)return{type:"br",raw:i[0]}}del(l){const i=this.rules.inline.del.exec(l);if(i)return{type:"del",raw:i[0],text:i[2],tokens:this.lexer.inlineTokens(i[2])}}autolink(l){const i=this.rules.inline.autolink.exec(l);if(i){let s,c;return i[2]==="@"?(s=i[1],c="mailto:"+s):(s=i[1],c=s),{type:"link",raw:i[0],text:s,href:c,tokens:[{type:"text",raw:s,text:s}]}}}url(l){var s;let i;if(i=this.rules.inline.url.exec(l)){let c,f;if(i[2]==="@")c=i[0],f="mailto:"+c;else{let d;do d=i[0],i[0]=((s=this.rules.inline._backpedal.exec(i[0]))==null?void 0:s[0])??"";while(d!==i[0]);c=i[0],i[1]==="www."?f="http://"+i[0]:f=i[0]}return{type:"link",raw:i[0],text:c,href:f,tokens:[{type:"text",raw:c,text:c}]}}}inlineText(l){const i=this.rules.inline.text.exec(l);if(i){const s=this.lexer.state.inRawBlock;return{type:"text",raw:i[0],text:i[0],escaped:s}}}}class Dt{constructor(l){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=l||sa,this.options.tokenizer=this.options.tokenizer||new Vu,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 i={other:it,block:Du.normal,inline:ti.normal};this.options.pedantic?(i.block=Du.pedantic,i.inline=ti.pedantic):this.options.gfm&&(i.block=Du.gfm,this.options.breaks?i.inline=ti.breaks:i.inline=ti.gfm),this.tokenizer.rules=i}static get rules(){return{block:Du,inline:ti}}static lex(l,i){return new Dt(i).lex(l)}static lexInline(l,i){return new Dt(i).inlineTokens(l)}lex(l){l=l.replace(it.carriageReturn,`
|
|
216
|
+
`),this.blockTokens(l,this.tokens);for(let i=0;i<this.inlineQueue.length;i++){const s=this.inlineQueue[i];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(l,i=[],s=!1){var c,f,d;for(this.options.pedantic&&(l=l.replace(it.tabCharGlobal," ").replace(it.spaceLine,""));l;){let g;if((f=(c=this.options.extensions)==null?void 0:c.block)!=null&&f.some(h=>(g=h.call({lexer:this},l,i))?(l=l.substring(g.raw.length),i.push(g),!0):!1))continue;if(g=this.tokenizer.space(l)){l=l.substring(g.raw.length);const h=i.at(-1);g.raw.length===1&&h!==void 0?h.raw+=`
|
|
219
217
|
`:i.push(g);continue}if(g=this.tokenizer.code(l)){l=l.substring(g.raw.length);const h=i.at(-1);(h==null?void 0:h.type)==="paragraph"||(h==null?void 0:h.type)==="text"?(h.raw+=`
|
|
220
218
|
`+g.raw,h.text+=`
|
|
221
219
|
`+g.text,this.inlineQueue.at(-1).src=h.text):i.push(g);continue}if(g=this.tokenizer.fences(l)){l=l.substring(g.raw.length),i.push(g);continue}if(g=this.tokenizer.heading(l)){l=l.substring(g.raw.length),i.push(g);continue}if(g=this.tokenizer.hr(l)){l=l.substring(g.raw.length),i.push(g);continue}if(g=this.tokenizer.blockquote(l)){l=l.substring(g.raw.length),i.push(g);continue}if(g=this.tokenizer.list(l)){l=l.substring(g.raw.length),i.push(g);continue}if(g=this.tokenizer.html(l)){l=l.substring(g.raw.length),i.push(g);continue}if(g=this.tokenizer.def(l)){l=l.substring(g.raw.length);const h=i.at(-1);(h==null?void 0:h.type)==="paragraph"||(h==null?void 0:h.type)==="text"?(h.raw+=`
|
|
222
220
|
`+g.raw,h.text+=`
|
|
223
|
-
`+g.raw,this.inlineQueue.at(-1).src=h.text):this.tokens.links[g.tag]||(this.tokens.links[g.tag]={href:g.href,title:g.title});continue}if(g=this.tokenizer.table(l)){l=l.substring(g.raw.length),i.push(g);continue}if(g=this.tokenizer.lheading(l)){l=l.substring(g.raw.length),i.push(g);continue}let p=l;if((d=this.options.extensions)!=null&&d.startBlock){let h=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&&(h=Math.min(h,S))}),h<1/0&&h>=0&&(p=l.substring(0,h+1))}if(this.state.top&&(g=this.tokenizer.paragraph(p))){const h=i.at(-1);
|
|
221
|
+
`+g.raw,this.inlineQueue.at(-1).src=h.text):this.tokens.links[g.tag]||(this.tokens.links[g.tag]={href:g.href,title:g.title});continue}if(g=this.tokenizer.table(l)){l=l.substring(g.raw.length),i.push(g);continue}if(g=this.tokenizer.lheading(l)){l=l.substring(g.raw.length),i.push(g);continue}let p=l;if((d=this.options.extensions)!=null&&d.startBlock){let h=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&&(h=Math.min(h,S))}),h<1/0&&h>=0&&(p=l.substring(0,h+1))}if(this.state.top&&(g=this.tokenizer.paragraph(p))){const h=i.at(-1);s&&(h==null?void 0:h.type)==="paragraph"?(h.raw+=`
|
|
224
222
|
`+g.raw,h.text+=`
|
|
225
|
-
`+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):i.push(g),
|
|
223
|
+
`+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):i.push(g),s=p.length!==l.length,l=l.substring(g.raw.length);continue}if(g=this.tokenizer.text(l)){l=l.substring(g.raw.length);const h=i.at(-1);(h==null?void 0:h.type)==="text"?(h.raw+=`
|
|
226
224
|
`+g.raw,h.text+=`
|
|
227
|
-
`+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):i.push(g);continue}if(l){const h="Infinite loop on byte: "+l.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return this.state.top=!0,i}inline(l,i=[]){return this.inlineQueue.push({src:l,tokens:i}),i}inlineTokens(l,i=[]){var g,p,h;let
|
|
228
|
-
`;return c?'<pre><code class="language-'+Xt(c)+'">'+(
|
|
229
|
-
`:"<pre><code>"+(
|
|
225
|
+
`+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):i.push(g);continue}if(l){const h="Infinite loop on byte: "+l.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return this.state.top=!0,i}inline(l,i=[]){return this.inlineQueue.push({src:l,tokens:i}),i}inlineTokens(l,i=[]){var g,p,h;let s=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(s))!=null;)y.includes(c[0].slice(c[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,c.index)+"["+"a".repeat(c[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(c=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,c.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(c=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,c.index)+"["+"a".repeat(c[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let f=!1,d="";for(;l;){f||(d=""),f=!1;let y;if((p=(g=this.options.extensions)==null?void 0:g.inline)!=null&&p.some(b=>(y=b.call({lexer:this},l,i))?(l=l.substring(y.raw.length),i.push(y),!0):!1))continue;if(y=this.tokenizer.escape(l)){l=l.substring(y.raw.length),i.push(y);continue}if(y=this.tokenizer.tag(l)){l=l.substring(y.raw.length),i.push(y);continue}if(y=this.tokenizer.link(l)){l=l.substring(y.raw.length),i.push(y);continue}if(y=this.tokenizer.reflink(l,this.tokens.links)){l=l.substring(y.raw.length);const b=i.at(-1);y.type==="text"&&(b==null?void 0:b.type)==="text"?(b.raw+=y.raw,b.text+=y.text):i.push(y);continue}if(y=this.tokenizer.emStrong(l,s,d)){l=l.substring(y.raw.length),i.push(y);continue}if(y=this.tokenizer.codespan(l)){l=l.substring(y.raw.length),i.push(y);continue}if(y=this.tokenizer.br(l)){l=l.substring(y.raw.length),i.push(y);continue}if(y=this.tokenizer.del(l)){l=l.substring(y.raw.length),i.push(y);continue}if(y=this.tokenizer.autolink(l)){l=l.substring(y.raw.length),i.push(y);continue}if(!this.state.inLink&&(y=this.tokenizer.url(l))){l=l.substring(y.raw.length),i.push(y);continue}let S=l;if((h=this.options.extensions)!=null&&h.startInline){let b=1/0;const A=l.slice(1);let R;this.options.extensions.startInline.forEach(k=>{R=k.call({lexer:this},A),typeof R=="number"&&R>=0&&(b=Math.min(b,R))}),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)!=="_"&&(d=y.raw.slice(-1)),f=!0;const b=i.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=y.raw,b.text+=y.text):i.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 i}}class Yu{constructor(l){Oe(this,"options");Oe(this,"parser");this.options=l||sa}space(l){return""}code({text:l,lang:i,escaped:s}){var d;const c=(d=(i||"").match(it.notSpaceStart))==null?void 0:d[0],f=l.replace(it.endingNewline,"")+`
|
|
226
|
+
`;return c?'<pre><code class="language-'+Xt(c)+'">'+(s?f:Xt(f,!0))+`</code></pre>
|
|
227
|
+
`:"<pre><code>"+(s?f:Xt(f,!0))+`</code></pre>
|
|
230
228
|
`}blockquote({tokens:l}){return`<blockquote>
|
|
231
229
|
${this.parser.parse(l)}</blockquote>
|
|
232
230
|
`}html({text:l}){return l}heading({tokens:l,depth:i}){return`<h${i}>${this.parser.parseInline(l)}</h${i}>
|
|
233
231
|
`}hr(l){return`<hr>
|
|
234
|
-
`}list(l){const i=l.ordered,
|
|
232
|
+
`}list(l){const i=l.ordered,s=l.start;let c="";for(let g=0;g<l.items.length;g++){const p=l.items[g];c+=this.listitem(p)}const f=i?"ol":"ul",d=i&&s!==1?' start="'+s+'"':"";return"<"+f+d+`>
|
|
235
233
|
`+c+"</"+f+`>
|
|
236
|
-
`}listitem(l){var
|
|
234
|
+
`}listitem(l){var s;let i="";if(l.task){const c=this.checkbox({checked:!!l.checked});l.loose?((s=l.tokens[0])==null?void 0:s.type)==="paragraph"?(l.tokens[0].text=c+" "+l.tokens[0].text,l.tokens[0].tokens&&l.tokens[0].tokens.length>0&&l.tokens[0].tokens[0].type==="text"&&(l.tokens[0].tokens[0].text=c+" "+Xt(l.tokens[0].tokens[0].text),l.tokens[0].tokens[0].escaped=!0)):l.tokens.unshift({type:"text",raw:c+" ",text:c+" ",escaped:!0}):i+=c+" "}return i+=this.parser.parse(l.tokens,!!l.loose),`<li>${i}</li>
|
|
237
235
|
`}checkbox({checked:l}){return"<input "+(l?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:l}){return`<p>${this.parser.parseInline(l)}</p>
|
|
238
|
-
`}table(l){let i="",
|
|
236
|
+
`}table(l){let i="",s="";for(let f=0;f<l.header.length;f++)s+=this.tablecell(l.header[f]);i+=this.tablerow({text:s});let c="";for(let f=0;f<l.rows.length;f++){const d=l.rows[f];s="";for(let g=0;g<d.length;g++)s+=this.tablecell(d[g]);c+=this.tablerow({text:s})}return c&&(c=`<tbody>${c}</tbody>`),`<table>
|
|
239
237
|
<thead>
|
|
240
238
|
`+i+`</thead>
|
|
241
239
|
`+c+`</table>
|
|
242
240
|
`}tablerow({text:l}){return`<tr>
|
|
243
241
|
${l}</tr>
|
|
244
|
-
`}tablecell(l){const i=this.parser.parseInline(l.tokens),
|
|
245
|
-
`}strong({tokens:l}){return`<strong>${this.parser.parseInline(l)}</strong>`}em({tokens:l}){return`<em>${this.parser.parseInline(l)}</em>`}codespan({text:l}){return`<code>${Xt(l,!0)}</code>`}br(l){return"<br>"}del({tokens:l}){return`<del>${this.parser.parseInline(l)}</del>`}link({href:l,title:i,tokens:
|
|
246
|
-
`+this.renderer.text(h);i?
|
|
247
|
-
Please report this to https://github.com/markedjs/marked.`,l){const c="<p>An error occurred:</p><pre>"+Xt(u.message+"",!0)+"</pre>";return i?Promise.resolve(c):c}if(i)return Promise.reject(u);throw u}}}const la=new qx;function Te(r,l){return la.parse(r,l)}Te.options=Te.setOptions=function(r){return la.setOptions(r),Te.defaults=la.defaults,hg(Te.defaults),Te};Te.getDefaults=Ko;Te.defaults=ua;Te.use=function(...r){return la.use(...r),Te.defaults=la.defaults,hg(Te.defaults),Te};Te.walkTokens=function(r,l){return la.walkTokens(r,l)};Te.parseInline=la.parseInline;Te.Parser=jt;Te.parser=jt.parse;Te.Renderer=Ys;Te.TextRenderer=nc;Te.Lexer=Dt;Te.lexer=Dt.lex;Te.Tokenizer=Vs;Te.Hooks=ii;Te.parse=Te;Te.options;Te.setOptions;Te.use;Te.walkTokens;Te.parseInline;jt.parse;Dt.lex;function hi(r){if(!r)return"";try{return Te.parse(r,{async:!1,gfm:!0,breaks:!0})}catch(l){return console.error("Error rendering markdown:",l),r}}function Gx({isOpen:r,title:l,message:i,confirmLabel:u,cancelLabel:c,onConfirm:f,onCancel:d}){const{t:g}=nt(),[p,h]=O.useState(!0);if(!r)return null;const y=async()=>{await f({withSampleData:p})},S=b=>{b.key==="Escape"&&d()};return E.jsxs("div",{className:"ConfirmDialog",children:[E.jsx("div",{className:"ConfirmDialog-backdrop",onClick:d,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:i}),E.jsx("div",{className:"ConfirmDialog-checkbox mt-3",children:E.jsxs("label",{children:[E.jsx("input",{type:"checkbox",checked:p,onChange:b=>h(b.target.checked)}),E.jsx("span",{className:"ml-2",children:g("generateSiteWithData")})]})})]}),E.jsxs("div",{className:"ConfirmDialog-footer",children:[E.jsx(et,{onClick:d,severity:"secondary",className:"ConfirmDialog-button",children:c||g("cancel")}),E.jsx(et,{onClick:y,className:"ConfirmDialog-button",children:u||g("confirm")})]})]})]})}const $x=r=>typeof r=="boolean"||r instanceof Boolean,Vx=r=>typeof r=="number"||r instanceof Number,Yx=r=>typeof r=="bigint"||r instanceof BigInt,Rg=r=>!!r&&r instanceof Date,Qx=r=>typeof r=="string"||r instanceof String,Xx=r=>Array.isArray(r),Zx=r=>typeof r=="object"&&r!==null,wg=r=>!!r&&r instanceof Object&&typeof r=="function";function Qs(r,l){return l===void 0&&(l=!1),!r||l?`"${r}"`:r}function Kx(r,l,i){return i?JSON.stringify(r):l?`"${r}"`:r}function Ng(r){let{field:l,value:i,data:u,lastElement:c,openBracket:f,closeBracket:d,level:g,style:p,shouldExpandNode:h,clickToExpandNode:y,outerRef:S,beforeExpandChange:b}=r;const A=O.useRef(!1),[R,k]=O.useState(()=>h(g,i,l)),M=O.useRef(null);O.useEffect(()=>{A.current?k(h(g,i,l)):A.current=!0},[h]);const H=O.useId();if(u.length===0)return Jx({field:l,openBracket:f,closeBracket:d,lastElement:c,style:p});const G=R?p.collapseIcon:p.expandIcon,$=R?p.ariaLables.collapseJson:p.ariaLables.expandJson,F=g+1,X=u.length-1,ue=J=>{R!==J&&(!b||b({level:g,value:i,field:l,newExpandValue:J}))&&k(J)},W=J=>{if(J.key==="ArrowRight"||J.key==="ArrowLeft")J.preventDefault(),ue(J.key==="ArrowRight");else if(J.key==="ArrowUp"||J.key==="ArrowDown"){J.preventDefault();const re=J.key==="ArrowUp"?-1:1;if(!S.current)return;const le=S.current.querySelectorAll("[role=button]");let me=-1;for(let Me=0;Me<le.length;Me++)if(le[Me].tabIndex===0){me=Me;break}if(me<0)return;const ft=(me+re+le.length)%le.length;le[me].tabIndex=-1,le[ft].tabIndex=0,le[ft].focus()}},K=()=>{var J;ue(!R);const re=M.current;if(!re)return;const le=(J=S.current)===null||J===void 0?void 0:J.querySelector('[role=button][tabindex="0"]');le&&(le.tabIndex=-1),re.tabIndex=0,re.focus()};return O.createElement("div",{className:p.basicChildStyle,role:"treeitem","aria-expanded":R,"aria-selected":void 0},O.createElement("span",{className:G,onClick:K,onKeyDown:W,role:"button","aria-label":$,"aria-expanded":R,"aria-controls":R?H:void 0,ref:M,tabIndex:g===0?0:-1}),(l||l==="")&&(y?O.createElement("span",{className:p.clickableLabel,onClick:K,onKeyDown:W},Qs(l,p.quotesForFieldNames),":"):O.createElement("span",{className:p.label},Qs(l,p.quotesForFieldNames),":")),O.createElement("span",{className:p.punctuation},f),R?O.createElement("ul",{id:H,role:"group",className:p.childFieldsContainer},u.map((J,re)=>O.createElement(Ag,{key:J[0]||re,field:J[0],value:J[1],style:p,lastElement:re===X,level:F,shouldExpandNode:h,clickToExpandNode:y,outerRef:S}))):O.createElement("span",{className:p.collapsedContent,onClick:K,onKeyDown:W}),O.createElement("span",{className:p.punctuation},d),!c&&O.createElement("span",{className:p.punctuation},","))}function Jx(r){let{field:l,openBracket:i,closeBracket:u,lastElement:c,style:f}=r;return O.createElement("div",{className:f.basicChildStyle,role:"treeitem","aria-selected":void 0},(l||l==="")&&O.createElement("span",{className:f.label},Qs(l,f.quotesForFieldNames),":"),O.createElement("span",{className:f.punctuation},i),O.createElement("span",{className:f.punctuation},u),!c&&O.createElement("span",{className:f.punctuation},","))}function Fx(r){let{field:l,value:i,style:u,lastElement:c,shouldExpandNode:f,clickToExpandNode:d,level:g,outerRef:p,beforeExpandChange:h}=r;return Ng({field:l,value:i,lastElement:c||!1,level:g,openBracket:"{",closeBracket:"}",style:u,shouldExpandNode:f,clickToExpandNode:d,data:Object.keys(i).map(y=>[y,i[y]]),outerRef:p,beforeExpandChange:h})}function Wx(r){let{field:l,value:i,style:u,lastElement:c,level:f,shouldExpandNode:d,clickToExpandNode:g,outerRef:p,beforeExpandChange:h}=r;return Ng({field:l,value:i,lastElement:c||!1,level:f,openBracket:"[",closeBracket:"]",style:u,shouldExpandNode:d,clickToExpandNode:g,data:i.map(y=>[void 0,y]),outerRef:p,beforeExpandChange:h})}function Px(r){let{field:l,value:i,style:u,lastElement:c}=r,f,d=u.otherValue;return i===null?(f="null",d=u.nullValue):i===void 0?(f="undefined",d=u.undefinedValue):Qx(i)?(f=Kx(i,!u.noQuotesForStringValues,u.stringifyStringValues),d=u.stringValue):$x(i)?(f=i?"true":"false",d=u.booleanValue):Vx(i)?(f=i.toString(),d=u.numberValue):Yx(i)?(f=`${i.toString()}n`,d=u.numberValue):Rg(i)?f=i.toISOString():wg(i)?f="function() { }":f=i.toString(),O.createElement("div",{className:u.basicChildStyle,role:"treeitem","aria-selected":void 0},(l||l==="")&&O.createElement("span",{className:u.label},Qs(l,u.quotesForFieldNames),":"),O.createElement("span",{className:d},f),!c&&O.createElement("span",{className:u.punctuation},","))}function Ag(r){const l=r.value;return Xx(l)?O.createElement(Wx,Object.assign({},r)):Zx(l)&&!Rg(l)&&!wg(l)?O.createElement(Fx,Object.assign({},r)):O.createElement(Px,Object.assign({},r))}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 Ix={collapseJson:"collapse JSON",expandJson:"expand JSON"},qp={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:Ix,stringifyStringValues:!1},eE=()=>!0,Gp=r=>{let{data:l,style:i=qp,shouldExpandNode:u=eE,clickToExpandNode:c=!1,beforeExpandChange:f,...d}=r;const g=O.useRef(null);return O.createElement("div",Object.assign({"aria-label":"JSON view"},d,{className:i.container,ref:g,role:"tree"}),O.createElement(Ag,{value:l,style:{...qp,...i},lastElement:!0,level:0,shouldExpandNode:u,clickToExpandNode:c,outerRef:g,beforeExpandChange:f}))};function tE(r){const l=Object.keys(r),i=l.length>0?l[0]:void 0;return(u,c,f={})=>{if(!i)return f.default??u;const d=r[c]??r[i],g=u.split(".");let p=d;for(const h of g){if(typeof p=="string"||!p||!(h in p))return f.default??u;p=p[h]}return typeof p=="string"?p:f.default??u}}function nE({siteSchema:r,schemaTranslate:l}){const i=new Set;return E.jsx("ul",{children:E.jsx(Uo,{schema:r,schemaT:l,typeName:"home",displayedNodeTypeNames:i})})}function Uo({schema:r,schemaT:l,typeName:i,depth:u=0,displayedNodeTypeNames:c}){const{i18n:f}=nt(),d=aE(r,i);if(!d)return null;const g=d.routingChildren||[],p=d.regularChildren||[],h=d.lists||[],y=d.documentKind==="routing",S=l(`nodeTypes.${i}.label`,f.language,{default:i});return c.has(i)?E.jsx("li",{children:E.jsxs("div",{children:[y?E.jsx("strong",{children:S}):S," (",E.jsx("code",{children:i}),")"]})}):(c.add(i),E.jsxs("li",{children:[E.jsxs("div",{children:[y?E.jsx("strong",{children:S}):S," (",E.jsx("code",{children:i}),")"]}),h.map(b=>E.jsxs("div",{style:{marginLeft:"30px",color:"#999",fontStyle:"italic"},children:[l(`nodeTypes.${i}.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)),g.length>0&&E.jsx("ul",{children:g.map(b=>E.jsx(Uo,{schema:r,schemaT:l,typeName:b,depth:u+1,displayedNodeTypeNames:c},b))}),p.length>0&&E.jsx("ul",{children:p.map(b=>E.jsx(Uo,{schema:r,schemaT:l,typeName:b,depth:u+1,displayedNodeTypeNames:c},b))})]}))}function aE(r,l){var i;return(i=r.nodeTypes)==null?void 0:i.find(u=>u.kind==="document"&&u.typeName===l)}function lE({step:r}){const{t:l,i18n:i}=nt(),[u,c]=O.useState("tree"),{siteSchema:f,l10n:d}=r,g=tE(d),p=(h,y,S)=>h===0;return E.jsxs("div",{className:"SchemaViewer",children:[E.jsxs("div",{className:"SchemaViewer-main",children:[E.jsx("div",{className:"SchemaViewer-tree",style:{display:u==="tree"?"block":"none"},children:E.jsx(nE,{siteSchema:f,schemaTranslate:g})}),E.jsx("div",{className:"SchemaViewer-locales",style:{display:u==="locales"?"block":"none"},children:E.jsx(Gp,{data:d,shouldExpandNode:p})}),E.jsx("div",{className:"SchemaViewer-schema",style:{display:u==="schema"?"block":"none"},children:E.jsx(Gp,{data:f,shouldExpandNode:p})})]}),E.jsxs("div",{className:"SchemaViewer-tabs",children:[E.jsx(et,{className:`SchemaViewer-tab ${u==="tree"?"active":""}`,onClick:()=>c("tree"),children:l("treeView")}),E.jsx(et,{className:`SchemaViewer-tab ${u==="schema"?"active":""}`,onClick:()=>c("schema"),children:l("siteSchema")}),E.jsx(et,{className:`SchemaViewer-tab ${u==="locales"?"active":""}`,onClick:()=>c("locales"),children:l("labels")})]})]})}function iE({step:r}){const{t:l}=nt(),{workSession:i,appendNewStep:u}=sa(),[c,f]=O.useState(!1),[d,g]=O.useState(!1),[p,h]=O.useState(!1),[y,S]=O.useState(void 0),b=Pa(),A=()=>{f(!c)},R=async M=>{if(!i)return;h(!0),S(void 0);const H=ri();if(!H){S(l("sessionExpired")),h(!1);return}try{const G=await Un({command:"updateSiteSchema",sessionToken:H,prompt:M,fromStepNumber:r.stepNumber});G.success&&G.result?(f(!1),u(G.result),b(`/step/${G.result.stepNumber}`)):S(l("promptSubmissionFailed"))}catch(G){console.error("Error updating schema:",G),S(l("errorOccurred"))}finally{h(!1)}},k=async({withSampleData:M})=>{if(!i)return;h(!0),S(void 0),g(!1);const H=ri();if(!H){S(l("sessionExpired")),h(!1);return}try{const G=await Un({command:"generateSite",sessionToken:H,fromStepNumber:r.stepNumber,withSampleData:M});G.success&&G.result?(u(G.result),b(`/step/${G.result.stepNumber}`)):S(l("generationFailed"))}catch(G){console.error("Error generating site:",G),S(l("errorOccurred"))}finally{h(!1)}};return E.jsx(Et,{className:"p-4",children:E.jsxs("div",{className:"CompletedStep",children:[E.jsx(lE,{step:r}),r.explanation&&E.jsxs("div",{className:"CompletedStep-explanation",children:[E.jsx("h3",{children:l("explanation")}),E.jsx("div",{className:"markdown-content",dangerouslySetInnerHTML:{__html:hi(r.explanation)}})]}),E.jsxs("div",{className:"CompletedStep-actions",children:[E.jsx(et,{onClick:A,className:"CompletedStep-button",children:l("modifySchema")}),E.jsx(et,{onClick:()=>g(!0),className:"CompletedStep-button",children:l("generateTheWebsite")})]}),c&&E.jsxs("div",{className:"CompletedStep-updateForm",children:[E.jsx("h3",{children:l("updateSchema")}),E.jsx(dg,{placeholder:l("updatePromptPlaceholder"),submitLabel:l("modifySchema"),onSubmit:R,isLoading:p,error:y})]}),E.jsx(Gx,{isOpen:d,title:l("generateTheWebsite"),message:l("aboutToGenerateWebsite"),confirmLabel:l("confirm"),onConfirm:k,onCancel:()=>g(!1)}),y&&!c&&E.jsx("div",{className:"Alert error mt-3",children:E.jsx("p",{children:y})})]})})}function sE({step:r}){const{t:l}=nt();return E.jsx(Et,{className:"p-4",children:E.jsxs("div",{className:"FailedStep",children:[E.jsx("p",{className:"FailedStep-message",children:l("stepFailed")}),r.explanation&&E.jsx("div",{className:"FailedStep-explanation",children:E.jsx("div",{className:"markdown-content",dangerouslySetInnerHTML:{__html:hi(r.explanation)}})})]})})}function uE({step:r}){const{t:l}=nt(),i=()=>{const u=`
|
|
242
|
+
`}tablecell(l){const i=this.parser.parseInline(l.tokens),s=l.header?"th":"td";return(l.align?`<${s} align="${l.align}">`:`<${s}>`)+i+`</${s}>
|
|
243
|
+
`}strong({tokens:l}){return`<strong>${this.parser.parseInline(l)}</strong>`}em({tokens:l}){return`<em>${this.parser.parseInline(l)}</em>`}codespan({text:l}){return`<code>${Xt(l,!0)}</code>`}br(l){return"<br>"}del({tokens:l}){return`<del>${this.parser.parseInline(l)}</del>`}link({href:l,title:i,tokens:s}){const c=this.parser.parseInline(s),f=Up(l);if(f===null)return c;l=f;let d='<a href="'+l+'"';return i&&(d+=' title="'+Xt(i)+'"'),d+=">"+c+"</a>",d}image({href:l,title:i,text:s}){const c=Up(l);if(c===null)return Xt(s);l=c;let f=`<img src="${l}" alt="${s}"`;return i&&(f+=` title="${Xt(i)}"`),f+=">",f}text(l){return"tokens"in l&&l.tokens?this.parser.parseInline(l.tokens):"escaped"in l&&l.escaped?l.text:Xt(l.text)}}class nc{strong({text:l}){return l}em({text:l}){return l}codespan({text:l}){return l}del({text:l}){return l}html({text:l}){return l}text({text:l}){return l}link({text:l}){return""+l}image({text:l}){return""+l}br(){return""}}class jt{constructor(l){Oe(this,"options");Oe(this,"renderer");Oe(this,"textRenderer");this.options=l||sa,this.options.renderer=this.options.renderer||new Yu,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new nc}static parse(l,i){return new jt(i).parse(l)}static parseInline(l,i){return new jt(i).parseInline(l)}parse(l,i=!0){var c,f;let s="";for(let d=0;d<l.length;d++){const g=l[d];if((f=(c=this.options.extensions)==null?void 0:c.renderers)!=null&&f[g.type]){const h=g,y=this.options.extensions.renderers[h.type].call({parser:this},h);if(y!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(h.type)){s+=y||"";continue}}const p=g;switch(p.type){case"space":{s+=this.renderer.space(p);continue}case"hr":{s+=this.renderer.hr(p);continue}case"heading":{s+=this.renderer.heading(p);continue}case"code":{s+=this.renderer.code(p);continue}case"table":{s+=this.renderer.table(p);continue}case"blockquote":{s+=this.renderer.blockquote(p);continue}case"list":{s+=this.renderer.list(p);continue}case"html":{s+=this.renderer.html(p);continue}case"paragraph":{s+=this.renderer.paragraph(p);continue}case"text":{let h=p,y=this.renderer.text(h);for(;d+1<l.length&&l[d+1].type==="text";)h=l[++d],y+=`
|
|
244
|
+
`+this.renderer.text(h);i?s+=this.renderer.paragraph({type:"paragraph",raw:y,text:y,tokens:[{type:"text",raw:y,text:y,escaped:!0}]}):s+=y;continue}default:{const h='Token with "'+p.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return s}parseInline(l,i=this.renderer){var c,f;let s="";for(let d=0;d<l.length;d++){const g=l[d];if((f=(c=this.options.extensions)==null?void 0:c.renderers)!=null&&f[g.type]){const h=this.options.extensions.renderers[g.type].call({parser:this},g);if(h!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(g.type)){s+=h||"";continue}}const p=g;switch(p.type){case"escape":{s+=i.text(p);break}case"html":{s+=i.html(p);break}case"link":{s+=i.link(p);break}case"image":{s+=i.image(p);break}case"strong":{s+=i.strong(p);break}case"em":{s+=i.em(p);break}case"codespan":{s+=i.codespan(p);break}case"br":{s+=i.br(p);break}case"del":{s+=i.del(p);break}case"text":{s+=i.text(p);break}default:{const h='Token with "'+p.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return s}}class ii{constructor(l){Oe(this,"options");Oe(this,"block");this.options=l||sa}preprocess(l){return l}postprocess(l){return l}processAllTokens(l){return l}provideLexer(){return this.block?Dt.lex:Dt.lexInline}provideParser(){return this.block?jt.parse:jt.parseInline}}Oe(ii,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class qx{constructor(...l){Oe(this,"defaults",Ko());Oe(this,"options",this.setOptions);Oe(this,"parse",this.parseMarkdown(!0));Oe(this,"parseInline",this.parseMarkdown(!1));Oe(this,"Parser",jt);Oe(this,"Renderer",Yu);Oe(this,"TextRenderer",nc);Oe(this,"Lexer",Dt);Oe(this,"Tokenizer",Vu);Oe(this,"Hooks",ii);this.use(...l)}walkTokens(l,i){var c,f;let s=[];for(const d of l)switch(s=s.concat(i.call(this,d)),d.type){case"table":{const g=d;for(const p of g.header)s=s.concat(this.walkTokens(p.tokens,i));for(const p of g.rows)for(const h of p)s=s.concat(this.walkTokens(h.tokens,i));break}case"list":{const g=d;s=s.concat(this.walkTokens(g.items,i));break}default:{const g=d;(f=(c=this.defaults.extensions)==null?void 0:c.childTokens)!=null&&f[g.type]?this.defaults.extensions.childTokens[g.type].forEach(p=>{const h=g[p].flat(1/0);s=s.concat(this.walkTokens(h,i))}):g.tokens&&(s=s.concat(this.walkTokens(g.tokens,i)))}}return s}use(...l){const i=this.defaults.extensions||{renderers:{},childTokens:{}};return l.forEach(s=>{const c={...s};if(c.async=this.defaults.async||c.async||!1,s.extensions&&(s.extensions.forEach(f=>{if(!f.name)throw new Error("extension name required");if("renderer"in f){const d=i.renderers[f.name];d?i.renderers[f.name]=function(...g){let p=f.renderer.apply(this,g);return p===!1&&(p=d.apply(this,g)),p}:i.renderers[f.name]=f.renderer}if("tokenizer"in f){if(!f.level||f.level!=="block"&&f.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const d=i[f.level];d?d.unshift(f.tokenizer):i[f.level]=[f.tokenizer],f.start&&(f.level==="block"?i.startBlock?i.startBlock.push(f.start):i.startBlock=[f.start]:f.level==="inline"&&(i.startInline?i.startInline.push(f.start):i.startInline=[f.start]))}"childTokens"in f&&f.childTokens&&(i.childTokens[f.name]=f.childTokens)}),c.extensions=i),s.renderer){const f=this.defaults.renderer||new Yu(this.defaults);for(const d in s.renderer){if(!(d in f))throw new Error(`renderer '${d}' does not exist`);if(["options","parser"].includes(d))continue;const g=d,p=s.renderer[g],h=f[g];f[g]=(...y)=>{let S=p.apply(f,y);return S===!1&&(S=h.apply(f,y)),S||""}}c.renderer=f}if(s.tokenizer){const f=this.defaults.tokenizer||new Vu(this.defaults);for(const d in s.tokenizer){if(!(d in f))throw new Error(`tokenizer '${d}' does not exist`);if(["options","rules","lexer"].includes(d))continue;const g=d,p=s.tokenizer[g],h=f[g];f[g]=(...y)=>{let S=p.apply(f,y);return S===!1&&(S=h.apply(f,y)),S}}c.tokenizer=f}if(s.hooks){const f=this.defaults.hooks||new ii;for(const d in s.hooks){if(!(d in f))throw new Error(`hook '${d}' does not exist`);if(["options","block"].includes(d))continue;const g=d,p=s.hooks[g],h=f[g];ii.passThroughHooks.has(d)?f[g]=y=>{if(this.defaults.async)return Promise.resolve(p.call(f,y)).then(b=>h.call(f,b));const S=p.call(f,y);return h.call(f,S)}:f[g]=(...y)=>{let S=p.apply(f,y);return S===!1&&(S=h.apply(f,y)),S}}c.hooks=f}if(s.walkTokens){const f=this.defaults.walkTokens,d=s.walkTokens;c.walkTokens=function(g){let p=[];return p.push(d.call(this,g)),f&&(p=p.concat(f.call(this,g))),p}}this.defaults={...this.defaults,...c}}),this}setOptions(l){return this.defaults={...this.defaults,...l},this}lexer(l,i){return Dt.lex(l,i??this.defaults)}parser(l,i){return jt.parse(l,i??this.defaults)}parseMarkdown(l){return(s,c)=>{const f={...c},d={...this.defaults,...f},g=this.onError(!!d.silent,!!d.async);if(this.defaults.async===!0&&f.async===!1)return g(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 g(new Error("marked(): input parameter is undefined or null"));if(typeof s!="string")return g(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(s)+", string expected"));d.hooks&&(d.hooks.options=d,d.hooks.block=l);const p=d.hooks?d.hooks.provideLexer():l?Dt.lex:Dt.lexInline,h=d.hooks?d.hooks.provideParser():l?jt.parse:jt.parseInline;if(d.async)return Promise.resolve(d.hooks?d.hooks.preprocess(s):s).then(y=>p(y,d)).then(y=>d.hooks?d.hooks.processAllTokens(y):y).then(y=>d.walkTokens?Promise.all(this.walkTokens(y,d.walkTokens)).then(()=>y):y).then(y=>h(y,d)).then(y=>d.hooks?d.hooks.postprocess(y):y).catch(g);try{d.hooks&&(s=d.hooks.preprocess(s));let y=p(s,d);d.hooks&&(y=d.hooks.processAllTokens(y)),d.walkTokens&&this.walkTokens(y,d.walkTokens);let S=h(y,d);return d.hooks&&(S=d.hooks.postprocess(S)),S}catch(y){return g(y)}}}onError(l,i){return s=>{if(s.message+=`
|
|
245
|
+
Please report this to https://github.com/markedjs/marked.`,l){const c="<p>An error occurred:</p><pre>"+Xt(s.message+"",!0)+"</pre>";return i?Promise.resolve(c):c}if(i)return Promise.reject(s);throw s}}}const la=new qx;function Te(r,l){return la.parse(r,l)}Te.options=Te.setOptions=function(r){return la.setOptions(r),Te.defaults=la.defaults,hg(Te.defaults),Te};Te.getDefaults=Ko;Te.defaults=sa;Te.use=function(...r){return la.use(...r),Te.defaults=la.defaults,hg(Te.defaults),Te};Te.walkTokens=function(r,l){return la.walkTokens(r,l)};Te.parseInline=la.parseInline;Te.Parser=jt;Te.parser=jt.parse;Te.Renderer=Yu;Te.TextRenderer=nc;Te.Lexer=Dt;Te.lexer=Dt.lex;Te.Tokenizer=Vu;Te.Hooks=ii;Te.parse=Te;Te.options;Te.setOptions;Te.use;Te.walkTokens;Te.parseInline;jt.parse;Dt.lex;function Gx(r){if(!r)return"";try{return Te.parse(r,{async:!1,gfm:!0,breaks:!0})}catch(l){return console.error("Error rendering markdown:",l),r}}function hi({content:r,title:l,variant:i="default",className:s="",children:c}){const f=["Explanation",`Explanation-${i}`,s].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:Gx(r)}}),c]})}function $x({isOpen:r,title:l,message:i,confirmLabel:s,cancelLabel:c,onConfirm:f,onCancel:d}){const{t:g}=nt(),[p,h]=O.useState(!0);if(!r)return null;const y=async()=>{await f({withSampleData:p})},S=b=>{b.key==="Escape"&&d()};return E.jsxs("div",{className:"ConfirmDialog",children:[E.jsx("div",{className:"ConfirmDialog-backdrop",onClick:d,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:i}),E.jsx("div",{className:"ConfirmDialog-checkbox mt-3",children:E.jsxs("label",{children:[E.jsx("input",{type:"checkbox",checked:p,onChange:b=>h(b.target.checked)}),E.jsx("span",{className:"ml-2",children:g("generateSiteWithData")})]})})]}),E.jsxs("div",{className:"ConfirmDialog-footer",children:[E.jsx(et,{onClick:d,severity:"secondary",className:"ConfirmDialog-button",children:c||g("cancel")}),E.jsx(et,{onClick:y,className:"ConfirmDialog-button",children:s||g("confirm")})]})]})]})}const Vx=r=>typeof r=="boolean"||r instanceof Boolean,Yx=r=>typeof r=="number"||r instanceof Number,Qx=r=>typeof r=="bigint"||r instanceof BigInt,Rg=r=>!!r&&r instanceof Date,Xx=r=>typeof r=="string"||r instanceof String,Zx=r=>Array.isArray(r),Kx=r=>typeof r=="object"&&r!==null,wg=r=>!!r&&r instanceof Object&&typeof r=="function";function Qu(r,l){return l===void 0&&(l=!1),!r||l?`"${r}"`:r}function Jx(r,l,i){return i?JSON.stringify(r):l?`"${r}"`:r}function Ng(r){let{field:l,value:i,data:s,lastElement:c,openBracket:f,closeBracket:d,level:g,style:p,shouldExpandNode:h,clickToExpandNode:y,outerRef:S,beforeExpandChange:b}=r;const A=O.useRef(!1),[R,k]=O.useState(()=>h(g,i,l)),M=O.useRef(null);O.useEffect(()=>{A.current?k(h(g,i,l)):A.current=!0},[h]);const H=O.useId();if(s.length===0)return Fx({field:l,openBracket:f,closeBracket:d,lastElement:c,style:p});const G=R?p.collapseIcon:p.expandIcon,$=R?p.ariaLables.collapseJson:p.ariaLables.expandJson,F=g+1,X=s.length-1,se=J=>{R!==J&&(!b||b({level:g,value:i,field:l,newExpandValue:J}))&&k(J)},W=J=>{if(J.key==="ArrowRight"||J.key==="ArrowLeft")J.preventDefault(),se(J.key==="ArrowRight");else if(J.key==="ArrowUp"||J.key==="ArrowDown"){J.preventDefault();const re=J.key==="ArrowUp"?-1:1;if(!S.current)return;const le=S.current.querySelectorAll("[role=button]");let me=-1;for(let Me=0;Me<le.length;Me++)if(le[Me].tabIndex===0){me=Me;break}if(me<0)return;const ft=(me+re+le.length)%le.length;le[me].tabIndex=-1,le[ft].tabIndex=0,le[ft].focus()}},K=()=>{var J;se(!R);const re=M.current;if(!re)return;const le=(J=S.current)===null||J===void 0?void 0:J.querySelector('[role=button][tabindex="0"]');le&&(le.tabIndex=-1),re.tabIndex=0,re.focus()};return O.createElement("div",{className:p.basicChildStyle,role:"treeitem","aria-expanded":R,"aria-selected":void 0},O.createElement("span",{className:G,onClick:K,onKeyDown:W,role:"button","aria-label":$,"aria-expanded":R,"aria-controls":R?H:void 0,ref:M,tabIndex:g===0?0:-1}),(l||l==="")&&(y?O.createElement("span",{className:p.clickableLabel,onClick:K,onKeyDown:W},Qu(l,p.quotesForFieldNames),":"):O.createElement("span",{className:p.label},Qu(l,p.quotesForFieldNames),":")),O.createElement("span",{className:p.punctuation},f),R?O.createElement("ul",{id:H,role:"group",className:p.childFieldsContainer},s.map((J,re)=>O.createElement(Ag,{key:J[0]||re,field:J[0],value:J[1],style:p,lastElement:re===X,level:F,shouldExpandNode:h,clickToExpandNode:y,outerRef:S}))):O.createElement("span",{className:p.collapsedContent,onClick:K,onKeyDown:W}),O.createElement("span",{className:p.punctuation},d),!c&&O.createElement("span",{className:p.punctuation},","))}function Fx(r){let{field:l,openBracket:i,closeBracket:s,lastElement:c,style:f}=r;return O.createElement("div",{className:f.basicChildStyle,role:"treeitem","aria-selected":void 0},(l||l==="")&&O.createElement("span",{className:f.label},Qu(l,f.quotesForFieldNames),":"),O.createElement("span",{className:f.punctuation},i),O.createElement("span",{className:f.punctuation},s),!c&&O.createElement("span",{className:f.punctuation},","))}function Wx(r){let{field:l,value:i,style:s,lastElement:c,shouldExpandNode:f,clickToExpandNode:d,level:g,outerRef:p,beforeExpandChange:h}=r;return Ng({field:l,value:i,lastElement:c||!1,level:g,openBracket:"{",closeBracket:"}",style:s,shouldExpandNode:f,clickToExpandNode:d,data:Object.keys(i).map(y=>[y,i[y]]),outerRef:p,beforeExpandChange:h})}function Px(r){let{field:l,value:i,style:s,lastElement:c,level:f,shouldExpandNode:d,clickToExpandNode:g,outerRef:p,beforeExpandChange:h}=r;return Ng({field:l,value:i,lastElement:c||!1,level:f,openBracket:"[",closeBracket:"]",style:s,shouldExpandNode:d,clickToExpandNode:g,data:i.map(y=>[void 0,y]),outerRef:p,beforeExpandChange:h})}function Ix(r){let{field:l,value:i,style:s,lastElement:c}=r,f,d=s.otherValue;return i===null?(f="null",d=s.nullValue):i===void 0?(f="undefined",d=s.undefinedValue):Xx(i)?(f=Jx(i,!s.noQuotesForStringValues,s.stringifyStringValues),d=s.stringValue):Vx(i)?(f=i?"true":"false",d=s.booleanValue):Yx(i)?(f=i.toString(),d=s.numberValue):Qx(i)?(f=`${i.toString()}n`,d=s.numberValue):Rg(i)?f=i.toISOString():wg(i)?f="function() { }":f=i.toString(),O.createElement("div",{className:s.basicChildStyle,role:"treeitem","aria-selected":void 0},(l||l==="")&&O.createElement("span",{className:s.label},Qu(l,s.quotesForFieldNames),":"),O.createElement("span",{className:d},f),!c&&O.createElement("span",{className:s.punctuation},","))}function Ag(r){const l=r.value;return Zx(l)?O.createElement(Px,Object.assign({},r)):Kx(l)&&!Rg(l)&&!wg(l)?O.createElement(Wx,Object.assign({},r)):O.createElement(Ix,Object.assign({},r))}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 eE={collapseJson:"collapse JSON",expandJson:"expand JSON"},qp={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:eE,stringifyStringValues:!1},tE=()=>!0,Gp=r=>{let{data:l,style:i=qp,shouldExpandNode:s=tE,clickToExpandNode:c=!1,beforeExpandChange:f,...d}=r;const g=O.useRef(null);return O.createElement("div",Object.assign({"aria-label":"JSON view"},d,{className:i.container,ref:g,role:"tree"}),O.createElement(Ag,{value:l,style:{...qp,...i},lastElement:!0,level:0,shouldExpandNode:s,clickToExpandNode:c,outerRef:g,beforeExpandChange:f}))};function nE(r){const l=Object.keys(r),i=l.length>0?l[0]:void 0;return(s,c,f={})=>{if(!i)return f.default??s;const d=r[c]??r[i],g=s.split(".");let p=d;for(const h of g){if(typeof p=="string"||!p||!(h in p))return f.default??s;p=p[h]}return typeof p=="string"?p:f.default??s}}function aE({siteSchema:r,schemaTranslate:l}){const i=new Set;return E.jsx("ul",{children:E.jsx(Uo,{schema:r,schemaT:l,typeName:"home",displayedNodeTypeNames:i})})}function Uo({schema:r,schemaT:l,typeName:i,depth:s=0,displayedNodeTypeNames:c}){const{i18n:f}=nt(),d=lE(r,i);if(!d)return null;const g=d.routingChildren||[],p=d.regularChildren||[],h=d.lists||[],y=d.documentKind==="routing",S=l(`nodeTypes.${i}.label`,f.language,{default:i});return c.has(i)?E.jsx("li",{children:E.jsxs("div",{children:[y?E.jsx("strong",{children:S}):S," (",E.jsx("code",{children:i}),")"]})}):(c.add(i),E.jsxs("li",{children:[E.jsxs("div",{children:[y?E.jsx("strong",{children:S}):S," (",E.jsx("code",{children:i}),")"]}),h.map(b=>E.jsxs("div",{style:{marginLeft:"30px",color:"#999",fontStyle:"italic"},children:[l(`nodeTypes.${i}.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)),g.length>0&&E.jsx("ul",{children:g.map(b=>E.jsx(Uo,{schema:r,schemaT:l,typeName:b,depth:s+1,displayedNodeTypeNames:c},b))}),p.length>0&&E.jsx("ul",{children:p.map(b=>E.jsx(Uo,{schema:r,schemaT:l,typeName:b,depth:s+1,displayedNodeTypeNames:c},b))})]}))}function lE(r,l){var i;return(i=r.nodeTypes)==null?void 0:i.find(s=>s.kind==="document"&&s.typeName===l)}function iE({step:r}){const{t:l}=nt(),[i,s]=O.useState("tree"),{siteSchema:c,l10n:f}=r,d=nE(f),g=p=>p===0;return E.jsxs("div",{className:"SchemaViewer",children:[E.jsxs("div",{className:"SchemaViewer-tabs",children:[E.jsx(et,{className:`SchemaViewer-tab ${i==="tree"?"active":""}`,onClick:()=>s("tree"),children:l("treeView")}),E.jsx(et,{className:`SchemaViewer-tab ${i==="schema"?"active":""}`,onClick:()=>s("schema"),children:l("siteSchema")}),E.jsx(et,{className:`SchemaViewer-tab ${i==="locales"?"active":""}`,onClick:()=>s("locales"),children:l("labels")})]}),E.jsxs("div",{className:"SchemaViewer-main",children:[E.jsx("div",{className:"SchemaViewer-content",style:{display:i==="tree"?"block":"none"},children:E.jsx(aE,{siteSchema:c,schemaTranslate:d})}),E.jsx("div",{className:"SchemaViewer-content",style:{display:i==="locales"?"block":"none"},children:E.jsx(Gp,{data:f,shouldExpandNode:g})}),E.jsx("div",{className:"SchemaViewer-content",style:{display:i==="schema"?"block":"none"},children:E.jsx(Gp,{data:c,shouldExpandNode:g})})]})]})}function uE({step:r}){const{t:l}=nt(),{workSession:i,appendNewStep:s}=ua(),[c,f]=O.useState(!1),[d,g]=O.useState(!1),[p,h]=O.useState(!1),[y,S]=O.useState(void 0),b=Pa(),A=()=>{f(!c)},R=async M=>{if(!i)return;h(!0),S(void 0);const H=ri();if(!H){S(l("sessionExpired")),h(!1);return}try{const G=await Un({command:"updateSiteSchema",sessionToken:H,prompt:M,fromStepNumber:r.stepNumber});G.success&&G.result?(f(!1),s(G.result),b(`/step/${G.result.stepNumber}`)):S(l("promptSubmissionFailed"))}catch(G){console.error("Error updating schema:",G),S(l("errorOccurred"))}finally{h(!1)}},k=async({withSampleData:M})=>{if(!i)return;h(!0),S(void 0),g(!1);const H=ri();if(!H){S(l("sessionExpired")),h(!1);return}try{const G=await Un({command:"generateSite",sessionToken:H,fromStepNumber:r.stepNumber,withSampleData:M});G.success&&G.result?(s(G.result),b(`/step/${G.result.stepNumber}`)):S(l("generationFailed"))}catch(G){console.error("Error generating site:",G),S(l("errorOccurred"))}finally{h(!1)}};return E.jsx(Et,{children:E.jsxs("div",{className:"CompletedStep",children:[E.jsx(iE,{step:r}),r.explanation&&E.jsx(hi,{content:r.explanation,title:l("explanation")}),E.jsxs("div",{className:"CompletedStep-actions",children:[E.jsx(et,{onClick:A,className:"CompletedStep-button",children:l("modifySchema")}),E.jsx(et,{onClick:()=>g(!0),className:"CompletedStep-button",children:l("generateTheWebsite")})]}),c&&E.jsxs("div",{className:"CompletedStep-updateForm",children:[E.jsx("h3",{children:l("updateSchema")}),E.jsx(dg,{placeholder:l("updatePromptPlaceholder"),submitLabel:l("modifySchema"),onSubmit:R,isLoading:p,error:y})]}),E.jsx($x,{isOpen:d,title:l("generateTheWebsite"),message:l("aboutToGenerateWebsite"),confirmLabel:l("confirm"),onConfirm:k,onCancel:()=>g(!1)}),y&&!c&&E.jsx("div",{className:"Alert error",children:E.jsx("p",{children:y})})]})})}function sE({step:r}){const{t:l}=nt();return E.jsx(Et,{children:E.jsxs("div",{className:"ErrorStep",children:[E.jsx("p",{className:"ErrorStep-message",children:l("stepFailed")}),r.explanation&&E.jsx(hi,{content:r.explanation,variant:"error"})]})})}function rE({step:r}){const{t:l}=nt(),i=()=>{const s=`
|
|
248
246
|
${l("siteGenerated")}
|
|
249
247
|
${l("loginEmail")}: ${r.loginEmail}
|
|
250
248
|
${l("loginPassword")}: ${r.loginPassword}
|
|
251
249
|
${l("siteUrl")}: ${r.siteUrl}
|
|
252
250
|
${l("adminUrl")}: ${r.backOfficeUrl}
|
|
253
|
-
`.trim();navigator.clipboard.writeText(u)};return E.jsx(Et,{className:"p-4",children:E.jsxs("div",{className:"GeneratedSite",children:[r.status==="pending"&&E.jsxs("div",{className:"GeneratedSite-pending",children:[E.jsx(Js,{size:"small"}),E.jsx("p",{children:l("generatingContent")})]}),r.explanation&&E.jsxs("div",{className:"GeneratedSite-explanation",children:[E.jsx("h3",{children:l("explanation")}),E.jsx("div",{className:"markdown-content",dangerouslySetInnerHTML:{__html:hi(r.explanation)}})]}),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:r.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:r.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:r.siteUrl,readOnly:!0,className:"GeneratedSite-input"}),E.jsx(et,{className:"GeneratedSite-link-button",onClick:()=>{window.open(r.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:r.backOfficeUrl,readOnly:!0,className:"GeneratedSite-input"}),E.jsx(et,{className:"GeneratedSite-link-button",onClick:()=>{window.open(r.backOfficeUrl,"_blank")},"aria-label":l("administration"),children:"↗"})]})]})]}),E.jsx("div",{className:"GeneratedSite-actions",children:E.jsx(et,{onClick:i,className:"GeneratedSite-copy-button",children:l("copyToClipboard")})})]})})}function rE({step:r}){const{t:l}=nt();return E.jsx(Et,{className:"p-4",children:E.jsxs("div",{className:"NoEffectStep",children:[E.jsx("p",{className:"NoEffectStep-message",children:l("stepNoEffect")}),r.explanation&&E.jsx("div",{className:"NoEffectStep-explanation",children:E.jsx("div",{className:"markdown-content",dangerouslySetInnerHTML:{__html:hi(r.explanation)}})})]})})}function $p({step:r}){const{t:l}=nt();return E.jsx(Et,{className:"p-4",children:E.jsxs("div",{className:"PendingStep",children:[E.jsx("div",{className:"PendingStep-header",children:E.jsx("h2",{className:"mb-3",children:l("stepTitle",{stepNumber:r.stepNumber,kind:l(r.kind)})})}),E.jsx("div",{className:"PendingStep-spinner",children:E.jsx(Js,{size:"large"})}),r.currentActivity&&E.jsxs("div",{className:"PendingStep-activity",children:[E.jsx("h3",{children:l("currentActivity")}),E.jsx("p",{children:l(`activity.${r.currentActivity}`)})]}),r.explanation&&E.jsxs("div",{className:"PendingStep-explanation",children:[E.jsx("h3",{children:l("explanation")}),E.jsx("div",{className:"markdown-content",dangerouslySetInnerHTML:{__html:hi(r.explanation)}})]})]})})}function oE({step:r}){if(r.status==="failed")return E.jsx(sE,{step:r});if(r.status==="noEffect")return E.jsx(rE,{step:r});if(r.kind==="initialSchema"||r.kind==="updateSchema")return r.status==="pending"?E.jsx($p,{step:r}):E.jsx(iE,{step:r});if(r.kind==="generateSite")return r.status==="pending"&&!lx(r)?E.jsx($p,{step:r}):E.jsx(uE,{step:r});throw new Error(`Unknown step kind: ${r.kind}`)}function cE(){const{t:r}=nt(),l=Pa(),{stepNumber:i}=qS(),{workSession:u,setActiveStepNumber:c}=sa(),f=i===void 0?void 0:Number.parseInt(i,10);if(O.useEffect(()=>(c(f),()=>c(void 0)),[f,c]),O.useEffect(()=>{if(!u||!u.steps)return;u.steps.some(p=>p.stepNumber===f)||l("/")},[f,u,l]),!u||!u.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:r("noSessionData")})})})}),E.jsx("div",{className:"RouteLayout-sidebar",children:E.jsx(Ls,{activeStep:f})})]});const d=u.steps.find(g=>g.stepNumber===f);return d?E.jsxs("div",{className:"RouteLayout",children:[E.jsx("div",{className:"RouteLayout-main",children:E.jsx(oE,{step:d})}),E.jsx("div",{className:"RouteLayout-sidebar",children:E.jsx(Ls,{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:r("stepNotFound")})})})}),E.jsx("div",{className:"RouteLayout-sidebar",children:E.jsx(Ls,{activeStep:f})})]})}function fE({sessionToken:r,onSessionExpired:l}){const{workSession:i,isLoading:u,error:c,setWorkSession:f,setIsLoading:d,setError:g,resetSession:p}=sa();return O.useEffect(()=>()=>{Zo()},[]),O.useEffect(()=>{(async()=>{d(!0),g(void 0);try{const y=await Un({command:"loadWorkSession",sessionToken:r});y.success&&y.result?f(y.result):(g(y.userMessage||"Failed to load session"),y.success||(p(),P1(),l()))}catch(y){g("Error connecting to server"),console.error(y)}finally{d(!1)}})()},[r,f,d,g,l]),u?E.jsx("div",{className:"Layout-center p-4",children:E.jsx(Et,{className:"p-4 max-w-md",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-md",children:E.jsx("div",{className:"Alert error",children:E.jsx("p",{children:c})})})}):i?E.jsx(N1,{children:E.jsxs(n1,{children:[E.jsx(js,{path:"/",element:E.jsx(ax,{})}),E.jsx(js,{path:"/step/:stepNumber",element:E.jsx(cE,{})}),E.jsx(js,{path:"*",element:E.jsx(e1,{to:"/",replace:!0})})]})}):E.jsx("div",{className:"Layout-center p-4",children:E.jsx(Et,{className:"p-4 max-w-md",children:E.jsx("div",{className:"Text text-center",children:E.jsx("p",{children:"Session not available."})})})})}function dE({sessionToken:r}){const{t:l,i18n:i}=nt(),u=async c=>{const f=c.target.value;await i.changeLanguage(f),r&&await Un({command:"setLanguage",sessionToken:r,language:f})};return E.jsxs("footer",{className:"App-footer",children:[E.jsx("div",{className:"InlineText",dangerouslySetInnerHTML:{__html:l("footerText")}}),E.jsx("div",{className:"LanguageSelector",children:E.jsxs("select",{className:"LanguageSelector-select",value:i.language,onChange:u,"aria-label":"Select language",children:[E.jsx("option",{value:"en",children:"English"}),E.jsx("option",{value:"fr",children:"Français"})]})})]})}function Og({onTokenReceived:r}){const[l,i]=O.useState(!!window.grecaptcha),u=Ro;return O.useEffect(()=>{if(u){if(window.onRecaptchaSubmitted=c=>{r(c)},window.onRecaptchaExpired=()=>{r("")},l===!1&&!window.grecaptcha){i("loading");const c=document.createElement("script");c.src="https://www.google.com/recaptcha/api.js",c.async=!0,c.defer=!0,c.onload=()=>i(!0),document.head.appendChild(c)}else i(!0);return()=>{window.onRecaptchaSubmitted=void 0,window.onRecaptchaExpired=void 0}}},[u,r]),E.jsx(E.Fragment,{children:Ro&&l===!0?E.jsx("div",{className:"g-recaptcha","data-sitekey":Ro,"data-callback":"onRecaptchaSubmitted","data-expired-callback":"onRecaptchaExpired"}):E.jsx("div",{className:"RecaptchaBox",children:E.jsx(Js,{})})})}function hE({onVerified:r}){const{t:l,i18n:i}=nt(),[u,c]=O.useState(""),[f,d]=O.useState(),g=async()=>{var p;if(u){d(void 0);try{const h=await Un({command:"newSession",recaptchaToken:u,language:i.language});h.success&&((p=h.result)!=null&&p.token)?r(h.result.token):d("Failed to create session")}catch(h){d("Error connecting to server"),console.error(h)}}};return E.jsx("div",{className:"Layout-center p-4",children:E.jsxs(Et,{className:"max-w-lg 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(Og,{onTokenReceived:c}),E.jsx(et,{label:l("agree"),onClick:g,disabled:!u})]})]})})}function pE({expiredToken:r,onTokenRefreshed:l}){const{t:i}=nt(),[u,c]=O.useState(),f=async d=>{var g;if(d){c(void 0);try{const p=await Un({command:"renewSession",sessionToken:r,recaptchaToken:d});p.success&&((g=p.result)!=null&&g.token)?l(p.result.token):c(i("sessionRenewalFailed"))}catch(p){c(i("errorConnectingToServer")),console.error(p)}}};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:i("extendYourSession")}),u&&E.jsx("div",{className:"Alert error",children:E.jsx("p",{className:"m-0",children:u})}),E.jsx("div",{className:"Layout-flex Layout-align-center Layout-gap Layout-justify-center Layout-wrap my-4",children:E.jsx(Og,{onTokenReceived:f})}),E.jsx("p",{className:"InfoText",children:i("newTabRestartMessage")})]})})})}function gE(r){if(!r)return!1;try{const l=r.split(".");if(l.length!==3)return!1;const i=JSON.parse(atob(l[1]));if(!i.exp)return!1;const u=i.exp*1e3;return Date.now()<u?!0:"expired"}catch(l){return console.error("Error checking JWT token validity:",l),!1}}function mE(){const{i18n:r}=nt(),[l,i]=O.useState(),[u,c]=O.useState(),f=sa(p=>p.resetSession);O.useEffect(()=>{const p=ri(),h=gE(p);if(!p||!h){f();return}h==="expired"?c(p):i(p)},[f]);const d=p=>{Mp(p),i(p)},g=p=>{Mp(p),i(p),c(void 0)};return E.jsxs("div",{className:"App",children:[E.jsx("div",{className:"App-content",children:l?E.jsx(fE,{sessionToken:l,onSessionExpired:()=>i(void 0)}):u?E.jsx(pE,{expiredToken:u,onTokenRefreshed:g}):E.jsx(hE,{onVerified:d})}),E.jsx(dE,{sessionToken:l})]})}async function yE(){const r=document.getElementById("site-generator-app");r&&cS.createRoot(r).render(E.jsx(Qp.StrictMode,{children:E.jsx(mE,{})}))}yE().catch(r=>console.error(r));
|
|
251
|
+
`.trim();navigator.clipboard.writeText(s)};return E.jsx(Et,{children:E.jsxs("div",{className:"GeneratedSite",children:[r.status==="pending"&&E.jsxs("div",{className:"GeneratedSite-pending",children:[E.jsx(Ju,{size:"small"}),E.jsx("p",{children:l("generatingContent")})]}),r.explanation&&E.jsx(hi,{content:r.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:r.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:r.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:r.siteUrl,readOnly:!0,className:"GeneratedSite-input"}),E.jsx(et,{className:"GeneratedSite-link-button",onClick:()=>{window.open(r.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:r.backOfficeUrl,readOnly:!0,className:"GeneratedSite-input"}),E.jsx(et,{className:"GeneratedSite-link-button",onClick:()=>{window.open(r.backOfficeUrl,"_blank")},"aria-label":l("administration"),children:"↗"})]})]})]}),E.jsx("div",{className:"GeneratedSite-actions",children:E.jsx(et,{onClick:i,className:"GeneratedSite-copy-button",children:l("copyToClipboard")})})]})})}function oE({step:r}){const{t:l}=nt();return E.jsx(Et,{children:E.jsxs("div",{className:"ErrorStep",children:[E.jsx("p",{className:"ErrorStep-message ErrorStep-message-warning",children:l("stepNoEffect")}),r.explanation&&E.jsx(hi,{content:r.explanation,variant:"warning"})]})})}function $p({step:r}){const{t:l}=nt();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:r.stepNumber,kind:l(r.kind)})})}),E.jsx("div",{className:"PendingStep-spinner",children:E.jsx(Ju,{size:"large"})}),r.currentActivity&&E.jsxs("div",{className:"PendingStep-activity",children:[E.jsx("h3",{children:l("currentActivity")}),E.jsx("p",{children:l(`activity.${r.currentActivity}`)})]}),r.explanation&&E.jsx(hi,{content:r.explanation,title:l("explanation"),variant:"info"})]})})}function cE({step:r}){if(r.status==="failed")return E.jsx(sE,{step:r});if(r.status==="noEffect")return E.jsx(oE,{step:r});if(r.kind==="initialSchema"||r.kind==="updateSchema")return r.status==="pending"?E.jsx($p,{step:r}):E.jsx(uE,{step:r});if(r.kind==="generateSite")return r.status==="pending"&&!lx(r)?E.jsx($p,{step:r}):E.jsx(rE,{step:r});throw new Error(`Unknown step kind: ${r.kind}`)}function fE(){const{t:r}=nt(),l=Pa(),{stepNumber:i}=qS(),{workSession:s,setActiveStepNumber:c}=ua(),f=i===void 0?void 0:Number.parseInt(i,10);if(O.useEffect(()=>(c(f),()=>c(void 0)),[f,c]),O.useEffect(()=>{if(!s||!s.steps)return;s.steps.some(p=>p.stepNumber===f)||l("/")},[f,s,l]),!s||!s.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:r("noSessionData")})})})}),E.jsx("div",{className:"RouteLayout-sidebar",children:E.jsx(Lu,{activeStep:f})})]});const d=s.steps.find(g=>g.stepNumber===f);return d?E.jsxs("div",{className:"RouteLayout",children:[E.jsx("div",{className:"RouteLayout-main",children:E.jsx(cE,{step:d})}),E.jsx("div",{className:"RouteLayout-sidebar",children:E.jsx(Lu,{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:r("stepNotFound")})})})}),E.jsx("div",{className:"RouteLayout-sidebar",children:E.jsx(Lu,{activeStep:f})})]})}function dE({sessionToken:r,onSessionExpired:l}){const{workSession:i,isLoading:s,error:c,setWorkSession:f,setIsLoading:d,setError:g,resetSession:p}=ua();return O.useEffect(()=>()=>{Zo()},[]),O.useEffect(()=>{(async()=>{d(!0),g(void 0);try{const y=await Un({command:"loadWorkSession",sessionToken:r});y.success&&y.result?f(y.result):(g(y.userMessage||"Failed to load session"),y.success||(p(),P1(),l()))}catch(y){g("Error connecting to server"),console.error(y)}finally{d(!1)}})()},[r,f,d,g,l]),s?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})})})}):i?E.jsx(N1,{children:E.jsxs(n1,{children:[E.jsx(ju,{path:"/",element:E.jsx(ax,{})}),E.jsx(ju,{path:"/step/:stepNumber",element:E.jsx(fE,{})}),E.jsx(ju,{path:"*",element:E.jsx(e1,{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 hE({sessionToken:r}){const{t:l,i18n:i}=nt(),s=async c=>{const f=c.target.value;await i.changeLanguage(f),r&&await Un({command:"setLanguage",sessionToken:r,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:i.language,onChange:s,"aria-label":"Select language",children:[E.jsx("option",{value:"en",children:"English"}),E.jsx("option",{value:"fr",children:"Français"})]})})]})}function Og({onTokenReceived:r}){const[l,i]=O.useState(!!window.grecaptcha),s=Ro;return O.useEffect(()=>{if(s){if(window.onRecaptchaSubmitted=c=>{r(c)},window.onRecaptchaExpired=()=>{r("")},l===!1&&!window.grecaptcha){i("loading");const c=document.createElement("script");c.src="https://www.google.com/recaptcha/api.js",c.async=!0,c.defer=!0,c.onload=()=>i(!0),document.head.appendChild(c)}else i(!0);return()=>{window.onRecaptchaSubmitted=void 0,window.onRecaptchaExpired=void 0}}},[s,r]),E.jsx(E.Fragment,{children:Ro&&l===!0?E.jsx("div",{className:"g-recaptcha","data-sitekey":Ro,"data-callback":"onRecaptchaSubmitted","data-expired-callback":"onRecaptchaExpired"}):E.jsx("div",{className:"RecaptchaBox",children:E.jsx(Ju,{})})})}function pE({onVerified:r}){const{t:l,i18n:i}=nt(),[s,c]=O.useState(""),[f,d]=O.useState(),g=async()=>{var p;if(s){d(void 0);try{const h=await Un({command:"newSession",recaptchaToken:s,language:i.language});h.success&&((p=h.result)!=null&&p.token)?r(h.result.token):d("Failed to create session")}catch(h){d("Error connecting to server"),console.error(h)}}};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(Og,{onTokenReceived:c}),E.jsx(et,{label:l("agree"),onClick:g,disabled:!s})]})]})})}function gE({expiredToken:r,onTokenRefreshed:l}){const{t:i}=nt(),[s,c]=O.useState(),f=async d=>{var g;if(d){c(void 0);try{const p=await Un({command:"renewSession",sessionToken:r,recaptchaToken:d});p.success&&((g=p.result)!=null&&g.token)?l(p.result.token):c(i("sessionRenewalFailed"))}catch(p){c(i("errorConnectingToServer")),console.error(p)}}};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:i("extendYourSession")}),s&&E.jsx("div",{className:"Alert error",children:E.jsx("p",{className:"m-0",children:s})}),E.jsx("div",{className:"Layout-flex Layout-align-center Layout-gap Layout-justify-center Layout-wrap my-4",children:E.jsx(Og,{onTokenReceived:f})}),E.jsx("p",{className:"InfoText",children:i("newTabRestartMessage")})]})})})}function mE(r){if(!r)return!1;try{const l=r.split(".");if(l.length!==3)return!1;const i=JSON.parse(atob(l[1]));if(!i.exp)return!1;const s=i.exp*1e3;return Date.now()<s?!0:"expired"}catch(l){return console.error("Error checking JWT token validity:",l),!1}}function yE(){const{i18n:r}=nt(),[l,i]=O.useState(),[s,c]=O.useState(),f=ua(p=>p.resetSession);O.useEffect(()=>{const p=ri(),h=mE(p);if(!p||!h){f();return}h==="expired"?c(p):i(p)},[f]);const d=p=>{Mp(p),i(p)},g=p=>{Mp(p),i(p),c(void 0)};return E.jsxs("div",{className:"App",children:[E.jsx("div",{className:"App-content",children:l?E.jsx(dE,{sessionToken:l,onSessionExpired:()=>i(void 0)}):s?E.jsx(gE,{expiredToken:s,onTokenRefreshed:g}):E.jsx(pE,{onVerified:d})}),E.jsx(hE,{sessionToken:l})]})}async function vE(){const r=document.getElementById("site-generator-app");r&&cS.createRoot(r).render(E.jsx(Qp.StrictMode,{children:E.jsx(yE,{})}))}vE().catch(r=>console.error(r));
|