@paroicms/site-generator-plugin 0.26.1 → 0.27.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/backend/dist/generator/fake-content-generator/content-report.js +3 -1
- package/backend/dist/generator/fake-content-generator/create-node-contents.js +31 -28
- package/backend/dist/generator/fake-content-generator/fill-site-fields.js +1 -1
- package/backend/dist/generator/fake-content-generator/generate-fake-content.js +1 -0
- package/backend/dist/generator/llm-queries/invoke-update-site-schema.js +2 -2
- package/backend/dist/generator/site-generator/document-template-creator.js +18 -19
- package/backend/dist/generator/site-generator/labeled-list-template-creator.js +1 -1
- package/backend/dist/generator/site-generator/site-generator.js +2 -2
- package/backend/dist/generator/site-generator/template-helpers.js +6 -4
- package/backend/dist/generator/site-generator/theme-creator-context.js +10 -1
- package/backend/dist/generator/site-schema-generator/create-site-schema.js +11 -5
- package/backend/prompts/initial-2-fields.md +8 -8
- package/backend/prompts/predefined-fields.json +6 -6
- package/backend/prompts/update-site-schema-2-execute.md +4 -4
- package/frontend/dist/frontend.css +1 -1
- package/frontend/dist/frontend.mjs +67 -58
- package/package.json +13 -13
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var F0=Object.defineProperty;var W0=(i,n,r)=>n in i?F0(i,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[n]=r;var ke=(i,n,r)=>W0(i,typeof n!="symbol"?n+"":n,r);function Em(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var _o={exports:{}},ui={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ var A0=Object.defineProperty;var O0=(i,n,r)=>n in i?A0(i,n,{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 yp;function z0(){if(yp)return ii;yp=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(s,o,f){var m=null;if(f!==void 0&&(m=""+f),o.key!==void 0&&(m=""+o.key),"key"in o){f={};for(var h in o)h!=="key"&&(f[h]=o[h])}else f=o;return o=f.ref,{$$typeof:i,type:s,key:m,ref:o!==void 0?o:null,props:f}}return ii.Fragment=n,ii.jsx=r,ii.jsxs=r,ii}var vp;function L0(){return vp||(vp=1,Ro.exports=z0()),Ro.exports}var x=L0();const se=i=>typeof i=="string",ri=()=>{let i,n;const r=new Promise((s,o)=>{i=s,n=o});return r.resolve=i,r.reject=n,r},xp=i=>i==null?"":""+i,D0=(i,n,r)=>{i.forEach(s=>{n[s]&&(r[s]=n[s])})},M0=/###/g,bp=i=>i&&i.indexOf("###")>-1?i.replace(M0,"."):i,Sp=i=>!i||se(i),di=(i,n,r)=>{const s=se(n)?n.split("."):n;let o=0;for(;o<s.length-1;){if(Sp(i))return{};const f=bp(s[o]);!i[f]&&r&&(i[f]=new r),Object.prototype.hasOwnProperty.call(i,f)?i=i[f]:i={},++o}return Sp(i)?{}:{obj:i,k:bp(s[o])}},Np=(i,n,r)=>{const{obj:s,k:o}=di(i,n,Object);if(s!==void 0||n.length===1){s[o]=r;return}let f=n[n.length-1],m=n.slice(0,n.length-1),h=di(i,m,Object);for(;h.obj===void 0&&m.length;)f=`${m[m.length-1]}.${f}`,m=m.slice(0,m.length-1),h=di(i,m,Object),h!=null&&h.obj&&typeof h.obj[`${h.k}.${f}`]<"u"&&(h.obj=void 0);h.obj[`${h.k}.${f}`]=r},_0=(i,n,r,s)=>{const{obj:o,k:f}=di(i,n,Object);o[f]=o[f]||[],o[f].push(r)},Xr=(i,n)=>{const{obj:r,k:s}=di(i,n);if(r&&Object.prototype.hasOwnProperty.call(r,s))return r[s]},U0=(i,n,r)=>{const s=Xr(i,r);return s!==void 0?s:Xr(n,r)},rm=(i,n,r)=>{for(const s in n)s!=="__proto__"&&s!=="constructor"&&(s in i?se(i[s])||i[s]instanceof String||se(n[s])||n[s]instanceof String?r&&(i[s]=n[s]):rm(i[s],n[s],r):i[s]=n[s]);return i},al=i=>i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var B0={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const H0=i=>se(i)?i.replace(/[&<>"'\/]/g,n=>B0[n]):i;class V0{constructor(n){this.capacity=n,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(n){const r=this.regExpMap.get(n);if(r!==void 0)return r;const s=new RegExp(n);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(n,s),this.regExpQueue.push(n),s}}const $0=[" ",",","?","!",";"],q0=new V0(20),G0=(i,n,r)=>{n=n||"",r=r||"";const s=$0.filter(m=>n.indexOf(m)<0&&r.indexOf(m)<0);if(s.length===0)return!0;const o=q0.getRegExp(`(${s.map(m=>m==="?"?"\\?":m).join("|")})`);let f=!o.test(i);if(!f){const m=i.indexOf(r);m>0&&!o.test(i.substring(0,m))&&(f=!0)}return f},_o=(i,n,r=".")=>{if(!i)return;if(i[n])return Object.prototype.hasOwnProperty.call(i,n)?i[n]:void 0;const s=n.split(r);let o=i;for(let f=0;f<s.length;){if(!o||typeof o!="object")return;let m,h="";for(let p=f;p<s.length;++p)if(p!==f&&(h+=r),h+=s[p],m=o[h],m!==void 0){if(["string","number","boolean"].indexOf(typeof m)>-1&&p<s.length-1)continue;f+=p-f+1;break}o=m}return o},pi=i=>i==null?void 0:i.replace("_","-"),Y0={type:"logger",log(i){this.output("log",i)},warn(i){this.output("warn",i)},error(i){this.output("error",i)},output(i,n){var r,s;(s=(r=console==null?void 0:console[i])==null?void 0:r.apply)==null||s.call(r,console,n)}};class Jr{constructor(n,r={}){this.init(n,r)}init(n,r={}){this.prefix=r.prefix||"i18next:",this.logger=n||Y0,this.options=r,this.debug=r.debug}log(...n){return this.forward(n,"log","",!0)}warn(...n){return this.forward(n,"warn","",!0)}error(...n){return this.forward(n,"error","")}deprecate(...n){return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(n,r,s,o){return o&&!this.debug?null:(se(n[0])&&(n[0]=`${s}${this.prefix} ${n[0]}`),this.logger[r](n))}create(n){return new Jr(this.logger,{prefix:`${this.prefix}:${n}:`,...this.options})}clone(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new Jr(this.logger,n)}}var Wt=new Jr;class ts{constructor(){this.observers={}}on(n,r){return n.split(" ").forEach(s=>{this.observers[s]||(this.observers[s]=new Map);const o=this.observers[s].get(r)||0;this.observers[s].set(r,o+1)}),this}off(n,r){if(this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n].delete(r)}}emit(n,...r){this.observers[n]&&Array.from(this.observers[n].entries()).forEach(([o,f])=>{for(let m=0;m<f;m++)o(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,f])=>{for(let m=0;m<f;m++)o.apply(o,[n,...r])})}}class Ep extends ts{constructor(n,r={ns:["translation"],defaultNS:"translation"}){super(),this.data=n||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}removeNamespaces(n){const r=this.options.ns.indexOf(n);r>-1&&this.options.ns.splice(r,1)}getResource(n,r,s,o={}){var d,y;const f=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,m=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let h;n.indexOf(".")>-1?h=n.split("."):(h=[n,r],s&&(Array.isArray(s)?h.push(...s):se(s)&&f?h.push(...s.split(f)):h.push(s)));const p=Xr(this.data,h);return!p&&!r&&!s&&n.indexOf(".")>-1&&(n=h[0],r=h[1],s=h.slice(2).join(".")),p||!m||!se(s)?p:_o((y=(d=this.data)==null?void 0:d[n])==null?void 0:y[r],s,f)}addResource(n,r,s,o,f={silent:!1}){const m=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator;let h=[n,r];s&&(h=h.concat(m?s.split(m):s)),n.indexOf(".")>-1&&(h=n.split("."),o=r,r=h[1]),this.addNamespaces(r),Np(this.data,h,o),f.silent||this.emit("added",n,r,s,o)}addResources(n,r,s,o={silent:!1}){for(const f in s)(se(s[f])||Array.isArray(s[f]))&&this.addResource(n,r,f,s[f],{silent:!0});o.silent||this.emit("added",n,r,s)}addResourceBundle(n,r,s,o,f,m={silent:!1,skipCopy:!1}){let h=[n,r];n.indexOf(".")>-1&&(h=n.split("."),o=s,s=r,r=h[1]),this.addNamespaces(r);let p=Xr(this.data,h)||{};m.skipCopy||(s=JSON.parse(JSON.stringify(s))),o?rm(p,s,f):p={...p,...s},Np(this.data,h,p),m.silent||this.emit("added",n,r,s)}removeResourceBundle(n,r){this.hasResourceBundle(n,r)&&delete this.data[n][r],this.removeNamespaces(r),this.emit("removed",n,r)}hasResourceBundle(n,r){return this.getResource(n,r)!==void 0}getResourceBundle(n,r){return r||(r=this.options.defaultNS),this.getResource(n,r)}getDataByLanguage(n){return this.data[n]}hasLanguageSomeTranslations(n){const r=this.getDataByLanguage(n);return!!(r&&Object.keys(r)||[]).find(o=>r[o]&&Object.keys(r[o]).length>0)}toJSON(){return this.data}}var sm={processors:{},addPostProcessor(i){this.processors[i.name]=i},handle(i,n,r,s,o){return i.forEach(f=>{var m;n=((m=this.processors[f])==null?void 0:m.process(n,r,s,o))??n}),n}};const Rp={},Tp=i=>!se(i)&&typeof i!="boolean"&&typeof i!="number";class Fr extends ts{constructor(n,r={}){super(),D0(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Wt.create("translator")}changeLanguage(n){n&&(this.language=n)}exists(n,r={interpolation:{}}){const s={...r};if(n==null)return!1;const o=this.resolve(n,s);return(o==null?void 0:o.res)!==void 0}extractFromKey(n,r){let s=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let f=r.ns||this.options.defaultNS||[];const m=s&&n.indexOf(s)>-1,h=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!G0(n,s,o);if(m&&!h){const p=n.match(this.interpolator.nestingRegexp);if(p&&p.length>0)return{key:n,namespaces:se(f)?[f]:f};const d=n.split(s);(s!==o||s===o&&this.options.ns.indexOf(d[0])>-1)&&(f=d.shift()),n=d.join(o)}return{key:n,namespaces:se(f)?[f]:f}}translate(n,r,s){let o=typeof r=="object"?{...r}:r;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof options=="object"&&(o={...o}),o||(o={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);const f=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,m=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:h,namespaces:p}=this.extractFromKey(n[n.length-1],o),d=p[p.length-1];let y=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;y===void 0&&(y=":");const b=o.lng||this.language,S=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((b==null?void 0:b.toLowerCase())==="cimode")return S?f?{res:`${d}${y}${h}`,usedKey:h,exactUsedKey:h,usedLng:b,usedNS:d,usedParams:this.getUsedParamsDetails(o)}:`${d}${y}${h}`:f?{res:h,usedKey:h,exactUsedKey:h,usedLng:b,usedNS:d,usedParams:this.getUsedParamsDetails(o)}:h;const w=this.resolve(n,o);let E=w==null?void 0:w.res;const z=(w==null?void 0:w.usedKey)||h,H=(w==null?void 0:w.exactUsedKey)||h,_=["[object Number]","[object Function]","[object RegExp]"],U=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,G=!this.i18nFormat||this.i18nFormat.handleAsObject,X=o.count!==void 0&&!se(o.count),Z=Fr.hasDefaultValue(o),te=X?this.pluralResolver.getSuffix(b,o.count,o):"",ne=o.ordinal&&X?this.pluralResolver.getSuffix(b,o.count,{ordinal:!1}):"",ee=X&&!o.ordinal&&o.count===0,F=ee&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${te}`]||o[`defaultValue${ne}`]||o.defaultValue;let ie=E;G&&!E&&Z&&(ie=F);const pe=Tp(ie),Ke=Object.prototype.toString.apply(ie);if(G&&ie&&pe&&_.indexOf(Ke)<0&&!(se(U)&&Array.isArray(ie))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const Xe=this.options.returnedObjectHandler?this.options.returnedObjectHandler(z,ie,{...o,ns:p}):`key '${h} (${this.language})' returned an object instead of string.`;return f?(w.res=Xe,w.usedParams=this.getUsedParamsDetails(o),w):Xe}if(m){const Xe=Array.isArray(ie),Ge=Xe?[]:{},Ye=Xe?H:z;for(const D in ie)if(Object.prototype.hasOwnProperty.call(ie,D)){const Y=`${Ye}${m}${D}`;Z&&!E?Ge[D]=this.translate(Y,{...o,defaultValue:Tp(F)?F[D]:void 0,joinArrays:!1,ns:p}):Ge[D]=this.translate(Y,{...o,joinArrays:!1,ns:p}),Ge[D]===Y&&(Ge[D]=ie[D])}E=Ge}}else if(G&&se(U)&&Array.isArray(E))E=E.join(U),E&&(E=this.extendTranslation(E,n,o,s));else{let Xe=!1,Ge=!1;!this.isValidLookup(E)&&Z&&(Xe=!0,E=F),this.isValidLookup(E)||(Ge=!0,E=h);const D=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Ge?void 0:E,Y=Z&&F!==E&&this.options.updateMissing;if(Ge||Xe||Y){if(this.logger.log(Y?"updateKey":"missingKey",b,d,h,Y?F:E),m){const $=this.resolve(h,{...o,keySeparator:!1});$&&$.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let W=[];const ve=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ve&&ve[0])for(let $=0;$<ve.length;$++)W.push(ve[$]);else this.options.saveMissingTo==="all"?W=this.languageUtils.toResolveHierarchy(o.lng||this.language):W.push(o.lng||this.language);const R=($,K,Q)=>{var me;const I=Z&&Q!==E?Q:D;this.options.missingKeyHandler?this.options.missingKeyHandler($,d,K,I,Y,o):(me=this.backendConnector)!=null&&me.saveMissing&&this.backendConnector.saveMissing($,d,K,I,Y,o),this.emit("missingKey",$,d,K,E)};this.options.saveMissing&&(this.options.saveMissingPlurals&&X?W.forEach($=>{const K=this.pluralResolver.getSuffixes($,o);ee&&o[`defaultValue${this.options.pluralSeparator}zero`]&&K.indexOf(`${this.options.pluralSeparator}zero`)<0&&K.push(`${this.options.pluralSeparator}zero`),K.forEach(Q=>{R([$],h+Q,o[`defaultValue${Q}`]||F)})}):R(W,h,F))}E=this.extendTranslation(E,n,o,w,s),Ge&&E===h&&this.options.appendNamespaceToMissingKey&&(E=`${d}${y}${h}`),(Ge||Xe)&&this.options.parseMissingKeyHandler&&(E=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}${y}${h}`:h,Xe?E:void 0,o))}return f?(w.res=E,w.usedParams=this.getUsedParamsDetails(o),w):E}extendTranslation(n,r,s,o,f){var p,d;if((p=this.i18nFormat)!=null&&p.parse)n=this.i18nFormat.parse(n,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const y=se(n)&&(((d=s==null?void 0:s.interpolation)==null?void 0:d.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let b;if(y){const w=n.match(this.interpolator.nestingRegexp);b=w&&w.length}let S=s.replace&&!se(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(S={...this.options.interpolation.defaultVariables,...S}),n=this.interpolator.interpolate(n,S,s.lng||this.language||o.usedLng,s),y){const w=n.match(this.interpolator.nestingRegexp),E=w&&w.length;b<E&&(s.nest=!1)}!s.lng&&o&&o.res&&(s.lng=this.language||o.usedLng),s.nest!==!1&&(n=this.interpolator.nest(n,(...w)=>(f==null?void 0:f[0])===w[0]&&!s.context?(this.logger.warn(`It seems you are nesting recursively key: ${w[0]} in key: ${r[0]}`),null):this.translate(...w,r),s)),s.interpolation&&this.interpolator.reset()}const m=s.postProcess||this.options.postProcess,h=se(m)?[m]:m;return n!=null&&(h!=null&&h.length)&&s.applyPostProcessor!==!1&&(n=sm.handle(h,n,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),n}resolve(n,r={}){let s,o,f,m,h;return se(n)&&(n=[n]),n.forEach(p=>{if(this.isValidLookup(s))return;const d=this.extractFromKey(p,r),y=d.key;o=y;let b=d.namespaces;this.options.fallbackNS&&(b=b.concat(this.options.fallbackNS));const S=r.count!==void 0&&!se(r.count),w=S&&!r.ordinal&&r.count===0,E=r.context!==void 0&&(se(r.context)||typeof r.context=="number")&&r.context!=="",z=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);b.forEach(H=>{var _,U;this.isValidLookup(s)||(h=H,!Rp[`${z[0]}-${H}`]&&((_=this.utils)!=null&&_.hasLoadedNamespace)&&!((U=this.utils)!=null&&U.hasLoadedNamespace(h))&&(Rp[`${z[0]}-${H}`]=!0,this.logger.warn(`key "${o}" for languages "${z.join(", ")}" won't get resolved as namespace "${h}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),z.forEach(G=>{var te;if(this.isValidLookup(s))return;m=G;const X=[y];if((te=this.i18nFormat)!=null&&te.addLookupKeys)this.i18nFormat.addLookupKeys(X,y,G,H,r);else{let ne;S&&(ne=this.pluralResolver.getSuffix(G,r.count,r));const ee=`${this.options.pluralSeparator}zero`,F=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(S&&(X.push(y+ne),r.ordinal&&ne.indexOf(F)===0&&X.push(y+ne.replace(F,this.options.pluralSeparator)),w&&X.push(y+ee)),E){const ie=`${y}${this.options.contextSeparator}${r.context}`;X.push(ie),S&&(X.push(ie+ne),r.ordinal&&ne.indexOf(F)===0&&X.push(ie+ne.replace(F,this.options.pluralSeparator)),w&&X.push(ie+ee))}}let Z;for(;Z=X.pop();)this.isValidLookup(s)||(f=Z,s=this.getResource(G,H,Z,r))}))})}),{res:s,usedKey:o,exactUsedKey:f,usedLng:m,usedNS:h}}isValidLookup(n){return n!==void 0&&!(!this.options.returnNull&&n===null)&&!(!this.options.returnEmptyString&&n==="")}getResource(n,r,s,o={}){var f;return(f=this.i18nFormat)!=null&&f.getResource?this.i18nFormat.getResource(n,r,s,o):this.resourceStore.getResource(n,r,s,o)}getUsedParamsDetails(n={}){const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=n.replace&&!se(n.replace);let o=s?n.replace:n;if(s&&typeof n.count<"u"&&(o.count=n.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!s){o={...o};for(const f of r)delete o[f]}return o}static hasDefaultValue(n){const r="defaultValue";for(const s in n)if(Object.prototype.hasOwnProperty.call(n,s)&&r===s.substring(0,r.length)&&n[s]!==void 0)return!0;return!1}}class wp{constructor(n){this.options=n,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Wt.create("languageUtils")}getScriptPartFromCode(n){if(n=pi(n),!n||n.indexOf("-")<0)return null;const r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(n){if(n=pi(n),!n||n.indexOf("-")<0)return n;const r=n.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(n){if(se(n)&&n.indexOf("-")>-1){let r;try{r=Intl.getCanonicalLocales(n)[0]}catch{}return r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r||(this.options.lowerCaseLng?n.toLowerCase():n)}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}isSupportedCode(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}getBestMatchFromCodes(n){if(!n)return null;let r;return n.forEach(s=>{if(r)return;const o=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(o))&&(r=o)}),!r&&this.options.supportedLngs&&n.forEach(s=>{if(r)return;const o=this.getScriptPartFromCode(s);if(this.isSupportedCode(o))return r=o;const f=this.getLanguagePartFromCode(s);if(this.isSupportedCode(f))return r=f;r=this.options.supportedLngs.find(m=>{if(m===f)return m;if(!(m.indexOf("-")<0&&f.indexOf("-")<0)&&(m.indexOf("-")>0&&f.indexOf("-")<0&&m.substring(0,m.indexOf("-"))===f||m.indexOf(f)===0&&f.length>1))return m})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),se(n)&&(n=[n]),Array.isArray(n))return n;if(!r)return n.default||[];let s=n[r];return s||(s=n[this.getScriptPartFromCode(r)]),s||(s=n[this.formatLanguageCode(r)]),s||(s=n[this.getLanguagePartFromCode(r)]),s||(s=n.default),s||[]}toResolveHierarchy(n,r){const s=this.getFallbackCodes((r===!1?[]:r)||this.options.fallbackLng||[],n),o=[],f=m=>{m&&(this.isSupportedCode(m)?o.push(m):this.logger.warn(`rejecting language code not found in supportedLngs: ${m}`))};return se(n)&&(n.indexOf("-")>-1||n.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&f(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&f(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&f(this.getLanguagePartFromCode(n))):se(n)&&f(this.formatLanguageCode(n)),s.forEach(m=>{o.indexOf(m)<0&&f(this.formatLanguageCode(m))}),o}}const Cp={zero:0,one:1,two:2,few:3,many:4,other:5},jp={select:i=>i===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Q0{constructor(n,r={}){this.languageUtils=n,this.options=r,this.logger=Wt.create("pluralResolver"),this.pluralRulesCache={}}addRule(n,r){this.rules[n]=r}clearCache(){this.pluralRulesCache={}}getRule(n,r={}){const s=pi(n==="dev"?"en":n),o=r.ordinal?"ordinal":"cardinal",f=JSON.stringify({cleanedCode:s,type:o});if(f in this.pluralRulesCache)return this.pluralRulesCache[f];let m;try{m=new Intl.PluralRules(s,{type:o})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),jp;if(!n.match(/-|_/))return jp;const p=this.languageUtils.getLanguagePartFromCode(n);m=this.getRule(p,r)}return this.pluralRulesCache[f]=m,m}needsPlural(n,r={}){let s=this.getRule(n,r);return s||(s=this.getRule("dev",r)),(s==null?void 0:s.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(n,r,s={}){return this.getSuffixes(n,s).map(o=>`${r}${o}`)}getSuffixes(n,r={}){let s=this.getRule(n,r);return s||(s=this.getRule("dev",r)),s?s.resolvedOptions().pluralCategories.sort((o,f)=>Cp[o]-Cp[f]).map(o=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(n,r,s={}){const o=this.getRule(n,s);return o?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${o.select(r)}`:(this.logger.warn(`no plural rule found for: ${n}`),this.getSuffix("dev",r,s))}}const kp=(i,n,r,s=".",o=!0)=>{let f=U0(i,n,r);return!f&&o&&se(r)&&(f=_o(i,r,s),f===void 0&&(f=_o(n,r,s))),f},To=i=>i.replace(/\$/g,"$$$$");class Z0{constructor(n={}){var r;this.logger=Wt.create("interpolator"),this.options=n,this.format=((r=n==null?void 0:n.interpolation)==null?void 0:r.format)||(s=>s),this.init(n)}init(n={}){n.interpolation||(n.interpolation={escapeValue:!0});const{escape:r,escapeValue:s,useRawValueToEscape:o,prefix:f,prefixEscaped:m,suffix:h,suffixEscaped:p,formatSeparator:d,unescapeSuffix:y,unescapePrefix:b,nestingPrefix:S,nestingPrefixEscaped:w,nestingSuffix:E,nestingSuffixEscaped:z,nestingOptionsSeparator:H,maxReplaces:_,alwaysFormat:U}=n.interpolation;this.escape=r!==void 0?r:H0,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=f?al(f):m||"{{",this.suffix=h?al(h):p||"}}",this.formatSeparator=d||",",this.unescapePrefix=y?"":b||"-",this.unescapeSuffix=this.unescapePrefix?"":y||"",this.nestingPrefix=S?al(S):w||al("$t("),this.nestingSuffix=E?al(E):z||al(")"),this.nestingOptionsSeparator=H||",",this.maxReplaces=_||1e3,this.alwaysFormat=U!==void 0?U:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const n=(r,s)=>(r==null?void 0:r.source)===s?(r.lastIndex=0,r):new RegExp(s,"g");this.regexp=n(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=n(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=n(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(n,r,s,o){var w;let f,m,h;const p=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},d=E=>{if(E.indexOf(this.formatSeparator)<0){const U=kp(r,p,E,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(U,void 0,s,{...o,...r,interpolationkey:E}):U}const z=E.split(this.formatSeparator),H=z.shift().trim(),_=z.join(this.formatSeparator).trim();return this.format(kp(r,p,H,this.options.keySeparator,this.options.ignoreJSONStructure),_,s,{...o,...r,interpolationkey:H})};this.resetRegExp();const y=(o==null?void 0:o.missingInterpolationHandler)||this.options.missingInterpolationHandler,b=((w=o==null?void 0:o.interpolation)==null?void 0:w.skipOnVariables)!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:E=>To(E)},{regex:this.regexp,safeValue:E=>this.escapeValue?To(this.escape(E)):To(E)}].forEach(E=>{for(h=0;f=E.regex.exec(n);){const z=f[1].trim();if(m=d(z),m===void 0)if(typeof y=="function"){const _=y(n,f,o);m=se(_)?_:""}else if(o&&Object.prototype.hasOwnProperty.call(o,z))m="";else if(b){m=f[0];continue}else this.logger.warn(`missed to pass in variable ${z} for interpolating ${n}`),m="";else!se(m)&&!this.useRawValueToEscape&&(m=xp(m));const H=E.safeValue(m);if(n=n.replace(f[0],H),b?(E.regex.lastIndex+=m.length,E.regex.lastIndex-=f[0].length):E.regex.lastIndex=0,h++,h>=this.maxReplaces)break}}),n}nest(n,r,s={}){let o,f,m;const h=(p,d)=>{const y=this.nestingOptionsSeparator;if(p.indexOf(y)<0)return p;const b=p.split(new RegExp(`${y}[ ]*{`));let S=`{${b[1]}`;p=b[0],S=this.interpolate(S,m);const w=S.match(/'/g),E=S.match(/"/g);(((w==null?void 0:w.length)??0)%2===0&&!E||E.length%2!==0)&&(S=S.replace(/'/g,'"'));try{m=JSON.parse(S),d&&(m={...d,...m})}catch(z){return this.logger.warn(`failed parsing options string in nesting for key ${p}`,z),`${p}${y}${S}`}return m.defaultValue&&m.defaultValue.indexOf(this.prefix)>-1&&delete m.defaultValue,p};for(;o=this.nestingRegexp.exec(n);){let p=[];m={...s},m=m.replace&&!se(m.replace)?m.replace:m,m.applyPostProcessor=!1,delete m.defaultValue;let d=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const y=o[1].split(this.formatSeparator).map(b=>b.trim());o[1]=y.shift(),p=y,d=!0}if(f=r(h.call(this,o[1].trim(),m),m),f&&o[0]===n&&!se(f))return f;se(f)||(f=xp(f)),f||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${n}`),f=""),d&&(f=p.reduce((y,b)=>this.format(y,b,s.lng,{...s,interpolationkey:o[1].trim()}),f.trim())),n=n.replace(o[0],f),this.regexp.lastIndex=0}return n}}const K0=i=>{let n=i.toLowerCase().trim();const r={};if(i.indexOf("(")>-1){const s=i.split("(");n=s[0].toLowerCase().trim();const o=s[1].substring(0,s[1].length-1);n==="currency"&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):n==="relativetime"&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach(m=>{if(m){const[h,...p]=m.split(":"),d=p.join(":").trim().replace(/^'+|'+$/g,""),y=h.trim();r[y]||(r[y]=d),d==="false"&&(r[y]=!1),d==="true"&&(r[y]=!0),isNaN(d)||(r[y]=parseInt(d,10))}})}return{formatName:n,formatOptions:r}},Ap=i=>{const n={};return(r,s,o)=>{let f=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(f={...f,[o.interpolationkey]:void 0});const m=s+JSON.stringify(f);let h=n[m];return h||(h=i(pi(s),o),n[m]=h),h(r)}},X0=i=>(n,r,s)=>i(pi(r),s)(n);class J0{constructor(n={}){this.logger=Wt.create("formatter"),this.options=n,this.init(n)}init(n,r={interpolation:{}}){this.formatSeparator=r.interpolation.formatSeparator||",";const s=r.cacheInBuiltFormats?Ap:X0;this.formats={number:s((o,f)=>{const m=new Intl.NumberFormat(o,{...f});return h=>m.format(h)}),currency:s((o,f)=>{const m=new Intl.NumberFormat(o,{...f,style:"currency"});return h=>m.format(h)}),datetime:s((o,f)=>{const m=new Intl.DateTimeFormat(o,{...f});return h=>m.format(h)}),relativetime:s((o,f)=>{const m=new Intl.RelativeTimeFormat(o,{...f});return h=>m.format(h,f.range||"day")}),list:s((o,f)=>{const m=new Intl.ListFormat(o,{...f});return h=>m.format(h)})}}add(n,r){this.formats[n.toLowerCase().trim()]=r}addCached(n,r){this.formats[n.toLowerCase().trim()]=Ap(r)}format(n,r,s,o={}){const f=r.split(this.formatSeparator);if(f.length>1&&f[0].indexOf("(")>1&&f[0].indexOf(")")<0&&f.find(h=>h.indexOf(")")>-1)){const h=f.findIndex(p=>p.indexOf(")")>-1);f[0]=[f[0],...f.splice(1,h)].join(this.formatSeparator)}return f.reduce((h,p)=>{var b;const{formatName:d,formatOptions:y}=K0(p);if(this.formats[d]){let S=h;try{const w=((b=o==null?void 0:o.formatParams)==null?void 0:b[o.interpolationkey])||{},E=w.locale||w.lng||o.locale||o.lng||s;S=this.formats[d](h,E,{...y,...o,...w})}catch(w){this.logger.warn(w)}return S}else this.logger.warn(`there was no format function for ${d}`);return h},n)}}const F0=(i,n)=>{i.pending[n]!==void 0&&(delete i.pending[n],i.pendingCount--)};class P0 extends ts{constructor(n,r,s,o={}){var f,m;super(),this.backend=n,this.store=r,this.services=s,this.languageUtils=s.languageUtils,this.options=o,this.logger=Wt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],(m=(f=this.backend)==null?void 0:f.init)==null||m.call(f,s,o.backend,o)}queueLoad(n,r,s,o){const f={},m={},h={},p={};return n.forEach(d=>{let y=!0;r.forEach(b=>{const S=`${d}|${b}`;!s.reload&&this.store.hasResourceBundle(d,b)?this.state[S]=2:this.state[S]<0||(this.state[S]===1?m[S]===void 0&&(m[S]=!0):(this.state[S]=1,y=!1,m[S]===void 0&&(m[S]=!0),f[S]===void 0&&(f[S]=!0),p[b]===void 0&&(p[b]=!0)))}),y||(h[d]=!0)}),(Object.keys(f).length||Object.keys(m).length)&&this.queue.push({pending:m,pendingCount:Object.keys(m).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(f),pending:Object.keys(m),toLoadLanguages:Object.keys(h),toLoadNamespaces:Object.keys(p)}}loaded(n,r,s){const o=n.split("|"),f=o[0],m=o[1];r&&this.emit("failedLoading",f,m,r),!r&&s&&this.store.addResourceBundle(f,m,s,void 0,void 0,{skipCopy:!0}),this.state[n]=r?-1:2,r&&s&&(this.state[n]=0);const h={};this.queue.forEach(p=>{_0(p.loaded,[f],m),F0(p,n),r&&p.errors.push(r),p.pendingCount===0&&!p.done&&(Object.keys(p.loaded).forEach(d=>{h[d]||(h[d]={});const y=p.loaded[d];y.length&&y.forEach(b=>{h[d][b]===void 0&&(h[d][b]=!0)})}),p.done=!0,p.errors.length?p.callback(p.errors):p.callback())}),this.emit("loaded",h),this.queue=this.queue.filter(p=>!p.done)}read(n,r,s,o=0,f=this.retryTimeout,m){if(!n.length)return m(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:n,ns:r,fcName:s,tried:o,wait:f,callback:m});return}this.readingCalls++;const h=(d,y)=>{if(this.readingCalls--,this.waitingReads.length>0){const b=this.waitingReads.shift();this.read(b.lng,b.ns,b.fcName,b.tried,b.wait,b.callback)}if(d&&y&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,n,r,s,o+1,f*2,m)},f);return}m(d,y)},p=this.backend[s].bind(this.backend);if(p.length===2){try{const d=p(n,r);d&&typeof d.then=="function"?d.then(y=>h(null,y)).catch(h):h(null,d)}catch(d){h(d)}return}return p(n,r,h)}prepareLoading(n,r,s={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();se(n)&&(n=this.languageUtils.toResolveHierarchy(n)),se(r)&&(r=[r]);const f=this.queueLoad(n,r,s,o);if(!f.toLoad.length)return f.pending.length||o(),null;f.toLoad.forEach(m=>{this.loadOne(m)})}load(n,r,s){this.prepareLoading(n,r,{},s)}reload(n,r,s){this.prepareLoading(n,r,{reload:!0},s)}loadOne(n,r=""){const s=n.split("|"),o=s[0],f=s[1];this.read(o,f,"read",void 0,void 0,(m,h)=>{m&&this.logger.warn(`${r}loading namespace ${f} for language ${o} failed`,m),!m&&h&&this.logger.log(`${r}loaded namespace ${f} for language ${o}`,h),this.loaded(n,m,h)})}saveMissing(n,r,s,o,f,m={},h=()=>{}){var p,d,y,b,S;if((d=(p=this.services)==null?void 0:p.utils)!=null&&d.hasLoadedNamespace&&!((b=(y=this.services)==null?void 0:y.utils)!=null&&b.hasLoadedNamespace(r))){this.logger.warn(`did not save key "${s}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(s==null||s==="")){if((S=this.backend)!=null&&S.create){const w={...m,isUpdate:f},E=this.backend.create.bind(this.backend);if(E.length<6)try{let z;E.length===5?z=E(n,r,s,o,w):z=E(n,r,s,o),z&&typeof z.then=="function"?z.then(H=>h(null,H)).catch(h):h(null,z)}catch(z){h(z)}else E(n,r,s,o,h,w)}!n||!n[0]||this.store.addResource(n[0],r,s,o)}}}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:i=>{let n={};if(typeof i[1]=="object"&&(n=i[1]),se(i[1])&&(n.defaultValue=i[1]),se(i[2])&&(n.tDescription=i[2]),typeof i[2]=="object"||typeof i[3]=="object"){const r=i[3]||i[2];Object.keys(r).forEach(s=>{n[s]=r[s]})}return n},interpolation:{escapeValue:!0,format:i=>i,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),zp=i=>{var n,r;return se(i.ns)&&(i.ns=[i.ns]),se(i.fallbackLng)&&(i.fallbackLng=[i.fallbackLng]),se(i.fallbackNS)&&(i.fallbackNS=[i.fallbackNS]),((r=(n=i.supportedLngs)==null?void 0:n.indexOf)==null?void 0:r.call(n,"cimode"))<0&&(i.supportedLngs=i.supportedLngs.concat(["cimode"])),typeof i.initImmediate=="boolean"&&(i.initAsync=i.initImmediate),i},Br=()=>{},W0=i=>{Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach(r=>{typeof i[r]=="function"&&(i[r]=i[r].bind(i))})};class mi extends ts{constructor(n={},r){if(super(),this.options=zp(n),this.services={},this.logger=Wt,this.modules={external:[]},W0(this),r&&!this.isInitialized&&!n.isClone){if(!this.options.initAsync)return this.init(n,r),this;setTimeout(()=>{this.init(n,r)},0)}}init(n={},r){this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),n.defaultNS==null&&n.ns&&(se(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const s=Op();this.options={...s,...this.options,...zp(n)},this.options.interpolation={...s.interpolation,...this.options.interpolation},n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const o=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?Wt.init(o(this.modules.logger),this.options):Wt.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:d=J0;const y=new wp(this.options);this.store=new Ep(this.options.resources,this.options);const b=this.services;b.logger=Wt,b.resourceStore=this.store,b.languageUtils=y,b.pluralResolver=new Q0(y,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(b.formatter=o(d),b.formatter.init(b,this.options),this.options.interpolation.format=b.formatter.format.bind(b.formatter)),b.interpolator=new Z0(this.options),b.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},b.backendConnector=new P0(o(this.modules.backend),b.resourceStore,b,this.options),b.backendConnector.on("*",(S,...w)=>{this.emit(S,...w)}),this.modules.languageDetector&&(b.languageDetector=o(this.modules.languageDetector),b.languageDetector.init&&b.languageDetector.init(b,this.options.detection,this.options)),this.modules.i18nFormat&&(b.i18nFormat=o(this.modules.i18nFormat),b.i18nFormat.init&&b.i18nFormat.init(this)),this.translator=new Fr(this.services,this.options),this.translator.on("*",(S,...w)=>{this.emit(S,...w)}),this.modules.external.forEach(S=>{S.init&&S.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Br),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=(...y)=>this.store[d](...y)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=(...y)=>(this.store[d](...y),this)});const h=ri(),p=()=>{const d=(y,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),h.resolve(b),r(y,b)};if(this.languages&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initAsync?p():setTimeout(p,0),h}loadResources(n,r=Br){var f,m;let s=r;const o=se(n)?n:this.language;if(typeof n=="function"&&(s=n),!this.options.resources||this.options.partialBundledLanguages){if((o==null?void 0:o.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const h=[],p=d=>{if(!d||d==="cimode")return;this.services.languageUtils.toResolveHierarchy(d).forEach(b=>{b!=="cimode"&&h.indexOf(b)<0&&h.push(b)})};o?p(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(y=>p(y)),(m=(f=this.options.preload)==null?void 0:f.forEach)==null||m.call(f,d=>p(d)),this.services.backendConnector.load(h,this.options.ns,d=>{!d&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(d)})}else s(null)}reloadResources(n,r,s){const o=ri();return typeof n=="function"&&(s=n,n=void 0),typeof r=="function"&&(s=r,r=void 0),n||(n=this.languages),r||(r=this.options.ns),s||(s=Br),this.services.backendConnector.reload(n,r,f=>{o.resolve(),s(f)}),o}use(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&sm.addPostProcessor(n),n.type==="formatter"&&(this.modules.formatter=n),n.type==="3rdParty"&&this.modules.external.push(n),this}setResolvedLanguage(n){if(!(!n||!this.languages)&&!(["cimode","dev"].indexOf(n)>-1)){for(let r=0;r<this.languages.length;r++){const s=this.languages[r];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}!this.resolvedLanguage&&this.languages.indexOf(n)<0&&this.store.hasLanguageSomeTranslations(n)&&(this.resolvedLanguage=n,this.languages.unshift(n))}}changeLanguage(n,r){this.isLanguageChangingTo=n;const s=ri();this.emit("languageChanging",n);const o=h=>{this.language=h,this.languages=this.services.languageUtils.toResolveHierarchy(h),this.resolvedLanguage=void 0,this.setResolvedLanguage(h)},f=(h,p)=>{p?this.isLanguageChangingTo===n&&(o(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,s.resolve((...d)=>this.t(...d)),r&&r(h,(...d)=>this.t(...d))},m=h=>{var y,b;!n&&!h&&this.services.languageDetector&&(h=[]);const p=se(h)?h:h&&h[0],d=this.store.hasLanguageSomeTranslations(p)?p:this.services.languageUtils.getBestMatchFromCodes(se(h)?[h]:h);d&&(this.language||o(d),this.translator.language||this.translator.changeLanguage(d),(b=(y=this.services.languageDetector)==null?void 0:y.cacheUserLanguage)==null||b.call(y,d)),this.loadResources(d,S=>{f(S,d)})};return!n&&this.services.languageDetector&&!this.services.languageDetector.async?m(this.services.languageDetector.detect()):!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(m):this.services.languageDetector.detect(m):m(n),s}getFixedT(n,r,s){const o=(f,m,...h)=>{let p;typeof m!="object"?p=this.options.overloadTranslationOptionHandler([f,m].concat(h)):p={...m},p.lng=p.lng||o.lng,p.lngs=p.lngs||o.lngs,p.ns=p.ns||o.ns,p.keyPrefix!==""&&(p.keyPrefix=p.keyPrefix||s||o.keyPrefix);const d=this.options.keySeparator||".";let y;return p.keyPrefix&&Array.isArray(f)?y=f.map(b=>`${p.keyPrefix}${d}${b}`):y=p.keyPrefix?`${p.keyPrefix}${d}${f}`:f,this.t(y,p)};return se(n)?o.lng=n:o.lngs=n,o.ns=r,o.keyPrefix=s,o}t(...n){var r;return(r=this.translator)==null?void 0:r.translate(...n)}exists(...n){var r;return(r=this.translator)==null?void 0:r.exists(...n)}setDefaultNamespace(n){this.options.defaultNS=n}hasLoadedNamespace(n,r={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=r.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const m=(h,p)=>{const d=this.services.backendConnector.state[`${h}|${p}`];return d===-1||d===0||d===2};if(r.precheck){const h=r.precheck(this,m);if(h!==void 0)return h}return!!(this.hasResourceBundle(s,n)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||m(s,n)&&(!o||m(f,n)))}loadNamespaces(n,r){const s=ri();return this.options.ns?(se(n)&&(n=[n]),n.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{s.resolve(),r&&r(o)}),s):(r&&r(),Promise.resolve())}loadLanguages(n,r){const s=ri();se(n)&&(n=[n]);const o=this.options.preload||[],f=n.filter(m=>o.indexOf(m)<0&&this.services.languageUtils.isSupportedCode(m));return f.length?(this.options.preload=o.concat(f),this.loadResources(m=>{s.resolve(),r&&r(m)}),s):(r&&r(),Promise.resolve())}dir(n){var o,f;if(n||(n=this.resolvedLanguage||(((o=this.languages)==null?void 0:o.length)>0?this.languages[0]:this.language)),!n)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=((f=this.services)==null?void 0:f.languageUtils)||new wp(Op());return r.indexOf(s.getLanguagePartFromCode(n))>-1||n.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(n={},r){return new mi(n,r)}cloneInstance(n={},r=Br){const s=n.forkResourceStore;s&&delete n.forkResourceStore;const o={...this.options,...n,isClone:!0},f=new mi(o);if((n.debug!==void 0||n.prefix!==void 0)&&(f.logger=f.logger.clone(n)),["store","services","language"].forEach(h=>{f[h]=this[h]}),f.services={...this.services},f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},s){const h=Object.keys(this.store.data).reduce((p,d)=>(p[d]={...this.store.data[d]},p[d]=Object.keys(p[d]).reduce((y,b)=>(y[b]={...p[d][b]},y),p[d]),p),{});f.store=new Ep(h,o),f.services.resourceStore=f.store}return f.translator=new Fr(f.services,o),f.translator.on("*",(h,...p)=>{f.emit(h,...p)}),f.init(o,r),f.translator.options=o,f.translator.backendConnector.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const at=mi.createInstance();at.createInstance=mi.createInstance;at.createInstance;at.dir;at.init;at.loadResources;at.reloadResources;at.use;at.changeLanguage;at.getFixedT;at.t;at.exists;at.setDefaultNamespace;at.hasLoadedNamespace;at.loadNamespaces;at.loadLanguages;var wo={exports:{}},oe={};/**
|
|
9
|
+
*/var Mp;function P0(){if(Mp)return ui;Mp=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(s,o,f){var p=null;if(f!==void 0&&(p=""+f),o.key!==void 0&&(p=""+o.key),"key"in o){f={};for(var d in o)d!=="key"&&(f[d]=o[d])}else f=o;return o=f.ref,{$$typeof:i,type:s,key:p,ref:o!==void 0?o:null,props:f}}return ui.Fragment=n,ui.jsx=r,ui.jsxs=r,ui}var Up;function I0(){return Up||(Up=1,_o.exports=P0()),_o.exports}var b=I0();const le=i=>typeof i=="string",oi=()=>{let i,n;const r=new Promise((s,o)=>{i=s,n=o});return r.resolve=i,r.reject=n,r},Bp=i=>i==null?"":""+i,eS=(i,n,r)=>{i.forEach(s=>{n[s]&&(r[s]=n[s])})},tS=/###/g,Hp=i=>i&&i.indexOf("###")>-1?i.replace(tS,"."):i,Vp=i=>!i||le(i),gi=(i,n,r)=>{const s=le(n)?n.split("."):n;let o=0;for(;o<s.length-1;){if(Vp(i))return{};const f=Hp(s[o]);!i[f]&&r&&(i[f]=new r),Object.prototype.hasOwnProperty.call(i,f)?i=i[f]:i={},++o}return Vp(i)?{}:{obj:i,k:Hp(s[o])}},$p=(i,n,r)=>{const{obj:s,k:o}=gi(i,n,Object);if(s!==void 0||n.length===1){s[o]=r;return}let f=n[n.length-1],p=n.slice(0,n.length-1),d=gi(i,p,Object);for(;d.obj===void 0&&p.length;)f=`${p[p.length-1]}.${f}`,p=p.slice(0,p.length-1),d=gi(i,p,Object),d!=null&&d.obj&&typeof d.obj[`${d.k}.${f}`]<"u"&&(d.obj=void 0);d.obj[`${d.k}.${f}`]=r},aS=(i,n,r,s)=>{const{obj:o,k:f}=gi(i,n,Object);o[f]=o[f]||[],o[f].push(r)},ts=(i,n)=>{const{obj:r,k:s}=gi(i,n);if(r&&Object.prototype.hasOwnProperty.call(r,s))return r[s]},nS=(i,n,r)=>{const s=ts(i,r);return s!==void 0?s:ts(n,r)},Tm=(i,n,r)=>{for(const s in n)s!=="__proto__"&&s!=="constructor"&&(s in i?le(i[s])||i[s]instanceof String||le(n[s])||n[s]instanceof String?r&&(i[s]=n[s]):Tm(i[s],n[s],r):i[s]=n[s]);return i},ol=i=>i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var lS={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const iS=i=>le(i)?i.replace(/[&<>"'\/]/g,n=>lS[n]):i;class rS{constructor(n){this.capacity=n,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(n){const r=this.regExpMap.get(n);if(r!==void 0)return r;const s=new RegExp(n);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(n,s),this.regExpQueue.push(n),s}}const sS=[" ",",","?","!",";"],uS=new rS(20),oS=(i,n,r)=>{n=n||"",r=r||"";const s=sS.filter(p=>n.indexOf(p)<0&&r.indexOf(p)<0);if(s.length===0)return!0;const o=uS.getRegExp(`(${s.map(p=>p==="?"?"\\?":p).join("|")})`);let f=!o.test(i);if(!f){const p=i.indexOf(r);p>0&&!o.test(i.substring(0,p))&&(f=!0)}return f},Ko=(i,n,r=".")=>{if(!i)return;if(i[n])return Object.prototype.hasOwnProperty.call(i,n)?i[n]:void 0;const s=n.split(r);let o=i;for(let f=0;f<s.length;){if(!o||typeof o!="object")return;let p,d="";for(let m=f;m<s.length;++m)if(m!==f&&(d+=r),d+=s[m],p=o[d],p!==void 0){if(["string","number","boolean"].indexOf(typeof p)>-1&&m<s.length-1)continue;f+=m-f+1;break}o=p}return o},vi=i=>i==null?void 0:i.replace("_","-"),cS={type:"logger",log(i){this.output("log",i)},warn(i){this.output("warn",i)},error(i){this.output("error",i)},output(i,n){var r,s;(s=(r=console==null?void 0:console[i])==null?void 0:r.apply)==null||s.call(r,console,n)}};class as{constructor(n,r={}){this.init(n,r)}init(n,r={}){this.prefix=r.prefix||"i18next:",this.logger=n||cS,this.options=r,this.debug=r.debug}log(...n){return this.forward(n,"log","",!0)}warn(...n){return this.forward(n,"warn","",!0)}error(...n){return this.forward(n,"error","")}deprecate(...n){return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(n,r,s,o){return o&&!this.debug?null:(le(n[0])&&(n[0]=`${s}${this.prefix} ${n[0]}`),this.logger[r](n))}create(n){return new as(this.logger,{prefix:`${this.prefix}:${n}:`,...this.options})}clone(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new as(this.logger,n)}}var la=new as;class us{constructor(){this.observers={}}on(n,r){return n.split(" ").forEach(s=>{this.observers[s]||(this.observers[s]=new Map);const o=this.observers[s].get(r)||0;this.observers[s].set(r,o+1)}),this}off(n,r){if(this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n].delete(r)}}emit(n,...r){this.observers[n]&&Array.from(this.observers[n].entries()).forEach(([o,f])=>{for(let p=0;p<f;p++)o(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,f])=>{for(let p=0;p<f;p++)o.apply(o,[n,...r])})}}class qp extends us{constructor(n,r={ns:["translation"],defaultNS:"translation"}){super(),this.data=n||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}removeNamespaces(n){const r=this.options.ns.indexOf(n);r>-1&&this.options.ns.splice(r,1)}getResource(n,r,s,o={}){var h,y;const f=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,p=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let d;n.indexOf(".")>-1?d=n.split("."):(d=[n,r],s&&(Array.isArray(s)?d.push(...s):le(s)&&f?d.push(...s.split(f)):d.push(s)));const m=ts(this.data,d);return!m&&!r&&!s&&n.indexOf(".")>-1&&(n=d[0],r=d[1],s=d.slice(2).join(".")),m||!p||!le(s)?m:Ko((y=(h=this.data)==null?void 0:h[n])==null?void 0:y[r],s,f)}addResource(n,r,s,o,f={silent:!1}){const p=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator;let d=[n,r];s&&(d=d.concat(p?s.split(p):s)),n.indexOf(".")>-1&&(d=n.split("."),o=r,r=d[1]),this.addNamespaces(r),$p(this.data,d,o),f.silent||this.emit("added",n,r,s,o)}addResources(n,r,s,o={silent:!1}){for(const f in s)(le(s[f])||Array.isArray(s[f]))&&this.addResource(n,r,f,s[f],{silent:!0});o.silent||this.emit("added",n,r,s)}addResourceBundle(n,r,s,o,f,p={silent:!1,skipCopy:!1}){let d=[n,r];n.indexOf(".")>-1&&(d=n.split("."),o=s,s=r,r=d[1]),this.addNamespaces(r);let m=ts(this.data,d)||{};p.skipCopy||(s=JSON.parse(JSON.stringify(s))),o?Tm(m,s,f):m={...m,...s},$p(this.data,d,m),p.silent||this.emit("added",n,r,s)}removeResourceBundle(n,r){this.hasResourceBundle(n,r)&&delete this.data[n][r],this.removeNamespaces(r),this.emit("removed",n,r)}hasResourceBundle(n,r){return this.getResource(n,r)!==void 0}getResourceBundle(n,r){return r||(r=this.options.defaultNS),this.getResource(n,r)}getDataByLanguage(n){return this.data[n]}hasLanguageSomeTranslations(n){const r=this.getDataByLanguage(n);return!!(r&&Object.keys(r)||[]).find(o=>r[o]&&Object.keys(r[o]).length>0)}toJSON(){return this.data}}var Cm={processors:{},addPostProcessor(i){this.processors[i.name]=i},handle(i,n,r,s,o){return i.forEach(f=>{var p;n=((p=this.processors[f])==null?void 0:p.process(n,r,s,o))??n}),n}};const Rm=Symbol("i18next/PATH_KEY");function fS(){const i=[],n=Object.create(null);let r;return n.get=(s,o)=>{var f;return(f=r==null?void 0:r.revoke)==null||f.call(r),o===Rm?i:(i.push(o),r=Proxy.revocable(s,n),r.proxy)},Proxy.revocable(Object.create(null),n).proxy}function Zo(i,n){const{[Rm]:r}=i(fS());return r.join((n==null?void 0:n.keySeparator)??".")}const Gp={},Do=i=>!le(i)&&typeof i!="boolean"&&typeof i!="number";class ns extends us{constructor(n,r={}){super(),eS(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=la.create("translator")}changeLanguage(n){n&&(this.language=n)}exists(n,r={interpolation:{}}){const s={...r};if(n==null)return!1;const o=this.resolve(n,s);if((o==null?void 0:o.res)===void 0)return!1;const f=Do(o.res);return!(s.returnObjects===!1&&f)}extractFromKey(n,r){let s=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let f=r.ns||this.options.defaultNS||[];const p=s&&n.indexOf(s)>-1,d=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!oS(n,s,o);if(p&&!d){const m=n.match(this.interpolator.nestingRegexp);if(m&&m.length>0)return{key:n,namespaces:le(f)?[f]:f};const h=n.split(s);(s!==o||s===o&&this.options.ns.indexOf(h[0])>-1)&&(f=h.shift()),n=h.join(o)}return{key:n,namespaces:le(f)?[f]:f}}translate(n,r,s){let o=typeof r=="object"?{...r}:r;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),n==null)return"";typeof n=="function"&&(n=Zo(n,{...this.options,...o})),Array.isArray(n)||(n=[String(n)]);const f=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,p=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:d,namespaces:m}=this.extractFromKey(n[n.length-1],o),h=m[m.length-1];let y=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;y===void 0&&(y=":");const v=o.lng||this.language,x=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((v==null?void 0:v.toLowerCase())==="cimode")return x?f?{res:`${h}${y}${d}`,usedKey:d,exactUsedKey:d,usedLng:v,usedNS:h,usedParams:this.getUsedParamsDetails(o)}:`${h}${y}${d}`:f?{res:d,usedKey:d,exactUsedKey:d,usedLng:v,usedNS:h,usedParams:this.getUsedParamsDetails(o)}:d;const R=this.resolve(n,o);let j=R==null?void 0:R.res;const L=(R==null?void 0:R.usedKey)||d,H=(R==null?void 0:R.exactUsedKey)||d,$=["[object Number]","[object Function]","[object RegExp]"],G=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,q=!this.i18nFormat||this.i18nFormat.handleAsObject,Z=o.count!==void 0&&!le(o.count),I=ns.hasDefaultValue(o),re=Z?this.pluralResolver.getSuffix(v,o.count,o):"",K=o.ordinal&&Z?this.pluralResolver.getSuffix(v,o.count,{ordinal:!1}):"",ae=Z&&!o.ordinal&&o.count===0,W=ae&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${re}`]||o[`defaultValue${K}`]||o.defaultValue;let ne=j;q&&!j&&I&&(ne=W);const Ee=Do(ne),$e=Object.prototype.toString.apply(ne);if(q&&ne&&Ee&&$.indexOf($e)<0&&!(le(G)&&Array.isArray(ne))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const Ue=this.options.returnedObjectHandler?this.options.returnedObjectHandler(L,ne,{...o,ns:m}):`key '${d} (${this.language})' returned an object instead of string.`;return f?(R.res=Ue,R.usedParams=this.getUsedParamsDetails(o),R):Ue}if(p){const Ue=Array.isArray(ne),Ve=Ue?[]:{},qe=Ue?H:L;for(const _ in ne)if(Object.prototype.hasOwnProperty.call(ne,_)){const Y=`${qe}${p}${_}`;I&&!j?Ve[_]=this.translate(Y,{...o,defaultValue:Do(W)?W[_]:void 0,joinArrays:!1,ns:m}):Ve[_]=this.translate(Y,{...o,joinArrays:!1,ns:m}),Ve[_]===Y&&(Ve[_]=ne[_])}j=Ve}}else if(q&&le(G)&&Array.isArray(j))j=j.join(G),j&&(j=this.extendTranslation(j,n,o,s));else{let Ue=!1,Ve=!1;!this.isValidLookup(j)&&I&&(Ue=!0,j=W),this.isValidLookup(j)||(Ve=!0,j=d);const _=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Ve?void 0:j,Y=I&&W!==j&&this.options.updateMissing;if(Ve||Ue||Y){if(this.logger.log(Y?"updateKey":"missingKey",v,h,d,Y?W:j),p){const E=this.resolve(d,{...o,keySeparator:!1});E&&E.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 ee=[];const ye=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ye&&ye[0])for(let E=0;E<ye.length;E++)ee.push(ye[E]);else this.options.saveMissingTo==="all"?ee=this.languageUtils.toResolveHierarchy(o.lng||this.language):ee.push(o.lng||this.language);const Te=(E,U,Q)=>{var ie;const X=I&&Q!==j?Q:_;this.options.missingKeyHandler?this.options.missingKeyHandler(E,h,U,X,Y,o):(ie=this.backendConnector)!=null&&ie.saveMissing&&this.backendConnector.saveMissing(E,h,U,X,Y,o),this.emit("missingKey",E,h,U,j)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Z?ee.forEach(E=>{const U=this.pluralResolver.getSuffixes(E,o);ae&&o[`defaultValue${this.options.pluralSeparator}zero`]&&U.indexOf(`${this.options.pluralSeparator}zero`)<0&&U.push(`${this.options.pluralSeparator}zero`),U.forEach(Q=>{Te([E],d+Q,o[`defaultValue${Q}`]||W)})}):Te(ee,d,W))}j=this.extendTranslation(j,n,o,R,s),Ve&&j===d&&this.options.appendNamespaceToMissingKey&&(j=`${h}${y}${d}`),(Ve||Ue)&&this.options.parseMissingKeyHandler&&(j=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${h}${y}${d}`:d,Ue?j:void 0,o))}return f?(R.res=j,R.usedParams=this.getUsedParamsDetails(o),R):j}extendTranslation(n,r,s,o,f){var m,h;if((m=this.i18nFormat)!=null&&m.parse)n=this.i18nFormat.parse(n,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const y=le(n)&&(((h=s==null?void 0:s.interpolation)==null?void 0:h.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let v;if(y){const R=n.match(this.interpolator.nestingRegexp);v=R&&R.length}let x=s.replace&&!le(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(x={...this.options.interpolation.defaultVariables,...x}),n=this.interpolator.interpolate(n,x,s.lng||this.language||o.usedLng,s),y){const R=n.match(this.interpolator.nestingRegexp),j=R&&R.length;v<j&&(s.nest=!1)}!s.lng&&o&&o.res&&(s.lng=this.language||o.usedLng),s.nest!==!1&&(n=this.interpolator.nest(n,(...R)=>(f==null?void 0:f[0])===R[0]&&!s.context?(this.logger.warn(`It seems you are nesting recursively key: ${R[0]} in key: ${r[0]}`),null):this.translate(...R,r),s)),s.interpolation&&this.interpolator.reset()}const p=s.postProcess||this.options.postProcess,d=le(p)?[p]:p;return n!=null&&(d!=null&&d.length)&&s.applyPostProcessor!==!1&&(n=Cm.handle(d,n,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),n}resolve(n,r={}){let s,o,f,p,d;return le(n)&&(n=[n]),n.forEach(m=>{if(this.isValidLookup(s))return;const h=this.extractFromKey(m,r),y=h.key;o=y;let v=h.namespaces;this.options.fallbackNS&&(v=v.concat(this.options.fallbackNS));const x=r.count!==void 0&&!le(r.count),R=x&&!r.ordinal&&r.count===0,j=r.context!==void 0&&(le(r.context)||typeof r.context=="number")&&r.context!=="",L=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);v.forEach(H=>{var $,G;this.isValidLookup(s)||(d=H,!Gp[`${L[0]}-${H}`]&&(($=this.utils)!=null&&$.hasLoadedNamespace)&&!((G=this.utils)!=null&&G.hasLoadedNamespace(d))&&(Gp[`${L[0]}-${H}`]=!0,this.logger.warn(`key "${o}" for languages "${L.join(", ")}" won't get resolved as namespace "${d}" 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!!!")),L.forEach(q=>{var re;if(this.isValidLookup(s))return;p=q;const Z=[y];if((re=this.i18nFormat)!=null&&re.addLookupKeys)this.i18nFormat.addLookupKeys(Z,y,q,H,r);else{let K;x&&(K=this.pluralResolver.getSuffix(q,r.count,r));const ae=`${this.options.pluralSeparator}zero`,W=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(x&&(r.ordinal&&K.indexOf(W)===0&&Z.push(y+K.replace(W,this.options.pluralSeparator)),Z.push(y+K),R&&Z.push(y+ae)),j){const ne=`${y}${this.options.contextSeparator||"_"}${r.context}`;Z.push(ne),x&&(r.ordinal&&K.indexOf(W)===0&&Z.push(ne+K.replace(W,this.options.pluralSeparator)),Z.push(ne+K),R&&Z.push(ne+ae))}}let I;for(;I=Z.pop();)this.isValidLookup(s)||(f=I,s=this.getResource(q,H,I,r))}))})}),{res:s,usedKey:o,exactUsedKey:f,usedLng:p,usedNS:d}}isValidLookup(n){return n!==void 0&&!(!this.options.returnNull&&n===null)&&!(!this.options.returnEmptyString&&n==="")}getResource(n,r,s,o={}){var f;return(f=this.i18nFormat)!=null&&f.getResource?this.i18nFormat.getResource(n,r,s,o):this.resourceStore.getResource(n,r,s,o)}getUsedParamsDetails(n={}){const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=n.replace&&!le(n.replace);let o=s?n.replace:n;if(s&&typeof n.count<"u"&&(o.count=n.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!s){o={...o};for(const f of r)delete o[f]}return o}static hasDefaultValue(n){const r="defaultValue";for(const s in n)if(Object.prototype.hasOwnProperty.call(n,s)&&r===s.substring(0,r.length)&&n[s]!==void 0)return!0;return!1}}class Yp{constructor(n){this.options=n,this.supportedLngs=this.options.supportedLngs||!1,this.logger=la.create("languageUtils")}getScriptPartFromCode(n){if(n=vi(n),!n||n.indexOf("-")<0)return null;const r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(n){if(n=vi(n),!n||n.indexOf("-")<0)return n;const r=n.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(n){if(le(n)&&n.indexOf("-")>-1){let r;try{r=Intl.getCanonicalLocales(n)[0]}catch{}return r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r||(this.options.lowerCaseLng?n.toLowerCase():n)}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}isSupportedCode(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}getBestMatchFromCodes(n){if(!n)return null;let r;return n.forEach(s=>{if(r)return;const o=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(o))&&(r=o)}),!r&&this.options.supportedLngs&&n.forEach(s=>{if(r)return;const o=this.getScriptPartFromCode(s);if(this.isSupportedCode(o))return r=o;const f=this.getLanguagePartFromCode(s);if(this.isSupportedCode(f))return r=f;r=this.options.supportedLngs.find(p=>{if(p===f)return p;if(!(p.indexOf("-")<0&&f.indexOf("-")<0)&&(p.indexOf("-")>0&&f.indexOf("-")<0&&p.substring(0,p.indexOf("-"))===f||p.indexOf(f)===0&&f.length>1))return p})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),le(n)&&(n=[n]),Array.isArray(n))return n;if(!r)return n.default||[];let s=n[r];return s||(s=n[this.getScriptPartFromCode(r)]),s||(s=n[this.formatLanguageCode(r)]),s||(s=n[this.getLanguagePartFromCode(r)]),s||(s=n.default),s||[]}toResolveHierarchy(n,r){const s=this.getFallbackCodes((r===!1?[]:r)||this.options.fallbackLng||[],n),o=[],f=p=>{p&&(this.isSupportedCode(p)?o.push(p):this.logger.warn(`rejecting language code not found in supportedLngs: ${p}`))};return le(n)&&(n.indexOf("-")>-1||n.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&f(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&f(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&f(this.getLanguagePartFromCode(n))):le(n)&&f(this.formatLanguageCode(n)),s.forEach(p=>{o.indexOf(p)<0&&f(this.formatLanguageCode(p))}),o}}const Qp={zero:0,one:1,two:2,few:3,many:4,other:5},Kp={select:i=>i===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class dS{constructor(n,r={}){this.languageUtils=n,this.options=r,this.logger=la.create("pluralResolver"),this.pluralRulesCache={}}addRule(n,r){this.rules[n]=r}clearCache(){this.pluralRulesCache={}}getRule(n,r={}){const s=vi(n==="dev"?"en":n),o=r.ordinal?"ordinal":"cardinal",f=JSON.stringify({cleanedCode:s,type:o});if(f in this.pluralRulesCache)return this.pluralRulesCache[f];let p;try{p=new Intl.PluralRules(s,{type:o})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Kp;if(!n.match(/-|_/))return Kp;const m=this.languageUtils.getLanguagePartFromCode(n);p=this.getRule(m,r)}return this.pluralRulesCache[f]=p,p}needsPlural(n,r={}){let s=this.getRule(n,r);return s||(s=this.getRule("dev",r)),(s==null?void 0:s.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(n,r,s={}){return this.getSuffixes(n,s).map(o=>`${r}${o}`)}getSuffixes(n,r={}){let s=this.getRule(n,r);return s||(s=this.getRule("dev",r)),s?s.resolvedOptions().pluralCategories.sort((o,f)=>Qp[o]-Qp[f]).map(o=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(n,r,s={}){const o=this.getRule(n,s);return o?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${o.select(r)}`:(this.logger.warn(`no plural rule found for: ${n}`),this.getSuffix("dev",r,s))}}const Zp=(i,n,r,s=".",o=!0)=>{let f=nS(i,n,r);return!f&&o&&le(r)&&(f=Ko(i,r,s),f===void 0&&(f=Ko(n,r,s))),f},Mo=i=>i.replace(/\$/g,"$$$$");class hS{constructor(n={}){var r;this.logger=la.create("interpolator"),this.options=n,this.format=((r=n==null?void 0:n.interpolation)==null?void 0:r.format)||(s=>s),this.init(n)}init(n={}){n.interpolation||(n.interpolation={escapeValue:!0});const{escape:r,escapeValue:s,useRawValueToEscape:o,prefix:f,prefixEscaped:p,suffix:d,suffixEscaped:m,formatSeparator:h,unescapeSuffix:y,unescapePrefix:v,nestingPrefix:x,nestingPrefixEscaped:R,nestingSuffix:j,nestingSuffixEscaped:L,nestingOptionsSeparator:H,maxReplaces:$,alwaysFormat:G}=n.interpolation;this.escape=r!==void 0?r:iS,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=f?ol(f):p||"{{",this.suffix=d?ol(d):m||"}}",this.formatSeparator=h||",",this.unescapePrefix=y?"":v||"-",this.unescapeSuffix=this.unescapePrefix?"":y||"",this.nestingPrefix=x?ol(x):R||ol("$t("),this.nestingSuffix=j?ol(j):L||ol(")"),this.nestingOptionsSeparator=H||",",this.maxReplaces=$||1e3,this.alwaysFormat=G!==void 0?G:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const n=(r,s)=>(r==null?void 0:r.source)===s?(r.lastIndex=0,r):new RegExp(s,"g");this.regexp=n(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=n(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=n(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(n,r,s,o){var R;let f,p,d;const m=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},h=j=>{if(j.indexOf(this.formatSeparator)<0){const G=Zp(r,m,j,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(G,void 0,s,{...o,...r,interpolationkey:j}):G}const L=j.split(this.formatSeparator),H=L.shift().trim(),$=L.join(this.formatSeparator).trim();return this.format(Zp(r,m,H,this.options.keySeparator,this.options.ignoreJSONStructure),$,s,{...o,...r,interpolationkey:H})};this.resetRegExp();const y=(o==null?void 0:o.missingInterpolationHandler)||this.options.missingInterpolationHandler,v=((R=o==null?void 0:o.interpolation)==null?void 0:R.skipOnVariables)!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:j=>Mo(j)},{regex:this.regexp,safeValue:j=>this.escapeValue?Mo(this.escape(j)):Mo(j)}].forEach(j=>{for(d=0;f=j.regex.exec(n);){const L=f[1].trim();if(p=h(L),p===void 0)if(typeof y=="function"){const $=y(n,f,o);p=le($)?$:""}else if(o&&Object.prototype.hasOwnProperty.call(o,L))p="";else if(v){p=f[0];continue}else this.logger.warn(`missed to pass in variable ${L} for interpolating ${n}`),p="";else!le(p)&&!this.useRawValueToEscape&&(p=Bp(p));const H=j.safeValue(p);if(n=n.replace(f[0],H),v?(j.regex.lastIndex+=p.length,j.regex.lastIndex-=f[0].length):j.regex.lastIndex=0,d++,d>=this.maxReplaces)break}}),n}nest(n,r,s={}){let o,f,p;const d=(m,h)=>{const y=this.nestingOptionsSeparator;if(m.indexOf(y)<0)return m;const v=m.split(new RegExp(`${y}[ ]*{`));let x=`{${v[1]}`;m=v[0],x=this.interpolate(x,p);const R=x.match(/'/g),j=x.match(/"/g);(((R==null?void 0:R.length)??0)%2===0&&!j||j.length%2!==0)&&(x=x.replace(/'/g,'"'));try{p=JSON.parse(x),h&&(p={...h,...p})}catch(L){return this.logger.warn(`failed parsing options string in nesting for key ${m}`,L),`${m}${y}${x}`}return p.defaultValue&&p.defaultValue.indexOf(this.prefix)>-1&&delete p.defaultValue,m};for(;o=this.nestingRegexp.exec(n);){let m=[];p={...s},p=p.replace&&!le(p.replace)?p.replace:p,p.applyPostProcessor=!1,delete p.defaultValue;const h=/{.*}/.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(h!==-1&&(m=o[1].slice(h).split(this.formatSeparator).map(y=>y.trim()).filter(Boolean),o[1]=o[1].slice(0,h)),f=r(d.call(this,o[1].trim(),p),p),f&&o[0]===n&&!le(f))return f;le(f)||(f=Bp(f)),f||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${n}`),f=""),m.length&&(f=m.reduce((y,v)=>this.format(y,v,s.lng,{...s,interpolationkey:o[1].trim()}),f.trim())),n=n.replace(o[0],f),this.regexp.lastIndex=0}return n}}const pS=i=>{let n=i.toLowerCase().trim();const r={};if(i.indexOf("(")>-1){const s=i.split("(");n=s[0].toLowerCase().trim();const o=s[1].substring(0,s[1].length-1);n==="currency"&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):n==="relativetime"&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach(p=>{if(p){const[d,...m]=p.split(":"),h=m.join(":").trim().replace(/^'+|'+$/g,""),y=d.trim();r[y]||(r[y]=h),h==="false"&&(r[y]=!1),h==="true"&&(r[y]=!0),isNaN(h)||(r[y]=parseInt(h,10))}})}return{formatName:n,formatOptions:r}},Xp=i=>{const n={};return(r,s,o)=>{let f=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(f={...f,[o.interpolationkey]:void 0});const p=s+JSON.stringify(f);let d=n[p];return d||(d=i(vi(s),o),n[p]=d),d(r)}},mS=i=>(n,r,s)=>i(vi(r),s)(n);class gS{constructor(n={}){this.logger=la.create("formatter"),this.options=n,this.init(n)}init(n,r={interpolation:{}}){this.formatSeparator=r.interpolation.formatSeparator||",";const s=r.cacheInBuiltFormats?Xp:mS;this.formats={number:s((o,f)=>{const p=new Intl.NumberFormat(o,{...f});return d=>p.format(d)}),currency:s((o,f)=>{const p=new Intl.NumberFormat(o,{...f,style:"currency"});return d=>p.format(d)}),datetime:s((o,f)=>{const p=new Intl.DateTimeFormat(o,{...f});return d=>p.format(d)}),relativetime:s((o,f)=>{const p=new Intl.RelativeTimeFormat(o,{...f});return d=>p.format(d,f.range||"day")}),list:s((o,f)=>{const p=new Intl.ListFormat(o,{...f});return d=>p.format(d)})}}add(n,r){this.formats[n.toLowerCase().trim()]=r}addCached(n,r){this.formats[n.toLowerCase().trim()]=Xp(r)}format(n,r,s,o={}){const f=r.split(this.formatSeparator);if(f.length>1&&f[0].indexOf("(")>1&&f[0].indexOf(")")<0&&f.find(d=>d.indexOf(")")>-1)){const d=f.findIndex(m=>m.indexOf(")")>-1);f[0]=[f[0],...f.splice(1,d)].join(this.formatSeparator)}return f.reduce((d,m)=>{var v;const{formatName:h,formatOptions:y}=pS(m);if(this.formats[h]){let x=d;try{const R=((v=o==null?void 0:o.formatParams)==null?void 0:v[o.interpolationkey])||{},j=R.locale||R.lng||o.locale||o.lng||s;x=this.formats[h](d,j,{...y,...o,...R})}catch(R){this.logger.warn(R)}return x}else this.logger.warn(`there was no format function for ${h}`);return d},n)}}const yS=(i,n)=>{i.pending[n]!==void 0&&(delete i.pending[n],i.pendingCount--)};class vS extends us{constructor(n,r,s,o={}){var f,p;super(),this.backend=n,this.store=r,this.services=s,this.languageUtils=s.languageUtils,this.options=o,this.logger=la.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],(p=(f=this.backend)==null?void 0:f.init)==null||p.call(f,s,o.backend,o)}queueLoad(n,r,s,o){const f={},p={},d={},m={};return n.forEach(h=>{let y=!0;r.forEach(v=>{const x=`${h}|${v}`;!s.reload&&this.store.hasResourceBundle(h,v)?this.state[x]=2:this.state[x]<0||(this.state[x]===1?p[x]===void 0&&(p[x]=!0):(this.state[x]=1,y=!1,p[x]===void 0&&(p[x]=!0),f[x]===void 0&&(f[x]=!0),m[v]===void 0&&(m[v]=!0)))}),y||(d[h]=!0)}),(Object.keys(f).length||Object.keys(p).length)&&this.queue.push({pending:p,pendingCount:Object.keys(p).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(f),pending:Object.keys(p),toLoadLanguages:Object.keys(d),toLoadNamespaces:Object.keys(m)}}loaded(n,r,s){const o=n.split("|"),f=o[0],p=o[1];r&&this.emit("failedLoading",f,p,r),!r&&s&&this.store.addResourceBundle(f,p,s,void 0,void 0,{skipCopy:!0}),this.state[n]=r?-1:2,r&&s&&(this.state[n]=0);const d={};this.queue.forEach(m=>{aS(m.loaded,[f],p),yS(m,n),r&&m.errors.push(r),m.pendingCount===0&&!m.done&&(Object.keys(m.loaded).forEach(h=>{d[h]||(d[h]={});const y=m.loaded[h];y.length&&y.forEach(v=>{d[h][v]===void 0&&(d[h][v]=!0)})}),m.done=!0,m.errors.length?m.callback(m.errors):m.callback())}),this.emit("loaded",d),this.queue=this.queue.filter(m=>!m.done)}read(n,r,s,o=0,f=this.retryTimeout,p){if(!n.length)return p(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:n,ns:r,fcName:s,tried:o,wait:f,callback:p});return}this.readingCalls++;const d=(h,y)=>{if(this.readingCalls--,this.waitingReads.length>0){const v=this.waitingReads.shift();this.read(v.lng,v.ns,v.fcName,v.tried,v.wait,v.callback)}if(h&&y&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,n,r,s,o+1,f*2,p)},f);return}p(h,y)},m=this.backend[s].bind(this.backend);if(m.length===2){try{const h=m(n,r);h&&typeof h.then=="function"?h.then(y=>d(null,y)).catch(d):d(null,h)}catch(h){d(h)}return}return m(n,r,d)}prepareLoading(n,r,s={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();le(n)&&(n=this.languageUtils.toResolveHierarchy(n)),le(r)&&(r=[r]);const f=this.queueLoad(n,r,s,o);if(!f.toLoad.length)return f.pending.length||o(),null;f.toLoad.forEach(p=>{this.loadOne(p)})}load(n,r,s){this.prepareLoading(n,r,{},s)}reload(n,r,s){this.prepareLoading(n,r,{reload:!0},s)}loadOne(n,r=""){const s=n.split("|"),o=s[0],f=s[1];this.read(o,f,"read",void 0,void 0,(p,d)=>{p&&this.logger.warn(`${r}loading namespace ${f} for language ${o} failed`,p),!p&&d&&this.logger.log(`${r}loaded namespace ${f} for language ${o}`,d),this.loaded(n,p,d)})}saveMissing(n,r,s,o,f,p={},d=()=>{}){var m,h,y,v,x;if((h=(m=this.services)==null?void 0:m.utils)!=null&&h.hasLoadedNamespace&&!((v=(y=this.services)==null?void 0:y.utils)!=null&&v.hasLoadedNamespace(r))){this.logger.warn(`did not save key "${s}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(s==null||s==="")){if((x=this.backend)!=null&&x.create){const R={...p,isUpdate:f},j=this.backend.create.bind(this.backend);if(j.length<6)try{let L;j.length===5?L=j(n,r,s,o,R):L=j(n,r,s,o),L&&typeof L.then=="function"?L.then(H=>d(null,H)).catch(d):d(null,L)}catch(L){d(L)}else j(n,r,s,o,d,R)}!n||!n[0]||this.store.addResource(n[0],r,s,o)}}}const Jp=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:i=>{let n={};if(typeof i[1]=="object"&&(n=i[1]),le(i[1])&&(n.defaultValue=i[1]),le(i[2])&&(n.tDescription=i[2]),typeof i[2]=="object"||typeof i[3]=="object"){const r=i[3]||i[2];Object.keys(r).forEach(s=>{n[s]=r[s]})}return n},interpolation:{escapeValue:!0,format:i=>i,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Fp=i=>{var n,r;return le(i.ns)&&(i.ns=[i.ns]),le(i.fallbackLng)&&(i.fallbackLng=[i.fallbackLng]),le(i.fallbackNS)&&(i.fallbackNS=[i.fallbackNS]),((r=(n=i.supportedLngs)==null?void 0:n.indexOf)==null?void 0:r.call(n,"cimode"))<0&&(i.supportedLngs=i.supportedLngs.concat(["cimode"])),typeof i.initImmediate=="boolean"&&(i.initAsync=i.initImmediate),i},Qr=()=>{},SS=i=>{Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach(r=>{typeof i[r]=="function"&&(i[r]=i[r].bind(i))})};class Si extends us{constructor(n={},r){if(super(),this.options=Fp(n),this.services={},this.logger=la,this.modules={external:[]},SS(this),r&&!this.isInitialized&&!n.isClone){if(!this.options.initAsync)return this.init(n,r),this;setTimeout(()=>{this.init(n,r)},0)}}init(n={},r){this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),n.defaultNS==null&&n.ns&&(le(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const s=Jp();this.options={...s,...this.options,...Fp(n)},this.options.interpolation={...s.interpolation,...this.options.interpolation},n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const o=h=>h?typeof h=="function"?new h:h:null;if(!this.options.isClone){this.modules.logger?la.init(o(this.modules.logger),this.options):la.init(null,this.options);let h;this.modules.formatter?h=this.modules.formatter:h=gS;const y=new Yp(this.options);this.store=new qp(this.options.resources,this.options);const v=this.services;v.logger=la,v.resourceStore=this.store,v.languageUtils=y,v.pluralResolver=new dS(y,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==s.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),h&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(v.formatter=o(h),v.formatter.init&&v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new hS(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new vS(o(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",(R,...j)=>{this.emit(R,...j)}),this.modules.languageDetector&&(v.languageDetector=o(this.modules.languageDetector),v.languageDetector.init&&v.languageDetector.init(v,this.options.detection,this.options)),this.modules.i18nFormat&&(v.i18nFormat=o(this.modules.i18nFormat),v.i18nFormat.init&&v.i18nFormat.init(this)),this.translator=new ns(this.services,this.options),this.translator.on("*",(R,...j)=>{this.emit(R,...j)}),this.modules.external.forEach(R=>{R.init&&R.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Qr),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const h=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);h.length>0&&h[0]!=="dev"&&(this.options.lng=h[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(h=>{this[h]=(...y)=>this.store[h](...y)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(h=>{this[h]=(...y)=>(this.store[h](...y),this)});const d=oi(),m=()=>{const h=(y,v)=>{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),d.resolve(v),r(y,v)};if(this.languages&&!this.isInitialized)return h(null,this.t.bind(this));this.changeLanguage(this.options.lng,h)};return this.options.resources||!this.options.initAsync?m():setTimeout(m,0),d}loadResources(n,r=Qr){var f,p;let s=r;const o=le(n)?n:this.language;if(typeof n=="function"&&(s=n),!this.options.resources||this.options.partialBundledLanguages){if((o==null?void 0:o.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const d=[],m=h=>{if(!h||h==="cimode")return;this.services.languageUtils.toResolveHierarchy(h).forEach(v=>{v!=="cimode"&&d.indexOf(v)<0&&d.push(v)})};o?m(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(y=>m(y)),(p=(f=this.options.preload)==null?void 0:f.forEach)==null||p.call(f,h=>m(h)),this.services.backendConnector.load(d,this.options.ns,h=>{!h&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(h)})}else s(null)}reloadResources(n,r,s){const o=oi();return typeof n=="function"&&(s=n,n=void 0),typeof r=="function"&&(s=r,r=void 0),n||(n=this.languages),r||(r=this.options.ns),s||(s=Qr),this.services.backendConnector.reload(n,r,f=>{o.resolve(),s(f)}),o}use(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&Cm.addPostProcessor(n),n.type==="formatter"&&(this.modules.formatter=n),n.type==="3rdParty"&&this.modules.external.push(n),this}setResolvedLanguage(n){if(!(!n||!this.languages)&&!(["cimode","dev"].indexOf(n)>-1)){for(let r=0;r<this.languages.length;r++){const s=this.languages[r];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}!this.resolvedLanguage&&this.languages.indexOf(n)<0&&this.store.hasLanguageSomeTranslations(n)&&(this.resolvedLanguage=n,this.languages.unshift(n))}}changeLanguage(n,r){this.isLanguageChangingTo=n;const s=oi();this.emit("languageChanging",n);const o=d=>{this.language=d,this.languages=this.services.languageUtils.toResolveHierarchy(d),this.resolvedLanguage=void 0,this.setResolvedLanguage(d)},f=(d,m)=>{m?this.isLanguageChangingTo===n&&(o(m),this.translator.changeLanguage(m),this.isLanguageChangingTo=void 0,this.emit("languageChanged",m),this.logger.log("languageChanged",m)):this.isLanguageChangingTo=void 0,s.resolve((...h)=>this.t(...h)),r&&r(d,(...h)=>this.t(...h))},p=d=>{var y,v;!n&&!d&&this.services.languageDetector&&(d=[]);const m=le(d)?d:d&&d[0],h=this.store.hasLanguageSomeTranslations(m)?m:this.services.languageUtils.getBestMatchFromCodes(le(d)?[d]:d);h&&(this.language||o(h),this.translator.language||this.translator.changeLanguage(h),(v=(y=this.services.languageDetector)==null?void 0:y.cacheUserLanguage)==null||v.call(y,h)),this.loadResources(h,x=>{f(x,h)})};return!n&&this.services.languageDetector&&!this.services.languageDetector.async?p(this.services.languageDetector.detect()):!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(p):this.services.languageDetector.detect(p):p(n),s}getFixedT(n,r,s){const o=(f,p,...d)=>{let m;typeof p!="object"?m=this.options.overloadTranslationOptionHandler([f,p].concat(d)):m={...p},m.lng=m.lng||o.lng,m.lngs=m.lngs||o.lngs,m.ns=m.ns||o.ns,m.keyPrefix!==""&&(m.keyPrefix=m.keyPrefix||s||o.keyPrefix);const h=this.options.keySeparator||".";let y;return m.keyPrefix&&Array.isArray(f)?y=f.map(v=>(typeof v=="function"&&(v=Zo(v,{...this.options,...p})),`${m.keyPrefix}${h}${v}`)):(typeof f=="function"&&(f=Zo(f,{...this.options,...p})),y=m.keyPrefix?`${m.keyPrefix}${h}${f}`:f),this.t(y,m)};return le(n)?o.lng=n:o.lngs=n,o.ns=r,o.keyPrefix=s,o}t(...n){var r;return(r=this.translator)==null?void 0:r.translate(...n)}exists(...n){var r;return(r=this.translator)==null?void 0:r.exists(...n)}setDefaultNamespace(n){this.options.defaultNS=n}hasLoadedNamespace(n,r={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=r.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const p=(d,m)=>{const h=this.services.backendConnector.state[`${d}|${m}`];return h===-1||h===0||h===2};if(r.precheck){const d=r.precheck(this,p);if(d!==void 0)return d}return!!(this.hasResourceBundle(s,n)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||p(s,n)&&(!o||p(f,n)))}loadNamespaces(n,r){const s=oi();return this.options.ns?(le(n)&&(n=[n]),n.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{s.resolve(),r&&r(o)}),s):(r&&r(),Promise.resolve())}loadLanguages(n,r){const s=oi();le(n)&&(n=[n]);const o=this.options.preload||[],f=n.filter(p=>o.indexOf(p)<0&&this.services.languageUtils.isSupportedCode(p));return f.length?(this.options.preload=o.concat(f),this.loadResources(p=>{s.resolve(),r&&r(p)}),s):(r&&r(),Promise.resolve())}dir(n){var o,f;if(n||(n=this.resolvedLanguage||(((o=this.languages)==null?void 0:o.length)>0?this.languages[0]:this.language)),!n)return"rtl";try{const p=new Intl.Locale(n);if(p&&p.getTextInfo){const d=p.getTextInfo();if(d&&d.direction)return d.direction}}catch{}const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=((f=this.services)==null?void 0:f.languageUtils)||new Yp(Jp());return n.toLowerCase().indexOf("-latn")>1?"ltr":r.indexOf(s.getLanguagePartFromCode(n))>-1||n.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(n={},r){return new Si(n,r)}cloneInstance(n={},r=Qr){const s=n.forkResourceStore;s&&delete n.forkResourceStore;const o={...this.options,...n,isClone:!0},f=new Si(o);if((n.debug!==void 0||n.prefix!==void 0)&&(f.logger=f.logger.clone(n)),["store","services","language"].forEach(d=>{f[d]=this[d]}),f.services={...this.services},f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},s){const d=Object.keys(this.store.data).reduce((m,h)=>(m[h]={...this.store.data[h]},m[h]=Object.keys(m[h]).reduce((y,v)=>(y[v]={...m[h][v]},y),m[h]),m),{});f.store=new qp(d,o),f.services.resourceStore=f.store}return f.translator=new ns(f.services,o),f.translator.on("*",(d,...m)=>{f.emit(d,...m)}),f.init(o,r),f.translator.options=o,f.translator.backendConnector.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const rt=Si.createInstance();rt.createInstance=Si.createInstance;rt.createInstance;rt.dir;rt.init;rt.loadResources;rt.reloadResources;rt.use;rt.changeLanguage;rt.getFixedT;rt.t;rt.exists;rt.setDefaultNamespace;rt.hasLoadedNamespace;rt.loadNamespaces;rt.loadLanguages;var Uo={exports:{}},se={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react.production.js
|
|
12
12
|
*
|
|
@@ -14,17 +14,17 @@ var A0=Object.defineProperty;var O0=(i,n,r)=>n in i?A0(i,n,{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 Lp;function I0(){if(Lp)return oe;Lp=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),m=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.iterator;function S(R){return R===null||typeof R!="object"?null:(R=b&&R[b]||R["@@iterator"],typeof R=="function"?R:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,z={};function H(R,$,K){this.props=R,this.context=$,this.refs=z,this.updater=K||w}H.prototype.isReactComponent={},H.prototype.setState=function(R,$){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,$,"setState")},H.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function _(){}_.prototype=H.prototype;function U(R,$,K){this.props=R,this.context=$,this.refs=z,this.updater=K||w}var G=U.prototype=new _;G.constructor=U,E(G,H.prototype),G.isPureReactComponent=!0;var X=Array.isArray,Z={H:null,A:null,T:null,S:null,V:null},te=Object.prototype.hasOwnProperty;function ne(R,$,K,Q,I,me){return K=me.ref,{$$typeof:i,type:R,key:$,ref:K!==void 0?K:null,props:me}}function ee(R,$){return ne(R.type,$,void 0,void 0,void 0,R.props)}function F(R){return typeof R=="object"&&R!==null&&R.$$typeof===i}function ie(R){var $={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(K){return $[K]})}var pe=/\/+/g;function Ke(R,$){return typeof R=="object"&&R!==null&&R.key!=null?ie(""+R.key):$.toString(36)}function Xe(){}function Ge(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(Xe,Xe):(R.status="pending",R.then(function($){R.status==="pending"&&(R.status="fulfilled",R.value=$)},function($){R.status==="pending"&&(R.status="rejected",R.reason=$)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function Ye(R,$,K,Q,I){var me=typeof R;(me==="undefined"||me==="boolean")&&(R=null);var ue=!1;if(R===null)ue=!0;else switch(me){case"bigint":case"string":case"number":ue=!0;break;case"object":switch(R.$$typeof){case i:case n:ue=!0;break;case y:return ue=R._init,Ye(ue(R._payload),$,K,Q,I)}}if(ue)return I=I(R),ue=Q===""?"."+Ke(R,0):Q,X(I)?(K="",ue!=null&&(K=ue.replace(pe,"$&/")+"/"),Ye(I,$,K,"",function(va){return va})):I!=null&&(F(I)&&(I=ee(I,K+(I.key==null||R&&R.key===I.key?"":(""+I.key).replace(pe,"$&/")+"/")+ue)),$.push(I)),1;ue=0;var gt=Q===""?".":Q+":";if(X(R))for(var Le=0;Le<R.length;Le++)Q=R[Le],me=gt+Ke(Q,Le),ue+=Ye(Q,$,K,me,I);else if(Le=S(R),typeof Le=="function")for(R=Le.call(R),Le=0;!(Q=R.next()).done;)Q=Q.value,me=gt+Ke(Q,Le++),ue+=Ye(Q,$,K,me,I);else if(me==="object"){if(typeof R.then=="function")return Ye(Ge(R),$,K,Q,I);throw $=String(R),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}return ue}function D(R,$,K){if(R==null)return R;var Q=[],I=0;return Ye(R,Q,"","",function(me){return $.call(K,me,I++)}),Q}function Y(R){if(R._status===-1){var $=R._result;$=$(),$.then(function(K){(R._status===0||R._status===-1)&&(R._status=1,R._result=K)},function(K){(R._status===0||R._status===-1)&&(R._status=2,R._result=K)}),R._status===-1&&(R._status=0,R._result=$)}if(R._status===1)return R._result.default;throw R._result}var W=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var $=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent($))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)};function ve(){}return oe.Children={map:D,forEach:function(R,$,K){D(R,function(){$.apply(this,arguments)},K)},count:function(R){var $=0;return D(R,function(){$++}),$},toArray:function(R){return D(R,function($){return $})||[]},only:function(R){if(!F(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},oe.Component=H,oe.Fragment=r,oe.Profiler=o,oe.PureComponent=U,oe.StrictMode=s,oe.Suspense=p,oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,oe.__COMPILER_RUNTIME={__proto__:null,c:function(R){return Z.H.useMemoCache(R)}},oe.cache=function(R){return function(){return R.apply(null,arguments)}},oe.cloneElement=function(R,$,K){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var Q=E({},R.props),I=R.key,me=void 0;if($!=null)for(ue in $.ref!==void 0&&(me=void 0),$.key!==void 0&&(I=""+$.key),$)!te.call($,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&$.ref===void 0||(Q[ue]=$[ue]);var ue=arguments.length-2;if(ue===1)Q.children=K;else if(1<ue){for(var gt=Array(ue),Le=0;Le<ue;Le++)gt[Le]=arguments[Le+2];Q.children=gt}return ne(R.type,I,void 0,void 0,me,Q)},oe.createContext=function(R){return R={$$typeof:m,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:f,_context:R},R},oe.createElement=function(R,$,K){var Q,I={},me=null;if($!=null)for(Q in $.key!==void 0&&(me=""+$.key),$)te.call($,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(I[Q]=$[Q]);var ue=arguments.length-2;if(ue===1)I.children=K;else if(1<ue){for(var gt=Array(ue),Le=0;Le<ue;Le++)gt[Le]=arguments[Le+2];I.children=gt}if(R&&R.defaultProps)for(Q in ue=R.defaultProps,ue)I[Q]===void 0&&(I[Q]=ue[Q]);return ne(R,me,void 0,void 0,null,I)},oe.createRef=function(){return{current:null}},oe.forwardRef=function(R){return{$$typeof:h,render:R}},oe.isValidElement=F,oe.lazy=function(R){return{$$typeof:y,_payload:{_status:-1,_result:R},_init:Y}},oe.memo=function(R,$){return{$$typeof:d,type:R,compare:$===void 0?null:$}},oe.startTransition=function(R){var $=Z.T,K={};Z.T=K;try{var Q=R(),I=Z.S;I!==null&&I(K,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(ve,W)}catch(me){W(me)}finally{Z.T=$}},oe.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},oe.use=function(R){return Z.H.use(R)},oe.useActionState=function(R,$,K){return Z.H.useActionState(R,$,K)},oe.useCallback=function(R,$){return Z.H.useCallback(R,$)},oe.useContext=function(R){return Z.H.useContext(R)},oe.useDebugValue=function(){},oe.useDeferredValue=function(R,$){return Z.H.useDeferredValue(R,$)},oe.useEffect=function(R,$,K){var Q=Z.H;if(typeof K=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Q.useEffect(R,$)},oe.useId=function(){return Z.H.useId()},oe.useImperativeHandle=function(R,$,K){return Z.H.useImperativeHandle(R,$,K)},oe.useInsertionEffect=function(R,$){return Z.H.useInsertionEffect(R,$)},oe.useLayoutEffect=function(R,$){return Z.H.useLayoutEffect(R,$)},oe.useMemo=function(R,$){return Z.H.useMemo(R,$)},oe.useOptimistic=function(R,$){return Z.H.useOptimistic(R,$)},oe.useReducer=function(R,$,K){return Z.H.useReducer(R,$,K)},oe.useRef=function(R){return Z.H.useRef(R)},oe.useState=function(R){return Z.H.useState(R)},oe.useSyncExternalStore=function(R,$,K){return Z.H.useSyncExternalStore(R,$,K)},oe.useTransition=function(){return Z.H.useTransition()},oe.version="19.1.0",oe}var Dp;function Jo(){return Dp||(Dp=1,wo.exports=I0()),wo.exports}var T=Jo();const Uo=im(T),ex=(i,n,r,s)=>{var f,m,h,p;const o=[r,{code:n,...s||{}}];if((m=(f=i==null?void 0:i.services)==null?void 0:f.logger)!=null&&m.forward)return i.services.logger.forward(o,"warn","react-i18next::",!0);fn(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),(p=(h=i==null?void 0:i.services)==null?void 0:h.logger)!=null&&p.warn?i.services.logger.warn(...o):console!=null&&console.warn&&console.warn(...o)},Mp={},Bo=(i,n,r,s)=>{fn(r)&&Mp[r]||(fn(r)&&(Mp[r]=new Date),ex(i,n,r,s))},um=(i,n)=>()=>{if(i.isInitialized)n();else{const r=()=>{setTimeout(()=>{i.off("initialized",r)},0),n()};i.on("initialized",r)}},Ho=(i,n,r)=>{i.loadNamespaces(n,um(i,r))},_p=(i,n,r,s)=>{if(fn(r)&&(r=[r]),i.options.preload&&i.options.preload.indexOf(n)>-1)return Ho(i,r,s);r.forEach(o=>{i.options.ns.indexOf(o)<0&&i.options.ns.push(o)}),i.loadLanguages(n,um(i,s))},tx=(i,n,r={})=>!n.languages||!n.languages.length?(Bo(n,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:n.languages}),!0):n.hasLoadedNamespace(i,{lng:r.lng,precheck:(s,o)=>{var f;if(((f=r.bindI18n)==null?void 0:f.indexOf("languageChanging"))>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!o(s.isLanguageChangingTo,i))return!1}}),fn=i=>typeof i=="string",ax=i=>typeof i=="object"&&i!==null,nx=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,lx={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},ix=i=>lx[i],rx=i=>i.replace(nx,ix);let Vo={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:rx};const sx=(i={})=>{Vo={...Vo,...i}},ux=()=>Vo;let om;const ox=i=>{om=i},cx=()=>om,fx={type:"3rdParty",init(i){sx(i.options.react),ox(i)}},dx=T.createContext();class hx{constructor(){this.usedNamespaces={}}addUsedNamespaces(n){n.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const px=(i,n)=>{const r=T.useRef();return T.useEffect(()=>{r.current=i},[i,n]),r.current},cm=(i,n,r,s)=>i.getFixedT(n,r,s),mx=(i,n,r,s)=>T.useCallback(cm(i,n,r,s),[i,n,r,s]),ot=(i,n={})=>{var X,Z,te,ne;const{i18n:r}=n,{i18n:s,defaultNS:o}=T.useContext(dx)||{},f=r||s||cx();if(f&&!f.reportNamespaces&&(f.reportNamespaces=new hx),!f){Bo(f,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const ee=(ie,pe)=>fn(pe)?pe:ax(pe)&&fn(pe.defaultValue)?pe.defaultValue:Array.isArray(ie)?ie[ie.length-1]:ie,F=[ee,{},!1];return F.t=ee,F.i18n={},F.ready=!1,F}(X=f.options.react)!=null&&X.wait&&Bo(f,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const m={...ux(),...f.options.react,...n},{useSuspense:h,keyPrefix:p}=m;let d=o||((Z=f.options)==null?void 0:Z.defaultNS);d=fn(d)?[d]:d||["translation"],(ne=(te=f.reportNamespaces).addUsedNamespaces)==null||ne.call(te,d);const y=(f.isInitialized||f.initializedStoreOnce)&&d.every(ee=>tx(ee,f,m)),b=mx(f,n.lng||null,m.nsMode==="fallback"?d:d[0],p),S=()=>b,w=()=>cm(f,n.lng||null,m.nsMode==="fallback"?d:d[0],p),[E,z]=T.useState(S);let H=d.join();n.lng&&(H=`${n.lng}${H}`);const _=px(H),U=T.useRef(!0);T.useEffect(()=>{const{bindI18n:ee,bindI18nStore:F}=m;U.current=!0,!y&&!h&&(n.lng?_p(f,n.lng,d,()=>{U.current&&z(w)}):Ho(f,d,()=>{U.current&&z(w)})),y&&_&&_!==H&&U.current&&z(w);const ie=()=>{U.current&&z(w)};return ee&&(f==null||f.on(ee,ie)),F&&(f==null||f.store.on(F,ie)),()=>{U.current=!1,f&&(ee==null||ee.split(" ").forEach(pe=>f.off(pe,ie))),F&&f&&F.split(" ").forEach(pe=>f.store.off(pe,ie))}},[f,H]),T.useEffect(()=>{U.current&&y&&z(S)},[f,p,y]);const G=[E,f,y];if(G.t=E,G.i18n=f,G.ready=y,y||!y&&!h)return G;throw new Promise(ee=>{n.lng?_p(f,n.lng,d,()=>ee()):Ho(f,d,()=>ee())})},gx="ParoiCMS Site Generator",yx="<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>",vx="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.",xx="Add a new text field to the page…",bx="Modify the Site Schema",Sx="Create a Site Schema",Nx="Generate the website",Ex="Generate site with sample data (recommended)",Rx="Generate an empty site",Tx="Open the admin-ui",wx="Open the site",Cx="Generated Schema",jx="Tree View",kx="Site Schema",Ax="Node Types",Ox="Labels",zx="Select language",Lx="Explanations",Dx="Current Activity",Mx="An error occurred: {{ message }}",_x="An error occurred",Ux="Start Again",Bx="Step {{stepNumber}}: {{kind}}",Hx="This step is in progress…",Vx="This step failed.",$x="This step had no effect.",qx="No session data available",Gx="Step not found",Yx="Welcome to ParoiCMS Site Generator",Qx="Close and start again",Zx="Reset Schema",Kx="unknown error",Xx="Create New Site",Jx="Generating your site…",Fx="The site is generated",Px="Email:",Wx="Password:",Ix="Start",eb="You are about to generate your website.",tb="Cancel",ab="Confirm",nb="Site URL:",lb="Admin URL:",ib="Copy all information to clipboard",rb="<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>",sb="Initial Schema Creation",ub="Schema Update",ob="Site Generation",cb={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…"},fb="Login Email",db="Login Password",hb="Generated Site",pb="Your session has expired. Please refresh the page to start a new session.",mb="Failed to submit your prompt. Please try again.",gb="Failed to generate the site. Please try again.",yb='The source code of this generator is available <a href="https://gitlab.com/paroi/opensource/paroicms/-/tree/main/plugins/site-generator-plugin?ref_type=heads" target="_blank">on GitLab</a> — <a href="https://www.paroicms.org/en" target="_blank">ParoiCMS</a> — Contact me <a href="https://paroi.tech/en" target="_blank">here</a>.',vb="Extend your session",xb="Failed to refresh your session. Please try again.",bb="Error connecting to server. Please check your connection and try again.",Sb="Tip: If you want to start over, open the generator in a new tab and close this one.",Nb={title:gx,startInstruction:yx,createPromptPlaceholder:vx,updatePromptPlaceholder:xx,modifySchema:bx,createSchema:Sx,generateTheWebsite:Nx,generateSiteWithData:Ex,generateEmptySite:Rx,administration:Tx,viewSite:wx,generatedSchema:Cx,treeView:jx,siteSchema:kx,nodeTypes:Ax,labels:Ox,languageSelector:zx,explanation:Lx,currentActivity:Dx,errorOccurred:Mx,unknownErrorOccurred:_x,startAgain:Ux,stepTitle:Bx,stepPending:Hx,stepFailed:Vx,stepNoEffect:$x,noSessionData:qx,stepNotFound:Gx,welcomeTitle:Yx,reset:Qx,resetSchema:Zx,unknownError:Kx,createNewSite:Xx,generatingSite:Jx,siteGenerated:Fx,email:Px,password:Wx,start:Ix,aboutToGenerateWebsite:eb,cancel:tb,confirm:ab,siteUrl:nb,adminUrl:lb,copyToClipboard:ib,introduction:rb,initialSchema:sb,updateSchema:ub,generateSite:ob,activity:cb,loginEmail:fb,loginPassword:db,generatedSite:hb,sessionExpired:pb,promptSubmissionFailed:mb,generationFailed:gb,footerText:yb,extendYourSession:vb,sessionRenewalFailed:xb,errorConnectingToServer:bb,newTabRestartMessage:Sb},Eb="ParoiCMS - Générateur de Site",Rb="<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>",Tb="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.",wb="Ajoute un nouveau champ texte à la page…",Cb="Modifier le schéma du site",jb="Créer un schéma de site",kb="Générer le site web",Ab="Générer le site avec des données d'exemple (recommandé)",Ob="Générer un site vide",zb="Ouvrir l'espace d'administration du site",Lb="Ouvrir le site",Db="Schéma généré",Mb="Arborescence",_b="Schéma du site",Ub="Types de nœuds",Bb="Libellés",Hb="Sélectionner la langue",Vb="Explications",$b="Activité en cours",qb="Une erreur est survenue : {{ message }}",Gb="Une erreur est survenue",Yb="Recommencer",Qb="Étape {{stepNumber}} : {{kind}}",Zb="Cette étape est en cours…",Kb="Cette étape a échoué.",Xb="Cette étape n'a eu aucun effet.",Jb="Données de session non disponibles",Fb="Étape introuvable",Pb="Bienvenue sur le générateur de site ParoiCMS",Wb="Fermer et réinitialiser",Ib="Réinitialiser le schéma",eS="erreur inconnue",tS="Créer un nouveau site",aS="Génération de votre site…",nS="Le site est généré",lS="Email :",iS="Mot de passe :",rS="Commencer",sS="Vous êtes sur le point de générer votre site web.",uS="Annuler",oS="Confirmer",cS="URL du site :",fS="URL d'admin :",dS="Copier toutes les informations dans le presse-papier",hS="<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>",pS="Création du schéma initial",mS="Mise à jour du schéma",gS="Génération du site",yS={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…"},vS="Email de connexion",xS="Mot de passe",bS="Site généré",SS="Votre session a expiré. Veuillez rafraîchir la page pour démarrer une nouvelle session.",NS="Échec de l'envoi de votre demande. Veuillez réessayer.",ES="Échec de la génération du site. Veuillez réessayer.",RS='Le code source de ce générateur est disponible <a href="https://gitlab.com/paroi/opensource/paroicms/-/tree/main/plugins/site-generator-plugin?ref_type=heads" target="_blank">sur GitLab</a> — <a href="https://www.paroicms.org/fr" target="_blank">ParoiCMS</a> — Contactez-moi <a href="https://paroi.tech/fr" target="_blank">ici</a>.',TS="Prolonger votre session",wS="Échec du renouvellement de votre session. Veuillez réessayer.",CS="Erreur de connexion au serveur. Veuillez vérifier votre connexion et réessayer.",jS="Astuce : si vous souhaitez repartir de zéro, ouvrez le générateur dans un nouvel onglet et fermez celui-ci.",kS={title:Eb,startInstruction:Rb,createPromptPlaceholder:Tb,updatePromptPlaceholder:wb,modifySchema:Cb,createSchema:jb,generateTheWebsite:kb,generateSiteWithData:Ab,generateEmptySite:Ob,administration:zb,viewSite:Lb,generatedSchema:Db,treeView:Mb,siteSchema:_b,nodeTypes:Ub,labels:Bb,languageSelector:Hb,explanation:Vb,currentActivity:$b,errorOccurred:qb,unknownErrorOccurred:Gb,startAgain:Yb,stepTitle:Qb,stepPending:Zb,stepFailed:Kb,stepNoEffect:Xb,noSessionData:Jb,stepNotFound:Fb,welcomeTitle:Pb,reset:Wb,resetSchema:Ib,unknownError:eS,createNewSite:tS,generatingSite:aS,siteGenerated:nS,email:lS,password:iS,start:rS,aboutToGenerateWebsite:sS,cancel:uS,confirm:oS,siteUrl:cS,adminUrl:fS,copyToClipboard:dS,introduction:hS,initialSchema:pS,updateSchema:mS,generateSite:gS,activity:yS,loginEmail:vS,loginPassword:xS,generatedSite:bS,sessionExpired:SS,promptSubmissionFailed:NS,generationFailed:ES,footerText:RS,extendYourSession:TS,sessionRenewalFailed:wS,errorConnectingToServer:CS,newTabRestartMessage:jS},AS=`<p>Welcome!</p>
|
|
17
|
+
*/var Wp;function bS(){if(Wp)return se;Wp=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),p=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),x=Symbol.iterator;function R(E){return E===null||typeof E!="object"?null:(E=x&&E[x]||E["@@iterator"],typeof E=="function"?E:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,H={};function $(E,U,Q){this.props=E,this.context=U,this.refs=H,this.updater=Q||j}$.prototype.isReactComponent={},$.prototype.setState=function(E,U){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,U,"setState")},$.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function G(){}G.prototype=$.prototype;function q(E,U,Q){this.props=E,this.context=U,this.refs=H,this.updater=Q||j}var Z=q.prototype=new G;Z.constructor=q,L(Z,$.prototype),Z.isPureReactComponent=!0;var I=Array.isArray;function re(){}var K={H:null,A:null,T:null,S:null},ae=Object.prototype.hasOwnProperty;function W(E,U,Q){var X=Q.ref;return{$$typeof:i,type:E,key:U,ref:X!==void 0?X:null,props:Q}}function ne(E,U){return W(E.type,U,E.props)}function Ee(E){return typeof E=="object"&&E!==null&&E.$$typeof===i}function $e(E){var U={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(Q){return U[Q]})}var Ue=/\/+/g;function Ve(E,U){return typeof E=="object"&&E!==null&&E.key!=null?$e(""+E.key):U.toString(36)}function qe(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(re,re):(E.status="pending",E.then(function(U){E.status==="pending"&&(E.status="fulfilled",E.value=U)},function(U){E.status==="pending"&&(E.status="rejected",E.reason=U)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function _(E,U,Q,X,ie){var ce=typeof E;(ce==="undefined"||ce==="boolean")&&(E=null);var Ce=!1;if(E===null)Ce=!0;else switch(ce){case"bigint":case"string":case"number":Ce=!0;break;case"object":switch(E.$$typeof){case i:case n:Ce=!0;break;case y:return Ce=E._init,_(Ce(E._payload),U,Q,X,ie)}}if(Ce)return ie=ie(E),Ce=X===""?"."+Ve(E,0):X,I(ie)?(Q="",Ce!=null&&(Q=Ce.replace(Ue,"$&/")+"/"),_(ie,U,Q,"",function(ml){return ml})):ie!=null&&(Ee(ie)&&(ie=ne(ie,Q+(ie.key==null||E&&E.key===ie.key?"":(""+ie.key).replace(Ue,"$&/")+"/")+Ce)),U.push(ie)),1;Ce=0;var ot=X===""?".":X+":";if(I(E))for(var Qe=0;Qe<E.length;Qe++)X=E[Qe],ce=ot+Ve(X,Qe),Ce+=_(X,U,Q,ce,ie);else if(Qe=R(E),typeof Qe=="function")for(E=Qe.call(E),Qe=0;!(X=E.next()).done;)X=X.value,ce=ot+Ve(X,Qe++),Ce+=_(X,U,Q,ce,ie);else if(ce==="object"){if(typeof E.then=="function")return _(qe(E),U,Q,X,ie);throw U=String(E),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return Ce}function Y(E,U,Q){if(E==null)return E;var X=[],ie=0;return _(E,X,"","",function(ce){return U.call(Q,ce,ie++)}),X}function ee(E){if(E._status===-1){var U=E._result;U=U(),U.then(function(Q){(E._status===0||E._status===-1)&&(E._status=1,E._result=Q)},function(Q){(E._status===0||E._status===-1)&&(E._status=2,E._result=Q)}),E._status===-1&&(E._status=0,E._result=U)}if(E._status===1)return E._result.default;throw E._result}var ye=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=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(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},Te={map:Y,forEach:function(E,U,Q){Y(E,function(){U.apply(this,arguments)},Q)},count:function(E){var U=0;return Y(E,function(){U++}),U},toArray:function(E){return Y(E,function(U){return U})||[]},only:function(E){if(!Ee(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return se.Activity=v,se.Children=Te,se.Component=$,se.Fragment=r,se.Profiler=o,se.PureComponent=q,se.StrictMode=s,se.Suspense=m,se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,se.__COMPILER_RUNTIME={__proto__:null,c:function(E){return K.H.useMemoCache(E)}},se.cache=function(E){return function(){return E.apply(null,arguments)}},se.cacheSignal=function(){return null},se.cloneElement=function(E,U,Q){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var X=L({},E.props),ie=E.key;if(U!=null)for(ce in U.key!==void 0&&(ie=""+U.key),U)!ae.call(U,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&U.ref===void 0||(X[ce]=U[ce]);var ce=arguments.length-2;if(ce===1)X.children=Q;else if(1<ce){for(var Ce=Array(ce),ot=0;ot<ce;ot++)Ce[ot]=arguments[ot+2];X.children=Ce}return W(E.type,ie,X)},se.createContext=function(E){return E={$$typeof:p,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:f,_context:E},E},se.createElement=function(E,U,Q){var X,ie={},ce=null;if(U!=null)for(X in U.key!==void 0&&(ce=""+U.key),U)ae.call(U,X)&&X!=="key"&&X!=="__self"&&X!=="__source"&&(ie[X]=U[X]);var Ce=arguments.length-2;if(Ce===1)ie.children=Q;else if(1<Ce){for(var ot=Array(Ce),Qe=0;Qe<Ce;Qe++)ot[Qe]=arguments[Qe+2];ie.children=ot}if(E&&E.defaultProps)for(X in Ce=E.defaultProps,Ce)ie[X]===void 0&&(ie[X]=Ce[X]);return W(E,ce,ie)},se.createRef=function(){return{current:null}},se.forwardRef=function(E){return{$$typeof:d,render:E}},se.isValidElement=Ee,se.lazy=function(E){return{$$typeof:y,_payload:{_status:-1,_result:E},_init:ee}},se.memo=function(E,U){return{$$typeof:h,type:E,compare:U===void 0?null:U}},se.startTransition=function(E){var U=K.T,Q={};K.T=Q;try{var X=E(),ie=K.S;ie!==null&&ie(Q,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then(re,ye)}catch(ce){ye(ce)}finally{U!==null&&Q.types!==null&&(U.types=Q.types),K.T=U}},se.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},se.use=function(E){return K.H.use(E)},se.useActionState=function(E,U,Q){return K.H.useActionState(E,U,Q)},se.useCallback=function(E,U){return K.H.useCallback(E,U)},se.useContext=function(E){return K.H.useContext(E)},se.useDebugValue=function(){},se.useDeferredValue=function(E,U){return K.H.useDeferredValue(E,U)},se.useEffect=function(E,U){return K.H.useEffect(E,U)},se.useEffectEvent=function(E){return K.H.useEffectEvent(E)},se.useId=function(){return K.H.useId()},se.useImperativeHandle=function(E,U,Q){return K.H.useImperativeHandle(E,U,Q)},se.useInsertionEffect=function(E,U){return K.H.useInsertionEffect(E,U)},se.useLayoutEffect=function(E,U){return K.H.useLayoutEffect(E,U)},se.useMemo=function(E,U){return K.H.useMemo(E,U)},se.useOptimistic=function(E,U){return K.H.useOptimistic(E,U)},se.useReducer=function(E,U,Q){return K.H.useReducer(E,U,Q)},se.useRef=function(E){return K.H.useRef(E)},se.useState=function(E){return K.H.useState(E)},se.useSyncExternalStore=function(E,U,Q){return K.H.useSyncExternalStore(E,U,Q)},se.useTransition=function(){return K.H.useTransition()},se.version="19.2.0",se}var Pp;function ic(){return Pp||(Pp=1,Uo.exports=bS()),Uo.exports}var T=ic();const pi=Em(T),xS=(i,n,r,s)=>{var f,p,d,m;const o=[r,{code:n,...s||{}}];if((p=(f=i==null?void 0:i.services)==null?void 0:f.logger)!=null&&p.forward)return i.services.logger.forward(o,"warn","react-i18next::",!0);Sn(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),(m=(d=i==null?void 0:i.services)==null?void 0:d.logger)!=null&&m.warn?i.services.logger.warn(...o):console!=null&&console.warn&&console.warn(...o)},Ip={},Xo=(i,n,r,s)=>{Sn(r)&&Ip[r]||(Sn(r)&&(Ip[r]=new Date),xS(i,n,r,s))},jm=(i,n)=>()=>{if(i.isInitialized)n();else{const r=()=>{setTimeout(()=>{i.off("initialized",r)},0),n()};i.on("initialized",r)}},Jo=(i,n,r)=>{i.loadNamespaces(n,jm(i,r))},em=(i,n,r,s)=>{if(Sn(r)&&(r=[r]),i.options.preload&&i.options.preload.indexOf(n)>-1)return Jo(i,r,s);r.forEach(o=>{i.options.ns.indexOf(o)<0&&i.options.ns.push(o)}),i.loadLanguages(n,jm(i,s))},NS=(i,n,r={})=>!n.languages||!n.languages.length?(Xo(n,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:n.languages}),!0):n.hasLoadedNamespace(i,{lng:r.lng,precheck:(s,o)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!o(s.isLanguageChangingTo,i))return!1}}),Sn=i=>typeof i=="string",ES=i=>typeof i=="object"&&i!==null,TS=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,CS={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},RS=i=>CS[i],jS=i=>i.replace(TS,RS);let Fo={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:jS};const wS=(i={})=>{Fo={...Fo,...i}},AS=()=>Fo;let wm;const OS=i=>{wm=i},zS=()=>wm,kS={type:"3rdParty",init(i){wS(i.options.react),OS(i)}},LS=T.createContext();class _S{constructor(){this.usedNamespaces={}}addUsedNamespaces(n){n.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const DS=(i,n)=>{const r=T.useRef();return T.useEffect(()=>{r.current=i},[i,n]),r.current},Am=(i,n,r,s)=>i.getFixedT(n,r,s),MS=(i,n,r,s)=>T.useCallback(Am(i,n,r,s),[i,n,r,s]),dt=(i,n={})=>{var Z,I,re,K;const{i18n:r}=n,{i18n:s,defaultNS:o}=T.useContext(LS)||{},f=r||s||zS();if(f&&!f.reportNamespaces&&(f.reportNamespaces=new _S),!f){Xo(f,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const ae=(ne,Ee)=>Sn(Ee)?Ee:ES(Ee)&&Sn(Ee.defaultValue)?Ee.defaultValue:Array.isArray(ne)?ne[ne.length-1]:ne,W=[ae,{},!1];return W.t=ae,W.i18n={},W.ready=!1,W}(Z=f.options.react)!=null&&Z.wait&&Xo(f,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const p={...AS(),...f.options.react,...n},{useSuspense:d,keyPrefix:m}=p;let h=o||((I=f.options)==null?void 0:I.defaultNS);h=Sn(h)?[h]:h||["translation"],(K=(re=f.reportNamespaces).addUsedNamespaces)==null||K.call(re,h);const y=(f.isInitialized||f.initializedStoreOnce)&&h.every(ae=>NS(ae,f,p)),v=MS(f,n.lng||null,p.nsMode==="fallback"?h:h[0],m),x=()=>v,R=()=>Am(f,n.lng||null,p.nsMode==="fallback"?h:h[0],m),[j,L]=T.useState(x);let H=h.join();n.lng&&(H=`${n.lng}${H}`);const $=DS(H),G=T.useRef(!0);T.useEffect(()=>{const{bindI18n:ae,bindI18nStore:W}=p;G.current=!0,!y&&!d&&(n.lng?em(f,n.lng,h,()=>{G.current&&L(R)}):Jo(f,h,()=>{G.current&&L(R)})),y&&$&&$!==H&&G.current&&L(R);const ne=()=>{G.current&&L(R)};return ae&&(f==null||f.on(ae,ne)),W&&(f==null||f.store.on(W,ne)),()=>{G.current=!1,f&&ae&&(ae==null||ae.split(" ").forEach(Ee=>f.off(Ee,ne))),W&&f&&W.split(" ").forEach(Ee=>f.store.off(Ee,ne))}},[f,H]),T.useEffect(()=>{G.current&&y&&L(x)},[f,m,y]);const q=[j,f,y];if(q.t=j,q.i18n=f,q.ready=y,y||!y&&!d)return q;throw new Promise(ae=>{n.lng?em(f,n.lng,h,()=>ae()):Jo(f,h,()=>ae())})},US="ParoiCMS Site Generator",BS="<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>",HS="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.",VS="Add a new text field to the page…",$S="Modify the Site Schema",qS="Create a Site Schema",GS="Generate the website",YS="Generate site with sample data (recommended)",QS="Generate an empty site",KS="Open the admin-ui",ZS="Open the site",XS="Generated Schema",JS="Tree View",FS="Site Schema",WS="Node Types",PS="Labels",IS="Select language",eb="Explanations",tb="Current Activity",ab="An error occurred: {{ message }}",nb="An error occurred",lb="Start Again",ib="Step {{stepNumber}}: {{kind}}",rb="This step is in progress…",sb="This step failed.",ub="This step had no effect.",ob="No session data available",cb="Step not found",fb="Welcome to ParoiCMS Site Generator",db="Close and start again",hb="Reset Schema",pb="unknown error",mb="Create New Site",gb="Generating your site…",yb="The site is generated",vb="Email:",Sb="Password:",bb="Start",xb="You are about to generate your website.",Nb="Cancel",Eb="Confirm",Tb="Site URL:",Cb="Admin URL:",Rb="Copy all information to clipboard",jb="<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>",wb="Initial Schema Creation",Ab="Schema Update",Ob="Site Generation",zb={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…"},kb="Login Email",Lb="Login Password",_b="Generated Site",Db="Your session has expired. Please refresh the page to start a new session.",Mb="Failed to submit your prompt. Please try again.",Ub="Failed to generate the site. Please try again.",Bb='The source code of this generator is available <a href="https://gitlab.com/paroi/opensource/paroicms/-/tree/main/plugins/site-generator-plugin?ref_type=heads" target="_blank">on GitLab</a> — <a href="https://www.paroicms.org/en" target="_blank">ParoiCMS</a> — Contact me <a href="https://paroi.tech/en" target="_blank">here</a>.',Hb="Extend your session",Vb="Failed to refresh your session. Please try again.",$b="Error connecting to server. Please check your connection and try again.",qb="Tip: If you want to start over, open the generator in a new tab and close this one.",Gb={title:US,startInstruction:BS,createPromptPlaceholder:HS,updatePromptPlaceholder:VS,modifySchema:$S,createSchema:qS,generateTheWebsite:GS,generateSiteWithData:YS,generateEmptySite:QS,administration:KS,viewSite:ZS,generatedSchema:XS,treeView:JS,siteSchema:FS,nodeTypes:WS,labels:PS,languageSelector:IS,explanation:eb,currentActivity:tb,errorOccurred:ab,unknownErrorOccurred:nb,startAgain:lb,stepTitle:ib,stepPending:rb,stepFailed:sb,stepNoEffect:ub,noSessionData:ob,stepNotFound:cb,welcomeTitle:fb,reset:db,resetSchema:hb,unknownError:pb,createNewSite:mb,generatingSite:gb,siteGenerated:yb,email:vb,password:Sb,start:bb,aboutToGenerateWebsite:xb,cancel:Nb,confirm:Eb,siteUrl:Tb,adminUrl:Cb,copyToClipboard:Rb,introduction:jb,initialSchema:wb,updateSchema:Ab,generateSite:Ob,activity:zb,loginEmail:kb,loginPassword:Lb,generatedSite:_b,sessionExpired:Db,promptSubmissionFailed:Mb,generationFailed:Ub,footerText:Bb,extendYourSession:Hb,sessionRenewalFailed:Vb,errorConnectingToServer:$b,newTabRestartMessage:qb},Yb="ParoiCMS - Générateur de Site",Qb="<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>",Kb="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.",Zb="Ajoute un nouveau champ texte à la page…",Xb="Modifier le schéma du site",Jb="Créer un schéma de site",Fb="Générer le site web",Wb="Générer le site avec des données d'exemple (recommandé)",Pb="Générer un site vide",Ib="Ouvrir l'espace d'administration du site",ex="Ouvrir le site",tx="Schéma généré",ax="Arborescence",nx="Schéma du site",lx="Types de nœuds",ix="Libellés",rx="Sélectionner la langue",sx="Explications",ux="Activité en cours",ox="Une erreur est survenue : {{ message }}",cx="Une erreur est survenue",fx="Recommencer",dx="Étape {{stepNumber}} : {{kind}}",hx="Cette étape est en cours…",px="Cette étape a échoué.",mx="Cette étape n'a eu aucun effet.",gx="Données de session non disponibles",yx="Étape introuvable",vx="Bienvenue sur le générateur de site ParoiCMS",Sx="Fermer et réinitialiser",bx="Réinitialiser le schéma",xx="erreur inconnue",Nx="Créer un nouveau site",Ex="Génération de votre site…",Tx="Le site est généré",Cx="Email :",Rx="Mot de passe :",jx="Commencer",wx="Vous êtes sur le point de générer votre site web.",Ax="Annuler",Ox="Confirmer",zx="URL du site :",kx="URL d'admin :",Lx="Copier toutes les informations dans le presse-papier",_x="<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>",Dx="Création du schéma initial",Mx="Mise à jour du schéma",Ux="Génération du site",Bx={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…"},Hx="Email de connexion",Vx="Mot de passe",$x="Site généré",qx="Votre session a expiré. Veuillez rafraîchir la page pour démarrer une nouvelle session.",Gx="Échec de l'envoi de votre demande. Veuillez réessayer.",Yx="Échec de la génération du site. Veuillez réessayer.",Qx='Le code source de ce générateur est disponible <a href="https://gitlab.com/paroi/opensource/paroicms/-/tree/main/plugins/site-generator-plugin?ref_type=heads" target="_blank">sur GitLab</a> — <a href="https://www.paroicms.org/fr" target="_blank">ParoiCMS</a> — Contactez-moi <a href="https://paroi.tech/fr" target="_blank">ici</a>.',Kx="Prolonger votre session",Zx="Échec du renouvellement de votre session. Veuillez réessayer.",Xx="Erreur de connexion au serveur. Veuillez vérifier votre connexion et réessayer.",Jx="Astuce : si vous souhaitez repartir de zéro, ouvrez le générateur dans un nouvel onglet et fermez celui-ci.",Fx={title:Yb,startInstruction:Qb,createPromptPlaceholder:Kb,updatePromptPlaceholder:Zb,modifySchema:Xb,createSchema:Jb,generateTheWebsite:Fb,generateSiteWithData:Wb,generateEmptySite:Pb,administration:Ib,viewSite:ex,generatedSchema:tx,treeView:ax,siteSchema:nx,nodeTypes:lx,labels:ix,languageSelector:rx,explanation:sx,currentActivity:ux,errorOccurred:ox,unknownErrorOccurred:cx,startAgain:fx,stepTitle:dx,stepPending:hx,stepFailed:px,stepNoEffect:mx,noSessionData:gx,stepNotFound:yx,welcomeTitle:vx,reset:Sx,resetSchema:bx,unknownError:xx,createNewSite:Nx,generatingSite:Ex,siteGenerated:Tx,email:Cx,password:Rx,start:jx,aboutToGenerateWebsite:wx,cancel:Ax,confirm:Ox,siteUrl:zx,adminUrl:kx,copyToClipboard:Lx,introduction:_x,initialSchema:Dx,updateSchema:Mx,generateSite:Ux,activity:Bx,loginEmail:Hx,loginPassword:Vx,generatedSite:$x,sessionExpired:qx,promptSubmissionFailed:Gx,generationFailed:Yx,footerText:Qx,extendYourSession:Kx,sessionRenewalFailed:Zx,errorConnectingToServer:Xx,newTabRestartMessage:Jx},Wx=`<p>Welcome!</p>
|
|
18
18
|
<p>ParoiCMS is a CMS for showcase websites. Its core feature is that you define the structure of your website. This tool will help you to do it.</p>
|
|
19
|
-
<p>Your session exists in this tab of your browser, it will be lost when you close the tab.</p>`,
|
|
19
|
+
<p>Your session exists in this tab of your browser, it will be lost when you close the tab.</p>`,Px=`<p>Bienvenue !</p>
|
|
20
20
|
<p>ParoiCMS est un CMS pour sites vitrines. Sa principale caractéristique est que vous définissez la structure de votre site web. Cet outil vous aidera dans cette tâche.</p>
|
|
21
|
-
<p>Votre session existe dans cet onglet de votre navigateur, elle sera perdue lorsque vous fermerez l'onglet.</p>`,
|
|
21
|
+
<p>Votre session existe dans cet onglet de votre navigateur, elle sera perdue lorsque vous fermerez l'onglet.</p>`,Ix=`<p>Congratulations! Your website has been generated. Now you can authenticate on the admin-ui (using the <strong>local account</strong>) and play with it.</p>
|
|
22
22
|
<p>Notice that it will be deleted in 48 hours. However, if you want to keep it, then <strong>make a backup</strong>. <em>Each backup is a zip file that contains a full Node.js project, ready to be installed and executed in a local environment.</em></p>
|
|
23
23
|
<p>An unattractive theme has been generated. Its purpose is to demonstrate how to write templates for your data structure.</p>
|
|
24
|
-
<p>Make sure to copy the information below, as it will be lost once you close this tab.</p>`,
|
|
24
|
+
<p>Make sure to copy the information below, as it will be lost once you close this tab.</p>`,e1=`<p>Félicitations ! Votre site web a été généré. Vous pouvez maintenant vous authentifier sur le admin-ui (en utilisant le <strong>compte local</strong>) et l'explorer.</p>
|
|
25
25
|
<p>Notez qu'il sera supprimé dans 48 heures. Cependant, si vous souhaitez le conserver, alors <strong>faites une sauvegarde</strong>. <em>Chaque sauvegarde est un fichier zip qui contient un projet Node.js complet, prêt à être installé et exécuté dans un environnement local.</em></p>
|
|
26
26
|
<p>Un thème tout moche a été généré. Son but est de montrer comment écrire des templates pour votre structure de données.</p>
|
|
27
|
-
<p>Assurez-vous de copier les informations ci-dessous, car elles seront perdues une fois que vous fermerez cet onglet.</p>`,
|
|
27
|
+
<p>Assurez-vous de copier les informations ci-dessous, car elles seront perdues une fois que vous fermerez cet onglet.</p>`,t1={en:{translation:{...Gb,introduction:Wx,userManual:Ix}},fr:{translation:{...Fx,introduction:Px,userManual:e1}}};rt.use(kS).init({resources:t1,lng:navigator.language.split("-")[0],fallbackLng:"en",interpolation:{escapeValue:!1}});var Bo={exports:{}},ci={},Ho={exports:{}},Vo={};/**
|
|
28
28
|
* @license React
|
|
29
29
|
* scheduler.production.js
|
|
30
30
|
*
|
|
@@ -32,7 +32,7 @@ var A0=Object.defineProperty;var O0=(i,n,r)=>n in i?A0(i,n,{enumerable:!0,config
|
|
|
32
32
|
*
|
|
33
33
|
* This source code is licensed under the MIT license found in the
|
|
34
34
|
* LICENSE file in the root directory of this source tree.
|
|
35
|
-
*/var
|
|
35
|
+
*/var tm;function a1(){return tm||(tm=1,(function(i){function n(_,Y){var ee=_.length;_.push(Y);e:for(;0<ee;){var ye=ee-1>>>1,Te=_[ye];if(0<o(Te,Y))_[ye]=Y,_[ee]=Te,ee=ye;else break e}}function r(_){return _.length===0?null:_[0]}function s(_){if(_.length===0)return null;var Y=_[0],ee=_.pop();if(ee!==Y){_[0]=ee;e:for(var ye=0,Te=_.length,E=Te>>>1;ye<E;){var U=2*(ye+1)-1,Q=_[U],X=U+1,ie=_[X];if(0>o(Q,ee))X<Te&&0>o(ie,Q)?(_[ye]=ie,_[X]=ee,ye=X):(_[ye]=Q,_[U]=ee,ye=U);else if(X<Te&&0>o(ie,ee))_[ye]=ie,_[X]=ee,ye=X;else break e}}return Y}function o(_,Y){var ee=_.sortIndex-Y.sortIndex;return ee!==0?ee:_.id-Y.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;i.unstable_now=function(){return f.now()}}else{var p=Date,d=p.now();i.unstable_now=function(){return p.now()-d}}var m=[],h=[],y=1,v=null,x=3,R=!1,j=!1,L=!1,H=!1,$=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,q=typeof setImmediate<"u"?setImmediate:null;function Z(_){for(var Y=r(h);Y!==null;){if(Y.callback===null)s(h);else if(Y.startTime<=_)s(h),Y.sortIndex=Y.expirationTime,n(m,Y);else break;Y=r(h)}}function I(_){if(L=!1,Z(_),!j)if(r(m)!==null)j=!0,re||(re=!0,$e());else{var Y=r(h);Y!==null&&qe(I,Y.startTime-_)}}var re=!1,K=-1,ae=5,W=-1;function ne(){return H?!0:!(i.unstable_now()-W<ae)}function Ee(){if(H=!1,re){var _=i.unstable_now();W=_;var Y=!0;try{e:{j=!1,L&&(L=!1,G(K),K=-1),R=!0;var ee=x;try{t:{for(Z(_),v=r(m);v!==null&&!(v.expirationTime>_&&ne());){var ye=v.callback;if(typeof ye=="function"){v.callback=null,x=v.priorityLevel;var Te=ye(v.expirationTime<=_);if(_=i.unstable_now(),typeof Te=="function"){v.callback=Te,Z(_),Y=!0;break t}v===r(m)&&s(m),Z(_)}else s(m);v=r(m)}if(v!==null)Y=!0;else{var E=r(h);E!==null&&qe(I,E.startTime-_),Y=!1}}break e}finally{v=null,x=ee,R=!1}Y=void 0}}finally{Y?$e():re=!1}}}var $e;if(typeof q=="function")$e=function(){q(Ee)};else if(typeof MessageChannel<"u"){var Ue=new MessageChannel,Ve=Ue.port2;Ue.port1.onmessage=Ee,$e=function(){Ve.postMessage(null)}}else $e=function(){$(Ee,0)};function qe(_,Y){K=$(function(){_(i.unstable_now())},Y)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(_){_.callback=null},i.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ae=0<_?Math.floor(1e3/_):5},i.unstable_getCurrentPriorityLevel=function(){return x},i.unstable_next=function(_){switch(x){case 1:case 2:case 3:var Y=3;break;default:Y=x}var ee=x;x=Y;try{return _()}finally{x=ee}},i.unstable_requestPaint=function(){H=!0},i.unstable_runWithPriority=function(_,Y){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var ee=x;x=_;try{return Y()}finally{x=ee}},i.unstable_scheduleCallback=function(_,Y,ee){var ye=i.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?ye+ee:ye):ee=ye,_){case 1:var Te=-1;break;case 2:Te=250;break;case 5:Te=1073741823;break;case 4:Te=1e4;break;default:Te=5e3}return Te=ee+Te,_={id:y++,callback:Y,priorityLevel:_,startTime:ee,expirationTime:Te,sortIndex:-1},ee>ye?(_.sortIndex=ee,n(h,_),r(m)===null&&_===r(h)&&(L?(G(K),K=-1):L=!0,qe(I,ee-ye))):(_.sortIndex=Te,n(m,_),j||R||(j=!0,re||(re=!0,$e()))),_},i.unstable_shouldYield=ne,i.unstable_wrapCallback=function(_){var Y=x;return function(){var ee=x;x=Y;try{return _.apply(this,arguments)}finally{x=ee}}}})(Vo)),Vo}var am;function n1(){return am||(am=1,Ho.exports=a1()),Ho.exports}var $o={exports:{}},st={};/**
|
|
36
36
|
* @license React
|
|
37
37
|
* react-dom.production.js
|
|
38
38
|
*
|
|
@@ -40,7 +40,7 @@ var A0=Object.defineProperty;var O0=(i,n,r)=>n in i?A0(i,n,{enumerable:!0,config
|
|
|
40
40
|
*
|
|
41
41
|
* This source code is licensed under the MIT license found in the
|
|
42
42
|
* LICENSE file in the root directory of this source tree.
|
|
43
|
-
*/var
|
|
43
|
+
*/var nm;function l1(){if(nm)return st;nm=1;var i=ic();function n(m){var h="https://react.dev/errors/"+m;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 #"+m+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function f(m,h,y){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:v==null?null:""+v,children:m,containerInfo:h,implementation:y}}var p=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(m,h){if(m==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return st.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,st.createPortal=function(m,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(n(299));return f(m,h,null,y)},st.flushSync=function(m){var h=p.T,y=s.p;try{if(p.T=null,s.p=2,m)return m()}finally{p.T=h,s.p=y,s.d.f()}},st.preconnect=function(m,h){typeof m=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,s.d.C(m,h))},st.prefetchDNS=function(m){typeof m=="string"&&s.d.D(m)},st.preinit=function(m,h){if(typeof m=="string"&&h&&typeof h.as=="string"){var y=h.as,v=d(y,h.crossOrigin),x=typeof h.integrity=="string"?h.integrity:void 0,R=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;y==="style"?s.d.S(m,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:v,integrity:x,fetchPriority:R}):y==="script"&&s.d.X(m,{crossOrigin:v,integrity:x,fetchPriority:R,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},st.preinitModule=function(m,h){if(typeof m=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var y=d(h.as,h.crossOrigin);s.d.M(m,{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(m)},st.preload=function(m,h){if(typeof m=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var y=h.as,v=d(y,h.crossOrigin);s.d.L(m,y,{crossOrigin:v,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})}},st.preloadModule=function(m,h){if(typeof m=="string")if(h){var y=d(h.as,h.crossOrigin);s.d.m(m,{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(m)},st.requestFormReset=function(m){s.d.r(m)},st.unstable_batchedUpdates=function(m,h){return m(h)},st.useFormState=function(m,h,y){return p.H.useFormState(m,h,y)},st.useFormStatus=function(){return p.H.useHostTransitionStatus()},st.version="19.2.0",st}var lm;function i1(){if(lm)return $o.exports;lm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(n){console.error(n)}}return i(),$o.exports=l1(),$o.exports}/**
|
|
44
44
|
* @license React
|
|
45
45
|
* react-dom-client.production.js
|
|
46
46
|
*
|
|
@@ -48,79 +48,88 @@ var A0=Object.defineProperty;var O0=(i,n,r)=>n in i?A0(i,n,{enumerable:!0,config
|
|
|
48
48
|
*
|
|
49
49
|
* This source code is licensed under the MIT license found in the
|
|
50
50
|
* LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/var $p;function HS(){if($p)return si;$p=1;var i=_S(),n=Jo(),r=BS();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function m(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(f(e)!==e)throw Error(s(188))}function 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 a=e,l=t;;){var u=a.return;if(u===null)break;var c=u.alternate;if(c===null){if(l=u.return,l!==null){a=l;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===a)return h(u),e;if(c===l)return h(u),t;c=c.sibling}throw Error(s(188))}if(a.return!==l.return)a=u,l=c;else{for(var g=!1,v=u.child;v;){if(v===a){g=!0,a=u,l=c;break}if(v===l){g=!0,l=u,a=c;break}v=v.sibling}if(!g){for(v=c.child;v;){if(v===a){g=!0,a=c,l=u;break}if(v===l){g=!0,l=c,a=u;break}v=v.sibling}if(!g)throw Error(s(189))}}if(a.alternate!==l)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,b=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),U=Symbol.for("react.consumer"),G=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),ie=Symbol.for("react.memo_cache_sentinel"),pe=Symbol.iterator;function Ke(e){return e===null||typeof e!="object"?null:(e=pe&&e[pe]||e["@@iterator"],typeof e=="function"?e:null)}var Xe=Symbol.for("react.client.reference");function Ge(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Xe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case H:return"Profiler";case z:return"StrictMode";case Z:return"Suspense";case te:return"SuspenseList";case F:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case G:return(e.displayName||"Context")+".Provider";case U:return(e._context.displayName||"Context")+".Consumer";case X:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ne:return t=e.displayName||null,t!==null?t:Ge(e.type)||"Memo";case ee:t=e._payload,e=e._init;try{return Ge(e(t))}catch{}}return null}var Ye=Array.isArray,D=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},ve=[],R=-1;function $(e){return{current:e}}function K(e){0>R||(e.current=ve[R],ve[R]=null,R--)}function Q(e,t){R++,ve[R]=e.current,e.current=t}var I=$(null),me=$(null),ue=$(null),gt=$(null);function Le(e,t){switch(Q(ue,t),Q(me,e),Q(I,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Qh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Qh(t),e=Zh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}K(I),Q(I,e)}function va(){K(I),K(me),K(ue)}function us(e){e.memoizedState!==null&&Q(gt,e);var t=I.current,a=Zh(t,e.type);t!==a&&(Q(me,e),Q(I,a))}function Ei(e){me.current===e&&(K(I),K(me)),gt.current===e&&(K(gt),ei._currentValue=W)}var os=Object.prototype.hasOwnProperty,cs=i.unstable_scheduleCallback,fs=i.unstable_cancelCallback,uy=i.unstable_shouldYield,oy=i.unstable_requestPaint,Qt=i.unstable_now,cy=i.unstable_getCurrentPriorityLevel,Rc=i.unstable_ImmediatePriority,Tc=i.unstable_UserBlockingPriority,Ri=i.unstable_NormalPriority,fy=i.unstable_LowPriority,wc=i.unstable_IdlePriority,dy=i.log,hy=i.unstable_setDisableYieldValue,ul=null,yt=null;function xa(e){if(typeof dy=="function"&&hy(e),yt&&typeof yt.setStrictMode=="function")try{yt.setStrictMode(ul,e)}catch{}}var vt=Math.clz32?Math.clz32:gy,py=Math.log,my=Math.LN2;function gy(e){return e>>>=0,e===0?32:31-(py(e)/my|0)|0}var Ti=256,wi=4194304;function Za(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ci(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var u=0,c=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var v=l&134217727;return v!==0?(l=v&~c,l!==0?u=Za(l):(g&=v,g!==0?u=Za(g):a||(a=v&~e,a!==0&&(u=Za(a))))):(v=l&~c,v!==0?u=Za(v):g!==0?u=Za(g):a||(a=l&~e,a!==0&&(u=Za(a)))),u===0?0:t!==0&&t!==u&&(t&c)===0&&(c=u&-u,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:u}function ol(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function yy(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 Cc(){var e=Ti;return Ti<<=1,(Ti&4194048)===0&&(Ti=256),e}function jc(){var e=wi;return wi<<=1,(wi&62914560)===0&&(wi=4194304),e}function ds(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function cl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function vy(e,t,a,l,u,c){var g=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var v=e.entanglements,N=e.expirationTimes,A=e.hiddenUpdates;for(a=g&~a;0<a;){var B=31-vt(a),q=1<<B;v[B]=0,N[B]=-1;var O=A[B];if(O!==null)for(A[B]=null,B=0;B<O.length;B++){var L=O[B];L!==null&&(L.lane&=-536870913)}a&=~q}l!==0&&kc(e,l,0),c!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=c&~(g&~t))}function kc(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-vt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&4194090}function Ac(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-vt(a),u=1<<l;u&t|e[l]&t&&(e[l]|=t),a&=~u}}function hs(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ps(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Oc(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:fp(e.type))}function xy(e,t){var a=Y.p;try{return Y.p=e,t()}finally{Y.p=a}}var ba=Math.random().toString(36).slice(2),nt="__reactFiber$"+ba,ct="__reactProps$"+ba,yn="__reactContainer$"+ba,ms="__reactEvents$"+ba,by="__reactListeners$"+ba,Sy="__reactHandles$"+ba,zc="__reactResources$"+ba,fl="__reactMarker$"+ba;function gs(e){delete e[nt],delete e[ct],delete e[ms],delete e[by],delete e[Sy]}function vn(e){var t=e[nt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[yn]||a[nt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Fh(e);e!==null;){if(a=e[nt])return a;e=Fh(e)}return t}e=a,a=e.parentNode}return null}function xn(e){if(e=e[nt]||e[yn]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function dl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function bn(e){var t=e[zc];return t||(t=e[zc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Je(e){e[fl]=!0}var Lc=new Set,Dc={};function Ka(e,t){Sn(e,t),Sn(e+"Capture",t)}function Sn(e,t){for(Dc[e]=t,e=0;e<t.length;e++)Lc.add(t[e])}var Ny=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Mc={},_c={};function Ey(e){return os.call(_c,e)?!0:os.call(Mc,e)?!1:Ny.test(e)?_c[e]=!0:(Mc[e]=!0,!1)}function ji(e,t,a){if(Ey(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function ki(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function It(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}var ys,Uc;function Nn(e){if(ys===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);ys=t&&t[1]||"",Uc=-1<a.stack.indexOf(`
|
|
51
|
+
*/var im;function r1(){if(im)return ci;im=1;var i=n1(),n=ic(),r=i1();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function p(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(f(e)!==e)throw Error(s(188))}function h(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,l=t;;){var u=a.return;if(u===null)break;var c=u.alternate;if(c===null){if(l=u.return,l!==null){a=l;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===a)return m(u),e;if(c===l)return m(u),t;c=c.sibling}throw Error(s(188))}if(a.return!==l.return)a=u,l=c;else{for(var g=!1,S=u.child;S;){if(S===a){g=!0,a=u,l=c;break}if(S===l){g=!0,l=u,a=c;break}S=S.sibling}if(!g){for(S=c.child;S;){if(S===a){g=!0,a=c,l=u;break}if(S===l){g=!0,l=c,a=u;break}S=S.sibling}if(!g)throw Error(s(189))}}if(a.alternate!==l)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,x=Symbol.for("react.element"),R=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),q=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),re=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),ne=Symbol.for("react.memo_cache_sentinel"),Ee=Symbol.iterator;function $e(e){return e===null||typeof e!="object"?null:(e=Ee&&e[Ee]||e["@@iterator"],typeof e=="function"?e:null)}var Ue=Symbol.for("react.client.reference");function Ve(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ue?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case L:return"Fragment";case $:return"Profiler";case H:return"StrictMode";case I:return"Suspense";case re:return"SuspenseList";case W:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case j:return"Portal";case q:return e.displayName||"Context";case G:return(e._context.displayName||"Context")+".Consumer";case Z:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K:return t=e.displayName||null,t!==null?t:Ve(e.type)||"Memo";case ae:t=e._payload,e=e._init;try{return Ve(e(t))}catch{}}return null}var qe=Array.isArray,_=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},ye=[],Te=-1;function E(e){return{current:e}}function U(e){0>Te||(e.current=ye[Te],ye[Te]=null,Te--)}function Q(e,t){Te++,ye[Te]=e.current,e.current=t}var X=E(null),ie=E(null),ce=E(null),Ce=E(null);function ot(e,t){switch(Q(ce,t),Q(ie,e),Q(X,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?ip(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=ip(t),e=rp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}U(X),Q(X,e)}function Qe(){U(X),U(ie),U(ce)}function ml(e){e.memoizedState!==null&&Q(Ce,e);var t=X.current,a=rp(t,e.type);t!==a&&(Q(ie,e),Q(X,a))}function ji(e){ie.current===e&&(U(X),U(ie)),Ce.current===e&&(U(Ce),li._currentValue=ee)}var ms,_c;function Ia(e){if(ms===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);ms=t&&t[1]||"",_c=-1<a.stack.indexOf(`
|
|
52
52
|
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
53
|
-
`+
|
|
54
|
-
`),
|
|
55
|
-
`);for(u=l=0;l<N.length&&!N[l].includes("DetermineComponentFrameRoot");)l++;for(;u<
|
|
56
|
-
`+N[l].replace(" at new "," at ");return e.displayName&&
|
|
57
|
-
Error generating stack: `+
|
|
58
|
-
`+a.stack}}function jt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Hc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ty(e){var t=Hc(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var u=a.get,c=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(g){l=""+g,c.call(this,g)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(g){l=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ai(e){e._valueTracker||(e._valueTracker=Ty(e))}function Vc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=Hc(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function Oi(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 wy=/[\n"\\]/g;function kt(e){return e.replace(wy,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function bs(e,t,a,l,u,c,g,v){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+jt(t)):e.value!==""+jt(t)&&(e.value=""+jt(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?Ss(e,g,jt(t)):a!=null?Ss(e,g,jt(a)):l!=null&&e.removeAttribute("value"),u==null&&c!=null&&(e.defaultChecked=!!c),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+jt(v):e.removeAttribute("name")}function $c(e,t,a,l,u,c,g,v){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null))return;a=a!=null?""+jt(a):"",t=t!=null?""+jt(t):a,v||t===e.value||(e.value=t),e.defaultValue=t}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=v?e.checked:!!l,e.defaultChecked=!!l,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g)}function Ss(e,t,a){t==="number"&&Oi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function En(e,t,a,l){if(e=e.options,t){t={};for(var u=0;u<a.length;u++)t["$"+a[u]]=!0;for(a=0;a<e.length;a++)u=t.hasOwnProperty("$"+e[a].value),e[a].selected!==u&&(e[a].selected=u),u&&l&&(e[a].defaultSelected=!0)}else{for(a=""+jt(a),t=null,u=0;u<e.length;u++){if(e[u].value===a){e[u].selected=!0,l&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function qc(e,t,a){if(t!=null&&(t=""+jt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+jt(a):""}function Gc(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(s(92));if(Ye(l)){if(1<l.length)throw Error(s(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=jt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l)}function Rn(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Cy=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 Yc(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||Cy.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Qc(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var u in t)l=t[u],t.hasOwnProperty(u)&&a[u]!==l&&Yc(e,u,l)}else for(var c in t)t.hasOwnProperty(c)&&Yc(e,c,t[c])}function Ns(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var jy=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"]]),ky=/^[\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 zi(e){return ky.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Es=null;function Rs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Tn=null,wn=null;function Zc(e){var t=xn(e);if(t&&(e=t.stateNode)){var a=e[ct]||null;e:switch(e=t.stateNode,t.type){case"input":if(bs(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+kt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var u=l[ct]||null;if(!u)throw Error(s(90));bs(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&Vc(l)}break e;case"textarea":qc(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&En(e,!!a.multiple,t,!1)}}}var Ts=!1;function Kc(e,t,a){if(Ts)return e(t,a);Ts=!0;try{var l=e(t);return l}finally{if(Ts=!1,(Tn!==null||wn!==null)&&(yr(),Tn&&(t=Tn,e=wn,wn=Tn=null,Zc(t),e)))for(t=0;t<e.length;t++)Zc(e[t])}}function hl(e,t){var a=e.stateNode;if(a===null)return null;var l=a[ct]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var ea=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ws=!1;if(ea)try{var pl={};Object.defineProperty(pl,"passive",{get:function(){ws=!0}}),window.addEventListener("test",pl,pl),window.removeEventListener("test",pl,pl)}catch{ws=!1}var Sa=null,Cs=null,Li=null;function Xc(){if(Li)return Li;var e,t=Cs,a=t.length,l,u="value"in Sa?Sa.value:Sa.textContent,c=u.length;for(e=0;e<a&&t[e]===u[e];e++);var g=a-e;for(l=1;l<=g&&t[a-l]===u[c-l];l++);return Li=u.slice(e,1<l?1-l:void 0)}function Di(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Mi(){return!0}function Jc(){return!1}function ft(e){function t(a,l,u,c,g){this._reactName=a,this._targetInst=u,this.type=l,this.nativeEvent=c,this.target=g,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(a=e[v],this[v]=a?a(c):c[v]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Mi:Jc,this.isPropagationStopped=Jc,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Mi)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Mi)},persist:function(){},isPersistent:Mi}),t}var Xa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_i=ft(Xa),ml=y({},Xa,{view:0,detail:0}),Ay=ft(ml),js,ks,gl,Ui=y({},ml,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Os,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==gl&&(gl&&e.type==="mousemove"?(js=e.screenX-gl.screenX,ks=e.screenY-gl.screenY):ks=js=0,gl=e),js)},movementY:function(e){return"movementY"in e?e.movementY:ks}}),Fc=ft(Ui),Oy=y({},Ui,{dataTransfer:0}),zy=ft(Oy),Ly=y({},ml,{relatedTarget:0}),As=ft(Ly),Dy=y({},Xa,{animationName:0,elapsedTime:0,pseudoElement:0}),My=ft(Dy),_y=y({},Xa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Uy=ft(_y),By=y({},Xa,{data:0}),Pc=ft(By),Hy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Vy={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"},$y={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=$y[e])?!!t[e]:!1}function Os(){return qy}var Gy=y({},ml,{key:function(e){if(e.key){var t=Hy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Di(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Vy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Os,charCode:function(e){return e.type==="keypress"?Di(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Di(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Yy=ft(Gy),Qy=y({},Ui,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Wc=ft(Qy),Zy=y({},ml,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Os}),Ky=ft(Zy),Xy=y({},Xa,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jy=ft(Xy),Fy=y({},Ui,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Py=ft(Fy),Wy=y({},Xa,{newState:0,oldState:0}),Iy=ft(Wy),ev=[9,13,27,32],zs=ea&&"CompositionEvent"in window,yl=null;ea&&"documentMode"in document&&(yl=document.documentMode);var tv=ea&&"TextEvent"in window&&!yl,Ic=ea&&(!zs||yl&&8<yl&&11>=yl),ef=" ",tf=!1;function af(e,t){switch(e){case"keyup":return ev.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cn=!1;function av(e,t){switch(e){case"compositionend":return nf(t);case"keypress":return t.which!==32?null:(tf=!0,ef);case"textInput":return e=t.data,e===ef&&tf?null:e;default:return null}}function nv(e,t){if(Cn)return e==="compositionend"||!zs&&af(e,t)?(e=Xc(),Li=Cs=Sa=null,Cn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ic&&t.locale!=="ko"?null:t.data;default:return null}}var lv={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 lf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!lv[e.type]:t==="textarea"}function rf(e,t,a,l){Tn?wn?wn.push(l):wn=[l]:Tn=l,t=Er(t,"onChange"),0<t.length&&(a=new _i("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var vl=null,xl=null;function iv(e){Vh(e,0)}function Bi(e){var t=dl(e);if(Vc(t))return e}function sf(e,t){if(e==="change")return t}var uf=!1;if(ea){var Ls;if(ea){var Ds="oninput"in document;if(!Ds){var of=document.createElement("div");of.setAttribute("oninput","return;"),Ds=typeof of.oninput=="function"}Ls=Ds}else Ls=!1;uf=Ls&&(!document.documentMode||9<document.documentMode)}function cf(){vl&&(vl.detachEvent("onpropertychange",ff),xl=vl=null)}function ff(e){if(e.propertyName==="value"&&Bi(xl)){var t=[];rf(t,xl,e,Rs(e)),Kc(iv,t)}}function rv(e,t,a){e==="focusin"?(cf(),vl=t,xl=a,vl.attachEvent("onpropertychange",ff)):e==="focusout"&&cf()}function sv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Bi(xl)}function uv(e,t){if(e==="click")return Bi(t)}function ov(e,t){if(e==="input"||e==="change")return Bi(t)}function cv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xt=typeof Object.is=="function"?Object.is:cv;function bl(e,t){if(xt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var u=a[l];if(!os.call(t,u)||!xt(e[u],t[u]))return!1}return!0}function df(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hf(e,t){var a=df(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=df(a)}}function pf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Oi(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Oi(e.document)}return t}function Ms(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 fv=ea&&"documentMode"in document&&11>=document.documentMode,jn=null,_s=null,Sl=null,Us=!1;function gf(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Us||jn==null||jn!==Oi(l)||(l=jn,"selectionStart"in l&&Ms(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Sl&&bl(Sl,l)||(Sl=l,l=Er(_s,"onSelect"),0<l.length&&(t=new _i("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=jn)))}function Ja(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var kn={animationend:Ja("Animation","AnimationEnd"),animationiteration:Ja("Animation","AnimationIteration"),animationstart:Ja("Animation","AnimationStart"),transitionrun:Ja("Transition","TransitionRun"),transitionstart:Ja("Transition","TransitionStart"),transitioncancel:Ja("Transition","TransitionCancel"),transitionend:Ja("Transition","TransitionEnd")},Bs={},yf={};ea&&(yf=document.createElement("div").style,"AnimationEvent"in window||(delete kn.animationend.animation,delete kn.animationiteration.animation,delete kn.animationstart.animation),"TransitionEvent"in window||delete kn.transitionend.transition);function Fa(e){if(Bs[e])return Bs[e];if(!kn[e])return e;var t=kn[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in yf)return Bs[e]=t[a];return e}var vf=Fa("animationend"),xf=Fa("animationiteration"),bf=Fa("animationstart"),dv=Fa("transitionrun"),hv=Fa("transitionstart"),pv=Fa("transitioncancel"),Sf=Fa("transitionend"),Nf=new Map,Hs="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Hs.push("scrollEnd");function Ht(e,t){Nf.set(e,t),Ka(t,[e])}var Ef=new WeakMap;function At(e,t){if(typeof e=="object"&&e!==null){var a=Ef.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Bc(t)},Ef.set(e,t),t)}return{value:e,source:t,stack:Bc(t)}}var Ot=[],An=0,Vs=0;function Hi(){for(var e=An,t=Vs=An=0;t<e;){var a=Ot[t];Ot[t++]=null;var l=Ot[t];Ot[t++]=null;var u=Ot[t];Ot[t++]=null;var c=Ot[t];if(Ot[t++]=null,l!==null&&u!==null){var g=l.pending;g===null?u.next=u:(u.next=g.next,g.next=u),l.pending=u}c!==0&&Rf(a,u,c)}}function Vi(e,t,a,l){Ot[An++]=e,Ot[An++]=t,Ot[An++]=a,Ot[An++]=l,Vs|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function $s(e,t,a,l){return Vi(e,t,a,l),$i(e)}function On(e,t){return Vi(e,null,null,t),$i(e)}function Rf(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var u=!1,c=e.return;c!==null;)c.childLanes|=a,l=c.alternate,l!==null&&(l.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(u=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,u&&t!==null&&(u=31-vt(a),e=c.hiddenUpdates,l=e[u],l===null?e[u]=[t]:l.push(t),t.lane=a|536870912),c):null}function $i(e){if(50<Zl)throw Zl=0,Ku=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var zn={};function mv(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bt(e,t,a,l){return new mv(e,t,a,l)}function qs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ta(e,t){var a=e.alternate;return a===null?(a=bt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Tf(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function qi(e,t,a,l,u,c){var g=0;if(l=e,typeof e=="function")qs(e)&&(g=1);else if(typeof e=="string")g=y0(e,a,I.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case F:return e=bt(31,a,t,u),e.elementType=F,e.lanes=c,e;case E:return Pa(a.children,u,c,t);case z:g=8,u|=24;break;case H:return e=bt(12,a,t,u|2),e.elementType=H,e.lanes=c,e;case Z:return e=bt(13,a,t,u),e.elementType=Z,e.lanes=c,e;case te:return e=bt(19,a,t,u),e.elementType=te,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _:case G:g=10;break e;case U:g=9;break e;case X:g=11;break e;case ne:g=14;break e;case ee:g=16,l=null;break e}g=29,a=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=bt(g,a,t,u),t.elementType=e,t.type=l,t.lanes=c,t}function Pa(e,t,a,l){return e=bt(7,e,l,t),e.lanes=a,e}function Gs(e,t,a){return e=bt(6,e,null,t),e.lanes=a,e}function Ys(e,t,a){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ln=[],Dn=0,Gi=null,Yi=0,zt=[],Lt=0,Wa=null,aa=1,na="";function Ia(e,t){Ln[Dn++]=Yi,Ln[Dn++]=Gi,Gi=e,Yi=t}function wf(e,t,a){zt[Lt++]=aa,zt[Lt++]=na,zt[Lt++]=Wa,Wa=e;var l=aa;e=na;var u=32-vt(l)-1;l&=~(1<<u),a+=1;var c=32-vt(t)+u;if(30<c){var g=u-u%5;c=(l&(1<<g)-1).toString(32),l>>=g,u-=g,aa=1<<32-vt(t)+u|a<<u|l,na=c+e}else aa=1<<c|a<<u|l,na=e}function Qs(e){e.return!==null&&(Ia(e,1),wf(e,1,0))}function Zs(e){for(;e===Gi;)Gi=Ln[--Dn],Ln[Dn]=null,Yi=Ln[--Dn],Ln[Dn]=null;for(;e===Wa;)Wa=zt[--Lt],zt[Lt]=null,na=zt[--Lt],zt[Lt]=null,aa=zt[--Lt],zt[Lt]=null}var st=null,Ue=null,Se=!1,en=null,Zt=!1,Ks=Error(s(519));function tn(e){var t=Error(s(418,""));throw Rl(At(t,e)),Ks}function Cf(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[nt]=e,t[ct]=l,a){case"dialog":he("cancel",t),he("close",t);break;case"iframe":case"object":case"embed":he("load",t);break;case"video":case"audio":for(a=0;a<Xl.length;a++)he(Xl[a],t);break;case"source":he("error",t);break;case"img":case"image":case"link":he("error",t),he("load",t);break;case"details":he("toggle",t);break;case"input":he("invalid",t),$c(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),Ai(t);break;case"select":he("invalid",t);break;case"textarea":he("invalid",t),Gc(t,l.value,l.defaultValue,l.children),Ai(t)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||Yh(t.textContent,a)?(l.popover!=null&&(he("beforetoggle",t),he("toggle",t)),l.onScroll!=null&&he("scroll",t),l.onScrollEnd!=null&&he("scrollend",t),l.onClick!=null&&(t.onclick=Rr),t=!0):t=!1,t||tn(e)}function jf(e){for(st=e.return;st;)switch(st.tag){case 5:case 13:Zt=!1;return;case 27:case 3:Zt=!0;return;default:st=st.return}}function Nl(e){if(e!==st)return!1;if(!Se)return jf(e),Se=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||oo(e.type,e.memoizedProps)),a=!a),a&&Ue&&tn(e),jf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(t===0){Ue=$t(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++;e=e.nextSibling}Ue=null}}else t===27?(t=Ue,Ua(e.type)?(e=po,po=null,Ue=e):Ue=t):Ue=st?$t(e.stateNode.nextSibling):null;return!0}function El(){Ue=st=null,Se=!1}function kf(){var e=en;return e!==null&&(pt===null?pt=e:pt.push.apply(pt,e),en=null),e}function Rl(e){en===null?en=[e]:en.push(e)}var Xs=$(null),an=null,la=null;function Na(e,t,a){Q(Xs,t._currentValue),t._currentValue=a}function ia(e){e._currentValue=Xs.current,K(Xs)}function Js(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function Fs(e,t,a,l){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var c=u.dependencies;if(c!==null){var g=u.child;c=c.firstContext;e:for(;c!==null;){var v=c;c=u;for(var N=0;N<t.length;N++)if(v.context===t[N]){c.lanes|=a,v=c.alternate,v!==null&&(v.lanes|=a),Js(c.return,a,e),l||(g=null);break e}c=v.next}}else if(u.tag===18){if(g=u.return,g===null)throw Error(s(341));g.lanes|=a,c=g.alternate,c!==null&&(c.lanes|=a),Js(g,a,e),g=null}else g=u.child;if(g!==null)g.return=u;else for(g=u;g!==null;){if(g===e){g=null;break}if(u=g.sibling,u!==null){u.return=g.return,g=u;break}g=g.return}u=g}}function Tl(e,t,a,l){e=null;for(var u=t,c=!1;u!==null;){if(!c){if((u.flags&524288)!==0)c=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var g=u.alternate;if(g===null)throw Error(s(387));if(g=g.memoizedProps,g!==null){var v=u.type;xt(u.pendingProps.value,g.value)||(e!==null?e.push(v):e=[v])}}else if(u===gt.current){if(g=u.alternate,g===null)throw Error(s(387));g.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(ei):e=[ei])}u=u.return}e!==null&&Fs(t,e,a,l),t.flags|=262144}function Qi(e){for(e=e.firstContext;e!==null;){if(!xt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function nn(e){an=e,la=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function lt(e){return Af(an,e)}function Zi(e,t){return an===null&&nn(e),Af(e,t)}function Af(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},la===null){if(e===null)throw Error(s(308));la=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else la=la.next=t;return a}var gv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},yv=i.unstable_scheduleCallback,vv=i.unstable_NormalPriority,Qe={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ps(){return{controller:new gv,data:new Map,refCount:0}}function wl(e){e.refCount--,e.refCount===0&&yv(vv,function(){e.controller.abort()})}var Cl=null,Ws=0,Mn=0,_n=null;function xv(e,t){if(Cl===null){var a=Cl=[];Ws=0,Mn=eo(),_n={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Ws++,t.then(Of,Of),t}function Of(){if(--Ws===0&&Cl!==null){_n!==null&&(_n.status="fulfilled");var e=Cl;Cl=null,Mn=0,_n=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function bv(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var u=0;u<a.length;u++)(0,a[u])(t)},function(u){for(l.status="rejected",l.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),l}var zf=D.S;D.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&xv(e,t),zf!==null&&zf(e,t)};var ln=$(null);function Is(){var e=ln.current;return e!==null?e:Oe.pooledCache}function Ki(e,t){t===null?Q(ln,ln.current):Q(ln,t.pool)}function Lf(){var e=Is();return e===null?null:{parent:Qe._currentValue,pool:e}}var jl=Error(s(460)),Df=Error(s(474)),Xi=Error(s(542)),eu={then:function(){}};function Mf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ji(){}function _f(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Ji,Ji),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Bf(e),e;default:if(typeof t.status=="string")t.then(Ji,Ji);else{if(e=Oe,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=l}},function(l){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Bf(e),e}throw kl=t,jl}}var kl=null;function Uf(){if(kl===null)throw Error(s(459));var e=kl;return kl=null,e}function Bf(e){if(e===jl||e===Xi)throw Error(s(483))}var Ea=!1;function tu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function au(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ra(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ta(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ee&2)!==0){var u=l.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),l.pending=t,t=$i(e),Rf(e,null,a),t}return Vi(e,l,t,a),$i(e)}function Al(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Ac(e,a)}}function nu(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var u=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var g={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?u=c=g:c=c.next=g,a=a.next}while(a!==null);c===null?u=c=t:c=c.next=t}else u=c=t;a={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var lu=!1;function Ol(){if(lu){var e=_n;if(e!==null)throw e}}function zl(e,t,a,l){lu=!1;var u=e.updateQueue;Ea=!1;var c=u.firstBaseUpdate,g=u.lastBaseUpdate,v=u.shared.pending;if(v!==null){u.shared.pending=null;var N=v,A=N.next;N.next=null,g===null?c=A:g.next=A,g=N;var B=e.alternate;B!==null&&(B=B.updateQueue,v=B.lastBaseUpdate,v!==g&&(v===null?B.firstBaseUpdate=A:v.next=A,B.lastBaseUpdate=N))}if(c!==null){var q=u.baseState;g=0,B=A=N=null,v=c;do{var O=v.lane&-536870913,L=O!==v.lane;if(L?(ye&O)===O:(l&O)===O){O!==0&&O===Mn&&(lu=!0),B!==null&&(B=B.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var re=e,ae=v;O=t;var je=a;switch(ae.tag){case 1:if(re=ae.payload,typeof re=="function"){q=re.call(je,q,O);break e}q=re;break e;case 3:re.flags=re.flags&-65537|128;case 0:if(re=ae.payload,O=typeof re=="function"?re.call(je,q,O):re,O==null)break e;q=y({},q,O);break e;case 2:Ea=!0}}O=v.callback,O!==null&&(e.flags|=64,L&&(e.flags|=8192),L=u.callbacks,L===null?u.callbacks=[O]:L.push(O))}else L={lane:O,tag:v.tag,payload:v.payload,callback:v.callback,next:null},B===null?(A=B=L,N=q):B=B.next=L,g|=O;if(v=v.next,v===null){if(v=u.shared.pending,v===null)break;L=v,v=L.next,L.next=null,u.lastBaseUpdate=L,u.shared.pending=null}}while(!0);B===null&&(N=q),u.baseState=N,u.firstBaseUpdate=A,u.lastBaseUpdate=B,c===null&&(u.shared.lanes=0),La|=g,e.lanes=g,e.memoizedState=q}}function Hf(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Vf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Hf(a[e],t)}var Un=$(null),Fi=$(0);function $f(e,t){e=da,Q(Fi,e),Q(Un,t),da=e|t.baseLanes}function iu(){Q(Fi,da),Q(Un,Un.current)}function ru(){da=Fi.current,K(Un),K(Fi)}var wa=0,ce=null,we=null,$e=null,Pi=!1,Bn=!1,rn=!1,Wi=0,Ll=0,Hn=null,Sv=0;function He(){throw Error(s(321))}function su(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!xt(e[a],t[a]))return!1;return!0}function uu(e,t,a,l,u,c){return wa=c,ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?Rd:Td,rn=!1,c=a(l,u),rn=!1,Bn&&(c=Gf(t,a,l,u)),qf(e),c}function qf(e){D.H=lr;var t=we!==null&&we.next!==null;if(wa=0,$e=we=ce=null,Pi=!1,Ll=0,Hn=null,t)throw Error(s(300));e===null||Fe||(e=e.dependencies,e!==null&&Qi(e)&&(Fe=!0))}function Gf(e,t,a,l){ce=e;var u=0;do{if(Bn&&(Hn=null),Ll=0,Bn=!1,25<=u)throw Error(s(301));if(u+=1,$e=we=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}D.H=jv,c=t(a,l)}while(Bn);return c}function Nv(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?Dl(t):t,e=e.useState()[0],(we!==null?we.memoizedState:null)!==e&&(ce.flags|=1024),t}function ou(){var e=Wi!==0;return Wi=0,e}function cu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function fu(e){if(Pi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Pi=!1}wa=0,$e=we=ce=null,Bn=!1,Ll=Wi=0,Hn=null}function dt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $e===null?ce.memoizedState=$e=e:$e=$e.next=e,$e}function qe(){if(we===null){var e=ce.alternate;e=e!==null?e.memoizedState:null}else e=we.next;var t=$e===null?ce.memoizedState:$e.next;if(t!==null)$e=t,we=e;else{if(e===null)throw ce.alternate===null?Error(s(467)):Error(s(310));we=e,e={memoizedState:we.memoizedState,baseState:we.baseState,baseQueue:we.baseQueue,queue:we.queue,next:null},$e===null?ce.memoizedState=$e=e:$e=$e.next=e}return $e}function du(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Dl(e){var t=Ll;return Ll+=1,Hn===null&&(Hn=[]),e=_f(Hn,e,t),t=ce,($e===null?t.memoizedState:$e.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?Rd:Td),e}function Ii(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Dl(e);if(e.$$typeof===G)return lt(e)}throw Error(s(438,String(e)))}function hu(e){var t=null,a=ce.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=ce.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=du(),ce.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=ie;return t.index++,a}function ra(e,t){return typeof t=="function"?t(e):t}function er(e){var t=qe();return pu(t,we,e)}function pu(e,t,a){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=a;var u=e.baseQueue,c=l.pending;if(c!==null){if(u!==null){var g=u.next;u.next=c.next,c.next=g}t.baseQueue=u=c,l.pending=null}if(c=e.baseState,u===null)e.memoizedState=c;else{t=u.next;var v=g=null,N=null,A=t,B=!1;do{var q=A.lane&-536870913;if(q!==A.lane?(ye&q)===q:(wa&q)===q){var O=A.revertLane;if(O===0)N!==null&&(N=N.next={lane:0,revertLane:0,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),q===Mn&&(B=!0);else if((wa&O)===O){A=A.next,O===Mn&&(B=!0);continue}else q={lane:0,revertLane:A.revertLane,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},N===null?(v=N=q,g=c):N=N.next=q,ce.lanes|=O,La|=O;q=A.action,rn&&a(c,q),c=A.hasEagerState?A.eagerState:a(c,q)}else O={lane:q,revertLane:A.revertLane,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},N===null?(v=N=O,g=c):N=N.next=O,ce.lanes|=q,La|=q;A=A.next}while(A!==null&&A!==t);if(N===null?g=c:N.next=v,!xt(c,e.memoizedState)&&(Fe=!0,B&&(a=_n,a!==null)))throw a;e.memoizedState=c,e.baseState=g,e.baseQueue=N,l.lastRenderedState=c}return u===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function mu(e){var t=qe(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var l=a.dispatch,u=a.pending,c=t.memoizedState;if(u!==null){a.pending=null;var g=u=u.next;do c=e(c,g.action),g=g.next;while(g!==u);xt(c,t.memoizedState)||(Fe=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,l]}function Yf(e,t,a){var l=ce,u=qe(),c=Se;if(c){if(a===void 0)throw Error(s(407));a=a()}else a=t();var g=!xt((we||u).memoizedState,a);g&&(u.memoizedState=a,Fe=!0),u=u.queue;var v=Kf.bind(null,l,u,e);if(Ml(2048,8,v,[e]),u.getSnapshot!==t||g||$e!==null&&$e.memoizedState.tag&1){if(l.flags|=2048,Vn(9,tr(),Zf.bind(null,l,u,a,t),null),Oe===null)throw Error(s(349));c||(wa&124)!==0||Qf(l,t,a)}return a}function Qf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ce.updateQueue,t===null?(t=du(),ce.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Zf(e,t,a,l){t.value=a,t.getSnapshot=l,Xf(t)&&Jf(e)}function Kf(e,t,a){return a(function(){Xf(t)&&Jf(e)})}function Xf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!xt(e,a)}catch{return!0}}function Jf(e){var t=On(e,2);t!==null&&Tt(t,e,2)}function gu(e){var t=dt();if(typeof e=="function"){var a=e;if(e=a(),rn){xa(!0);try{a()}finally{xa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:e},t}function Ff(e,t,a,l){return e.baseState=a,pu(e,we,typeof l=="function"?l:ra)}function Ev(e,t,a,l,u){if(nr(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){c.listeners.push(g)}};D.T!==null?a(!0):c.isTransition=!1,l(c),a=t.pending,a===null?(c.next=t.pending=c,Pf(t,c)):(c.next=a.next,t.pending=a.next=c)}}function Pf(e,t){var a=t.action,l=t.payload,u=e.state;if(t.isTransition){var c=D.T,g={};D.T=g;try{var v=a(u,l),N=D.S;N!==null&&N(g,v),Wf(e,t,v)}catch(A){yu(e,t,A)}finally{D.T=c}}else try{c=a(u,l),Wf(e,t,c)}catch(A){yu(e,t,A)}}function Wf(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){If(e,t,l)},function(l){return yu(e,t,l)}):If(e,t,a)}function If(e,t,a){t.status="fulfilled",t.value=a,ed(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Pf(e,a)))}function yu(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,ed(t),t=t.next;while(t!==l)}e.action=null}function ed(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function td(e,t){return t}function ad(e,t){if(Se){var a=Oe.formState;if(a!==null){e:{var l=ce;if(Se){if(Ue){t:{for(var u=Ue,c=Zt;u.nodeType!==8;){if(!c){u=null;break t}if(u=$t(u.nextSibling),u===null){u=null;break t}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){Ue=$t(u.nextSibling),l=u.data==="F!";break e}}tn(l)}l=!1}l&&(t=a[0])}}return a=dt(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:td,lastRenderedState:t},a.queue=l,a=Sd.bind(null,ce,l),l.dispatch=a,l=gu(!1),c=Nu.bind(null,ce,!1,l.queue),l=dt(),u={state:t,dispatch:null,action:e,pending:null},l.queue=u,a=Ev.bind(null,ce,u,c,a),u.dispatch=a,l.memoizedState=e,[t,a,!1]}function nd(e){var t=qe();return ld(t,we,e)}function ld(e,t,a){if(t=pu(e,t,td)[0],e=er(ra)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Dl(t)}catch(g){throw g===jl?Xi:g}else l=t;t=qe();var u=t.queue,c=u.dispatch;return a!==t.memoizedState&&(ce.flags|=2048,Vn(9,tr(),Rv.bind(null,u,a),null)),[l,c,e]}function Rv(e,t){e.action=t}function id(e){var t=qe(),a=we;if(a!==null)return ld(t,a,e);qe(),t=t.memoizedState,a=qe();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function Vn(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=ce.updateQueue,t===null&&(t=du(),ce.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function tr(){return{destroy:void 0,resource:void 0}}function rd(){return qe().memoizedState}function ar(e,t,a,l){var u=dt();l=l===void 0?null:l,ce.flags|=e,u.memoizedState=Vn(1|t,tr(),a,l)}function Ml(e,t,a,l){var u=qe();l=l===void 0?null:l;var c=u.memoizedState.inst;we!==null&&l!==null&&su(l,we.memoizedState.deps)?u.memoizedState=Vn(t,c,a,l):(ce.flags|=e,u.memoizedState=Vn(1|t,c,a,l))}function sd(e,t){ar(8390656,8,e,t)}function ud(e,t){Ml(2048,8,e,t)}function od(e,t){return Ml(4,2,e,t)}function cd(e,t){return Ml(4,4,e,t)}function fd(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function dd(e,t,a){a=a!=null?a.concat([e]):null,Ml(4,4,fd.bind(null,t,e),a)}function vu(){}function hd(e,t){var a=qe();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&su(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function pd(e,t){var a=qe();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&su(t,l[1]))return l[0];if(l=e(),rn){xa(!0);try{e()}finally{xa(!1)}}return a.memoizedState=[l,t],l}function xu(e,t,a){return a===void 0||(wa&1073741824)!==0?e.memoizedState=t:(e.memoizedState=a,e=yh(),ce.lanes|=e,La|=e,a)}function md(e,t,a,l){return xt(a,t)?a:Un.current!==null?(e=xu(e,a,l),xt(e,t)||(Fe=!0),e):(wa&42)===0?(Fe=!0,e.memoizedState=a):(e=yh(),ce.lanes|=e,La|=e,t)}function gd(e,t,a,l,u){var c=Y.p;Y.p=c!==0&&8>c?c:8;var g=D.T,v={};D.T=v,Nu(e,!1,t,a);try{var N=u(),A=D.S;if(A!==null&&A(v,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var B=bv(N,l);_l(e,t,B,Rt(e))}else _l(e,t,l,Rt(e))}catch(q){_l(e,t,{then:function(){},status:"rejected",reason:q},Rt())}finally{Y.p=c,D.T=g}}function Tv(){}function bu(e,t,a,l){if(e.tag!==5)throw Error(s(476));var u=yd(e).queue;gd(e,u,t,W,a===null?Tv:function(){return vd(e),a(l)})}function yd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:W},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function vd(e){var t=yd(e).next.queue;_l(e,t,{},Rt())}function Su(){return lt(ei)}function xd(){return qe().memoizedState}function bd(){return qe().memoizedState}function wv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Rt();e=Ra(a);var l=Ta(t,e,a);l!==null&&(Tt(l,t,a),Al(l,t,a)),t={cache:Ps()},e.payload=t;return}t=t.return}}function Cv(e,t,a){var l=Rt();a={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},nr(e)?Nd(t,a):(a=$s(e,t,a,l),a!==null&&(Tt(a,e,l),Ed(a,t,l)))}function Sd(e,t,a){var l=Rt();_l(e,t,a,l)}function _l(e,t,a,l){var u={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(nr(e))Nd(t,u);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var g=t.lastRenderedState,v=c(g,a);if(u.hasEagerState=!0,u.eagerState=v,xt(v,g))return Vi(e,t,u,0),Oe===null&&Hi(),!1}catch{}finally{}if(a=$s(e,t,u,l),a!==null)return Tt(a,e,l),Ed(a,t,l),!0}return!1}function Nu(e,t,a,l){if(l={lane:2,revertLane:eo(),action:l,hasEagerState:!1,eagerState:null,next:null},nr(e)){if(t)throw Error(s(479))}else t=$s(e,a,l,2),t!==null&&Tt(t,e,2)}function nr(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function Nd(e,t){Bn=Pi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Ed(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Ac(e,a)}}var lr={readContext:lt,use:Ii,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useLayoutEffect:He,useInsertionEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useSyncExternalStore:He,useId:He,useHostTransitionStatus:He,useFormState:He,useActionState:He,useOptimistic:He,useMemoCache:He,useCacheRefresh:He},Rd={readContext:lt,use:Ii,useCallback:function(e,t){return dt().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:sd,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,ar(4194308,4,fd.bind(null,t,e),a)},useLayoutEffect:function(e,t){return ar(4194308,4,e,t)},useInsertionEffect:function(e,t){ar(4,2,e,t)},useMemo:function(e,t){var a=dt();t=t===void 0?null:t;var l=e();if(rn){xa(!0);try{e()}finally{xa(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=dt();if(a!==void 0){var u=a(t);if(rn){xa(!0);try{a(t)}finally{xa(!1)}}}else u=t;return l.memoizedState=l.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},l.queue=e,e=e.dispatch=Cv.bind(null,ce,e),[l.memoizedState,e]},useRef:function(e){var t=dt();return e={current:e},t.memoizedState=e},useState:function(e){e=gu(e);var t=e.queue,a=Sd.bind(null,ce,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:vu,useDeferredValue:function(e,t){var a=dt();return xu(a,e,t)},useTransition:function(){var e=gu(!1);return e=gd.bind(null,ce,e.queue,!0,!1),dt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=ce,u=dt();if(Se){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),Oe===null)throw Error(s(349));(ye&124)!==0||Qf(l,t,a)}u.memoizedState=a;var c={value:a,getSnapshot:t};return u.queue=c,sd(Kf.bind(null,l,c,e),[e]),l.flags|=2048,Vn(9,tr(),Zf.bind(null,l,c,a,t),null),a},useId:function(){var e=dt(),t=Oe.identifierPrefix;if(Se){var a=na,l=aa;a=(l&~(1<<32-vt(l)-1)).toString(32)+a,t="«"+t+"R"+a,a=Wi++,0<a&&(t+="H"+a.toString(32)),t+="»"}else a=Sv++,t="«"+t+"r"+a.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Su,useFormState:ad,useActionState:ad,useOptimistic:function(e){var t=dt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Nu.bind(null,ce,!0,a),a.dispatch=t,[e,t]},useMemoCache:hu,useCacheRefresh:function(){return dt().memoizedState=wv.bind(null,ce)}},Td={readContext:lt,use:Ii,useCallback:hd,useContext:lt,useEffect:ud,useImperativeHandle:dd,useInsertionEffect:od,useLayoutEffect:cd,useMemo:pd,useReducer:er,useRef:rd,useState:function(){return er(ra)},useDebugValue:vu,useDeferredValue:function(e,t){var a=qe();return md(a,we.memoizedState,e,t)},useTransition:function(){var e=er(ra)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:Dl(e),t]},useSyncExternalStore:Yf,useId:xd,useHostTransitionStatus:Su,useFormState:nd,useActionState:nd,useOptimistic:function(e,t){var a=qe();return Ff(a,we,e,t)},useMemoCache:hu,useCacheRefresh:bd},jv={readContext:lt,use:Ii,useCallback:hd,useContext:lt,useEffect:ud,useImperativeHandle:dd,useInsertionEffect:od,useLayoutEffect:cd,useMemo:pd,useReducer:mu,useRef:rd,useState:function(){return mu(ra)},useDebugValue:vu,useDeferredValue:function(e,t){var a=qe();return we===null?xu(a,e,t):md(a,we.memoizedState,e,t)},useTransition:function(){var e=mu(ra)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:Dl(e),t]},useSyncExternalStore:Yf,useId:xd,useHostTransitionStatus:Su,useFormState:id,useActionState:id,useOptimistic:function(e,t){var a=qe();return we!==null?Ff(a,we,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:hu,useCacheRefresh:bd},$n=null,Ul=0;function ir(e){var t=Ul;return Ul+=1,$n===null&&($n=[]),_f($n,e,t)}function Bl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function rr(e,t){throw t.$$typeof===b?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function wd(e){var t=e._init;return t(e._payload)}function Cd(e){function t(j,C){if(e){var k=j.deletions;k===null?(j.deletions=[C],j.flags|=16):k.push(C)}}function a(j,C){if(!e)return null;for(;C!==null;)t(j,C),C=C.sibling;return null}function l(j){for(var C=new Map;j!==null;)j.key!==null?C.set(j.key,j):C.set(j.index,j),j=j.sibling;return C}function u(j,C){return j=ta(j,C),j.index=0,j.sibling=null,j}function c(j,C,k){return j.index=k,e?(k=j.alternate,k!==null?(k=k.index,k<C?(j.flags|=67108866,C):k):(j.flags|=67108866,C)):(j.flags|=1048576,C)}function g(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function v(j,C,k,V){return C===null||C.tag!==6?(C=Gs(k,j.mode,V),C.return=j,C):(C=u(C,k),C.return=j,C)}function N(j,C,k,V){var J=k.type;return J===E?B(j,C,k.props.children,V,k.key):C!==null&&(C.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===ee&&wd(J)===C.type)?(C=u(C,k.props),Bl(C,k),C.return=j,C):(C=qi(k.type,k.key,k.props,null,j.mode,V),Bl(C,k),C.return=j,C)}function A(j,C,k,V){return C===null||C.tag!==4||C.stateNode.containerInfo!==k.containerInfo||C.stateNode.implementation!==k.implementation?(C=Ys(k,j.mode,V),C.return=j,C):(C=u(C,k.children||[]),C.return=j,C)}function B(j,C,k,V,J){return C===null||C.tag!==7?(C=Pa(k,j.mode,V,J),C.return=j,C):(C=u(C,k),C.return=j,C)}function q(j,C,k){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=Gs(""+C,j.mode,k),C.return=j,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case S:return k=qi(C.type,C.key,C.props,null,j.mode,k),Bl(k,C),k.return=j,k;case w:return C=Ys(C,j.mode,k),C.return=j,C;case ee:var V=C._init;return C=V(C._payload),q(j,C,k)}if(Ye(C)||Ke(C))return C=Pa(C,j.mode,k,null),C.return=j,C;if(typeof C.then=="function")return q(j,ir(C),k);if(C.$$typeof===G)return q(j,Zi(j,C),k);rr(j,C)}return null}function O(j,C,k,V){var J=C!==null?C.key:null;if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return J!==null?null:v(j,C,""+k,V);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case S:return k.key===J?N(j,C,k,V):null;case w:return k.key===J?A(j,C,k,V):null;case ee:return J=k._init,k=J(k._payload),O(j,C,k,V)}if(Ye(k)||Ke(k))return J!==null?null:B(j,C,k,V,null);if(typeof k.then=="function")return O(j,C,ir(k),V);if(k.$$typeof===G)return O(j,C,Zi(j,k),V);rr(j,k)}return null}function L(j,C,k,V,J){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return j=j.get(k)||null,v(C,j,""+V,J);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case S:return j=j.get(V.key===null?k:V.key)||null,N(C,j,V,J);case w:return j=j.get(V.key===null?k:V.key)||null,A(C,j,V,J);case ee:var fe=V._init;return V=fe(V._payload),L(j,C,k,V,J)}if(Ye(V)||Ke(V))return j=j.get(k)||null,B(C,j,V,J,null);if(typeof V.then=="function")return L(j,C,k,ir(V),J);if(V.$$typeof===G)return L(j,C,k,Zi(C,V),J);rr(C,V)}return null}function re(j,C,k,V){for(var J=null,fe=null,P=C,le=C=0,We=null;P!==null&&le<k.length;le++){P.index>le?(We=P,P=null):We=P.sibling;var xe=O(j,P,k[le],V);if(xe===null){P===null&&(P=We);break}e&&P&&xe.alternate===null&&t(j,P),C=c(xe,C,le),fe===null?J=xe:fe.sibling=xe,fe=xe,P=We}if(le===k.length)return a(j,P),Se&&Ia(j,le),J;if(P===null){for(;le<k.length;le++)P=q(j,k[le],V),P!==null&&(C=c(P,C,le),fe===null?J=P:fe.sibling=P,fe=P);return Se&&Ia(j,le),J}for(P=l(P);le<k.length;le++)We=L(P,j,le,k[le],V),We!==null&&(e&&We.alternate!==null&&P.delete(We.key===null?le:We.key),C=c(We,C,le),fe===null?J=We:fe.sibling=We,fe=We);return e&&P.forEach(function(qa){return t(j,qa)}),Se&&Ia(j,le),J}function ae(j,C,k,V){if(k==null)throw Error(s(151));for(var J=null,fe=null,P=C,le=C=0,We=null,xe=k.next();P!==null&&!xe.done;le++,xe=k.next()){P.index>le?(We=P,P=null):We=P.sibling;var qa=O(j,P,xe.value,V);if(qa===null){P===null&&(P=We);break}e&&P&&qa.alternate===null&&t(j,P),C=c(qa,C,le),fe===null?J=qa:fe.sibling=qa,fe=qa,P=We}if(xe.done)return a(j,P),Se&&Ia(j,le),J;if(P===null){for(;!xe.done;le++,xe=k.next())xe=q(j,xe.value,V),xe!==null&&(C=c(xe,C,le),fe===null?J=xe:fe.sibling=xe,fe=xe);return Se&&Ia(j,le),J}for(P=l(P);!xe.done;le++,xe=k.next())xe=L(P,j,le,xe.value,V),xe!==null&&(e&&xe.alternate!==null&&P.delete(xe.key===null?le:xe.key),C=c(xe,C,le),fe===null?J=xe:fe.sibling=xe,fe=xe);return e&&P.forEach(function(k0){return t(j,k0)}),Se&&Ia(j,le),J}function je(j,C,k,V){if(typeof k=="object"&&k!==null&&k.type===E&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case S:e:{for(var J=k.key;C!==null;){if(C.key===J){if(J=k.type,J===E){if(C.tag===7){a(j,C.sibling),V=u(C,k.props.children),V.return=j,j=V;break e}}else if(C.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===ee&&wd(J)===C.type){a(j,C.sibling),V=u(C,k.props),Bl(V,k),V.return=j,j=V;break e}a(j,C);break}else t(j,C);C=C.sibling}k.type===E?(V=Pa(k.props.children,j.mode,V,k.key),V.return=j,j=V):(V=qi(k.type,k.key,k.props,null,j.mode,V),Bl(V,k),V.return=j,j=V)}return g(j);case w:e:{for(J=k.key;C!==null;){if(C.key===J)if(C.tag===4&&C.stateNode.containerInfo===k.containerInfo&&C.stateNode.implementation===k.implementation){a(j,C.sibling),V=u(C,k.children||[]),V.return=j,j=V;break e}else{a(j,C);break}else t(j,C);C=C.sibling}V=Ys(k,j.mode,V),V.return=j,j=V}return g(j);case ee:return J=k._init,k=J(k._payload),je(j,C,k,V)}if(Ye(k))return re(j,C,k,V);if(Ke(k)){if(J=Ke(k),typeof J!="function")throw Error(s(150));return k=J.call(k),ae(j,C,k,V)}if(typeof k.then=="function")return je(j,C,ir(k),V);if(k.$$typeof===G)return je(j,C,Zi(j,k),V);rr(j,k)}return typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint"?(k=""+k,C!==null&&C.tag===6?(a(j,C.sibling),V=u(C,k),V.return=j,j=V):(a(j,C),V=Gs(k,j.mode,V),V.return=j,j=V),g(j)):a(j,C)}return function(j,C,k,V){try{Ul=0;var J=je(j,C,k,V);return $n=null,J}catch(P){if(P===jl||P===Xi)throw P;var fe=bt(29,P,null,j.mode);return fe.lanes=V,fe.return=j,fe}finally{}}}var qn=Cd(!0),jd=Cd(!1),Dt=$(null),Kt=null;function Ca(e){var t=e.alternate;Q(Ze,Ze.current&1),Q(Dt,e),Kt===null&&(t===null||Un.current!==null||t.memoizedState!==null)&&(Kt=e)}function kd(e){if(e.tag===22){if(Q(Ze,Ze.current),Q(Dt,e),Kt===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Kt=e)}}else ja()}function ja(){Q(Ze,Ze.current),Q(Dt,Dt.current)}function sa(e){K(Dt),Kt===e&&(Kt=null),K(Ze)}var Ze=$(0);function sr(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||ho(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Eu(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:y({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Ru={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Rt(),u=Ra(l);u.payload=t,a!=null&&(u.callback=a),t=Ta(e,u,l),t!==null&&(Tt(t,e,l),Al(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Rt(),u=Ra(l);u.tag=1,u.payload=t,a!=null&&(u.callback=a),t=Ta(e,u,l),t!==null&&(Tt(t,e,l),Al(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Rt(),l=Ra(a);l.tag=2,t!=null&&(l.callback=t),t=Ta(e,l,a),t!==null&&(Tt(t,e,a),Al(t,e,a))}};function Ad(e,t,a,l,u,c,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,c,g):t.prototype&&t.prototype.isPureReactComponent?!bl(a,l)||!bl(u,c):!0}function Od(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&Ru.enqueueReplaceState(t,t.state,null)}function sn(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=y({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}var ur=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function zd(e){ur(e)}function Ld(e){console.error(e)}function Dd(e){ur(e)}function or(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Md(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Tu(e,t,a){return a=Ra(a),a.tag=3,a.payload={element:null},a.callback=function(){or(e,t)},a}function _d(e){return e=Ra(e),e.tag=3,e}function Ud(e,t,a,l){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var c=l.value;e.payload=function(){return u(c)},e.callback=function(){Md(t,a,l)}}var g=a.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){Md(t,a,l),typeof u!="function"&&(Da===null?Da=new Set([this]):Da.add(this));var v=l.stack;this.componentDidCatch(l.value,{componentStack:v!==null?v:""})})}function kv(e,t,a,l,u){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Tl(t,a,u,!0),a=Dt.current,a!==null){switch(a.tag){case 13:return Kt===null?Ju():a.alternate===null&&Be===0&&(Be=3),a.flags&=-257,a.flags|=65536,a.lanes=u,l===eu?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Pu(e,l,u)),!1;case 22:return a.flags|=65536,l===eu?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),Pu(e,l,u)),!1}throw Error(s(435,a.tag))}return Pu(e,l,u),Ju(),!1}if(Se)return t=Dt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,l!==Ks&&(e=Error(s(422),{cause:l}),Rl(At(e,a)))):(l!==Ks&&(t=Error(s(423),{cause:l}),Rl(At(t,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,l=At(l,a),u=Tu(e.stateNode,l,u),nu(e,u),Be!==4&&(Be=2)),!1;var c=Error(s(520),{cause:l});if(c=At(c,a),Ql===null?Ql=[c]:Ql.push(c),Be!==4&&(Be=2),t===null)return!0;l=At(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=Tu(a.stateNode,l,e),nu(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Da===null||!Da.has(c))))return a.flags|=65536,u&=-u,a.lanes|=u,u=_d(u),Ud(u,e,a,l),nu(a,u),!1}a=a.return}while(a!==null);return!1}var Bd=Error(s(461)),Fe=!1;function Ie(e,t,a,l){t.child=e===null?jd(t,null,a,l):qn(t,e.child,a,l)}function Hd(e,t,a,l,u){a=a.render;var c=t.ref;if("ref"in l){var g={};for(var v in l)v!=="ref"&&(g[v]=l[v])}else g=l;return nn(t),l=uu(e,t,a,g,c,u),v=ou(),e!==null&&!Fe?(cu(e,t,u),ua(e,t,u)):(Se&&v&&Qs(t),t.flags|=1,Ie(e,t,l,u),t.child)}function Vd(e,t,a,l,u){if(e===null){var c=a.type;return typeof c=="function"&&!qs(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,$d(e,t,c,l,u)):(e=qi(a.type,null,l,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Lu(e,u)){var g=c.memoizedProps;if(a=a.compare,a=a!==null?a:bl,a(g,l)&&e.ref===t.ref)return ua(e,t,u)}return t.flags|=1,e=ta(c,l),e.ref=t.ref,e.return=t,t.child=e}function $d(e,t,a,l,u){if(e!==null){var c=e.memoizedProps;if(bl(c,l)&&e.ref===t.ref)if(Fe=!1,t.pendingProps=l=c,Lu(e,u))(e.flags&131072)!==0&&(Fe=!0);else return t.lanes=e.lanes,ua(e,t,u)}return wu(e,t,a,l,u)}function qd(e,t,a){var l=t.pendingProps,u=l.children,c=e!==null?e.memoizedState:null;if(l.mode==="hidden"){if((t.flags&128)!==0){if(l=c!==null?c.baseLanes|a:a,e!==null){for(u=t.child=e.child,c=0;u!==null;)c=c|u.lanes|u.childLanes,u=u.sibling;t.childLanes=c&~l}else t.childLanes=0,t.child=null;return Gd(e,t,l,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ki(t,c!==null?c.cachePool:null),c!==null?$f(t,c):iu(),kd(t);else return t.lanes=t.childLanes=536870912,Gd(e,t,c!==null?c.baseLanes|a:a,a)}else c!==null?(Ki(t,c.cachePool),$f(t,c),ja(),t.memoizedState=null):(e!==null&&Ki(t,null),iu(),ja());return Ie(e,t,u,a),t.child}function Gd(e,t,a,l){var u=Is();return u=u===null?null:{parent:Qe._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&Ki(t,null),iu(),kd(t),e!==null&&Tl(e,t,l,!0),null}function cr(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function wu(e,t,a,l,u){return nn(t),a=uu(e,t,a,l,void 0,u),l=ou(),e!==null&&!Fe?(cu(e,t,u),ua(e,t,u)):(Se&&l&&Qs(t),t.flags|=1,Ie(e,t,a,u),t.child)}function Yd(e,t,a,l,u,c){return nn(t),t.updateQueue=null,a=Gf(t,l,a,u),qf(e),l=ou(),e!==null&&!Fe?(cu(e,t,c),ua(e,t,c)):(Se&&l&&Qs(t),t.flags|=1,Ie(e,t,a,c),t.child)}function Qd(e,t,a,l,u){if(nn(t),t.stateNode===null){var c=zn,g=a.contextType;typeof g=="object"&&g!==null&&(c=lt(g)),c=new a(l,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Ru,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=l,c.state=t.memoizedState,c.refs={},tu(t),g=a.contextType,c.context=typeof g=="object"&&g!==null?lt(g):zn,c.state=t.memoizedState,g=a.getDerivedStateFromProps,typeof g=="function"&&(Eu(t,a,g,l),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(g=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),g!==c.state&&Ru.enqueueReplaceState(c,c.state,null),zl(t,l,c,u),Ol(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){c=t.stateNode;var v=t.memoizedProps,N=sn(a,v);c.props=N;var A=c.context,B=a.contextType;g=zn,typeof B=="object"&&B!==null&&(g=lt(B));var q=a.getDerivedStateFromProps;B=typeof q=="function"||typeof c.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,B||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(v||A!==g)&&Od(t,c,l,g),Ea=!1;var O=t.memoizedState;c.state=O,zl(t,l,c,u),Ol(),A=t.memoizedState,v||O!==A||Ea?(typeof q=="function"&&(Eu(t,a,q,l),A=t.memoizedState),(N=Ea||Ad(t,a,N,l,O,A,g))?(B||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=A),c.props=l,c.state=A,c.context=g,l=N):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{c=t.stateNode,au(e,t),g=t.memoizedProps,B=sn(a,g),c.props=B,q=t.pendingProps,O=c.context,A=a.contextType,N=zn,typeof A=="object"&&A!==null&&(N=lt(A)),v=a.getDerivedStateFromProps,(A=typeof v=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g!==q||O!==N)&&Od(t,c,l,N),Ea=!1,O=t.memoizedState,c.state=O,zl(t,l,c,u),Ol();var L=t.memoizedState;g!==q||O!==L||Ea||e!==null&&e.dependencies!==null&&Qi(e.dependencies)?(typeof v=="function"&&(Eu(t,a,v,l),L=t.memoizedState),(B=Ea||Ad(t,a,B,l,O,L,N)||e!==null&&e.dependencies!==null&&Qi(e.dependencies))?(A||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,L,N),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,L,N)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=L),c.props=l,c.state=L,c.context=N,l=B):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),l=!1)}return c=l,cr(e,t),l=(t.flags&128)!==0,c||l?(c=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&l?(t.child=qn(t,e.child,null,u),t.child=qn(t,null,a,u)):Ie(e,t,a,u),t.memoizedState=c.state,e=t.child):e=ua(e,t,u),e}function Zd(e,t,a,l){return El(),t.flags|=256,Ie(e,t,a,l),t.child}var Cu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ju(e){return{baseLanes:e,cachePool:Lf()}}function ku(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Mt),e}function Kd(e,t,a){var l=t.pendingProps,u=!1,c=(t.flags&128)!==0,g;if((g=c)||(g=e!==null&&e.memoizedState===null?!1:(Ze.current&2)!==0),g&&(u=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(Se){if(u?Ca(t):ja(),Se){var v=Ue,N;if(N=v){e:{for(N=v,v=Zt;N.nodeType!==8;){if(!v){v=null;break e}if(N=$t(N.nextSibling),N===null){v=null;break e}}v=N}v!==null?(t.memoizedState={dehydrated:v,treeContext:Wa!==null?{id:aa,overflow:na}:null,retryLane:536870912,hydrationErrors:null},N=bt(18,null,null,0),N.stateNode=v,N.return=t,t.child=N,st=t,Ue=null,N=!0):N=!1}N||tn(t)}if(v=t.memoizedState,v!==null&&(v=v.dehydrated,v!==null))return ho(v)?t.lanes=32:t.lanes=536870912,null;sa(t)}return v=l.children,l=l.fallback,u?(ja(),u=t.mode,v=fr({mode:"hidden",children:v},u),l=Pa(l,u,a,null),v.return=t,l.return=t,v.sibling=l,t.child=v,u=t.child,u.memoizedState=ju(a),u.childLanes=ku(e,g,a),t.memoizedState=Cu,l):(Ca(t),Au(t,v))}if(N=e.memoizedState,N!==null&&(v=N.dehydrated,v!==null)){if(c)t.flags&256?(Ca(t),t.flags&=-257,t=Ou(e,t,a)):t.memoizedState!==null?(ja(),t.child=e.child,t.flags|=128,t=null):(ja(),u=l.fallback,v=t.mode,l=fr({mode:"visible",children:l.children},v),u=Pa(u,v,a,null),u.flags|=2,l.return=t,u.return=t,l.sibling=u,t.child=l,qn(t,e.child,null,a),l=t.child,l.memoizedState=ju(a),l.childLanes=ku(e,g,a),t.memoizedState=Cu,t=u);else if(Ca(t),ho(v)){if(g=v.nextSibling&&v.nextSibling.dataset,g)var A=g.dgst;g=A,l=Error(s(419)),l.stack="",l.digest=g,Rl({value:l,source:null,stack:null}),t=Ou(e,t,a)}else if(Fe||Tl(e,t,a,!1),g=(a&e.childLanes)!==0,Fe||g){if(g=Oe,g!==null&&(l=a&-a,l=(l&42)!==0?1:hs(l),l=(l&(g.suspendedLanes|a))!==0?0:l,l!==0&&l!==N.retryLane))throw N.retryLane=l,On(e,l),Tt(g,e,l),Bd;v.data==="$?"||Ju(),t=Ou(e,t,a)}else v.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=N.treeContext,Ue=$t(v.nextSibling),st=t,Se=!0,en=null,Zt=!1,e!==null&&(zt[Lt++]=aa,zt[Lt++]=na,zt[Lt++]=Wa,aa=e.id,na=e.overflow,Wa=t),t=Au(t,l.children),t.flags|=4096);return t}return u?(ja(),u=l.fallback,v=t.mode,N=e.child,A=N.sibling,l=ta(N,{mode:"hidden",children:l.children}),l.subtreeFlags=N.subtreeFlags&65011712,A!==null?u=ta(A,u):(u=Pa(u,v,a,null),u.flags|=2),u.return=t,l.return=t,l.sibling=u,t.child=l,l=u,u=t.child,v=e.child.memoizedState,v===null?v=ju(a):(N=v.cachePool,N!==null?(A=Qe._currentValue,N=N.parent!==A?{parent:A,pool:A}:N):N=Lf(),v={baseLanes:v.baseLanes|a,cachePool:N}),u.memoizedState=v,u.childLanes=ku(e,g,a),t.memoizedState=Cu,l):(Ca(t),a=e.child,e=a.sibling,a=ta(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=a,t.memoizedState=null,a)}function Au(e,t){return t=fr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function fr(e,t){return e=bt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Ou(e,t,a){return qn(t,e.child,null,a),e=Au(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xd(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Js(e.return,t,a)}function zu(e,t,a,l,u){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:u}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=l,c.tail=a,c.tailMode=u)}function Jd(e,t,a){var l=t.pendingProps,u=l.revealOrder,c=l.tail;if(Ie(e,t,l.children,a),l=Ze.current,(l&2)!==0)l=l&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Xd(e,a,t);else if(e.tag===19)Xd(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}switch(Q(Ze,l),u){case"forwards":for(a=t.child,u=null;a!==null;)e=a.alternate,e!==null&&sr(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=t.child,t.child=null):(u=a.sibling,a.sibling=null),zu(t,!1,u,a,c);break;case"backwards":for(a=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&sr(e)===null){t.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}zu(t,!0,a,null,c);break;case"together":zu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ua(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),La|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Tl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=ta(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ta(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Lu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Qi(e)))}function Av(e,t,a){switch(t.tag){case 3:Le(t,t.stateNode.containerInfo),Na(t,Qe,e.memoizedState.cache),El();break;case 27:case 5:us(t);break;case 4:Le(t,t.stateNode.containerInfo);break;case 10:Na(t,t.type,t.memoizedProps.value);break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Ca(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Kd(e,t,a):(Ca(t),e=ua(e,t,a),e!==null?e.sibling:null);Ca(t);break;case 19:var u=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Tl(e,t,a,!1),l=(a&t.childLanes)!==0),u){if(l)return Jd(e,t,a);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),Q(Ze,Ze.current),l)break;return null;case 22:case 23:return t.lanes=0,qd(e,t,a);case 24:Na(t,Qe,e.memoizedState.cache)}return ua(e,t,a)}function Fd(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Fe=!0;else{if(!Lu(e,a)&&(t.flags&128)===0)return Fe=!1,Av(e,t,a);Fe=(e.flags&131072)!==0}else Fe=!1,Se&&(t.flags&1048576)!==0&&wf(t,Yi,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var l=t.elementType,u=l._init;if(l=u(l._payload),t.type=l,typeof l=="function")qs(l)?(e=sn(l,e),t.tag=1,t=Qd(null,t,l,e,a)):(t.tag=0,t=wu(null,t,l,e,a));else{if(l!=null){if(u=l.$$typeof,u===X){t.tag=11,t=Hd(null,t,l,e,a);break e}else if(u===ne){t.tag=14,t=Vd(null,t,l,e,a);break e}}throw t=Ge(l)||l,Error(s(306,t,""))}}return t;case 0:return wu(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,u=sn(l,t.pendingProps),Qd(e,t,l,u,a);case 3:e:{if(Le(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var c=t.memoizedState;u=c.element,au(e,t),zl(t,l,null,a);var g=t.memoizedState;if(l=g.cache,Na(t,Qe,l),l!==c.cache&&Fs(t,[Qe],a,!0),Ol(),l=g.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Zd(e,t,l,a);break e}else if(l!==u){u=At(Error(s(424)),t),Rl(u),t=Zd(e,t,l,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ue=$t(e.firstChild),st=t,Se=!0,en=null,Zt=!0,a=jd(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(El(),l===u){t=ua(e,t,a);break e}Ie(e,t,l,a)}t=t.child}return t;case 26:return cr(e,t),e===null?(a=ep(t.type,null,t.pendingProps,null))?t.memoizedState=a:Se||(a=t.type,e=t.pendingProps,l=Tr(ue.current).createElement(a),l[nt]=t,l[ct]=e,tt(l,a,e),Je(l),t.stateNode=l):t.memoizedState=ep(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return us(t),e===null&&Se&&(l=t.stateNode=Ph(t.type,t.pendingProps,ue.current),st=t,Zt=!0,u=Ue,Ua(t.type)?(po=u,Ue=$t(l.firstChild)):Ue=u),Ie(e,t,t.pendingProps.children,a),cr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Se&&((u=l=Ue)&&(l=l0(l,t.type,t.pendingProps,Zt),l!==null?(t.stateNode=l,st=t,Ue=$t(l.firstChild),Zt=!1,u=!0):u=!1),u||tn(t)),us(t),u=t.type,c=t.pendingProps,g=e!==null?e.memoizedProps:null,l=c.children,oo(u,c)?l=null:g!==null&&oo(u,g)&&(t.flags|=32),t.memoizedState!==null&&(u=uu(e,t,Nv,null,null,a),ei._currentValue=u),cr(e,t),Ie(e,t,l,a),t.child;case 6:return e===null&&Se&&((e=a=Ue)&&(a=i0(a,t.pendingProps,Zt),a!==null?(t.stateNode=a,st=t,Ue=null,e=!0):e=!1),e||tn(t)),null;case 13:return Kd(e,t,a);case 4:return Le(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=qn(t,null,l,a):Ie(e,t,l,a),t.child;case 11:return Hd(e,t,t.type,t.pendingProps,a);case 7:return Ie(e,t,t.pendingProps,a),t.child;case 8:return Ie(e,t,t.pendingProps.children,a),t.child;case 12:return Ie(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,Na(t,t.type,l.value),Ie(e,t,l.children,a),t.child;case 9:return u=t.type._context,l=t.pendingProps.children,nn(t),u=lt(u),l=l(u),t.flags|=1,Ie(e,t,l,a),t.child;case 14:return Vd(e,t,t.type,t.pendingProps,a);case 15:return $d(e,t,t.type,t.pendingProps,a);case 19:return Jd(e,t,a);case 31:return l=t.pendingProps,a=t.mode,l={mode:l.mode,children:l.children},e===null?(a=fr(l,a),a.ref=t.ref,t.child=a,a.return=t,t=a):(a=ta(e.child,l),a.ref=t.ref,t.child=a,a.return=t,t=a),t;case 22:return qd(e,t,a);case 24:return nn(t),l=lt(Qe),e===null?(u=Is(),u===null&&(u=Oe,c=Ps(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=a),u=c),t.memoizedState={parent:l,cache:u},tu(t),Na(t,Qe,u)):((e.lanes&a)!==0&&(au(e,t),zl(t,null,null,a),Ol()),u=e.memoizedState,c=t.memoizedState,u.parent!==l?(u={parent:l,cache:l},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Na(t,Qe,l)):(l=c.cache,Na(t,Qe,l),l!==u.cache&&Fs(t,[Qe],a,!0))),Ie(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function oa(e){e.flags|=4}function Pd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!ip(t)){if(t=Dt.current,t!==null&&((ye&4194048)===ye?Kt!==null:(ye&62914560)!==ye&&(ye&536870912)===0||t!==Kt))throw kl=eu,Df;e.flags|=8192}}function dr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?jc():536870912,e.lanes|=t,Zn|=t)}function Hl(e,t){if(!Se)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function _e(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function Ov(e,t,a){var l=t.pendingProps;switch(Zs(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _e(t),null;case 1:return _e(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ia(Qe),va(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Nl(t)?oa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,kf())),_e(t),null;case 26:return a=t.memoizedState,e===null?(oa(t),a!==null?(_e(t),Pd(t,a)):(_e(t),t.flags&=-16777217)):a?a!==e.memoizedState?(oa(t),_e(t),Pd(t,a)):(_e(t),t.flags&=-16777217):(e.memoizedProps!==l&&oa(t),_e(t),t.flags&=-16777217),null;case 27:Ei(t),a=ue.current;var u=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==l&&oa(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return _e(t),null}e=I.current,Nl(t)?Cf(t):(e=Ph(u,l,a),t.stateNode=e,oa(t))}return _e(t),null;case 5:if(Ei(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&oa(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return _e(t),null}if(e=I.current,Nl(t))Cf(t);else{switch(u=Tr(ue.current),e){case 1:e=u.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=u.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=u.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof l.is=="string"?u.createElement("select",{is:l.is}):u.createElement("select"),l.multiple?e.multiple=!0:l.size&&(e.size=l.size);break;default:e=typeof l.is=="string"?u.createElement(a,{is:l.is}):u.createElement(a)}}e[nt]=t,e[ct]=l;e:for(u=t.child;u!==null;){if(u.tag===5||u.tag===6)e.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)break e;for(;u.sibling===null;){if(u.return===null||u.return===t)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}t.stateNode=e;e:switch(tt(e,a,l),a){case"button":case"input":case"select":case"textarea":e=!!l.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&oa(t)}}return _e(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&oa(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=ue.current,Nl(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,u=st,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}e[nt]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Yh(e.nodeValue,a)),e||tn(t)}else e=Tr(e).createTextNode(l),e[nt]=t,t.stateNode=e}return _e(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Nl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!u)throw Error(s(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(s(317));u[nt]=t}else El(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;_e(t),u=!1}else u=kf(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(sa(t),t):(sa(t),null)}if(sa(t),(t.flags&128)!==0)return t.lanes=a,t;if(a=l!==null,e=e!==null&&e.memoizedState!==null,a){l=t.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool);var c=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==u&&(l.flags|=2048)}return a!==e&&a&&(t.child.flags|=8192),dr(t,t.updateQueue),_e(t),null;case 4:return va(),e===null&&lo(t.stateNode.containerInfo),_e(t),null;case 10:return ia(t.type),_e(t),null;case 19:if(K(Ze),u=t.memoizedState,u===null)return _e(t),null;if(l=(t.flags&128)!==0,c=u.rendering,c===null)if(l)Hl(u,!1);else{if(Be!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=sr(e),c!==null){for(t.flags|=128,Hl(u,!1),e=c.updateQueue,t.updateQueue=e,dr(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Tf(a,e),a=a.sibling;return Q(Ze,Ze.current&1|2),t.child}e=e.sibling}u.tail!==null&&Qt()>mr&&(t.flags|=128,l=!0,Hl(u,!1),t.lanes=4194304)}else{if(!l)if(e=sr(c),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,dr(t,e),Hl(u,!0),u.tail===null&&u.tailMode==="hidden"&&!c.alternate&&!Se)return _e(t),null}else 2*Qt()-u.renderingStartTime>mr&&a!==536870912&&(t.flags|=128,l=!0,Hl(u,!1),t.lanes=4194304);u.isBackwards?(c.sibling=t.child,t.child=c):(e=u.last,e!==null?e.sibling=c:t.child=c,u.last=c)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Qt(),t.sibling=null,e=Ze.current,Q(Ze,l?e&1|2:e&1),t):(_e(t),null);case 22:case 23:return sa(t),ru(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(_e(t),t.subtreeFlags&6&&(t.flags|=8192)):_e(t),a=t.updateQueue,a!==null&&dr(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&K(ln),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ia(Qe),_e(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function zv(e,t){switch(Zs(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ia(Qe),va(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ei(t),null;case 13:if(sa(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));El()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return K(Ze),null;case 4:return va(),null;case 10:return ia(t.type),null;case 22:case 23:return sa(t),ru(),e!==null&&K(ln),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ia(Qe),null;case 25:return null;default:return null}}function Wd(e,t){switch(Zs(t),t.tag){case 3:ia(Qe),va();break;case 26:case 27:case 5:Ei(t);break;case 4:va();break;case 13:sa(t);break;case 19:K(Ze);break;case 10:ia(t.type);break;case 22:case 23:sa(t),ru(),e!==null&&K(ln);break;case 24:ia(Qe)}}function Vl(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var u=l.next;a=u;do{if((a.tag&e)===e){l=void 0;var c=a.create,g=a.inst;l=c(),g.destroy=l}a=a.next}while(a!==u)}}catch(v){ke(t,t.return,v)}}function ka(e,t,a){try{var l=t.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var c=u.next;l=c;do{if((l.tag&e)===e){var g=l.inst,v=g.destroy;if(v!==void 0){g.destroy=void 0,u=t;var N=a,A=v;try{A()}catch(B){ke(u,N,B)}}}l=l.next}while(l!==c)}}catch(B){ke(t,t.return,B)}}function Id(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Vf(t,a)}catch(l){ke(e,e.return,l)}}}function eh(e,t,a){a.props=sn(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){ke(e,t,l)}}function $l(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(u){ke(e,t,u)}}function Xt(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(u){ke(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){ke(e,t,u)}else a.current=null}function th(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(u){ke(e,e.return,u)}}function Du(e,t,a){try{var l=e.stateNode;Iv(l,e.type,a,t),l[ct]=t}catch(u){ke(e,e.return,u)}}function ah(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ua(e.type)||e.tag===4}function Mu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ah(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ua(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function _u(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Rr));else if(l!==4&&(l===27&&Ua(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(_u(e,t,a),e=e.sibling;e!==null;)_u(e,t,a),e=e.sibling}function hr(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Ua(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(hr(e,t,a),e=e.sibling;e!==null;)hr(e,t,a),e=e.sibling}function nh(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);tt(t,l,a),t[nt]=e,t[ct]=a}catch(c){ke(e,e.return,c)}}var ca=!1,Ve=!1,Uu=!1,lh=typeof WeakSet=="function"?WeakSet:Set,Pe=null;function Lv(e,t){if(e=e.containerInfo,so=Or,e=mf(e),Ms(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var u=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var g=0,v=-1,N=-1,A=0,B=0,q=e,O=null;t:for(;;){for(var L;q!==a||u!==0&&q.nodeType!==3||(v=g+u),q!==c||l!==0&&q.nodeType!==3||(N=g+l),q.nodeType===3&&(g+=q.nodeValue.length),(L=q.firstChild)!==null;)O=q,q=L;for(;;){if(q===e)break t;if(O===a&&++A===u&&(v=g),O===c&&++B===l&&(N=g),(L=q.nextSibling)!==null)break;q=O,O=q.parentNode}q=L}a=v===-1||N===-1?null:{start:v,end:N}}else a=null}a=a||{start:0,end:0}}else a=null;for(uo={focusedElem:e,selectionRange:a},Or=!1,Pe=t;Pe!==null;)if(t=Pe,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Pe=e;else for(;Pe!==null;){switch(t=Pe,c=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,u=c.memoizedProps,c=c.memoizedState,l=a.stateNode;try{var re=sn(a.type,u,a.elementType===a.type);e=l.getSnapshotBeforeUpdate(re,c),l.__reactInternalSnapshotBeforeUpdate=e}catch(ae){ke(a,a.return,ae)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)fo(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":fo(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Pe=e;break}Pe=t.return}}function ih(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Aa(e,a),l&4&&Vl(5,a);break;case 1:if(Aa(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(g){ke(a,a.return,g)}else{var u=sn(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){ke(a,a.return,g)}}l&64&&Id(a),l&512&&$l(a,a.return);break;case 3:if(Aa(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Vf(e,t)}catch(g){ke(a,a.return,g)}}break;case 27:t===null&&l&4&&nh(a);case 26:case 5:Aa(e,a),t===null&&l&4&&th(a),l&512&&$l(a,a.return);break;case 12:Aa(e,a);break;case 13:Aa(e,a),l&4&&uh(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=qv.bind(null,a),r0(e,a))));break;case 22:if(l=a.memoizedState!==null||ca,!l){t=t!==null&&t.memoizedState!==null||Ve,u=ca;var c=Ve;ca=l,(Ve=t)&&!c?Oa(e,a,(a.subtreeFlags&8772)!==0):Aa(e,a),ca=u,Ve=c}break;case 30:break;default:Aa(e,a)}}function rh(e){var t=e.alternate;t!==null&&(e.alternate=null,rh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&gs(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var De=null,ht=!1;function fa(e,t,a){for(a=a.child;a!==null;)sh(e,t,a),a=a.sibling}function sh(e,t,a){if(yt&&typeof yt.onCommitFiberUnmount=="function")try{yt.onCommitFiberUnmount(ul,a)}catch{}switch(a.tag){case 26:Ve||Xt(a,t),fa(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ve||Xt(a,t);var l=De,u=ht;Ua(a.type)&&(De=a.stateNode,ht=!1),fa(e,t,a),Fl(a.stateNode),De=l,ht=u;break;case 5:Ve||Xt(a,t);case 6:if(l=De,u=ht,De=null,fa(e,t,a),De=l,ht=u,De!==null)if(ht)try{(De.nodeType===9?De.body:De.nodeName==="HTML"?De.ownerDocument.body:De).removeChild(a.stateNode)}catch(c){ke(a,t,c)}else try{De.removeChild(a.stateNode)}catch(c){ke(a,t,c)}break;case 18:De!==null&&(ht?(e=De,Jh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),li(e)):Jh(De,a.stateNode));break;case 4:l=De,u=ht,De=a.stateNode.containerInfo,ht=!0,fa(e,t,a),De=l,ht=u;break;case 0:case 11:case 14:case 15:Ve||ka(2,a,t),Ve||ka(4,a,t),fa(e,t,a);break;case 1:Ve||(Xt(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&eh(a,t,l)),fa(e,t,a);break;case 21:fa(e,t,a);break;case 22:Ve=(l=Ve)||a.memoizedState!==null,fa(e,t,a),Ve=l;break;default:fa(e,t,a)}}function uh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{li(e)}catch(a){ke(t,t.return,a)}}function Dv(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new lh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new lh),t;default:throw Error(s(435,e.tag))}}function Bu(e,t){var a=Dv(e);t.forEach(function(l){var u=Gv.bind(null,e,l);a.has(l)||(a.add(l),l.then(u,u))})}function St(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var u=a[l],c=e,g=t,v=g;e:for(;v!==null;){switch(v.tag){case 27:if(Ua(v.type)){De=v.stateNode,ht=!1;break e}break;case 5:De=v.stateNode,ht=!1;break e;case 3:case 4:De=v.stateNode.containerInfo,ht=!0;break e}v=v.return}if(De===null)throw Error(s(160));sh(c,g,u),De=null,ht=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)oh(t,e),t=t.sibling}var Vt=null;function oh(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:St(t,e),Nt(e),l&4&&(ka(3,e,e.return),Vl(3,e),ka(5,e,e.return));break;case 1:St(t,e),Nt(e),l&512&&(Ve||a===null||Xt(a,a.return)),l&64&&ca&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var u=Vt;if(St(t,e),Nt(e),l&512&&(Ve||a===null||Xt(a,a.return)),l&4){var c=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,u=u.ownerDocument||u;t:switch(l){case"title":c=u.getElementsByTagName("title")[0],(!c||c[fl]||c[nt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(l),u.head.insertBefore(c,u.querySelector("head > title"))),tt(c,l,a),c[nt]=e,Je(c),l=c;break e;case"link":var g=np("link","href",u).get(l+(a.href||""));if(g){for(var v=0;v<g.length;v++)if(c=g[v],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){g.splice(v,1);break t}}c=u.createElement(l),tt(c,l,a),u.head.appendChild(c);break;case"meta":if(g=np("meta","content",u).get(l+(a.content||""))){for(v=0;v<g.length;v++)if(c=g[v],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){g.splice(v,1);break t}}c=u.createElement(l),tt(c,l,a),u.head.appendChild(c);break;default:throw Error(s(468,l))}c[nt]=e,Je(c),l=c}e.stateNode=l}else lp(u,e.type,e.stateNode);else e.stateNode=ap(u,l,e.memoizedProps);else c!==l?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,l===null?lp(u,e.type,e.stateNode):ap(u,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Du(e,e.memoizedProps,a.memoizedProps)}break;case 27:St(t,e),Nt(e),l&512&&(Ve||a===null||Xt(a,a.return)),a!==null&&l&4&&Du(e,e.memoizedProps,a.memoizedProps);break;case 5:if(St(t,e),Nt(e),l&512&&(Ve||a===null||Xt(a,a.return)),e.flags&32){u=e.stateNode;try{Rn(u,"")}catch(L){ke(e,e.return,L)}}l&4&&e.stateNode!=null&&(u=e.memoizedProps,Du(e,u,a!==null?a.memoizedProps:u)),l&1024&&(Uu=!0);break;case 6:if(St(t,e),Nt(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(L){ke(e,e.return,L)}}break;case 3:if(jr=null,u=Vt,Vt=wr(t.containerInfo),St(t,e),Vt=u,Nt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{li(t.containerInfo)}catch(L){ke(e,e.return,L)}Uu&&(Uu=!1,ch(e));break;case 4:l=Vt,Vt=wr(e.stateNode.containerInfo),St(t,e),Nt(e),Vt=l;break;case 12:St(t,e),Nt(e);break;case 13:St(t,e),Nt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Yu=Qt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Bu(e,l)));break;case 22:u=e.memoizedState!==null;var N=a!==null&&a.memoizedState!==null,A=ca,B=Ve;if(ca=A||u,Ve=B||N,St(t,e),Ve=B,ca=A,Nt(e),l&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(a===null||N||ca||Ve||un(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){N=a=t;try{if(c=N.stateNode,u)g=c.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{v=N.stateNode;var q=N.memoizedProps.style,O=q!=null&&q.hasOwnProperty("display")?q.display:null;v.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(L){ke(N,N.return,L)}}}else if(t.tag===6){if(a===null){N=t;try{N.stateNode.nodeValue=u?"":N.memoizedProps}catch(L){ke(N,N.return,L)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Bu(e,a))));break;case 19:St(t,e),Nt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Bu(e,l)));break;case 30:break;case 21:break;default:St(t,e),Nt(e)}}function Nt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(ah(l)){a=l;break}l=l.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var u=a.stateNode,c=Mu(e);hr(e,c,u);break;case 5:var g=a.stateNode;a.flags&32&&(Rn(g,""),a.flags&=-33);var v=Mu(e);hr(e,v,g);break;case 3:case 4:var N=a.stateNode.containerInfo,A=Mu(e);_u(e,A,N);break;default:throw Error(s(161))}}catch(B){ke(e,e.return,B)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ch(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ch(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Aa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ih(e,t.alternate,t),t=t.sibling}function un(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ka(4,t,t.return),un(t);break;case 1:Xt(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&eh(t,t.return,a),un(t);break;case 27:Fl(t.stateNode);case 26:case 5:Xt(t,t.return),un(t);break;case 22:t.memoizedState===null&&un(t);break;case 30:un(t);break;default:un(t)}e=e.sibling}}function Oa(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,u=e,c=t,g=c.flags;switch(c.tag){case 0:case 11:case 15:Oa(u,c,a),Vl(4,c);break;case 1:if(Oa(u,c,a),l=c,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(A){ke(l,l.return,A)}if(l=c,u=l.updateQueue,u!==null){var v=l.stateNode;try{var N=u.shared.hiddenCallbacks;if(N!==null)for(u.shared.hiddenCallbacks=null,u=0;u<N.length;u++)Hf(N[u],v)}catch(A){ke(l,l.return,A)}}a&&g&64&&Id(c),$l(c,c.return);break;case 27:nh(c);case 26:case 5:Oa(u,c,a),a&&l===null&&g&4&&th(c),$l(c,c.return);break;case 12:Oa(u,c,a);break;case 13:Oa(u,c,a),a&&g&4&&uh(u,c);break;case 22:c.memoizedState===null&&Oa(u,c,a),$l(c,c.return);break;case 30:break;default:Oa(u,c,a)}t=t.sibling}}function Hu(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&wl(a))}function Vu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&wl(e))}function Jt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)fh(e,t,a,l),t=t.sibling}function fh(e,t,a,l){var u=t.flags;switch(t.tag){case 0:case 11:case 15:Jt(e,t,a,l),u&2048&&Vl(9,t);break;case 1:Jt(e,t,a,l);break;case 3:Jt(e,t,a,l),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&wl(e)));break;case 12:if(u&2048){Jt(e,t,a,l),e=t.stateNode;try{var c=t.memoizedProps,g=c.id,v=c.onPostCommit;typeof v=="function"&&v(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(N){ke(t,t.return,N)}}else Jt(e,t,a,l);break;case 13:Jt(e,t,a,l);break;case 23:break;case 22:c=t.stateNode,g=t.alternate,t.memoizedState!==null?c._visibility&2?Jt(e,t,a,l):ql(e,t):c._visibility&2?Jt(e,t,a,l):(c._visibility|=2,Gn(e,t,a,l,(t.subtreeFlags&10256)!==0)),u&2048&&Hu(g,t);break;case 24:Jt(e,t,a,l),u&2048&&Vu(t.alternate,t);break;default:Jt(e,t,a,l)}}function Gn(e,t,a,l,u){for(u=u&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var c=e,g=t,v=a,N=l,A=g.flags;switch(g.tag){case 0:case 11:case 15:Gn(c,g,v,N,u),Vl(8,g);break;case 23:break;case 22:var B=g.stateNode;g.memoizedState!==null?B._visibility&2?Gn(c,g,v,N,u):ql(c,g):(B._visibility|=2,Gn(c,g,v,N,u)),u&&A&2048&&Hu(g.alternate,g);break;case 24:Gn(c,g,v,N,u),u&&A&2048&&Vu(g.alternate,g);break;default:Gn(c,g,v,N,u)}t=t.sibling}}function ql(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,u=l.flags;switch(l.tag){case 22:ql(a,l),u&2048&&Hu(l.alternate,l);break;case 24:ql(a,l),u&2048&&Vu(l.alternate,l);break;default:ql(a,l)}t=t.sibling}}var Gl=8192;function Yn(e){if(e.subtreeFlags&Gl)for(e=e.child;e!==null;)dh(e),e=e.sibling}function dh(e){switch(e.tag){case 26:Yn(e),e.flags&Gl&&e.memoizedState!==null&&x0(Vt,e.memoizedState,e.memoizedProps);break;case 5:Yn(e);break;case 3:case 4:var t=Vt;Vt=wr(e.stateNode.containerInfo),Yn(e),Vt=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Gl,Gl=16777216,Yn(e),Gl=t):Yn(e));break;default:Yn(e)}}function hh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Yl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Pe=l,mh(l,e)}hh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ph(e),e=e.sibling}function ph(e){switch(e.tag){case 0:case 11:case 15:Yl(e),e.flags&2048&&ka(9,e,e.return);break;case 3:Yl(e);break;case 12:Yl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,pr(e)):Yl(e);break;default:Yl(e)}}function pr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Pe=l,mh(l,e)}hh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ka(8,t,t.return),pr(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,pr(t));break;default:pr(t)}e=e.sibling}}function mh(e,t){for(;Pe!==null;){var a=Pe;switch(a.tag){case 0:case 11:case 15:ka(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:wl(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,Pe=l;else e:for(a=e;Pe!==null;){l=Pe;var u=l.sibling,c=l.return;if(rh(l),l===a){Pe=null;break e}if(u!==null){u.return=c,Pe=u;break e}Pe=c}}}var Mv={getCacheForType:function(e){var t=lt(Qe),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a}},_v=typeof WeakMap=="function"?WeakMap:Map,Ee=0,Oe=null,de=null,ye=0,Re=0,Et=null,za=!1,Qn=!1,$u=!1,da=0,Be=0,La=0,on=0,qu=0,Mt=0,Zn=0,Ql=null,pt=null,Gu=!1,Yu=0,mr=1/0,gr=null,Da=null,et=0,Ma=null,Kn=null,Xn=0,Qu=0,Zu=null,gh=null,Zl=0,Ku=null;function Rt(){if((Ee&2)!==0&&ye!==0)return ye&-ye;if(D.T!==null){var e=Mn;return e!==0?e:eo()}return Oc()}function yh(){Mt===0&&(Mt=(ye&536870912)===0||Se?Cc():536870912);var e=Dt.current;return e!==null&&(e.flags|=32),Mt}function Tt(e,t,a){(e===Oe&&(Re===2||Re===9)||e.cancelPendingCommit!==null)&&(Jn(e,0),_a(e,ye,Mt,!1)),cl(e,a),((Ee&2)===0||e!==Oe)&&(e===Oe&&((Ee&2)===0&&(on|=a),Be===4&&_a(e,ye,Mt,!1)),Ft(e))}function vh(e,t,a){if((Ee&6)!==0)throw Error(s(327));var l=!a&&(t&124)===0&&(t&e.expiredLanes)===0||ol(e,t),u=l?Hv(e,t):Fu(e,t,!0),c=l;do{if(u===0){Qn&&!l&&_a(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!Uv(a)){u=Fu(e,t,!1),c=!1;continue}if(u===2){if(c=t,e.errorRecoveryDisabledLanes&c)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var v=e;u=Ql;var N=v.current.memoizedState.isDehydrated;if(N&&(Jn(v,g).flags|=256),g=Fu(v,g,!1),g!==2){if($u&&!N){v.errorRecoveryDisabledLanes|=c,on|=c,u=4;break e}c=pt,pt=u,c!==null&&(pt===null?pt=c:pt.push.apply(pt,c))}u=g}if(c=!1,u!==2)continue}}if(u===1){Jn(e,0),_a(e,t,0,!0);break}e:{switch(l=e,c=u,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:_a(l,t,Mt,!za);break e;case 2:pt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(u=Yu+300-Qt(),10<u)){if(_a(l,t,Mt,!za),Ci(l,0,!0)!==0)break e;l.timeoutHandle=Kh(xh.bind(null,l,a,pt,gr,Gu,t,Mt,on,Zn,za,c,2,-0,0),u);break e}xh(l,a,pt,gr,Gu,t,Mt,on,Zn,za,c,0,-0,0)}}break}while(!0);Ft(e)}function xh(e,t,a,l,u,c,g,v,N,A,B,q,O,L){if(e.timeoutHandle=-1,q=t.subtreeFlags,(q&8192||(q&16785408)===16785408)&&(Il={stylesheets:null,count:0,unsuspend:v0},dh(t),q=b0(),q!==null)){e.cancelPendingCommit=q(wh.bind(null,e,t,c,a,l,u,g,v,N,B,1,O,L)),_a(e,c,g,!A);return}wh(e,t,c,a,l,u,g,v,N)}function Uv(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var u=a[l],c=u.getSnapshot;u=u.value;try{if(!xt(c(),u))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function _a(e,t,a,l){t&=~qu,t&=~on,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var u=t;0<u;){var c=31-vt(u),g=1<<c;l[c]=-1,u&=~g}a!==0&&kc(e,a,t)}function yr(){return(Ee&6)===0?(Kl(0),!1):!0}function Xu(){if(de!==null){if(Re===0)var e=de.return;else e=de,la=an=null,fu(e),$n=null,Ul=0,e=de;for(;e!==null;)Wd(e.alternate,e),e=e.return;de=null}}function Jn(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,t0(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Xu(),Oe=e,de=a=ta(e.current,null),ye=t,Re=0,Et=null,za=!1,Qn=ol(e,t),$u=!1,Zn=Mt=qu=on=La=Be=0,pt=Ql=null,Gu=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var u=31-vt(l),c=1<<u;t|=e[u],l&=~c}return da=t,Hi(),a}function bh(e,t){ce=null,D.H=lr,t===jl||t===Xi?(t=Uf(),Re=3):t===Df?(t=Uf(),Re=4):Re=t===Bd?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Et=t,de===null&&(Be=1,or(e,At(t,e.current)))}function Sh(){var e=D.H;return D.H=lr,e===null?lr:e}function Nh(){var e=D.A;return D.A=Mv,e}function Ju(){Be=4,za||(ye&4194048)!==ye&&Dt.current!==null||(Qn=!0),(La&134217727)===0&&(on&134217727)===0||Oe===null||_a(Oe,ye,Mt,!1)}function Fu(e,t,a){var l=Ee;Ee|=2;var u=Sh(),c=Nh();(Oe!==e||ye!==t)&&(gr=null,Jn(e,t)),t=!1;var g=Be;e:do try{if(Re!==0&&de!==null){var v=de,N=Et;switch(Re){case 8:Xu(),g=6;break e;case 3:case 2:case 9:case 6:Dt.current===null&&(t=!0);var A=Re;if(Re=0,Et=null,Fn(e,v,N,A),a&&Qn){g=0;break e}break;default:A=Re,Re=0,Et=null,Fn(e,v,N,A)}}Bv(),g=Be;break}catch(B){bh(e,B)}while(!0);return t&&e.shellSuspendCounter++,la=an=null,Ee=l,D.H=u,D.A=c,de===null&&(Oe=null,ye=0,Hi()),g}function Bv(){for(;de!==null;)Eh(de)}function Hv(e,t){var a=Ee;Ee|=2;var l=Sh(),u=Nh();Oe!==e||ye!==t?(gr=null,mr=Qt()+500,Jn(e,t)):Qn=ol(e,t);e:do try{if(Re!==0&&de!==null){t=de;var c=Et;t:switch(Re){case 1:Re=0,Et=null,Fn(e,t,c,1);break;case 2:case 9:if(Mf(c)){Re=0,Et=null,Rh(t);break}t=function(){Re!==2&&Re!==9||Oe!==e||(Re=7),Ft(e)},c.then(t,t);break e;case 3:Re=7;break e;case 4:Re=5;break e;case 7:Mf(c)?(Re=0,Et=null,Rh(t)):(Re=0,Et=null,Fn(e,t,c,7));break;case 5:var g=null;switch(de.tag){case 26:g=de.memoizedState;case 5:case 27:var v=de;if(!g||ip(g)){Re=0,Et=null;var N=v.sibling;if(N!==null)de=N;else{var A=v.return;A!==null?(de=A,vr(A)):de=null}break t}}Re=0,Et=null,Fn(e,t,c,5);break;case 6:Re=0,Et=null,Fn(e,t,c,6);break;case 8:Xu(),Be=6;break e;default:throw Error(s(462))}}Vv();break}catch(B){bh(e,B)}while(!0);return la=an=null,D.H=l,D.A=u,Ee=a,de!==null?0:(Oe=null,ye=0,Hi(),Be)}function Vv(){for(;de!==null&&!uy();)Eh(de)}function Eh(e){var t=Fd(e.alternate,e,da);e.memoizedProps=e.pendingProps,t===null?vr(e):de=t}function Rh(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Yd(a,t,t.pendingProps,t.type,void 0,ye);break;case 11:t=Yd(a,t,t.pendingProps,t.type.render,t.ref,ye);break;case 5:fu(t);default:Wd(a,t),t=de=Tf(t,da),t=Fd(a,t,da)}e.memoizedProps=e.pendingProps,t===null?vr(e):de=t}function Fn(e,t,a,l){la=an=null,fu(t),$n=null,Ul=0;var u=t.return;try{if(kv(e,u,t,a,ye)){Be=1,or(e,At(a,e.current)),de=null;return}}catch(c){if(u!==null)throw de=u,c;Be=1,or(e,At(a,e.current)),de=null;return}t.flags&32768?(Se||l===1?e=!0:Qn||(ye&536870912)!==0?e=!1:(za=e=!0,(l===2||l===9||l===3||l===6)&&(l=Dt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Th(t,e)):vr(t)}function vr(e){var t=e;do{if((t.flags&32768)!==0){Th(t,za);return}e=t.return;var a=Ov(t.alternate,t,da);if(a!==null){de=a;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);Be===0&&(Be=5)}function Th(e,t){do{var a=zv(e.alternate,e);if(a!==null){a.flags&=32767,de=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){de=e;return}de=e=a}while(e!==null);Be=6,de=null}function wh(e,t,a,l,u,c,g,v,N){e.cancelPendingCommit=null;do xr();while(et!==0);if((Ee&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=Vs,vy(e,a,c,g,v,N),e===Oe&&(de=Oe=null,ye=0),Kn=t,Ma=e,Xn=a,Qu=c,Zu=u,gh=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Yv(Ri,function(){return Oh(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=D.T,D.T=null,u=Y.p,Y.p=2,g=Ee,Ee|=4;try{Lv(e,t,a)}finally{Ee=g,Y.p=u,D.T=l}}et=1,Ch(),jh(),kh()}}function Ch(){if(et===1){et=0;var e=Ma,t=Kn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null;var l=Y.p;Y.p=2;var u=Ee;Ee|=4;try{oh(t,e);var c=uo,g=mf(e.containerInfo),v=c.focusedElem,N=c.selectionRange;if(g!==v&&v&&v.ownerDocument&&pf(v.ownerDocument.documentElement,v)){if(N!==null&&Ms(v)){var A=N.start,B=N.end;if(B===void 0&&(B=A),"selectionStart"in v)v.selectionStart=A,v.selectionEnd=Math.min(B,v.value.length);else{var q=v.ownerDocument||document,O=q&&q.defaultView||window;if(O.getSelection){var L=O.getSelection(),re=v.textContent.length,ae=Math.min(N.start,re),je=N.end===void 0?ae:Math.min(N.end,re);!L.extend&&ae>je&&(g=je,je=ae,ae=g);var j=hf(v,ae),C=hf(v,je);if(j&&C&&(L.rangeCount!==1||L.anchorNode!==j.node||L.anchorOffset!==j.offset||L.focusNode!==C.node||L.focusOffset!==C.offset)){var k=q.createRange();k.setStart(j.node,j.offset),L.removeAllRanges(),ae>je?(L.addRange(k),L.extend(C.node,C.offset)):(k.setEnd(C.node,C.offset),L.addRange(k))}}}}for(q=[],L=v;L=L.parentNode;)L.nodeType===1&&q.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<q.length;v++){var V=q[v];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}Or=!!so,uo=so=null}finally{Ee=u,Y.p=l,D.T=a}}e.current=t,et=2}}function jh(){if(et===2){et=0;var e=Ma,t=Kn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=D.T,D.T=null;var l=Y.p;Y.p=2;var u=Ee;Ee|=4;try{ih(e,t.alternate,t)}finally{Ee=u,Y.p=l,D.T=a}}et=3}}function kh(){if(et===4||et===3){et=0,oy();var e=Ma,t=Kn,a=Xn,l=gh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?et=5:(et=0,Kn=Ma=null,Ah(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Da=null),ps(a),t=t.stateNode,yt&&typeof yt.onCommitFiberRoot=="function")try{yt.onCommitFiberRoot(ul,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=D.T,u=Y.p,Y.p=2,D.T=null;try{for(var c=e.onRecoverableError,g=0;g<l.length;g++){var v=l[g];c(v.value,{componentStack:v.stack})}}finally{D.T=t,Y.p=u}}(Xn&3)!==0&&xr(),Ft(e),u=e.pendingLanes,(a&4194090)!==0&&(u&42)!==0?e===Ku?Zl++:(Zl=0,Ku=e):Zl=0,Kl(0)}}function Ah(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,wl(t)))}function xr(e){return Ch(),jh(),kh(),Oh()}function Oh(){if(et!==5)return!1;var e=Ma,t=Qu;Qu=0;var a=ps(Xn),l=D.T,u=Y.p;try{Y.p=32>a?32:a,D.T=null,a=Zu,Zu=null;var c=Ma,g=Xn;if(et=0,Kn=Ma=null,Xn=0,(Ee&6)!==0)throw Error(s(331));var v=Ee;if(Ee|=4,ph(c.current),fh(c,c.current,g,a),Ee=v,Kl(0,!1),yt&&typeof yt.onPostCommitFiberRoot=="function")try{yt.onPostCommitFiberRoot(ul,c)}catch{}return!0}finally{Y.p=u,D.T=l,Ah(e,t)}}function zh(e,t,a){t=At(a,t),t=Tu(e.stateNode,t,2),e=Ta(e,t,2),e!==null&&(cl(e,2),Ft(e))}function ke(e,t,a){if(e.tag===3)zh(e,e,a);else for(;t!==null;){if(t.tag===3){zh(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Da===null||!Da.has(l))){e=At(a,e),a=_d(2),l=Ta(t,a,2),l!==null&&(Ud(a,l,t,e),cl(l,2),Ft(l));break}}t=t.return}}function Pu(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new _v;var u=new Set;l.set(t,u)}else u=l.get(t),u===void 0&&(u=new Set,l.set(t,u));u.has(a)||($u=!0,u.add(a),e=$v.bind(null,e,t,a),t.then(e,e))}function $v(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Oe===e&&(ye&a)===a&&(Be===4||Be===3&&(ye&62914560)===ye&&300>Qt()-Yu?(Ee&2)===0&&Jn(e,0):qu|=a,Zn===ye&&(Zn=0)),Ft(e)}function Lh(e,t){t===0&&(t=jc()),e=On(e,t),e!==null&&(cl(e,t),Ft(e))}function qv(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Lh(e,a)}function Gv(e,t){var a=0;switch(e.tag){case 13:var l=e.stateNode,u=e.memoizedState;u!==null&&(a=u.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),Lh(e,a)}function Yv(e,t){return cs(e,t)}var br=null,Pn=null,Wu=!1,Sr=!1,Iu=!1,cn=0;function Ft(e){e!==Pn&&e.next===null&&(Pn===null?br=Pn=e:Pn=Pn.next=e),Sr=!0,Wu||(Wu=!0,Zv())}function Kl(e,t){if(!Iu&&Sr){Iu=!0;do for(var a=!1,l=br;l!==null;){if(e!==0){var u=l.pendingLanes;if(u===0)var c=0;else{var g=l.suspendedLanes,v=l.pingedLanes;c=(1<<31-vt(42|e)+1)-1,c&=u&~(g&~v),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,Uh(l,c))}else c=ye,c=Ci(l,l===Oe?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||ol(l,c)||(a=!0,Uh(l,c));l=l.next}while(a);Iu=!1}}function Qv(){Dh()}function Dh(){Sr=Wu=!1;var e=0;cn!==0&&(e0()&&(e=cn),cn=0);for(var t=Qt(),a=null,l=br;l!==null;){var u=l.next,c=Mh(l,t);c===0?(l.next=null,a===null?br=u:a.next=u,u===null&&(Pn=a)):(a=l,(e!==0||(c&3)!==0)&&(Sr=!0)),l=u}Kl(e)}function Mh(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,u=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var g=31-vt(c),v=1<<g,N=u[g];N===-1?((v&a)===0||(v&l)!==0)&&(u[g]=yy(v,t)):N<=t&&(e.expiredLanes|=v),c&=~v}if(t=Oe,a=ye,a=Ci(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Re===2||Re===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&fs(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||ol(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&fs(l),ps(a)){case 2:case 8:a=Tc;break;case 32:a=Ri;break;case 268435456:a=wc;break;default:a=Ri}return l=_h.bind(null,e),a=cs(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&fs(l),e.callbackPriority=2,e.callbackNode=null,2}function _h(e,t){if(et!==0&&et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(xr()&&e.callbackNode!==a)return null;var l=ye;return l=Ci(e,e===Oe?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(vh(e,l,t),Mh(e,Qt()),e.callbackNode!=null&&e.callbackNode===a?_h.bind(null,e):null)}function Uh(e,t){if(xr())return null;vh(e,t,!0)}function Zv(){a0(function(){(Ee&6)!==0?cs(Rc,Qv):Dh()})}function eo(){return cn===0&&(cn=Cc()),cn}function Bh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:zi(""+e)}function Hh(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Kv(e,t,a,l,u){if(t==="submit"&&a&&a.stateNode===u){var c=Bh((u[ct]||null).action),g=l.submitter;g&&(t=(t=g[ct]||null)?Bh(t.formAction):g.getAttribute("formAction"),t!==null&&(c=t,g=null));var v=new _i("action","action",null,l,u);e.push({event:v,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(cn!==0){var N=g?Hh(u,g):new FormData(u);bu(a,{pending:!0,data:N,method:u.method,action:c},null,N)}}else typeof c=="function"&&(v.preventDefault(),N=g?Hh(u,g):new FormData(u),bu(a,{pending:!0,data:N,method:u.method,action:c},c,N))},currentTarget:u}]})}}for(var to=0;to<Hs.length;to++){var ao=Hs[to],Xv=ao.toLowerCase(),Jv=ao[0].toUpperCase()+ao.slice(1);Ht(Xv,"on"+Jv)}Ht(vf,"onAnimationEnd"),Ht(xf,"onAnimationIteration"),Ht(bf,"onAnimationStart"),Ht("dblclick","onDoubleClick"),Ht("focusin","onFocus"),Ht("focusout","onBlur"),Ht(dv,"onTransitionRun"),Ht(hv,"onTransitionStart"),Ht(pv,"onTransitionCancel"),Ht(Sf,"onTransitionEnd"),Sn("onMouseEnter",["mouseout","mouseover"]),Sn("onMouseLeave",["mouseout","mouseover"]),Sn("onPointerEnter",["pointerout","pointerover"]),Sn("onPointerLeave",["pointerout","pointerover"]),Ka("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ka("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ka("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ka("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ka("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ka("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Fv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Xl));function Vh(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],u=l.event;l=l.listeners;e:{var c=void 0;if(t)for(var g=l.length-1;0<=g;g--){var v=l[g],N=v.instance,A=v.currentTarget;if(v=v.listener,N!==c&&u.isPropagationStopped())break e;c=v,u.currentTarget=A;try{c(u)}catch(B){ur(B)}u.currentTarget=null,c=N}else for(g=0;g<l.length;g++){if(v=l[g],N=v.instance,A=v.currentTarget,v=v.listener,N!==c&&u.isPropagationStopped())break e;c=v,u.currentTarget=A;try{c(u)}catch(B){ur(B)}u.currentTarget=null,c=N}}}}function he(e,t){var a=t[ms];a===void 0&&(a=t[ms]=new Set);var l=e+"__bubble";a.has(l)||($h(t,e,2,!1),a.add(l))}function no(e,t,a){var l=0;t&&(l|=4),$h(a,e,l,t)}var Nr="_reactListening"+Math.random().toString(36).slice(2);function lo(e){if(!e[Nr]){e[Nr]=!0,Lc.forEach(function(a){a!=="selectionchange"&&(Fv.has(a)||no(a,!1,e),no(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Nr]||(t[Nr]=!0,no("selectionchange",!1,t))}}function $h(e,t,a,l){switch(fp(t)){case 2:var u=E0;break;case 8:u=R0;break;default:u=xo}a=u.bind(null,t,a,e),u=void 0,!ws||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),l?u!==void 0?e.addEventListener(t,a,{capture:!0,passive:u}):e.addEventListener(t,a,!0):u!==void 0?e.addEventListener(t,a,{passive:u}):e.addEventListener(t,a,!1)}function io(e,t,a,l,u){var c=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var g=l.tag;if(g===3||g===4){var v=l.stateNode.containerInfo;if(v===u)break;if(g===4)for(g=l.return;g!==null;){var N=g.tag;if((N===3||N===4)&&g.stateNode.containerInfo===u)return;g=g.return}for(;v!==null;){if(g=vn(v),g===null)return;if(N=g.tag,N===5||N===6||N===26||N===27){l=c=g;continue e}v=v.parentNode}}l=l.return}Kc(function(){var A=c,B=Rs(a),q=[];e:{var O=Nf.get(e);if(O!==void 0){var L=_i,re=e;switch(e){case"keypress":if(Di(a)===0)break e;case"keydown":case"keyup":L=Yy;break;case"focusin":re="focus",L=As;break;case"focusout":re="blur",L=As;break;case"beforeblur":case"afterblur":L=As;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=Fc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=zy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=Ky;break;case vf:case xf:case bf:L=My;break;case Sf:L=Jy;break;case"scroll":case"scrollend":L=Ay;break;case"wheel":L=Py;break;case"copy":case"cut":case"paste":L=Uy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=Wc;break;case"toggle":case"beforetoggle":L=Iy}var ae=(t&4)!==0,je=!ae&&(e==="scroll"||e==="scrollend"),j=ae?O!==null?O+"Capture":null:O;ae=[];for(var C=A,k;C!==null;){var V=C;if(k=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||k===null||j===null||(V=hl(C,j),V!=null&&ae.push(Jl(C,V,k))),je)break;C=C.return}0<ae.length&&(O=new L(O,re,null,a,B),q.push({event:O,listeners:ae}))}}if((t&7)===0){e:{if(O=e==="mouseover"||e==="pointerover",L=e==="mouseout"||e==="pointerout",O&&a!==Es&&(re=a.relatedTarget||a.fromElement)&&(vn(re)||re[yn]))break e;if((L||O)&&(O=B.window===B?B:(O=B.ownerDocument)?O.defaultView||O.parentWindow:window,L?(re=a.relatedTarget||a.toElement,L=A,re=re?vn(re):null,re!==null&&(je=f(re),ae=re.tag,re!==je||ae!==5&&ae!==27&&ae!==6)&&(re=null)):(L=null,re=A),L!==re)){if(ae=Fc,V="onMouseLeave",j="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(ae=Wc,V="onPointerLeave",j="onPointerEnter",C="pointer"),je=L==null?O:dl(L),k=re==null?O:dl(re),O=new ae(V,C+"leave",L,a,B),O.target=je,O.relatedTarget=k,V=null,vn(B)===A&&(ae=new ae(j,C+"enter",re,a,B),ae.target=k,ae.relatedTarget=je,V=ae),je=V,L&&re)t:{for(ae=L,j=re,C=0,k=ae;k;k=Wn(k))C++;for(k=0,V=j;V;V=Wn(V))k++;for(;0<C-k;)ae=Wn(ae),C--;for(;0<k-C;)j=Wn(j),k--;for(;C--;){if(ae===j||j!==null&&ae===j.alternate)break t;ae=Wn(ae),j=Wn(j)}ae=null}else ae=null;L!==null&&qh(q,O,L,ae,!1),re!==null&&je!==null&&qh(q,je,re,ae,!0)}}e:{if(O=A?dl(A):window,L=O.nodeName&&O.nodeName.toLowerCase(),L==="select"||L==="input"&&O.type==="file")var J=sf;else if(lf(O))if(uf)J=ov;else{J=sv;var fe=rv}else L=O.nodeName,!L||L.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?A&&Ns(A.elementType)&&(J=sf):J=uv;if(J&&(J=J(e,A))){rf(q,J,a,B);break e}fe&&fe(e,O,A),e==="focusout"&&A&&O.type==="number"&&A.memoizedProps.value!=null&&Ss(O,"number",O.value)}switch(fe=A?dl(A):window,e){case"focusin":(lf(fe)||fe.contentEditable==="true")&&(jn=fe,_s=A,Sl=null);break;case"focusout":Sl=_s=jn=null;break;case"mousedown":Us=!0;break;case"contextmenu":case"mouseup":case"dragend":Us=!1,gf(q,a,B);break;case"selectionchange":if(fv)break;case"keydown":case"keyup":gf(q,a,B)}var P;if(zs)e:{switch(e){case"compositionstart":var le="onCompositionStart";break e;case"compositionend":le="onCompositionEnd";break e;case"compositionupdate":le="onCompositionUpdate";break e}le=void 0}else Cn?af(e,a)&&(le="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(le="onCompositionStart");le&&(Ic&&a.locale!=="ko"&&(Cn||le!=="onCompositionStart"?le==="onCompositionEnd"&&Cn&&(P=Xc()):(Sa=B,Cs="value"in Sa?Sa.value:Sa.textContent,Cn=!0)),fe=Er(A,le),0<fe.length&&(le=new Pc(le,e,null,a,B),q.push({event:le,listeners:fe}),P?le.data=P:(P=nf(a),P!==null&&(le.data=P)))),(P=tv?av(e,a):nv(e,a))&&(le=Er(A,"onBeforeInput"),0<le.length&&(fe=new Pc("onBeforeInput","beforeinput",null,a,B),q.push({event:fe,listeners:le}),fe.data=P)),Kv(q,e,A,a,B)}Vh(q,t)})}function Jl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Er(e,t){for(var a=t+"Capture",l=[];e!==null;){var u=e,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=hl(e,a),u!=null&&l.unshift(Jl(e,u,c)),u=hl(e,t),u!=null&&l.push(Jl(e,u,c))),e.tag===3)return l;e=e.return}return[]}function Wn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function qh(e,t,a,l,u){for(var c=t._reactName,g=[];a!==null&&a!==l;){var v=a,N=v.alternate,A=v.stateNode;if(v=v.tag,N!==null&&N===l)break;v!==5&&v!==26&&v!==27||A===null||(N=A,u?(A=hl(a,c),A!=null&&g.unshift(Jl(a,A,N))):u||(A=hl(a,c),A!=null&&g.push(Jl(a,A,N)))),a=a.return}g.length!==0&&e.push({event:t,listeners:g})}var Pv=/\r\n?/g,Wv=/\u0000|\uFFFD/g;function Gh(e){return(typeof e=="string"?e:""+e).replace(Pv,`
|
|
59
|
-
`).replace(Wv,"")}function Yh(e,t){return t=Gh(t),Gh(e)===t}function Rr(){}function Ce(e,t,a,l,u,c){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Rn(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Rn(e,""+l);break;case"className":ki(e,"class",l);break;case"tabIndex":ki(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ki(e,a,l);break;case"style":Qc(e,l,c);break;case"data":if(t!=="object"){ki(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=zi(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(t!=="input"&&Ce(e,t,"name",u.name,u,null),Ce(e,t,"formEncType",u.formEncType,u,null),Ce(e,t,"formMethod",u.formMethod,u,null),Ce(e,t,"formTarget",u.formTarget,u,null)):(Ce(e,t,"encType",u.encType,u,null),Ce(e,t,"method",u.method,u,null),Ce(e,t,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=zi(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=Rr);break;case"onScroll":l!=null&&he("scroll",e);break;case"onScrollEnd":l!=null&&he("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=zi(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":he("beforetoggle",e),he("toggle",e),ji(e,"popover",l);break;case"xlinkActuate":It(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":It(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":It(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":It(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":It(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":It(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":It(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":It(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":It(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":ji(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=jy.get(a)||a,ji(e,a,l))}}function ro(e,t,a,l,u,c){switch(a){case"style":Qc(e,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Rn(e,l):(typeof l=="number"||typeof l=="bigint")&&Rn(e,""+l);break;case"onScroll":l!=null&&he("scroll",e);break;case"onScrollEnd":l!=null&&he("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Rr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Dc.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),t=a.slice(2,u?a.length-7:void 0),c=e[ct]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,u),typeof l=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,u);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):ji(e,a,l)}}}function tt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":he("error",e),he("load",e);var l=!1,u=!1,c;for(c in a)if(a.hasOwnProperty(c)){var g=a[c];if(g!=null)switch(c){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ce(e,t,c,g,a,null)}}u&&Ce(e,t,"srcSet",a.srcSet,a,null),l&&Ce(e,t,"src",a.src,a,null);return;case"input":he("invalid",e);var v=c=g=u=null,N=null,A=null;for(l in a)if(a.hasOwnProperty(l)){var B=a[l];if(B!=null)switch(l){case"name":u=B;break;case"type":g=B;break;case"checked":N=B;break;case"defaultChecked":A=B;break;case"value":c=B;break;case"defaultValue":v=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(s(137,t));break;default:Ce(e,t,l,B,a,null)}}$c(e,c,v,N,A,g,u,!1),Ai(e);return;case"select":he("invalid",e),l=g=c=null;for(u in a)if(a.hasOwnProperty(u)&&(v=a[u],v!=null))switch(u){case"value":c=v;break;case"defaultValue":g=v;break;case"multiple":l=v;default:Ce(e,t,u,v,a,null)}t=c,a=g,e.multiple=!!l,t!=null?En(e,!!l,t,!1):a!=null&&En(e,!!l,a,!0);return;case"textarea":he("invalid",e),c=u=l=null;for(g in a)if(a.hasOwnProperty(g)&&(v=a[g],v!=null))switch(g){case"value":l=v;break;case"defaultValue":u=v;break;case"children":c=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(s(91));break;default:Ce(e,t,g,v,a,null)}Gc(e,l,u,c),Ai(e);return;case"option":for(N in a)if(a.hasOwnProperty(N)&&(l=a[N],l!=null))switch(N){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ce(e,t,N,l,a,null)}return;case"dialog":he("beforetoggle",e),he("toggle",e),he("cancel",e),he("close",e);break;case"iframe":case"object":he("load",e);break;case"video":case"audio":for(l=0;l<Xl.length;l++)he(Xl[l],e);break;case"image":he("error",e),he("load",e);break;case"details":he("toggle",e);break;case"embed":case"source":case"link":he("error",e),he("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(A in a)if(a.hasOwnProperty(A)&&(l=a[A],l!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ce(e,t,A,l,a,null)}return;default:if(Ns(t)){for(B in a)a.hasOwnProperty(B)&&(l=a[B],l!==void 0&&ro(e,t,B,l,a,void 0));return}}for(v in a)a.hasOwnProperty(v)&&(l=a[v],l!=null&&Ce(e,t,v,l,a,null))}function Iv(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,c=null,g=null,v=null,N=null,A=null,B=null;for(L in a){var q=a[L];if(a.hasOwnProperty(L)&&q!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":N=q;default:l.hasOwnProperty(L)||Ce(e,t,L,null,l,q)}}for(var O in l){var L=l[O];if(q=a[O],l.hasOwnProperty(O)&&(L!=null||q!=null))switch(O){case"type":c=L;break;case"name":u=L;break;case"checked":A=L;break;case"defaultChecked":B=L;break;case"value":g=L;break;case"defaultValue":v=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(s(137,t));break;default:L!==q&&Ce(e,t,O,L,l,q)}}bs(e,g,v,N,A,B,c,u);return;case"select":L=g=v=O=null;for(c in a)if(N=a[c],a.hasOwnProperty(c)&&N!=null)switch(c){case"value":break;case"multiple":L=N;default:l.hasOwnProperty(c)||Ce(e,t,c,null,l,N)}for(u in l)if(c=l[u],N=a[u],l.hasOwnProperty(u)&&(c!=null||N!=null))switch(u){case"value":O=c;break;case"defaultValue":v=c;break;case"multiple":g=c;default:c!==N&&Ce(e,t,u,c,l,N)}t=v,a=g,l=L,O!=null?En(e,!!a,O,!1):!!l!=!!a&&(t!=null?En(e,!!a,t,!0):En(e,!!a,a?[]:"",!1));return;case"textarea":L=O=null;for(v in a)if(u=a[v],a.hasOwnProperty(v)&&u!=null&&!l.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ce(e,t,v,null,l,u)}for(g in l)if(u=l[g],c=a[g],l.hasOwnProperty(g)&&(u!=null||c!=null))switch(g){case"value":O=u;break;case"defaultValue":L=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(s(91));break;default:u!==c&&Ce(e,t,g,u,l,c)}qc(e,O,L);return;case"option":for(var re in a)if(O=a[re],a.hasOwnProperty(re)&&O!=null&&!l.hasOwnProperty(re))switch(re){case"selected":e.selected=!1;break;default:Ce(e,t,re,null,l,O)}for(N in l)if(O=l[N],L=a[N],l.hasOwnProperty(N)&&O!==L&&(O!=null||L!=null))switch(N){case"selected":e.selected=O&&typeof O!="function"&&typeof O!="symbol";break;default:Ce(e,t,N,O,l,L)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ae in a)O=a[ae],a.hasOwnProperty(ae)&&O!=null&&!l.hasOwnProperty(ae)&&Ce(e,t,ae,null,l,O);for(A in l)if(O=l[A],L=a[A],l.hasOwnProperty(A)&&O!==L&&(O!=null||L!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(s(137,t));break;default:Ce(e,t,A,O,l,L)}return;default:if(Ns(t)){for(var je in a)O=a[je],a.hasOwnProperty(je)&&O!==void 0&&!l.hasOwnProperty(je)&&ro(e,t,je,void 0,l,O);for(B in l)O=l[B],L=a[B],!l.hasOwnProperty(B)||O===L||O===void 0&&L===void 0||ro(e,t,B,O,l,L);return}}for(var j in a)O=a[j],a.hasOwnProperty(j)&&O!=null&&!l.hasOwnProperty(j)&&Ce(e,t,j,null,l,O);for(q in l)O=l[q],L=a[q],!l.hasOwnProperty(q)||O===L||O==null&&L==null||Ce(e,t,q,O,l,L)}var so=null,uo=null;function Tr(e){return e.nodeType===9?e:e.ownerDocument}function Qh(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 Zh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function oo(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var co=null;function e0(){var e=window.event;return e&&e.type==="popstate"?e===co?!1:(co=e,!0):(co=null,!1)}var Kh=typeof setTimeout=="function"?setTimeout:void 0,t0=typeof clearTimeout=="function"?clearTimeout:void 0,Xh=typeof Promise=="function"?Promise:void 0,a0=typeof queueMicrotask=="function"?queueMicrotask:typeof Xh<"u"?function(e){return Xh.resolve(null).then(e).catch(n0)}:Kh;function n0(e){setTimeout(function(){throw e})}function Ua(e){return e==="head"}function Jh(e,t){var a=t,l=0,u=0;do{var c=a.nextSibling;if(e.removeChild(a),c&&c.nodeType===8)if(a=c.data,a==="/$"){if(0<l&&8>l){a=l;var g=e.ownerDocument;if(a&1&&Fl(g.documentElement),a&2&&Fl(g.body),a&4)for(a=g.head,Fl(a),g=a.firstChild;g;){var v=g.nextSibling,N=g.nodeName;g[fl]||N==="SCRIPT"||N==="STYLE"||N==="LINK"&&g.rel.toLowerCase()==="stylesheet"||a.removeChild(g),g=v}}if(u===0){e.removeChild(c),li(t);return}u--}else a==="$"||a==="$?"||a==="$!"?u++:l=a.charCodeAt(0)-48;else l=0;a=c}while(a);li(t)}function fo(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":fo(a),gs(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function l0(e,t,a,l){for(;e.nodeType===1;){var u=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[fl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=$t(e.nextSibling),e===null)break}return null}function i0(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=$t(e.nextSibling),e===null))return null;return e}function ho(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function r0(e,t){var a=e.ownerDocument;if(e.data!=="$?"||a.readyState==="complete")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function $t(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var po=null;function Fh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}function Ph(e,t,a){switch(t=Tr(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Fl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);gs(e)}var _t=new Map,Wh=new Set;function wr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ha=Y.d;Y.d={f:s0,r:u0,D:o0,C:c0,L:f0,m:d0,X:p0,S:h0,M:m0};function s0(){var e=ha.f(),t=yr();return e||t}function u0(e){var t=xn(e);t!==null&&t.tag===5&&t.type==="form"?vd(t):ha.r(e)}var In=typeof document>"u"?null:document;function Ih(e,t,a){var l=In;if(l&&typeof t=="string"&&t){var u=kt(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),Wh.has(u)||(Wh.add(u),e={rel:e,crossOrigin:a,href:t},l.querySelector(u)===null&&(t=l.createElement("link"),tt(t,"link",e),Je(t),l.head.appendChild(t)))}}function o0(e){ha.D(e),Ih("dns-prefetch",e,null)}function c0(e,t){ha.C(e,t),Ih("preconnect",e,t)}function f0(e,t,a){ha.L(e,t,a);var l=In;if(l&&e&&t){var u='link[rel="preload"][as="'+kt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+kt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+kt(a.imageSizes)+'"]')):u+='[href="'+kt(e)+'"]';var c=u;switch(t){case"style":c=el(e);break;case"script":c=tl(e)}_t.has(c)||(e=y({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),_t.set(c,e),l.querySelector(u)!==null||t==="style"&&l.querySelector(Pl(c))||t==="script"&&l.querySelector(Wl(c))||(t=l.createElement("link"),tt(t,"link",e),Je(t),l.head.appendChild(t)))}}function d0(e,t){ha.m(e,t);var a=In;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+kt(l)+'"][href="'+kt(e)+'"]',c=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=tl(e)}if(!_t.has(c)&&(e=y({rel:"modulepreload",href:e},t),_t.set(c,e),a.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Wl(c)))return}l=a.createElement("link"),tt(l,"link",e),Je(l),a.head.appendChild(l)}}}function h0(e,t,a){ha.S(e,t,a);var l=In;if(l&&e){var u=bn(l).hoistableStyles,c=el(e);t=t||"default";var g=u.get(c);if(!g){var v={loading:0,preload:null};if(g=l.querySelector(Pl(c)))v.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},a),(a=_t.get(c))&&mo(e,a);var N=g=l.createElement("link");Je(N),tt(N,"link",e),N._p=new Promise(function(A,B){N.onload=A,N.onerror=B}),N.addEventListener("load",function(){v.loading|=1}),N.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Cr(g,t,l)}g={type:"stylesheet",instance:g,count:1,state:v},u.set(c,g)}}}function p0(e,t){ha.X(e,t);var a=In;if(a&&e){var l=bn(a).hoistableScripts,u=tl(e),c=l.get(u);c||(c=a.querySelector(Wl(u)),c||(e=y({src:e,async:!0},t),(t=_t.get(u))&&go(e,t),c=a.createElement("script"),Je(c),tt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(u,c))}}function m0(e,t){ha.M(e,t);var a=In;if(a&&e){var l=bn(a).hoistableScripts,u=tl(e),c=l.get(u);c||(c=a.querySelector(Wl(u)),c||(e=y({src:e,async:!0,type:"module"},t),(t=_t.get(u))&&go(e,t),c=a.createElement("script"),Je(c),tt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(u,c))}}function ep(e,t,a,l){var u=(u=ue.current)?wr(u):null;if(!u)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=el(a.href),a=bn(u).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=el(a.href);var c=bn(u).hoistableStyles,g=c.get(e);if(g||(u=u.ownerDocument||u,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,g),(c=u.querySelector(Pl(e)))&&!c._p&&(g.instance=c,g.state.loading=5),_t.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},_t.set(e,a),c||g0(u,e,a,g.state))),t&&l===null)throw Error(s(528,""));return g}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=tl(a),a=bn(u).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function el(e){return'href="'+kt(e)+'"'}function Pl(e){return'link[rel="stylesheet"]['+e+"]"}function tp(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function g0(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),tt(t,"link",a),Je(t),e.head.appendChild(t))}function tl(e){return'[src="'+kt(e)+'"]'}function Wl(e){return"script[async]"+e}function ap(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+kt(a.href)+'"]');if(l)return t.instance=l,Je(l),l;var u=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Je(l),tt(l,"style",u),Cr(l,a.precedence,e),t.instance=l;case"stylesheet":u=el(a.href);var c=e.querySelector(Pl(u));if(c)return t.state.loading|=4,t.instance=c,Je(c),c;l=tp(a),(u=_t.get(u))&&mo(l,u),c=(e.ownerDocument||e).createElement("link"),Je(c);var g=c;return g._p=new Promise(function(v,N){g.onload=v,g.onerror=N}),tt(c,"link",l),t.state.loading|=4,Cr(c,a.precedence,e),t.instance=c;case"script":return c=tl(a.src),(u=e.querySelector(Wl(c)))?(t.instance=u,Je(u),u):(l=a,(u=_t.get(c))&&(l=y({},a),go(l,u)),e=e.ownerDocument||e,u=e.createElement("script"),Je(u),tt(u,"link",l),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Cr(l,a.precedence,e));return t.instance}function Cr(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,c=u,g=0;g<l.length;g++){var v=l[g];if(v.dataset.precedence===t)c=v;else if(c!==u)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function mo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function go(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var jr=null;function np(e,t,a){if(jr===null){var l=new Map,u=jr=new Map;u.set(a,l)}else u=jr,l=u.get(a),l||(l=new Map,u.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),u=0;u<a.length;u++){var c=a[u];if(!(c[fl]||c[nt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var g=c.getAttribute(t)||"";g=e+g;var v=l.get(g);v?v.push(c):l.set(g,[c])}}return l}function lp(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function y0(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function ip(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Il=null;function v0(){}function x0(e,t,a){if(Il===null)throw Error(s(475));var l=Il;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var u=el(a.href),c=e.querySelector(Pl(u));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=kr.bind(l),e.then(l,l)),t.state.loading|=4,t.instance=c,Je(c);return}c=e.ownerDocument||e,a=tp(a),(u=_t.get(u))&&mo(a,u),c=c.createElement("link"),Je(c);var g=c;g._p=new Promise(function(v,N){g.onload=v,g.onerror=N}),tt(c,"link",a),t.instance=c}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(l.count++,t=kr.bind(l),e.addEventListener("load",t),e.addEventListener("error",t))}}function b0(){if(Il===null)throw Error(s(475));var e=Il;return e.stylesheets&&e.count===0&&yo(e,e.stylesheets),0<e.count?function(t){var a=setTimeout(function(){if(e.stylesheets&&yo(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(a)}}:null}function kr(){if(this.count--,this.count===0){if(this.stylesheets)yo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ar=null;function yo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ar=new Map,t.forEach(S0,e),Ar=null,kr.call(e))}function S0(e,t){if(!(t.state.loading&4)){var a=Ar.get(e);if(a)var l=a.get(null);else{a=new Map,Ar.set(e,a);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var g=u[c];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(a.set(g.dataset.precedence,g),l=g)}l&&a.set(null,l)}u=t.instance,g=u.getAttribute("data-precedence"),c=a.get(g)||l,c===l&&a.set(null,u),a.set(g,u),this.count++,l=kr.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),c?c.parentNode.insertBefore(u,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var ei={$$typeof:G,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function N0(e,t,a,l,u,c,g,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=ds(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ds(0),this.hiddenUpdates=ds(null),this.identifierPrefix=l,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function rp(e,t,a,l,u,c,g,v,N,A,B,q){return e=new N0(e,t,a,g,v,N,A,q),t=1,c===!0&&(t|=24),c=bt(3,null,null,t),e.current=c,c.stateNode=e,t=Ps(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:l,isDehydrated:a,cache:t},tu(c),e}function sp(e){return e?(e=zn,e):zn}function up(e,t,a,l,u,c){u=sp(u),l.context===null?l.context=u:l.pendingContext=u,l=Ra(t),l.payload={element:a},c=c===void 0?null:c,c!==null&&(l.callback=c),a=Ta(e,l,t),a!==null&&(Tt(a,e,t),Al(a,e,t))}function op(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function vo(e,t){op(e,t),(e=e.alternate)&&op(e,t)}function cp(e){if(e.tag===13){var t=On(e,67108864);t!==null&&Tt(t,e,67108864),vo(e,67108864)}}var Or=!0;function E0(e,t,a,l){var u=D.T;D.T=null;var c=Y.p;try{Y.p=2,xo(e,t,a,l)}finally{Y.p=c,D.T=u}}function R0(e,t,a,l){var u=D.T;D.T=null;var c=Y.p;try{Y.p=8,xo(e,t,a,l)}finally{Y.p=c,D.T=u}}function xo(e,t,a,l){if(Or){var u=bo(l);if(u===null)io(e,t,l,zr,a),dp(e,l);else if(w0(u,e,t,a,l))l.stopPropagation();else if(dp(e,l),t&4&&-1<T0.indexOf(e)){for(;u!==null;){var c=xn(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var g=Za(c.pendingLanes);if(g!==0){var v=c;for(v.pendingLanes|=2,v.entangledLanes|=2;g;){var N=1<<31-vt(g);v.entanglements[1]|=N,g&=~N}Ft(c),(Ee&6)===0&&(mr=Qt()+500,Kl(0))}}break;case 13:v=On(c,2),v!==null&&Tt(v,c,2),yr(),vo(c,2)}if(c=bo(l),c===null&&io(e,t,l,zr,a),c===u)break;u=c}u!==null&&l.stopPropagation()}else io(e,t,l,null,a)}}function bo(e){return e=Rs(e),So(e)}var zr=null;function So(e){if(zr=null,e=vn(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=m(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return zr=e,null}function fp(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(cy()){case Rc:return 2;case Tc:return 8;case Ri:case fy:return 32;case wc:return 268435456;default:return 32}default:return 32}}var No=!1,Ba=null,Ha=null,Va=null,ti=new Map,ai=new Map,$a=[],T0="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 dp(e,t){switch(e){case"focusin":case"focusout":Ba=null;break;case"dragenter":case"dragleave":Ha=null;break;case"mouseover":case"mouseout":Va=null;break;case"pointerover":case"pointerout":ti.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ai.delete(t.pointerId)}}function ni(e,t,a,l,u,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:c,targetContainers:[u]},t!==null&&(t=xn(t),t!==null&&cp(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function w0(e,t,a,l,u){switch(t){case"focusin":return Ba=ni(Ba,e,t,a,l,u),!0;case"dragenter":return Ha=ni(Ha,e,t,a,l,u),!0;case"mouseover":return Va=ni(Va,e,t,a,l,u),!0;case"pointerover":var c=u.pointerId;return ti.set(c,ni(ti.get(c)||null,e,t,a,l,u)),!0;case"gotpointercapture":return c=u.pointerId,ai.set(c,ni(ai.get(c)||null,e,t,a,l,u)),!0}return!1}function hp(e){var t=vn(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=m(a),t!==null){e.blockedOn=t,xy(e.priority,function(){if(a.tag===13){var l=Rt();l=hs(l);var u=On(a,l);u!==null&&Tt(u,a,l),vo(a,l)}});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Lr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=bo(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Es=l,a.target.dispatchEvent(l),Es=null}else return t=xn(a),t!==null&&cp(t),e.blockedOn=a,!1;t.shift()}return!0}function pp(e,t,a){Lr(e)&&a.delete(t)}function C0(){No=!1,Ba!==null&&Lr(Ba)&&(Ba=null),Ha!==null&&Lr(Ha)&&(Ha=null),Va!==null&&Lr(Va)&&(Va=null),ti.forEach(pp),ai.forEach(pp)}function Dr(e,t){e.blockedOn===t&&(e.blockedOn=null,No||(No=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,C0)))}var Mr=null;function mp(e){Mr!==e&&(Mr=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Mr===e&&(Mr=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],u=e[t+2];if(typeof l!="function"){if(So(l||a)===null)continue;break}var c=xn(a);c!==null&&(e.splice(t,3),t-=3,bu(c,{pending:!0,data:u,method:a.method,action:l},l,u))}}))}function li(e){function t(N){return Dr(N,e)}Ba!==null&&Dr(Ba,e),Ha!==null&&Dr(Ha,e),Va!==null&&Dr(Va,e),ti.forEach(t),ai.forEach(t);for(var a=0;a<$a.length;a++){var l=$a[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<$a.length&&(a=$a[0],a.blockedOn===null);)hp(a),a.blockedOn===null&&$a.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var u=a[l],c=a[l+1],g=u[ct]||null;if(typeof c=="function")g||mp(a);else if(g){var v=null;if(c&&c.hasAttribute("formAction")){if(u=c,g=c[ct]||null)v=g.formAction;else if(So(u)!==null)continue}else v=g.action;typeof v=="function"?a[l+1]=v:(a.splice(l,3),l-=3),mp(a)}}}function Eo(e){this._internalRoot=e}_r.prototype.render=Eo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,l=Rt();up(a,l,e,t,null,null)},_r.prototype.unmount=Eo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;up(e.current,2,null,e,null,null),yr(),t[yn]=null}};function _r(e){this._internalRoot=e}_r.prototype.unstable_scheduleHydration=function(e){if(e){var t=Oc();e={blockedOn:null,target:e,priority:t};for(var a=0;a<$a.length&&t!==0&&t<$a[a].priority;a++);$a.splice(a,0,e),a===0&&hp(e)}};var gp=n.version;if(gp!=="19.1.0")throw Error(s(527,gp,"19.1.0"));Y.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=p(t),e=e!==null?d(e):null,e=e===null?null:e.stateNode,e};var j0={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ur=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ur.isDisabled&&Ur.supportsFiber)try{ul=Ur.inject(j0),yt=Ur}catch{}}return si.createRoot=function(e,t){if(!o(e))throw Error(s(299));var a=!1,l="",u=zd,c=Ld,g=Dd,v=null;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(v=t.unstable_transitionCallbacks)),t=rp(e,1,!1,null,null,a,l,u,c,g,v,null),e[yn]=t.current,lo(e),new Eo(t)},si.hydrateRoot=function(e,t,a){if(!o(e))throw Error(s(299));var l=!1,u="",c=zd,g=Ld,v=Dd,N=null,A=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(g=a.onCaughtError),a.onRecoverableError!==void 0&&(v=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(N=a.unstable_transitionCallbacks),a.formState!==void 0&&(A=a.formState)),t=rp(e,1,!0,t,a??null,l,u,c,g,v,N,A),t.context=sp(null),a=t.current,l=Rt(),l=hs(l),u=Ra(l),u.callback=null,Ta(a,u,l),a=l,t.current.lanes=a,cl(t,a),Ft(t),e[yn]=t.current,lo(e),new _r(t)},si.version="19.1.0",si}var qp;function VS(){if(qp)return Co.exports;qp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(n){console.error(n)}}return i(),Co.exports=HS(),Co.exports}var $S=VS();const qS=im($S),fm=T.createContext(void 0);fm.Provider;function dm(i,n){const r=T.useContext(fm),s=T.useRef(void 0);T.useEffect(()=>{let o,f;s.current?f=s.current.then(m):f=m(),s.current=f;function m(){return i().then(h=>(o=h??(()=>{}),h),r?h=>r.error(h):void 0)}return()=>{if(o){const h=o();r&&(h==null||h.catch(p=>r.error(p)))}else{const h=f.then(p=>p==null?void 0:p());r&&h.catch(p=>r.error(p))}}},n)}var ui={},Gp;function GS(){if(Gp)return ui;Gp=1,Object.defineProperty(ui,"__esModule",{value:!0}),ui.parse=m,ui.serialize=d;const i=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,n=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,s=/^[\u0020-\u003A\u003D-\u007E]*$/,o=Object.prototype.toString,f=(()=>{const S=function(){};return S.prototype=Object.create(null),S})();function m(S,w){const E=new f,z=S.length;if(z<2)return E;const H=(w==null?void 0:w.decode)||y;let _=0;do{const U=S.indexOf("=",_);if(U===-1)break;const G=S.indexOf(";",_),X=G===-1?z:G;if(U>X){_=S.lastIndexOf(";",U-1)+1;continue}const Z=h(S,_,U),te=p(S,U,Z),ne=S.slice(Z,te);if(E[ne]===void 0){let ee=h(S,U+1,X),F=p(S,X,ee);const ie=H(S.slice(ee,F));E[ne]=ie}_=X+1}while(_<z);return E}function h(S,w,E){do{const z=S.charCodeAt(w);if(z!==32&&z!==9)return w}while(++w<E);return E}function p(S,w,E){for(;w>E;){const z=S.charCodeAt(--w);if(z!==32&&z!==9)return w+1}return E}function d(S,w,E){const z=(E==null?void 0:E.encode)||encodeURIComponent;if(!i.test(S))throw new TypeError(`argument name is invalid: ${S}`);const H=z(w);if(!n.test(H))throw new TypeError(`argument val is invalid: ${w}`);let _=S+"="+H;if(!E)return _;if(E.maxAge!==void 0){if(!Number.isInteger(E.maxAge))throw new TypeError(`option maxAge is invalid: ${E.maxAge}`);_+="; Max-Age="+E.maxAge}if(E.domain){if(!r.test(E.domain))throw new TypeError(`option domain is invalid: ${E.domain}`);_+="; Domain="+E.domain}if(E.path){if(!s.test(E.path))throw new TypeError(`option path is invalid: ${E.path}`);_+="; Path="+E.path}if(E.expires){if(!b(E.expires)||!Number.isFinite(E.expires.valueOf()))throw new TypeError(`option expires is invalid: ${E.expires}`);_+="; Expires="+E.expires.toUTCString()}if(E.httpOnly&&(_+="; HttpOnly"),E.secure&&(_+="; Secure"),E.partitioned&&(_+="; Partitioned"),E.priority)switch(typeof E.priority=="string"?E.priority.toLowerCase():void 0){case"low":_+="; Priority=Low";break;case"medium":_+="; Priority=Medium";break;case"high":_+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${E.priority}`)}if(E.sameSite)switch(typeof E.sameSite=="string"?E.sameSite.toLowerCase():E.sameSite){case!0:case"strict":_+="; SameSite=Strict";break;case"lax":_+="; SameSite=Lax";break;case"none":_+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${E.sameSite}`)}return _}function y(S){if(S.indexOf("%")===-1)return S;try{return decodeURIComponent(S)}catch{return S}}function b(S){return o.call(S)==="[object Date]"}return ui}GS();var Yp="popstate";function YS(i={}){function n(o,f){let{pathname:m="/",search:h="",hash:p=""}=hn(o.location.hash.substring(1));return!m.startsWith("/")&&!m.startsWith(".")&&(m="/"+m),$o("",{pathname:m,search:h,hash:p},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function r(o,f){let m=o.document.querySelector("base"),h="";if(m&&m.getAttribute("href")){let p=o.location.href,d=p.indexOf("#");h=d===-1?p:p.slice(0,d)}return h+"#"+(typeof f=="string"?f:gi(f))}function s(o,f){Ut(o.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(f)})`)}return ZS(n,r,s,i)}function Me(i,n){if(i===!1||i===null||typeof i>"u")throw new Error(n)}function Ut(i,n){if(!i){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function QS(){return Math.random().toString(36).substring(2,10)}function Qp(i,n){return{usr:i.state,key:i.key,idx:n}}function $o(i,n,r=null,s){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof n=="string"?hn(n):n,state:r,key:n&&n.key||s||QS()}}function gi({pathname:i="/",search:n="",hash:r=""}){return n&&n!=="?"&&(i+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(i+=r.charAt(0)==="#"?r:"#"+r),i}function hn(i){let n={};if(i){let r=i.indexOf("#");r>=0&&(n.hash=i.substring(r),i=i.substring(0,r));let s=i.indexOf("?");s>=0&&(n.search=i.substring(s),i=i.substring(0,s)),i&&(n.pathname=i)}return n}function ZS(i,n,r,s={}){let{window:o=document.defaultView,v5Compat:f=!1}=s,m=o.history,h="POP",p=null,d=y();d==null&&(d=0,m.replaceState({...m.state,idx:d},""));function y(){return(m.state||{idx:null}).idx}function b(){h="POP";let H=y(),_=H==null?null:H-d;d=H,p&&p({action:h,location:z.location,delta:_})}function S(H,_){h="PUSH";let U=$o(z.location,H,_);r&&r(U,H),d=y()+1;let G=Qp(U,d),X=z.createHref(U);try{m.pushState(G,"",X)}catch(Z){if(Z instanceof DOMException&&Z.name==="DataCloneError")throw Z;o.location.assign(X)}f&&p&&p({action:h,location:z.location,delta:1})}function w(H,_){h="REPLACE";let U=$o(z.location,H,_);r&&r(U,H),d=y();let G=Qp(U,d),X=z.createHref(U);m.replaceState(G,"",X),f&&p&&p({action:h,location:z.location,delta:0})}function E(H){return KS(H)}let z={get action(){return h},get location(){return i(o,m)},listen(H){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(Yp,b),p=H,()=>{o.removeEventListener(Yp,b),p=null}},createHref(H){return n(o,H)},createURL:E,encodeLocation(H){let _=E(H);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:S,replace:w,go(H){return m.go(H)}};return z}function KS(i,n=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Me(r,"No window.location.(origin|href) available to create URL");let s=typeof i=="string"?i:gi(i);return s=s.replace(/ $/,"%20"),!n&&s.startsWith("//")&&(s=r+s),new URL(s,r)}function hm(i,n,r="/"){return XS(i,n,r,!1)}function XS(i,n,r,s){let o=typeof n=="string"?hn(n):n,f=ya(o.pathname||"/",r);if(f==null)return null;let m=pm(i);JS(m);let h=null;for(let p=0;h==null&&p<m.length;++p){let d=r1(f);h=l1(m[p],d,s)}return h}function pm(i,n=[],r=[],s=""){let o=(f,m,h)=>{let p={relativePath:h===void 0?f.path||"":h,caseSensitive:f.caseSensitive===!0,childrenIndex:m,route:f};p.relativePath.startsWith("/")&&(Me(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 d=ga([s,p.relativePath]),y=r.concat(p);f.children&&f.children.length>0&&(Me(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),pm(f.children,n,y,d)),!(f.path==null&&!f.index)&&n.push({path:d,score:a1(d,f.index),routesMeta:y})};return i.forEach((f,m)=>{var h;if(f.path===""||!((h=f.path)!=null&&h.includes("?")))o(f,m);else for(let p of mm(f.path))o(f,m,p)}),n}function mm(i){let n=i.split("/");if(n.length===0)return[];let[r,...s]=n,o=r.endsWith("?"),f=r.replace(/\?$/,"");if(s.length===0)return o?[f,""]:[f];let m=mm(s.join("/")),h=[];return h.push(...m.map(p=>p===""?f:[f,p].join("/"))),o&&h.push(...m),h.map(p=>i.startsWith("/")&&p===""?"/":p)}function JS(i){i.sort((n,r)=>n.score!==r.score?r.score-n.score:n1(n.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}var FS=/^:[\w-]+$/,PS=3,WS=2,IS=1,e1=10,t1=-2,Zp=i=>i==="*";function a1(i,n){let r=i.split("/"),s=r.length;return r.some(Zp)&&(s+=t1),n&&(s+=WS),r.filter(o=>!Zp(o)).reduce((o,f)=>o+(FS.test(f)?PS:f===""?IS:e1),s)}function n1(i,n){return i.length===n.length&&i.slice(0,-1).every((s,o)=>s===n[o])?i[i.length-1]-n[n.length-1]:0}function l1(i,n,r=!1){let{routesMeta:s}=i,o={},f="/",m=[];for(let h=0;h<s.length;++h){let p=s[h],d=h===s.length-1,y=f==="/"?n:n.slice(f.length)||"/",b=Pr({path:p.relativePath,caseSensitive:p.caseSensitive,end:d},y),S=p.route;if(!b&&d&&r&&!s[s.length-1].route.index&&(b=Pr({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},y)),!b)return null;Object.assign(o,b.params),m.push({params:o,pathname:ga([f,b.pathname]),pathnameBase:c1(ga([f,b.pathnameBase])),route:S}),b.pathnameBase!=="/"&&(f=ga([f,b.pathnameBase]))}return m}function Pr(i,n){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[r,s]=i1(i.path,i.caseSensitive,i.end),o=n.match(r);if(!o)return null;let f=o[0],m=f.replace(/(.)\/+$/,"$1"),h=o.slice(1);return{params:s.reduce((d,{paramName:y,isOptional:b},S)=>{if(y==="*"){let E=h[S]||"";m=f.slice(0,f.length-E.length).replace(/(.)\/+$/,"$1")}const w=h[S];return b&&!w?d[y]=void 0:d[y]=(w||"").replace(/%2F/g,"/"),d},{}),pathname:f,pathnameBase:m,pattern:i}}function i1(i,n=!1,r=!0){Ut(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let s=[],o="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,h,p)=>(s.push({paramName:h,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return i.endsWith("*")?(s.push({paramName:"*"}),o+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":i!==""&&i!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,n?void 0:"i"),s]}function r1(i){try{return i.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return Ut(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),i}}function ya(i,n){if(n==="/")return i;if(!i.toLowerCase().startsWith(n.toLowerCase()))return null;let r=n.endsWith("/")?n.length-1:n.length,s=i.charAt(r);return s&&s!=="/"?null:i.slice(r)||"/"}function s1(i,n="/"){let{pathname:r,search:s="",hash:o=""}=typeof i=="string"?hn(i):i;return{pathname:r?r.startsWith("/")?r:u1(r,n):n,search:f1(s),hash:d1(o)}}function u1(i,n){let r=n.replace(/\/+$/,"").split("/");return i.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Oo(i,n,r,s){return`Cannot include a '${i}' character in a manually specified \`to.${n}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function o1(i){return i.filter((n,r)=>r===0||n.route.path&&n.route.path.length>0)}function Fo(i){let n=o1(i);return n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase)}function Po(i,n,r,s=!1){let o;typeof i=="string"?o=hn(i):(o={...i},Me(!o.pathname||!o.pathname.includes("?"),Oo("?","pathname","search",o)),Me(!o.pathname||!o.pathname.includes("#"),Oo("#","pathname","hash",o)),Me(!o.search||!o.search.includes("#"),Oo("#","search","hash",o)));let f=i===""||o.pathname==="",m=f?"/":o.pathname,h;if(m==null)h=r;else{let b=n.length-1;if(!s&&m.startsWith("..")){let S=m.split("/");for(;S[0]==="..";)S.shift(),b-=1;o.pathname=S.join("/")}h=b>=0?n[b]:"/"}let p=s1(o,h),d=m&&m!=="/"&&m.endsWith("/"),y=(f||m===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(d||y)&&(p.pathname+="/"),p}var ga=i=>i.join("/").replace(/\/\/+/g,"/"),c1=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),f1=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,d1=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i;function h1(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}var gm=["POST","PUT","PATCH","DELETE"];new Set(gm);var p1=["GET",...gm];new Set(p1);var ll=T.createContext(null);ll.displayName="DataRouter";var as=T.createContext(null);as.displayName="DataRouterState";var ym=T.createContext({isTransitioning:!1});ym.displayName="ViewTransition";var m1=T.createContext(new Map);m1.displayName="Fetchers";var g1=T.createContext(null);g1.displayName="Await";var qt=T.createContext(null);qt.displayName="Navigation";var xi=T.createContext(null);xi.displayName="Location";var Gt=T.createContext({outlet:null,matches:[],isDataRoute:!1});Gt.displayName="Route";var Wo=T.createContext(null);Wo.displayName="RouteError";function y1(i,{relative:n}={}){Me(il(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:s}=T.useContext(qt),{hash:o,pathname:f,search:m}=bi(i,{relative:n}),h=f;return r!=="/"&&(h=f==="/"?r:ga([r,f])),s.createHref({pathname:h,search:m,hash:o})}function il(){return T.useContext(xi)!=null}function Ya(){return Me(il(),"useLocation() may be used only in the context of a <Router> component."),T.useContext(xi).location}var vm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function xm(i){T.useContext(qt).static||T.useLayoutEffect(i)}function rl(){let{isDataRoute:i}=T.useContext(Gt);return i?O1():v1()}function v1(){Me(il(),"useNavigate() may be used only in the context of a <Router> component.");let i=T.useContext(ll),{basename:n,navigator:r}=T.useContext(qt),{matches:s}=T.useContext(Gt),{pathname:o}=Ya(),f=JSON.stringify(Fo(s)),m=T.useRef(!1);return xm(()=>{m.current=!0}),T.useCallback((p,d={})=>{if(Ut(m.current,vm),!m.current)return;if(typeof p=="number"){r.go(p);return}let y=Po(p,JSON.parse(f),o,d.relative==="path");i==null&&n!=="/"&&(y.pathname=y.pathname==="/"?n:ga([n,y.pathname])),(d.replace?r.replace:r.push)(y,d.state,d)},[n,r,f,o,i])}T.createContext(null);function x1(){let{matches:i}=T.useContext(Gt),n=i[i.length-1];return n?n.params:{}}function bi(i,{relative:n}={}){let{matches:r}=T.useContext(Gt),{pathname:s}=Ya(),o=JSON.stringify(Fo(r));return T.useMemo(()=>Po(i,JSON.parse(o),s,n==="path"),[i,o,s,n])}function b1(i,n){return bm(i,n)}function bm(i,n,r,s){var _;Me(il(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=T.useContext(qt),{matches:f}=T.useContext(Gt),m=f[f.length-1],h=m?m.params:{},p=m?m.pathname:"/",d=m?m.pathnameBase:"/",y=m&&m.route;{let U=y&&y.path||"";Sm(p,!y||U.endsWith("*")||U.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${U}">) 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.
|
|
53
|
+
`+ms+e+_c}var gs=!1;function ys(e,t){if(!e||gs)return"";gs=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch(k){var z=k}Reflect.construct(e,[],V)}else{try{V.call()}catch(k){z=k}e.call(V.prototype)}}else{try{throw Error()}catch(k){z=k}(V=e())&&typeof V.catch=="function"&&V.catch(function(){})}}catch(k){if(k&&z&&typeof k.stack=="string")return[k.stack,z.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),g=c[0],S=c[1];if(g&&S){var N=g.split(`
|
|
54
|
+
`),O=S.split(`
|
|
55
|
+
`);for(u=l=0;l<N.length&&!N[l].includes("DetermineComponentFrameRoot");)l++;for(;u<O.length&&!O[u].includes("DetermineComponentFrameRoot");)u++;if(l===N.length||u===O.length)for(l=N.length-1,u=O.length-1;1<=l&&0<=u&&N[l]!==O[u];)u--;for(;1<=l&&0<=u;l--,u--)if(N[l]!==O[u]){if(l!==1||u!==1)do if(l--,u--,0>u||N[l]!==O[u]){var M=`
|
|
56
|
+
`+N[l].replace(" at new "," at ");return e.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",e.displayName)),M}while(1<=l&&0<=u);break}}}finally{gs=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ia(a):""}function jy(e,t){switch(e.tag){case 26:case 27:case 5:return Ia(e.type);case 16:return Ia("Lazy");case 13:return e.child!==t&&t!==null?Ia("Suspense Fallback"):Ia("Suspense");case 19:return Ia("SuspenseList");case 0:case 15:return ys(e.type,!1);case 11:return ys(e.type.render,!1);case 1:return ys(e.type,!0);case 31:return Ia("Activity");default:return""}}function Dc(e){try{var t="",a=null;do t+=jy(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
|
|
57
|
+
Error generating stack: `+l.message+`
|
|
58
|
+
`+l.stack}}var vs=Object.prototype.hasOwnProperty,Ss=i.unstable_scheduleCallback,bs=i.unstable_cancelCallback,wy=i.unstable_shouldYield,Ay=i.unstable_requestPaint,xt=i.unstable_now,Oy=i.unstable_getCurrentPriorityLevel,Mc=i.unstable_ImmediatePriority,Uc=i.unstable_UserBlockingPriority,wi=i.unstable_NormalPriority,zy=i.unstable_LowPriority,Bc=i.unstable_IdlePriority,ky=i.log,Ly=i.unstable_setDisableYieldValue,gl=null,Nt=null;function Ca(e){if(typeof ky=="function"&&Ly(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(gl,e)}catch{}}var Et=Math.clz32?Math.clz32:My,_y=Math.log,Dy=Math.LN2;function My(e){return e>>>=0,e===0?32:31-(_y(e)/Dy|0)|0}var Ai=256,Oi=262144,zi=4194304;function en(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:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;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 ki(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var u=0,c=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var S=l&134217727;return S!==0?(l=S&~c,l!==0?u=en(l):(g&=S,g!==0?u=en(g):a||(a=S&~e,a!==0&&(u=en(a))))):(S=l&~c,S!==0?u=en(S):g!==0?u=en(g):a||(a=l&~e,a!==0&&(u=en(a)))),u===0?0:t!==0&&t!==u&&(t&c)===0&&(c=u&-u,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:u}function yl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Uy(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 Hc(){var e=zi;return zi<<=1,(zi&62914560)===0&&(zi=4194304),e}function xs(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function vl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function By(e,t,a,l,u,c){var g=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var S=e.entanglements,N=e.expirationTimes,O=e.hiddenUpdates;for(a=g&~a;0<a;){var M=31-Et(a),V=1<<M;S[M]=0,N[M]=-1;var z=O[M];if(z!==null)for(O[M]=null,M=0;M<z.length;M++){var k=z[M];k!==null&&(k.lane&=-536870913)}a&=~V}l!==0&&Vc(e,l,0),c!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=c&~(g&~t))}function Vc(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Et(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function $c(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-Et(a),u=1<<l;u&t|e[l]&t&&(e[l]|=t),a&=~u}}function qc(e,t){var a=t&-t;return a=(a&42)!==0?1:Ns(a),(a&(e.suspendedLanes|t))!==0?0:a}function Ns(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 Es(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Gc(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:Ap(e.type))}function Yc(e,t){var a=Y.p;try{return Y.p=e,t()}finally{Y.p=a}}var Ra=Math.random().toString(36).slice(2),tt="__reactFiber$"+Ra,ht="__reactProps$"+Ra,Cn="__reactContainer$"+Ra,Ts="__reactEvents$"+Ra,Hy="__reactListeners$"+Ra,Vy="__reactHandles$"+Ra,Qc="__reactResources$"+Ra,Sl="__reactMarker$"+Ra;function Cs(e){delete e[tt],delete e[ht],delete e[Ts],delete e[Hy],delete e[Vy]}function Rn(e){var t=e[tt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Cn]||a[tt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=hp(e);e!==null;){if(a=e[tt])return a;e=hp(e)}return t}e=a,a=e.parentNode}return null}function jn(e){if(e=e[tt]||e[Cn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function bl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function wn(e){var t=e[Qc];return t||(t=e[Qc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ie(e){e[Sl]=!0}var Kc=new Set,Zc={};function tn(e,t){An(e,t),An(e+"Capture",t)}function An(e,t){for(Zc[e]=t,e=0;e<t.length;e++)Kc.add(t[e])}var $y=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]*$"),Xc={},Jc={};function qy(e){return vs.call(Jc,e)?!0:vs.call(Xc,e)?!1:$y.test(e)?Jc[e]=!0:(Xc[e]=!0,!1)}function Li(e,t,a){if(qy(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function _i(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function ia(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function Lt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gy(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var u=l.get,c=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(g){a=""+g,c.call(this,g)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(g){a=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Rs(e){if(!e._valueTracker){var t=Fc(e)?"checked":"value";e._valueTracker=Gy(e,t,""+e[t])}}function Wc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=Fc(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function Di(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 Yy=/[\n"\\]/g;function _t(e){return e.replace(Yy,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function js(e,t,a,l,u,c,g,S){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Lt(t)):e.value!==""+Lt(t)&&(e.value=""+Lt(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?ws(e,g,Lt(t)):a!=null?ws(e,g,Lt(a)):l!=null&&e.removeAttribute("value"),u==null&&c!=null&&(e.defaultChecked=!!c),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+Lt(S):e.removeAttribute("name")}function Pc(e,t,a,l,u,c,g,S){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Rs(e);return}a=a!=null?""+Lt(a):"",t=t!=null?""+Lt(t):a,S||t===e.value||(e.value=t),e.defaultValue=t}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=S?e.checked:!!l,e.defaultChecked=!!l,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g),Rs(e)}function ws(e,t,a){t==="number"&&Di(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function On(e,t,a,l){if(e=e.options,t){t={};for(var u=0;u<a.length;u++)t["$"+a[u]]=!0;for(a=0;a<e.length;a++)u=t.hasOwnProperty("$"+e[a].value),e[a].selected!==u&&(e[a].selected=u),u&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Lt(a),t=null,u=0;u<e.length;u++){if(e[u].value===a){e[u].selected=!0,l&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Ic(e,t,a){if(t!=null&&(t=""+Lt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Lt(a):""}function ef(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(s(92));if(qe(l)){if(1<l.length)throw Error(s(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Lt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),Rs(e)}function zn(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Qy=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 tf(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||Qy.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function af(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var u in t)l=t[u],t.hasOwnProperty(u)&&a[u]!==l&&tf(e,u,l)}else for(var c in t)t.hasOwnProperty(c)&&tf(e,c,t[c])}function As(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 Ky=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"]]),Zy=/^[\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 Mi(e){return Zy.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ra(){}var Os=null;function zs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var kn=null,Ln=null;function nf(e){var t=jn(e);if(t&&(e=t.stateNode)){var a=e[ht]||null;e:switch(e=t.stateNode,t.type){case"input":if(js(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+_t(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var u=l[ht]||null;if(!u)throw Error(s(90));js(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&Wc(l)}break e;case"textarea":Ic(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&On(e,!!a.multiple,t,!1)}}}var ks=!1;function lf(e,t,a){if(ks)return e(t,a);ks=!0;try{var l=e(t);return l}finally{if(ks=!1,(kn!==null||Ln!==null)&&(Er(),kn&&(t=kn,e=Ln,Ln=kn=null,nf(t),e)))for(t=0;t<e.length;t++)nf(e[t])}}function xl(e,t){var a=e.stateNode;if(a===null)return null;var l=a[ht]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var sa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ls=!1;if(sa)try{var Nl={};Object.defineProperty(Nl,"passive",{get:function(){Ls=!0}}),window.addEventListener("test",Nl,Nl),window.removeEventListener("test",Nl,Nl)}catch{Ls=!1}var ja=null,_s=null,Ui=null;function rf(){if(Ui)return Ui;var e,t=_s,a=t.length,l,u="value"in ja?ja.value:ja.textContent,c=u.length;for(e=0;e<a&&t[e]===u[e];e++);var g=a-e;for(l=1;l<=g&&t[a-l]===u[c-l];l++);return Ui=u.slice(e,1<l?1-l:void 0)}function Bi(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 Hi(){return!0}function sf(){return!1}function pt(e){function t(a,l,u,c,g){this._reactName=a,this._targetInst=u,this.type=l,this.nativeEvent=c,this.target=g,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(a=e[S],this[S]=a?a(c):c[S]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Hi:sf,this.isPropagationStopped=sf,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Hi)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Hi)},persist:function(){},isPersistent:Hi}),t}var an={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vi=pt(an),El=v({},an,{view:0,detail:0}),Xy=pt(El),Ds,Ms,Tl,$i=v({},El,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bs,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Tl&&(Tl&&e.type==="mousemove"?(Ds=e.screenX-Tl.screenX,Ms=e.screenY-Tl.screenY):Ms=Ds=0,Tl=e),Ds)},movementY:function(e){return"movementY"in e?e.movementY:Ms}}),uf=pt($i),Jy=v({},$i,{dataTransfer:0}),Fy=pt(Jy),Wy=v({},El,{relatedTarget:0}),Us=pt(Wy),Py=v({},an,{animationName:0,elapsedTime:0,pseudoElement:0}),Iy=pt(Py),ev=v({},an,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),tv=pt(ev),av=v({},an,{data:0}),of=pt(av),nv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},lv={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"},iv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=iv[e])?!!t[e]:!1}function Bs(){return rv}var sv=v({},El,{key:function(e){if(e.key){var t=nv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Bi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?lv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bs,charCode:function(e){return e.type==="keypress"?Bi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Bi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),uv=pt(sv),ov=v({},$i,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cf=pt(ov),cv=v({},El,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bs}),fv=pt(cv),dv=v({},an,{propertyName:0,elapsedTime:0,pseudoElement:0}),hv=pt(dv),pv=v({},$i,{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}),mv=pt(pv),gv=v({},an,{newState:0,oldState:0}),yv=pt(gv),vv=[9,13,27,32],Hs=sa&&"CompositionEvent"in window,Cl=null;sa&&"documentMode"in document&&(Cl=document.documentMode);var Sv=sa&&"TextEvent"in window&&!Cl,ff=sa&&(!Hs||Cl&&8<Cl&&11>=Cl),df=" ",hf=!1;function pf(e,t){switch(e){case"keyup":return vv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _n=!1;function bv(e,t){switch(e){case"compositionend":return mf(t);case"keypress":return t.which!==32?null:(hf=!0,df);case"textInput":return e=t.data,e===df&&hf?null:e;default:return null}}function xv(e,t){if(_n)return e==="compositionend"||!Hs&&pf(e,t)?(e=rf(),Ui=_s=ja=null,_n=!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 ff&&t.locale!=="ko"?null:t.data;default:return null}}var Nv={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 gf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Nv[e.type]:t==="textarea"}function yf(e,t,a,l){kn?Ln?Ln.push(l):Ln=[l]:kn=l,t=Or(t,"onChange"),0<t.length&&(a=new Vi("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Rl=null,jl=null;function Ev(e){Ih(e,0)}function qi(e){var t=bl(e);if(Wc(t))return e}function vf(e,t){if(e==="change")return t}var Sf=!1;if(sa){var Vs;if(sa){var $s="oninput"in document;if(!$s){var bf=document.createElement("div");bf.setAttribute("oninput","return;"),$s=typeof bf.oninput=="function"}Vs=$s}else Vs=!1;Sf=Vs&&(!document.documentMode||9<document.documentMode)}function xf(){Rl&&(Rl.detachEvent("onpropertychange",Nf),jl=Rl=null)}function Nf(e){if(e.propertyName==="value"&&qi(jl)){var t=[];yf(t,jl,e,zs(e)),lf(Ev,t)}}function Tv(e,t,a){e==="focusin"?(xf(),Rl=t,jl=a,Rl.attachEvent("onpropertychange",Nf)):e==="focusout"&&xf()}function Cv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return qi(jl)}function Rv(e,t){if(e==="click")return qi(t)}function jv(e,t){if(e==="input"||e==="change")return qi(t)}function wv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tt=typeof Object.is=="function"?Object.is:wv;function wl(e,t){if(Tt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var u=a[l];if(!vs.call(t,u)||!Tt(e[u],t[u]))return!1}return!0}function Ef(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Tf(e,t){var a=Ef(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Ef(a)}}function Cf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Di(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Di(e.document)}return t}function qs(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 Av=sa&&"documentMode"in document&&11>=document.documentMode,Dn=null,Gs=null,Al=null,Ys=!1;function jf(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Ys||Dn==null||Dn!==Di(l)||(l=Dn,"selectionStart"in l&&qs(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Al&&wl(Al,l)||(Al=l,l=Or(Gs,"onSelect"),0<l.length&&(t=new Vi("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Dn)))}function nn(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Mn={animationend:nn("Animation","AnimationEnd"),animationiteration:nn("Animation","AnimationIteration"),animationstart:nn("Animation","AnimationStart"),transitionrun:nn("Transition","TransitionRun"),transitionstart:nn("Transition","TransitionStart"),transitioncancel:nn("Transition","TransitionCancel"),transitionend:nn("Transition","TransitionEnd")},Qs={},wf={};sa&&(wf=document.createElement("div").style,"AnimationEvent"in window||(delete Mn.animationend.animation,delete Mn.animationiteration.animation,delete Mn.animationstart.animation),"TransitionEvent"in window||delete Mn.transitionend.transition);function ln(e){if(Qs[e])return Qs[e];if(!Mn[e])return e;var t=Mn[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in wf)return Qs[e]=t[a];return e}var Af=ln("animationend"),Of=ln("animationiteration"),zf=ln("animationstart"),Ov=ln("transitionrun"),zv=ln("transitionstart"),kv=ln("transitioncancel"),kf=ln("transitionend"),Lf=new Map,Ks="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(" ");Ks.push("scrollEnd");function Qt(e,t){Lf.set(e,t),tn(t,[e])}var Gi=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)},Dt=[],Un=0,Zs=0;function Yi(){for(var e=Un,t=Zs=Un=0;t<e;){var a=Dt[t];Dt[t++]=null;var l=Dt[t];Dt[t++]=null;var u=Dt[t];Dt[t++]=null;var c=Dt[t];if(Dt[t++]=null,l!==null&&u!==null){var g=l.pending;g===null?u.next=u:(u.next=g.next,g.next=u),l.pending=u}c!==0&&_f(a,u,c)}}function Qi(e,t,a,l){Dt[Un++]=e,Dt[Un++]=t,Dt[Un++]=a,Dt[Un++]=l,Zs|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Xs(e,t,a,l){return Qi(e,t,a,l),Ki(e)}function rn(e,t){return Qi(e,null,null,t),Ki(e)}function _f(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var u=!1,c=e.return;c!==null;)c.childLanes|=a,l=c.alternate,l!==null&&(l.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(u=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,u&&t!==null&&(u=31-Et(a),e=c.hiddenUpdates,l=e[u],l===null?e[u]=[t]:l.push(t),t.lane=a|536870912),c):null}function Ki(e){if(50<Wl)throw Wl=0,no=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Bn={};function Lv(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ct(e,t,a,l){return new Lv(e,t,a,l)}function Js(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ua(e,t){var a=e.alternate;return a===null?(a=Ct(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Df(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Zi(e,t,a,l,u,c){var g=0;if(l=e,typeof e=="function")Js(e)&&(g=1);else if(typeof e=="string")g=B0(e,a,X.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case W:return e=Ct(31,a,t,u),e.elementType=W,e.lanes=c,e;case L:return sn(a.children,u,c,t);case H:g=8,u|=24;break;case $:return e=Ct(12,a,t,u|2),e.elementType=$,e.lanes=c,e;case I:return e=Ct(13,a,t,u),e.elementType=I,e.lanes=c,e;case re:return e=Ct(19,a,t,u),e.elementType=re,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case q:g=10;break e;case G:g=9;break e;case Z:g=11;break e;case K:g=14;break e;case ae:g=16,l=null;break e}g=29,a=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=Ct(g,a,t,u),t.elementType=e,t.type=l,t.lanes=c,t}function sn(e,t,a,l){return e=Ct(7,e,l,t),e.lanes=a,e}function Fs(e,t,a){return e=Ct(6,e,null,t),e.lanes=a,e}function Mf(e){var t=Ct(18,null,null,0);return t.stateNode=e,t}function Ws(e,t,a){return t=Ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Uf=new WeakMap;function Mt(e,t){if(typeof e=="object"&&e!==null){var a=Uf.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Dc(t)},Uf.set(e,t),t)}return{value:e,source:t,stack:Dc(t)}}var Hn=[],Vn=0,Xi=null,Ol=0,Ut=[],Bt=0,wa=null,It=1,ea="";function oa(e,t){Hn[Vn++]=Ol,Hn[Vn++]=Xi,Xi=e,Ol=t}function Bf(e,t,a){Ut[Bt++]=It,Ut[Bt++]=ea,Ut[Bt++]=wa,wa=e;var l=It;e=ea;var u=32-Et(l)-1;l&=~(1<<u),a+=1;var c=32-Et(t)+u;if(30<c){var g=u-u%5;c=(l&(1<<g)-1).toString(32),l>>=g,u-=g,It=1<<32-Et(t)+u|a<<u|l,ea=c+e}else It=1<<c|a<<u|l,ea=e}function Ps(e){e.return!==null&&(oa(e,1),Bf(e,1,0))}function Is(e){for(;e===Xi;)Xi=Hn[--Vn],Hn[Vn]=null,Ol=Hn[--Vn],Hn[Vn]=null;for(;e===wa;)wa=Ut[--Bt],Ut[Bt]=null,ea=Ut[--Bt],Ut[Bt]=null,It=Ut[--Bt],Ut[Bt]=null}function Hf(e,t){Ut[Bt++]=It,Ut[Bt++]=ea,Ut[Bt++]=wa,It=t.id,ea=t.overflow,wa=e}var at=null,De=null,me=!1,Aa=null,Ht=!1,eu=Error(s(519));function Oa(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw zl(Mt(t,e)),eu}function Vf(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[tt]=e,t[ht]=l,a){case"dialog":de("cancel",t),de("close",t);break;case"iframe":case"object":case"embed":de("load",t);break;case"video":case"audio":for(a=0;a<Il.length;a++)de(Il[a],t);break;case"source":de("error",t);break;case"img":case"image":case"link":de("error",t),de("load",t);break;case"details":de("toggle",t);break;case"input":de("invalid",t),Pc(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":de("invalid",t);break;case"textarea":de("invalid",t),ef(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||np(t.textContent,a)?(l.popover!=null&&(de("beforetoggle",t),de("toggle",t)),l.onScroll!=null&&de("scroll",t),l.onScrollEnd!=null&&de("scrollend",t),l.onClick!=null&&(t.onclick=ra),t=!0):t=!1,t||Oa(e,!0)}function $f(e){for(at=e.return;at;)switch(at.tag){case 5:case 31:case 13:Ht=!1;return;case 27:case 3:Ht=!0;return;default:at=at.return}}function $n(e){if(e!==at)return!1;if(!me)return $f(e),me=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||So(e.type,e.memoizedProps)),a=!a),a&&De&&Oa(e),$f(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));De=dp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));De=dp(e)}else t===27?(t=De,Ya(e.type)?(e=To,To=null,De=e):De=t):De=at?$t(e.stateNode.nextSibling):null;return!0}function un(){De=at=null,me=!1}function tu(){var e=Aa;return e!==null&&(vt===null?vt=e:vt.push.apply(vt,e),Aa=null),e}function zl(e){Aa===null?Aa=[e]:Aa.push(e)}var au=E(null),on=null,ca=null;function za(e,t,a){Q(au,t._currentValue),t._currentValue=a}function fa(e){e._currentValue=au.current,U(au)}function nu(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function lu(e,t,a,l){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var c=u.dependencies;if(c!==null){var g=u.child;c=c.firstContext;e:for(;c!==null;){var S=c;c=u;for(var N=0;N<t.length;N++)if(S.context===t[N]){c.lanes|=a,S=c.alternate,S!==null&&(S.lanes|=a),nu(c.return,a,e),l||(g=null);break e}c=S.next}}else if(u.tag===18){if(g=u.return,g===null)throw Error(s(341));g.lanes|=a,c=g.alternate,c!==null&&(c.lanes|=a),nu(g,a,e),g=null}else g=u.child;if(g!==null)g.return=u;else for(g=u;g!==null;){if(g===e){g=null;break}if(u=g.sibling,u!==null){u.return=g.return,g=u;break}g=g.return}u=g}}function qn(e,t,a,l){e=null;for(var u=t,c=!1;u!==null;){if(!c){if((u.flags&524288)!==0)c=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var g=u.alternate;if(g===null)throw Error(s(387));if(g=g.memoizedProps,g!==null){var S=u.type;Tt(u.pendingProps.value,g.value)||(e!==null?e.push(S):e=[S])}}else if(u===Ce.current){if(g=u.alternate,g===null)throw Error(s(387));g.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(li):e=[li])}u=u.return}e!==null&&lu(t,e,a,l),t.flags|=262144}function Ji(e){for(e=e.firstContext;e!==null;){if(!Tt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function cn(e){on=e,ca=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function nt(e){return qf(on,e)}function Fi(e,t){return on===null&&cn(e),qf(e,t)}function qf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ca===null){if(e===null)throw Error(s(308));ca=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ca=ca.next=t;return a}var _v=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Dv=i.unstable_scheduleCallback,Mv=i.unstable_NormalPriority,Xe={$$typeof:q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function iu(){return{controller:new _v,data:new Map,refCount:0}}function kl(e){e.refCount--,e.refCount===0&&Dv(Mv,function(){e.controller.abort()})}var Ll=null,ru=0,Gn=0,Yn=null;function Uv(e,t){if(Ll===null){var a=Ll=[];ru=0,Gn=oo(),Yn={status:"pending",value:void 0,then:function(l){a.push(l)}}}return ru++,t.then(Gf,Gf),t}function Gf(){if(--ru===0&&Ll!==null){Yn!==null&&(Yn.status="fulfilled");var e=Ll;Ll=null,Gn=0,Yn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Bv(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var u=0;u<a.length;u++)(0,a[u])(t)},function(u){for(l.status="rejected",l.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),l}var Yf=_.S;_.S=function(e,t){jh=xt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Uv(e,t),Yf!==null&&Yf(e,t)};var fn=E(null);function su(){var e=fn.current;return e!==null?e:Le.pooledCache}function Wi(e,t){t===null?Q(fn,fn.current):Q(fn,t.pool)}function Qf(){var e=su();return e===null?null:{parent:Xe._currentValue,pool:e}}var Qn=Error(s(460)),uu=Error(s(474)),Pi=Error(s(542)),Ii={then:function(){}};function Kf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Zf(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ra,ra),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Jf(e),e;default:if(typeof t.status=="string")t.then(ra,ra);else{if(e=Le,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=l}},function(l){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Jf(e),e}throw hn=t,Qn}}function dn(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(hn=a,Qn):a}}var hn=null;function Xf(){if(hn===null)throw Error(s(459));var e=hn;return hn=null,e}function Jf(e){if(e===Qn||e===Pi)throw Error(s(483))}var Kn=null,_l=0;function er(e){var t=_l;return _l+=1,Kn===null&&(Kn=[]),Zf(Kn,e,t)}function Dl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function tr(e,t){throw t.$$typeof===x?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Ff(e){function t(w,C){if(e){var A=w.deletions;A===null?(w.deletions=[C],w.flags|=16):A.push(C)}}function a(w,C){if(!e)return null;for(;C!==null;)t(w,C),C=C.sibling;return null}function l(w){for(var C=new Map;w!==null;)w.key!==null?C.set(w.key,w):C.set(w.index,w),w=w.sibling;return C}function u(w,C){return w=ua(w,C),w.index=0,w.sibling=null,w}function c(w,C,A){return w.index=A,e?(A=w.alternate,A!==null?(A=A.index,A<C?(w.flags|=67108866,C):A):(w.flags|=67108866,C)):(w.flags|=1048576,C)}function g(w){return e&&w.alternate===null&&(w.flags|=67108866),w}function S(w,C,A,B){return C===null||C.tag!==6?(C=Fs(A,w.mode,B),C.return=w,C):(C=u(C,A),C.return=w,C)}function N(w,C,A,B){var P=A.type;return P===L?M(w,C,A.props.children,B,A.key):C!==null&&(C.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===ae&&dn(P)===C.type)?(C=u(C,A.props),Dl(C,A),C.return=w,C):(C=Zi(A.type,A.key,A.props,null,w.mode,B),Dl(C,A),C.return=w,C)}function O(w,C,A,B){return C===null||C.tag!==4||C.stateNode.containerInfo!==A.containerInfo||C.stateNode.implementation!==A.implementation?(C=Ws(A,w.mode,B),C.return=w,C):(C=u(C,A.children||[]),C.return=w,C)}function M(w,C,A,B,P){return C===null||C.tag!==7?(C=sn(A,w.mode,B,P),C.return=w,C):(C=u(C,A),C.return=w,C)}function V(w,C,A){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=Fs(""+C,w.mode,A),C.return=w,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case R:return A=Zi(C.type,C.key,C.props,null,w.mode,A),Dl(A,C),A.return=w,A;case j:return C=Ws(C,w.mode,A),C.return=w,C;case ae:return C=dn(C),V(w,C,A)}if(qe(C)||$e(C))return C=sn(C,w.mode,A,null),C.return=w,C;if(typeof C.then=="function")return V(w,er(C),A);if(C.$$typeof===q)return V(w,Fi(w,C),A);tr(w,C)}return null}function z(w,C,A,B){var P=C!==null?C.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return P!==null?null:S(w,C,""+A,B);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case R:return A.key===P?N(w,C,A,B):null;case j:return A.key===P?O(w,C,A,B):null;case ae:return A=dn(A),z(w,C,A,B)}if(qe(A)||$e(A))return P!==null?null:M(w,C,A,B,null);if(typeof A.then=="function")return z(w,C,er(A),B);if(A.$$typeof===q)return z(w,C,Fi(w,A),B);tr(w,A)}return null}function k(w,C,A,B,P){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return w=w.get(A)||null,S(C,w,""+B,P);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case R:return w=w.get(B.key===null?A:B.key)||null,N(C,w,B,P);case j:return w=w.get(B.key===null?A:B.key)||null,O(C,w,B,P);case ae:return B=dn(B),k(w,C,A,B,P)}if(qe(B)||$e(B))return w=w.get(A)||null,M(C,w,B,P,null);if(typeof B.then=="function")return k(w,C,A,er(B),P);if(B.$$typeof===q)return k(w,C,A,Fi(C,B),P);tr(C,B)}return null}function J(w,C,A,B){for(var P=null,ve=null,F=C,oe=C=0,pe=null;F!==null&&oe<A.length;oe++){F.index>oe?(pe=F,F=null):pe=F.sibling;var Se=z(w,F,A[oe],B);if(Se===null){F===null&&(F=pe);break}e&&F&&Se.alternate===null&&t(w,F),C=c(Se,C,oe),ve===null?P=Se:ve.sibling=Se,ve=Se,F=pe}if(oe===A.length)return a(w,F),me&&oa(w,oe),P;if(F===null){for(;oe<A.length;oe++)F=V(w,A[oe],B),F!==null&&(C=c(F,C,oe),ve===null?P=F:ve.sibling=F,ve=F);return me&&oa(w,oe),P}for(F=l(F);oe<A.length;oe++)pe=k(F,w,oe,A[oe],B),pe!==null&&(e&&pe.alternate!==null&&F.delete(pe.key===null?oe:pe.key),C=c(pe,C,oe),ve===null?P=pe:ve.sibling=pe,ve=pe);return e&&F.forEach(function(Ja){return t(w,Ja)}),me&&oa(w,oe),P}function te(w,C,A,B){if(A==null)throw Error(s(151));for(var P=null,ve=null,F=C,oe=C=0,pe=null,Se=A.next();F!==null&&!Se.done;oe++,Se=A.next()){F.index>oe?(pe=F,F=null):pe=F.sibling;var Ja=z(w,F,Se.value,B);if(Ja===null){F===null&&(F=pe);break}e&&F&&Ja.alternate===null&&t(w,F),C=c(Ja,C,oe),ve===null?P=Ja:ve.sibling=Ja,ve=Ja,F=pe}if(Se.done)return a(w,F),me&&oa(w,oe),P;if(F===null){for(;!Se.done;oe++,Se=A.next())Se=V(w,Se.value,B),Se!==null&&(C=c(Se,C,oe),ve===null?P=Se:ve.sibling=Se,ve=Se);return me&&oa(w,oe),P}for(F=l(F);!Se.done;oe++,Se=A.next())Se=k(F,w,oe,Se.value,B),Se!==null&&(e&&Se.alternate!==null&&F.delete(Se.key===null?oe:Se.key),C=c(Se,C,oe),ve===null?P=Se:ve.sibling=Se,ve=Se);return e&&F.forEach(function(J0){return t(w,J0)}),me&&oa(w,oe),P}function ze(w,C,A,B){if(typeof A=="object"&&A!==null&&A.type===L&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case R:e:{for(var P=A.key;C!==null;){if(C.key===P){if(P=A.type,P===L){if(C.tag===7){a(w,C.sibling),B=u(C,A.props.children),B.return=w,w=B;break e}}else if(C.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===ae&&dn(P)===C.type){a(w,C.sibling),B=u(C,A.props),Dl(B,A),B.return=w,w=B;break e}a(w,C);break}else t(w,C);C=C.sibling}A.type===L?(B=sn(A.props.children,w.mode,B,A.key),B.return=w,w=B):(B=Zi(A.type,A.key,A.props,null,w.mode,B),Dl(B,A),B.return=w,w=B)}return g(w);case j:e:{for(P=A.key;C!==null;){if(C.key===P)if(C.tag===4&&C.stateNode.containerInfo===A.containerInfo&&C.stateNode.implementation===A.implementation){a(w,C.sibling),B=u(C,A.children||[]),B.return=w,w=B;break e}else{a(w,C);break}else t(w,C);C=C.sibling}B=Ws(A,w.mode,B),B.return=w,w=B}return g(w);case ae:return A=dn(A),ze(w,C,A,B)}if(qe(A))return J(w,C,A,B);if($e(A)){if(P=$e(A),typeof P!="function")throw Error(s(150));return A=P.call(A),te(w,C,A,B)}if(typeof A.then=="function")return ze(w,C,er(A),B);if(A.$$typeof===q)return ze(w,C,Fi(w,A),B);tr(w,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,C!==null&&C.tag===6?(a(w,C.sibling),B=u(C,A),B.return=w,w=B):(a(w,C),B=Fs(A,w.mode,B),B.return=w,w=B),g(w)):a(w,C)}return function(w,C,A,B){try{_l=0;var P=ze(w,C,A,B);return Kn=null,P}catch(F){if(F===Qn||F===Pi)throw F;var ve=Ct(29,F,null,w.mode);return ve.lanes=B,ve.return=w,ve}finally{}}}var pn=Ff(!0),Wf=Ff(!1),ka=!1;function ou(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function cu(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 La(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function _a(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ne&2)!==0){var u=l.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),l.pending=t,t=Ki(e),_f(e,null,a),t}return Qi(e,l,t,a),Ki(e)}function Ml(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,$c(e,a)}}function fu(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var u=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var g={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?u=c=g:c=c.next=g,a=a.next}while(a!==null);c===null?u=c=t:c=c.next=t}else u=c=t;a={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var du=!1;function Ul(){if(du){var e=Yn;if(e!==null)throw e}}function Bl(e,t,a,l){du=!1;var u=e.updateQueue;ka=!1;var c=u.firstBaseUpdate,g=u.lastBaseUpdate,S=u.shared.pending;if(S!==null){u.shared.pending=null;var N=S,O=N.next;N.next=null,g===null?c=O:g.next=O,g=N;var M=e.alternate;M!==null&&(M=M.updateQueue,S=M.lastBaseUpdate,S!==g&&(S===null?M.firstBaseUpdate=O:S.next=O,M.lastBaseUpdate=N))}if(c!==null){var V=u.baseState;g=0,M=O=N=null,S=c;do{var z=S.lane&-536870913,k=z!==S.lane;if(k?(he&z)===z:(l&z)===z){z!==0&&z===Gn&&(du=!0),M!==null&&(M=M.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var J=e,te=S;z=t;var ze=a;switch(te.tag){case 1:if(J=te.payload,typeof J=="function"){V=J.call(ze,V,z);break e}V=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=te.payload,z=typeof J=="function"?J.call(ze,V,z):J,z==null)break e;V=v({},V,z);break e;case 2:ka=!0}}z=S.callback,z!==null&&(e.flags|=64,k&&(e.flags|=8192),k=u.callbacks,k===null?u.callbacks=[z]:k.push(z))}else k={lane:z,tag:S.tag,payload:S.payload,callback:S.callback,next:null},M===null?(O=M=k,N=V):M=M.next=k,g|=z;if(S=S.next,S===null){if(S=u.shared.pending,S===null)break;k=S,S=k.next,k.next=null,u.lastBaseUpdate=k,u.shared.pending=null}}while(!0);M===null&&(N=V),u.baseState=N,u.firstBaseUpdate=O,u.lastBaseUpdate=M,c===null&&(u.shared.lanes=0),Ha|=g,e.lanes=g,e.memoizedState=V}}function Pf(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function If(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Pf(a[e],t)}var Zn=E(null),ar=E(0);function ed(e,t){e=ba,Q(ar,e),Q(Zn,t),ba=e|t.baseLanes}function hu(){Q(ar,ba),Q(Zn,Zn.current)}function pu(){ba=ar.current,U(Zn),U(ar)}var Rt=E(null),Vt=null;function Da(e){var t=e.alternate;Q(Ke,Ke.current&1),Q(Rt,e),Vt===null&&(t===null||Zn.current!==null||t.memoizedState!==null)&&(Vt=e)}function mu(e){Q(Ke,Ke.current),Q(Rt,e),Vt===null&&(Vt=e)}function td(e){e.tag===22?(Q(Ke,Ke.current),Q(Rt,e),Vt===null&&(Vt=e)):Ma()}function Ma(){Q(Ke,Ke.current),Q(Rt,Rt.current)}function jt(e){U(Rt),Vt===e&&(Vt=null),U(Ke)}var Ke=E(0);function nr(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||No(a)||Eo(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){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}var da=0,ue=null,Ae=null,Je=null,lr=!1,Xn=!1,mn=!1,ir=0,Hl=0,Jn=null,Hv=0;function Ge(){throw Error(s(321))}function gu(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Tt(e[a],t[a]))return!1;return!0}function yu(e,t,a,l,u,c){return da=c,ue=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?Bd:ku,mn=!1,c=a(l,u),mn=!1,Xn&&(c=nd(t,a,l,u)),ad(e),c}function ad(e){_.H=ql;var t=Ae!==null&&Ae.next!==null;if(da=0,Je=Ae=ue=null,lr=!1,Hl=0,Jn=null,t)throw Error(s(300));e===null||Fe||(e=e.dependencies,e!==null&&Ji(e)&&(Fe=!0))}function nd(e,t,a,l){ue=e;var u=0;do{if(Xn&&(Jn=null),Hl=0,Xn=!1,25<=u)throw Error(s(301));if(u+=1,Je=Ae=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}_.H=Hd,c=t(a,l)}while(Xn);return c}function Vv(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?Vl(t):t,e=e.useState()[0],(Ae!==null?Ae.memoizedState:null)!==e&&(ue.flags|=1024),t}function vu(){var e=ir!==0;return ir=0,e}function Su(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function bu(e){if(lr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}lr=!1}da=0,Je=Ae=ue=null,Xn=!1,Hl=ir=0,Jn=null}function ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?ue.memoizedState=Je=e:Je=Je.next=e,Je}function Ze(){if(Ae===null){var e=ue.alternate;e=e!==null?e.memoizedState:null}else e=Ae.next;var t=Je===null?ue.memoizedState:Je.next;if(t!==null)Je=t,Ae=e;else{if(e===null)throw ue.alternate===null?Error(s(467)):Error(s(310));Ae=e,e={memoizedState:Ae.memoizedState,baseState:Ae.baseState,baseQueue:Ae.baseQueue,queue:Ae.queue,next:null},Je===null?ue.memoizedState=Je=e:Je=Je.next=e}return Je}function rr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Vl(e){var t=Hl;return Hl+=1,Jn===null&&(Jn=[]),e=Zf(Jn,e,t),t=ue,(Je===null?t.memoizedState:Je.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?Bd:ku),e}function sr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Vl(e);if(e.$$typeof===q)return nt(e)}throw Error(s(438,String(e)))}function xu(e){var t=null,a=ue.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=ue.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=rr(),ue.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=ne;return t.index++,a}function ha(e,t){return typeof t=="function"?t(e):t}function ur(e){var t=Ze();return Nu(t,Ae,e)}function Nu(e,t,a){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=a;var u=e.baseQueue,c=l.pending;if(c!==null){if(u!==null){var g=u.next;u.next=c.next,c.next=g}t.baseQueue=u=c,l.pending=null}if(c=e.baseState,u===null)e.memoizedState=c;else{t=u.next;var S=g=null,N=null,O=t,M=!1;do{var V=O.lane&-536870913;if(V!==O.lane?(he&V)===V:(da&V)===V){var z=O.revertLane;if(z===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),V===Gn&&(M=!0);else if((da&z)===z){O=O.next,z===Gn&&(M=!0);continue}else V={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},N===null?(S=N=V,g=c):N=N.next=V,ue.lanes|=z,Ha|=z;V=O.action,mn&&a(c,V),c=O.hasEagerState?O.eagerState:a(c,V)}else z={lane:V,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},N===null?(S=N=z,g=c):N=N.next=z,ue.lanes|=V,Ha|=V;O=O.next}while(O!==null&&O!==t);if(N===null?g=c:N.next=S,!Tt(c,e.memoizedState)&&(Fe=!0,M&&(a=Yn,a!==null)))throw a;e.memoizedState=c,e.baseState=g,e.baseQueue=N,l.lastRenderedState=c}return u===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Eu(e){var t=Ze(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var l=a.dispatch,u=a.pending,c=t.memoizedState;if(u!==null){a.pending=null;var g=u=u.next;do c=e(c,g.action),g=g.next;while(g!==u);Tt(c,t.memoizedState)||(Fe=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,l]}function ld(e,t,a){var l=ue,u=Ze(),c=me;if(c){if(a===void 0)throw Error(s(407));a=a()}else a=t();var g=!Tt((Ae||u).memoizedState,a);if(g&&(u.memoizedState=a,Fe=!0),u=u.queue,Ru(sd.bind(null,l,u,e),[e]),u.getSnapshot!==t||g||Je!==null&&Je.memoizedState.tag&1){if(l.flags|=2048,Fn(9,{destroy:void 0},rd.bind(null,l,u,a,t),null),Le===null)throw Error(s(349));c||(da&127)!==0||id(l,t,a)}return a}function id(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ue.updateQueue,t===null?(t=rr(),ue.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function rd(e,t,a,l){t.value=a,t.getSnapshot=l,ud(t)&&od(e)}function sd(e,t,a){return a(function(){ud(t)&&od(e)})}function ud(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Tt(e,a)}catch{return!0}}function od(e){var t=rn(e,2);t!==null&&St(t,e,2)}function Tu(e){var t=ct();if(typeof e=="function"){var a=e;if(e=a(),mn){Ca(!0);try{a()}finally{Ca(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:e},t}function cd(e,t,a,l){return e.baseState=a,Nu(e,Ae,typeof l=="function"?l:ha)}function $v(e,t,a,l,u){if(fr(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){c.listeners.push(g)}};_.T!==null?a(!0):c.isTransition=!1,l(c),a=t.pending,a===null?(c.next=t.pending=c,fd(t,c)):(c.next=a.next,t.pending=a.next=c)}}function fd(e,t){var a=t.action,l=t.payload,u=e.state;if(t.isTransition){var c=_.T,g={};_.T=g;try{var S=a(u,l),N=_.S;N!==null&&N(g,S),dd(e,t,S)}catch(O){Cu(e,t,O)}finally{c!==null&&g.types!==null&&(c.types=g.types),_.T=c}}else try{c=a(u,l),dd(e,t,c)}catch(O){Cu(e,t,O)}}function dd(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){hd(e,t,l)},function(l){return Cu(e,t,l)}):hd(e,t,a)}function hd(e,t,a){t.status="fulfilled",t.value=a,pd(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,fd(e,a)))}function Cu(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,pd(t),t=t.next;while(t!==l)}e.action=null}function pd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function md(e,t){return t}function gd(e,t){if(me){var a=Le.formState;if(a!==null){e:{var l=ue;if(me){if(De){t:{for(var u=De,c=Ht;u.nodeType!==8;){if(!c){u=null;break t}if(u=$t(u.nextSibling),u===null){u=null;break t}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){De=$t(u.nextSibling),l=u.data==="F!";break e}}Oa(l)}l=!1}l&&(t=a[0])}}return a=ct(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:md,lastRenderedState:t},a.queue=l,a=Dd.bind(null,ue,l),l.dispatch=a,l=Tu(!1),c=zu.bind(null,ue,!1,l.queue),l=ct(),u={state:t,dispatch:null,action:e,pending:null},l.queue=u,a=$v.bind(null,ue,u,c,a),u.dispatch=a,l.memoizedState=e,[t,a,!1]}function yd(e){var t=Ze();return vd(t,Ae,e)}function vd(e,t,a){if(t=Nu(e,t,md)[0],e=ur(ha)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Vl(t)}catch(g){throw g===Qn?Pi:g}else l=t;t=Ze();var u=t.queue,c=u.dispatch;return a!==t.memoizedState&&(ue.flags|=2048,Fn(9,{destroy:void 0},qv.bind(null,u,a),null)),[l,c,e]}function qv(e,t){e.action=t}function Sd(e){var t=Ze(),a=Ae;if(a!==null)return vd(t,a,e);Ze(),t=t.memoizedState,a=Ze();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function Fn(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=ue.updateQueue,t===null&&(t=rr(),ue.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function bd(){return Ze().memoizedState}function or(e,t,a,l){var u=ct();ue.flags|=e,u.memoizedState=Fn(1|t,{destroy:void 0},a,l===void 0?null:l)}function cr(e,t,a,l){var u=Ze();l=l===void 0?null:l;var c=u.memoizedState.inst;Ae!==null&&l!==null&&gu(l,Ae.memoizedState.deps)?u.memoizedState=Fn(t,c,a,l):(ue.flags|=e,u.memoizedState=Fn(1|t,c,a,l))}function xd(e,t){or(8390656,8,e,t)}function Ru(e,t){cr(2048,8,e,t)}function Gv(e){ue.flags|=4;var t=ue.updateQueue;if(t===null)t=rr(),ue.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Nd(e){var t=Ze().memoizedState;return Gv({ref:t,nextImpl:e}),function(){if((Ne&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Ed(e,t){return cr(4,2,e,t)}function Td(e,t){return cr(4,4,e,t)}function Cd(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Rd(e,t,a){a=a!=null?a.concat([e]):null,cr(4,4,Cd.bind(null,t,e),a)}function ju(){}function jd(e,t){var a=Ze();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&gu(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function wd(e,t){var a=Ze();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&gu(t,l[1]))return l[0];if(l=e(),mn){Ca(!0);try{e()}finally{Ca(!1)}}return a.memoizedState=[l,t],l}function wu(e,t,a){return a===void 0||(da&1073741824)!==0&&(he&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Ah(),ue.lanes|=e,Ha|=e,a)}function Ad(e,t,a,l){return Tt(a,t)?a:Zn.current!==null?(e=wu(e,a,l),Tt(e,t)||(Fe=!0),e):(da&42)===0||(da&1073741824)!==0&&(he&261930)===0?(Fe=!0,e.memoizedState=a):(e=Ah(),ue.lanes|=e,Ha|=e,t)}function Od(e,t,a,l,u){var c=Y.p;Y.p=c!==0&&8>c?c:8;var g=_.T,S={};_.T=S,zu(e,!1,t,a);try{var N=u(),O=_.S;if(O!==null&&O(S,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var M=Bv(N,l);$l(e,t,M,Ot(e))}else $l(e,t,l,Ot(e))}catch(V){$l(e,t,{then:function(){},status:"rejected",reason:V},Ot())}finally{Y.p=c,g!==null&&S.types!==null&&(g.types=S.types),_.T=g}}function Yv(){}function Au(e,t,a,l){if(e.tag!==5)throw Error(s(476));var u=zd(e).queue;Od(e,u,t,ee,a===null?Yv:function(){return kd(e),a(l)})}function zd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:ee},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function kd(e){var t=zd(e);t.next===null&&(t=e.alternate.memoizedState),$l(e,t.next.queue,{},Ot())}function Ou(){return nt(li)}function Ld(){return Ze().memoizedState}function _d(){return Ze().memoizedState}function Qv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Ot();e=La(a);var l=_a(t,e,a);l!==null&&(St(l,t,a),Ml(l,t,a)),t={cache:iu()},e.payload=t;return}t=t.return}}function Kv(e,t,a){var l=Ot();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},fr(e)?Md(t,a):(a=Xs(e,t,a,l),a!==null&&(St(a,e,l),Ud(a,t,l)))}function Dd(e,t,a){var l=Ot();$l(e,t,a,l)}function $l(e,t,a,l){var u={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(fr(e))Md(t,u);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var g=t.lastRenderedState,S=c(g,a);if(u.hasEagerState=!0,u.eagerState=S,Tt(S,g))return Qi(e,t,u,0),Le===null&&Yi(),!1}catch{}finally{}if(a=Xs(e,t,u,l),a!==null)return St(a,e,l),Ud(a,t,l),!0}return!1}function zu(e,t,a,l){if(l={lane:2,revertLane:oo(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},fr(e)){if(t)throw Error(s(479))}else t=Xs(e,a,l,2),t!==null&&St(t,e,2)}function fr(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function Md(e,t){Xn=lr=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Ud(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,$c(e,a)}}var ql={readContext:nt,use:sr,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useLayoutEffect:Ge,useInsertionEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useSyncExternalStore:Ge,useId:Ge,useHostTransitionStatus:Ge,useFormState:Ge,useActionState:Ge,useOptimistic:Ge,useMemoCache:Ge,useCacheRefresh:Ge};ql.useEffectEvent=Ge;var Bd={readContext:nt,use:sr,useCallback:function(e,t){return ct().memoizedState=[e,t===void 0?null:t],e},useContext:nt,useEffect:xd,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,or(4194308,4,Cd.bind(null,t,e),a)},useLayoutEffect:function(e,t){return or(4194308,4,e,t)},useInsertionEffect:function(e,t){or(4,2,e,t)},useMemo:function(e,t){var a=ct();t=t===void 0?null:t;var l=e();if(mn){Ca(!0);try{e()}finally{Ca(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=ct();if(a!==void 0){var u=a(t);if(mn){Ca(!0);try{a(t)}finally{Ca(!1)}}}else u=t;return l.memoizedState=l.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},l.queue=e,e=e.dispatch=Kv.bind(null,ue,e),[l.memoizedState,e]},useRef:function(e){var t=ct();return e={current:e},t.memoizedState=e},useState:function(e){e=Tu(e);var t=e.queue,a=Dd.bind(null,ue,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:ju,useDeferredValue:function(e,t){var a=ct();return wu(a,e,t)},useTransition:function(){var e=Tu(!1);return e=Od.bind(null,ue,e.queue,!0,!1),ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=ue,u=ct();if(me){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),Le===null)throw Error(s(349));(he&127)!==0||id(l,t,a)}u.memoizedState=a;var c={value:a,getSnapshot:t};return u.queue=c,xd(sd.bind(null,l,c,e),[e]),l.flags|=2048,Fn(9,{destroy:void 0},rd.bind(null,l,c,a,t),null),a},useId:function(){var e=ct(),t=Le.identifierPrefix;if(me){var a=ea,l=It;a=(l&~(1<<32-Et(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=ir++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Hv++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ou,useFormState:gd,useActionState:gd,useOptimistic:function(e){var t=ct();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=zu.bind(null,ue,!0,a),a.dispatch=t,[e,t]},useMemoCache:xu,useCacheRefresh:function(){return ct().memoizedState=Qv.bind(null,ue)},useEffectEvent:function(e){var t=ct(),a={impl:e};return t.memoizedState=a,function(){if((Ne&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},ku={readContext:nt,use:sr,useCallback:jd,useContext:nt,useEffect:Ru,useImperativeHandle:Rd,useInsertionEffect:Ed,useLayoutEffect:Td,useMemo:wd,useReducer:ur,useRef:bd,useState:function(){return ur(ha)},useDebugValue:ju,useDeferredValue:function(e,t){var a=Ze();return Ad(a,Ae.memoizedState,e,t)},useTransition:function(){var e=ur(ha)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:Vl(e),t]},useSyncExternalStore:ld,useId:Ld,useHostTransitionStatus:Ou,useFormState:yd,useActionState:yd,useOptimistic:function(e,t){var a=Ze();return cd(a,Ae,e,t)},useMemoCache:xu,useCacheRefresh:_d};ku.useEffectEvent=Nd;var Hd={readContext:nt,use:sr,useCallback:jd,useContext:nt,useEffect:Ru,useImperativeHandle:Rd,useInsertionEffect:Ed,useLayoutEffect:Td,useMemo:wd,useReducer:Eu,useRef:bd,useState:function(){return Eu(ha)},useDebugValue:ju,useDeferredValue:function(e,t){var a=Ze();return Ae===null?wu(a,e,t):Ad(a,Ae.memoizedState,e,t)},useTransition:function(){var e=Eu(ha)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:Vl(e),t]},useSyncExternalStore:ld,useId:Ld,useHostTransitionStatus:Ou,useFormState:Sd,useActionState:Sd,useOptimistic:function(e,t){var a=Ze();return Ae!==null?cd(a,Ae,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:xu,useCacheRefresh:_d};Hd.useEffectEvent=Nd;function Lu(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:v({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var _u={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Ot(),u=La(l);u.payload=t,a!=null&&(u.callback=a),t=_a(e,u,l),t!==null&&(St(t,e,l),Ml(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Ot(),u=La(l);u.tag=1,u.payload=t,a!=null&&(u.callback=a),t=_a(e,u,l),t!==null&&(St(t,e,l),Ml(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Ot(),l=La(a);l.tag=2,t!=null&&(l.callback=t),t=_a(e,l,a),t!==null&&(St(t,e,a),Ml(t,e,a))}};function Vd(e,t,a,l,u,c,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,c,g):t.prototype&&t.prototype.isPureReactComponent?!wl(a,l)||!wl(u,c):!0}function $d(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&_u.enqueueReplaceState(t,t.state,null)}function gn(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=v({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}function qd(e){Gi(e)}function Gd(e){console.error(e)}function Yd(e){Gi(e)}function dr(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Qd(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Du(e,t,a){return a=La(a),a.tag=3,a.payload={element:null},a.callback=function(){dr(e,t)},a}function Kd(e){return e=La(e),e.tag=3,e}function Zd(e,t,a,l){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var c=l.value;e.payload=function(){return u(c)},e.callback=function(){Qd(t,a,l)}}var g=a.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){Qd(t,a,l),typeof u!="function"&&(Va===null?Va=new Set([this]):Va.add(this));var S=l.stack;this.componentDidCatch(l.value,{componentStack:S!==null?S:""})})}function Zv(e,t,a,l,u){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&qn(t,a,u,!0),a=Rt.current,a!==null){switch(a.tag){case 31:case 13:return Vt===null?Tr():a.alternate===null&&Ye===0&&(Ye=3),a.flags&=-257,a.flags|=65536,a.lanes=u,l===Ii?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),ro(e,l,u)),!1;case 22:return a.flags|=65536,l===Ii?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),ro(e,l,u)),!1}throw Error(s(435,a.tag))}return ro(e,l,u),Tr(),!1}if(me)return t=Rt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,l!==eu&&(e=Error(s(422),{cause:l}),zl(Mt(e,a)))):(l!==eu&&(t=Error(s(423),{cause:l}),zl(Mt(t,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,l=Mt(l,a),u=Du(e.stateNode,l,u),fu(e,u),Ye!==4&&(Ye=2)),!1;var c=Error(s(520),{cause:l});if(c=Mt(c,a),Fl===null?Fl=[c]:Fl.push(c),Ye!==4&&(Ye=2),t===null)return!0;l=Mt(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=Du(a.stateNode,l,e),fu(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Va===null||!Va.has(c))))return a.flags|=65536,u&=-u,a.lanes|=u,u=Kd(u),Zd(u,e,a,l),fu(a,u),!1}a=a.return}while(a!==null);return!1}var Mu=Error(s(461)),Fe=!1;function lt(e,t,a,l){t.child=e===null?Wf(t,null,a,l):pn(t,e.child,a,l)}function Xd(e,t,a,l,u){a=a.render;var c=t.ref;if("ref"in l){var g={};for(var S in l)S!=="ref"&&(g[S]=l[S])}else g=l;return cn(t),l=yu(e,t,a,g,c,u),S=vu(),e!==null&&!Fe?(Su(e,t,u),pa(e,t,u)):(me&&S&&Ps(t),t.flags|=1,lt(e,t,l,u),t.child)}function Jd(e,t,a,l,u){if(e===null){var c=a.type;return typeof c=="function"&&!Js(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,Fd(e,t,c,l,u)):(e=Zi(a.type,null,l,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Yu(e,u)){var g=c.memoizedProps;if(a=a.compare,a=a!==null?a:wl,a(g,l)&&e.ref===t.ref)return pa(e,t,u)}return t.flags|=1,e=ua(c,l),e.ref=t.ref,e.return=t,t.child=e}function Fd(e,t,a,l,u){if(e!==null){var c=e.memoizedProps;if(wl(c,l)&&e.ref===t.ref)if(Fe=!1,t.pendingProps=l=c,Yu(e,u))(e.flags&131072)!==0&&(Fe=!0);else return t.lanes=e.lanes,pa(e,t,u)}return Uu(e,t,a,l,u)}function Wd(e,t,a,l){var u=l.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(l=t.child=e.child,u=0;l!==null;)u=u|l.lanes|l.childLanes,l=l.sibling;l=u&~c}else l=0,t.child=null;return Pd(e,t,c,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Wi(t,c!==null?c.cachePool:null),c!==null?ed(t,c):hu(),td(t);else return l=t.lanes=536870912,Pd(e,t,c!==null?c.baseLanes|a:a,a,l)}else c!==null?(Wi(t,c.cachePool),ed(t,c),Ma(),t.memoizedState=null):(e!==null&&Wi(t,null),hu(),Ma());return lt(e,t,u,a),t.child}function Gl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Pd(e,t,a,l,u){var c=su();return c=c===null?null:{parent:Xe._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&Wi(t,null),hu(),td(t),e!==null&&qn(e,t,l,!0),t.childLanes=u,null}function hr(e,t){return t=mr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Id(e,t,a){return pn(t,e.child,null,a),e=hr(t,t.pendingProps),e.flags|=2,jt(t),t.memoizedState=null,e}function Xv(e,t,a){var l=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(me){if(l.mode==="hidden")return e=hr(t,l),t.lanes=536870912,Gl(null,e);if(mu(t),(e=De)?(e=fp(e,Ht),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:wa!==null?{id:It,overflow:ea}:null,retryLane:536870912,hydrationErrors:null},a=Mf(e),a.return=t,t.child=a,at=t,De=null)):e=null,e===null)throw Oa(t);return t.lanes=536870912,null}return hr(t,l)}var c=e.memoizedState;if(c!==null){var g=c.dehydrated;if(mu(t),u)if(t.flags&256)t.flags&=-257,t=Id(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Fe||qn(e,t,a,!1),u=(a&e.childLanes)!==0,Fe||u){if(l=Le,l!==null&&(g=qc(l,a),g!==0&&g!==c.retryLane))throw c.retryLane=g,rn(e,g),St(l,e,g),Mu;Tr(),t=Id(e,t,a)}else e=c.treeContext,De=$t(g.nextSibling),at=t,me=!0,Aa=null,Ht=!1,e!==null&&Hf(t,e),t=hr(t,l),t.flags|=4096;return t}return e=ua(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function pr(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Uu(e,t,a,l,u){return cn(t),a=yu(e,t,a,l,void 0,u),l=vu(),e!==null&&!Fe?(Su(e,t,u),pa(e,t,u)):(me&&l&&Ps(t),t.flags|=1,lt(e,t,a,u),t.child)}function eh(e,t,a,l,u,c){return cn(t),t.updateQueue=null,a=nd(t,l,a,u),ad(e),l=vu(),e!==null&&!Fe?(Su(e,t,c),pa(e,t,c)):(me&&l&&Ps(t),t.flags|=1,lt(e,t,a,c),t.child)}function th(e,t,a,l,u){if(cn(t),t.stateNode===null){var c=Bn,g=a.contextType;typeof g=="object"&&g!==null&&(c=nt(g)),c=new a(l,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=_u,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=l,c.state=t.memoizedState,c.refs={},ou(t),g=a.contextType,c.context=typeof g=="object"&&g!==null?nt(g):Bn,c.state=t.memoizedState,g=a.getDerivedStateFromProps,typeof g=="function"&&(Lu(t,a,g,l),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(g=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),g!==c.state&&_u.enqueueReplaceState(c,c.state,null),Bl(t,l,c,u),Ul(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){c=t.stateNode;var S=t.memoizedProps,N=gn(a,S);c.props=N;var O=c.context,M=a.contextType;g=Bn,typeof M=="object"&&M!==null&&(g=nt(M));var V=a.getDerivedStateFromProps;M=typeof V=="function"||typeof c.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,M||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(S||O!==g)&&$d(t,c,l,g),ka=!1;var z=t.memoizedState;c.state=z,Bl(t,l,c,u),Ul(),O=t.memoizedState,S||z!==O||ka?(typeof V=="function"&&(Lu(t,a,V,l),O=t.memoizedState),(N=ka||Vd(t,a,N,l,z,O,g))?(M||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=O),c.props=l,c.state=O,c.context=g,l=N):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{c=t.stateNode,cu(e,t),g=t.memoizedProps,M=gn(a,g),c.props=M,V=t.pendingProps,z=c.context,O=a.contextType,N=Bn,typeof O=="object"&&O!==null&&(N=nt(O)),S=a.getDerivedStateFromProps,(O=typeof S=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g!==V||z!==N)&&$d(t,c,l,N),ka=!1,z=t.memoizedState,c.state=z,Bl(t,l,c,u),Ul();var k=t.memoizedState;g!==V||z!==k||ka||e!==null&&e.dependencies!==null&&Ji(e.dependencies)?(typeof S=="function"&&(Lu(t,a,S,l),k=t.memoizedState),(M=ka||Vd(t,a,M,l,z,k,N)||e!==null&&e.dependencies!==null&&Ji(e.dependencies))?(O||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,k,N),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,k,N)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=k),c.props=l,c.state=k,c.context=N,l=M):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),l=!1)}return c=l,pr(e,t),l=(t.flags&128)!==0,c||l?(c=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&l?(t.child=pn(t,e.child,null,u),t.child=pn(t,null,a,u)):lt(e,t,a,u),t.memoizedState=c.state,e=t.child):e=pa(e,t,u),e}function ah(e,t,a,l){return un(),t.flags|=256,lt(e,t,a,l),t.child}var Bu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hu(e){return{baseLanes:e,cachePool:Qf()}}function Vu(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=At),e}function nh(e,t,a){var l=t.pendingProps,u=!1,c=(t.flags&128)!==0,g;if((g=c)||(g=e!==null&&e.memoizedState===null?!1:(Ke.current&2)!==0),g&&(u=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(me){if(u?Da(t):Ma(),(e=De)?(e=fp(e,Ht),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:wa!==null?{id:It,overflow:ea}:null,retryLane:536870912,hydrationErrors:null},a=Mf(e),a.return=t,t.child=a,at=t,De=null)):e=null,e===null)throw Oa(t);return Eo(e)?t.lanes=32:t.lanes=536870912,null}var S=l.children;return l=l.fallback,u?(Ma(),u=t.mode,S=mr({mode:"hidden",children:S},u),l=sn(l,u,a,null),S.return=t,l.return=t,S.sibling=l,t.child=S,l=t.child,l.memoizedState=Hu(a),l.childLanes=Vu(e,g,a),t.memoizedState=Bu,Gl(null,l)):(Da(t),$u(t,S))}var N=e.memoizedState;if(N!==null&&(S=N.dehydrated,S!==null)){if(c)t.flags&256?(Da(t),t.flags&=-257,t=qu(e,t,a)):t.memoizedState!==null?(Ma(),t.child=e.child,t.flags|=128,t=null):(Ma(),S=l.fallback,u=t.mode,l=mr({mode:"visible",children:l.children},u),S=sn(S,u,a,null),S.flags|=2,l.return=t,S.return=t,l.sibling=S,t.child=l,pn(t,e.child,null,a),l=t.child,l.memoizedState=Hu(a),l.childLanes=Vu(e,g,a),t.memoizedState=Bu,t=Gl(null,l));else if(Da(t),Eo(S)){if(g=S.nextSibling&&S.nextSibling.dataset,g)var O=g.dgst;g=O,l=Error(s(419)),l.stack="",l.digest=g,zl({value:l,source:null,stack:null}),t=qu(e,t,a)}else if(Fe||qn(e,t,a,!1),g=(a&e.childLanes)!==0,Fe||g){if(g=Le,g!==null&&(l=qc(g,a),l!==0&&l!==N.retryLane))throw N.retryLane=l,rn(e,l),St(g,e,l),Mu;No(S)||Tr(),t=qu(e,t,a)}else No(S)?(t.flags|=192,t.child=e.child,t=null):(e=N.treeContext,De=$t(S.nextSibling),at=t,me=!0,Aa=null,Ht=!1,e!==null&&Hf(t,e),t=$u(t,l.children),t.flags|=4096);return t}return u?(Ma(),S=l.fallback,u=t.mode,N=e.child,O=N.sibling,l=ua(N,{mode:"hidden",children:l.children}),l.subtreeFlags=N.subtreeFlags&65011712,O!==null?S=ua(O,S):(S=sn(S,u,a,null),S.flags|=2),S.return=t,l.return=t,l.sibling=S,t.child=l,Gl(null,l),l=t.child,S=e.child.memoizedState,S===null?S=Hu(a):(u=S.cachePool,u!==null?(N=Xe._currentValue,u=u.parent!==N?{parent:N,pool:N}:u):u=Qf(),S={baseLanes:S.baseLanes|a,cachePool:u}),l.memoizedState=S,l.childLanes=Vu(e,g,a),t.memoizedState=Bu,Gl(e.child,l)):(Da(t),a=e.child,e=a.sibling,a=ua(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=a,t.memoizedState=null,a)}function $u(e,t){return t=mr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function mr(e,t){return e=Ct(22,e,null,t),e.lanes=0,e}function qu(e,t,a){return pn(t,e.child,null,a),e=$u(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lh(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),nu(e.return,t,a)}function Gu(e,t,a,l,u,c){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:u,treeForkCount:c}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=l,g.tail=a,g.tailMode=u,g.treeForkCount=c)}function ih(e,t,a){var l=t.pendingProps,u=l.revealOrder,c=l.tail;l=l.children;var g=Ke.current,S=(g&2)!==0;if(S?(g=g&1|2,t.flags|=128):g&=1,Q(Ke,g),lt(e,t,l,a),l=me?Ol:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&lh(e,a,t);else if(e.tag===19)lh(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(a=t.child,u=null;a!==null;)e=a.alternate,e!==null&&nr(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=t.child,t.child=null):(u=a.sibling,a.sibling=null),Gu(t,!1,u,a,c,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&nr(e)===null){t.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}Gu(t,!0,a,null,c,l);break;case"together":Gu(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function pa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ha|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(qn(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=ua(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ua(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Yu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ji(e)))}function Jv(e,t,a){switch(t.tag){case 3:ot(t,t.stateNode.containerInfo),za(t,Xe,e.memoizedState.cache),un();break;case 27:case 5:ml(t);break;case 4:ot(t,t.stateNode.containerInfo);break;case 10:za(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,mu(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Da(t),t.flags|=128,null):(a&t.child.childLanes)!==0?nh(e,t,a):(Da(t),e=pa(e,t,a),e!==null?e.sibling:null);Da(t);break;case 19:var u=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(qn(e,t,a,!1),l=(a&t.childLanes)!==0),u){if(l)return ih(e,t,a);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),Q(Ke,Ke.current),l)break;return null;case 22:return t.lanes=0,Wd(e,t,a,t.pendingProps);case 24:za(t,Xe,e.memoizedState.cache)}return pa(e,t,a)}function rh(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Fe=!0;else{if(!Yu(e,a)&&(t.flags&128)===0)return Fe=!1,Jv(e,t,a);Fe=(e.flags&131072)!==0}else Fe=!1,me&&(t.flags&1048576)!==0&&Bf(t,Ol,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=dn(t.elementType),t.type=e,typeof e=="function")Js(e)?(l=gn(e,l),t.tag=1,t=th(null,t,e,l,a)):(t.tag=0,t=Uu(null,t,e,l,a));else{if(e!=null){var u=e.$$typeof;if(u===Z){t.tag=11,t=Xd(null,t,e,l,a);break e}else if(u===K){t.tag=14,t=Jd(null,t,e,l,a);break e}}throw t=Ve(e)||e,Error(s(306,t,""))}}return t;case 0:return Uu(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,u=gn(l,t.pendingProps),th(e,t,l,u,a);case 3:e:{if(ot(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var c=t.memoizedState;u=c.element,cu(e,t),Bl(t,l,null,a);var g=t.memoizedState;if(l=g.cache,za(t,Xe,l),l!==c.cache&&lu(t,[Xe],a,!0),Ul(),l=g.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=ah(e,t,l,a);break e}else if(l!==u){u=Mt(Error(s(424)),t),zl(u),t=ah(e,t,l,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(De=$t(e.firstChild),at=t,me=!0,Aa=null,Ht=!0,a=Wf(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(un(),l===u){t=pa(e,t,a);break e}lt(e,t,l,a)}t=t.child}return t;case 26:return pr(e,t),e===null?(a=yp(t.type,null,t.pendingProps,null))?t.memoizedState=a:me||(a=t.type,e=t.pendingProps,l=zr(ce.current).createElement(a),l[tt]=t,l[ht]=e,it(l,a,e),Ie(l),t.stateNode=l):t.memoizedState=yp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ml(t),e===null&&me&&(l=t.stateNode=pp(t.type,t.pendingProps,ce.current),at=t,Ht=!0,u=De,Ya(t.type)?(To=u,De=$t(l.firstChild)):De=u),lt(e,t,t.pendingProps.children,a),pr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&me&&((u=l=De)&&(l=C0(l,t.type,t.pendingProps,Ht),l!==null?(t.stateNode=l,at=t,De=$t(l.firstChild),Ht=!1,u=!0):u=!1),u||Oa(t)),ml(t),u=t.type,c=t.pendingProps,g=e!==null?e.memoizedProps:null,l=c.children,So(u,c)?l=null:g!==null&&So(u,g)&&(t.flags|=32),t.memoizedState!==null&&(u=yu(e,t,Vv,null,null,a),li._currentValue=u),pr(e,t),lt(e,t,l,a),t.child;case 6:return e===null&&me&&((e=a=De)&&(a=R0(a,t.pendingProps,Ht),a!==null?(t.stateNode=a,at=t,De=null,e=!0):e=!1),e||Oa(t)),null;case 13:return nh(e,t,a);case 4:return ot(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=pn(t,null,l,a):lt(e,t,l,a),t.child;case 11:return Xd(e,t,t.type,t.pendingProps,a);case 7:return lt(e,t,t.pendingProps,a),t.child;case 8:return lt(e,t,t.pendingProps.children,a),t.child;case 12:return lt(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,za(t,t.type,l.value),lt(e,t,l.children,a),t.child;case 9:return u=t.type._context,l=t.pendingProps.children,cn(t),u=nt(u),l=l(u),t.flags|=1,lt(e,t,l,a),t.child;case 14:return Jd(e,t,t.type,t.pendingProps,a);case 15:return Fd(e,t,t.type,t.pendingProps,a);case 19:return ih(e,t,a);case 31:return Xv(e,t,a);case 22:return Wd(e,t,a,t.pendingProps);case 24:return cn(t),l=nt(Xe),e===null?(u=su(),u===null&&(u=Le,c=iu(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=a),u=c),t.memoizedState={parent:l,cache:u},ou(t),za(t,Xe,u)):((e.lanes&a)!==0&&(cu(e,t),Bl(t,null,null,a),Ul()),u=e.memoizedState,c=t.memoizedState,u.parent!==l?(u={parent:l,cache:l},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),za(t,Xe,l)):(l=c.cache,za(t,Xe,l),l!==u.cache&&lu(t,[Xe],a,!0))),lt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function ma(e){e.flags|=4}function Qu(e,t,a,l,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(Lh())e.flags|=8192;else throw hn=Ii,uu}else e.flags&=-16777217}function sh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Np(t))if(Lh())e.flags|=8192;else throw hn=Ii,uu}function gr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Hc():536870912,e.lanes|=t,el|=t)}function Yl(e,t){if(!me)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Me(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function Fv(e,t,a){var l=t.pendingProps;switch(Is(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Me(t),null;case 1:return Me(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),fa(Xe),Qe(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&($n(t)?ma(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,tu())),Me(t),null;case 26:var u=t.type,c=t.memoizedState;return e===null?(ma(t),c!==null?(Me(t),sh(t,c)):(Me(t),Qu(t,u,null,l,a))):c?c!==e.memoizedState?(ma(t),Me(t),sh(t,c)):(Me(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&ma(t),Me(t),Qu(t,u,e,l,a)),null;case 27:if(ji(t),a=ce.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ma(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Me(t),null}e=X.current,$n(t)?Vf(t):(e=pp(u,l,a),t.stateNode=e,ma(t))}return Me(t),null;case 5:if(ji(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ma(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Me(t),null}if(c=X.current,$n(t))Vf(t);else{var g=zr(ce.current);switch(c){case 1:c=g.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:c=g.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":c=g.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":c=g.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":c=g.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?g.createElement("select",{is:l.is}):g.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?g.createElement(u,{is:l.is}):g.createElement(u)}}c[tt]=t,c[ht]=l;e:for(g=t.child;g!==null;){if(g.tag===5||g.tag===6)c.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===t)break e;for(;g.sibling===null;){if(g.return===null||g.return===t)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}t.stateNode=c;e:switch(it(c,u,l),u){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ma(t)}}return Me(t),Qu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ma(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=ce.current,$n(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,u=at,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}e[tt]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||np(e.nodeValue,a)),e||Oa(t,!0)}else e=zr(e).createTextNode(l),e[tt]=t,t.stateNode=e}return Me(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=$n(t),a!==null){if(e===null){if(!l)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[tt]=t}else un(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Me(t),e=!1}else a=tu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(jt(t),t):(jt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Me(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=$n(t),l!==null&&l.dehydrated!==null){if(e===null){if(!u)throw Error(s(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(s(317));u[tt]=t}else un(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Me(t),u=!1}else u=tu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(jt(t),t):(jt(t),null)}return jt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==u&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),gr(t,t.updateQueue),Me(t),null);case 4:return Qe(),e===null&&po(t.stateNode.containerInfo),Me(t),null;case 10:return fa(t.type),Me(t),null;case 19:if(U(Ke),l=t.memoizedState,l===null)return Me(t),null;if(u=(t.flags&128)!==0,c=l.rendering,c===null)if(u)Yl(l,!1);else{if(Ye!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=nr(e),c!==null){for(t.flags|=128,Yl(l,!1),e=c.updateQueue,t.updateQueue=e,gr(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Df(a,e),a=a.sibling;return Q(Ke,Ke.current&1|2),me&&oa(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&xt()>xr&&(t.flags|=128,u=!0,Yl(l,!1),t.lanes=4194304)}else{if(!u)if(e=nr(c),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,gr(t,e),Yl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!me)return Me(t),null}else 2*xt()-l.renderingStartTime>xr&&a!==536870912&&(t.flags|=128,u=!0,Yl(l,!1),t.lanes=4194304);l.isBackwards?(c.sibling=t.child,t.child=c):(e=l.last,e!==null?e.sibling=c:t.child=c,l.last=c)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=xt(),e.sibling=null,a=Ke.current,Q(Ke,u?a&1|2:a&1),me&&oa(t,l.treeForkCount),e):(Me(t),null);case 22:case 23:return jt(t),pu(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Me(t),t.subtreeFlags&6&&(t.flags|=8192)):Me(t),a=t.updateQueue,a!==null&&gr(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&U(fn),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),fa(Xe),Me(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Wv(e,t){switch(Is(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fa(Xe),Qe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ji(t),null;case 31:if(t.memoizedState!==null){if(jt(t),t.alternate===null)throw Error(s(340));un()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(jt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));un()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(Ke),null;case 4:return Qe(),null;case 10:return fa(t.type),null;case 22:case 23:return jt(t),pu(),e!==null&&U(fn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fa(Xe),null;case 25:return null;default:return null}}function uh(e,t){switch(Is(t),t.tag){case 3:fa(Xe),Qe();break;case 26:case 27:case 5:ji(t);break;case 4:Qe();break;case 31:t.memoizedState!==null&&jt(t);break;case 13:jt(t);break;case 19:U(Ke);break;case 10:fa(t.type);break;case 22:case 23:jt(t),pu(),e!==null&&U(fn);break;case 24:fa(Xe)}}function Ql(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var u=l.next;a=u;do{if((a.tag&e)===e){l=void 0;var c=a.create,g=a.inst;l=c(),g.destroy=l}a=a.next}while(a!==u)}}catch(S){je(t,t.return,S)}}function Ua(e,t,a){try{var l=t.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var c=u.next;l=c;do{if((l.tag&e)===e){var g=l.inst,S=g.destroy;if(S!==void 0){g.destroy=void 0,u=t;var N=a,O=S;try{O()}catch(M){je(u,N,M)}}}l=l.next}while(l!==c)}}catch(M){je(t,t.return,M)}}function oh(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{If(t,a)}catch(l){je(e,e.return,l)}}}function ch(e,t,a){a.props=gn(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){je(e,t,l)}}function Kl(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(u){je(e,t,u)}}function ta(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(u){je(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){je(e,t,u)}else a.current=null}function fh(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(u){je(e,e.return,u)}}function Ku(e,t,a){try{var l=e.stateNode;S0(l,e.type,a,t),l[ht]=t}catch(u){je(e,e.return,u)}}function dh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ya(e.type)||e.tag===4}function Zu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dh(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&&Ya(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 Xu(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=ra));else if(l!==4&&(l===27&&Ya(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Xu(e,t,a),e=e.sibling;e!==null;)Xu(e,t,a),e=e.sibling}function yr(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Ya(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(yr(e,t,a),e=e.sibling;e!==null;)yr(e,t,a),e=e.sibling}function hh(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);it(t,l,a),t[tt]=e,t[ht]=a}catch(c){je(e,e.return,c)}}var ga=!1,We=!1,Ju=!1,ph=typeof WeakSet=="function"?WeakSet:Set,et=null;function Pv(e,t){if(e=e.containerInfo,yo=Br,e=Rf(e),qs(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var u=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var g=0,S=-1,N=-1,O=0,M=0,V=e,z=null;t:for(;;){for(var k;V!==a||u!==0&&V.nodeType!==3||(S=g+u),V!==c||l!==0&&V.nodeType!==3||(N=g+l),V.nodeType===3&&(g+=V.nodeValue.length),(k=V.firstChild)!==null;)z=V,V=k;for(;;){if(V===e)break t;if(z===a&&++O===u&&(S=g),z===c&&++M===l&&(N=g),(k=V.nextSibling)!==null)break;V=z,z=V.parentNode}V=k}a=S===-1||N===-1?null:{start:S,end:N}}else a=null}a=a||{start:0,end:0}}else a=null;for(vo={focusedElem:e,selectionRange:a},Br=!1,et=t;et!==null;)if(t=et,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,et=e;else for(;et!==null;){switch(t=et,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)u=e[a],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,u=c.memoizedProps,c=c.memoizedState,l=a.stateNode;try{var J=gn(a.type,u);e=l.getSnapshotBeforeUpdate(J,c),l.__reactInternalSnapshotBeforeUpdate=e}catch(te){je(a,a.return,te)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)xo(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":xo(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,et=e;break}et=t.return}}function mh(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:va(e,a),l&4&&Ql(5,a);break;case 1:if(va(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(g){je(a,a.return,g)}else{var u=gn(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){je(a,a.return,g)}}l&64&&oh(a),l&512&&Kl(a,a.return);break;case 3:if(va(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{If(e,t)}catch(g){je(a,a.return,g)}}break;case 27:t===null&&l&4&&hh(a);case 26:case 5:va(e,a),t===null&&l&4&&fh(a),l&512&&Kl(a,a.return);break;case 12:va(e,a);break;case 31:va(e,a),l&4&&vh(e,a);break;case 13:va(e,a),l&4&&Sh(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=s0.bind(null,a),j0(e,a))));break;case 22:if(l=a.memoizedState!==null||ga,!l){t=t!==null&&t.memoizedState!==null||We,u=ga;var c=We;ga=l,(We=t)&&!c?Sa(e,a,(a.subtreeFlags&8772)!==0):va(e,a),ga=u,We=c}break;case 30:break;default:va(e,a)}}function gh(e){var t=e.alternate;t!==null&&(e.alternate=null,gh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Cs(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 Be=null,mt=!1;function ya(e,t,a){for(a=a.child;a!==null;)yh(e,t,a),a=a.sibling}function yh(e,t,a){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(gl,a)}catch{}switch(a.tag){case 26:We||ta(a,t),ya(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:We||ta(a,t);var l=Be,u=mt;Ya(a.type)&&(Be=a.stateNode,mt=!1),ya(e,t,a),ti(a.stateNode),Be=l,mt=u;break;case 5:We||ta(a,t);case 6:if(l=Be,u=mt,Be=null,ya(e,t,a),Be=l,mt=u,Be!==null)if(mt)try{(Be.nodeType===9?Be.body:Be.nodeName==="HTML"?Be.ownerDocument.body:Be).removeChild(a.stateNode)}catch(c){je(a,t,c)}else try{Be.removeChild(a.stateNode)}catch(c){je(a,t,c)}break;case 18:Be!==null&&(mt?(e=Be,op(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),ul(e)):op(Be,a.stateNode));break;case 4:l=Be,u=mt,Be=a.stateNode.containerInfo,mt=!0,ya(e,t,a),Be=l,mt=u;break;case 0:case 11:case 14:case 15:Ua(2,a,t),We||Ua(4,a,t),ya(e,t,a);break;case 1:We||(ta(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&ch(a,t,l)),ya(e,t,a);break;case 21:ya(e,t,a);break;case 22:We=(l=We)||a.memoizedState!==null,ya(e,t,a),We=l;break;default:ya(e,t,a)}}function vh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ul(e)}catch(a){je(t,t.return,a)}}}function Sh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ul(e)}catch(a){je(t,t.return,a)}}function Iv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ph),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ph),t;default:throw Error(s(435,e.tag))}}function vr(e,t){var a=Iv(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var u=u0.bind(null,e,l);l.then(u,u)}})}function gt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var u=a[l],c=e,g=t,S=g;e:for(;S!==null;){switch(S.tag){case 27:if(Ya(S.type)){Be=S.stateNode,mt=!1;break e}break;case 5:Be=S.stateNode,mt=!1;break e;case 3:case 4:Be=S.stateNode.containerInfo,mt=!0;break e}S=S.return}if(Be===null)throw Error(s(160));yh(c,g,u),Be=null,mt=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)bh(t,e),t=t.sibling}var Kt=null;function bh(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:gt(t,e),yt(e),l&4&&(Ua(3,e,e.return),Ql(3,e),Ua(5,e,e.return));break;case 1:gt(t,e),yt(e),l&512&&(We||a===null||ta(a,a.return)),l&64&&ga&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var u=Kt;if(gt(t,e),yt(e),l&512&&(We||a===null||ta(a,a.return)),l&4){var c=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,u=u.ownerDocument||u;t:switch(l){case"title":c=u.getElementsByTagName("title")[0],(!c||c[Sl]||c[tt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(l),u.head.insertBefore(c,u.querySelector("head > title"))),it(c,l,a),c[tt]=e,Ie(c),l=c;break e;case"link":var g=bp("link","href",u).get(l+(a.href||""));if(g){for(var S=0;S<g.length;S++)if(c=g[S],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){g.splice(S,1);break t}}c=u.createElement(l),it(c,l,a),u.head.appendChild(c);break;case"meta":if(g=bp("meta","content",u).get(l+(a.content||""))){for(S=0;S<g.length;S++)if(c=g[S],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){g.splice(S,1);break t}}c=u.createElement(l),it(c,l,a),u.head.appendChild(c);break;default:throw Error(s(468,l))}c[tt]=e,Ie(c),l=c}e.stateNode=l}else xp(u,e.type,e.stateNode);else e.stateNode=Sp(u,l,e.memoizedProps);else c!==l?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,l===null?xp(u,e.type,e.stateNode):Sp(u,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Ku(e,e.memoizedProps,a.memoizedProps)}break;case 27:gt(t,e),yt(e),l&512&&(We||a===null||ta(a,a.return)),a!==null&&l&4&&Ku(e,e.memoizedProps,a.memoizedProps);break;case 5:if(gt(t,e),yt(e),l&512&&(We||a===null||ta(a,a.return)),e.flags&32){u=e.stateNode;try{zn(u,"")}catch(J){je(e,e.return,J)}}l&4&&e.stateNode!=null&&(u=e.memoizedProps,Ku(e,u,a!==null?a.memoizedProps:u)),l&1024&&(Ju=!0);break;case 6:if(gt(t,e),yt(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(J){je(e,e.return,J)}}break;case 3:if(_r=null,u=Kt,Kt=kr(t.containerInfo),gt(t,e),Kt=u,yt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{ul(t.containerInfo)}catch(J){je(e,e.return,J)}Ju&&(Ju=!1,xh(e));break;case 4:l=Kt,Kt=kr(e.stateNode.containerInfo),gt(t,e),yt(e),Kt=l;break;case 12:gt(t,e),yt(e);break;case 31:gt(t,e),yt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,vr(e,l)));break;case 13:gt(t,e),yt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(br=xt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,vr(e,l)));break;case 22:u=e.memoizedState!==null;var N=a!==null&&a.memoizedState!==null,O=ga,M=We;if(ga=O||u,We=M||N,gt(t,e),We=M,ga=O,yt(e),l&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(a===null||N||ga||We||yn(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){N=a=t;try{if(c=N.stateNode,u)g=c.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{S=N.stateNode;var V=N.memoizedProps.style,z=V!=null&&V.hasOwnProperty("display")?V.display:null;S.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(J){je(N,N.return,J)}}}else if(t.tag===6){if(a===null){N=t;try{N.stateNode.nodeValue=u?"":N.memoizedProps}catch(J){je(N,N.return,J)}}}else if(t.tag===18){if(a===null){N=t;try{var k=N.stateNode;u?cp(k,!0):cp(N.stateNode,!1)}catch(J){je(N,N.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;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,vr(e,a))));break;case 19:gt(t,e),yt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,vr(e,l)));break;case 30:break;case 21:break;default:gt(t,e),yt(e)}}function yt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(dh(l)){a=l;break}l=l.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var u=a.stateNode,c=Zu(e);yr(e,c,u);break;case 5:var g=a.stateNode;a.flags&32&&(zn(g,""),a.flags&=-33);var S=Zu(e);yr(e,S,g);break;case 3:case 4:var N=a.stateNode.containerInfo,O=Zu(e);Xu(e,O,N);break;default:throw Error(s(161))}}catch(M){je(e,e.return,M)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;xh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function va(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)mh(e,t.alternate,t),t=t.sibling}function yn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ua(4,t,t.return),yn(t);break;case 1:ta(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&ch(t,t.return,a),yn(t);break;case 27:ti(t.stateNode);case 26:case 5:ta(t,t.return),yn(t);break;case 22:t.memoizedState===null&&yn(t);break;case 30:yn(t);break;default:yn(t)}e=e.sibling}}function Sa(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,u=e,c=t,g=c.flags;switch(c.tag){case 0:case 11:case 15:Sa(u,c,a),Ql(4,c);break;case 1:if(Sa(u,c,a),l=c,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(O){je(l,l.return,O)}if(l=c,u=l.updateQueue,u!==null){var S=l.stateNode;try{var N=u.shared.hiddenCallbacks;if(N!==null)for(u.shared.hiddenCallbacks=null,u=0;u<N.length;u++)Pf(N[u],S)}catch(O){je(l,l.return,O)}}a&&g&64&&oh(c),Kl(c,c.return);break;case 27:hh(c);case 26:case 5:Sa(u,c,a),a&&l===null&&g&4&&fh(c),Kl(c,c.return);break;case 12:Sa(u,c,a);break;case 31:Sa(u,c,a),a&&g&4&&vh(u,c);break;case 13:Sa(u,c,a),a&&g&4&&Sh(u,c);break;case 22:c.memoizedState===null&&Sa(u,c,a),Kl(c,c.return);break;case 30:break;default:Sa(u,c,a)}t=t.sibling}}function Fu(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&kl(a))}function Wu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&kl(e))}function Zt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Nh(e,t,a,l),t=t.sibling}function Nh(e,t,a,l){var u=t.flags;switch(t.tag){case 0:case 11:case 15:Zt(e,t,a,l),u&2048&&Ql(9,t);break;case 1:Zt(e,t,a,l);break;case 3:Zt(e,t,a,l),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&kl(e)));break;case 12:if(u&2048){Zt(e,t,a,l),e=t.stateNode;try{var c=t.memoizedProps,g=c.id,S=c.onPostCommit;typeof S=="function"&&S(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(N){je(t,t.return,N)}}else Zt(e,t,a,l);break;case 31:Zt(e,t,a,l);break;case 13:Zt(e,t,a,l);break;case 23:break;case 22:c=t.stateNode,g=t.alternate,t.memoizedState!==null?c._visibility&2?Zt(e,t,a,l):Zl(e,t):c._visibility&2?Zt(e,t,a,l):(c._visibility|=2,Wn(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),u&2048&&Fu(g,t);break;case 24:Zt(e,t,a,l),u&2048&&Wu(t.alternate,t);break;default:Zt(e,t,a,l)}}function Wn(e,t,a,l,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,g=t,S=a,N=l,O=g.flags;switch(g.tag){case 0:case 11:case 15:Wn(c,g,S,N,u),Ql(8,g);break;case 23:break;case 22:var M=g.stateNode;g.memoizedState!==null?M._visibility&2?Wn(c,g,S,N,u):Zl(c,g):(M._visibility|=2,Wn(c,g,S,N,u)),u&&O&2048&&Fu(g.alternate,g);break;case 24:Wn(c,g,S,N,u),u&&O&2048&&Wu(g.alternate,g);break;default:Wn(c,g,S,N,u)}t=t.sibling}}function Zl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,u=l.flags;switch(l.tag){case 22:Zl(a,l),u&2048&&Fu(l.alternate,l);break;case 24:Zl(a,l),u&2048&&Wu(l.alternate,l);break;default:Zl(a,l)}t=t.sibling}}var Xl=8192;function Pn(e,t,a){if(e.subtreeFlags&Xl)for(e=e.child;e!==null;)Eh(e,t,a),e=e.sibling}function Eh(e,t,a){switch(e.tag){case 26:Pn(e,t,a),e.flags&Xl&&e.memoizedState!==null&&H0(a,Kt,e.memoizedState,e.memoizedProps);break;case 5:Pn(e,t,a);break;case 3:case 4:var l=Kt;Kt=kr(e.stateNode.containerInfo),Pn(e,t,a),Kt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Xl,Xl=16777216,Pn(e,t,a),Xl=l):Pn(e,t,a));break;default:Pn(e,t,a)}}function Th(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 Jl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];et=l,Rh(l,e)}Th(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ch(e),e=e.sibling}function Ch(e){switch(e.tag){case 0:case 11:case 15:Jl(e),e.flags&2048&&Ua(9,e,e.return);break;case 3:Jl(e);break;case 12:Jl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Sr(e)):Jl(e);break;default:Jl(e)}}function Sr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];et=l,Rh(l,e)}Th(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ua(8,t,t.return),Sr(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Sr(t));break;default:Sr(t)}e=e.sibling}}function Rh(e,t){for(;et!==null;){var a=et;switch(a.tag){case 0:case 11:case 15:Ua(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:kl(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,et=l;else e:for(a=e;et!==null;){l=et;var u=l.sibling,c=l.return;if(gh(l),l===a){et=null;break e}if(u!==null){u.return=c,et=u;break e}et=c}}}var e0={getCacheForType:function(e){var t=nt(Xe),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return nt(Xe).controller.signal}},t0=typeof WeakMap=="function"?WeakMap:Map,Ne=0,Le=null,fe=null,he=0,Re=0,wt=null,Ba=!1,In=!1,Pu=!1,ba=0,Ye=0,Ha=0,vn=0,Iu=0,At=0,el=0,Fl=null,vt=null,eo=!1,br=0,jh=0,xr=1/0,Nr=null,Va=null,Pe=0,$a=null,tl=null,xa=0,to=0,ao=null,wh=null,Wl=0,no=null;function Ot(){return(Ne&2)!==0&&he!==0?he&-he:_.T!==null?oo():Gc()}function Ah(){if(At===0)if((he&536870912)===0||me){var e=Oi;Oi<<=1,(Oi&3932160)===0&&(Oi=262144),At=e}else At=536870912;return e=Rt.current,e!==null&&(e.flags|=32),At}function St(e,t,a){(e===Le&&(Re===2||Re===9)||e.cancelPendingCommit!==null)&&(al(e,0),qa(e,he,At,!1)),vl(e,a),((Ne&2)===0||e!==Le)&&(e===Le&&((Ne&2)===0&&(vn|=a),Ye===4&&qa(e,he,At,!1)),aa(e))}function Oh(e,t,a){if((Ne&6)!==0)throw Error(s(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||yl(e,t),u=l?l0(e,t):io(e,t,!0),c=l;do{if(u===0){In&&!l&&qa(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!a0(a)){u=io(e,t,!1),c=!1;continue}if(u===2){if(c=t,e.errorRecoveryDisabledLanes&c)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var S=e;u=Fl;var N=S.current.memoizedState.isDehydrated;if(N&&(al(S,g).flags|=256),g=io(S,g,!1),g!==2){if(Pu&&!N){S.errorRecoveryDisabledLanes|=c,vn|=c,u=4;break e}c=vt,vt=u,c!==null&&(vt===null?vt=c:vt.push.apply(vt,c))}u=g}if(c=!1,u!==2)continue}}if(u===1){al(e,0),qa(e,t,0,!0);break}e:{switch(l=e,c=u,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:qa(l,t,At,!Ba);break e;case 2:vt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(u=br+300-xt(),10<u)){if(qa(l,t,At,!Ba),ki(l,0,!0)!==0)break e;xa=t,l.timeoutHandle=sp(zh.bind(null,l,a,vt,Nr,eo,t,At,vn,el,Ba,c,"Throttled",-0,0),u);break e}zh(l,a,vt,Nr,eo,t,At,vn,el,Ba,c,null,-0,0)}}break}while(!0);aa(e)}function zh(e,t,a,l,u,c,g,S,N,O,M,V,z,k){if(e.timeoutHandle=-1,V=t.subtreeFlags,V&8192||(V&16785408)===16785408){V={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ra},Eh(t,c,V);var J=(c&62914560)===c?br-xt():(c&4194048)===c?jh-xt():0;if(J=V0(V,J),J!==null){xa=c,e.cancelPendingCommit=J(Hh.bind(null,e,t,c,a,l,u,g,S,N,M,V,null,z,k)),qa(e,c,g,!O);return}}Hh(e,t,c,a,l,u,g,S,N)}function a0(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var u=a[l],c=u.getSnapshot;u=u.value;try{if(!Tt(c(),u))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function qa(e,t,a,l){t&=~Iu,t&=~vn,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var u=t;0<u;){var c=31-Et(u),g=1<<c;l[c]=-1,u&=~g}a!==0&&Vc(e,a,t)}function Er(){return(Ne&6)===0?(Pl(0),!1):!0}function lo(){if(fe!==null){if(Re===0)var e=fe.return;else e=fe,ca=on=null,bu(e),Kn=null,_l=0,e=fe;for(;e!==null;)uh(e.alternate,e),e=e.return;fe=null}}function al(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,N0(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),xa=0,lo(),Le=e,fe=a=ua(e.current,null),he=t,Re=0,wt=null,Ba=!1,In=yl(e,t),Pu=!1,el=At=Iu=vn=Ha=Ye=0,vt=Fl=null,eo=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var u=31-Et(l),c=1<<u;t|=e[u],l&=~c}return ba=t,Yi(),a}function kh(e,t){ue=null,_.H=ql,t===Qn||t===Pi?(t=Xf(),Re=3):t===uu?(t=Xf(),Re=4):Re=t===Mu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,wt=t,fe===null&&(Ye=1,dr(e,Mt(t,e.current)))}function Lh(){var e=Rt.current;return e===null?!0:(he&4194048)===he?Vt===null:(he&62914560)===he||(he&536870912)!==0?e===Vt:!1}function _h(){var e=_.H;return _.H=ql,e===null?ql:e}function Dh(){var e=_.A;return _.A=e0,e}function Tr(){Ye=4,Ba||(he&4194048)!==he&&Rt.current!==null||(In=!0),(Ha&134217727)===0&&(vn&134217727)===0||Le===null||qa(Le,he,At,!1)}function io(e,t,a){var l=Ne;Ne|=2;var u=_h(),c=Dh();(Le!==e||he!==t)&&(Nr=null,al(e,t)),t=!1;var g=Ye;e:do try{if(Re!==0&&fe!==null){var S=fe,N=wt;switch(Re){case 8:lo(),g=6;break e;case 3:case 2:case 9:case 6:Rt.current===null&&(t=!0);var O=Re;if(Re=0,wt=null,nl(e,S,N,O),a&&In){g=0;break e}break;default:O=Re,Re=0,wt=null,nl(e,S,N,O)}}n0(),g=Ye;break}catch(M){kh(e,M)}while(!0);return t&&e.shellSuspendCounter++,ca=on=null,Ne=l,_.H=u,_.A=c,fe===null&&(Le=null,he=0,Yi()),g}function n0(){for(;fe!==null;)Mh(fe)}function l0(e,t){var a=Ne;Ne|=2;var l=_h(),u=Dh();Le!==e||he!==t?(Nr=null,xr=xt()+500,al(e,t)):In=yl(e,t);e:do try{if(Re!==0&&fe!==null){t=fe;var c=wt;t:switch(Re){case 1:Re=0,wt=null,nl(e,t,c,1);break;case 2:case 9:if(Kf(c)){Re=0,wt=null,Uh(t);break}t=function(){Re!==2&&Re!==9||Le!==e||(Re=7),aa(e)},c.then(t,t);break e;case 3:Re=7;break e;case 4:Re=5;break e;case 7:Kf(c)?(Re=0,wt=null,Uh(t)):(Re=0,wt=null,nl(e,t,c,7));break;case 5:var g=null;switch(fe.tag){case 26:g=fe.memoizedState;case 5:case 27:var S=fe;if(g?Np(g):S.stateNode.complete){Re=0,wt=null;var N=S.sibling;if(N!==null)fe=N;else{var O=S.return;O!==null?(fe=O,Cr(O)):fe=null}break t}}Re=0,wt=null,nl(e,t,c,5);break;case 6:Re=0,wt=null,nl(e,t,c,6);break;case 8:lo(),Ye=6;break e;default:throw Error(s(462))}}i0();break}catch(M){kh(e,M)}while(!0);return ca=on=null,_.H=l,_.A=u,Ne=a,fe!==null?0:(Le=null,he=0,Yi(),Ye)}function i0(){for(;fe!==null&&!wy();)Mh(fe)}function Mh(e){var t=rh(e.alternate,e,ba);e.memoizedProps=e.pendingProps,t===null?Cr(e):fe=t}function Uh(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=eh(a,t,t.pendingProps,t.type,void 0,he);break;case 11:t=eh(a,t,t.pendingProps,t.type.render,t.ref,he);break;case 5:bu(t);default:uh(a,t),t=fe=Df(t,ba),t=rh(a,t,ba)}e.memoizedProps=e.pendingProps,t===null?Cr(e):fe=t}function nl(e,t,a,l){ca=on=null,bu(t),Kn=null,_l=0;var u=t.return;try{if(Zv(e,u,t,a,he)){Ye=1,dr(e,Mt(a,e.current)),fe=null;return}}catch(c){if(u!==null)throw fe=u,c;Ye=1,dr(e,Mt(a,e.current)),fe=null;return}t.flags&32768?(me||l===1?e=!0:In||(he&536870912)!==0?e=!1:(Ba=e=!0,(l===2||l===9||l===3||l===6)&&(l=Rt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Bh(t,e)):Cr(t)}function Cr(e){var t=e;do{if((t.flags&32768)!==0){Bh(t,Ba);return}e=t.return;var a=Fv(t.alternate,t,ba);if(a!==null){fe=a;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);Ye===0&&(Ye=5)}function Bh(e,t){do{var a=Wv(e.alternate,e);if(a!==null){a.flags&=32767,fe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){fe=e;return}fe=e=a}while(e!==null);Ye=6,fe=null}function Hh(e,t,a,l,u,c,g,S,N){e.cancelPendingCommit=null;do Rr();while(Pe!==0);if((Ne&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=Zs,By(e,a,c,g,S,N),e===Le&&(fe=Le=null,he=0),tl=t,$a=e,xa=a,to=c,ao=u,wh=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,o0(wi,function(){return Yh(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=_.T,_.T=null,u=Y.p,Y.p=2,g=Ne,Ne|=4;try{Pv(e,t,a)}finally{Ne=g,Y.p=u,_.T=l}}Pe=1,Vh(),$h(),qh()}}function Vh(){if(Pe===1){Pe=0;var e=$a,t=tl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=_.T,_.T=null;var l=Y.p;Y.p=2;var u=Ne;Ne|=4;try{bh(t,e);var c=vo,g=Rf(e.containerInfo),S=c.focusedElem,N=c.selectionRange;if(g!==S&&S&&S.ownerDocument&&Cf(S.ownerDocument.documentElement,S)){if(N!==null&&qs(S)){var O=N.start,M=N.end;if(M===void 0&&(M=O),"selectionStart"in S)S.selectionStart=O,S.selectionEnd=Math.min(M,S.value.length);else{var V=S.ownerDocument||document,z=V&&V.defaultView||window;if(z.getSelection){var k=z.getSelection(),J=S.textContent.length,te=Math.min(N.start,J),ze=N.end===void 0?te:Math.min(N.end,J);!k.extend&&te>ze&&(g=ze,ze=te,te=g);var w=Tf(S,te),C=Tf(S,ze);if(w&&C&&(k.rangeCount!==1||k.anchorNode!==w.node||k.anchorOffset!==w.offset||k.focusNode!==C.node||k.focusOffset!==C.offset)){var A=V.createRange();A.setStart(w.node,w.offset),k.removeAllRanges(),te>ze?(k.addRange(A),k.extend(C.node,C.offset)):(A.setEnd(C.node,C.offset),k.addRange(A))}}}}for(V=[],k=S;k=k.parentNode;)k.nodeType===1&&V.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<V.length;S++){var B=V[S];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}Br=!!yo,vo=yo=null}finally{Ne=u,Y.p=l,_.T=a}}e.current=t,Pe=2}}function $h(){if(Pe===2){Pe=0;var e=$a,t=tl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=_.T,_.T=null;var l=Y.p;Y.p=2;var u=Ne;Ne|=4;try{mh(e,t.alternate,t)}finally{Ne=u,Y.p=l,_.T=a}}Pe=3}}function qh(){if(Pe===4||Pe===3){Pe=0,Ay();var e=$a,t=tl,a=xa,l=wh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Pe=5:(Pe=0,tl=$a=null,Gh(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Va=null),Es(a),t=t.stateNode,Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(gl,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=_.T,u=Y.p,Y.p=2,_.T=null;try{for(var c=e.onRecoverableError,g=0;g<l.length;g++){var S=l[g];c(S.value,{componentStack:S.stack})}}finally{_.T=t,Y.p=u}}(xa&3)!==0&&Rr(),aa(e),u=e.pendingLanes,(a&261930)!==0&&(u&42)!==0?e===no?Wl++:(Wl=0,no=e):Wl=0,Pl(0)}}function Gh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,kl(t)))}function Rr(){return Vh(),$h(),qh(),Yh()}function Yh(){if(Pe!==5)return!1;var e=$a,t=to;to=0;var a=Es(xa),l=_.T,u=Y.p;try{Y.p=32>a?32:a,_.T=null,a=ao,ao=null;var c=$a,g=xa;if(Pe=0,tl=$a=null,xa=0,(Ne&6)!==0)throw Error(s(331));var S=Ne;if(Ne|=4,Ch(c.current),Nh(c,c.current,g,a),Ne=S,Pl(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(gl,c)}catch{}return!0}finally{Y.p=u,_.T=l,Gh(e,t)}}function Qh(e,t,a){t=Mt(a,t),t=Du(e.stateNode,t,2),e=_a(e,t,2),e!==null&&(vl(e,2),aa(e))}function je(e,t,a){if(e.tag===3)Qh(e,e,a);else for(;t!==null;){if(t.tag===3){Qh(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Va===null||!Va.has(l))){e=Mt(a,e),a=Kd(2),l=_a(t,a,2),l!==null&&(Zd(a,l,t,e),vl(l,2),aa(l));break}}t=t.return}}function ro(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new t0;var u=new Set;l.set(t,u)}else u=l.get(t),u===void 0&&(u=new Set,l.set(t,u));u.has(a)||(Pu=!0,u.add(a),e=r0.bind(null,e,t,a),t.then(e,e))}function r0(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Le===e&&(he&a)===a&&(Ye===4||Ye===3&&(he&62914560)===he&&300>xt()-br?(Ne&2)===0&&al(e,0):Iu|=a,el===he&&(el=0)),aa(e)}function Kh(e,t){t===0&&(t=Hc()),e=rn(e,t),e!==null&&(vl(e,t),aa(e))}function s0(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Kh(e,a)}function u0(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,u=e.memoizedState;u!==null&&(a=u.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),Kh(e,a)}function o0(e,t){return Ss(e,t)}var jr=null,ll=null,so=!1,wr=!1,uo=!1,Ga=0;function aa(e){e!==ll&&e.next===null&&(ll===null?jr=ll=e:ll=ll.next=e),wr=!0,so||(so=!0,f0())}function Pl(e,t){if(!uo&&wr){uo=!0;do for(var a=!1,l=jr;l!==null;){if(e!==0){var u=l.pendingLanes;if(u===0)var c=0;else{var g=l.suspendedLanes,S=l.pingedLanes;c=(1<<31-Et(42|e)+1)-1,c&=u&~(g&~S),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,Fh(l,c))}else c=he,c=ki(l,l===Le?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||yl(l,c)||(a=!0,Fh(l,c));l=l.next}while(a);uo=!1}}function c0(){Zh()}function Zh(){wr=so=!1;var e=0;Ga!==0&&x0()&&(e=Ga);for(var t=xt(),a=null,l=jr;l!==null;){var u=l.next,c=Xh(l,t);c===0?(l.next=null,a===null?jr=u:a.next=u,u===null&&(ll=a)):(a=l,(e!==0||(c&3)!==0)&&(wr=!0)),l=u}Pe!==0&&Pe!==5||Pl(e),Ga!==0&&(Ga=0)}function Xh(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,u=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var g=31-Et(c),S=1<<g,N=u[g];N===-1?((S&a)===0||(S&l)!==0)&&(u[g]=Uy(S,t)):N<=t&&(e.expiredLanes|=S),c&=~S}if(t=Le,a=he,a=ki(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Re===2||Re===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&bs(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||yl(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&bs(l),Es(a)){case 2:case 8:a=Uc;break;case 32:a=wi;break;case 268435456:a=Bc;break;default:a=wi}return l=Jh.bind(null,e),a=Ss(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&bs(l),e.callbackPriority=2,e.callbackNode=null,2}function Jh(e,t){if(Pe!==0&&Pe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Rr()&&e.callbackNode!==a)return null;var l=he;return l=ki(e,e===Le?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Oh(e,l,t),Xh(e,xt()),e.callbackNode!=null&&e.callbackNode===a?Jh.bind(null,e):null)}function Fh(e,t){if(Rr())return null;Oh(e,t,!0)}function f0(){E0(function(){(Ne&6)!==0?Ss(Mc,c0):Zh()})}function oo(){if(Ga===0){var e=Gn;e===0&&(e=Ai,Ai<<=1,(Ai&261888)===0&&(Ai=256)),Ga=e}return Ga}function Wh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Mi(""+e)}function Ph(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function d0(e,t,a,l,u){if(t==="submit"&&a&&a.stateNode===u){var c=Wh((u[ht]||null).action),g=l.submitter;g&&(t=(t=g[ht]||null)?Wh(t.formAction):g.getAttribute("formAction"),t!==null&&(c=t,g=null));var S=new Vi("action","action",null,l,u);e.push({event:S,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ga!==0){var N=g?Ph(u,g):new FormData(u);Au(a,{pending:!0,data:N,method:u.method,action:c},null,N)}}else typeof c=="function"&&(S.preventDefault(),N=g?Ph(u,g):new FormData(u),Au(a,{pending:!0,data:N,method:u.method,action:c},c,N))},currentTarget:u}]})}}for(var co=0;co<Ks.length;co++){var fo=Ks[co],h0=fo.toLowerCase(),p0=fo[0].toUpperCase()+fo.slice(1);Qt(h0,"on"+p0)}Qt(Af,"onAnimationEnd"),Qt(Of,"onAnimationIteration"),Qt(zf,"onAnimationStart"),Qt("dblclick","onDoubleClick"),Qt("focusin","onFocus"),Qt("focusout","onBlur"),Qt(Ov,"onTransitionRun"),Qt(zv,"onTransitionStart"),Qt(kv,"onTransitionCancel"),Qt(kf,"onTransitionEnd"),An("onMouseEnter",["mouseout","mouseover"]),An("onMouseLeave",["mouseout","mouseover"]),An("onPointerEnter",["pointerout","pointerover"]),An("onPointerLeave",["pointerout","pointerover"]),tn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),tn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),tn("onBeforeInput",["compositionend","keypress","textInput","paste"]),tn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),tn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),tn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Il="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(" "),m0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Il));function Ih(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],u=l.event;l=l.listeners;e:{var c=void 0;if(t)for(var g=l.length-1;0<=g;g--){var S=l[g],N=S.instance,O=S.currentTarget;if(S=S.listener,N!==c&&u.isPropagationStopped())break e;c=S,u.currentTarget=O;try{c(u)}catch(M){Gi(M)}u.currentTarget=null,c=N}else for(g=0;g<l.length;g++){if(S=l[g],N=S.instance,O=S.currentTarget,S=S.listener,N!==c&&u.isPropagationStopped())break e;c=S,u.currentTarget=O;try{c(u)}catch(M){Gi(M)}u.currentTarget=null,c=N}}}}function de(e,t){var a=t[Ts];a===void 0&&(a=t[Ts]=new Set);var l=e+"__bubble";a.has(l)||(ep(t,e,2,!1),a.add(l))}function ho(e,t,a){var l=0;t&&(l|=4),ep(a,e,l,t)}var Ar="_reactListening"+Math.random().toString(36).slice(2);function po(e){if(!e[Ar]){e[Ar]=!0,Kc.forEach(function(a){a!=="selectionchange"&&(m0.has(a)||ho(a,!1,e),ho(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ar]||(t[Ar]=!0,ho("selectionchange",!1,t))}}function ep(e,t,a,l){switch(Ap(t)){case 2:var u=G0;break;case 8:u=Y0;break;default:u=Ao}a=u.bind(null,t,a,e),u=void 0,!Ls||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),l?u!==void 0?e.addEventListener(t,a,{capture:!0,passive:u}):e.addEventListener(t,a,!0):u!==void 0?e.addEventListener(t,a,{passive:u}):e.addEventListener(t,a,!1)}function mo(e,t,a,l,u){var c=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var g=l.tag;if(g===3||g===4){var S=l.stateNode.containerInfo;if(S===u)break;if(g===4)for(g=l.return;g!==null;){var N=g.tag;if((N===3||N===4)&&g.stateNode.containerInfo===u)return;g=g.return}for(;S!==null;){if(g=Rn(S),g===null)return;if(N=g.tag,N===5||N===6||N===26||N===27){l=c=g;continue e}S=S.parentNode}}l=l.return}lf(function(){var O=c,M=zs(a),V=[];e:{var z=Lf.get(e);if(z!==void 0){var k=Vi,J=e;switch(e){case"keypress":if(Bi(a)===0)break e;case"keydown":case"keyup":k=uv;break;case"focusin":J="focus",k=Us;break;case"focusout":J="blur",k=Us;break;case"beforeblur":case"afterblur":k=Us;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k=uf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=Fy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=fv;break;case Af:case Of:case zf:k=Iy;break;case kf:k=hv;break;case"scroll":case"scrollend":k=Xy;break;case"wheel":k=mv;break;case"copy":case"cut":case"paste":k=tv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=cf;break;case"toggle":case"beforetoggle":k=yv}var te=(t&4)!==0,ze=!te&&(e==="scroll"||e==="scrollend"),w=te?z!==null?z+"Capture":null:z;te=[];for(var C=O,A;C!==null;){var B=C;if(A=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||A===null||w===null||(B=xl(C,w),B!=null&&te.push(ei(C,B,A))),ze)break;C=C.return}0<te.length&&(z=new k(z,J,null,a,M),V.push({event:z,listeners:te}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",z&&a!==Os&&(J=a.relatedTarget||a.fromElement)&&(Rn(J)||J[Cn]))break e;if((k||z)&&(z=M.window===M?M:(z=M.ownerDocument)?z.defaultView||z.parentWindow:window,k?(J=a.relatedTarget||a.toElement,k=O,J=J?Rn(J):null,J!==null&&(ze=f(J),te=J.tag,J!==ze||te!==5&&te!==27&&te!==6)&&(J=null)):(k=null,J=O),k!==J)){if(te=uf,B="onMouseLeave",w="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(te=cf,B="onPointerLeave",w="onPointerEnter",C="pointer"),ze=k==null?z:bl(k),A=J==null?z:bl(J),z=new te(B,C+"leave",k,a,M),z.target=ze,z.relatedTarget=A,B=null,Rn(M)===O&&(te=new te(w,C+"enter",J,a,M),te.target=A,te.relatedTarget=ze,B=te),ze=B,k&&J)t:{for(te=g0,w=k,C=J,A=0,B=w;B;B=te(B))A++;B=0;for(var P=C;P;P=te(P))B++;for(;0<A-B;)w=te(w),A--;for(;0<B-A;)C=te(C),B--;for(;A--;){if(w===C||C!==null&&w===C.alternate){te=w;break t}w=te(w),C=te(C)}te=null}else te=null;k!==null&&tp(V,z,k,te,!1),J!==null&&ze!==null&&tp(V,ze,J,te,!0)}}e:{if(z=O?bl(O):window,k=z.nodeName&&z.nodeName.toLowerCase(),k==="select"||k==="input"&&z.type==="file")var ve=vf;else if(gf(z))if(Sf)ve=jv;else{ve=Cv;var F=Tv}else k=z.nodeName,!k||k.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?O&&As(O.elementType)&&(ve=vf):ve=Rv;if(ve&&(ve=ve(e,O))){yf(V,ve,a,M);break e}F&&F(e,z,O),e==="focusout"&&O&&z.type==="number"&&O.memoizedProps.value!=null&&ws(z,"number",z.value)}switch(F=O?bl(O):window,e){case"focusin":(gf(F)||F.contentEditable==="true")&&(Dn=F,Gs=O,Al=null);break;case"focusout":Al=Gs=Dn=null;break;case"mousedown":Ys=!0;break;case"contextmenu":case"mouseup":case"dragend":Ys=!1,jf(V,a,M);break;case"selectionchange":if(Av)break;case"keydown":case"keyup":jf(V,a,M)}var oe;if(Hs)e:{switch(e){case"compositionstart":var pe="onCompositionStart";break e;case"compositionend":pe="onCompositionEnd";break e;case"compositionupdate":pe="onCompositionUpdate";break e}pe=void 0}else _n?pf(e,a)&&(pe="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(pe="onCompositionStart");pe&&(ff&&a.locale!=="ko"&&(_n||pe!=="onCompositionStart"?pe==="onCompositionEnd"&&_n&&(oe=rf()):(ja=M,_s="value"in ja?ja.value:ja.textContent,_n=!0)),F=Or(O,pe),0<F.length&&(pe=new of(pe,e,null,a,M),V.push({event:pe,listeners:F}),oe?pe.data=oe:(oe=mf(a),oe!==null&&(pe.data=oe)))),(oe=Sv?bv(e,a):xv(e,a))&&(pe=Or(O,"onBeforeInput"),0<pe.length&&(F=new of("onBeforeInput","beforeinput",null,a,M),V.push({event:F,listeners:pe}),F.data=oe)),d0(V,e,O,a,M)}Ih(V,t)})}function ei(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Or(e,t){for(var a=t+"Capture",l=[];e!==null;){var u=e,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=xl(e,a),u!=null&&l.unshift(ei(e,u,c)),u=xl(e,t),u!=null&&l.push(ei(e,u,c))),e.tag===3)return l;e=e.return}return[]}function g0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function tp(e,t,a,l,u){for(var c=t._reactName,g=[];a!==null&&a!==l;){var S=a,N=S.alternate,O=S.stateNode;if(S=S.tag,N!==null&&N===l)break;S!==5&&S!==26&&S!==27||O===null||(N=O,u?(O=xl(a,c),O!=null&&g.unshift(ei(a,O,N))):u||(O=xl(a,c),O!=null&&g.push(ei(a,O,N)))),a=a.return}g.length!==0&&e.push({event:t,listeners:g})}var y0=/\r\n?/g,v0=/\u0000|\uFFFD/g;function ap(e){return(typeof e=="string"?e:""+e).replace(y0,`
|
|
59
|
+
`).replace(v0,"")}function np(e,t){return t=ap(t),ap(e)===t}function Oe(e,t,a,l,u,c){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||zn(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&zn(e,""+l);break;case"className":_i(e,"class",l);break;case"tabIndex":_i(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":_i(e,a,l);break;case"style":af(e,l,c);break;case"data":if(t!=="object"){_i(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Mi(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(t!=="input"&&Oe(e,t,"name",u.name,u,null),Oe(e,t,"formEncType",u.formEncType,u,null),Oe(e,t,"formMethod",u.formMethod,u,null),Oe(e,t,"formTarget",u.formTarget,u,null)):(Oe(e,t,"encType",u.encType,u,null),Oe(e,t,"method",u.method,u,null),Oe(e,t,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Mi(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=ra);break;case"onScroll":l!=null&&de("scroll",e);break;case"onScrollEnd":l!=null&&de("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=Mi(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":de("beforetoggle",e),de("toggle",e),Li(e,"popover",l);break;case"xlinkActuate":ia(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":ia(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":ia(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":ia(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":ia(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":ia(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":ia(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":ia(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":ia(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Li(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Ky.get(a)||a,Li(e,a,l))}}function go(e,t,a,l,u,c){switch(a){case"style":af(e,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof l=="string"?zn(e,l):(typeof l=="number"||typeof l=="bigint")&&zn(e,""+l);break;case"onScroll":l!=null&&de("scroll",e);break;case"onScrollEnd":l!=null&&de("scrollend",e);break;case"onClick":l!=null&&(e.onclick=ra);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Zc.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),t=a.slice(2,u?a.length-7:void 0),c=e[ht]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,u),typeof l=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,u);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Li(e,a,l)}}}function it(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":de("error",e),de("load",e);var l=!1,u=!1,c;for(c in a)if(a.hasOwnProperty(c)){var g=a[c];if(g!=null)switch(c){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Oe(e,t,c,g,a,null)}}u&&Oe(e,t,"srcSet",a.srcSet,a,null),l&&Oe(e,t,"src",a.src,a,null);return;case"input":de("invalid",e);var S=c=g=u=null,N=null,O=null;for(l in a)if(a.hasOwnProperty(l)){var M=a[l];if(M!=null)switch(l){case"name":u=M;break;case"type":g=M;break;case"checked":N=M;break;case"defaultChecked":O=M;break;case"value":c=M;break;case"defaultValue":S=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(s(137,t));break;default:Oe(e,t,l,M,a,null)}}Pc(e,c,S,N,O,g,u,!1);return;case"select":de("invalid",e),l=g=c=null;for(u in a)if(a.hasOwnProperty(u)&&(S=a[u],S!=null))switch(u){case"value":c=S;break;case"defaultValue":g=S;break;case"multiple":l=S;default:Oe(e,t,u,S,a,null)}t=c,a=g,e.multiple=!!l,t!=null?On(e,!!l,t,!1):a!=null&&On(e,!!l,a,!0);return;case"textarea":de("invalid",e),c=u=l=null;for(g in a)if(a.hasOwnProperty(g)&&(S=a[g],S!=null))switch(g){case"value":l=S;break;case"defaultValue":u=S;break;case"children":c=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(s(91));break;default:Oe(e,t,g,S,a,null)}ef(e,l,u,c);return;case"option":for(N in a)if(a.hasOwnProperty(N)&&(l=a[N],l!=null))switch(N){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Oe(e,t,N,l,a,null)}return;case"dialog":de("beforetoggle",e),de("toggle",e),de("cancel",e),de("close",e);break;case"iframe":case"object":de("load",e);break;case"video":case"audio":for(l=0;l<Il.length;l++)de(Il[l],e);break;case"image":de("error",e),de("load",e);break;case"details":de("toggle",e);break;case"embed":case"source":case"link":de("error",e),de("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(O in a)if(a.hasOwnProperty(O)&&(l=a[O],l!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Oe(e,t,O,l,a,null)}return;default:if(As(t)){for(M in a)a.hasOwnProperty(M)&&(l=a[M],l!==void 0&&go(e,t,M,l,a,void 0));return}}for(S in a)a.hasOwnProperty(S)&&(l=a[S],l!=null&&Oe(e,t,S,l,a,null))}function S0(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,c=null,g=null,S=null,N=null,O=null,M=null;for(k in a){var V=a[k];if(a.hasOwnProperty(k)&&V!=null)switch(k){case"checked":break;case"value":break;case"defaultValue":N=V;default:l.hasOwnProperty(k)||Oe(e,t,k,null,l,V)}}for(var z in l){var k=l[z];if(V=a[z],l.hasOwnProperty(z)&&(k!=null||V!=null))switch(z){case"type":c=k;break;case"name":u=k;break;case"checked":O=k;break;case"defaultChecked":M=k;break;case"value":g=k;break;case"defaultValue":S=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(s(137,t));break;default:k!==V&&Oe(e,t,z,k,l,V)}}js(e,g,S,N,O,M,c,u);return;case"select":k=g=S=z=null;for(c in a)if(N=a[c],a.hasOwnProperty(c)&&N!=null)switch(c){case"value":break;case"multiple":k=N;default:l.hasOwnProperty(c)||Oe(e,t,c,null,l,N)}for(u in l)if(c=l[u],N=a[u],l.hasOwnProperty(u)&&(c!=null||N!=null))switch(u){case"value":z=c;break;case"defaultValue":S=c;break;case"multiple":g=c;default:c!==N&&Oe(e,t,u,c,l,N)}t=S,a=g,l=k,z!=null?On(e,!!a,z,!1):!!l!=!!a&&(t!=null?On(e,!!a,t,!0):On(e,!!a,a?[]:"",!1));return;case"textarea":k=z=null;for(S in a)if(u=a[S],a.hasOwnProperty(S)&&u!=null&&!l.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Oe(e,t,S,null,l,u)}for(g in l)if(u=l[g],c=a[g],l.hasOwnProperty(g)&&(u!=null||c!=null))switch(g){case"value":z=u;break;case"defaultValue":k=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(s(91));break;default:u!==c&&Oe(e,t,g,u,l,c)}Ic(e,z,k);return;case"option":for(var J in a)if(z=a[J],a.hasOwnProperty(J)&&z!=null&&!l.hasOwnProperty(J))switch(J){case"selected":e.selected=!1;break;default:Oe(e,t,J,null,l,z)}for(N in l)if(z=l[N],k=a[N],l.hasOwnProperty(N)&&z!==k&&(z!=null||k!=null))switch(N){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Oe(e,t,N,z,l,k)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var te in a)z=a[te],a.hasOwnProperty(te)&&z!=null&&!l.hasOwnProperty(te)&&Oe(e,t,te,null,l,z);for(O in l)if(z=l[O],k=a[O],l.hasOwnProperty(O)&&z!==k&&(z!=null||k!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(s(137,t));break;default:Oe(e,t,O,z,l,k)}return;default:if(As(t)){for(var ze in a)z=a[ze],a.hasOwnProperty(ze)&&z!==void 0&&!l.hasOwnProperty(ze)&&go(e,t,ze,void 0,l,z);for(M in l)z=l[M],k=a[M],!l.hasOwnProperty(M)||z===k||z===void 0&&k===void 0||go(e,t,M,z,l,k);return}}for(var w in a)z=a[w],a.hasOwnProperty(w)&&z!=null&&!l.hasOwnProperty(w)&&Oe(e,t,w,null,l,z);for(V in l)z=l[V],k=a[V],!l.hasOwnProperty(V)||z===k||z==null&&k==null||Oe(e,t,V,z,l,k)}function lp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function b0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var u=a[l],c=u.transferSize,g=u.initiatorType,S=u.duration;if(c&&S&&lp(g)){for(g=0,S=u.responseEnd,l+=1;l<a.length;l++){var N=a[l],O=N.startTime;if(O>S)break;var M=N.transferSize,V=N.initiatorType;M&&lp(V)&&(N=N.responseEnd,g+=M*(N<S?1:(S-O)/(N-O)))}if(--l,t+=8*(c+g)/(u.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var yo=null,vo=null;function zr(e){return e.nodeType===9?e:e.ownerDocument}function ip(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 rp(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 So(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 bo=null;function x0(){var e=window.event;return e&&e.type==="popstate"?e===bo?!1:(bo=e,!0):(bo=null,!1)}var sp=typeof setTimeout=="function"?setTimeout:void 0,N0=typeof clearTimeout=="function"?clearTimeout:void 0,up=typeof Promise=="function"?Promise:void 0,E0=typeof queueMicrotask=="function"?queueMicrotask:typeof up<"u"?function(e){return up.resolve(null).then(e).catch(T0)}:sp;function T0(e){setTimeout(function(){throw e})}function Ya(e){return e==="head"}function op(e,t){var a=t,l=0;do{var u=a.nextSibling;if(e.removeChild(a),u&&u.nodeType===8)if(a=u.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(u),ul(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")ti(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,ti(a);for(var c=a.firstChild;c;){var g=c.nextSibling,S=c.nodeName;c[Sl]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=g}}else a==="body"&&ti(e.ownerDocument.body);a=u}while(a);ul(t)}function cp(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function xo(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":xo(a),Cs(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function C0(e,t,a,l){for(;e.nodeType===1;){var u=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Sl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=$t(e.nextSibling),e===null)break}return null}function R0(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=$t(e.nextSibling),e===null))return null;return e}function fp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=$t(e.nextSibling),e===null))return null;return e}function No(e){return e.data==="$?"||e.data==="$~"}function Eo(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function j0(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function $t(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var To=null;function dp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return $t(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function hp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function pp(e,t,a){switch(t=zr(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function ti(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Cs(e)}var qt=new Map,mp=new Set;function kr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Na=Y.d;Y.d={f:w0,r:A0,D:O0,C:z0,L:k0,m:L0,X:D0,S:_0,M:M0};function w0(){var e=Na.f(),t=Er();return e||t}function A0(e){var t=jn(e);t!==null&&t.tag===5&&t.type==="form"?kd(t):Na.r(e)}var il=typeof document>"u"?null:document;function gp(e,t,a){var l=il;if(l&&typeof t=="string"&&t){var u=_t(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),mp.has(u)||(mp.add(u),e={rel:e,crossOrigin:a,href:t},l.querySelector(u)===null&&(t=l.createElement("link"),it(t,"link",e),Ie(t),l.head.appendChild(t)))}}function O0(e){Na.D(e),gp("dns-prefetch",e,null)}function z0(e,t){Na.C(e,t),gp("preconnect",e,t)}function k0(e,t,a){Na.L(e,t,a);var l=il;if(l&&e&&t){var u='link[rel="preload"][as="'+_t(t)+'"]';t==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+_t(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+_t(a.imageSizes)+'"]')):u+='[href="'+_t(e)+'"]';var c=u;switch(t){case"style":c=rl(e);break;case"script":c=sl(e)}qt.has(c)||(e=v({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),qt.set(c,e),l.querySelector(u)!==null||t==="style"&&l.querySelector(ai(c))||t==="script"&&l.querySelector(ni(c))||(t=l.createElement("link"),it(t,"link",e),Ie(t),l.head.appendChild(t)))}}function L0(e,t){Na.m(e,t);var a=il;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+_t(l)+'"][href="'+_t(e)+'"]',c=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=sl(e)}if(!qt.has(c)&&(e=v({rel:"modulepreload",href:e},t),qt.set(c,e),a.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(ni(c)))return}l=a.createElement("link"),it(l,"link",e),Ie(l),a.head.appendChild(l)}}}function _0(e,t,a){Na.S(e,t,a);var l=il;if(l&&e){var u=wn(l).hoistableStyles,c=rl(e);t=t||"default";var g=u.get(c);if(!g){var S={loading:0,preload:null};if(g=l.querySelector(ai(c)))S.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},a),(a=qt.get(c))&&Co(e,a);var N=g=l.createElement("link");Ie(N),it(N,"link",e),N._p=new Promise(function(O,M){N.onload=O,N.onerror=M}),N.addEventListener("load",function(){S.loading|=1}),N.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Lr(g,t,l)}g={type:"stylesheet",instance:g,count:1,state:S},u.set(c,g)}}}function D0(e,t){Na.X(e,t);var a=il;if(a&&e){var l=wn(a).hoistableScripts,u=sl(e),c=l.get(u);c||(c=a.querySelector(ni(u)),c||(e=v({src:e,async:!0},t),(t=qt.get(u))&&Ro(e,t),c=a.createElement("script"),Ie(c),it(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(u,c))}}function M0(e,t){Na.M(e,t);var a=il;if(a&&e){var l=wn(a).hoistableScripts,u=sl(e),c=l.get(u);c||(c=a.querySelector(ni(u)),c||(e=v({src:e,async:!0,type:"module"},t),(t=qt.get(u))&&Ro(e,t),c=a.createElement("script"),Ie(c),it(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(u,c))}}function yp(e,t,a,l){var u=(u=ce.current)?kr(u):null;if(!u)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=rl(a.href),a=wn(u).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=rl(a.href);var c=wn(u).hoistableStyles,g=c.get(e);if(g||(u=u.ownerDocument||u,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,g),(c=u.querySelector(ai(e)))&&!c._p&&(g.instance=c,g.state.loading=5),qt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},qt.set(e,a),c||U0(u,e,a,g.state))),t&&l===null)throw Error(s(528,""));return g}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=sl(a),a=wn(u).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function rl(e){return'href="'+_t(e)+'"'}function ai(e){return'link[rel="stylesheet"]['+e+"]"}function vp(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function U0(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),it(t,"link",a),Ie(t),e.head.appendChild(t))}function sl(e){return'[src="'+_t(e)+'"]'}function ni(e){return"script[async]"+e}function Sp(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+_t(a.href)+'"]');if(l)return t.instance=l,Ie(l),l;var u=v({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Ie(l),it(l,"style",u),Lr(l,a.precedence,e),t.instance=l;case"stylesheet":u=rl(a.href);var c=e.querySelector(ai(u));if(c)return t.state.loading|=4,t.instance=c,Ie(c),c;l=vp(a),(u=qt.get(u))&&Co(l,u),c=(e.ownerDocument||e).createElement("link"),Ie(c);var g=c;return g._p=new Promise(function(S,N){g.onload=S,g.onerror=N}),it(c,"link",l),t.state.loading|=4,Lr(c,a.precedence,e),t.instance=c;case"script":return c=sl(a.src),(u=e.querySelector(ni(c)))?(t.instance=u,Ie(u),u):(l=a,(u=qt.get(c))&&(l=v({},a),Ro(l,u)),e=e.ownerDocument||e,u=e.createElement("script"),Ie(u),it(u,"link",l),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Lr(l,a.precedence,e));return t.instance}function Lr(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,c=u,g=0;g<l.length;g++){var S=l[g];if(S.dataset.precedence===t)c=S;else if(c!==u)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Co(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ro(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var _r=null;function bp(e,t,a){if(_r===null){var l=new Map,u=_r=new Map;u.set(a,l)}else u=_r,l=u.get(a),l||(l=new Map,u.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),u=0;u<a.length;u++){var c=a[u];if(!(c[Sl]||c[tt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var g=c.getAttribute(t)||"";g=e+g;var S=l.get(g);S?S.push(c):l.set(g,[c])}}return l}function xp(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function B0(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Np(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function H0(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=rl(l.href),c=t.querySelector(ai(u));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Dr.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,Ie(c);return}c=t.ownerDocument||t,l=vp(l),(u=qt.get(u))&&Co(l,u),c=c.createElement("link"),Ie(c);var g=c;g._p=new Promise(function(S,N){g.onload=S,g.onerror=N}),it(c,"link",l),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Dr.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var jo=0;function V0(e,t){return e.stylesheets&&e.count===0&&Ur(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&Ur(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&jo===0&&(jo=62500*b0());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ur(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>jo?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(u)}}:null}function Dr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ur(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Mr=null;function Ur(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Mr=new Map,t.forEach($0,e),Mr=null,Dr.call(e))}function $0(e,t){if(!(t.state.loading&4)){var a=Mr.get(e);if(a)var l=a.get(null);else{a=new Map,Mr.set(e,a);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var g=u[c];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(a.set(g.dataset.precedence,g),l=g)}l&&a.set(null,l)}u=t.instance,g=u.getAttribute("data-precedence"),c=a.get(g)||l,c===l&&a.set(null,u),a.set(g,u),this.count++,l=Dr.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),c?c.parentNode.insertBefore(u,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var li={$$typeof:q,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function q0(e,t,a,l,u,c,g,S,N){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=xs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xs(0),this.hiddenUpdates=xs(null),this.identifierPrefix=l,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function Ep(e,t,a,l,u,c,g,S,N,O,M,V){return e=new q0(e,t,a,g,N,O,M,V,S),t=1,c===!0&&(t|=24),c=Ct(3,null,null,t),e.current=c,c.stateNode=e,t=iu(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:l,isDehydrated:a,cache:t},ou(c),e}function Tp(e){return e?(e=Bn,e):Bn}function Cp(e,t,a,l,u,c){u=Tp(u),l.context===null?l.context=u:l.pendingContext=u,l=La(t),l.payload={element:a},c=c===void 0?null:c,c!==null&&(l.callback=c),a=_a(e,l,t),a!==null&&(St(a,e,t),Ml(a,e,t))}function Rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function wo(e,t){Rp(e,t),(e=e.alternate)&&Rp(e,t)}function jp(e){if(e.tag===13||e.tag===31){var t=rn(e,67108864);t!==null&&St(t,e,67108864),wo(e,67108864)}}function wp(e){if(e.tag===13||e.tag===31){var t=Ot();t=Ns(t);var a=rn(e,t);a!==null&&St(a,e,t),wo(e,t)}}var Br=!0;function G0(e,t,a,l){var u=_.T;_.T=null;var c=Y.p;try{Y.p=2,Ao(e,t,a,l)}finally{Y.p=c,_.T=u}}function Y0(e,t,a,l){var u=_.T;_.T=null;var c=Y.p;try{Y.p=8,Ao(e,t,a,l)}finally{Y.p=c,_.T=u}}function Ao(e,t,a,l){if(Br){var u=Oo(l);if(u===null)mo(e,t,l,Hr,a),Op(e,l);else if(K0(u,e,t,a,l))l.stopPropagation();else if(Op(e,l),t&4&&-1<Q0.indexOf(e)){for(;u!==null;){var c=jn(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var g=en(c.pendingLanes);if(g!==0){var S=c;for(S.pendingLanes|=2,S.entangledLanes|=2;g;){var N=1<<31-Et(g);S.entanglements[1]|=N,g&=~N}aa(c),(Ne&6)===0&&(xr=xt()+500,Pl(0))}}break;case 31:case 13:S=rn(c,2),S!==null&&St(S,c,2),Er(),wo(c,2)}if(c=Oo(l),c===null&&mo(e,t,l,Hr,a),c===u)break;u=c}u!==null&&l.stopPropagation()}else mo(e,t,l,null,a)}}function Oo(e){return e=zs(e),zo(e)}var Hr=null;function zo(e){if(Hr=null,e=Rn(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=p(t),e!==null)return e;e=null}else if(a===31){if(e=d(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Hr=e,null}function Ap(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(Oy()){case Mc:return 2;case Uc:return 8;case wi:case zy:return 32;case Bc:return 268435456;default:return 32}default:return 32}}var ko=!1,Qa=null,Ka=null,Za=null,ii=new Map,ri=new Map,Xa=[],Q0="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 Op(e,t){switch(e){case"focusin":case"focusout":Qa=null;break;case"dragenter":case"dragleave":Ka=null;break;case"mouseover":case"mouseout":Za=null;break;case"pointerover":case"pointerout":ii.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ri.delete(t.pointerId)}}function si(e,t,a,l,u,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:c,targetContainers:[u]},t!==null&&(t=jn(t),t!==null&&jp(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function K0(e,t,a,l,u){switch(t){case"focusin":return Qa=si(Qa,e,t,a,l,u),!0;case"dragenter":return Ka=si(Ka,e,t,a,l,u),!0;case"mouseover":return Za=si(Za,e,t,a,l,u),!0;case"pointerover":var c=u.pointerId;return ii.set(c,si(ii.get(c)||null,e,t,a,l,u)),!0;case"gotpointercapture":return c=u.pointerId,ri.set(c,si(ri.get(c)||null,e,t,a,l,u)),!0}return!1}function zp(e){var t=Rn(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=p(a),t!==null){e.blockedOn=t,Yc(e.priority,function(){wp(a)});return}}else if(t===31){if(t=d(a),t!==null){e.blockedOn=t,Yc(e.priority,function(){wp(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Vr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Oo(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Os=l,a.target.dispatchEvent(l),Os=null}else return t=jn(a),t!==null&&jp(t),e.blockedOn=a,!1;t.shift()}return!0}function kp(e,t,a){Vr(e)&&a.delete(t)}function Z0(){ko=!1,Qa!==null&&Vr(Qa)&&(Qa=null),Ka!==null&&Vr(Ka)&&(Ka=null),Za!==null&&Vr(Za)&&(Za=null),ii.forEach(kp),ri.forEach(kp)}function $r(e,t){e.blockedOn===t&&(e.blockedOn=null,ko||(ko=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Z0)))}var qr=null;function Lp(e){qr!==e&&(qr=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){qr===e&&(qr=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],u=e[t+2];if(typeof l!="function"){if(zo(l||a)===null)continue;break}var c=jn(a);c!==null&&(e.splice(t,3),t-=3,Au(c,{pending:!0,data:u,method:a.method,action:l},l,u))}}))}function ul(e){function t(N){return $r(N,e)}Qa!==null&&$r(Qa,e),Ka!==null&&$r(Ka,e),Za!==null&&$r(Za,e),ii.forEach(t),ri.forEach(t);for(var a=0;a<Xa.length;a++){var l=Xa[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Xa.length&&(a=Xa[0],a.blockedOn===null);)zp(a),a.blockedOn===null&&Xa.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var u=a[l],c=a[l+1],g=u[ht]||null;if(typeof c=="function")g||Lp(a);else if(g){var S=null;if(c&&c.hasAttribute("formAction")){if(u=c,g=c[ht]||null)S=g.formAction;else if(zo(u)!==null)continue}else S=g.action;typeof S=="function"?a[l+1]=S:(a.splice(l,3),l-=3),Lp(a)}}}function _p(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(g){return u=g})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function Lo(e){this._internalRoot=e}Gr.prototype.render=Lo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,l=Ot();Cp(a,l,e,t,null,null)},Gr.prototype.unmount=Lo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Cp(e.current,2,null,e,null,null),Er(),t[Cn]=null}};function Gr(e){this._internalRoot=e}Gr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Gc();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Xa.length&&t!==0&&t<Xa[a].priority;a++);Xa.splice(a,0,e),a===0&&zp(e)}};var Dp=n.version;if(Dp!=="19.2.0")throw Error(s(527,Dp,"19.2.0"));Y.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=h(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var X0={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Yr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yr.isDisabled&&Yr.supportsFiber)try{gl=Yr.inject(X0),Nt=Yr}catch{}}return ci.createRoot=function(e,t){if(!o(e))throw Error(s(299));var a=!1,l="",u=qd,c=Gd,g=Yd;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError)),t=Ep(e,1,!1,null,null,a,l,null,u,c,g,_p),e[Cn]=t.current,po(e),new Lo(t)},ci.hydrateRoot=function(e,t,a){if(!o(e))throw Error(s(299));var l=!1,u="",c=qd,g=Gd,S=Yd,N=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(g=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError),a.formState!==void 0&&(N=a.formState)),t=Ep(e,1,!0,t,a??null,l,u,N,c,g,S,_p),t.context=Tp(null),a=t.current,l=Ot(),l=Ns(l),u=La(l),u.callback=null,_a(a,u,l),a=l,t.current.lanes=a,vl(t,a),aa(t),e[Cn]=t.current,po(e),new Gr(t)},ci.version="19.2.0",ci}var rm;function s1(){if(rm)return Bo.exports;rm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(n){console.error(n)}}return i(),Bo.exports=r1(),Bo.exports}var u1=s1();const o1=Em(u1),Om=T.createContext(void 0);Om.Provider;function zm(i,n){const r=T.useContext(Om),s=T.useRef(void 0);T.useEffect(()=>{let o,f;s.current?f=s.current.then(p):f=p(),s.current=f;function p(){return i().then(d=>(o=d??(()=>{}),d),r?d=>r.error(d):void 0)}return()=>{if(o){const d=o();r&&(d==null||d.catch(m=>r.error(m)))}else{const d=f.then(m=>m==null?void 0:m());r&&d.catch(m=>r.error(m))}}},n)}/**
|
|
60
|
+
* react-router v7.9.4
|
|
61
|
+
*
|
|
62
|
+
* Copyright (c) Remix Software Inc.
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the MIT license found in the
|
|
65
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
66
|
+
*
|
|
67
|
+
* @license MIT
|
|
68
|
+
*/var sm="popstate";function c1(i={}){function n(o,f){let{pathname:p="/",search:d="",hash:m=""}=xn(o.location.hash.substring(1));return!p.startsWith("/")&&!p.startsWith(".")&&(p="/"+p),Wo("",{pathname:p,search:d,hash:m},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function r(o,f){let p=o.document.querySelector("base"),d="";if(p&&p.getAttribute("href")){let m=o.location.href,h=m.indexOf("#");d=h===-1?m:m.slice(0,h)}return d+"#"+(typeof f=="string"?f:bi(f))}function s(o,f){Gt(o.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(f)})`)}return d1(n,r,s,i)}function He(i,n){if(i===!1||i===null||typeof i>"u")throw new Error(n)}function Gt(i,n){if(!i){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function f1(){return Math.random().toString(36).substring(2,10)}function um(i,n){return{usr:i.state,key:i.key,idx:n}}function Wo(i,n,r=null,s){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof n=="string"?xn(n):n,state:r,key:n&&n.key||s||f1()}}function bi({pathname:i="/",search:n="",hash:r=""}){return n&&n!=="?"&&(i+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(i+=r.charAt(0)==="#"?r:"#"+r),i}function xn(i){let n={};if(i){let r=i.indexOf("#");r>=0&&(n.hash=i.substring(r),i=i.substring(0,r));let s=i.indexOf("?");s>=0&&(n.search=i.substring(s),i=i.substring(0,s)),i&&(n.pathname=i)}return n}function d1(i,n,r,s={}){let{window:o=document.defaultView,v5Compat:f=!1}=s,p=o.history,d="POP",m=null,h=y();h==null&&(h=0,p.replaceState({...p.state,idx:h},""));function y(){return(p.state||{idx:null}).idx}function v(){d="POP";let H=y(),$=H==null?null:H-h;h=H,m&&m({action:d,location:L.location,delta:$})}function x(H,$){d="PUSH";let G=Wo(L.location,H,$);r&&r(G,H),h=y()+1;let q=um(G,h),Z=L.createHref(G);try{p.pushState(q,"",Z)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;o.location.assign(Z)}f&&m&&m({action:d,location:L.location,delta:1})}function R(H,$){d="REPLACE";let G=Wo(L.location,H,$);r&&r(G,H),h=y();let q=um(G,h),Z=L.createHref(G);p.replaceState(q,"",Z),f&&m&&m({action:d,location:L.location,delta:0})}function j(H){return h1(H)}let L={get action(){return d},get location(){return i(o,p)},listen(H){if(m)throw new Error("A history only accepts one active listener");return o.addEventListener(sm,v),m=H,()=>{o.removeEventListener(sm,v),m=null}},createHref(H){return n(o,H)},createURL:j,encodeLocation(H){let $=j(H);return{pathname:$.pathname,search:$.search,hash:$.hash}},push:x,replace:R,go(H){return p.go(H)}};return L}function h1(i,n=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),He(r,"No window.location.(origin|href) available to create URL");let s=typeof i=="string"?i:bi(i);return s=s.replace(/ $/,"%20"),!n&&s.startsWith("//")&&(s=r+s),new URL(s,r)}function km(i,n,r="/"){return p1(i,n,r,!1)}function p1(i,n,r,s){let o=typeof n=="string"?xn(n):n,f=Ta(o.pathname||"/",r);if(f==null)return null;let p=Lm(i);m1(p);let d=null;for(let m=0;d==null&&m<p.length;++m){let h=R1(f);d=T1(p[m],h,s)}return d}function Lm(i,n=[],r=[],s="",o=!1){let f=(p,d,m=o,h)=>{let y={relativePath:h===void 0?p.path||"":h,caseSensitive:p.caseSensitive===!0,childrenIndex:d,route:p};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(s)&&m)return;He(y.relativePath.startsWith(s),`Absolute route path "${y.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(s.length)}let v=Ea([s,y.relativePath]),x=r.concat(y);p.children&&p.children.length>0&&(He(p.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),Lm(p.children,n,x,v,m)),!(p.path==null&&!p.index)&&n.push({path:v,score:N1(v,p.index),routesMeta:x})};return i.forEach((p,d)=>{var m;if(p.path===""||!((m=p.path)!=null&&m.includes("?")))f(p,d);else for(let h of _m(p.path))f(p,d,!0,h)}),n}function _m(i){let n=i.split("/");if(n.length===0)return[];let[r,...s]=n,o=r.endsWith("?"),f=r.replace(/\?$/,"");if(s.length===0)return o?[f,""]:[f];let p=_m(s.join("/")),d=[];return d.push(...p.map(m=>m===""?f:[f,m].join("/"))),o&&d.push(...p),d.map(m=>i.startsWith("/")&&m===""?"/":m)}function m1(i){i.sort((n,r)=>n.score!==r.score?r.score-n.score:E1(n.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}var g1=/^:[\w-]+$/,y1=3,v1=2,S1=1,b1=10,x1=-2,om=i=>i==="*";function N1(i,n){let r=i.split("/"),s=r.length;return r.some(om)&&(s+=x1),n&&(s+=v1),r.filter(o=>!om(o)).reduce((o,f)=>o+(g1.test(f)?y1:f===""?S1:b1),s)}function E1(i,n){return i.length===n.length&&i.slice(0,-1).every((s,o)=>s===n[o])?i[i.length-1]-n[n.length-1]:0}function T1(i,n,r=!1){let{routesMeta:s}=i,o={},f="/",p=[];for(let d=0;d<s.length;++d){let m=s[d],h=d===s.length-1,y=f==="/"?n:n.slice(f.length)||"/",v=ls({path:m.relativePath,caseSensitive:m.caseSensitive,end:h},y),x=m.route;if(!v&&h&&r&&!s[s.length-1].route.index&&(v=ls({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},y)),!v)return null;Object.assign(o,v.params),p.push({params:o,pathname:Ea([f,v.pathname]),pathnameBase:O1(Ea([f,v.pathnameBase])),route:x}),v.pathnameBase!=="/"&&(f=Ea([f,v.pathnameBase]))}return p}function ls(i,n){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[r,s]=C1(i.path,i.caseSensitive,i.end),o=n.match(r);if(!o)return null;let f=o[0],p=f.replace(/(.)\/+$/,"$1"),d=o.slice(1);return{params:s.reduce((h,{paramName:y,isOptional:v},x)=>{if(y==="*"){let j=d[x]||"";p=f.slice(0,f.length-j.length).replace(/(.)\/+$/,"$1")}const R=d[x];return v&&!R?h[y]=void 0:h[y]=(R||"").replace(/%2F/g,"/"),h},{}),pathname:f,pathnameBase:p,pattern:i}}function C1(i,n=!1,r=!0){Gt(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let s=[],o="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(p,d,m)=>(s.push({paramName:d,isOptional:m!=null}),m?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(s.push({paramName:"*"}),o+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":i!==""&&i!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,n?void 0:"i"),s]}function R1(i){try{return i.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return Gt(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),i}}function Ta(i,n){if(n==="/")return i;if(!i.toLowerCase().startsWith(n.toLowerCase()))return null;let r=n.endsWith("/")?n.length-1:n.length,s=i.charAt(r);return s&&s!=="/"?null:i.slice(r)||"/"}function j1(i,n="/"){let{pathname:r,search:s="",hash:o=""}=typeof i=="string"?xn(i):i;return{pathname:r?r.startsWith("/")?r:w1(r,n):n,search:z1(s),hash:k1(o)}}function w1(i,n){let r=n.replace(/\/+$/,"").split("/");return i.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function qo(i,n,r,s){return`Cannot include a '${i}' character in a manually specified \`to.${n}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function A1(i){return i.filter((n,r)=>r===0||n.route.path&&n.route.path.length>0)}function rc(i){let n=A1(i);return n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase)}function sc(i,n,r,s=!1){let o;typeof i=="string"?o=xn(i):(o={...i},He(!o.pathname||!o.pathname.includes("?"),qo("?","pathname","search",o)),He(!o.pathname||!o.pathname.includes("#"),qo("#","pathname","hash",o)),He(!o.search||!o.search.includes("#"),qo("#","search","hash",o)));let f=i===""||o.pathname==="",p=f?"/":o.pathname,d;if(p==null)d=r;else{let v=n.length-1;if(!s&&p.startsWith("..")){let x=p.split("/");for(;x[0]==="..";)x.shift(),v-=1;o.pathname=x.join("/")}d=v>=0?n[v]:"/"}let m=j1(o,d),h=p&&p!=="/"&&p.endsWith("/"),y=(f||p===".")&&r.endsWith("/");return!m.pathname.endsWith("/")&&(h||y)&&(m.pathname+="/"),m}var Ea=i=>i.join("/").replace(/\/\/+/g,"/"),O1=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),z1=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,k1=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i;function L1(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}var Dm=["POST","PUT","PATCH","DELETE"];new Set(Dm);var _1=["GET",...Dm];new Set(_1);var fl=T.createContext(null);fl.displayName="DataRouter";var os=T.createContext(null);os.displayName="DataRouterState";T.createContext(!1);var Mm=T.createContext({isTransitioning:!1});Mm.displayName="ViewTransition";var D1=T.createContext(new Map);D1.displayName="Fetchers";var M1=T.createContext(null);M1.displayName="Await";var Ft=T.createContext(null);Ft.displayName="Navigation";var Ei=T.createContext(null);Ei.displayName="Location";var Wt=T.createContext({outlet:null,matches:[],isDataRoute:!1});Wt.displayName="Route";var uc=T.createContext(null);uc.displayName="RouteError";function U1(i,{relative:n}={}){He(dl(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:s}=T.useContext(Ft),{hash:o,pathname:f,search:p}=Ti(i,{relative:n}),d=f;return r!=="/"&&(d=f==="/"?r:Ea([r,f])),s.createHref({pathname:d,search:p,hash:o})}function dl(){return T.useContext(Ei)!=null}function Wa(){return He(dl(),"useLocation() may be used only in the context of a <Router> component."),T.useContext(Ei).location}var Um="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Bm(i){T.useContext(Ft).static||T.useLayoutEffect(i)}function hl(){let{isDataRoute:i}=T.useContext(Wt);return i?W1():B1()}function B1(){He(dl(),"useNavigate() may be used only in the context of a <Router> component.");let i=T.useContext(fl),{basename:n,navigator:r}=T.useContext(Ft),{matches:s}=T.useContext(Wt),{pathname:o}=Wa(),f=JSON.stringify(rc(s)),p=T.useRef(!1);return Bm(()=>{p.current=!0}),T.useCallback((m,h={})=>{if(Gt(p.current,Um),!p.current)return;if(typeof m=="number"){r.go(m);return}let y=sc(m,JSON.parse(f),o,h.relative==="path");i==null&&n!=="/"&&(y.pathname=y.pathname==="/"?n:Ea([n,y.pathname])),(h.replace?r.replace:r.push)(y,h.state,h)},[n,r,f,o,i])}T.createContext(null);function H1(){let{matches:i}=T.useContext(Wt),n=i[i.length-1];return n?n.params:{}}function Ti(i,{relative:n}={}){let{matches:r}=T.useContext(Wt),{pathname:s}=Wa(),o=JSON.stringify(rc(r));return T.useMemo(()=>sc(i,JSON.parse(o),s,n==="path"),[i,o,s,n])}function V1(i,n){return Hm(i,n)}function Hm(i,n,r,s,o){var G;He(dl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=T.useContext(Ft),{matches:p}=T.useContext(Wt),d=p[p.length-1],m=d?d.params:{},h=d?d.pathname:"/",y=d?d.pathnameBase:"/",v=d&&d.route;{let q=v&&v.path||"";Vm(h,!v||q.endsWith("*")||q.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${q}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
60
69
|
|
|
61
|
-
Please change the parent <Route path="${U}"> to <Route path="${U==="/"?"*":`${U}/*`}">.`)}let b=Ya(),S;if(n){let U=typeof n=="string"?hn(n):n;Me(d==="/"||((_=U.pathname)==null?void 0:_.startsWith(d)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${U.pathname}" was given in the \`location\` prop.`),S=U}else S=b;let w=S.pathname||"/",E=w;if(d!=="/"){let U=d.replace(/^\//,"").split("/");E="/"+w.replace(/^\//,"").split("/").slice(U.length).join("/")}let z=hm(i,{pathname:E});Ut(y||z!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),Ut(z==null||z[z.length-1].route.element!==void 0||z[z.length-1].route.Component!==void 0||z[z.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let H=T1(z&&z.map(U=>Object.assign({},U,{params:Object.assign({},h,U.params),pathname:ga([d,o.encodeLocation?o.encodeLocation(U.pathname).pathname:U.pathname]),pathnameBase:U.pathnameBase==="/"?d:ga([d,o.encodeLocation?o.encodeLocation(U.pathnameBase).pathname:U.pathnameBase])})),f,r,s);return n&&H?T.createElement(xi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...S},navigationType:"POP"}},H):H}function S1(){let i=A1(),n=h1(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),r=i instanceof Error?i.stack:null,s="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:s},f={padding:"2px 4px",backgroundColor:s},m=null;return console.error("Error handled by React Router default ErrorBoundary:",i),m=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:f},"ErrorBoundary")," or"," ",T.createElement("code",{style:f},"errorElement")," prop on your route.")),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},n),r?T.createElement("pre",{style:o},r):null,m)}var N1=T.createElement(S1,null),E1=class extends T.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,n){return n.location!==i.location||n.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:n.error,location:n.location,revalidation:i.revalidation||n.revalidation}}componentDidCatch(i,n){console.error("React Router caught the following error during render",i,n)}render(){return this.state.error!==void 0?T.createElement(Gt.Provider,{value:this.props.routeContext},T.createElement(Wo.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function R1({routeContext:i,match:n,children:r}){let s=T.useContext(ll);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),T.createElement(Gt.Provider,{value:i},r)}function T1(i,n=[],r=null,s=null){if(i==null){if(!r)return null;if(r.errors)i=r.matches;else if(n.length===0&&!r.initialized&&r.matches.length>0)i=r.matches;else return null}let o=i,f=r==null?void 0:r.errors;if(f!=null){let p=o.findIndex(d=>d.route.id&&(f==null?void 0:f[d.route.id])!==void 0);Me(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),o=o.slice(0,Math.min(o.length,p+1))}let m=!1,h=-1;if(r)for(let p=0;p<o.length;p++){let d=o[p];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(h=p),d.route.id){let{loaderData:y,errors:b}=r,S=d.route.loader&&!y.hasOwnProperty(d.route.id)&&(!b||b[d.route.id]===void 0);if(d.route.lazy||S){m=!0,h>=0?o=o.slice(0,h+1):o=[o[0]];break}}}return o.reduceRight((p,d,y)=>{let b,S=!1,w=null,E=null;r&&(b=f&&d.route.id?f[d.route.id]:void 0,w=d.route.errorElement||N1,m&&(h<0&&y===0?(Sm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,E=null):h===y&&(S=!0,E=d.route.hydrateFallbackElement||null)));let z=n.concat(o.slice(0,y+1)),H=()=>{let _;return b?_=w:S?_=E:d.route.Component?_=T.createElement(d.route.Component,null):d.route.element?_=d.route.element:_=p,T.createElement(R1,{match:d,routeContext:{outlet:p,matches:z,isDataRoute:r!=null},children:_})};return r&&(d.route.ErrorBoundary||d.route.errorElement||y===0)?T.createElement(E1,{location:r.location,revalidation:r.revalidation,component:w,error:b,children:H(),routeContext:{outlet:null,matches:z,isDataRoute:!0}}):H()},null)}function Io(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function w1(i){let n=T.useContext(ll);return Me(n,Io(i)),n}function C1(i){let n=T.useContext(as);return Me(n,Io(i)),n}function j1(i){let n=T.useContext(Gt);return Me(n,Io(i)),n}function ec(i){let n=j1(i),r=n.matches[n.matches.length-1];return Me(r.route.id,`${i} can only be used on routes that contain a unique "id"`),r.route.id}function k1(){return ec("useRouteId")}function A1(){var s;let i=T.useContext(Wo),n=C1("useRouteError"),r=ec("useRouteError");return i!==void 0?i:(s=n.errors)==null?void 0:s[r]}function O1(){let{router:i}=w1("useNavigate"),n=ec("useNavigate"),r=T.useRef(!1);return xm(()=>{r.current=!0}),T.useCallback(async(o,f={})=>{Ut(r.current,vm),r.current&&(typeof o=="number"?i.navigate(o):await i.navigate(o,{fromRouteId:n,...f}))},[i,n])}var Kp={};function Sm(i,n,r){!n&&!Kp[i]&&(Kp[i]=!0,Ut(!1,r))}T.memo(z1);function z1({routes:i,future:n,state:r}){return bm(i,void 0,r,n)}function L1({to:i,replace:n,state:r,relative:s}){Me(il(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=T.useContext(qt);Ut(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=T.useContext(Gt),{pathname:m}=Ya(),h=rl(),p=Po(i,Fo(f),m,s==="path"),d=JSON.stringify(p);return T.useEffect(()=>{h(JSON.parse(d),{replace:n,state:r,relative:s})},[h,d,s,n,r]),null}function Gr(i){Me(!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 D1({basename:i="/",children:n=null,location:r,navigationType:s="POP",navigator:o,static:f=!1}){Me(!il(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=i.replace(/^\/*/,"/"),h=T.useMemo(()=>({basename:m,navigator:o,static:f,future:{}}),[m,o,f]);typeof r=="string"&&(r=hn(r));let{pathname:p="/",search:d="",hash:y="",state:b=null,key:S="default"}=r,w=T.useMemo(()=>{let E=ya(p,m);return E==null?null:{location:{pathname:E,search:d,hash:y,state:b,key:S},navigationType:s}},[m,p,d,y,b,S,s]);return Ut(w!=null,`<Router basename="${m}"> is not able to match the URL "${p}${d}${y}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:T.createElement(qt.Provider,{value:h},T.createElement(xi.Provider,{children:n,value:w}))}function M1({children:i,location:n}){return b1(qo(i),n)}function qo(i,n=[]){let r=[];return T.Children.forEach(i,(s,o)=>{if(!T.isValidElement(s))return;let f=[...n,o];if(s.type===T.Fragment){r.push.apply(r,qo(s.props.children,f));return}Me(s.type===Gr,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Me(!s.props.index||!s.props.children,"An index route cannot have child routes.");let m={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&&(m.children=qo(s.props.children,f)),r.push(m)}),r}var Yr="get",Qr="application/x-www-form-urlencoded";function ns(i){return i!=null&&typeof i.tagName=="string"}function _1(i){return ns(i)&&i.tagName.toLowerCase()==="button"}function U1(i){return ns(i)&&i.tagName.toLowerCase()==="form"}function B1(i){return ns(i)&&i.tagName.toLowerCase()==="input"}function H1(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function V1(i,n){return i.button===0&&(!n||n==="_self")&&!H1(i)}var Hr=null;function $1(){if(Hr===null)try{new FormData(document.createElement("form"),0),Hr=!1}catch{Hr=!0}return Hr}var q1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function zo(i){return i!=null&&!q1.has(i)?(Ut(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Qr}"`),null):i}function G1(i,n){let r,s,o,f,m;if(U1(i)){let h=i.getAttribute("action");s=h?ya(h,n):null,r=i.getAttribute("method")||Yr,o=zo(i.getAttribute("enctype"))||Qr,f=new FormData(i)}else if(_1(i)||B1(i)&&(i.type==="submit"||i.type==="image")){let h=i.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=i.getAttribute("formaction")||h.getAttribute("action");if(s=p?ya(p,n):null,r=i.getAttribute("formmethod")||h.getAttribute("method")||Yr,o=zo(i.getAttribute("formenctype"))||zo(h.getAttribute("enctype"))||Qr,f=new FormData(h,i),!$1()){let{name:d,type:y,value:b}=i;if(y==="image"){let S=d?`${d}.`:"";f.append(`${S}x`,"0"),f.append(`${S}y`,"0")}else d&&f.append(d,b)}}else{if(ns(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Yr,s=null,o=Qr,m=i}return f&&o==="text/plain"&&(m=f,f=void 0),{action:s,method:r.toLowerCase(),encType:o,formData:f,body:m}}function tc(i,n){if(i===!1||i===null||typeof i>"u")throw new Error(n)}async function Y1(i,n){if(i.id in n)return n[i.id];try{let r=await import(i.module);return n[i.id]=r,r}catch(r){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Q1(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function Z1(i,n,r){let s=await Promise.all(i.map(async o=>{let f=n.routes[o.route.id];if(f){let m=await Y1(f,r);return m.links?m.links():[]}return[]}));return F1(s.flat(1).filter(Q1).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Xp(i,n,r,s,o,f){let m=(p,d)=>r[d]?p.route.id!==r[d].route.id:!0,h=(p,d)=>{var y;return r[d].pathname!==p.pathname||((y=r[d].route.path)==null?void 0:y.endsWith("*"))&&r[d].params["*"]!==p.params["*"]};return f==="assets"?n.filter((p,d)=>m(p,d)||h(p,d)):f==="data"?n.filter((p,d)=>{var b;let y=s.routes[p.route.id];if(!y||!y.hasLoader)return!1;if(m(p,d)||h(p,d))return!0;if(p.route.shouldRevalidate){let S=p.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((b=r[0])==null?void 0:b.params)||{},nextUrl:new URL(i,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof S=="boolean")return S}return!0}):[]}function K1(i,n,{includeHydrateFallback:r}={}){return X1(i.map(s=>{let o=n.routes[s.route.id];if(!o)return[];let f=[o.module];return o.clientActionModule&&(f=f.concat(o.clientActionModule)),o.clientLoaderModule&&(f=f.concat(o.clientLoaderModule)),r&&o.hydrateFallbackModule&&(f=f.concat(o.hydrateFallbackModule)),o.imports&&(f=f.concat(o.imports)),f}).flat(1))}function X1(i){return[...new Set(i)]}function J1(i){let n={},r=Object.keys(i).sort();for(let s of r)n[s]=i[s];return n}function F1(i,n){let r=new Set;return new Set(n),i.reduce((s,o)=>{let f=JSON.stringify(J1(o));return r.has(f)||(r.add(f),s.push({key:f,link:o})),s},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var P1=new Set([100,101,204,205]);function W1(i,n){let r=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return r.pathname==="/"?r.pathname="_root.data":n&&ya(r.pathname,n)==="/"?r.pathname=`${n.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function Nm(){let i=T.useContext(ll);return tc(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function I1(){let i=T.useContext(as);return tc(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var ac=T.createContext(void 0);ac.displayName="FrameworkContext";function Em(){let i=T.useContext(ac);return tc(i,"You must render this element inside a <HydratedRouter> element"),i}function e2(i,n){let r=T.useContext(ac),[s,o]=T.useState(!1),[f,m]=T.useState(!1),{onFocus:h,onBlur:p,onMouseEnter:d,onMouseLeave:y,onTouchStart:b}=n,S=T.useRef(null);T.useEffect(()=>{if(i==="render"&&m(!0),i==="viewport"){let z=_=>{_.forEach(U=>{m(U.isIntersecting)})},H=new IntersectionObserver(z,{threshold:.5});return S.current&&H.observe(S.current),()=>{H.disconnect()}}},[i]),T.useEffect(()=>{if(s){let z=setTimeout(()=>{m(!0)},100);return()=>{clearTimeout(z)}}},[s]);let w=()=>{o(!0)},E=()=>{o(!1),m(!1)};return r?i!=="intent"?[f,S,{}]:[f,S,{onFocus:oi(h,w),onBlur:oi(p,E),onMouseEnter:oi(d,w),onMouseLeave:oi(y,E),onTouchStart:oi(b,w)}]:[!1,S,{}]}function oi(i,n){return r=>{i&&i(r),r.defaultPrevented||n(r)}}function t2({page:i,...n}){let{router:r}=Nm(),s=T.useMemo(()=>hm(r.routes,i,r.basename),[r.routes,i,r.basename]);return s?T.createElement(n2,{page:i,matches:s,...n}):null}function a2(i){let{manifest:n,routeModules:r}=Em(),[s,o]=T.useState([]);return T.useEffect(()=>{let f=!1;return Z1(i,n,r).then(m=>{f||o(m)}),()=>{f=!0}},[i,n,r]),s}function n2({page:i,matches:n,...r}){let s=Ya(),{manifest:o,routeModules:f}=Em(),{basename:m}=Nm(),{loaderData:h,matches:p}=I1(),d=T.useMemo(()=>Xp(i,n,p,o,s,"data"),[i,n,p,o,s]),y=T.useMemo(()=>Xp(i,n,p,o,s,"assets"),[i,n,p,o,s]),b=T.useMemo(()=>{if(i===s.pathname+s.search+s.hash)return[];let E=new Set,z=!1;if(n.forEach(_=>{var G;let U=o.routes[_.route.id];!U||!U.hasLoader||(!d.some(X=>X.route.id===_.route.id)&&_.route.id in h&&((G=f[_.route.id])!=null&&G.shouldRevalidate)||U.hasClientLoader?z=!0:E.add(_.route.id))}),E.size===0)return[];let H=W1(i,m);return z&&E.size>0&&H.searchParams.set("_routes",n.filter(_=>E.has(_.route.id)).map(_=>_.route.id).join(",")),[H.pathname+H.search]},[m,h,s,o,d,n,i,f]),S=T.useMemo(()=>K1(y,o),[y,o]),w=a2(y);return T.createElement(T.Fragment,null,b.map(E=>T.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...r})),S.map(E=>T.createElement("link",{key:E,rel:"modulepreload",href:E,...r})),w.map(({key:E,link:z})=>T.createElement("link",{key:E,...z})))}function l2(...i){return n=>{i.forEach(r=>{typeof r=="function"?r(n):r!=null&&(r.current=n)})}}var Rm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Rm&&(window.__reactRouterVersion="7.6.3")}catch{}function i2({basename:i,children:n,window:r}){let s=T.useRef();s.current==null&&(s.current=YS({window:r,v5Compat:!0}));let o=s.current,[f,m]=T.useState({action:o.action,location:o.location}),h=T.useCallback(p=>{T.startTransition(()=>m(p))},[m]);return T.useLayoutEffect(()=>o.listen(h),[o,h]),T.createElement(D1,{basename:i,children:n,location:f.location,navigationType:f.action,navigator:o})}var Tm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wm=T.forwardRef(function({onClick:n,discover:r="render",prefetch:s="none",relative:o,reloadDocument:f,replace:m,state:h,target:p,to:d,preventScrollReset:y,viewTransition:b,...S},w){let{basename:E}=T.useContext(qt),z=typeof d=="string"&&Tm.test(d),H,_=!1;if(typeof d=="string"&&z&&(H=d,Rm))try{let F=new URL(window.location.href),ie=d.startsWith("//")?new URL(F.protocol+d):new URL(d),pe=ya(ie.pathname,E);ie.origin===F.origin&&pe!=null?d=pe+ie.search+ie.hash:_=!0}catch{Ut(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let U=y1(d,{relative:o}),[G,X,Z]=e2(s,S),te=o2(d,{replace:m,state:h,target:p,preventScrollReset:y,relative:o,viewTransition:b});function ne(F){n&&n(F),F.defaultPrevented||te(F)}let ee=T.createElement("a",{...S,...Z,href:H||U,onClick:_||f?n:ne,ref:l2(w,X),target:p,"data-discover":!z&&r==="render"?"true":void 0});return G&&!z?T.createElement(T.Fragment,null,ee,T.createElement(t2,{page:U})):ee});wm.displayName="Link";var r2=T.forwardRef(function({"aria-current":n="page",caseSensitive:r=!1,className:s="",end:o=!1,style:f,to:m,viewTransition:h,children:p,...d},y){let b=bi(m,{relative:d.relative}),S=Ya(),w=T.useContext(as),{navigator:E,basename:z}=T.useContext(qt),H=w!=null&&p2(b)&&h===!0,_=E.encodeLocation?E.encodeLocation(b).pathname:b.pathname,U=S.pathname,G=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;r||(U=U.toLowerCase(),G=G?G.toLowerCase():null,_=_.toLowerCase()),G&&z&&(G=ya(G,z)||G);const X=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let Z=U===_||!o&&U.startsWith(_)&&U.charAt(X)==="/",te=G!=null&&(G===_||!o&&G.startsWith(_)&&G.charAt(_.length)==="/"),ne={isActive:Z,isPending:te,isTransitioning:H},ee=Z?n:void 0,F;typeof s=="function"?F=s(ne):F=[s,Z?"active":null,te?"pending":null,H?"transitioning":null].filter(Boolean).join(" ");let ie=typeof f=="function"?f(ne):f;return T.createElement(wm,{...d,"aria-current":ee,className:F,ref:y,style:ie,to:m,viewTransition:h},typeof p=="function"?p(ne):p)});r2.displayName="NavLink";var s2=T.forwardRef(({discover:i="render",fetcherKey:n,navigate:r,reloadDocument:s,replace:o,state:f,method:m=Yr,action:h,onSubmit:p,relative:d,preventScrollReset:y,viewTransition:b,...S},w)=>{let E=d2(),z=h2(h,{relative:d}),H=m.toLowerCase()==="get"?"get":"post",_=typeof h=="string"&&Tm.test(h),U=G=>{if(p&&p(G),G.defaultPrevented)return;G.preventDefault();let X=G.nativeEvent.submitter,Z=(X==null?void 0:X.getAttribute("formmethod"))||m;E(X||G.currentTarget,{fetcherKey:n,method:Z,navigate:r,replace:o,state:f,relative:d,preventScrollReset:y,viewTransition:b})};return T.createElement("form",{ref:w,method:H,action:z,onSubmit:s?p:U,...S,"data-discover":!_&&i==="render"?"true":void 0})});s2.displayName="Form";function u2(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Cm(i){let n=T.useContext(ll);return Me(n,u2(i)),n}function o2(i,{target:n,replace:r,state:s,preventScrollReset:o,relative:f,viewTransition:m}={}){let h=rl(),p=Ya(),d=bi(i,{relative:f});return T.useCallback(y=>{if(V1(y,n)){y.preventDefault();let b=r!==void 0?r:gi(p)===gi(d);h(i,{replace:b,state:s,preventScrollReset:o,relative:f,viewTransition:m})}},[p,h,d,r,s,n,i,o,f,m])}var c2=0,f2=()=>`__${String(++c2)}__`;function d2(){let{router:i}=Cm("useSubmit"),{basename:n}=T.useContext(qt),r=k1();return T.useCallback(async(s,o={})=>{let{action:f,method:m,encType:h,formData:p,body:d}=G1(s,n);if(o.navigate===!1){let y=o.fetcherKey||f2();await i.fetch(y,r,o.action||f,{preventScrollReset:o.preventScrollReset,formData:p,body:d,formMethod:o.method||m,formEncType:o.encType||h,flushSync:o.flushSync})}else await i.navigate(o.action||f,{preventScrollReset:o.preventScrollReset,formData:p,body:d,formMethod:o.method||m,formEncType:o.encType||h,replace:o.replace,state:o.state,fromRouteId:r,flushSync:o.flushSync,viewTransition:o.viewTransition})},[i,n,r])}function h2(i,{relative:n}={}){let{basename:r}=T.useContext(qt),s=T.useContext(Gt);Me(s,"useFormAction must be used inside a RouteContext");let[o]=s.matches.slice(-1),f={...bi(i||".",{relative:n})},m=Ya();if(i==null){f.search=m.search;let h=new URLSearchParams(f.search),p=h.getAll("index");if(p.some(y=>y==="")){h.delete("index"),p.filter(b=>b).forEach(b=>h.append("index",b));let y=h.toString();f.search=y?`?${y}`:""}}return(!i||i===".")&&o.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(f.pathname=f.pathname==="/"?r:ga([r,f.pathname])),gi(f)}function p2(i,n={}){let r=T.useContext(ym);Me(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Cm("useViewTransitionState"),o=bi(i,{relative:n.relative});if(!r.isTransitioning)return!1;let f=ya(r.currentLocation.pathname,s)||r.currentLocation.pathname,m=ya(r.nextLocation.pathname,s)||r.nextLocation.pathname;return Pr(o.pathname,m)!=null||Pr(o.pathname,f)!=null}[...P1];function m2(i){if(i===null)return"null";if(i===void 0)return"undefined";if(i instanceof Error)return i.message;switch(typeof i){case"bigint":case"number":case"boolean":return String(i);case"string":return i;case"symbol":return`Symbol(${i.description??""})`;case"object":return String("message"in i?i.message:i);case"function":return`function ${i.name}`;default:return"invalid error type"}}const g2="/api/plugin/site-generator-plugin",y2=`${`//${document.location.host}`}${g2}`;let jm;const[Vr]=document.getElementsByClassName("js-script-site-generator");if(Vr&&Vr instanceof HTMLScriptElement){if(!Vr.dataset.googleRecaptchaSiteKey)throw new Error('missing "data-google-recaptcha-site-key" in ".js-script-site-generator" element');jm=Vr.dataset.googleRecaptchaSiteKey}const Lo=jm;async function Ga(i){try{const n=await fetch(y2,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});return n.ok?n.json():{success:!1,userMessage:`Failed to execute command: ${n.statusText}`}}catch(n){return{success:!1,userMessage:`Communication error: ${m2(n)}`}}}const rt=T.forwardRef((i,n)=>{const{label:r,severity:s="primary",loading:o,children:f,onClick:m,className:h="",disabled:p,...d}=i,[y,b]=T.useState(!1),S=y||o,w=["Button",s==="secondary"?"secondary":"",S?"loading":"",h].filter(Boolean).join(" "),E=async z=>{if(m)try{z.preventDefault(),b(!0),await m(z)}finally{b(!1)}};return x.jsxs("button",{ref:n,type:"button",className:w,onClick:E,disabled:p||S,...d,children:[!S&&f,!S&&r]})});rt.displayName="Button";function km({initialValue:i="",placeholder:n,submitLabel:r,onSubmit:s,isLoading:o=!1,error:f}){const{t:m}=ot(),[h,p]=T.useState(i),d=b=>{p(b.target.value)},y=async()=>{h.trim()&&await s(h.trim())};return x.jsxs("div",{className:"PromptForm",children:[f&&x.jsx("div",{className:"Alert error mb-3",children:x.jsx("p",{children:f})}),x.jsx("textarea",{className:"PromptForm-textarea",placeholder:n||m("createPromptPlaceholder"),value:h,onChange:d,rows:6,disabled:o}),x.jsx(rt,{onClick:y,loading:o,disabled:!h.trim()||o,className:"PromptForm-button mt-3",children:r})]})}const Jp=i=>{let n;const r=new Set,s=(d,y)=>{const b=typeof d=="function"?d(n):d;if(!Object.is(b,n)){const S=n;n=y??(typeof b!="object"||b===null)?b:Object.assign({},n,b),r.forEach(w=>w(n,S))}},o=()=>n,h={setState:s,getState:o,getInitialState:()=>p,subscribe:d=>(r.add(d),()=>r.delete(d))},p=n=i(s,o,h);return h},v2=i=>i?Jp(i):Jp,x2=i=>i;function b2(i,n=x2){const r=Uo.useSyncExternalStore(i.subscribe,()=>n(i.getState()),()=>n(i.getInitialState()));return Uo.useDebugValue(r),r}const Fp=i=>{const n=v2(i),r=s=>b2(n,s);return Object.assign(r,n),r},S2=i=>i?Fp(i):Fp,nc="site-generator-session-token";function Pp(i){try{sessionStorage.setItem(nc,i)}catch(n){console.error("Failed to save session token",n)}}function yi(){try{return sessionStorage.getItem(nc)??void 0}catch(i){console.error("Failed to get session token",i)}}function N2(){try{sessionStorage.removeItem(nc)}catch(i){console.error("Failed to remove session token",i)}}const E2=2e3,nl=new Map;function R2(i){if(nl.has(i))return;const n=window.setInterval(()=>{T2(i)},E2);nl.set(i,n)}function $r(i){const n=nl.get(i);n&&(window.clearInterval(n),nl.delete(i))}function lc(){nl.forEach(i=>{window.clearInterval(i)}),nl.clear()}async function T2(i){const n=yi();if(!n){$r(i);return}try{const r=await Ga({command:"loadStep",sessionToken:n,stepNumber:i});if(r.success&&r.result){const s=r.result;w2(s),s.status!=="pending"&&$r(i)}else console.error("Error polling step:",r),$r(i)}catch(r){console.error("Error polling step:",r),$r(i)}}function w2(i){const{updateStep:n}=pn.getState();n(i)}function Do(i){lc(),i.steps.forEach(n=>{n.status==="pending"&&R2(n.stepNumber)})}const pn=S2((i,n)=>({workSession:void 0,isLoading:!1,error:void 0,activeStepNumber:void 0,setWorkSession:r=>{i({workSession:r}),r&&Do(r)},updateStep:r=>{const{workSession:s}=n();if(!s)return;const o=s.steps.map(m=>m.stepNumber===r.stepNumber?r:m),f={...s,steps:o};i({workSession:f}),r.status==="pending"&&Do(f)},appendNewStep:r=>{const{workSession:s}=n();if(!s)return;const o={...s,steps:[...s.steps,r]};i({workSession:o}),r.status==="pending"&&Do(o)},setIsLoading:r=>i({isLoading:r}),setError:r=>i({error:r}),setActiveStepNumber:r=>i({activeStepNumber:r}),resetSession:()=>{lc(),i({workSession:void 0,isLoading:!1,error:void 0,activeStepNumber:void 0})}}));function ls({size:i="medium"}){return x.jsx("div",{className:`Spinner Spinner-${i}`})}function Zr({activeStep:i}){const{t:n}=ot(),r=rl(),{workSession:s}=pn(),o=async()=>{await r("/")},f=async m=>{await r(`/step/${m}`)};return!s||!s.steps||s.steps.length===0?x.jsx("div",{className:"Sidebar",children:x.jsx(rt,{className:`Sidebar-button ${i===void 0?"active":""}`,onClick:o,children:n("startAgain")})}):x.jsxs("div",{className:"Sidebar",children:[x.jsx(rt,{className:`Sidebar-button ${i===void 0?"active":""}`,onClick:o,children:n("startAgain")}),x.jsx("div",{className:"Sidebar-steps",children:s.steps.map(m=>x.jsxs("div",{className:"Sidebar-step",children:[x.jsx(rt,{className:`Sidebar-button ${i===m.stepNumber?"active":""} ${m.status==="pending"?"has-spinner":""}`,onClick:()=>f(m.stepNumber),children:n("stepTitle",{stepNumber:m.stepNumber,kind:n(m.kind)})}),m.status==="pending"&&x.jsx("div",{className:"Sidebar-spinner",children:x.jsx(ls,{size:"small"})})]},m.stepNumber))})]})}function wt({header:i,footer:n,children:r,className:s=""}){const o=["Card",s].filter(Boolean).join(" ");return x.jsxs("div",{className:o,children:[i&&x.jsx("div",{className:"Card-header",children:i}),x.jsx("div",{className:"Card-body",children:r}),n&&x.jsx("div",{className:"Card-footer",children:n})]})}function C2(){const{t:i}=ot(),n=rl(),[r,s]=T.useState(!1),[o,f]=T.useState(void 0),{workSession:m,appendNewStep:h}=pn(),p=async d=>{if(!m)return;s(!0),f(void 0);const y=yi();if(!y){f(i("sessionExpired")),s(!1);return}try{const b=await Ga({command:"createSiteSchema",sessionToken:y,prompt:d});if(b.success&&b.result){const S=b.result;h(S),await n(`/step/${S.stepNumber}`)}else f(i("promptSubmissionFailed"))}catch(b){console.error("Error submitting prompt:",b),f(i("errorOccurred"))}finally{s(!1)}};return x.jsxs("div",{className:"RouteLayout",children:[x.jsx("div",{className:"RouteLayout-main",children:x.jsxs(wt,{className:"p-4",children:[x.jsx("h1",{className:"mb-4",children:i("welcomeTitle")}),x.jsx("div",{className:"Text mb-4",dangerouslySetInnerHTML:{__html:i("startInstruction")}}),m&&m.steps.length>0&&x.jsx("p",{className:"InfoText",children:i("newTabRestartMessage")}),x.jsx(km,{submitLabel:i("createSchema"),onSubmit:p,isLoading:r,error:o})]})}),x.jsx("div",{className:"RouteLayout-sidebar",children:x.jsx(Zr,{activeStep:void 0})})]})}function j2(i){return"siteId"in i}function ic(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var mn=ic();function Am(i){mn=i}var hi={exec:()=>null};function Ne(i,n=""){let r=typeof i=="string"?i:i.source,s={replace:(o,f)=>{let m=typeof f=="string"?f:f.source;return m=m.replace(ut.caret,"$1"),r=r.replace(o,m),s},getRegex:()=>new RegExp(r,n)};return s}var ut={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:i=>new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}#`),htmlBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}<(?:[a-z].*>|!--)`,"i")},k2=/^(?:[ \t]*(?:\n|$))+/,A2=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,O2=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Si=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,z2=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,rc=/(?:[*+-]|\d{1,9}[.)])/,Om=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,zm=Ne(Om).replace(/bull/g,rc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),L2=Ne(Om).replace(/bull/g,rc).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(),sc=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,D2=/^[^\n]+/,uc=/(?!\s*\])(?:\\.|[^\[\]\\])+/,M2=Ne(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",uc).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),_2=Ne(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,rc).getRegex(),is="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",oc=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,U2=Ne("^ {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",oc).replace("tag",is).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Lm=Ne(sc).replace("hr",Si).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",is).getRegex(),B2=Ne(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Lm).getRegex(),cc={blockquote:B2,code:A2,def:M2,fences:O2,heading:z2,hr:Si,html:U2,lheading:zm,list:_2,newline:k2,paragraph:Lm,table:hi,text:D2},Wp=Ne("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Si).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",is).getRegex(),H2={...cc,lheading:L2,table:Wp,paragraph:Ne(sc).replace("hr",Si).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Wp).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",is).getRegex()},V2={...cc,html:Ne(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",oc).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:hi,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ne(sc).replace("hr",Si).replace("heading",` *#{1,6} *[^
|
|
62
|
-
]`).replace("lheading",
|
|
63
|
-
`).map(f=>{let
|
|
64
|
-
`)}var
|
|
65
|
-
`)}}}fences(i){let n=this.rules.block.fences.exec(i);if(n){let r=n[0],s=
|
|
66
|
-
`)}}blockquote(i){let n=this.rules.block.blockquote.exec(i);if(n){let r=
|
|
70
|
+
Please change the parent <Route path="${q}"> to <Route path="${q==="/"?"*":`${q}/*`}">.`)}let x=Wa(),R;if(n){let q=typeof n=="string"?xn(n):n;He(y==="/"||((G=q.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 "${q.pathname}" was given in the \`location\` prop.`),R=q}else R=x;let j=R.pathname||"/",L=j;if(y!=="/"){let q=y.replace(/^\//,"").split("/");L="/"+j.replace(/^\//,"").split("/").slice(q.length).join("/")}let H=km(i,{pathname:L});Gt(v||H!=null,`No routes matched location "${R.pathname}${R.search}${R.hash}" `),Gt(H==null||H[H.length-1].route.element!==void 0||H[H.length-1].route.Component!==void 0||H[H.length-1].route.lazy!==void 0,`Matched leaf route at location "${R.pathname}${R.search}${R.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 $=Q1(H&&H.map(q=>Object.assign({},q,{params:Object.assign({},m,q.params),pathname:Ea([y,f.encodeLocation?f.encodeLocation(q.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:q.pathname]),pathnameBase:q.pathnameBase==="/"?y:Ea([y,f.encodeLocation?f.encodeLocation(q.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:q.pathnameBase])})),p,r,s,o);return n&&$?T.createElement(Ei.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...R},navigationType:"POP"}},$):$}function $1(){let i=F1(),n=L1(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),r=i instanceof Error?i.stack:null,s="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:s},f={padding:"2px 4px",backgroundColor:s},p=null;return console.error("Error handled by React Router default ErrorBoundary:",i),p=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:f},"ErrorBoundary")," or"," ",T.createElement("code",{style:f},"errorElement")," prop on your route.")),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},n),r?T.createElement("pre",{style:o},r):null,p)}var q1=T.createElement($1,null),G1=class extends T.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,n){return n.location!==i.location||n.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:n.error,location:n.location,revalidation:i.revalidation||n.revalidation}}componentDidCatch(i,n){this.props.unstable_onError?this.props.unstable_onError(i,n):console.error("React Router caught the following error during render",i)}render(){return this.state.error!==void 0?T.createElement(Wt.Provider,{value:this.props.routeContext},T.createElement(uc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Y1({routeContext:i,match:n,children:r}){let s=T.useContext(fl);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),T.createElement(Wt.Provider,{value:i},r)}function Q1(i,n=[],r=null,s=null,o=null){if(i==null){if(!r)return null;if(r.errors)i=r.matches;else if(n.length===0&&!r.initialized&&r.matches.length>0)i=r.matches;else return null}let f=i,p=r==null?void 0:r.errors;if(p!=null){let h=f.findIndex(y=>y.route.id&&(p==null?void 0:p[y.route.id])!==void 0);He(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(p).join(",")}`),f=f.slice(0,Math.min(f.length,h+1))}let d=!1,m=-1;if(r)for(let h=0;h<f.length;h++){let y=f[h];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(m=h),y.route.id){let{loaderData:v,errors:x}=r,R=y.route.loader&&!v.hasOwnProperty(y.route.id)&&(!x||x[y.route.id]===void 0);if(y.route.lazy||R){d=!0,m>=0?f=f.slice(0,m+1):f=[f[0]];break}}}return f.reduceRight((h,y,v)=>{let x,R=!1,j=null,L=null;r&&(x=p&&y.route.id?p[y.route.id]:void 0,j=y.route.errorElement||q1,d&&(m<0&&v===0?(Vm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),R=!0,L=null):m===v&&(R=!0,L=y.route.hydrateFallbackElement||null)));let H=n.concat(f.slice(0,v+1)),$=()=>{let G;return x?G=j:R?G=L:y.route.Component?G=T.createElement(y.route.Component,null):y.route.element?G=y.route.element:G=h,T.createElement(Y1,{match:y,routeContext:{outlet:h,matches:H,isDataRoute:r!=null},children:G})};return r&&(y.route.ErrorBoundary||y.route.errorElement||v===0)?T.createElement(G1,{location:r.location,revalidation:r.revalidation,component:j,error:x,children:$(),routeContext:{outlet:null,matches:H,isDataRoute:!0},unstable_onError:s}):$()},null)}function oc(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function K1(i){let n=T.useContext(fl);return He(n,oc(i)),n}function Z1(i){let n=T.useContext(os);return He(n,oc(i)),n}function X1(i){let n=T.useContext(Wt);return He(n,oc(i)),n}function cc(i){let n=X1(i),r=n.matches[n.matches.length-1];return He(r.route.id,`${i} can only be used on routes that contain a unique "id"`),r.route.id}function J1(){return cc("useRouteId")}function F1(){var s;let i=T.useContext(uc),n=Z1("useRouteError"),r=cc("useRouteError");return i!==void 0?i:(s=n.errors)==null?void 0:s[r]}function W1(){let{router:i}=K1("useNavigate"),n=cc("useNavigate"),r=T.useRef(!1);return Bm(()=>{r.current=!0}),T.useCallback(async(o,f={})=>{Gt(r.current,Um),r.current&&(typeof o=="number"?i.navigate(o):await i.navigate(o,{fromRouteId:n,...f}))},[i,n])}var cm={};function Vm(i,n,r){!n&&!cm[i]&&(cm[i]=!0,Gt(!1,r))}T.memo(P1);function P1({routes:i,future:n,state:r,unstable_onError:s}){return Hm(i,void 0,r,s,n)}function I1({to:i,replace:n,state:r,relative:s}){He(dl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=T.useContext(Ft);Gt(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=T.useContext(Wt),{pathname:p}=Wa(),d=hl(),m=sc(i,rc(f),p,s==="path"),h=JSON.stringify(m);return T.useEffect(()=>{d(JSON.parse(h),{replace:n,state:r,relative:s})},[d,h,s,n,r]),null}function Wr(i){He(!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 e2({basename:i="/",children:n=null,location:r,navigationType:s="POP",navigator:o,static:f=!1}){He(!dl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=i.replace(/^\/*/,"/"),d=T.useMemo(()=>({basename:p,navigator:o,static:f,future:{}}),[p,o,f]);typeof r=="string"&&(r=xn(r));let{pathname:m="/",search:h="",hash:y="",state:v=null,key:x="default"}=r,R=T.useMemo(()=>{let j=Ta(m,p);return j==null?null:{location:{pathname:j,search:h,hash:y,state:v,key:x},navigationType:s}},[p,m,h,y,v,x,s]);return Gt(R!=null,`<Router basename="${p}"> is not able to match the URL "${m}${h}${y}" because it does not start with the basename, so the <Router> won't render anything.`),R==null?null:T.createElement(Ft.Provider,{value:d},T.createElement(Ei.Provider,{children:n,value:R}))}function t2({children:i,location:n}){return V1(Po(i),n)}function Po(i,n=[]){let r=[];return T.Children.forEach(i,(s,o)=>{if(!T.isValidElement(s))return;let f=[...n,o];if(s.type===T.Fragment){r.push.apply(r,Po(s.props.children,f));return}He(s.type===Wr,`[${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>`),He(!s.props.index||!s.props.children,"An index route cannot have child routes.");let p={id:s.props.id||f.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(p.children=Po(s.props.children,f)),r.push(p)}),r}var Pr="get",Ir="application/x-www-form-urlencoded";function cs(i){return i!=null&&typeof i.tagName=="string"}function a2(i){return cs(i)&&i.tagName.toLowerCase()==="button"}function n2(i){return cs(i)&&i.tagName.toLowerCase()==="form"}function l2(i){return cs(i)&&i.tagName.toLowerCase()==="input"}function i2(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function r2(i,n){return i.button===0&&(!n||n==="_self")&&!i2(i)}var Kr=null;function s2(){if(Kr===null)try{new FormData(document.createElement("form"),0),Kr=!1}catch{Kr=!0}return Kr}var u2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Go(i){return i!=null&&!u2.has(i)?(Gt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ir}"`),null):i}function o2(i,n){let r,s,o,f,p;if(n2(i)){let d=i.getAttribute("action");s=d?Ta(d,n):null,r=i.getAttribute("method")||Pr,o=Go(i.getAttribute("enctype"))||Ir,f=new FormData(i)}else if(a2(i)||l2(i)&&(i.type==="submit"||i.type==="image")){let d=i.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=i.getAttribute("formaction")||d.getAttribute("action");if(s=m?Ta(m,n):null,r=i.getAttribute("formmethod")||d.getAttribute("method")||Pr,o=Go(i.getAttribute("formenctype"))||Go(d.getAttribute("enctype"))||Ir,f=new FormData(d,i),!s2()){let{name:h,type:y,value:v}=i;if(y==="image"){let x=h?`${h}.`:"";f.append(`${x}x`,"0"),f.append(`${x}y`,"0")}else h&&f.append(h,v)}}else{if(cs(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Pr,s=null,o=Ir,p=i}return f&&o==="text/plain"&&(p=f,f=void 0),{action:s,method:r.toLowerCase(),encType:o,formData:f,body:p}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function fc(i,n){if(i===!1||i===null||typeof i>"u")throw new Error(n)}function c2(i,n,r){let s=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return s.pathname==="/"?s.pathname=`_root.${r}`:n&&Ta(s.pathname,n)==="/"?s.pathname=`${n.replace(/\/$/,"")}/_root.${r}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${r}`,s}async function f2(i,n){if(i.id in n)return n[i.id];try{let r=await import(i.module);return n[i.id]=r,r}catch(r){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function d2(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function h2(i,n,r){let s=await Promise.all(i.map(async o=>{let f=n.routes[o.route.id];if(f){let p=await f2(f,r);return p.links?p.links():[]}return[]}));return y2(s.flat(1).filter(d2).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function fm(i,n,r,s,o,f){let p=(m,h)=>r[h]?m.route.id!==r[h].route.id:!0,d=(m,h)=>{var y;return r[h].pathname!==m.pathname||((y=r[h].route.path)==null?void 0:y.endsWith("*"))&&r[h].params["*"]!==m.params["*"]};return f==="assets"?n.filter((m,h)=>p(m,h)||d(m,h)):f==="data"?n.filter((m,h)=>{var v;let y=s.routes[m.route.id];if(!y||!y.hasLoader)return!1;if(p(m,h)||d(m,h))return!0;if(m.route.shouldRevalidate){let x=m.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((v=r[0])==null?void 0:v.params)||{},nextUrl:new URL(i,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function p2(i,n,{includeHydrateFallback:r}={}){return m2(i.map(s=>{let o=n.routes[s.route.id];if(!o)return[];let f=[o.module];return o.clientActionModule&&(f=f.concat(o.clientActionModule)),o.clientLoaderModule&&(f=f.concat(o.clientLoaderModule)),r&&o.hydrateFallbackModule&&(f=f.concat(o.hydrateFallbackModule)),o.imports&&(f=f.concat(o.imports)),f}).flat(1))}function m2(i){return[...new Set(i)]}function g2(i){let n={},r=Object.keys(i).sort();for(let s of r)n[s]=i[s];return n}function y2(i,n){let r=new Set;return new Set(n),i.reduce((s,o)=>{let f=JSON.stringify(g2(o));return r.has(f)||(r.add(f),s.push({key:f,link:o})),s},[])}function $m(){let i=T.useContext(fl);return fc(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function v2(){let i=T.useContext(os);return fc(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var dc=T.createContext(void 0);dc.displayName="FrameworkContext";function qm(){let i=T.useContext(dc);return fc(i,"You must render this element inside a <HydratedRouter> element"),i}function S2(i,n){let r=T.useContext(dc),[s,o]=T.useState(!1),[f,p]=T.useState(!1),{onFocus:d,onBlur:m,onMouseEnter:h,onMouseLeave:y,onTouchStart:v}=n,x=T.useRef(null);T.useEffect(()=>{if(i==="render"&&p(!0),i==="viewport"){let L=$=>{$.forEach(G=>{p(G.isIntersecting)})},H=new IntersectionObserver(L,{threshold:.5});return x.current&&H.observe(x.current),()=>{H.disconnect()}}},[i]),T.useEffect(()=>{if(s){let L=setTimeout(()=>{p(!0)},100);return()=>{clearTimeout(L)}}},[s]);let R=()=>{o(!0)},j=()=>{o(!1),p(!1)};return r?i!=="intent"?[f,x,{}]:[f,x,{onFocus:fi(d,R),onBlur:fi(m,j),onMouseEnter:fi(h,R),onMouseLeave:fi(y,j),onTouchStart:fi(v,R)}]:[!1,x,{}]}function fi(i,n){return r=>{i&&i(r),r.defaultPrevented||n(r)}}function b2({page:i,...n}){let{router:r}=$m(),s=T.useMemo(()=>km(r.routes,i,r.basename),[r.routes,i,r.basename]);return s?T.createElement(N2,{page:i,matches:s,...n}):null}function x2(i){let{manifest:n,routeModules:r}=qm(),[s,o]=T.useState([]);return T.useEffect(()=>{let f=!1;return h2(i,n,r).then(p=>{f||o(p)}),()=>{f=!0}},[i,n,r]),s}function N2({page:i,matches:n,...r}){let s=Wa(),{manifest:o,routeModules:f}=qm(),{basename:p}=$m(),{loaderData:d,matches:m}=v2(),h=T.useMemo(()=>fm(i,n,m,o,s,"data"),[i,n,m,o,s]),y=T.useMemo(()=>fm(i,n,m,o,s,"assets"),[i,n,m,o,s]),v=T.useMemo(()=>{if(i===s.pathname+s.search+s.hash)return[];let j=new Set,L=!1;if(n.forEach($=>{var q;let G=o.routes[$.route.id];!G||!G.hasLoader||(!h.some(Z=>Z.route.id===$.route.id)&&$.route.id in d&&((q=f[$.route.id])!=null&&q.shouldRevalidate)||G.hasClientLoader?L=!0:j.add($.route.id))}),j.size===0)return[];let H=c2(i,p,"data");return L&&j.size>0&&H.searchParams.set("_routes",n.filter($=>j.has($.route.id)).map($=>$.route.id).join(",")),[H.pathname+H.search]},[p,d,s,o,h,n,i,f]),x=T.useMemo(()=>p2(y,o),[y,o]),R=x2(y);return T.createElement(T.Fragment,null,v.map(j=>T.createElement("link",{key:j,rel:"prefetch",as:"fetch",href:j,...r})),x.map(j=>T.createElement("link",{key:j,rel:"modulepreload",href:j,...r})),R.map(({key:j,link:L})=>T.createElement("link",{key:j,nonce:r.nonce,...L})))}function E2(...i){return n=>{i.forEach(r=>{typeof r=="function"?r(n):r!=null&&(r.current=n)})}}var Gm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Gm&&(window.__reactRouterVersion="7.9.4")}catch{}function T2({basename:i,children:n,window:r}){let s=T.useRef();s.current==null&&(s.current=c1({window:r,v5Compat:!0}));let o=s.current,[f,p]=T.useState({action:o.action,location:o.location}),d=T.useCallback(m=>{T.startTransition(()=>p(m))},[p]);return T.useLayoutEffect(()=>o.listen(d),[o,d]),T.createElement(e2,{basename:i,children:n,location:f.location,navigationType:f.action,navigator:o})}var Ym=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Qm=T.forwardRef(function({onClick:n,discover:r="render",prefetch:s="none",relative:o,reloadDocument:f,replace:p,state:d,target:m,to:h,preventScrollReset:y,viewTransition:v,...x},R){let{basename:j}=T.useContext(Ft),L=typeof h=="string"&&Ym.test(h),H,$=!1;if(typeof h=="string"&&L&&(H=h,Gm))try{let W=new URL(window.location.href),ne=h.startsWith("//")?new URL(W.protocol+h):new URL(h),Ee=Ta(ne.pathname,j);ne.origin===W.origin&&Ee!=null?h=Ee+ne.search+ne.hash:$=!0}catch{Gt(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let G=U1(h,{relative:o}),[q,Z,I]=S2(s,x),re=w2(h,{replace:p,state:d,target:m,preventScrollReset:y,relative:o,viewTransition:v});function K(W){n&&n(W),W.defaultPrevented||re(W)}let ae=T.createElement("a",{...x,...I,href:H||G,onClick:$||f?n:K,ref:E2(R,Z),target:m,"data-discover":!L&&r==="render"?"true":void 0});return q&&!L?T.createElement(T.Fragment,null,ae,T.createElement(b2,{page:G})):ae});Qm.displayName="Link";var C2=T.forwardRef(function({"aria-current":n="page",caseSensitive:r=!1,className:s="",end:o=!1,style:f,to:p,viewTransition:d,children:m,...h},y){let v=Ti(p,{relative:h.relative}),x=Wa(),R=T.useContext(os),{navigator:j,basename:L}=T.useContext(Ft),H=R!=null&&L2(v)&&d===!0,$=j.encodeLocation?j.encodeLocation(v).pathname:v.pathname,G=x.pathname,q=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;r||(G=G.toLowerCase(),q=q?q.toLowerCase():null,$=$.toLowerCase()),q&&L&&(q=Ta(q,L)||q);const Z=$!=="/"&&$.endsWith("/")?$.length-1:$.length;let I=G===$||!o&&G.startsWith($)&&G.charAt(Z)==="/",re=q!=null&&(q===$||!o&&q.startsWith($)&&q.charAt($.length)==="/"),K={isActive:I,isPending:re,isTransitioning:H},ae=I?n:void 0,W;typeof s=="function"?W=s(K):W=[s,I?"active":null,re?"pending":null,H?"transitioning":null].filter(Boolean).join(" ");let ne=typeof f=="function"?f(K):f;return T.createElement(Qm,{...h,"aria-current":ae,className:W,ref:y,style:ne,to:p,viewTransition:d},typeof m=="function"?m(K):m)});C2.displayName="NavLink";var R2=T.forwardRef(({discover:i="render",fetcherKey:n,navigate:r,reloadDocument:s,replace:o,state:f,method:p=Pr,action:d,onSubmit:m,relative:h,preventScrollReset:y,viewTransition:v,...x},R)=>{let j=z2(),L=k2(d,{relative:h}),H=p.toLowerCase()==="get"?"get":"post",$=typeof d=="string"&&Ym.test(d),G=q=>{if(m&&m(q),q.defaultPrevented)return;q.preventDefault();let Z=q.nativeEvent.submitter,I=(Z==null?void 0:Z.getAttribute("formmethod"))||p;j(Z||q.currentTarget,{fetcherKey:n,method:I,navigate:r,replace:o,state:f,relative:h,preventScrollReset:y,viewTransition:v})};return T.createElement("form",{ref:R,method:H,action:L,onSubmit:s?m:G,...x,"data-discover":!$&&i==="render"?"true":void 0})});R2.displayName="Form";function j2(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Km(i){let n=T.useContext(fl);return He(n,j2(i)),n}function w2(i,{target:n,replace:r,state:s,preventScrollReset:o,relative:f,viewTransition:p}={}){let d=hl(),m=Wa(),h=Ti(i,{relative:f});return T.useCallback(y=>{if(r2(y,n)){y.preventDefault();let v=r!==void 0?r:bi(m)===bi(h);d(i,{replace:v,state:s,preventScrollReset:o,relative:f,viewTransition:p})}},[m,d,h,r,s,n,i,o,f,p])}var A2=0,O2=()=>`__${String(++A2)}__`;function z2(){let{router:i}=Km("useSubmit"),{basename:n}=T.useContext(Ft),r=J1();return T.useCallback(async(s,o={})=>{let{action:f,method:p,encType:d,formData:m,body:h}=o2(s,n);if(o.navigate===!1){let y=o.fetcherKey||O2();await i.fetch(y,r,o.action||f,{preventScrollReset:o.preventScrollReset,formData:m,body:h,formMethod:o.method||p,formEncType:o.encType||d,flushSync:o.flushSync})}else await i.navigate(o.action||f,{preventScrollReset:o.preventScrollReset,formData:m,body:h,formMethod:o.method||p,formEncType:o.encType||d,replace:o.replace,state:o.state,fromRouteId:r,flushSync:o.flushSync,viewTransition:o.viewTransition})},[i,n,r])}function k2(i,{relative:n}={}){let{basename:r}=T.useContext(Ft),s=T.useContext(Wt);He(s,"useFormAction must be used inside a RouteContext");let[o]=s.matches.slice(-1),f={...Ti(i||".",{relative:n})},p=Wa();if(i==null){f.search=p.search;let d=new URLSearchParams(f.search),m=d.getAll("index");if(m.some(y=>y==="")){d.delete("index"),m.filter(v=>v).forEach(v=>d.append("index",v));let y=d.toString();f.search=y?`?${y}`:""}}return(!i||i===".")&&o.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(f.pathname=f.pathname==="/"?r:Ea([r,f.pathname])),bi(f)}function L2(i,{relative:n}={}){let r=T.useContext(Mm);He(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Km("useViewTransitionState"),o=Ti(i,{relative:n});if(!r.isTransitioning)return!1;let f=Ta(r.currentLocation.pathname,s)||r.currentLocation.pathname,p=Ta(r.nextLocation.pathname,s)||r.nextLocation.pathname;return ls(o.pathname,p)!=null||ls(o.pathname,f)!=null}function _2(i){if(i===null)return"null";if(i===void 0)return"undefined";if(i instanceof Error)return i.message;switch(typeof i){case"bigint":case"number":case"boolean":return String(i);case"string":return i;case"symbol":return`Symbol(${i.description??""})`;case"object":return String("message"in i?i.message:i);case"function":return`function ${i.name}`;default:return"invalid error type"}}const D2="/api/plugin/site-generator-plugin",M2=`${`//${document.location.host}`}${D2}`;let Zm;const[Zr]=document.getElementsByClassName("js-script-site-generator");if(Zr&&Zr instanceof HTMLScriptElement){if(!Zr.dataset.googleRecaptchaSiteKey)throw new Error('missing "data-google-recaptcha-site-key" in ".js-script-site-generator" element');Zm=Zr.dataset.googleRecaptchaSiteKey}const Yo=Zm;async function Fa(i){try{const n=await fetch(M2,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});return n.ok?n.json():{success:!1,userMessage:`Failed to execute command: ${n.statusText}`}}catch(n){return{success:!1,userMessage:`Communication error: ${_2(n)}`}}}const ut=T.forwardRef((i,n)=>{const{label:r,severity:s="primary",loading:o,children:f,onClick:p,className:d="",disabled:m,...h}=i,[y,v]=T.useState(!1),x=y||o,R=["Button",s==="secondary"?"secondary":"",x?"loading":"",d].filter(Boolean).join(" "),j=async L=>{if(p)try{L.preventDefault(),v(!0),await p(L)}finally{v(!1)}};return b.jsxs("button",{ref:n,type:"button",className:R,onClick:j,disabled:m||x,...h,children:[!x&&f,!x&&r]})});ut.displayName="Button";function Xm({initialValue:i="",placeholder:n,submitLabel:r,onSubmit:s,isLoading:o=!1,error:f}){const{t:p}=dt(),[d,m]=T.useState(i),h=v=>{m(v.target.value)},y=async()=>{d.trim()&&await s(d.trim())};return b.jsxs("div",{className:"PromptForm",children:[f&&b.jsx("div",{className:"Alert error mb-3",children:b.jsx("p",{children:f})}),b.jsx("textarea",{className:"PromptForm-textarea",placeholder:n||p("createPromptPlaceholder"),value:d,onChange:h,rows:6,disabled:o}),b.jsx(ut,{onClick:y,loading:o,disabled:!d.trim()||o,className:"PromptForm-button mt-3",children:r})]})}const dm=i=>{let n;const r=new Set,s=(h,y)=>{const v=typeof h=="function"?h(n):h;if(!Object.is(v,n)){const x=n;n=y??(typeof v!="object"||v===null)?v:Object.assign({},n,v),r.forEach(R=>R(n,x))}},o=()=>n,d={setState:s,getState:o,getInitialState:()=>m,subscribe:h=>(r.add(h),()=>r.delete(h))},m=n=i(s,o,d);return d},U2=(i=>i?dm(i):dm),B2=i=>i;function H2(i,n=B2){const r=pi.useSyncExternalStore(i.subscribe,pi.useCallback(()=>n(i.getState()),[i,n]),pi.useCallback(()=>n(i.getInitialState()),[i,n]));return pi.useDebugValue(r),r}const hm=i=>{const n=U2(i),r=s=>H2(n,s);return Object.assign(r,n),r},V2=(i=>i?hm(i):hm),hc="site-generator-session-token";function pm(i){try{sessionStorage.setItem(hc,i)}catch(n){console.error("Failed to save session token",n)}}function xi(){try{return sessionStorage.getItem(hc)??void 0}catch(i){console.error("Failed to get session token",i)}}function $2(){try{sessionStorage.removeItem(hc)}catch(i){console.error("Failed to remove session token",i)}}const q2=2e3,cl=new Map;function G2(i){if(cl.has(i))return;const n=window.setInterval(()=>{Y2(i)},q2);cl.set(i,n)}function Xr(i){const n=cl.get(i);n&&(window.clearInterval(n),cl.delete(i))}function pc(){cl.forEach(i=>{window.clearInterval(i)}),cl.clear()}async function Y2(i){const n=xi();if(!n){Xr(i);return}try{const r=await Fa({command:"loadStep",sessionToken:n,stepNumber:i});if(r.success&&r.result){const s=r.result;Q2(s),s.status!=="pending"&&Xr(i)}else console.error("Error polling step:",r),Xr(i)}catch(r){console.error("Error polling step:",r),Xr(i)}}function Q2(i){const{updateStep:n}=Nn.getState();n(i)}function Qo(i){pc(),i.steps.forEach(n=>{n.status==="pending"&&G2(n.stepNumber)})}const Nn=V2((i,n)=>({workSession:void 0,isLoading:!1,error:void 0,activeStepNumber:void 0,setWorkSession:r=>{i({workSession:r}),r&&Qo(r)},updateStep:r=>{const{workSession:s}=n();if(!s)return;const o=s.steps.map(p=>p.stepNumber===r.stepNumber?r:p),f={...s,steps:o};i({workSession:f}),r.status==="pending"&&Qo(f)},appendNewStep:r=>{const{workSession:s}=n();if(!s)return;const o={...s,steps:[...s.steps,r]};i({workSession:o}),r.status==="pending"&&Qo(o)},setIsLoading:r=>i({isLoading:r}),setError:r=>i({error:r}),setActiveStepNumber:r=>i({activeStepNumber:r}),resetSession:()=>{pc(),i({workSession:void 0,isLoading:!1,error:void 0,activeStepNumber:void 0})}}));function fs({size:i="medium"}){return b.jsx("div",{className:`Spinner Spinner-${i}`})}function es({activeStep:i}){const{t:n}=dt(),r=hl(),{workSession:s}=Nn(),o=async()=>{await r("/")},f=async p=>{await r(`/step/${p}`)};return!s||!s.steps||s.steps.length===0?b.jsx("div",{className:"Sidebar",children:b.jsx(ut,{className:`Sidebar-button ${i===void 0?"active":""}`,onClick:o,children:n("startAgain")})}):b.jsxs("div",{className:"Sidebar",children:[b.jsx(ut,{className:`Sidebar-button ${i===void 0?"active":""}`,onClick:o,children:n("startAgain")}),b.jsx("div",{className:"Sidebar-steps",children:s.steps.map(p=>b.jsxs("div",{className:"Sidebar-step",children:[b.jsx(ut,{className:`Sidebar-button ${i===p.stepNumber?"active":""} ${p.status==="pending"?"has-spinner":""}`,onClick:()=>f(p.stepNumber),children:n("stepTitle",{stepNumber:p.stepNumber,kind:n(p.kind)})}),p.status==="pending"&&b.jsx("div",{className:"Sidebar-spinner",children:b.jsx(fs,{size:"small"})})]},p.stepNumber))})]})}function zt({header:i,footer:n,children:r,className:s=""}){const o=["Card",s].filter(Boolean).join(" ");return b.jsxs("div",{className:o,children:[i&&b.jsx("div",{className:"Card-header",children:i}),b.jsx("div",{className:"Card-body",children:r}),n&&b.jsx("div",{className:"Card-footer",children:n})]})}function K2(){const{t:i}=dt(),n=hl(),[r,s]=T.useState(!1),[o,f]=T.useState(void 0),{workSession:p,appendNewStep:d}=Nn(),m=async h=>{if(!p)return;s(!0),f(void 0);const y=xi();if(!y){f(i("sessionExpired")),s(!1);return}try{const v=await Fa({command:"createSiteSchema",sessionToken:y,prompt:h});if(v.success&&v.result){const x=v.result;d(x),await n(`/step/${x.stepNumber}`)}else f(i("promptSubmissionFailed"))}catch(v){console.error("Error submitting prompt:",v),f(i("errorOccurred"))}finally{s(!1)}};return b.jsxs("div",{className:"RouteLayout",children:[b.jsx("div",{className:"RouteLayout-main",children:b.jsxs(zt,{className:"p-4",children:[b.jsx("h1",{className:"mb-4",children:i("welcomeTitle")}),b.jsx("div",{className:"Text mb-4",dangerouslySetInnerHTML:{__html:i("startInstruction")}}),p&&p.steps.length>0&&b.jsx("p",{className:"InfoText",children:i("newTabRestartMessage")}),b.jsx(Xm,{submitLabel:i("createSchema"),onSubmit:m,isLoading:r,error:o})]})}),b.jsx("div",{className:"RouteLayout-sidebar",children:b.jsx(es,{activeStep:void 0})})]})}function Z2(i){return"siteId"in i}function mc(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var En=mc();function Jm(i){En=i}var yi={exec:()=>null};function xe(i,n=""){let r=typeof i=="string"?i:i.source,s={replace:(o,f)=>{let p=typeof f=="string"?f:f.source;return p=p.replace(ft.caret,"$1"),r=r.replace(o,p),s},getRegex:()=>new RegExp(r,n)};return s}var ft={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:i=>new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}#`),htmlBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}<(?:[a-z].*>|!--)`,"i")},X2=/^(?:[ \t]*(?:\n|$))+/,J2=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,F2=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ci=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,W2=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,gc=/(?:[*+-]|\d{1,9}[.)])/,Fm=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Wm=xe(Fm).replace(/bull/g,gc).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(),P2=xe(Fm).replace(/bull/g,gc).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(),yc=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,I2=/^[^\n]+/,vc=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,eN=xe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",vc).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),tN=xe(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,gc).getRegex(),ds="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",Sc=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,aN=xe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Sc).replace("tag",ds).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Pm=xe(yc).replace("hr",Ci).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ds).getRegex(),nN=xe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Pm).getRegex(),bc={blockquote:nN,code:J2,def:eN,fences:F2,heading:W2,hr:Ci,html:aN,lheading:Wm,list:tN,newline:X2,paragraph:Pm,table:yi,text:I2},mm=xe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ci).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ds).getRegex(),lN={...bc,lheading:P2,table:mm,paragraph:xe(yc).replace("hr",Ci).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",mm).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",ds).getRegex()},iN={...bc,html:xe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Sc).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:yi,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:xe(yc).replace("hr",Ci).replace("heading",` *#{1,6} *[^
|
|
71
|
+
]`).replace("lheading",Wm).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},rN=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,sN=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Im=/^( {2,}|\\)\n(?!\s*$)/,uN=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,hs=/[\p{P}\p{S}]/u,xc=/[\s\p{P}\p{S}]/u,eg=/[^\s\p{P}\p{S}]/u,oN=xe(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,xc).getRegex(),tg=/(?!~)[\p{P}\p{S}]/u,cN=/(?!~)[\s\p{P}\p{S}]/u,fN=/(?:[^\s\p{P}\p{S}]|~)/u,dN=xe(/link|code|html/,"g").replace("link",new RegExp("\\[(?:[^\\[\\]`]|(?<!`)(?<a>`+)[^`]+\\k<a>(?!`))*?\\]\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)]|\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)])*\\))*\\)")).replace("code",new RegExp("(?<!`)(?<b>`+)[^`]+\\k<b>(?!`)")).replace("html",/<(?! )[^<>]*?>/).getRegex(),ag=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,hN=xe(ag,"u").replace(/punct/g,hs).getRegex(),pN=xe(ag,"u").replace(/punct/g,tg).getRegex(),ng="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",mN=xe(ng,"gu").replace(/notPunctSpace/g,eg).replace(/punctSpace/g,xc).replace(/punct/g,hs).getRegex(),gN=xe(ng,"gu").replace(/notPunctSpace/g,fN).replace(/punctSpace/g,cN).replace(/punct/g,tg).getRegex(),yN=xe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,eg).replace(/punctSpace/g,xc).replace(/punct/g,hs).getRegex(),vN=xe(/\\(punct)/,"gu").replace(/punct/g,hs).getRegex(),SN=xe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),bN=xe(Sc).replace("(?:-->|$)","-->").getRegex(),xN=xe("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",bN).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),is=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,NN=xe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",is).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),lg=xe(/^!?\[(label)\]\[(ref)\]/).replace("label",is).replace("ref",vc).getRegex(),ig=xe(/^!?\[(ref)\](?:\[\])?/).replace("ref",vc).getRegex(),EN=xe("reflink|nolink(?!\\()","g").replace("reflink",lg).replace("nolink",ig).getRegex(),gm=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Nc={_backpedal:yi,anyPunctuation:vN,autolink:SN,blockSkip:dN,br:Im,code:sN,del:yi,emStrongLDelim:hN,emStrongRDelimAst:mN,emStrongRDelimUnd:yN,escape:rN,link:NN,nolink:ig,punctuation:oN,reflink:lg,reflinkSearch:EN,tag:xN,text:uN,url:yi},TN={...Nc,link:xe(/^!?\[(label)\]\((.*?)\)/).replace("label",is).getRegex(),reflink:xe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",is).getRegex()},Io={...Nc,emStrongRDelimAst:gN,emStrongLDelim:pN,url:xe(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",gm).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\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:xe(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",gm).getRegex()},CN={...Io,br:xe(Im).replace("{2,}","*").getRegex(),text:xe(Io.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Jr={normal:bc,gfm:lN,pedantic:iN},di={normal:Nc,gfm:Io,breaks:CN,pedantic:TN},RN={"&":"&","<":"<",">":">",'"':""","'":"'"},ym=i=>RN[i];function na(i,n){if(n){if(ft.escapeTest.test(i))return i.replace(ft.escapeReplace,ym)}else if(ft.escapeTestNoEncode.test(i))return i.replace(ft.escapeReplaceNoEncode,ym);return i}function vm(i){try{i=encodeURI(i).replace(ft.percentDecode,"%")}catch{return null}return i}function Sm(i,n){var f;let r=i.replace(ft.findPipe,(p,d,m)=>{let h=!1,y=d;for(;--y>=0&&m[y]==="\\";)h=!h;return h?"|":" |"}),s=r.split(ft.splitPipe),o=0;if(s[0].trim()||s.shift(),s.length>0&&!((f=s.at(-1))!=null&&f.trim())&&s.pop(),n)if(s.length>n)s.splice(n);else for(;s.length<n;)s.push("");for(;o<s.length;o++)s[o]=s[o].trim().replace(ft.slashPipe,"|");return s}function hi(i,n,r){let s=i.length;if(s===0)return"";let o=0;for(;o<s&&i.charAt(s-o-1)===n;)o++;return i.slice(0,s-o)}function jN(i,n){if(i.indexOf(n[1])===-1)return-1;let r=0;for(let s=0;s<i.length;s++)if(i[s]==="\\")s++;else if(i[s]===n[0])r++;else if(i[s]===n[1]&&(r--,r<0))return s;return r>0?-2:-1}function bm(i,n,r,s,o){let f=n.href,p=n.title||null,d=i[1].replace(o.other.outputLinkReplace,"$1");s.state.inLink=!0;let m={type:i[0].charAt(0)==="!"?"image":"link",raw:r,href:f,title:p,text:d,tokens:s.inlineTokens(d)};return s.state.inLink=!1,m}function wN(i,n,r){let s=i.match(r.other.indentCodeCompensation);if(s===null)return n;let o=s[1];return n.split(`
|
|
72
|
+
`).map(f=>{let p=f.match(r.other.beginningSpace);if(p===null)return f;let[d]=p;return d.length>=o.length?f.slice(o.length):f}).join(`
|
|
73
|
+
`)}var rs=class{constructor(i){ke(this,"options");ke(this,"rules");ke(this,"lexer");this.options=i||En}space(i){let n=this.rules.block.newline.exec(i);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(i){let n=this.rules.block.code.exec(i);if(n){let r=n[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:hi(r,`
|
|
74
|
+
`)}}}fences(i){let n=this.rules.block.fences.exec(i);if(n){let r=n[0],s=wN(r,n[3]||"",this.rules);return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:s}}}heading(i){let n=this.rules.block.heading.exec(i);if(n){let r=n[2].trim();if(this.rules.other.endingHash.test(r)){let s=hi(r,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(r=s.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(i){let n=this.rules.block.hr.exec(i);if(n)return{type:"hr",raw:hi(n[0],`
|
|
75
|
+
`)}}blockquote(i){let n=this.rules.block.blockquote.exec(i);if(n){let r=hi(n[0],`
|
|
67
76
|
`).split(`
|
|
68
|
-
`),s="",o="",f=[];for(;r.length>0;){let
|
|
69
|
-
`),y=
|
|
77
|
+
`),s="",o="",f=[];for(;r.length>0;){let p=!1,d=[],m;for(m=0;m<r.length;m++)if(this.rules.other.blockquoteStart.test(r[m]))d.push(r[m]),p=!0;else if(!p)d.push(r[m]);else break;r=r.slice(m);let h=d.join(`
|
|
78
|
+
`),y=h.replace(this.rules.other.blockquoteSetextReplace,`
|
|
70
79
|
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
|
|
71
|
-
${
|
|
72
|
-
${y}`:y;let
|
|
80
|
+
${h}`:h,o=o?`${o}
|
|
81
|
+
${y}`:y;let v=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(y,f,!0),this.lexer.state.top=v,r.length===0)break;let x=f.at(-1);if((x==null?void 0:x.type)==="code")break;if((x==null?void 0:x.type)==="blockquote"){let R=x,j=R.raw+`
|
|
73
82
|
`+r.join(`
|
|
74
|
-
`),
|
|
83
|
+
`),L=this.blockquote(j);f[f.length-1]=L,s=s.substring(0,s.length-R.raw.length)+L.raw,o=o.substring(0,o.length-R.text.length)+L.text;break}else if((x==null?void 0:x.type)==="list"){let R=x,j=R.raw+`
|
|
75
84
|
`+r.join(`
|
|
76
|
-
`),
|
|
77
|
-
`);continue}}return{type:"blockquote",raw:s,tokens:f,text:o}}}list(i){let n=this.rules.block.list.exec(i);if(n){let r=n[1].trim(),s=r.length>1,o={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:!1,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?r:"[*+-]");let f=this.rules.other.listItemRegex(r),
|
|
78
|
-
`,1)[0].replace(this.rules.other.listReplaceTabs
|
|
79
|
-
`,1)[0],
|
|
80
|
-
`,i=i.substring(
|
|
81
|
-
`,1)[0],
|
|
82
|
-
`+
|
|
83
|
-
`+
|
|
84
|
-
`,i=i.substring(
|
|
85
|
-
`):[],f={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===s.length){for(let
|
|
86
|
-
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(i){let n=this.rules.block.text.exec(i);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(i){let n=this.rules.inline.escape.exec(i);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(i){let n=this.rules.inline.tag.exec(i);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(i){let n=this.rules.inline.link.exec(i);if(n){let r=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let f=
|
|
87
|
-
`),this.blockTokens(n,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let s=this.inlineQueue[r];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(n,r=[],s=!1){var o,f,
|
|
88
|
-
`:r.push(
|
|
85
|
+
`),L=this.list(j);f[f.length-1]=L,s=s.substring(0,s.length-x.raw.length)+L.raw,o=o.substring(0,o.length-R.raw.length)+L.raw,r=j.substring(f.at(-1).raw.length).split(`
|
|
86
|
+
`);continue}}return{type:"blockquote",raw:s,tokens:f,text:o}}}list(i){let n=this.rules.block.list.exec(i);if(n){let r=n[1].trim(),s=r.length>1,o={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:!1,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?r:"[*+-]");let f=this.rules.other.listItemRegex(r),p=!1;for(;i;){let m=!1,h="",y="";if(!(n=f.exec(i))||this.rules.block.hr.test(i))break;h=n[0],i=i.substring(h.length);let v=n[2].split(`
|
|
87
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,$=>" ".repeat(3*$.length)),x=i.split(`
|
|
88
|
+
`,1)[0],R=!v.trim(),j=0;if(this.options.pedantic?(j=2,y=v.trimStart()):R?j=n[1].length+1:(j=n[2].search(this.rules.other.nonSpaceChar),j=j>4?1:j,y=v.slice(j),j+=n[1].length),R&&this.rules.other.blankLine.test(x)&&(h+=x+`
|
|
89
|
+
`,i=i.substring(x.length+1),m=!0),!m){let $=this.rules.other.nextBulletRegex(j),G=this.rules.other.hrRegex(j),q=this.rules.other.fencesBeginRegex(j),Z=this.rules.other.headingBeginRegex(j),I=this.rules.other.htmlBeginRegex(j);for(;i;){let re=i.split(`
|
|
90
|
+
`,1)[0],K;if(x=re,this.options.pedantic?(x=x.replace(this.rules.other.listReplaceNesting," "),K=x):K=x.replace(this.rules.other.tabCharGlobal," "),q.test(x)||Z.test(x)||I.test(x)||$.test(x)||G.test(x))break;if(K.search(this.rules.other.nonSpaceChar)>=j||!x.trim())y+=`
|
|
91
|
+
`+K.slice(j);else{if(R||v.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||q.test(v)||Z.test(v)||G.test(v))break;y+=`
|
|
92
|
+
`+x}!R&&!x.trim()&&(R=!0),h+=re+`
|
|
93
|
+
`,i=i.substring(re.length+1),v=K.slice(j)}}o.loose||(p?o.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(p=!0));let L=null,H;this.options.gfm&&(L=this.rules.other.listIsTask.exec(y),L&&(H=L[0]!=="[ ] ",y=y.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:h,task:!!L,checked:H,loose:!1,text:y,tokens:[]}),o.raw+=h}let d=o.items.at(-1);if(d)d.raw=d.raw.trimEnd(),d.text=d.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let m=0;m<o.items.length;m++)if(this.lexer.state.top=!1,o.items[m].tokens=this.lexer.blockTokens(o.items[m].text,[]),!o.loose){let h=o.items[m].tokens.filter(v=>v.type==="space"),y=h.length>0&&h.some(v=>this.rules.other.anyLine.test(v.raw));o.loose=y}if(o.loose)for(let m=0;m<o.items.length;m++)o.items[m].loose=!0;return o}}html(i){let n=this.rules.block.html.exec(i);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(i){let n=this.rules.block.def.exec(i);if(n){let r=n[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:s,title:o}}}table(i){var p;let n=this.rules.block.table.exec(i);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let r=Sm(n[1]),s=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=(p=n[3])!=null&&p.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
94
|
+
`):[],f={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===s.length){for(let d of s)this.rules.other.tableAlignRight.test(d)?f.align.push("right"):this.rules.other.tableAlignCenter.test(d)?f.align.push("center"):this.rules.other.tableAlignLeft.test(d)?f.align.push("left"):f.align.push(null);for(let d=0;d<r.length;d++)f.header.push({text:r[d],tokens:this.lexer.inline(r[d]),header:!0,align:f.align[d]});for(let d of o)f.rows.push(Sm(d,f.header.length).map((m,h)=>({text:m,tokens:this.lexer.inline(m),header:!1,align:f.align[h]})));return f}}lheading(i){let n=this.rules.block.lheading.exec(i);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(i){let n=this.rules.block.paragraph.exec(i);if(n){let r=n[1].charAt(n[1].length-1)===`
|
|
95
|
+
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(i){let n=this.rules.block.text.exec(i);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(i){let n=this.rules.inline.escape.exec(i);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(i){let n=this.rules.inline.tag.exec(i);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(i){let n=this.rules.inline.link.exec(i);if(n){let r=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let f=hi(r.slice(0,-1),"\\");if((r.length-f.length)%2===0)return}else{let f=jN(n[2],"()");if(f===-2)return;if(f>-1){let p=(n[0].indexOf("!")===0?5:4)+n[1].length+f;n[2]=n[2].substring(0,f),n[0]=n[0].substring(0,p).trim(),n[3]=""}}let s=n[2],o="";if(this.options.pedantic){let f=this.rules.other.pedanticHrefTitle.exec(s);f&&(s=f[1],o=f[3])}else o=n[3]?n[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?s=s.slice(1):s=s.slice(1,-1)),bm(n,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(i,n){let r;if((r=this.rules.inline.reflink.exec(i))||(r=this.rules.inline.nolink.exec(i))){let s=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=n[s.toLowerCase()];if(!o){let f=r[0].charAt(0);return{type:"text",raw:f,text:f}}return bm(r,o,r[0],this.lexer,this.rules)}}emStrong(i,n,r=""){let s=this.rules.inline.emStrongLDelim.exec(i);if(!(!s||s[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!r||this.rules.inline.punctuation.exec(r))){let o=[...s[0]].length-1,f,p,d=o,m=0,h=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,n=n.slice(-1*i.length+o);(s=h.exec(n))!=null;){if(f=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!f)continue;if(p=[...f].length,s[3]||s[4]){d+=p;continue}else if((s[5]||s[6])&&o%3&&!((o+p)%3)){m+=p;continue}if(d-=p,d>0)continue;p=Math.min(p,p+d+m);let y=[...s[0]][0].length,v=i.slice(0,o+s.index+y+p);if(Math.min(o,p)%2){let R=v.slice(1,-1);return{type:"em",raw:v,text:R,tokens:this.lexer.inlineTokens(R)}}let x=v.slice(2,-2);return{type:"strong",raw:v,text:x,tokens:this.lexer.inlineTokens(x)}}}}codespan(i){let n=this.rules.inline.code.exec(i);if(n){let r=n[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(r),o=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return s&&o&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:n[0],text:r}}}br(i){let n=this.rules.inline.br.exec(i);if(n)return{type:"br",raw:n[0]}}del(i){let n=this.rules.inline.del.exec(i);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(i){let n=this.rules.inline.autolink.exec(i);if(n){let r,s;return n[2]==="@"?(r=n[1],s="mailto:"+r):(r=n[1],s=r),{type:"link",raw:n[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(i){var r;let n;if(n=this.rules.inline.url.exec(i)){let s,o;if(n[2]==="@")s=n[0],o="mailto:"+s;else{let f;do f=n[0],n[0]=((r=this.rules.inline._backpedal.exec(n[0]))==null?void 0:r[0])??"";while(f!==n[0]);s=n[0],n[1]==="www."?o="http://"+n[0]:o=n[0]}return{type:"link",raw:n[0],text:s,href:o,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(i){let n=this.rules.inline.text.exec(i);if(n){let r=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:r}}}},Xt=class ec{constructor(n){ke(this,"tokens");ke(this,"options");ke(this,"state");ke(this,"tokenizer");ke(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=n||En,this.options.tokenizer=this.options.tokenizer||new rs,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:ft,block:Jr.normal,inline:di.normal};this.options.pedantic?(r.block=Jr.pedantic,r.inline=di.pedantic):this.options.gfm&&(r.block=Jr.gfm,this.options.breaks?r.inline=di.breaks:r.inline=di.gfm),this.tokenizer.rules=r}static get rules(){return{block:Jr,inline:di}}static lex(n,r){return new ec(r).lex(n)}static lexInline(n,r){return new ec(r).inlineTokens(n)}lex(n){n=n.replace(ft.carriageReturn,`
|
|
96
|
+
`),this.blockTokens(n,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let s=this.inlineQueue[r];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(n,r=[],s=!1){var o,f,p;for(this.options.pedantic&&(n=n.replace(ft.tabCharGlobal," ").replace(ft.spaceLine,""));n;){let d;if((f=(o=this.options.extensions)==null?void 0:o.block)!=null&&f.some(h=>(d=h.call({lexer:this},n,r))?(n=n.substring(d.raw.length),r.push(d),!0):!1))continue;if(d=this.tokenizer.space(n)){n=n.substring(d.raw.length);let h=r.at(-1);d.raw.length===1&&h!==void 0?h.raw+=`
|
|
97
|
+
`:r.push(d);continue}if(d=this.tokenizer.code(n)){n=n.substring(d.raw.length);let h=r.at(-1);(h==null?void 0:h.type)==="paragraph"||(h==null?void 0:h.type)==="text"?(h.raw+=(h.raw.endsWith(`
|
|
89
98
|
`)?"":`
|
|
90
|
-
`)+
|
|
91
|
-
`+
|
|
99
|
+
`)+d.raw,h.text+=`
|
|
100
|
+
`+d.text,this.inlineQueue.at(-1).src=h.text):r.push(d);continue}if(d=this.tokenizer.fences(n)){n=n.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.heading(n)){n=n.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.hr(n)){n=n.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.blockquote(n)){n=n.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.list(n)){n=n.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.html(n)){n=n.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.def(n)){n=n.substring(d.raw.length);let h=r.at(-1);(h==null?void 0:h.type)==="paragraph"||(h==null?void 0:h.type)==="text"?(h.raw+=(h.raw.endsWith(`
|
|
92
101
|
`)?"":`
|
|
93
|
-
`)+
|
|
94
|
-
`+
|
|
102
|
+
`)+d.raw,h.text+=`
|
|
103
|
+
`+d.raw,this.inlineQueue.at(-1).src=h.text):this.tokens.links[d.tag]||(this.tokens.links[d.tag]={href:d.href,title:d.title},r.push(d));continue}if(d=this.tokenizer.table(n)){n=n.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.lheading(n)){n=n.substring(d.raw.length),r.push(d);continue}let m=n;if((p=this.options.extensions)!=null&&p.startBlock){let h=1/0,y=n.slice(1),v;this.options.extensions.startBlock.forEach(x=>{v=x.call({lexer:this},y),typeof v=="number"&&v>=0&&(h=Math.min(h,v))}),h<1/0&&h>=0&&(m=n.substring(0,h+1))}if(this.state.top&&(d=this.tokenizer.paragraph(m))){let h=r.at(-1);s&&(h==null?void 0:h.type)==="paragraph"?(h.raw+=(h.raw.endsWith(`
|
|
95
104
|
`)?"":`
|
|
96
|
-
`)+
|
|
97
|
-
`+
|
|
105
|
+
`)+d.raw,h.text+=`
|
|
106
|
+
`+d.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):r.push(d),s=m.length!==n.length,n=n.substring(d.raw.length);continue}if(d=this.tokenizer.text(n)){n=n.substring(d.raw.length);let h=r.at(-1);(h==null?void 0:h.type)==="text"?(h.raw+=(h.raw.endsWith(`
|
|
98
107
|
`)?"":`
|
|
99
|
-
`)+
|
|
100
|
-
`+
|
|
101
|
-
`;return s?'<pre><code class="language-'+
|
|
102
|
-
`:"<pre><code>"+(r?o:
|
|
108
|
+
`)+d.raw,h.text+=`
|
|
109
|
+
`+d.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):r.push(d);continue}if(n){let h="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return this.state.top=!0,r}inline(n,r=[]){return this.inlineQueue.push({src:n,tokens:r}),r}inlineTokens(n,r=[]){var d,m,h,y,v;let s=n,o=null;if(this.tokens.links){let x=Object.keys(this.tokens.links);if(x.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)x.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,o.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(o=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=((m=(d=this.options.hooks)==null?void 0:d.emStrongMask)==null?void 0:m.call({lexer:this},s))??s;let f=!1,p="";for(;n;){f||(p=""),f=!1;let x;if((y=(h=this.options.extensions)==null?void 0:h.inline)!=null&&y.some(j=>(x=j.call({lexer:this},n,r))?(n=n.substring(x.raw.length),r.push(x),!0):!1))continue;if(x=this.tokenizer.escape(n)){n=n.substring(x.raw.length),r.push(x);continue}if(x=this.tokenizer.tag(n)){n=n.substring(x.raw.length),r.push(x);continue}if(x=this.tokenizer.link(n)){n=n.substring(x.raw.length),r.push(x);continue}if(x=this.tokenizer.reflink(n,this.tokens.links)){n=n.substring(x.raw.length);let j=r.at(-1);x.type==="text"&&(j==null?void 0:j.type)==="text"?(j.raw+=x.raw,j.text+=x.text):r.push(x);continue}if(x=this.tokenizer.emStrong(n,s,p)){n=n.substring(x.raw.length),r.push(x);continue}if(x=this.tokenizer.codespan(n)){n=n.substring(x.raw.length),r.push(x);continue}if(x=this.tokenizer.br(n)){n=n.substring(x.raw.length),r.push(x);continue}if(x=this.tokenizer.del(n)){n=n.substring(x.raw.length),r.push(x);continue}if(x=this.tokenizer.autolink(n)){n=n.substring(x.raw.length),r.push(x);continue}if(!this.state.inLink&&(x=this.tokenizer.url(n))){n=n.substring(x.raw.length),r.push(x);continue}let R=n;if((v=this.options.extensions)!=null&&v.startInline){let j=1/0,L=n.slice(1),H;this.options.extensions.startInline.forEach($=>{H=$.call({lexer:this},L),typeof H=="number"&&H>=0&&(j=Math.min(j,H))}),j<1/0&&j>=0&&(R=n.substring(0,j+1))}if(x=this.tokenizer.inlineText(R)){n=n.substring(x.raw.length),x.raw.slice(-1)!=="_"&&(p=x.raw.slice(-1)),f=!0;let j=r.at(-1);(j==null?void 0:j.type)==="text"?(j.raw+=x.raw,j.text+=x.text):r.push(x);continue}if(n){let j="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(j);break}else throw new Error(j)}}return r}},ss=class{constructor(i){ke(this,"options");ke(this,"parser");this.options=i||En}space(i){return""}code({text:i,lang:n,escaped:r}){var f;let s=(f=(n||"").match(ft.notSpaceStart))==null?void 0:f[0],o=i.replace(ft.endingNewline,"")+`
|
|
110
|
+
`;return s?'<pre><code class="language-'+na(s)+'">'+(r?o:na(o,!0))+`</code></pre>
|
|
111
|
+
`:"<pre><code>"+(r?o:na(o,!0))+`</code></pre>
|
|
103
112
|
`}blockquote({tokens:i}){return`<blockquote>
|
|
104
113
|
${this.parser.parse(i)}</blockquote>
|
|
105
114
|
`}html({text:i}){return i}def(i){return""}heading({tokens:i,depth:n}){return`<h${n}>${this.parser.parseInline(i)}</h${n}>
|
|
106
115
|
`}hr(i){return`<hr>
|
|
107
|
-
`}list(i){let n=i.ordered,r=i.start,s="";for(let
|
|
116
|
+
`}list(i){let n=i.ordered,r=i.start,s="";for(let p=0;p<i.items.length;p++){let d=i.items[p];s+=this.listitem(d)}let o=n?"ol":"ul",f=n&&r!==1?' start="'+r+'"':"";return"<"+o+f+`>
|
|
108
117
|
`+s+"</"+o+`>
|
|
109
|
-
`}listitem(i){var r;let n="";if(i.task){let s=this.checkbox({checked:!!i.checked});i.loose?((r=i.tokens[0])==null?void 0:r.type)==="paragraph"?(i.tokens[0].text=s+" "+i.tokens[0].text,i.tokens[0].tokens&&i.tokens[0].tokens.length>0&&i.tokens[0].tokens[0].type==="text"&&(i.tokens[0].tokens[0].text=s+" "+
|
|
118
|
+
`}listitem(i){var r;let n="";if(i.task){let s=this.checkbox({checked:!!i.checked});i.loose?((r=i.tokens[0])==null?void 0:r.type)==="paragraph"?(i.tokens[0].text=s+" "+i.tokens[0].text,i.tokens[0].tokens&&i.tokens[0].tokens.length>0&&i.tokens[0].tokens[0].type==="text"&&(i.tokens[0].tokens[0].text=s+" "+na(i.tokens[0].tokens[0].text),i.tokens[0].tokens[0].escaped=!0)):i.tokens.unshift({type:"text",raw:s+" ",text:s+" ",escaped:!0}):n+=s+" "}return n+=this.parser.parse(i.tokens,!!i.loose),`<li>${n}</li>
|
|
110
119
|
`}checkbox({checked:i}){return"<input "+(i?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:i}){return`<p>${this.parser.parseInline(i)}</p>
|
|
111
|
-
`}table(i){let n="",r="";for(let o=0;o<i.header.length;o++)r+=this.tablecell(i.header[o]);n+=this.tablerow({text:r});let s="";for(let o=0;o<i.rows.length;o++){let f=i.rows[o];r="";for(let
|
|
120
|
+
`}table(i){let n="",r="";for(let o=0;o<i.header.length;o++)r+=this.tablecell(i.header[o]);n+=this.tablerow({text:r});let s="";for(let o=0;o<i.rows.length;o++){let f=i.rows[o];r="";for(let p=0;p<f.length;p++)r+=this.tablecell(f[p]);s+=this.tablerow({text:r})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
|
|
112
121
|
<thead>
|
|
113
122
|
`+n+`</thead>
|
|
114
123
|
`+s+`</table>
|
|
115
124
|
`}tablerow({text:i}){return`<tr>
|
|
116
125
|
${i}</tr>
|
|
117
126
|
`}tablecell(i){let n=this.parser.parseInline(i.tokens),r=i.header?"th":"td";return(i.align?`<${r} align="${i.align}">`:`<${r}>`)+n+`</${r}>
|
|
118
|
-
`}strong({tokens:i}){return`<strong>${this.parser.parseInline(i)}</strong>`}em({tokens:i}){return`<em>${this.parser.parseInline(i)}</em>`}codespan({text:i}){return`<code>${
|
|
119
|
-
`+this.renderer.text(
|
|
120
|
-
Please report this to https://github.com/markedjs/marked.`,i){let s="<p>An error occurred:</p><pre>"+Pt(r.message+"",!0)+"</pre>";return n?Promise.resolve(s):s}if(n)return Promise.reject(r);throw r}}},dn=new cN;function Te(i,n){return dn.parse(i,n)}Te.options=Te.setOptions=function(i){return dn.setOptions(i),Te.defaults=dn.defaults,Am(Te.defaults),Te};Te.getDefaults=ic;Te.defaults=mn;Te.use=function(...i){return dn.use(...i),Te.defaults=dn.defaults,Am(Te.defaults),Te};Te.walkTokens=function(i,n){return dn.walkTokens(i,n)};Te.parseInline=dn.parseInline;Te.Parser=ma;Te.parser=ma.parse;Te.Renderer=es;Te.TextRenderer=hc;Te.Lexer=pa;Te.lexer=pa.lex;Te.Tokenizer=Ir;Te.Hooks=Kr;Te.parse=Te;Te.options;Te.setOptions;Te.use;Te.walkTokens;Te.parseInline;ma.parse;pa.lex;function fN(i){if(!i)return"";try{return Te.parse(i,{async:!1,gfm:!0,breaks:!0})}catch(n){return console.error("Error rendering markdown:",n),i}}function Ni({content:i,title:n,variant:r="default",className:s="",children:o}){const f=["Explanation",`Explanation-${r}`,s].filter(Boolean).join(" ");return x.jsxs("div",{className:f,children:[n&&x.jsx("h3",{className:"Explanation-title",children:n}),x.jsx("div",{className:"Explanation-content markdown-content",dangerouslySetInnerHTML:{__html:fN(i)}}),o]})}function dN({isOpen:i,title:n,message:r,confirmLabel:s,cancelLabel:o,onConfirm:f,onCancel:m}){const{t:h}=ot(),[p,d]=T.useState(!0);if(!i)return null;const y=async()=>{await f({withSampleData:p})},b=S=>{S.key==="Escape"&&m()};return x.jsxs("div",{className:"ConfirmDialog",children:[x.jsx("div",{className:"ConfirmDialog-backdrop",onClick:m,onKeyDown:b,tabIndex:0,role:"button","aria-label":"Close dialog"}),x.jsxs("div",{className:"ConfirmDialog-container",children:[x.jsx("div",{className:"ConfirmDialog-header",children:x.jsx("h3",{className:"ConfirmDialog-title",children:n})}),x.jsxs("div",{className:"ConfirmDialog-body",children:[x.jsx("p",{children:r}),x.jsx("div",{className:"ConfirmDialog-checkbox mt-3",children:x.jsxs("label",{children:[x.jsx("input",{type:"checkbox",checked:p,onChange:S=>d(S.target.checked)}),x.jsx("span",{className:"ml-2",children:h("generateSiteWithData")})]})})]}),x.jsxs("div",{className:"ConfirmDialog-footer",children:[x.jsx(rt,{onClick:m,severity:"secondary",className:"ConfirmDialog-button",children:o||h("cancel")}),x.jsx(rt,{onClick:y,className:"ConfirmDialog-button",children:s||h("confirm")})]})]})]})}function M(){return M=Object.assign?Object.assign.bind():function(i){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var s in r)({}).hasOwnProperty.call(r,s)&&(i[s]=r[s])}return i},M.apply(null,arguments)}function ge(i,n){if(i==null)return{};var r={};for(var s in i)if({}.hasOwnProperty.call(i,s)){if(n.indexOf(s)!==-1)continue;r[s]=i[s]}return r}var $m={},qm=T.createContext($m),hN=(i,n)=>M({},i,n),pN=()=>T.useContext(qm),pc=T.createContext(()=>{});pc.displayName="JVR.DispatchShowTools";function mN(){return T.useReducer(hN,$m)}function Gm(){return T.useContext(pc)}var Ym=i=>{var{initial:n,dispatch:r,children:s}=i;return x.jsx(qm.Provider,{value:n,children:x.jsx(pc.Provider,{value:r,children:s})})};Ym.displayName="JVR.ShowTools";var Qm={},Zm=T.createContext(Qm),gN=(i,n)=>M({},i,n),ss=()=>T.useContext(Zm),mc=T.createContext(()=>{});mc.displayName="JVR.DispatchExpands";function yN(){return T.useReducer(gN,Qm)}function vN(){return T.useContext(mc)}var Km=i=>{var{initial:n,dispatch:r,children:s}=i;return x.jsx(Zm.Provider,{value:n,children:x.jsx(mc.Provider,{value:r,children:s})})};Km.displayName="JVR.Expands";var Xm={Str:{as:"span","data-type":"string",style:{color:"var(--w-rjv-type-string-color, #cb4b16)"},className:"w-rjv-type",children:"string"},Url:{as:"a",style:{color:"var(--w-rjv-type-url-color, #0969da)"},"data-type":"url",className:"w-rjv-type",children:"url"},Undefined:{style:{color:"var(--w-rjv-type-undefined-color, #586e75)"},as:"span","data-type":"undefined",className:"w-rjv-type",children:"undefined"},Null:{style:{color:"var(--w-rjv-type-null-color, #d33682)"},as:"span","data-type":"null",className:"w-rjv-type",children:"null"},Map:{style:{color:"var(--w-rjv-type-map-color, #268bd2)",marginRight:3},as:"span","data-type":"map",className:"w-rjv-type",children:"Map"},Nan:{style:{color:"var(--w-rjv-type-nan-color, #859900)"},as:"span","data-type":"nan",className:"w-rjv-type",children:"NaN"},Bigint:{style:{color:"var(--w-rjv-type-bigint-color, #268bd2)"},as:"span","data-type":"bigint",className:"w-rjv-type",children:"bigint"},Int:{style:{color:"var(--w-rjv-type-int-color, #268bd2)"},as:"span","data-type":"int",className:"w-rjv-type",children:"int"},Set:{style:{color:"var(--w-rjv-type-set-color, #268bd2)",marginRight:3},as:"span","data-type":"set",className:"w-rjv-type",children:"Set"},Float:{style:{color:"var(--w-rjv-type-float-color, #859900)"},as:"span","data-type":"float",className:"w-rjv-type",children:"float"},True:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},False:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},Date:{style:{color:"var(--w-rjv-type-date-color, #268bd2)"},as:"span","data-type":"date",className:"w-rjv-type",children:"date"}},Jm=T.createContext(Xm),xN=(i,n)=>M({},i,n),ze=()=>T.useContext(Jm),gc=T.createContext(()=>{});gc.displayName="JVR.DispatchTypes";function bN(){return T.useReducer(xN,Xm)}function SN(){return T.useContext(gc)}function Fm(i){var{initial:n,dispatch:r,children:s}=i;return x.jsx(Jm.Provider,{value:n,children:x.jsx(gc.Provider,{value:r,children:s})})}Fm.displayName="JVR.Types";var NN=["style"];function Pm(i){var{style:n}=i,r=ge(i,NN),s=M({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},n);return x.jsx("svg",M({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:s},r,{children:x.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}Pm.displayName="JVR.TriangleArrow";var Wm={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:x.jsx(Pm,{})},Colon:{as:"span",style:{color:"var(--w-rjv-colon-color, var(--w-rjv-color))",marginLeft:0,marginRight:2},className:"w-rjv-colon",children:":"},Quote:{as:"span",style:{color:"var(--w-rjv-quotes-color, #236a7c)"},className:"w-rjv-quotes",children:'"'},ValueQuote:{as:"span",style:{color:"var(--w-rjv-quotes-string-color, #cb4b16)"},className:"w-rjv-quotes",children:'"'},BracketsLeft:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-start",children:"["},BracketsRight:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-end",children:"]"},BraceLeft:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-start",children:"{"},BraceRight:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-end",children:"}"}},Im=T.createContext(Wm),EN=(i,n)=>M({},i,n),mt=()=>T.useContext(Im),yc=T.createContext(()=>{});yc.displayName="JVR.DispatchSymbols";function RN(){return T.useReducer(EN,Wm)}function TN(){return T.useContext(yc)}var eg=i=>{var{initial:n,dispatch:r,children:s}=i;return x.jsx(Im.Provider,{value:n,children:x.jsx(yc.Provider,{value:r,children:s})})};eg.displayName="JVR.Symbols";var tg={Copied:{className:"w-rjv-copied",style:{height:"1em",width:"1em",cursor:"pointer",verticalAlign:"middle",marginLeft:5}},CountInfo:{as:"span",className:"w-rjv-object-size",style:{color:"var(--w-rjv-info-color, #0000004d)",paddingLeft:8,fontStyle:"italic"}},CountInfoExtra:{as:"span",className:"w-rjv-object-extra",style:{paddingLeft:8}},Ellipsis:{as:"span",style:{cursor:"pointer",color:"var(--w-rjv-ellipsis-color, #cb4b16)",userSelect:"none"},className:"w-rjv-ellipsis",children:"..."},Row:{as:"div",className:"w-rjv-line"},KeyName:{as:"span",className:"w-rjv-object-key"}},ag=T.createContext(tg),wN=(i,n)=>M({},i,n),Bt=()=>T.useContext(ag),vc=T.createContext(()=>{});vc.displayName="JVR.DispatchSection";function CN(){return T.useReducer(wN,tg)}function jN(){return T.useContext(vc)}var ng=i=>{var{initial:n,dispatch:r,children:s}=i;return x.jsx(ag.Provider,{value:n,children:x.jsx(vc.Provider,{value:r,children:s})})};ng.displayName="JVR.Section";var lg={objectSortKeys:!1,indentWidth:15},xc=T.createContext(lg);xc.displayName="JVR.Context";var ig=T.createContext(()=>{});ig.displayName="JVR.DispatchContext";function kN(i,n){return M({},i,n)}var gn=()=>T.useContext(xc),rg=i=>{var{children:n,initialState:r,initialTypes:s}=i,[o,f]=T.useReducer(kN,Object.assign({},lg,r)),[m,h]=mN(),[p,d]=yN(),[y,b]=bN(),[S,w]=RN(),[E,z]=CN();return T.useEffect(()=>f(M({},r)),[r]),x.jsx(xc.Provider,{value:o,children:x.jsx(ig.Provider,{value:f,children:x.jsx(Ym,{initial:m,dispatch:h,children:x.jsx(Km,{initial:p,dispatch:d,children:x.jsx(Fm,{initial:M({},y,s),dispatch:b,children:x.jsx(eg,{initial:S,dispatch:w,children:x.jsx(ng,{initial:E,dispatch:z,children:n})})})})})})})};rg.displayName="JVR.Provider";function AN(i){if(i==null)throw new TypeError("Cannot destructure "+i)}var ON=["isNumber","value","parentValue","keyName","keys"],zN=["as","render"],LN=["as","render"],DN=["as","render"],MN=["as","style","render"],_N=["as","render"],UN=["as","render"],BN=["as","render"],HN=["as","render"],Zo=i=>{var{Quote:n={}}=mt(),{isNumber:r,value:s,parentValue:o,keyName:f,keys:m}=i,h=ge(i,ON);if(r)return null;var{as:p,render:d}=n,y=ge(n,zN),b=p||"span",S=M({},h,y),w={value:s,parentValue:o,keyName:f,keys:m||(f?[f]:[])},E=d&&typeof d=="function"&&d(S,w);return E||x.jsx(b,M({},S))};Zo.displayName="JVR.Quote";var vi=i=>{var{ValueQuote:n={}}=mt(),r=M({},(AN(i),i)),{as:s,render:o}=n,f=ge(n,LN),m=s||"span",h=M({},r,f),p=o&&typeof o=="function"&&o(h,{});return p||x.jsx(m,M({},h))};vi.displayName="JVR.ValueQuote";var sg=i=>{var{value:n,parentValue:r,keyName:s,keys:o}=i,{Colon:f={}}=mt(),{as:m,render:h}=f,p=ge(f,DN),d=m||"span",y=h&&typeof h=="function"&&h(p,{value:n,parentValue:r,keyName:s,keys:o||(s?[s]:[])});return y||x.jsx(d,M({},p))};sg.displayName="JVR.Colon";var ug=i=>{var{Arrow:n={}}=mt(),r=ss(),{expandKey:s,style:o,value:f,parentValue:m,keyName:h,keys:p}=i,d=!!r[s],{as:y,style:b,render:S}=n,w=ge(n,MN),E=y||"span",z=S&&typeof S=="function",H=M({},w,{"data-expanded":d,style:M({},b,o)}),_={value:f,parentValue:m,keyName:h,keys:p||(h?[h]:[])},U=z&&S(H,_);return U||x.jsx(E,M({},w,{style:M({},b,o)}))};ug.displayName="JVR.Arrow";var og=i=>{var{isBrackets:n,value:r,parentValue:s,keyName:o,keys:f}=i,{BracketsLeft:m={},BraceLeft:h={}}=mt(),p={value:r,parentValue:s,keyName:o,keys:f||(o?[o]:[])};if(n){var{as:d,render:y}=m,b=ge(m,_N),S=d||"span",w=y&&typeof y=="function"&&y(b,p);return w||x.jsx(S,M({},b))}var{as:E,render:z}=h,H=ge(h,UN),_=E||"span",U=z&&typeof z=="function"&&z(H,p);return U||x.jsx(_,M({},H))};og.displayName="JVR.BracketsOpen";var bc=i=>{var{isBrackets:n,isVisiable:r,value:s,parentValue:o,keyName:f,keys:m}=i,h={value:s,parentValue:o,keyName:f,keys:m||(f?[f]:[])};if(!r)return null;var{BracketsRight:p={},BraceRight:d={}}=mt();if(n){var{as:y,render:b}=p,S=ge(p,BN),w=y||"span",E=b&&typeof b=="function"&&b(S,h);return E||x.jsx(w,M({},S))}var{as:z,render:H}=d,_=ge(d,HN),U=z||"span",G=H&&typeof H=="function"&&H(_,h);return G||x.jsx(U,M({},_))};bc.displayName="JVR.BracketsClose";var cg=i=>{var n,{keyName:r,value:s,expandKey:o,parentValue:f,level:m,keys:h=[]}=i,p=ss(),{collapsed:d,shouldExpandNodeInitially:y}=gn(),b=typeof d=="boolean"?d:typeof d=="number"?m>d:!1,S=(n=p[o])!=null?n:b,w=y&&y(S,{value:s,keys:h,level:m,keyName:r,parentValue:f});if(p[o]===void 0&&w)return null;var E=Object.keys(s).length;if(S||E===0)return null;var z={paddingLeft:4},H={keyName:r,value:s,keys:h,parentValue:f},_=Array.isArray(s),U=s instanceof Set;return x.jsx("div",{style:z,children:x.jsx(bc,M({isBrackets:_||U},H,{isVisiable:!0}))})};cg.displayName="JVR.NestedClose";var VN=["as","render"],$N=["as","render"],qN=["as","render"],GN=["as","render"],YN=["as","render"],QN=["as","render"],ZN=["as","render"],KN=["as","render"],XN=["as","render"],JN=["as","render"],FN=["as","render"],PN=["as","render"],WN=["as","render"],Ko=i=>{if(i===void 0)return"0n";if(typeof i=="string")try{i=BigInt(i)}catch{return"0n"}return i?i.toString()+"n":"0n"},fg=i=>{var{value:n,keyName:r}=i,{Set:s={},displayDataTypes:o}=ze(),f=n instanceof Set;if(!f||!o)return null;var{as:m,render:h}=s,p=ge(s,VN),d=h&&typeof h=="function",y=d&&h(p,{type:"type",value:n,keyName:r});if(y)return y;var b=m||"span";return x.jsx(b,M({},p))};fg.displayName="JVR.SetComp";var dg=i=>{var{value:n,keyName:r}=i,{Map:s={},displayDataTypes:o}=ze(),f=n instanceof Map;if(!f||!o)return null;var{as:m,render:h}=s,p=ge(s,$N),d=h&&typeof h=="function",y=d&&h(p,{type:"type",value:n,keyName:r});if(y)return y;var b=m||"span";return x.jsx(b,M({},p))};dg.displayName="JVR.MapComp";var Yt={opacity:.75,paddingRight:4},hg=i=>{var{children:n="",keyName:r,keys:s}=i,{Str:o={},displayDataTypes:f}=ze(),{shortenTextAfterLength:m=30,stringEllipsis:h="..."}=gn(),{as:p,render:d}=o,y=ge(o,qN),b=n,[S,w]=T.useState(m&&b.length>m);T.useEffect(()=>w(m&&b.length>m),[m]);var E=p||"span",z=M({},Yt,o.style||{});m>0&&(y.style=M({},y.style,{cursor:b.length<=m?"initial":"pointer"}),b.length>m&&(y.onClick=()=>{w(!S)}));var H=S?""+b.slice(0,m)+h:b,_=d&&typeof d=="function",U=_&&d(M({},y,{style:z}),{type:"type",value:n,keyName:r,keys:s}),G=S?"w-rjv-value w-rjv-value-short":"w-rjv-value",X=_&&d(M({},y,{children:H,className:G}),{type:"value",value:n,keyName:r,keys:s});return x.jsxs(T.Fragment,{children:[f&&(U||x.jsx(E,M({},y,{style:z}))),X||x.jsxs(T.Fragment,{children:[x.jsx(vi,{}),x.jsx(E,M({},y,{className:G,children:H})),x.jsx(vi,{})]})]})};hg.displayName="JVR.TypeString";var pg=i=>{var{children:n,keyName:r,keys:s}=i,{True:o={},displayDataTypes:f}=ze(),{as:m,render:h}=o,p=ge(o,GN),d=m||"span",y=M({},Yt,o.style||{}),b=h&&typeof h=="function",S=b&&h(M({},p,{style:y}),{type:"type",value:n,keyName:r,keys:s}),w=b&&h(M({},p,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r,keys:s});return x.jsxs(T.Fragment,{children:[f&&(S||x.jsx(d,M({},p,{style:y}))),w||x.jsx(d,M({},p,{className:"w-rjv-value",children:n==null?void 0:n.toString()}))]})};pg.displayName="JVR.TypeTrue";var mg=i=>{var{children:n,keyName:r,keys:s}=i,{False:o={},displayDataTypes:f}=ze(),{as:m,render:h}=o,p=ge(o,YN),d=m||"span",y=M({},Yt,o.style||{}),b=h&&typeof h=="function",S=b&&h(M({},p,{style:y}),{type:"type",value:n,keyName:r,keys:s}),w=b&&h(M({},p,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r,keys:s});return x.jsxs(T.Fragment,{children:[f&&(S||x.jsx(d,M({},p,{style:y}))),w||x.jsx(d,M({},p,{className:"w-rjv-value",children:n==null?void 0:n.toString()}))]})};mg.displayName="JVR.TypeFalse";var gg=i=>{var{children:n,keyName:r,keys:s}=i,{Float:o={},displayDataTypes:f}=ze(),{as:m,render:h}=o,p=ge(o,QN),d=m||"span",y=M({},Yt,o.style||{}),b=h&&typeof h=="function",S=b&&h(M({},p,{style:y}),{type:"type",value:n,keyName:r,keys:s}),w=b&&h(M({},p,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r,keys:s});return x.jsxs(T.Fragment,{children:[f&&(S||x.jsx(d,M({},p,{style:y}))),w||x.jsx(d,M({},p,{className:"w-rjv-value",children:n==null?void 0:n.toString()}))]})};gg.displayName="JVR.TypeFloat";var yg=i=>{var{children:n,keyName:r,keys:s}=i,{Int:o={},displayDataTypes:f}=ze(),{as:m,render:h}=o,p=ge(o,ZN),d=m||"span",y=M({},Yt,o.style||{}),b=h&&typeof h=="function",S=b&&h(M({},p,{style:y}),{type:"type",value:n,keyName:r,keys:s}),w=b&&h(M({},p,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r,keys:s});return x.jsxs(T.Fragment,{children:[f&&(S||x.jsx(d,M({},p,{style:y}))),w||x.jsx(d,M({},p,{className:"w-rjv-value",children:n==null?void 0:n.toString()}))]})};yg.displayName="JVR.TypeInt";var vg=i=>{var{children:n,keyName:r,keys:s}=i,{Bigint:o={},displayDataTypes:f}=ze(),{as:m,render:h}=o,p=ge(o,KN),d=m||"span",y=M({},Yt,o.style||{}),b=h&&typeof h=="function",S=b&&h(M({},p,{style:y}),{type:"type",value:n,keyName:r,keys:s}),w=b&&h(M({},p,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r,keys:s});return x.jsxs(T.Fragment,{children:[f&&(S||x.jsx(d,M({},p,{style:y}))),w||x.jsx(d,M({},p,{className:"w-rjv-value",children:Ko(n==null?void 0:n.toString())}))]})};vg.displayName="JVR.TypeFloat";var xg=i=>{var{children:n,keyName:r,keys:s}=i,{Url:o={},displayDataTypes:f}=ze(),{as:m,render:h}=o,p=ge(o,XN),d=m||"span",y=M({},Yt,o.style),b=h&&typeof h=="function",S=b&&h(M({},p,{style:y}),{type:"type",value:n,keyName:r,keys:s}),w=b&&h(M({},p,{children:n==null?void 0:n.href,className:"w-rjv-value"}),{type:"value",value:n,keyName:r,keys:s});return x.jsxs(T.Fragment,{children:[f&&(S||x.jsx(d,M({},p,{style:y}))),w||x.jsxs("a",M({href:n==null?void 0:n.href,target:"_blank"},p,{className:"w-rjv-value",children:[x.jsx(vi,{}),n==null?void 0:n.href,x.jsx(vi,{})]}))]})};xg.displayName="JVR.TypeUrl";var bg=i=>{var{children:n,keyName:r,keys:s}=i,{Date:o={},displayDataTypes:f}=ze(),{as:m,render:h}=o,p=ge(o,JN),d=m||"span",y=M({},Yt,o.style||{}),b=h&&typeof h=="function",S=b&&h(M({},p,{style:y}),{type:"type",value:n,keyName:r,keys:s}),w=n instanceof Date?n.toLocaleString():n,E=b&&h(M({},p,{children:w,className:"w-rjv-value"}),{type:"value",value:n,keyName:r,keys:s});return x.jsxs(T.Fragment,{children:[f&&(S||x.jsx(d,M({},p,{style:y}))),E||x.jsx(d,M({},p,{className:"w-rjv-value",children:w}))]})};bg.displayName="JVR.TypeDate";var Sg=i=>{var{children:n,keyName:r,keys:s}=i,{Undefined:o={},displayDataTypes:f}=ze(),{as:m,render:h}=o,p=ge(o,FN),d=m||"span",y=M({},Yt,o.style||{}),b=h&&typeof h=="function",S=b&&h(M({},p,{style:y}),{type:"type",value:n,keyName:r,keys:s}),w=b&&h(M({},p,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r,keys:s});return x.jsxs(T.Fragment,{children:[f&&(S||x.jsx(d,M({},p,{style:y}))),w]})};Sg.displayName="JVR.TypeUndefined";var Ng=i=>{var{children:n,keyName:r,keys:s}=i,{Null:o={},displayDataTypes:f}=ze(),{as:m,render:h}=o,p=ge(o,PN),d=m||"span",y=M({},Yt,o.style||{}),b=h&&typeof h=="function",S=b&&h(M({},p,{style:y}),{type:"type",value:n,keyName:r,keys:s}),w=b&&h(M({},p,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r,keys:s});return x.jsxs(T.Fragment,{children:[f&&(S||x.jsx(d,M({},p,{style:y}))),w]})};Ng.displayName="JVR.TypeNull";var Eg=i=>{var{children:n,keyName:r,keys:s}=i,{Nan:o={},displayDataTypes:f}=ze(),{as:m,render:h}=o,p=ge(o,WN),d=m||"span",y=M({},Yt,o.style||{}),b=h&&typeof h=="function",S=b&&h(M({},p,{style:y}),{type:"type",value:n,keyName:r,keys:s}),w=b&&h(M({},p,{children:n==null?void 0:n.toString(),className:"w-rjv-value"}),{type:"value",value:n,keyName:r,keys:s});return x.jsxs(T.Fragment,{children:[f&&(S||x.jsx(d,M({},p,{style:y}))),w]})};Eg.displayName="JVR.TypeNan";var IN=i=>Number(i)===i&&i%1!==0||isNaN(i),Rg=i=>{var{value:n,keyName:r,keys:s}=i,o={keyName:r,keys:s};return n instanceof URL?x.jsx(xg,M({},o,{children:n})):typeof n=="string"?x.jsx(hg,M({},o,{children:n})):n===!0?x.jsx(pg,M({},o,{children:n})):n===!1?x.jsx(mg,M({},o,{children:n})):n===null?x.jsx(Ng,M({},o,{children:n})):n===void 0?x.jsx(Sg,M({},o,{children:n})):n instanceof Date?x.jsx(bg,M({},o,{children:n})):typeof n=="number"&&isNaN(n)?x.jsx(Eg,M({},o,{children:n})):typeof n=="number"&&IN(n)?x.jsx(gg,M({},o,{children:n})):typeof n=="bigint"?x.jsx(vg,M({},o,{children:n})):typeof n=="number"?x.jsx(yg,M({},o,{children:n})):null};Rg.displayName="JVR.Value";function Qa(i,n,r){var s=TN(),o=[i.className,n.className].filter(Boolean).join(" "),f=M({},i,n,{className:o,style:M({},i.style,n.style),children:n.children||i.children});T.useEffect(()=>s({[r]:f}),[n])}function Ct(i,n,r){var s=SN(),o=[i.className,n.className].filter(Boolean).join(" "),f=M({},i,n,{className:o,style:M({},i.style,n.style),children:n.children||i.children});T.useEffect(()=>s({[r]:f}),[n])}function sl(i,n,r){var s=jN(),o=[i.className,n.className].filter(Boolean).join(" "),f=M({},i,n,{className:o,style:M({},i.style,n.style),children:n.children||i.children});T.useEffect(()=>s({[r]:f}),[n])}var eE=["as","render"],Tg=i=>{var{KeyName:n={}}=Bt();return sl(n,i,"KeyName"),null};Tg.displayName="JVR.KeyName";var wg=i=>{var{children:n,value:r,parentValue:s,keyName:o,keys:f}=i,m=typeof n=="number",h={color:m?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:p={}}=Bt(),{as:d,render:y}=p,b=ge(p,eE);b.style=M({},b.style,h);var S=d||"span",w=y&&typeof y=="function"&&y(M({},b,{children:n}),{value:r,parentValue:s,keyName:o,keys:f||(o?[o]:[])});return w||x.jsx(S,M({},b,{children:n}))};wg.displayName="JVR.KeyNameComp";var tE=["children","value","parentValue","keyName","keys"],aE=["as","render","children"],Cg=i=>{var{Row:n={}}=Bt();return sl(n,i,"Row"),null};Cg.displayName="JVR.Row";var jg=i=>{var{children:n,value:r,parentValue:s,keyName:o,keys:f}=i,m=ge(i,tE),{Row:h={}}=Bt(),{as:p,render:d}=h,y=ge(h,aE),b=p||"div",S=d&&typeof d=="function"&&d(M({},m,y,{children:n}),{value:r,keyName:o,parentValue:s,keys:f});return S||x.jsx(b,M({},m,y,{children:n}))};jg.displayName="JVR.RowComp";function nE(i){var n=T.useRef();return T.useEffect(()=>{n.current=i}),n.current}function lE(i){var{value:n,highlightUpdates:r,highlightContainer:s}=i,o=nE(n),f=T.useMemo(()=>{if(!r||o===void 0)return!1;if(typeof n!=typeof o)return!0;if(typeof n=="number")return isNaN(n)&&isNaN(o)?!1:n!==o;if(Array.isArray(n)!==Array.isArray(o))return!0;if(typeof n=="object"||typeof n=="function")return!1;if(n!==o)return!0},[r,n]);T.useEffect(()=>{s&&s.current&&f&&"animate"in s.current&&s.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[f,n,s])}var iE=["keyName","value","parentValue","expandKey","keys"],rE=["as","render"],Sc=i=>{var{keyName:n,value:r,parentValue:s,expandKey:o,keys:f}=i,m=ge(i,iE),{onCopied:h,enableClipboard:p}=gn(),d=pN(),y=d[o],[b,S]=T.useState(!1),{Copied:w={}}=Bt();if(p===!1||!y)return null;var E=Z=>{Z.stopPropagation();var te="";typeof r=="number"&&r===1/0?te="Infinity":typeof r=="number"&&isNaN(r)?te="NaN":typeof r=="bigint"?te=Ko(r):r instanceof Date?te=r.toLocaleString():te=JSON.stringify(r,(ee,F)=>typeof F=="bigint"?Ko(F):F,2),h&&h(te,r),S(!0);var ne=navigator.clipboard||{writeText(ee){return new Promise((F,ie)=>{var pe=document.createElement("textarea");pe.style.position="absolute",pe.style.opacity="0",pe.style.left="-99999999px",pe.value=ee,document.body.appendChild(pe),pe.select(),document.execCommand("copy")?F():ie(),pe.remove()})}};ne.writeText(te).then(()=>{var ee=setTimeout(()=>{S(!1),clearTimeout(ee)},3e3)}).catch(ee=>{})},z={style:{display:"inline-flex"},fill:b?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:E},{render:H}=w,_=ge(w,rE),U=M({},_,m,z,{style:M({},_.style,m.style,z.style)}),G=H&&typeof H=="function",X=G&&H(M({},U,{"data-copied":b}),{value:r,keyName:n,keys:f,parentValue:s});return X||(b?x.jsx("svg",M({viewBox:"0 0 32 36"},U,{children:x.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})):x.jsx("svg",M({viewBox:"0 0 32 36"},U,{children:x.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})))};Sc.displayName="JVR.Copied";function kg(){var i=T.useRef(null);return i.current===null&&(i.current="custom-id-"+Math.random().toString(36).substr(2,9)),i.current}var Ag=i=>{var n,{keyName:r,value:s,expandKey:o="",level:f,keys:m=[],parentValue:h}=i,p=ss(),{objectSortKeys:d,indentWidth:y,collapsed:b,shouldExpandNodeInitially:S}=gn(),w=typeof b=="boolean"?b:typeof b=="number"?f>b:!1,E=(n=p[o])!=null?n:w,z=S&&S(E,{value:s,keys:m,level:f,keyName:r,parentValue:h});if(p[o]===void 0&&z||E)return null;var H=Array.isArray(s),_=H?Object.entries(s).map(G=>[Number(G[0]),G[1]]):Object.entries(s);d&&(_=d===!0?_.sort((G,X)=>{var[Z]=G,[te]=X;return typeof Z=="string"&&typeof te=="string"?Z.localeCompare(te):0}):_.sort((G,X)=>{var[Z,te]=G,[ne,ee]=X;return typeof Z=="string"&&typeof ne=="string"?d(Z,ne,te,ee):0}));var U={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:y,marginLeft:6};return x.jsx("div",{className:"w-rjv-wrap",style:U,children:_.map((G,X)=>{var[Z,te]=G;return x.jsx(Og,{parentValue:s,keyName:Z,keys:[...m,Z],value:te,level:f},X)})})};Ag.displayName="JVR.KeyValues";var Nc=i=>{var{keyName:n,parentValue:r,keys:s,value:o}=i,{highlightUpdates:f}=gn(),m=typeof n=="number",h=T.useRef(null);lE({value:o,highlightUpdates:f,highlightContainer:h});var p={keyName:n,value:o,keys:s,parentValue:r};return x.jsxs(T.Fragment,{children:[x.jsxs("span",{ref:h,children:[x.jsx(Zo,M({isNumber:m,"data-placement":"left"},p)),x.jsx(wg,M({},p,{children:n})),x.jsx(Zo,M({isNumber:m,"data-placement":"right"},p))]}),x.jsx(sg,M({},p))]})};Nc.displayName="JVR.KayName";var Og=i=>{var{keyName:n,value:r,parentValue:s,level:o=0,keys:f=[]}=i,m=Gm(),h=kg(),p=Array.isArray(r),d=r instanceof Set,y=r instanceof Map,b=r instanceof Date,S=r instanceof URL,w=r&&typeof r=="object"&&!p&&!d&&!y&&!b&&!S,E=w||p||d||y;if(E){var z=d?Array.from(r):y?Object.fromEntries(r):r;return x.jsx(Ec,{keyName:n,value:z,parentValue:s,initialValue:r,keys:f,level:o+1})}var H={onMouseEnter:()=>m({[h]:!0}),onMouseLeave:()=>m({[h]:!1})};return x.jsxs(jg,M({className:"w-rjv-line",value:r,keyName:n,keys:f,parentValue:s},H,{children:[x.jsx(Nc,{keyName:n,value:r,keys:f,parentValue:s}),x.jsx(Rg,{keyName:n,value:r,keys:f}),x.jsx(Sc,{keyName:n,value:r,keys:f,parentValue:s,expandKey:h})]}))};Og.displayName="JVR.KeyValuesItem";var sE=["value","keyName"],uE=["as","render"],zg=i=>{var{CountInfoExtra:n={}}=Bt();return sl(n,i,"CountInfoExtra"),null};zg.displayName="JVR.CountInfoExtra";var Lg=i=>{var{value:n={},keyName:r}=i,s=ge(i,sE),{CountInfoExtra:o={}}=Bt(),{as:f,render:m}=o,h=ge(o,uE);if(!m&&!h.children)return null;var p=f||"span",d=m&&typeof m=="function",y=M({},h,s),b=d&&m(y,{value:n,keyName:r});return b||x.jsx(p,M({},y))};Lg.displayName="JVR.CountInfoExtraComps";var oE=["value","keyName"],cE=["as","render"],Dg=i=>{var{CountInfo:n={}}=Bt();return sl(n,i,"CountInfo"),null};Dg.displayName="JVR.CountInfo";var Mg=i=>{var{value:n={},keyName:r}=i,s=ge(i,oE),{displayObjectSize:o}=gn(),{CountInfo:f={}}=Bt();if(!o)return null;var{as:m,render:h}=f,p=ge(f,cE),d=m||"span";p.style=M({},p.style,i.style);var y=Object.keys(n).length;p.children||(p.children=y+" item"+(y===1?"":"s"));var b=M({},p,s),S=h&&typeof h=="function",w=S&&h(M({},b,{"data-length":y}),{value:n,keyName:r});return w||x.jsx(d,M({},b))};Mg.displayName="JVR.CountInfoComp";var fE=["as","render"],_g=i=>{var{Ellipsis:n={}}=Bt();return sl(n,i,"Ellipsis"),null};_g.displayName="JVR.Ellipsis";var Ug=i=>{var{isExpanded:n,value:r,keyName:s}=i,{Ellipsis:o={}}=Bt(),{as:f,render:m}=o,h=ge(o,fE),p=f||"span",d=m&&typeof m=="function"&&m(M({},h,{"data-expanded":n}),{value:r,keyName:s});return d||(!n||typeof r=="object"&&Object.keys(r).length==0?null:x.jsx(p,M({},h)))};Ug.displayName="JVR.EllipsisComp";var Bg=i=>{var n,{keyName:r,expandKey:s,keys:o=[],initialValue:f,value:m,parentValue:h,level:p}=i,d=ss(),y=vN(),{onExpand:b,collapsed:S,shouldExpandNodeInitially:w}=gn(),E=typeof S=="boolean"?S:typeof S=="number"?p>S:!1,z=(n=d[s])!=null?n:E,H=w&&w(z,{value:m,keys:o,level:p,keyName:r,parentValue:h});d[s]===void 0&&w&&(z=!!H);var _=()=>{var pe={expand:!z,value:m,keyid:s,keyName:r};b&&b(pe),y({[s]:pe.expand})},U={display:"inline-flex",alignItems:"center"},G={transform:"rotate("+(z?"-90":"0")+"deg)",transition:"all 0.3s"},X=Object.keys(m).length,Z=typeof m=="object",te=Array.isArray(m),ne=m instanceof Set,ee=X!==0&&(te||ne||Z),F={style:U};ee&&(F.onClick=_);var ie={keyName:r,value:m,keys:o,parentValue:h};return x.jsxs("span",M({},F,{children:[ee&&x.jsx(ug,M({style:G,expandKey:s},ie)),(r||typeof r=="number")&&x.jsx(Nc,M({},ie)),x.jsx(fg,{value:f,keyName:r}),x.jsx(dg,{value:f,keyName:r}),x.jsx(og,M({isBrackets:te||ne},ie)),x.jsx(Ug,{keyName:r,value:m,isExpanded:z}),x.jsx(bc,M({isVisiable:z||!ee,isBrackets:te||ne},ie)),x.jsx(Mg,{value:m,keyName:r}),x.jsx(Lg,{value:m,keyName:r}),x.jsx(Sc,{keyName:r,value:m,expandKey:s,parentValue:h,keys:o})]}))};Bg.displayName="JVR.NestedOpen";var dE=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],Ec=T.forwardRef((i,n)=>{var{className:r="",parentValue:s,level:o=1,value:f,initialValue:m,keys:h,keyName:p}=i,d=ge(i,dE),y=Gm(),b=kg(),S=[r,"w-rjv-inner"].filter(Boolean).join(" "),w={onMouseEnter:()=>y({[b]:!0}),onMouseLeave:()=>y({[b]:!1})};return x.jsxs("div",M({className:S,ref:n},d,w,{children:[x.jsx(Bg,{expandKey:b,value:f,level:o,keys:h,parentValue:s,keyName:p,initialValue:m}),x.jsx(Ag,{expandKey:b,value:f,level:o,keys:h,parentValue:s,keyName:p}),x.jsx(cg,{expandKey:b,value:f,level:o,keys:h,parentValue:s,keyName:p})]}))});Ec.displayName="JVR.Container";var Hg=i=>{var{BraceLeft:n={}}=mt();return Qa(n,i,"BraceLeft"),null};Hg.displayName="JVR.BraceLeft";var Vg=i=>{var{BraceRight:n={}}=mt();return Qa(n,i,"BraceRight"),null};Vg.displayName="JVR.BraceRight";var $g=i=>{var{BracketsLeft:n={}}=mt();return Qa(n,i,"BracketsLeft"),null};$g.displayName="JVR.BracketsLeft";var qg=i=>{var{BracketsRight:n={}}=mt();return Qa(n,i,"BracketsRight"),null};qg.displayName="JVR.BracketsRight";var Gg=i=>{var{Arrow:n={}}=mt();return Qa(n,i,"Arrow"),null};Gg.displayName="JVR.Arrow";var Yg=i=>{var{Colon:n={}}=mt();return Qa(n,i,"Colon"),null};Yg.displayName="JVR.Colon";var Qg=i=>{var{Quote:n={}}=mt();return Qa(n,i,"Quote"),null};Qg.displayName="JVR.Quote";var Zg=i=>{var{ValueQuote:n={}}=mt();return Qa(n,i,"ValueQuote"),null};Zg.displayName="JVR.ValueQuote";var Kg=i=>{var{Bigint:n={}}=ze();return Ct(n,i,"Bigint"),null};Kg.displayName="JVR.Bigint";var Xg=i=>{var{Date:n={}}=ze();return Ct(n,i,"Date"),null};Xg.displayName="JVR.Date";var Jg=i=>{var{False:n={}}=ze();return Ct(n,i,"False"),null};Jg.displayName="JVR.False";var Fg=i=>{var{Float:n={}}=ze();return Ct(n,i,"Float"),null};Fg.displayName="JVR.Float";var Pg=i=>{var{Int:n={}}=ze();return Ct(n,i,"Int"),null};Pg.displayName="JVR.Int";var Wg=i=>{var{Map:n={}}=ze();return Ct(n,i,"Map"),null};Wg.displayName="JVR.Map";var Ig=i=>{var{Nan:n={}}=ze();return Ct(n,i,"Nan"),null};Ig.displayName="JVR.Nan";var ey=i=>{var{Null:n={}}=ze();return Ct(n,i,"Null"),null};ey.displayName="JVR.Null";var ty=i=>{var{Set:n={}}=ze();return Ct(n,i,"Set"),null};ty.displayName="JVR.Set";var ay=i=>{var{Str:n={}}=ze();return Ct(n,i,"Str"),null};ay.displayName="JVR.StringText";var ny=i=>{var{True:n={}}=ze();return Ct(n,i,"True"),null};ny.displayName="JVR.True";var ly=i=>{var{Undefined:n={}}=ze();return Ct(n,i,"Undefined"),null};ly.displayName="JVR.Undefined";var iy=i=>{var{Url:n={}}=ze();return Ct(n,i,"Url"),null};iy.displayName="JVR.Url";var ry=i=>{var{Copied:n={}}=Bt();return sl(n,i,"Copied"),null};ry.displayName="JVR.Copied";var hE=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","stringEllipsis","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied"],be=T.forwardRef((i,n)=>{var{className:r="",style:s,value:o,children:f,collapsed:m,shouldExpandNodeInitially:h,indentWidth:p=15,displayObjectSize:d=!0,shortenTextAfterLength:y=30,stringEllipsis:b,highlightUpdates:S=!0,enableClipboard:w=!0,displayDataTypes:E=!0,objectSortKeys:z=!1,onExpand:H,onCopied:_}=i,U=ge(i,hE),G=M({lineHeight:1.4,fontFamily:"var(--w-rjv-font-family, Menlo, monospace)",color:"var(--w-rjv-color, #002b36)",backgroundColor:"var(--w-rjv-background-color, #00000000)",fontSize:13},s),X=["w-json-view-container","w-rjv",r].filter(Boolean).join(" ");return x.jsxs(rg,{initialState:{value:o,objectSortKeys:z,indentWidth:p,shouldExpandNodeInitially:h,displayObjectSize:d,collapsed:m,enableClipboard:w,shortenTextAfterLength:y,stringEllipsis:b,highlightUpdates:S,onCopied:_,onExpand:H},initialTypes:{displayDataTypes:E},children:[x.jsx(Ec,M({value:o},U,{ref:n,className:X,style:G})),f]})});be.Bigint=Kg;be.Date=Xg;be.False=Jg;be.Float=Fg;be.Int=Pg;be.Map=Wg;be.Nan=Ig;be.Null=ey;be.Set=ty;be.String=ay;be.True=ny;be.Undefined=ly;be.Url=iy;be.ValueQuote=Zg;be.Arrow=Gg;be.Colon=Yg;be.Quote=Qg;be.Ellipsis=_g;be.BraceLeft=Hg;be.BraceRight=Vg;be.BracketsLeft=$g;be.BracketsRight=qg;be.Copied=ry;be.CountInfo=Dg;be.CountInfoExtra=zg;be.KeyName=Tg;be.Row=Cg;be.displayName="JVR.JsonView";var nm={"--w-rjv-font-family":"monospace","--w-rjv-color":"#002b36","--w-rjv-key-string":"#002b36","--w-rjv-background-color":"#ffffff","--w-rjv-line-color":"#ebebeb","--w-rjv-arrow-color":"var(--w-rjv-color)","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#0000004d","--w-rjv-update-color":"#ebcb8b","--w-rjv-copied-color":"#002b36","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#236a7c","--w-rjv-colon-color":"#002b36","--w-rjv-brackets-color":"#236a7c","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#cb4b16","--w-rjv-type-int-color":"#268bd2","--w-rjv-type-float-color":"#859900","--w-rjv-type-bigint-color":"#268bd2","--w-rjv-type-boolean-color":"#2aa198","--w-rjv-type-date-color":"#586e75","--w-rjv-type-url-color":"#0969da","--w-rjv-type-null-color":"#d33682","--w-rjv-type-nan-color":"#859900","--w-rjv-type-undefined-color":"#586e75"};function pE(i){const n=Object.keys(i),r=n.length>0?n[0]:void 0;return(s,o,f={})=>{if(!r)return f.default??s;const m=i[o]??i[r],h=s.split(".");let p=m;for(const d of h){if(typeof p=="string"||!p||!Object.hasOwn(p,d))return f.default??s;p=p[d]}return typeof p=="string"?p:f.default??s}}function mE({siteSchema:i,schemaTranslate:n}){const r=new Set;return x.jsx("ul",{children:x.jsx(Xo,{schema:i,schemaT:n,typeName:"home",displayedNodeTypeNames:r})})}function Xo({schema:i,schemaT:n,typeName:r,depth:s=0,displayedNodeTypeNames:o}){const{i18n:f}=ot(),m=gE(i,r);if(!m)return null;const h=m.routingChildren||[],p=m.regularChildren||[],d=m.lists||[],y=m.documentKind==="routing",b=n(`nodeTypes.${r}.label`,f.language,{default:r});return o.has(r)?x.jsx("li",{children:x.jsxs("div",{children:[y?x.jsx("strong",{children:b}):b," (",x.jsx("code",{children:r}),")"]})}):(o.add(r),x.jsxs("li",{children:[x.jsxs("div",{children:[y?x.jsx("strong",{children:b}):b," (",x.jsx("code",{children:r}),")"]}),d.map(S=>x.jsxs("div",{style:{marginLeft:"30px",color:"#999",fontStyle:"italic"},children:[n(`nodeTypes.${r}.lists.${S.listName}.label`,f.language,{default:S.listName})," ","(",x.jsx("code",{children:S.listName})," [",x.jsx("code",{children:S.parts.join("</code>, <code>")}),"])"]},S.listName)),h.length>0&&x.jsx("ul",{children:h.map(S=>x.jsx(Xo,{schema:i,schemaT:n,typeName:S,depth:s+1,displayedNodeTypeNames:o},S))}),p.length>0&&x.jsx("ul",{children:p.map(S=>x.jsx(Xo,{schema:i,schemaT:n,typeName:S,depth:s+1,displayedNodeTypeNames:o},S))})]}))}function gE(i,n){var r;return(r=i.nodeTypes)==null?void 0:r.find(s=>s.kind==="document"&&s.typeName===n)}function yE({step:i}){const{t:n}=ot(),[r,s]=T.useState("tree"),{siteSchema:o,l10n:f}=i,m=pE(f),h=(p,d)=>d.keys.length===1&&d.keys[0]==="plugins";return x.jsxs("div",{className:"SchemaViewer",children:[x.jsxs("div",{className:"SchemaViewer-tabs",children:[x.jsx(rt,{className:`SchemaViewer-tab ${r==="tree"?"active":""}`,onClick:()=>s("tree"),children:n("treeView")}),x.jsx(rt,{className:`SchemaViewer-tab ${r==="schema"?"active":""}`,onClick:()=>s("schema"),children:n("siteSchema")}),x.jsx(rt,{className:`SchemaViewer-tab ${r==="locales"?"active":""}`,onClick:()=>s("locales"),children:n("labels")})]}),x.jsxs("div",{className:"SchemaViewer-main",children:[x.jsx("div",{className:"SchemaViewer-content",style:{display:r==="tree"?"block":"none"},children:x.jsx(mE,{siteSchema:o,schemaTranslate:m})}),x.jsx("div",{className:"SchemaViewer-content",style:{display:r==="locales"?"block":"none"},children:x.jsx(be,{value:f,style:nm,enableClipboard:!1,displayObjectSize:!1,displayDataTypes:!1,shortenTextAfterLength:0})}),x.jsx("div",{className:"SchemaViewer-content",style:{display:r==="schema"?"block":"none"},children:x.jsxs(be,{value:o,style:nm,enableClipboard:!1,displayObjectSize:!1,displayDataTypes:!1,shortenTextAfterLength:0,shouldExpandNodeInitially:h,children:[x.jsx(be.Colon,{render:(p,{parentValue:d})=>Array.isArray(d)&&p.children===":"?x.jsx("span",{}):x.jsx("span",{...p})}),x.jsx(be.KeyName,{render:(p,{parentValue:d})=>Array.isArray(d)&&Number.isFinite(p.children)?x.jsx("span",{}):x.jsx("span",{...p})})]})})]})]})}function vE({step:i}){const{t:n}=ot(),{workSession:r,appendNewStep:s}=pn(),[o,f]=T.useState(!1),[m,h]=T.useState(!1),[p,d]=T.useState(!1),[y,b]=T.useState(void 0),S=rl(),w=()=>{f(!o)},E=async H=>{if(!r)return;d(!0),b(void 0);const _=yi();if(!_){b(n("sessionExpired")),d(!1);return}try{const U=await Ga({command:"updateSiteSchema",sessionToken:_,prompt:H,fromStepNumber:i.stepNumber});U.success&&U.result?(f(!1),s(U.result),await S(`/step/${U.result.stepNumber}`)):b(n("promptSubmissionFailed"))}catch(U){console.error("Error updating schema:",U),b(n("errorOccurred"))}finally{d(!1)}},z=async({withSampleData:H})=>{if(!r)return;d(!0),b(void 0),h(!1);const _=yi();if(!_){b(n("sessionExpired")),d(!1);return}try{const U=await Ga({command:"generateSite",sessionToken:_,fromStepNumber:i.stepNumber,withSampleData:H});U.success&&U.result?(s(U.result),await S(`/step/${U.result.stepNumber}`)):b(n("generationFailed"))}catch(U){console.error("Error generating site:",U),b(n("errorOccurred"))}finally{d(!1)}};return x.jsx(wt,{children:x.jsxs("div",{className:"CompletedStep",children:[x.jsx(yE,{step:i}),i.explanation&&x.jsx(Ni,{content:i.explanation,title:n("explanation")}),x.jsxs("div",{className:"CompletedStep-actions",children:[x.jsx(rt,{onClick:w,className:"CompletedStep-button",children:n("modifySchema")}),x.jsx(rt,{onClick:()=>h(!0),className:"CompletedStep-button",children:n("generateTheWebsite")})]}),o&&x.jsxs("div",{className:"CompletedStep-updateForm",children:[x.jsx("h3",{children:n("updateSchema")}),x.jsx(km,{placeholder:n("updatePromptPlaceholder"),submitLabel:n("modifySchema"),onSubmit:E,isLoading:p,error:y})]}),x.jsx(dN,{isOpen:m,title:n("generateTheWebsite"),message:n("aboutToGenerateWebsite"),confirmLabel:n("confirm"),onConfirm:z,onCancel:()=>h(!1)}),y&&!o&&x.jsx("div",{className:"Alert error",children:x.jsx("p",{children:y})})]})})}function xE({step:i}){const{t:n}=ot();return x.jsx(wt,{children:x.jsxs("div",{className:"ErrorStep",children:[x.jsx("p",{className:"ErrorStep-message",children:n("stepFailed")}),i.explanation&&x.jsx(Ni,{content:i.explanation,variant:"error"})]})})}function bE({step:i}){const{t:n}=ot(),r=`${i.adminUiUrl}?local=1`,s=()=>{const o=`
|
|
127
|
+
`}strong({tokens:i}){return`<strong>${this.parser.parseInline(i)}</strong>`}em({tokens:i}){return`<em>${this.parser.parseInline(i)}</em>`}codespan({text:i}){return`<code>${na(i,!0)}</code>`}br(i){return"<br>"}del({tokens:i}){return`<del>${this.parser.parseInline(i)}</del>`}link({href:i,title:n,tokens:r}){let s=this.parser.parseInline(r),o=vm(i);if(o===null)return s;i=o;let f='<a href="'+i+'"';return n&&(f+=' title="'+na(n)+'"'),f+=">"+s+"</a>",f}image({href:i,title:n,text:r,tokens:s}){s&&(r=this.parser.parseInline(s,this.parser.textRenderer));let o=vm(i);if(o===null)return na(r);i=o;let f=`<img src="${i}" alt="${r}"`;return n&&(f+=` title="${na(n)}"`),f+=">",f}text(i){return"tokens"in i&&i.tokens?this.parser.parseInline(i.tokens):"escaped"in i&&i.escaped?i.text:na(i.text)}},Ec=class{strong({text:i}){return i}em({text:i}){return i}codespan({text:i}){return i}del({text:i}){return i}html({text:i}){return i}text({text:i}){return i}link({text:i}){return""+i}image({text:i}){return""+i}br(){return""}},Jt=class tc{constructor(n){ke(this,"options");ke(this,"renderer");ke(this,"textRenderer");this.options=n||En,this.options.renderer=this.options.renderer||new ss,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ec}static parse(n,r){return new tc(r).parse(n)}static parseInline(n,r){return new tc(r).parseInline(n)}parse(n,r=!0){var o,f;let s="";for(let p=0;p<n.length;p++){let d=n[p];if((f=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&f[d.type]){let h=d,y=this.options.extensions.renderers[h.type].call({parser:this},h);if(y!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(h.type)){s+=y||"";continue}}let m=d;switch(m.type){case"space":{s+=this.renderer.space(m);continue}case"hr":{s+=this.renderer.hr(m);continue}case"heading":{s+=this.renderer.heading(m);continue}case"code":{s+=this.renderer.code(m);continue}case"table":{s+=this.renderer.table(m);continue}case"blockquote":{s+=this.renderer.blockquote(m);continue}case"list":{s+=this.renderer.list(m);continue}case"html":{s+=this.renderer.html(m);continue}case"def":{s+=this.renderer.def(m);continue}case"paragraph":{s+=this.renderer.paragraph(m);continue}case"text":{let h=m,y=this.renderer.text(h);for(;p+1<n.length&&n[p+1].type==="text";)h=n[++p],y+=`
|
|
128
|
+
`+this.renderer.text(h);r?s+=this.renderer.paragraph({type:"paragraph",raw:y,text:y,tokens:[{type:"text",raw:y,text:y,escaped:!0}]}):s+=y;continue}default:{let h='Token with "'+m.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return s}parseInline(n,r=this.renderer){var o,f;let s="";for(let p=0;p<n.length;p++){let d=n[p];if((f=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&f[d.type]){let h=this.options.extensions.renderers[d.type].call({parser:this},d);if(h!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(d.type)){s+=h||"";continue}}let m=d;switch(m.type){case"escape":{s+=r.text(m);break}case"html":{s+=r.html(m);break}case"link":{s+=r.link(m);break}case"image":{s+=r.image(m);break}case"strong":{s+=r.strong(m);break}case"em":{s+=r.em(m);break}case"codespan":{s+=r.codespan(m);break}case"br":{s+=r.br(m);break}case"del":{s+=r.del(m);break}case"text":{s+=r.text(m);break}default:{let h='Token with "'+m.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return s}},Fr,mi=(Fr=class{constructor(i){ke(this,"options");ke(this,"block");this.options=i||En}preprocess(i){return i}postprocess(i){return i}processAllTokens(i){return i}emStrongMask(i){return i}provideLexer(){return this.block?Xt.lex:Xt.lexInline}provideParser(){return this.block?Jt.parse:Jt.parseInline}},ke(Fr,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),ke(Fr,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Fr),AN=class{constructor(...i){ke(this,"defaults",mc());ke(this,"options",this.setOptions);ke(this,"parse",this.parseMarkdown(!0));ke(this,"parseInline",this.parseMarkdown(!1));ke(this,"Parser",Jt);ke(this,"Renderer",ss);ke(this,"TextRenderer",Ec);ke(this,"Lexer",Xt);ke(this,"Tokenizer",rs);ke(this,"Hooks",mi);this.use(...i)}walkTokens(i,n){var s,o;let r=[];for(let f of i)switch(r=r.concat(n.call(this,f)),f.type){case"table":{let p=f;for(let d of p.header)r=r.concat(this.walkTokens(d.tokens,n));for(let d of p.rows)for(let m of d)r=r.concat(this.walkTokens(m.tokens,n));break}case"list":{let p=f;r=r.concat(this.walkTokens(p.items,n));break}default:{let p=f;(o=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&o[p.type]?this.defaults.extensions.childTokens[p.type].forEach(d=>{let m=p[d].flat(1/0);r=r.concat(this.walkTokens(m,n))}):p.tokens&&(r=r.concat(this.walkTokens(p.tokens,n)))}}return r}use(...i){let n=this.defaults.extensions||{renderers:{},childTokens:{}};return i.forEach(r=>{let s={...r};if(s.async=this.defaults.async||s.async||!1,r.extensions&&(r.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let f=n.renderers[o.name];f?n.renderers[o.name]=function(...p){let d=o.renderer.apply(this,p);return d===!1&&(d=f.apply(this,p)),d}:n.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let f=n[o.level];f?f.unshift(o.tokenizer):n[o.level]=[o.tokenizer],o.start&&(o.level==="block"?n.startBlock?n.startBlock.push(o.start):n.startBlock=[o.start]:o.level==="inline"&&(n.startInline?n.startInline.push(o.start):n.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(n.childTokens[o.name]=o.childTokens)}),s.extensions=n),r.renderer){let o=this.defaults.renderer||new ss(this.defaults);for(let f in r.renderer){if(!(f in o))throw new Error(`renderer '${f}' does not exist`);if(["options","parser"].includes(f))continue;let p=f,d=r.renderer[p],m=o[p];o[p]=(...h)=>{let y=d.apply(o,h);return y===!1&&(y=m.apply(o,h)),y||""}}s.renderer=o}if(r.tokenizer){let o=this.defaults.tokenizer||new rs(this.defaults);for(let f in r.tokenizer){if(!(f in o))throw new Error(`tokenizer '${f}' does not exist`);if(["options","rules","lexer"].includes(f))continue;let p=f,d=r.tokenizer[p],m=o[p];o[p]=(...h)=>{let y=d.apply(o,h);return y===!1&&(y=m.apply(o,h)),y}}s.tokenizer=o}if(r.hooks){let o=this.defaults.hooks||new mi;for(let f in r.hooks){if(!(f in o))throw new Error(`hook '${f}' does not exist`);if(["options","block"].includes(f))continue;let p=f,d=r.hooks[p],m=o[p];mi.passThroughHooks.has(f)?o[p]=h=>{if(this.defaults.async&&mi.passThroughHooksRespectAsync.has(f))return(async()=>{let v=await d.call(o,h);return m.call(o,v)})();let y=d.call(o,h);return m.call(o,y)}:o[p]=(...h)=>{if(this.defaults.async)return(async()=>{let v=await d.apply(o,h);return v===!1&&(v=await m.apply(o,h)),v})();let y=d.apply(o,h);return y===!1&&(y=m.apply(o,h)),y}}s.hooks=o}if(r.walkTokens){let o=this.defaults.walkTokens,f=r.walkTokens;s.walkTokens=function(p){let d=[];return d.push(f.call(this,p)),o&&(d=d.concat(o.call(this,p))),d}}this.defaults={...this.defaults,...s}}),this}setOptions(i){return this.defaults={...this.defaults,...i},this}lexer(i,n){return Xt.lex(i,n??this.defaults)}parser(i,n){return Jt.parse(i,n??this.defaults)}parseMarkdown(i){return(n,r)=>{let s={...r},o={...this.defaults,...s},f=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&s.async===!1)return f(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 n>"u"||n===null)return f(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return f(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=i),o.async)return(async()=>{let p=o.hooks?await o.hooks.preprocess(n):n,d=await(o.hooks?await o.hooks.provideLexer():i?Xt.lex:Xt.lexInline)(p,o),m=o.hooks?await o.hooks.processAllTokens(d):d;o.walkTokens&&await Promise.all(this.walkTokens(m,o.walkTokens));let h=await(o.hooks?await o.hooks.provideParser():i?Jt.parse:Jt.parseInline)(m,o);return o.hooks?await o.hooks.postprocess(h):h})().catch(f);try{o.hooks&&(n=o.hooks.preprocess(n));let p=(o.hooks?o.hooks.provideLexer():i?Xt.lex:Xt.lexInline)(n,o);o.hooks&&(p=o.hooks.processAllTokens(p)),o.walkTokens&&this.walkTokens(p,o.walkTokens);let d=(o.hooks?o.hooks.provideParser():i?Jt.parse:Jt.parseInline)(p,o);return o.hooks&&(d=o.hooks.postprocess(d)),d}catch(p){return f(p)}}}onError(i,n){return r=>{if(r.message+=`
|
|
129
|
+
Please report this to https://github.com/markedjs/marked.`,i){let s="<p>An error occurred:</p><pre>"+na(r.message+"",!0)+"</pre>";return n?Promise.resolve(s):s}if(n)return Promise.reject(r);throw r}}},bn=new AN;function we(i,n){return bn.parse(i,n)}we.options=we.setOptions=function(i){return bn.setOptions(i),we.defaults=bn.defaults,Jm(we.defaults),we};we.getDefaults=mc;we.defaults=En;we.use=function(...i){return bn.use(...i),we.defaults=bn.defaults,Jm(we.defaults),we};we.walkTokens=function(i,n){return bn.walkTokens(i,n)};we.parseInline=bn.parseInline;we.Parser=Jt;we.parser=Jt.parse;we.Renderer=ss;we.TextRenderer=Ec;we.Lexer=Xt;we.lexer=Xt.lex;we.Tokenizer=rs;we.Hooks=mi;we.parse=we;we.options;we.setOptions;we.use;we.walkTokens;we.parseInline;Jt.parse;Xt.lex;function ON(i){if(!i)return"";try{return we.parse(i,{async:!1,gfm:!0,breaks:!0})}catch(n){return console.error("Error rendering markdown:",n),i}}function Ri({content:i,title:n,variant:r="default",className:s="",children:o}){const f=["Explanation",`Explanation-${r}`,s].filter(Boolean).join(" ");return b.jsxs("div",{className:f,children:[n&&b.jsx("h3",{className:"Explanation-title",children:n}),b.jsx("div",{className:"Explanation-content markdown-content",dangerouslySetInnerHTML:{__html:ON(i)}}),o]})}function zN({isOpen:i,title:n,message:r,confirmLabel:s,cancelLabel:o,onConfirm:f,onCancel:p}){const{t:d}=dt(),[m,h]=T.useState(!0);if(!i)return null;const y=async()=>{await f({withSampleData:m})},v=x=>{x.key==="Escape"&&p()};return b.jsxs("div",{className:"ConfirmDialog",children:[b.jsx("button",{type:"button",className:"ConfirmDialog-backdrop",onClick:p,onKeyDown:v,tabIndex:0,"aria-label":"Close dialog"}),b.jsxs("div",{className:"ConfirmDialog-container",children:[b.jsx("div",{className:"ConfirmDialog-header",children:b.jsx("h3",{className:"ConfirmDialog-title",children:n})}),b.jsxs("div",{className:"ConfirmDialog-body",children:[b.jsx("p",{children:r}),b.jsx("div",{className:"ConfirmDialog-checkbox mt-3",children:b.jsxs("label",{children:[b.jsx("input",{type:"checkbox",checked:m,onChange:x=>h(x.target.checked)}),b.jsx("span",{className:"ml-2",children:d("generateSiteWithData")})]})})]}),b.jsxs("div",{className:"ConfirmDialog-footer",children:[b.jsx(ut,{onClick:p,severity:"secondary",className:"ConfirmDialog-button",children:o||d("cancel")}),b.jsx(ut,{onClick:y,className:"ConfirmDialog-button",children:s||d("confirm")})]})]})]})}function D(){return D=Object.assign?Object.assign.bind():function(i){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var s in r)({}).hasOwnProperty.call(r,s)&&(i[s]=r[s])}return i},D.apply(null,arguments)}function ge(i,n){if(i==null)return{};var r={};for(var s in i)if({}.hasOwnProperty.call(i,s)){if(n.indexOf(s)!==-1)continue;r[s]=i[s]}return r}var rg={},sg=T.createContext(rg),kN=(i,n)=>D({},i,n),LN=()=>T.useContext(sg),Tc=T.createContext(()=>{});Tc.displayName="JVR.DispatchShowTools";function _N(){return T.useReducer(kN,rg)}function ug(){return T.useContext(Tc)}var og=i=>{var{initial:n,dispatch:r,children:s}=i;return b.jsx(sg.Provider,{value:n,children:b.jsx(Tc.Provider,{value:r,children:s})})};og.displayName="JVR.ShowTools";var cg={},fg=T.createContext(cg),DN=(i,n)=>D({},i,n),ps=()=>T.useContext(fg),Cc=T.createContext(()=>{});Cc.displayName="JVR.DispatchExpands";function MN(){return T.useReducer(DN,cg)}function UN(){return T.useContext(Cc)}var dg=i=>{var{initial:n,dispatch:r,children:s}=i;return b.jsx(fg.Provider,{value:n,children:b.jsx(Cc.Provider,{value:r,children:s})})};dg.displayName="JVR.Expands";var hg={Str:{as:"span","data-type":"string",style:{color:"var(--w-rjv-type-string-color, #cb4b16)"},className:"w-rjv-type",children:"string"},Url:{as:"a",style:{color:"var(--w-rjv-type-url-color, #0969da)"},"data-type":"url",className:"w-rjv-type",children:"url"},Undefined:{style:{color:"var(--w-rjv-type-undefined-color, #586e75)"},as:"span","data-type":"undefined",className:"w-rjv-type",children:"undefined"},Null:{style:{color:"var(--w-rjv-type-null-color, #d33682)"},as:"span","data-type":"null",className:"w-rjv-type",children:"null"},Map:{style:{color:"var(--w-rjv-type-map-color, #268bd2)",marginRight:3},as:"span","data-type":"map",className:"w-rjv-type",children:"Map"},Nan:{style:{color:"var(--w-rjv-type-nan-color, #859900)"},as:"span","data-type":"nan",className:"w-rjv-type",children:"NaN"},Bigint:{style:{color:"var(--w-rjv-type-bigint-color, #268bd2)"},as:"span","data-type":"bigint",className:"w-rjv-type",children:"bigint"},Int:{style:{color:"var(--w-rjv-type-int-color, #268bd2)"},as:"span","data-type":"int",className:"w-rjv-type",children:"int"},Set:{style:{color:"var(--w-rjv-type-set-color, #268bd2)",marginRight:3},as:"span","data-type":"set",className:"w-rjv-type",children:"Set"},Float:{style:{color:"var(--w-rjv-type-float-color, #859900)"},as:"span","data-type":"float",className:"w-rjv-type",children:"float"},True:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},False:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},Date:{style:{color:"var(--w-rjv-type-date-color, #268bd2)"},as:"span","data-type":"date",className:"w-rjv-type",children:"date"}},pg=T.createContext(hg),BN=(i,n)=>D({},i,n),_e=()=>T.useContext(pg),Rc=T.createContext(()=>{});Rc.displayName="JVR.DispatchTypes";function HN(){return T.useReducer(BN,hg)}function VN(){return T.useContext(Rc)}function mg(i){var{initial:n,dispatch:r,children:s}=i;return b.jsx(pg.Provider,{value:n,children:b.jsx(Rc.Provider,{value:r,children:s})})}mg.displayName="JVR.Types";var $N=["style"];function gg(i){var{style:n}=i,r=ge(i,$N),s=D({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},n);return b.jsx("svg",D({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:s},r,{children:b.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}gg.displayName="JVR.TriangleArrow";var yg={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:b.jsx(gg,{})},Colon:{as:"span",style:{color:"var(--w-rjv-colon-color, var(--w-rjv-color))",marginLeft:0,marginRight:2},className:"w-rjv-colon",children:":"},Quote:{as:"span",style:{color:"var(--w-rjv-quotes-color, #236a7c)"},className:"w-rjv-quotes",children:'"'},ValueQuote:{as:"span",style:{color:"var(--w-rjv-quotes-string-color, #cb4b16)"},className:"w-rjv-quotes",children:'"'},BracketsLeft:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-start",children:"["},BracketsRight:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-end",children:"]"},BraceLeft:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-start",children:"{"},BraceRight:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-end",children:"}"}},vg=T.createContext(yg),qN=(i,n)=>D({},i,n),bt=()=>T.useContext(vg),jc=T.createContext(()=>{});jc.displayName="JVR.DispatchSymbols";function GN(){return T.useReducer(qN,yg)}function YN(){return T.useContext(jc)}var Sg=i=>{var{initial:n,dispatch:r,children:s}=i;return b.jsx(vg.Provider,{value:n,children:b.jsx(jc.Provider,{value:r,children:s})})};Sg.displayName="JVR.Symbols";var bg={Copied:{className:"w-rjv-copied",style:{height:"1em",width:"1em",cursor:"pointer",verticalAlign:"middle",marginLeft:5}},CountInfo:{as:"span",className:"w-rjv-object-size",style:{color:"var(--w-rjv-info-color, #0000004d)",paddingLeft:8,fontStyle:"italic"}},CountInfoExtra:{as:"span",className:"w-rjv-object-extra",style:{paddingLeft:8}},Ellipsis:{as:"span",style:{cursor:"pointer",color:"var(--w-rjv-ellipsis-color, #cb4b16)",userSelect:"none"},className:"w-rjv-ellipsis",children:"..."},Row:{as:"div",className:"w-rjv-line"},KeyName:{as:"span",className:"w-rjv-object-key"}},xg=T.createContext(bg),QN=(i,n)=>D({},i,n),Yt=()=>T.useContext(xg),wc=T.createContext(()=>{});wc.displayName="JVR.DispatchSection";function KN(){return T.useReducer(QN,bg)}function ZN(){return T.useContext(wc)}var Ng=i=>{var{initial:n,dispatch:r,children:s}=i;return b.jsx(xg.Provider,{value:n,children:b.jsx(wc.Provider,{value:r,children:s})})};Ng.displayName="JVR.Section";var Eg={objectSortKeys:!1,indentWidth:15},Ac=T.createContext(Eg);Ac.displayName="JVR.Context";var Tg=T.createContext(()=>{});Tg.displayName="JVR.DispatchContext";function XN(i,n){return D({},i,n)}var Tn=()=>T.useContext(Ac),Cg=i=>{var{children:n,initialState:r,initialTypes:s}=i,[o,f]=T.useReducer(XN,Object.assign({},Eg,r)),[p,d]=_N(),[m,h]=MN(),[y,v]=HN(),[x,R]=GN(),[j,L]=KN();return T.useEffect(()=>f(D({},r)),[r]),b.jsx(Ac.Provider,{value:o,children:b.jsx(Tg.Provider,{value:f,children:b.jsx(og,{initial:p,dispatch:d,children:b.jsx(dg,{initial:m,dispatch:h,children:b.jsx(mg,{initial:D({},y,s),dispatch:v,children:b.jsx(Sg,{initial:x,dispatch:R,children:b.jsx(Ng,{initial:j,dispatch:L,children:n})})})})})})})};Cg.displayName="JVR.Provider";function JN(i){if(i==null)throw new TypeError("Cannot destructure "+i)}var FN=["isNumber","value","parentValue","keyName","keys"],WN=["as","render"],PN=["as","render"],IN=["as","render"],eE=["as","style","render"],tE=["as","render"],aE=["as","render"],nE=["as","render"],lE=["as","render"],ac=i=>{var{Quote:n={}}=bt(),{isNumber:r,value:s,parentValue:o,keyName:f,keys:p}=i,d=ge(i,FN);if(r)return null;var{as:m,render:h}=n,y=ge(n,WN),v=m||"span",x=D({},d,y),R={value:s,parentValue:o,keyName:f,keys:p||(f?[f]:[])},j=h&&typeof h=="function"&&h(x,R);return j||b.jsx(v,D({},x))};ac.displayName="JVR.Quote";var Ni=i=>{var{ValueQuote:n={}}=bt(),r=D({},(JN(i),i)),{as:s,render:o}=n,f=ge(n,PN),p=s||"span",d=D({},r,f),m=o&&typeof o=="function"&&o(d,{});return m||b.jsx(p,D({},d))};Ni.displayName="JVR.ValueQuote";var Rg=i=>{var{value:n,parentValue:r,keyName:s,keys:o}=i,{Colon:f={}}=bt(),{as:p,render:d}=f,m=ge(f,IN),h=p||"span",y=d&&typeof d=="function"&&d(m,{value:n,parentValue:r,keyName:s,keys:o||(s?[s]:[])});return y||b.jsx(h,D({},m))};Rg.displayName="JVR.Colon";var jg=i=>{var{Arrow:n={}}=bt(),r=ps(),{expandKey:s,style:o,value:f,parentValue:p,keyName:d,keys:m}=i,h=!!r[s],{as:y,style:v,render:x}=n,R=ge(n,eE),j=y||"span",L=x&&typeof x=="function",H=D({},R,{"data-expanded":h,style:D({},v,o)}),$={value:f,parentValue:p,keyName:d,keys:m||(d?[d]:[])},G=L&&x(H,$);return G||b.jsx(j,D({},R,{style:D({},v,o)}))};jg.displayName="JVR.Arrow";var wg=i=>{var{isBrackets:n,value:r,parentValue:s,keyName:o,keys:f}=i,{BracketsLeft:p={},BraceLeft:d={}}=bt(),m={value:r,parentValue:s,keyName:o,keys:f||(o?[o]:[])};if(n){var{as:h,render:y}=p,v=ge(p,tE),x=h||"span",R=y&&typeof y=="function"&&y(v,m);return R||b.jsx(x,D({},v))}var{as:j,render:L}=d,H=ge(d,aE),$=j||"span",G=L&&typeof L=="function"&&L(H,m);return G||b.jsx($,D({},H))};wg.displayName="JVR.BracketsOpen";var Oc=i=>{var{isBrackets:n,isVisiable:r,value:s,parentValue:o,keyName:f,keys:p}=i,d={value:s,parentValue:o,keyName:f,keys:p||(f?[f]:[])};if(!r)return null;var{BracketsRight:m={},BraceRight:h={}}=bt();if(n){var{as:y,render:v}=m,x=ge(m,nE),R=y||"span",j=v&&typeof v=="function"&&v(x,d);return j||b.jsx(R,D({},x))}var{as:L,render:H}=h,$=ge(h,lE),G=L||"span",q=H&&typeof H=="function"&&H($,d);return q||b.jsx(G,D({},$))};Oc.displayName="JVR.BracketsClose";var Ag=i=>{var n,{keyName:r,value:s,expandKey:o,parentValue:f,level:p,keys:d=[]}=i,m=ps(),{collapsed:h,shouldExpandNodeInitially:y}=Tn(),v=typeof h=="boolean"?h:typeof h=="number"?p>h:!1,x=(n=m[o])!=null?n:y?!1:v,R=y&&y(!x,{value:s,keys:d,level:p,keyName:r,parentValue:f});if(m[o]===void 0&&!R)return null;var j=Object.keys(s).length;if(x||j===0)return null;var L={paddingLeft:4},H={keyName:r,value:s,keys:d,parentValue:f},$=Array.isArray(s),G=s instanceof Set;return b.jsx("div",{style:L,children:b.jsx(Oc,D({isBrackets:$||G},H,{isVisiable:!0}))})};Ag.displayName="JVR.NestedClose";var iE=["as","render"],rE=["as","render"],sE=["as","render"],uE=["as","render"],oE=["as","render"],cE=["as","render"],fE=["as","render"],dE=["as","render"],hE=["as","render"],pE=["as","render"],mE=["as","render"],gE=["as","render"],yE=["as","render"],nc=i=>{if(i===void 0)return"0n";if(typeof i=="string")try{i=BigInt(i)}catch{return"0n"}return i?i.toString()+"n":"0n"},Og=i=>{var{value:n,keyName:r}=i,{Set:s={},displayDataTypes:o}=_e(),f=n instanceof Set;if(!f||!o)return null;var{as:p,render:d}=s,m=ge(s,iE),h=d&&typeof d=="function",y=h&&d(m,{type:"type",value:n,keyName:r});if(y)return y;var v=p||"span";return b.jsx(v,D({},m))};Og.displayName="JVR.SetComp";var zg=i=>{var{value:n,keyName:r}=i,{Map:s={},displayDataTypes:o}=_e(),f=n instanceof Map;if(!f||!o)return null;var{as:p,render:d}=s,m=ge(s,rE),h=d&&typeof d=="function",y=h&&d(m,{type:"type",value:n,keyName:r});if(y)return y;var v=p||"span";return b.jsx(v,D({},m))};zg.displayName="JVR.MapComp";var Pt={opacity:.75,paddingRight:4},kg=i=>{var{children:n="",keyName:r,keys:s}=i,{Str:o={},displayDataTypes:f}=_e(),{shortenTextAfterLength:p=30,stringEllipsis:d="..."}=Tn(),{as:m,render:h}=o,y=ge(o,sE),v=n,[x,R]=T.useState(p&&v.length>p);T.useEffect(()=>R(p&&v.length>p),[p]);var j=m||"span",L=D({},Pt,o.style||{});p>0&&(y.style=D({},y.style,{cursor:v.length<=p?"initial":"pointer"}),v.length>p&&(y.onClick=()=>{R(!x)}));var H=x?""+v.slice(0,p)+d:v,$=h&&typeof h=="function",G=$&&h(D({},y,{style:L}),{type:"type",value:n,keyName:r,keys:s}),q=x?"w-rjv-value w-rjv-value-short":"w-rjv-value",Z=$&&h(D({},y,{children:H,className:q}),{type:"value",value:n,keyName:r,keys:s});return b.jsxs(T.Fragment,{children:[f&&(G||b.jsx(j,D({},y,{style:L}))),Z||b.jsxs(T.Fragment,{children:[b.jsx(Ni,{}),b.jsx(j,D({},y,{className:q,children:H})),b.jsx(Ni,{})]})]})};kg.displayName="JVR.TypeString";var Lg=i=>{var{children:n,keyName:r,keys:s}=i,{True:o={},displayDataTypes:f}=_e(),{as:p,render:d}=o,m=ge(o,uE),h=p||"span",y=D({},Pt,o.style||{}),v=d&&typeof d=="function",x=v&&d(D({},m,{style:y}),{type:"type",value:n,keyName:r,keys:s}),R=v&&d(D({},m,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r,keys:s});return b.jsxs(T.Fragment,{children:[f&&(x||b.jsx(h,D({},m,{style:y}))),R||b.jsx(h,D({},m,{className:"w-rjv-value",children:n==null?void 0:n.toString()}))]})};Lg.displayName="JVR.TypeTrue";var _g=i=>{var{children:n,keyName:r,keys:s}=i,{False:o={},displayDataTypes:f}=_e(),{as:p,render:d}=o,m=ge(o,oE),h=p||"span",y=D({},Pt,o.style||{}),v=d&&typeof d=="function",x=v&&d(D({},m,{style:y}),{type:"type",value:n,keyName:r,keys:s}),R=v&&d(D({},m,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r,keys:s});return b.jsxs(T.Fragment,{children:[f&&(x||b.jsx(h,D({},m,{style:y}))),R||b.jsx(h,D({},m,{className:"w-rjv-value",children:n==null?void 0:n.toString()}))]})};_g.displayName="JVR.TypeFalse";var Dg=i=>{var{children:n,keyName:r,keys:s}=i,{Float:o={},displayDataTypes:f}=_e(),{as:p,render:d}=o,m=ge(o,cE),h=p||"span",y=D({},Pt,o.style||{}),v=d&&typeof d=="function",x=v&&d(D({},m,{style:y}),{type:"type",value:n,keyName:r,keys:s}),R=v&&d(D({},m,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r,keys:s});return b.jsxs(T.Fragment,{children:[f&&(x||b.jsx(h,D({},m,{style:y}))),R||b.jsx(h,D({},m,{className:"w-rjv-value",children:n==null?void 0:n.toString()}))]})};Dg.displayName="JVR.TypeFloat";var Mg=i=>{var{children:n,keyName:r,keys:s}=i,{Int:o={},displayDataTypes:f}=_e(),{as:p,render:d}=o,m=ge(o,fE),h=p||"span",y=D({},Pt,o.style||{}),v=d&&typeof d=="function",x=v&&d(D({},m,{style:y}),{type:"type",value:n,keyName:r,keys:s}),R=v&&d(D({},m,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r,keys:s});return b.jsxs(T.Fragment,{children:[f&&(x||b.jsx(h,D({},m,{style:y}))),R||b.jsx(h,D({},m,{className:"w-rjv-value",children:n==null?void 0:n.toString()}))]})};Mg.displayName="JVR.TypeInt";var Ug=i=>{var{children:n,keyName:r,keys:s}=i,{Bigint:o={},displayDataTypes:f}=_e(),{as:p,render:d}=o,m=ge(o,dE),h=p||"span",y=D({},Pt,o.style||{}),v=d&&typeof d=="function",x=v&&d(D({},m,{style:y}),{type:"type",value:n,keyName:r,keys:s}),R=v&&d(D({},m,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r,keys:s});return b.jsxs(T.Fragment,{children:[f&&(x||b.jsx(h,D({},m,{style:y}))),R||b.jsx(h,D({},m,{className:"w-rjv-value",children:nc(n==null?void 0:n.toString())}))]})};Ug.displayName="JVR.TypeFloat";var Bg=i=>{var{children:n,keyName:r,keys:s}=i,{Url:o={},displayDataTypes:f}=_e(),{as:p,render:d}=o,m=ge(o,hE),h=p||"span",y=D({},Pt,o.style),v=d&&typeof d=="function",x=v&&d(D({},m,{style:y}),{type:"type",value:n,keyName:r,keys:s}),R=v&&d(D({},m,{children:n==null?void 0:n.href,className:"w-rjv-value"}),{type:"value",value:n,keyName:r,keys:s});return b.jsxs(T.Fragment,{children:[f&&(x||b.jsx(h,D({},m,{style:y}))),R||b.jsxs("a",D({href:n==null?void 0:n.href,target:"_blank"},m,{className:"w-rjv-value",children:[b.jsx(Ni,{}),n==null?void 0:n.href,b.jsx(Ni,{})]}))]})};Bg.displayName="JVR.TypeUrl";var Hg=i=>{var{children:n,keyName:r,keys:s}=i,{Date:o={},displayDataTypes:f}=_e(),{as:p,render:d}=o,m=ge(o,pE),h=p||"span",y=D({},Pt,o.style||{}),v=d&&typeof d=="function",x=v&&d(D({},m,{style:y}),{type:"type",value:n,keyName:r,keys:s}),R=n instanceof Date?n.toLocaleString():n,j=v&&d(D({},m,{children:R,className:"w-rjv-value"}),{type:"value",value:n,keyName:r,keys:s});return b.jsxs(T.Fragment,{children:[f&&(x||b.jsx(h,D({},m,{style:y}))),j||b.jsx(h,D({},m,{className:"w-rjv-value",children:R}))]})};Hg.displayName="JVR.TypeDate";var Vg=i=>{var{children:n,keyName:r,keys:s}=i,{Undefined:o={},displayDataTypes:f}=_e(),{as:p,render:d}=o,m=ge(o,mE),h=p||"span",y=D({},Pt,o.style||{}),v=d&&typeof d=="function",x=v&&d(D({},m,{style:y}),{type:"type",value:n,keyName:r,keys:s}),R=v&&d(D({},m,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r,keys:s});return b.jsxs(T.Fragment,{children:[f&&(x||b.jsx(h,D({},m,{style:y}))),R]})};Vg.displayName="JVR.TypeUndefined";var $g=i=>{var{children:n,keyName:r,keys:s}=i,{Null:o={},displayDataTypes:f}=_e(),{as:p,render:d}=o,m=ge(o,gE),h=p||"span",y=D({},Pt,o.style||{}),v=d&&typeof d=="function",x=v&&d(D({},m,{style:y}),{type:"type",value:n,keyName:r,keys:s}),R=v&&d(D({},m,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r,keys:s});return b.jsxs(T.Fragment,{children:[f&&(x||b.jsx(h,D({},m,{style:y}))),R]})};$g.displayName="JVR.TypeNull";var qg=i=>{var{children:n,keyName:r,keys:s}=i,{Nan:o={},displayDataTypes:f}=_e(),{as:p,render:d}=o,m=ge(o,yE),h=p||"span",y=D({},Pt,o.style||{}),v=d&&typeof d=="function",x=v&&d(D({},m,{style:y}),{type:"type",value:n,keyName:r,keys:s}),R=v&&d(D({},m,{children:n==null?void 0:n.toString(),className:"w-rjv-value"}),{type:"value",value:n,keyName:r,keys:s});return b.jsxs(T.Fragment,{children:[f&&(x||b.jsx(h,D({},m,{style:y}))),R]})};qg.displayName="JVR.TypeNan";var vE=i=>Number(i)===i&&i%1!==0||isNaN(i),Gg=i=>{var{value:n,keyName:r,keys:s}=i,o={keyName:r,keys:s};return n instanceof URL?b.jsx(Bg,D({},o,{children:n})):typeof n=="string"?b.jsx(kg,D({},o,{children:n})):n===!0?b.jsx(Lg,D({},o,{children:n})):n===!1?b.jsx(_g,D({},o,{children:n})):n===null?b.jsx($g,D({},o,{children:n})):n===void 0?b.jsx(Vg,D({},o,{children:n})):n instanceof Date?b.jsx(Hg,D({},o,{children:n})):typeof n=="number"&&isNaN(n)?b.jsx(qg,D({},o,{children:n})):typeof n=="number"&&vE(n)?b.jsx(Dg,D({},o,{children:n})):typeof n=="bigint"?b.jsx(Ug,D({},o,{children:n})):typeof n=="number"?b.jsx(Mg,D({},o,{children:n})):null};Gg.displayName="JVR.Value";function Pa(i,n,r){var s=YN(),o=[i.className,n.className].filter(Boolean).join(" "),f=D({},i,n,{className:o,style:D({},i.style,n.style),children:n.children||i.children});T.useEffect(()=>s({[r]:f}),[n])}function kt(i,n,r){var s=VN(),o=[i.className,n.className].filter(Boolean).join(" "),f=D({},i,n,{className:o,style:D({},i.style,n.style),children:n.children||i.children});T.useEffect(()=>s({[r]:f}),[n])}function pl(i,n,r){var s=ZN(),o=[i.className,n.className].filter(Boolean).join(" "),f=D({},i,n,{className:o,style:D({},i.style,n.style),children:n.children||i.children});T.useEffect(()=>s({[r]:f}),[n])}var SE=["as","render"],Yg=i=>{var{KeyName:n={}}=Yt();return pl(n,i,"KeyName"),null};Yg.displayName="JVR.KeyName";var Qg=i=>{var{children:n,value:r,parentValue:s,keyName:o,keys:f}=i,p=typeof n=="number",d={color:p?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:m={}}=Yt(),{as:h,render:y}=m,v=ge(m,SE);v.style=D({},v.style,d);var x=h||"span",R=y&&typeof y=="function"&&y(D({},v,{children:n}),{value:r,parentValue:s,keyName:o,keys:f||(o?[o]:[])});return R||b.jsx(x,D({},v,{children:n}))};Qg.displayName="JVR.KeyNameComp";var bE=["children","value","parentValue","keyName","keys"],xE=["as","render","children"],Kg=i=>{var{Row:n={}}=Yt();return pl(n,i,"Row"),null};Kg.displayName="JVR.Row";var Zg=i=>{var{children:n,value:r,parentValue:s,keyName:o,keys:f}=i,p=ge(i,bE),{Row:d={}}=Yt(),{as:m,render:h}=d,y=ge(d,xE),v=m||"div",x=h&&typeof h=="function"&&h(D({},p,y,{children:n}),{value:r,keyName:o,parentValue:s,keys:f});return x||b.jsx(v,D({},p,y,{children:n}))};Zg.displayName="JVR.RowComp";function NE(i){var n=T.useRef();return T.useEffect(()=>{n.current=i}),n.current}function EE(i){var{value:n,highlightUpdates:r,highlightContainer:s}=i,o=NE(n),f=T.useMemo(()=>{if(!r||o===void 0)return!1;if(typeof n!=typeof o)return!0;if(typeof n=="number")return isNaN(n)&&isNaN(o)?!1:n!==o;if(Array.isArray(n)!==Array.isArray(o))return!0;if(typeof n=="object"||typeof n=="function")return!1;if(n!==o)return!0},[r,n]);T.useEffect(()=>{s&&s.current&&f&&"animate"in s.current&&s.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[f,n,s])}var TE=["keyName","value","parentValue","expandKey","keys","beforeCopy"],CE=["as","render"],zc=i=>{var{keyName:n,value:r,parentValue:s,expandKey:o,keys:f,beforeCopy:p}=i,d=ge(i,TE),{onCopied:m,enableClipboard:h,beforeCopy:y}=Tn(),v=LN(),x=v[o],[R,j]=T.useState(!1),{Copied:L={}}=Yt(),H=L==null?void 0:L.beforeCopy;if(h===!1||!x)return null;var $=ae=>{ae.stopPropagation();var W="";typeof r=="number"&&r===1/0?W="Infinity":typeof r=="number"&&isNaN(r)?W="NaN":typeof r=="bigint"?W=nc(r):r instanceof Date?W=r.toLocaleString():W=JSON.stringify(r,($e,Ue)=>typeof Ue=="bigint"?nc(Ue):Ue,2);var ne=p||H||y;ne&&typeof ne=="function"&&(W=ne(W,n,r,s,o,f)),m&&m(W,r),j(!0);var Ee=navigator.clipboard||{writeText($e){return new Promise((Ue,Ve)=>{var qe=document.createElement("textarea");qe.style.position="absolute",qe.style.opacity="0",qe.style.left="-99999999px",qe.value=$e,document.body.appendChild(qe),qe.select(),document.execCommand("copy")?Ue():Ve(),qe.remove()})}};Ee.writeText(W).then(()=>{var $e=setTimeout(()=>{j(!1),clearTimeout($e)},3e3)}).catch($e=>{})},G={style:{display:"inline-flex"},fill:R?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:$},{render:q}=L,Z=ge(L,CE),I=D({},Z,d,G,{style:D({},Z.style,d.style,G.style)}),re=q&&typeof q=="function",K=re&&q(D({},I,{"data-copied":R}),{value:r,keyName:n,keys:f,parentValue:s});return K||(R?b.jsx("svg",D({viewBox:"0 0 32 36"},I,{children:b.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})):b.jsx("svg",D({viewBox:"0 0 32 36"},I,{children:b.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})))};zc.displayName="JVR.Copied";function Xg(){var i=T.useRef(null);return i.current===null&&(i.current="custom-id-"+Math.random().toString(36).substr(2,9)),i.current}var Jg=i=>{var n,{keyName:r,value:s,expandKey:o="",level:f,keys:p=[],parentValue:d}=i,m=ps(),{objectSortKeys:h,indentWidth:y,collapsed:v,shouldExpandNodeInitially:x}=Tn(),R=typeof v=="boolean"?v:typeof v=="number"?f>v:!1,j=(n=m[o])!=null?n:x?!1:R,L=x&&x(!j,{value:s,keys:p,level:f,keyName:r,parentValue:d});if(m[o]===void 0&&!L||j)return null;var H=Array.isArray(s),$=H?Object.entries(s).map(q=>[Number(q[0]),q[1]]):Object.entries(s);h&&($=h===!0?$.sort((q,Z)=>{var[I]=q,[re]=Z;return typeof I=="string"&&typeof re=="string"?I.localeCompare(re):0}):$.sort((q,Z)=>{var[I,re]=q,[K,ae]=Z;return typeof I=="string"&&typeof K=="string"?h(I,K,re,ae):0}));var G={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:y,marginLeft:6};return b.jsx("div",{className:"w-rjv-wrap",style:G,children:$.map((q,Z)=>{var[I,re]=q;return b.jsx(Fg,{parentValue:s,keyName:I,keys:[...p,I],value:re,level:f},Z)})})};Jg.displayName="JVR.KeyValues";var kc=i=>{var{keyName:n,parentValue:r,keys:s,value:o}=i,{highlightUpdates:f}=Tn(),p=typeof n=="number",d=T.useRef(null);EE({value:o,highlightUpdates:f,highlightContainer:d});var m={keyName:n,value:o,keys:s,parentValue:r};return b.jsxs(T.Fragment,{children:[b.jsxs("span",{ref:d,children:[b.jsx(ac,D({isNumber:p,"data-placement":"left"},m)),b.jsx(Qg,D({},m,{children:n})),b.jsx(ac,D({isNumber:p,"data-placement":"right"},m))]}),b.jsx(Rg,D({},m))]})};kc.displayName="JVR.KayName";var Fg=i=>{var{keyName:n,value:r,parentValue:s,level:o=0,keys:f=[]}=i,p=ug(),d=Xg(),m=Array.isArray(r),h=r instanceof Set,y=r instanceof Map,v=r instanceof Date,x=r instanceof URL,R=r&&typeof r=="object"&&!m&&!h&&!y&&!v&&!x,j=R||m||h||y;if(j){var L=h?Array.from(r):y?Object.fromEntries(r):r;return b.jsx(Lc,{keyName:n,value:L,parentValue:s,initialValue:r,keys:f,level:o+1})}var H={onMouseEnter:()=>p({[d]:!0}),onMouseLeave:()=>p({[d]:!1})};return b.jsxs(Zg,D({className:"w-rjv-line",value:r,keyName:n,keys:f,parentValue:s},H,{children:[b.jsx(kc,{keyName:n,value:r,keys:f,parentValue:s}),b.jsx(Gg,{keyName:n,value:r,keys:f}),b.jsx(zc,{keyName:n,value:r,keys:f,parentValue:s,expandKey:d})]}))};Fg.displayName="JVR.KeyValuesItem";var RE=["value","keyName"],jE=["as","render"],Wg=i=>{var{CountInfoExtra:n={}}=Yt();return pl(n,i,"CountInfoExtra"),null};Wg.displayName="JVR.CountInfoExtra";var Pg=i=>{var{value:n={},keyName:r}=i,s=ge(i,RE),{CountInfoExtra:o={}}=Yt(),{as:f,render:p}=o,d=ge(o,jE);if(!p&&!d.children)return null;var m=f||"span",h=p&&typeof p=="function",y=D({},d,s),v=h&&p(y,{value:n,keyName:r});return v||b.jsx(m,D({},y))};Pg.displayName="JVR.CountInfoExtraComps";var wE=["value","keyName"],AE=["as","render"],Ig=i=>{var{CountInfo:n={}}=Yt();return pl(n,i,"CountInfo"),null};Ig.displayName="JVR.CountInfo";var ey=i=>{var{value:n={},keyName:r}=i,s=ge(i,wE),{displayObjectSize:o}=Tn(),{CountInfo:f={}}=Yt();if(!o)return null;var{as:p,render:d}=f,m=ge(f,AE),h=p||"span";m.style=D({},m.style,i.style);var y=Object.keys(n).length;m.children||(m.children=y+" item"+(y===1?"":"s"));var v=D({},m,s),x=d&&typeof d=="function",R=x&&d(D({},v,{"data-length":y}),{value:n,keyName:r});return R||b.jsx(h,D({},v))};ey.displayName="JVR.CountInfoComp";var OE=["as","render"],ty=i=>{var{Ellipsis:n={}}=Yt();return pl(n,i,"Ellipsis"),null};ty.displayName="JVR.Ellipsis";var ay=i=>{var{isExpanded:n,value:r,keyName:s}=i,{Ellipsis:o={}}=Yt(),{as:f,render:p}=o,d=ge(o,OE),m=f||"span",h=p&&typeof p=="function"&&p(D({},d,{"data-expanded":n}),{value:r,keyName:s});return h||(!n||typeof r=="object"&&Object.keys(r).length==0?null:b.jsx(m,D({},d)))};ay.displayName="JVR.EllipsisComp";var ny=i=>{var n,{keyName:r,expandKey:s,keys:o=[],initialValue:f,value:p,parentValue:d,level:m}=i,h=ps(),y=UN(),{onExpand:v,collapsed:x,shouldExpandNodeInitially:R}=Tn(),j=typeof x=="boolean"?x:typeof x=="number"?m>x:!1,L=(n=h[s])!=null?n:R?!1:j,H=R&&R(!L,{value:p,keys:o,level:m,keyName:r,parentValue:d});h[s]===void 0&&R&&(L=!H);var $=()=>{var Ee={expand:!L,value:p,keyid:s,keyName:r};v&&v(Ee),y({[s]:Ee.expand})},G={display:"inline-flex",alignItems:"center"},q={transform:"rotate("+(L?"-90":"0")+"deg)",transition:"all 0.3s"},Z=Object.keys(p).length,I=typeof p=="object",re=Array.isArray(p),K=p instanceof Set,ae=Z!==0&&(re||K||I),W={style:G};ae&&(W.onClick=$);var ne={keyName:r,value:p,keys:o,parentValue:d};return b.jsxs("span",D({},W,{children:[ae&&b.jsx(jg,D({style:q,expandKey:s},ne)),(r||typeof r=="number")&&b.jsx(kc,D({},ne)),b.jsx(Og,{value:f,keyName:r}),b.jsx(zg,{value:f,keyName:r}),b.jsx(wg,D({isBrackets:re||K},ne)),b.jsx(ay,{keyName:r,value:p,isExpanded:L}),b.jsx(Oc,D({isVisiable:L||!ae,isBrackets:re||K},ne)),b.jsx(ey,{value:p,keyName:r}),b.jsx(Pg,{value:p,keyName:r}),b.jsx(zc,{keyName:r,value:p,expandKey:s,parentValue:d,keys:o})]}))};ny.displayName="JVR.NestedOpen";var zE=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],Lc=T.forwardRef((i,n)=>{var{className:r="",parentValue:s,level:o=1,value:f,initialValue:p,keys:d,keyName:m}=i,h=ge(i,zE),y=ug(),v=Xg(),x=[r,"w-rjv-inner"].filter(Boolean).join(" "),R={onMouseEnter:()=>y({[v]:!0}),onMouseLeave:()=>y({[v]:!1})};return b.jsxs("div",D({className:x,ref:n},h,R,{children:[b.jsx(ny,{expandKey:v,value:f,level:o,keys:d,parentValue:s,keyName:m,initialValue:p}),b.jsx(Jg,{expandKey:v,value:f,level:o,keys:d,parentValue:s,keyName:m}),b.jsx(Ag,{expandKey:v,value:f,level:o,keys:d,parentValue:s,keyName:m})]}))});Lc.displayName="JVR.Container";var ly=i=>{var{BraceLeft:n={}}=bt();return Pa(n,i,"BraceLeft"),null};ly.displayName="JVR.BraceLeft";var iy=i=>{var{BraceRight:n={}}=bt();return Pa(n,i,"BraceRight"),null};iy.displayName="JVR.BraceRight";var ry=i=>{var{BracketsLeft:n={}}=bt();return Pa(n,i,"BracketsLeft"),null};ry.displayName="JVR.BracketsLeft";var sy=i=>{var{BracketsRight:n={}}=bt();return Pa(n,i,"BracketsRight"),null};sy.displayName="JVR.BracketsRight";var uy=i=>{var{Arrow:n={}}=bt();return Pa(n,i,"Arrow"),null};uy.displayName="JVR.Arrow";var oy=i=>{var{Colon:n={}}=bt();return Pa(n,i,"Colon"),null};oy.displayName="JVR.Colon";var cy=i=>{var{Quote:n={}}=bt();return Pa(n,i,"Quote"),null};cy.displayName="JVR.Quote";var fy=i=>{var{ValueQuote:n={}}=bt();return Pa(n,i,"ValueQuote"),null};fy.displayName="JVR.ValueQuote";var dy=i=>{var{Bigint:n={}}=_e();return kt(n,i,"Bigint"),null};dy.displayName="JVR.Bigint";var hy=i=>{var{Date:n={}}=_e();return kt(n,i,"Date"),null};hy.displayName="JVR.Date";var py=i=>{var{False:n={}}=_e();return kt(n,i,"False"),null};py.displayName="JVR.False";var my=i=>{var{Float:n={}}=_e();return kt(n,i,"Float"),null};my.displayName="JVR.Float";var gy=i=>{var{Int:n={}}=_e();return kt(n,i,"Int"),null};gy.displayName="JVR.Int";var yy=i=>{var{Map:n={}}=_e();return kt(n,i,"Map"),null};yy.displayName="JVR.Map";var vy=i=>{var{Nan:n={}}=_e();return kt(n,i,"Nan"),null};vy.displayName="JVR.Nan";var Sy=i=>{var{Null:n={}}=_e();return kt(n,i,"Null"),null};Sy.displayName="JVR.Null";var by=i=>{var{Set:n={}}=_e();return kt(n,i,"Set"),null};by.displayName="JVR.Set";var xy=i=>{var{Str:n={}}=_e();return kt(n,i,"Str"),null};xy.displayName="JVR.StringText";var Ny=i=>{var{True:n={}}=_e();return kt(n,i,"True"),null};Ny.displayName="JVR.True";var Ey=i=>{var{Undefined:n={}}=_e();return kt(n,i,"Undefined"),null};Ey.displayName="JVR.Undefined";var Ty=i=>{var{Url:n={}}=_e();return kt(n,i,"Url"),null};Ty.displayName="JVR.Url";var Cy=i=>{var{Copied:n={}}=Yt();return pl(n,i,"Copied"),null};Cy.displayName="JVR.Copied";var kE=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","stringEllipsis","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied","beforeCopy"],be=T.forwardRef((i,n)=>{var{className:r="",style:s,value:o,children:f,collapsed:p=!1,shouldExpandNodeInitially:d=()=>!0,indentWidth:m=15,displayObjectSize:h=!0,shortenTextAfterLength:y=30,stringEllipsis:v,highlightUpdates:x=!0,enableClipboard:R=!0,displayDataTypes:j=!0,objectSortKeys:L=!1,onExpand:H,onCopied:$,beforeCopy:G}=i,q=ge(i,kE),Z=D({lineHeight:1.4,fontFamily:"var(--w-rjv-font-family, Menlo, monospace)",color:"var(--w-rjv-color, #002b36)",backgroundColor:"var(--w-rjv-background-color, #00000000)",fontSize:13},s),I=["w-json-view-container","w-rjv",r].filter(Boolean).join(" ");return b.jsxs(Cg,{initialState:{value:o,objectSortKeys:L,indentWidth:m,shouldExpandNodeInitially:p===!1?d:()=>!1,displayObjectSize:h,collapsed:p,enableClipboard:R,shortenTextAfterLength:y,stringEllipsis:v,highlightUpdates:x,onCopied:$,onExpand:H,beforeCopy:G},initialTypes:{displayDataTypes:j},children:[b.jsx(Lc,D({value:o},q,{ref:n,className:I,style:Z})),f]})});be.Bigint=dy;be.Date=hy;be.False=py;be.Float=my;be.Int=gy;be.Map=yy;be.Nan=vy;be.Null=Sy;be.Set=by;be.String=xy;be.True=Ny;be.Undefined=Ey;be.Url=Ty;be.ValueQuote=fy;be.Arrow=uy;be.Colon=oy;be.Quote=cy;be.Ellipsis=ty;be.BraceLeft=ly;be.BraceRight=iy;be.BracketsLeft=ry;be.BracketsRight=sy;be.Copied=Cy;be.CountInfo=Ig;be.CountInfoExtra=Wg;be.KeyName=Yg;be.Row=Kg;be.displayName="JVR.JsonView";var xm={"--w-rjv-font-family":"monospace","--w-rjv-color":"#002b36","--w-rjv-key-string":"#002b36","--w-rjv-background-color":"#ffffff","--w-rjv-line-color":"#ebebeb","--w-rjv-arrow-color":"var(--w-rjv-color)","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#0000004d","--w-rjv-update-color":"#ebcb8b","--w-rjv-copied-color":"#002b36","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#236a7c","--w-rjv-colon-color":"#002b36","--w-rjv-brackets-color":"#236a7c","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#cb4b16","--w-rjv-type-int-color":"#268bd2","--w-rjv-type-float-color":"#859900","--w-rjv-type-bigint-color":"#268bd2","--w-rjv-type-boolean-color":"#2aa198","--w-rjv-type-date-color":"#586e75","--w-rjv-type-url-color":"#0969da","--w-rjv-type-null-color":"#d33682","--w-rjv-type-nan-color":"#859900","--w-rjv-type-undefined-color":"#586e75"};function LE(i){const n=Object.keys(i),r=n.length>0?n[0]:void 0;return(s,o,f={})=>{if(!r)return f.default??s;const p=i[o]??i[r],d=s.split(".");let m=p;for(const h of d){if(typeof m=="string"||!m||!Object.hasOwn(m,h))return f.default??s;m=m[h]}return typeof m=="string"?m:f.default??s}}function _E({siteSchema:i,schemaTranslate:n}){const r=new Set;return b.jsx("ul",{children:b.jsx(lc,{schema:i,schemaT:n,typeName:"home",displayedNodeTypeNames:r})})}function lc({schema:i,schemaT:n,typeName:r,depth:s=0,displayedNodeTypeNames:o}){const{i18n:f}=dt(),p=DE(i,r);if(!p)return null;const d=p.routingChildren||[],m=p.regularChildren||[],h=p.lists||[],y=p.documentKind==="routing",v=n(`nodeTypes.${r}.label`,f.language,{default:r});return o.has(r)?b.jsx("li",{children:b.jsxs("div",{children:[y?b.jsx("strong",{children:v}):v," (",b.jsx("code",{children:r}),")"]})}):(o.add(r),b.jsxs("li",{children:[b.jsxs("div",{children:[y?b.jsx("strong",{children:v}):v," (",b.jsx("code",{children:r}),")"]}),h.map(x=>b.jsxs("div",{style:{marginLeft:"30px",color:"#999",fontStyle:"italic"},children:[n(`nodeTypes.${r}.lists.${x.listName}.label`,f.language,{default:x.listName})," ","(",b.jsx("code",{children:x.listName})," [",b.jsx("code",{children:x.parts.join("</code>, <code>")}),"])"]},x.listName)),d.length>0&&b.jsx("ul",{children:d.map(x=>b.jsx(lc,{schema:i,schemaT:n,typeName:x,depth:s+1,displayedNodeTypeNames:o},x))}),m.length>0&&b.jsx("ul",{children:m.map(x=>b.jsx(lc,{schema:i,schemaT:n,typeName:x,depth:s+1,displayedNodeTypeNames:o},x))})]}))}function DE(i,n){var r;return(r=i.nodeTypes)==null?void 0:r.find(s=>s.kind==="document"&&s.typeName===n)}function ME({step:i}){const{t:n}=dt(),[r,s]=T.useState("tree"),{siteSchema:o,l10n:f}=i,p=LE(f),d=(m,h)=>h.keys.length===1&&h.keys[0]==="plugins";return b.jsxs("div",{className:"SchemaViewer",children:[b.jsxs("div",{className:"SchemaViewer-tabs",children:[b.jsx(ut,{className:`SchemaViewer-tab ${r==="tree"?"active":""}`,onClick:()=>s("tree"),children:n("treeView")}),b.jsx(ut,{className:`SchemaViewer-tab ${r==="schema"?"active":""}`,onClick:()=>s("schema"),children:n("siteSchema")}),b.jsx(ut,{className:`SchemaViewer-tab ${r==="locales"?"active":""}`,onClick:()=>s("locales"),children:n("labels")})]}),b.jsxs("div",{className:"SchemaViewer-main",children:[b.jsx("div",{className:"SchemaViewer-content",style:{display:r==="tree"?"block":"none"},children:b.jsx(_E,{siteSchema:o,schemaTranslate:p})}),b.jsx("div",{className:"SchemaViewer-content",style:{display:r==="locales"?"block":"none"},children:b.jsx(be,{value:f,style:xm,enableClipboard:!1,displayObjectSize:!1,displayDataTypes:!1,shortenTextAfterLength:0})}),b.jsx("div",{className:"SchemaViewer-content",style:{display:r==="schema"?"block":"none"},children:b.jsxs(be,{value:o,style:xm,enableClipboard:!1,displayObjectSize:!1,displayDataTypes:!1,shortenTextAfterLength:0,shouldExpandNodeInitially:d,children:[b.jsx(be.Colon,{render:(m,{parentValue:h})=>Array.isArray(h)&&m.children===":"?b.jsx("span",{}):b.jsx("span",{...m})}),b.jsx(be.KeyName,{render:(m,{parentValue:h})=>Array.isArray(h)&&Number.isFinite(m.children)?b.jsx("span",{}):b.jsx("span",{...m})})]})})]})]})}function UE({step:i}){const{t:n}=dt(),{workSession:r,appendNewStep:s}=Nn(),[o,f]=T.useState(!1),[p,d]=T.useState(!1),[m,h]=T.useState(!1),[y,v]=T.useState(void 0),x=hl(),R=()=>{f(!o)},j=async H=>{if(!r)return;h(!0),v(void 0);const $=xi();if(!$){v(n("sessionExpired")),h(!1);return}try{const G=await Fa({command:"updateSiteSchema",sessionToken:$,prompt:H,fromStepNumber:i.stepNumber});G.success&&G.result?(f(!1),s(G.result),await x(`/step/${G.result.stepNumber}`)):v(n("promptSubmissionFailed"))}catch(G){console.error("Error updating schema:",G),v(n("errorOccurred"))}finally{h(!1)}},L=async({withSampleData:H})=>{if(!r)return;h(!0),v(void 0),d(!1);const $=xi();if(!$){v(n("sessionExpired")),h(!1);return}try{const G=await Fa({command:"generateSite",sessionToken:$,fromStepNumber:i.stepNumber,withSampleData:H});G.success&&G.result?(s(G.result),await x(`/step/${G.result.stepNumber}`)):v(n("generationFailed"))}catch(G){console.error("Error generating site:",G),v(n("errorOccurred"))}finally{h(!1)}};return b.jsx(zt,{children:b.jsxs("div",{className:"CompletedStep",children:[b.jsx(ME,{step:i}),i.explanation&&b.jsx(Ri,{content:i.explanation,title:n("explanation")}),b.jsxs("div",{className:"CompletedStep-actions",children:[b.jsx(ut,{onClick:R,className:"CompletedStep-button",children:n("modifySchema")}),b.jsx(ut,{onClick:()=>d(!0),className:"CompletedStep-button",children:n("generateTheWebsite")})]}),o&&b.jsxs("div",{className:"CompletedStep-updateForm",children:[b.jsx("h3",{children:n("updateSchema")}),b.jsx(Xm,{placeholder:n("updatePromptPlaceholder"),submitLabel:n("modifySchema"),onSubmit:j,isLoading:m,error:y})]}),b.jsx(zN,{isOpen:p,title:n("generateTheWebsite"),message:n("aboutToGenerateWebsite"),confirmLabel:n("confirm"),onConfirm:L,onCancel:()=>d(!1)}),y&&!o&&b.jsx("div",{className:"Alert error",children:b.jsx("p",{children:y})})]})})}function BE({step:i}){const{t:n}=dt();return b.jsx(zt,{children:b.jsxs("div",{className:"ErrorStep",children:[b.jsx("p",{className:"ErrorStep-message",children:n("stepFailed")}),i.explanation&&b.jsx(Ri,{content:i.explanation,variant:"error"})]})})}function HE({step:i}){const{t:n}=dt(),r=`${i.adminUiUrl}?local=1`,s=()=>{const o=`
|
|
121
130
|
${n("siteGenerated")}
|
|
122
131
|
${n("loginEmail")}: ${i.loginEmail}
|
|
123
132
|
${n("loginPassword")}: ${i.loginPassword}
|
|
124
133
|
${n("siteUrl")}: ${i.siteUrl}
|
|
125
134
|
${n("adminUrl")}: ${r}
|
|
126
|
-
`.trim();navigator.clipboard.writeText(o)};return
|
|
135
|
+
`.trim();navigator.clipboard.writeText(o)};return b.jsx(zt,{children:b.jsxs("div",{className:"GeneratedSite",children:[i.status==="pending"&&b.jsxs("div",{className:"GeneratedSite-pending",children:[b.jsx(fs,{size:"small"}),b.jsx("p",{children:n("generatingContent")})]}),i.explanation&&b.jsx(Ri,{content:i.explanation,title:n("explanation"),variant:"info"}),b.jsx("div",{className:"GeneratedSite-header",children:b.jsx("h2",{className:"GeneratedSite-title",children:n("generatedSite")})}),b.jsx("div",{className:"Text my-4",dangerouslySetInnerHTML:{__html:n("userManual")}}),b.jsxs("div",{className:"GeneratedSite-information",children:[b.jsxs("div",{className:"GeneratedSite-field",children:[b.jsx("div",{className:"GeneratedSite-label",children:n("loginEmail")}),b.jsx("div",{className:"GeneratedSite-value",children:b.jsx("input",{type:"text",value:i.loginEmail,readOnly:!0,className:"GeneratedSite-input"})})]}),b.jsxs("div",{className:"GeneratedSite-field",children:[b.jsx("div",{className:"GeneratedSite-label",children:n("loginPassword")}),b.jsx("div",{className:"GeneratedSite-value",children:b.jsx("input",{type:"text",value:i.loginPassword,readOnly:!0,className:"GeneratedSite-input"})})]}),b.jsxs("div",{className:"GeneratedSite-field",children:[b.jsx("div",{className:"GeneratedSite-label",children:n("adminUrl")}),b.jsxs("div",{className:"GeneratedSite-value",children:[b.jsx("input",{type:"text",value:r,readOnly:!0,className:"GeneratedSite-input"}),b.jsx(ut,{className:"GeneratedSite-link-button",onClick:()=>{window.open(r,"_blank")},"aria-label":n("administration"),children:"↗"})]})]}),b.jsxs("div",{className:"GeneratedSite-field",children:[b.jsx("div",{className:"GeneratedSite-label",children:n("siteUrl")}),b.jsxs("div",{className:"GeneratedSite-value",children:[b.jsx("input",{type:"text",value:i.siteUrl,readOnly:!0,className:"GeneratedSite-input"}),b.jsx(ut,{className:"GeneratedSite-link-button",onClick:()=>{window.open(i.siteUrl,"_blank")},"aria-label":n("viewSite"),children:"↗"})]})]})]}),b.jsx("div",{className:"GeneratedSite-actions",children:b.jsx(ut,{onClick:s,className:"GeneratedSite-copy-button",children:n("copyToClipboard")})})]})})}function VE({step:i}){const{t:n}=dt();return b.jsx(zt,{children:b.jsxs("div",{className:"ErrorStep",children:[b.jsx("p",{className:"ErrorStep-message ErrorStep-message-warning",children:n("stepNoEffect")}),i.explanation&&b.jsx(Ri,{content:i.explanation,variant:"warning"})]})})}function Nm({step:i}){const{t:n}=dt();return b.jsx(zt,{children:b.jsxs("div",{className:"PendingStep",children:[b.jsx("div",{className:"PendingStep-header",children:b.jsx("h2",{children:n("stepTitle",{stepNumber:i.stepNumber,kind:n(i.kind)})})}),b.jsx("div",{className:"PendingStep-spinner",children:b.jsx(fs,{size:"large"})}),i.currentActivity&&b.jsxs("div",{className:"PendingStep-activity",children:[b.jsx("h3",{children:n("currentActivity")}),b.jsx("p",{children:n(`activity.${i.currentActivity}`)})]}),i.explanation&&b.jsx(Ri,{content:i.explanation,title:n("explanation"),variant:"info"})]})})}function $E({step:i}){if(i.status==="failed")return b.jsx(BE,{step:i});if(i.status==="noEffect")return b.jsx(VE,{step:i});if(i.kind==="initialSchema"||i.kind==="updateSchema")return i.status==="pending"?b.jsx(Nm,{step:i}):b.jsx(UE,{step:i});if(i.kind==="generateSite")return i.status==="pending"&&!Z2(i)?b.jsx(Nm,{step:i}):b.jsx(HE,{step:i});throw new Error(`Unknown step kind: ${i.kind}`)}function qE(){const{t:i}=dt(),n=hl(),{stepNumber:r}=H1(),{workSession:s,setActiveStepNumber:o}=Nn(),f=r===void 0?void 0:Number.parseInt(r,10);if(T.useEffect(()=>(o(f),()=>o(void 0)),[f,o]),zm(async()=>{if(!s||!s.steps)return;s.steps.some(m=>m.stepNumber===f)||await n("/")},[f,s,n]),!s||!s.steps)return b.jsxs("div",{className:"RouteLayout",children:[b.jsx("div",{className:"RouteLayout-main",children:b.jsx(zt,{className:"p-4",children:b.jsx("div",{className:"Alert error",children:b.jsx("p",{children:i("noSessionData")})})})}),b.jsx("div",{className:"RouteLayout-sidebar",children:b.jsx(es,{activeStep:f})})]});const p=s.steps.find(d=>d.stepNumber===f);return p?b.jsxs("div",{className:"RouteLayout",children:[b.jsx("div",{className:"RouteLayout-main",children:b.jsx($E,{step:p})}),b.jsx("div",{className:"RouteLayout-sidebar",children:b.jsx(es,{activeStep:f})})]}):b.jsxs("div",{className:"RouteLayout",children:[b.jsx("div",{className:"RouteLayout-main",children:b.jsx(zt,{className:"p-4",children:b.jsx("div",{className:"Alert error",children:b.jsx("p",{children:i("stepNotFound")})})})}),b.jsx("div",{className:"RouteLayout-sidebar",children:b.jsx(es,{activeStep:f})})]})}function GE({sessionToken:i,onSessionExpired:n}){const{workSession:r,isLoading:s,error:o,setWorkSession:f,setIsLoading:p,setError:d,resetSession:m}=Nn();return T.useEffect(()=>()=>{pc()},[]),zm(async()=>{p(!0),d(void 0);try{const h=await Fa({command:"loadWorkSession",sessionToken:i});h.success&&h.result?(f(h.result),rt.changeLanguage(h.result.language)):(d(h.userMessage||"Failed to load session"),h.success||(m(),$2(),n()))}catch(h){d("Error connecting to server"),console.error(h)}finally{p(!1)}},[i,f,p,d,n]),s?b.jsx("div",{className:"Layout-center p-4",children:b.jsx(zt,{className:"p-4 max-w-2xl",children:b.jsx("div",{className:"Text text-center",children:b.jsx("p",{children:"Loading session..."})})})}):o?b.jsx("div",{className:"Layout-center p-4",children:b.jsx(zt,{className:"p-4 max-w-2xl",children:b.jsx("div",{className:"Alert error",children:b.jsx("p",{children:o})})})}):r?b.jsx(T2,{children:b.jsxs(t2,{children:[b.jsx(Wr,{path:"/",element:b.jsx(K2,{})}),b.jsx(Wr,{path:"/step/:stepNumber",element:b.jsx(qE,{})}),b.jsx(Wr,{path:"*",element:b.jsx(I1,{to:"/",replace:!0})})]})}):b.jsx("div",{className:"Layout-center p-4",children:b.jsx(zt,{className:"p-4 max-w-2xl",children:b.jsx("div",{className:"Text text-center",children:b.jsx("p",{children:"Session not available."})})})})}function YE({sessionToken:i}){const{t:n,i18n:r}=dt(),s=async o=>{const f=o.target.value;await r.changeLanguage(f),i&&await Fa({command:"setLanguage",sessionToken:i,language:f})};return b.jsxs("footer",{className:"App-footer",children:[b.jsx("span",{className:"InlineText",dangerouslySetInnerHTML:{__html:n("footerText")}}),b.jsx("span",{className:"LanguageSelector",children:b.jsxs("select",{className:"LanguageSelector-select",value:r.language,onChange:s,"aria-label":"Select language",children:[b.jsx("option",{value:"en",children:"English"}),b.jsx("option",{value:"fr",children:"Français"})]})})]})}function Ry({onTokenReceived:i}){const[n,r]=T.useState(!!window.grecaptcha),s=Yo;return T.useEffect(()=>{if(s){if(window.onRecaptchaSubmitted=o=>{i(o)},window.onRecaptchaExpired=()=>{i("")},n===!1&&!window.grecaptcha){r("loading");const o=document.createElement("script");o.src="https://www.google.com/recaptcha/api.js",o.async=!0,o.defer=!0,o.onload=()=>r(!0),document.head.appendChild(o)}else r(!0);return()=>{window.onRecaptchaSubmitted=void 0,window.onRecaptchaExpired=void 0}}},[s,i]),b.jsx(b.Fragment,{children:Yo&&n===!0?b.jsx("div",{className:"g-recaptcha","data-sitekey":Yo,"data-callback":"onRecaptchaSubmitted","data-expired-callback":"onRecaptchaExpired"}):b.jsx("div",{className:"RecaptchaBox",children:b.jsx(fs,{})})})}function QE({onVerified:i}){const{t:n,i18n:r}=dt(),[s,o]=T.useState(""),[f,p]=T.useState(),d=async()=>{var m;if(s){p(void 0);try{const h=await Fa({command:"newSession",recaptchaToken:s,language:r.language});h.success&&((m=h.result)!=null&&m.token)?i(h.result.token):p("Failed to create session")}catch(h){p("Error connecting to server"),console.error(h)}}};return b.jsx("div",{className:"Layout-center p-4",children:b.jsxs(zt,{className:"max-w-2xl p-4",children:[b.jsx("h2",{className:"AppTitle mb-4 text-center",children:n("title")}),b.jsx("div",{className:"Text my-4",dangerouslySetInnerHTML:{__html:n("introduction")}}),f&&b.jsx("div",{className:"Alert error",children:b.jsx("p",{className:"m-0",children:f})}),b.jsxs("div",{className:"Layout-flex Layout-align-center Layout-gap Layout-justify-center Layout-wrap",children:[b.jsx(Ry,{onTokenReceived:o}),b.jsx(ut,{label:n("start"),onClick:d,disabled:!s})]})]})})}function KE({expiredToken:i,onTokenRefreshed:n}){const{t:r}=dt(),[s,o]=T.useState(),f=async p=>{var d;if(p){o(void 0);try{const m=await Fa({command:"renewSession",sessionToken:i,recaptchaToken:p});m.success&&((d=m.result)!=null&&d.token)?n(m.result.token):o(r("sessionRenewalFailed"))}catch(m){o(r("errorConnectingToServer")),console.error(m)}}};return b.jsx("div",{className:"Dialog-backdrop",children:b.jsx("div",{className:"Dialog-container",children:b.jsxs(zt,{className:"p-4",children:[b.jsx("h2",{className:"mb-4 text-center",children:r("extendYourSession")}),s&&b.jsx("div",{className:"Alert error",children:b.jsx("p",{className:"m-0",children:s})}),b.jsx("div",{className:"Layout-flex Layout-align-center Layout-gap Layout-justify-center Layout-wrap my-4",children:b.jsx(Ry,{onTokenReceived:f})}),b.jsx("p",{className:"InfoText",children:r("newTabRestartMessage")})]})})})}function ZE(i){if(!i)return!1;try{const n=i.split(".");if(n.length!==3)return!1;const r=JSON.parse(atob(n[1]));if(!r.exp)return!1;const s=r.exp*1e3;return Date.now()<s?!0:"expired"}catch(n){return console.error("Error checking JWT token validity:",n),!1}}function XE(){const[i,n]=T.useState(),[r,s]=T.useState(),o=Nn(d=>d.resetSession);T.useEffect(()=>{const d=xi(),m=ZE(d);if(!d||!m){o();return}m==="expired"?s(d):n(d)},[o]);const f=d=>{pm(d),n(d)},p=d=>{pm(d),n(d),s(void 0)};return b.jsxs("div",{className:"App",children:[b.jsx("div",{className:"App-content",children:i?b.jsx(GE,{sessionToken:i,onSessionExpired:()=>n(void 0)}):r?b.jsx(KE,{expiredToken:r,onTokenRefreshed:p}):b.jsx(QE,{onVerified:f})}),b.jsx(YE,{sessionToken:i})]})}async function JE(){const i=document.getElementById("site-generator-app");i&&o1.createRoot(i).render(b.jsx(pi.StrictMode,{children:b.jsx(XE,{})}))}JE().catch(i=>console.error(i));
|