@paroicms/site-generator-plugin 0.20.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{gen-backend → backend}/dist/commands/generator-session.js +13 -4
- package/backend/dist/commands/validate-recaptcha-response.js +20 -0
- package/backend/dist/context.js +5 -0
- package/{gen-backend → backend}/dist/data-format.js +2 -1
- package/{gen-backend → backend}/dist/generator/fake-content-generator/generate-fake-content.js +1 -1
- package/{gen-backend/dist/plugin.js → backend/dist/index.js} +10 -5
- package/{gen-backend → backend}/prompts/predefined-fields.json +9 -2
- package/frontend/dist/frontend.mjs +122 -0
- package/package.json +20 -40
- package/gen-backend/dist/context.js +0 -8
- package/gen-backend/dist/generator/helpers/esm-module.helper.js +0 -6
- package/gen-front/dist/gen-front.mjs +0 -166
- /package/{gen-backend → backend}/ddl/site-generator.ddl.sql +0 -0
- /package/{gen-backend → backend}/dist/commands/execute-command.js +0 -0
- /package/{gen-backend → backend}/dist/db/db-init.js +0 -0
- /package/{gen-backend → backend}/dist/db/db-read.queries.js +0 -0
- /package/{gen-backend → backend}/dist/db/db-write.queries.js +0 -0
- /package/{gen-backend → backend}/dist/db/ddl-migration.js +0 -0
- /package/{gen-backend → backend}/dist/db/formatters.js +0 -0
- /package/{gen-backend → backend}/dist/generator/fake-content-generator/content-helpers.js +0 -0
- /package/{gen-backend → backend}/dist/generator/fake-content-generator/content-report.js +0 -0
- /package/{gen-backend → backend}/dist/generator/fake-content-generator/create-database-with-fake-content.js +0 -0
- /package/{gen-backend → backend}/dist/generator/fake-content-generator/create-node-contents.js +0 -0
- /package/{gen-backend → backend}/dist/generator/fake-content-generator/fake-content-types.js +0 -0
- /package/{gen-backend → backend}/dist/generator/fake-content-generator/fill-lnodes.js +0 -0
- /package/{gen-backend → backend}/dist/generator/fake-content-generator/fill-site-fields.js +0 -0
- /package/{gen-backend → backend}/dist/generator/fake-content-generator/fill-taxonomy-fields.js +0 -0
- /package/{gen-backend → backend}/dist/generator/fake-content-generator/invoke-generate-fake-content.js +0 -0
- /package/{gen-backend → backend}/dist/generator/helpers/js-utils.js +0 -0
- /package/{gen-backend → backend}/dist/generator/lib/calling-llm-anthropic.js +0 -0
- /package/{gen-backend → backend}/dist/generator/lib/calling-llm-mistral.js +0 -0
- /package/{gen-backend → backend}/dist/generator/lib/common-types.js +0 -0
- /package/{gen-backend → backend}/dist/generator/lib/create-prompt.js +0 -0
- /package/{gen-backend → backend}/dist/generator/lib/debug-utils.js +0 -0
- /package/{gen-backend → backend}/dist/generator/lib/images-lib.js +0 -0
- /package/{gen-backend → backend}/dist/generator/lib/llm-invoke-types.js +0 -0
- /package/{gen-backend → backend}/dist/generator/lib/llm-tokens.js +0 -0
- /package/{gen-backend → backend}/dist/generator/lib/llm-utils.js +0 -0
- /package/{gen-backend → backend}/dist/generator/lib/markdown-bulleted-list-parser.js +0 -0
- /package/{gen-backend → backend}/dist/generator/lib/parse-llm-response.js +0 -0
- /package/{gen-backend → backend}/dist/generator/lib/prompt-template.js +0 -0
- /package/{gen-backend → backend}/dist/generator/lib/session-utils.js +0 -0
- /package/{gen-backend → backend}/dist/generator/lib/tasks.js +0 -0
- /package/{gen-backend → backend}/dist/generator/lib/utils.js +0 -0
- /package/{gen-backend → backend}/dist/generator/llm-queries/invoke-message-guard.js +0 -0
- /package/{gen-backend → backend}/dist/generator/llm-queries/invoke-new-site-analysis.js +0 -0
- /package/{gen-backend → backend}/dist/generator/llm-queries/invoke-update-site-schema.js +0 -0
- /package/{gen-backend → backend}/dist/generator/site-generator/common-template-creator.js +0 -0
- /package/{gen-backend → backend}/dist/generator/site-generator/document-template-creator.js +0 -0
- /package/{gen-backend → backend}/dist/generator/site-generator/id-key-provider.js +0 -0
- /package/{gen-backend → backend}/dist/generator/site-generator/jt-site-schema-helpers.js +0 -0
- /package/{gen-backend → backend}/dist/generator/site-generator/site-generator.js +0 -0
- /package/{gen-backend → backend}/dist/generator/site-generator/template-creator-types.js +0 -0
- /package/{gen-backend → backend}/dist/generator/site-generator/template-helpers.js +0 -0
- /package/{gen-backend → backend}/dist/generator/site-generator/theme-creator.js +0 -0
- /package/{gen-backend → backend}/dist/generator/site-generator/theme-css.js +0 -0
- /package/{gen-backend → backend}/dist/generator/site-schema-generator/analysis-types.js +0 -0
- /package/{gen-backend → backend}/dist/generator/site-schema-generator/create-l10n.js +0 -0
- /package/{gen-backend → backend}/dist/generator/site-schema-generator/create-site-schema.js +0 -0
- /package/{gen-backend → backend}/dist/generator/site-schema-generator/default-pages.js +0 -0
- /package/{gen-backend → backend}/dist/lib/create-raw-context.js +0 -0
- /package/{gen-backend → backend}/dist/lib/internal-types.js +0 -0
- /package/{gen-backend → backend}/dist/lib/site-remover.js +0 -0
- /package/{gen-backend → backend}/images/im01.webp +0 -0
- /package/{gen-backend → backend}/images/im02.webp +0 -0
- /package/{gen-backend → backend}/images/im03.webp +0 -0
- /package/{gen-backend → backend}/images/im04.webp +0 -0
- /package/{gen-backend → backend}/images/im05.webp +0 -0
- /package/{gen-backend → backend}/images/im06.webp +0 -0
- /package/{gen-backend → backend}/images/im07.webp +0 -0
- /package/{gen-backend → backend}/images/im08.webp +0 -0
- /package/{gen-backend → backend}/images/im09.webp +0 -0
- /package/{gen-backend → backend}/images/im10.webp +0 -0
- /package/{gen-backend → backend}/images/im11.webp +0 -0
- /package/{gen-backend → backend}/images/im12.webp +0 -0
- /package/{gen-backend → backend}/prompts/0-context.md +0 -0
- /package/{gen-backend → backend}/prompts/generate-fake-content-multiple-documents.md +0 -0
- /package/{gen-backend → backend}/prompts/generate-fake-content-multiple-parts.md +0 -0
- /package/{gen-backend → backend}/prompts/generate-fake-content-single.md +0 -0
- /package/{gen-backend → backend}/prompts/initial-1-analysis.md +0 -0
- /package/{gen-backend → backend}/prompts/initial-2-fields.md +0 -0
- /package/{gen-backend → backend}/prompts/message-guard.md +0 -0
- /package/{gen-backend → backend}/prompts/update-site-schema-1-write-details.md +0 -0
- /package/{gen-backend → backend}/prompts/update-site-schema-2-execute.md +0 -0
- /package/{gen-front/dist/gen-front.css → frontend/dist/frontend.css} +0 -0
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
var k0=Object.defineProperty;var L0=(i,n,r)=>n in i?k0(i,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[n]=r;var Oe=(i,n,r)=>L0(i,typeof n!="symbol"?n+"":n,r);function rm(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var wo={exports:{}},ii={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
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 p=null;if(f!==void 0&&(p=""+f),o.key!==void 0&&(p=""+o.key),"key"in o){f={};for(var h in o)h!=="key"&&(f[h]=o[h])}else f=o;return o=f.ref,{$$typeof:i,type:s,key:p,ref:o!==void 0?o:null,props:f}}return ii.Fragment=n,ii.jsx=r,ii.jsxs=r,ii}var bp;function D0(){return bp||(bp=1,wo.exports=z0()),wo.exports}var b=D0();const ie=i=>typeof i=="string",ri=()=>{let i,n;const r=new Promise((s,o)=>{i=s,n=o});return r.resolve=i,r.reject=n,r},xp=i=>i==null?"":""+i,_0=(i,n,r)=>{i.forEach(s=>{n[s]&&(r[s]=n[s])})},M0=/###/g,Sp=i=>i&&i.indexOf("###")>-1?i.replace(M0,"."):i,Np=i=>!i||ie(i),di=(i,n,r)=>{const s=ie(n)?n.split("."):n;let o=0;for(;o<s.length-1;){if(Np(i))return{};const f=Sp(s[o]);!i[f]&&r&&(i[f]=new r),Object.prototype.hasOwnProperty.call(i,f)?i=i[f]:i={},++o}return Np(i)?{}:{obj:i,k:Sp(s[o])}},Ep=(i,n,r)=>{const{obj:s,k:o}=di(i,n,Object);if(s!==void 0||n.length===1){s[o]=r;return}let f=n[n.length-1],p=n.slice(0,n.length-1),h=di(i,p,Object);for(;h.obj===void 0&&p.length;)f=`${p[p.length-1]}.${f}`,p=p.slice(0,p.length-1),h=di(i,p,Object),h!=null&&h.obj&&typeof h.obj[`${h.k}.${f}`]<"u"&&(h.obj=void 0);h.obj[`${h.k}.${f}`]=r},U0=(i,n,r,s)=>{const{obj:o,k:f}=di(i,n,Object);o[f]=o[f]||[],o[f].push(r)},Jr=(i,n)=>{const{obj:r,k:s}=di(i,n);if(r&&Object.prototype.hasOwnProperty.call(r,s))return r[s]},B0=(i,n,r)=>{const s=Jr(i,r);return s!==void 0?s:Jr(n,r)},sm=(i,n,r)=>{for(const s in n)s!=="__proto__"&&s!=="constructor"&&(s in i?ie(i[s])||i[s]instanceof String||ie(n[s])||n[s]instanceof String?r&&(i[s]=n[s]):sm(i[s],n[s],r):i[s]=n[s]);return i},al=i=>i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var H0={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const V0=i=>ie(i)?i.replace(/[&<>"'\/]/g,n=>H0[n]):i;class $0{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 q0=[" ",",","?","!",";"],G0=new $0(20),Y0=(i,n,r)=>{n=n||"",r=r||"";const s=q0.filter(p=>n.indexOf(p)<0&&r.indexOf(p)<0);if(s.length===0)return!0;const o=G0.getRegExp(`(${s.map(p=>p==="?"?"\\?":p).join("|")})`);let f=!o.test(i);if(!f){const p=i.indexOf(r);p>0&&!o.test(i.substring(0,p))&&(f=!0)}return f},Uo=(i,n,r=".")=>{if(!i)return;if(i[n])return Object.prototype.hasOwnProperty.call(i,n)?i[n]:void 0;const s=n.split(r);let o=i;for(let f=0;f<s.length;){if(!o||typeof o!="object")return;let p,h="";for(let m=f;m<s.length;++m)if(m!==f&&(h+=r),h+=s[m],p=o[h],p!==void 0){if(["string","number","boolean"].indexOf(typeof p)>-1&&m<s.length-1)continue;f+=m-f+1;break}o=p}return o},pi=i=>i==null?void 0:i.replace("_","-"),Q0={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 Fr{constructor(n,r={}){this.init(n,r)}init(n,r={}){this.prefix=r.prefix||"i18next:",this.logger=n||Q0,this.options=r,this.debug=r.debug}log(...n){return this.forward(n,"log","",!0)}warn(...n){return this.forward(n,"warn","",!0)}error(...n){return this.forward(n,"error","")}deprecate(...n){return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(n,r,s,o){return o&&!this.debug?null:(ie(n[0])&&(n[0]=`${s}${this.prefix} ${n[0]}`),this.logger[r](n))}create(n){return new Fr(this.logger,{prefix:`${this.prefix}:${n}:`,...this.options})}clone(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new Fr(this.logger,n)}}var Wt=new Fr;class as{constructor(){this.observers={}}on(n,r){return n.split(" ").forEach(s=>{this.observers[s]||(this.observers[s]=new Map);const o=this.observers[s].get(r)||0;this.observers[s].set(r,o+1)}),this}off(n,r){if(this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n].delete(r)}}emit(n,...r){this.observers[n]&&Array.from(this.observers[n].entries()).forEach(([o,f])=>{for(let p=0;p<f;p++)o(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,f])=>{for(let p=0;p<f;p++)o.apply(o,[n,...r])})}}class Rp extends as{constructor(n,r={ns:["translation"],defaultNS:"translation"}){super(),this.data=n||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}removeNamespaces(n){const r=this.options.ns.indexOf(n);r>-1&&this.options.ns.splice(r,1)}getResource(n,r,s,o={}){var d,v;const f=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,p=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let h;n.indexOf(".")>-1?h=n.split("."):(h=[n,r],s&&(Array.isArray(s)?h.push(...s):ie(s)&&f?h.push(...s.split(f)):h.push(s)));const m=Jr(this.data,h);return!m&&!r&&!s&&n.indexOf(".")>-1&&(n=h[0],r=h[1],s=h.slice(2).join(".")),m||!p||!ie(s)?m:Uo((v=(d=this.data)==null?void 0:d[n])==null?void 0:v[r],s,f)}addResource(n,r,s,o,f={silent:!1}){const p=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator;let h=[n,r];s&&(h=h.concat(p?s.split(p):s)),n.indexOf(".")>-1&&(h=n.split("."),o=r,r=h[1]),this.addNamespaces(r),Ep(this.data,h,o),f.silent||this.emit("added",n,r,s,o)}addResources(n,r,s,o={silent:!1}){for(const f in s)(ie(s[f])||Array.isArray(s[f]))&&this.addResource(n,r,f,s[f],{silent:!0});o.silent||this.emit("added",n,r,s)}addResourceBundle(n,r,s,o,f,p={silent:!1,skipCopy:!1}){let h=[n,r];n.indexOf(".")>-1&&(h=n.split("."),o=s,s=r,r=h[1]),this.addNamespaces(r);let m=Jr(this.data,h)||{};p.skipCopy||(s=JSON.parse(JSON.stringify(s))),o?sm(m,s,f):m={...m,...s},Ep(this.data,h,m),p.silent||this.emit("added",n,r,s)}removeResourceBundle(n,r){this.hasResourceBundle(n,r)&&delete this.data[n][r],this.removeNamespaces(r),this.emit("removed",n,r)}hasResourceBundle(n,r){return this.getResource(n,r)!==void 0}getResourceBundle(n,r){return r||(r=this.options.defaultNS),this.getResource(n,r)}getDataByLanguage(n){return this.data[n]}hasLanguageSomeTranslations(n){const r=this.getDataByLanguage(n);return!!(r&&Object.keys(r)||[]).find(o=>r[o]&&Object.keys(r[o]).length>0)}toJSON(){return this.data}}var um={processors:{},addPostProcessor(i){this.processors[i.name]=i},handle(i,n,r,s,o){return i.forEach(f=>{var p;n=((p=this.processors[f])==null?void 0:p.process(n,r,s,o))??n}),n}};const wp={},Tp=i=>!ie(i)&&typeof i!="boolean"&&typeof i!="number";class Pr extends as{constructor(n,r={}){super(),_0(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Wt.create("translator")}changeLanguage(n){n&&(this.language=n)}exists(n,r={interpolation:{}}){const s={...r};if(n==null)return!1;const o=this.resolve(n,s);return(o==null?void 0:o.res)!==void 0}extractFromKey(n,r){let s=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let f=r.ns||this.options.defaultNS||[];const p=s&&n.indexOf(s)>-1,h=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!Y0(n,s,o);if(p&&!h){const m=n.match(this.interpolator.nestingRegexp);if(m&&m.length>0)return{key:n,namespaces:ie(f)?[f]:f};const d=n.split(s);(s!==o||s===o&&this.options.ns.indexOf(d[0])>-1)&&(f=d.shift()),n=d.join(o)}return{key:n,namespaces:ie(f)?[f]:f}}translate(n,r,s){let o=typeof r=="object"?{...r}:r;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof options=="object"&&(o={...o}),o||(o={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);const f=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,p=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:h,namespaces:m}=this.extractFromKey(n[n.length-1],o),d=m[m.length-1];let v=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;v===void 0&&(v=":");const S=o.lng||this.language,x=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((S==null?void 0:S.toLowerCase())==="cimode")return x?f?{res:`${d}${v}${h}`,usedKey:h,exactUsedKey:h,usedLng:S,usedNS:d,usedParams:this.getUsedParamsDetails(o)}:`${d}${v}${h}`:f?{res:h,usedKey:h,exactUsedKey:h,usedLng:S,usedNS:d,usedParams:this.getUsedParamsDetails(o)}:h;const C=this.resolve(n,o);let E=C==null?void 0:C.res;const L=(C==null?void 0:C.usedKey)||h,V=(C==null?void 0:C.exactUsedKey)||h,M=["[object Number]","[object Function]","[object RegExp]"],D=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,G=!this.i18nFormat||this.i18nFormat.handleAsObject,X=o.count!==void 0&&!ie(o.count),K=Pr.hasDefaultValue(o),se=X?this.pluralResolver.getSuffix(S,o.count,o):"",re=o.ordinal&&X?this.pluralResolver.getSuffix(S,o.count,{ordinal:!1}):"",ee=X&&!o.ordinal&&o.count===0,F=ee&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${se}`]||o[`defaultValue${re}`]||o.defaultValue;let ne=E;G&&!E&&K&&(ne=F);const pe=Tp(ne),Ke=Object.prototype.toString.apply(ne);if(G&&ne&&pe&&M.indexOf(Ke)<0&&!(ie(D)&&Array.isArray(ne))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const Xe=this.options.returnedObjectHandler?this.options.returnedObjectHandler(L,ne,{...o,ns:m}):`key '${h} (${this.language})' returned an object instead of string.`;return f?(C.res=Xe,C.usedParams=this.getUsedParamsDetails(o),C):Xe}if(p){const Xe=Array.isArray(ne),Ge=Xe?[]:{},Ye=Xe?V:L;for(const _ in ne)if(Object.prototype.hasOwnProperty.call(ne,_)){const Y=`${Ye}${p}${_}`;K&&!E?Ge[_]=this.translate(Y,{...o,defaultValue:Tp(F)?F[_]:void 0,joinArrays:!1,ns:m}):Ge[_]=this.translate(Y,{...o,joinArrays:!1,ns:m}),Ge[_]===Y&&(Ge[_]=ne[_])}E=Ge}}else if(G&&ie(D)&&Array.isArray(E))E=E.join(D),E&&(E=this.extendTranslation(E,n,o,s));else{let Xe=!1,Ge=!1;!this.isValidLookup(E)&&K&&(Xe=!0,E=F),this.isValidLookup(E)||(Ge=!0,E=h);const _=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Ge?void 0:E,Y=K&&F!==E&&this.options.updateMissing;if(Ge||Xe||Y){if(this.logger.log(Y?"updateKey":"missingKey",S,d,h,Y?F:E),p){const $=this.resolve(h,{...o,keySeparator:!1});$&&$.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let W=[];const ye=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ye&&ye[0])for(let $=0;$<ye.length;$++)W.push(ye[$]);else this.options.saveMissingTo==="all"?W=this.languageUtils.toResolveHierarchy(o.lng||this.language):W.push(o.lng||this.language);const R=($,Z,Q)=>{var me;const I=K&&Q!==E?Q:_;this.options.missingKeyHandler?this.options.missingKeyHandler($,d,Z,I,Y,o):(me=this.backendConnector)!=null&&me.saveMissing&&this.backendConnector.saveMissing($,d,Z,I,Y,o),this.emit("missingKey",$,d,Z,E)};this.options.saveMissing&&(this.options.saveMissingPlurals&&X?W.forEach($=>{const Z=this.pluralResolver.getSuffixes($,o);ee&&o[`defaultValue${this.options.pluralSeparator}zero`]&&Z.indexOf(`${this.options.pluralSeparator}zero`)<0&&Z.push(`${this.options.pluralSeparator}zero`),Z.forEach(Q=>{R([$],h+Q,o[`defaultValue${Q}`]||F)})}):R(W,h,F))}E=this.extendTranslation(E,n,o,C,s),Ge&&E===h&&this.options.appendNamespaceToMissingKey&&(E=`${d}${v}${h}`),(Ge||Xe)&&this.options.parseMissingKeyHandler&&(E=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}${v}${h}`:h,Xe?E:void 0,o))}return f?(C.res=E,C.usedParams=this.getUsedParamsDetails(o),C):E}extendTranslation(n,r,s,o,f){var m,d;if((m=this.i18nFormat)!=null&&m.parse)n=this.i18nFormat.parse(n,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const v=ie(n)&&(((d=s==null?void 0:s.interpolation)==null?void 0:d.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let S;if(v){const C=n.match(this.interpolator.nestingRegexp);S=C&&C.length}let x=s.replace&&!ie(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),v){const C=n.match(this.interpolator.nestingRegexp),E=C&&C.length;S<E&&(s.nest=!1)}!s.lng&&o&&o.res&&(s.lng=this.language||o.usedLng),s.nest!==!1&&(n=this.interpolator.nest(n,(...C)=>(f==null?void 0:f[0])===C[0]&&!s.context?(this.logger.warn(`It seems you are nesting recursively key: ${C[0]} in key: ${r[0]}`),null):this.translate(...C,r),s)),s.interpolation&&this.interpolator.reset()}const p=s.postProcess||this.options.postProcess,h=ie(p)?[p]:p;return n!=null&&(h!=null&&h.length)&&s.applyPostProcessor!==!1&&(n=um.handle(h,n,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),n}resolve(n,r={}){let s,o,f,p,h;return ie(n)&&(n=[n]),n.forEach(m=>{if(this.isValidLookup(s))return;const d=this.extractFromKey(m,r),v=d.key;o=v;let S=d.namespaces;this.options.fallbackNS&&(S=S.concat(this.options.fallbackNS));const x=r.count!==void 0&&!ie(r.count),C=x&&!r.ordinal&&r.count===0,E=r.context!==void 0&&(ie(r.context)||typeof r.context=="number")&&r.context!=="",L=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);S.forEach(V=>{var M,D;this.isValidLookup(s)||(h=V,!wp[`${L[0]}-${V}`]&&((M=this.utils)!=null&&M.hasLoadedNamespace)&&!((D=this.utils)!=null&&D.hasLoadedNamespace(h))&&(wp[`${L[0]}-${V}`]=!0,this.logger.warn(`key "${o}" for languages "${L.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!!!")),L.forEach(G=>{var se;if(this.isValidLookup(s))return;p=G;const X=[v];if((se=this.i18nFormat)!=null&&se.addLookupKeys)this.i18nFormat.addLookupKeys(X,v,G,V,r);else{let re;x&&(re=this.pluralResolver.getSuffix(G,r.count,r));const ee=`${this.options.pluralSeparator}zero`,F=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(x&&(X.push(v+re),r.ordinal&&re.indexOf(F)===0&&X.push(v+re.replace(F,this.options.pluralSeparator)),C&&X.push(v+ee)),E){const ne=`${v}${this.options.contextSeparator}${r.context}`;X.push(ne),x&&(X.push(ne+re),r.ordinal&&re.indexOf(F)===0&&X.push(ne+re.replace(F,this.options.pluralSeparator)),C&&X.push(ne+ee))}}let K;for(;K=X.pop();)this.isValidLookup(s)||(f=K,s=this.getResource(G,V,K,r))}))})}),{res:s,usedKey:o,exactUsedKey:f,usedLng:p,usedNS:h}}isValidLookup(n){return n!==void 0&&!(!this.options.returnNull&&n===null)&&!(!this.options.returnEmptyString&&n==="")}getResource(n,r,s,o={}){var f;return(f=this.i18nFormat)!=null&&f.getResource?this.i18nFormat.getResource(n,r,s,o):this.resourceStore.getResource(n,r,s,o)}getUsedParamsDetails(n={}){const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=n.replace&&!ie(n.replace);let o=s?n.replace:n;if(s&&typeof n.count<"u"&&(o.count=n.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!s){o={...o};for(const f of r)delete o[f]}return o}static hasDefaultValue(n){const r="defaultValue";for(const s in n)if(Object.prototype.hasOwnProperty.call(n,s)&&r===s.substring(0,r.length)&&n[s]!==void 0)return!0;return!1}}class Cp{constructor(n){this.options=n,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Wt.create("languageUtils")}getScriptPartFromCode(n){if(n=pi(n),!n||n.indexOf("-")<0)return null;const r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(n){if(n=pi(n),!n||n.indexOf("-")<0)return n;const r=n.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(n){if(ie(n)&&n.indexOf("-")>-1){let r;try{r=Intl.getCanonicalLocales(n)[0]}catch{}return r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r||(this.options.lowerCaseLng?n.toLowerCase():n)}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}isSupportedCode(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}getBestMatchFromCodes(n){if(!n)return null;let r;return n.forEach(s=>{if(r)return;const o=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(o))&&(r=o)}),!r&&this.options.supportedLngs&&n.forEach(s=>{if(r)return;const o=this.getScriptPartFromCode(s);if(this.isSupportedCode(o))return r=o;const f=this.getLanguagePartFromCode(s);if(this.isSupportedCode(f))return r=f;r=this.options.supportedLngs.find(p=>{if(p===f)return p;if(!(p.indexOf("-")<0&&f.indexOf("-")<0)&&(p.indexOf("-")>0&&f.indexOf("-")<0&&p.substring(0,p.indexOf("-"))===f||p.indexOf(f)===0&&f.length>1))return p})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),ie(n)&&(n=[n]),Array.isArray(n))return n;if(!r)return n.default||[];let s=n[r];return s||(s=n[this.getScriptPartFromCode(r)]),s||(s=n[this.formatLanguageCode(r)]),s||(s=n[this.getLanguagePartFromCode(r)]),s||(s=n.default),s||[]}toResolveHierarchy(n,r){const s=this.getFallbackCodes((r===!1?[]:r)||this.options.fallbackLng||[],n),o=[],f=p=>{p&&(this.isSupportedCode(p)?o.push(p):this.logger.warn(`rejecting language code not found in supportedLngs: ${p}`))};return ie(n)&&(n.indexOf("-")>-1||n.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&f(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&f(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&f(this.getLanguagePartFromCode(n))):ie(n)&&f(this.formatLanguageCode(n)),s.forEach(p=>{o.indexOf(p)<0&&f(this.formatLanguageCode(p))}),o}}const jp={zero:0,one:1,two:2,few:3,many:4,other:5},Ap={select:i=>i===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Z0{constructor(n,r={}){this.languageUtils=n,this.options=r,this.logger=Wt.create("pluralResolver"),this.pluralRulesCache={}}addRule(n,r){this.rules[n]=r}clearCache(){this.pluralRulesCache={}}getRule(n,r={}){const s=pi(n==="dev"?"en":n),o=r.ordinal?"ordinal":"cardinal",f=JSON.stringify({cleanedCode:s,type:o});if(f in this.pluralRulesCache)return this.pluralRulesCache[f];let p;try{p=new Intl.PluralRules(s,{type:o})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Ap;if(!n.match(/-|_/))return Ap;const m=this.languageUtils.getLanguagePartFromCode(n);p=this.getRule(m,r)}return this.pluralRulesCache[f]=p,p}needsPlural(n,r={}){let s=this.getRule(n,r);return s||(s=this.getRule("dev",r)),(s==null?void 0:s.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(n,r,s={}){return this.getSuffixes(n,s).map(o=>`${r}${o}`)}getSuffixes(n,r={}){let s=this.getRule(n,r);return s||(s=this.getRule("dev",r)),s?s.resolvedOptions().pluralCategories.sort((o,f)=>jp[o]-jp[f]).map(o=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(n,r,s={}){const o=this.getRule(n,s);return o?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${o.select(r)}`:(this.logger.warn(`no plural rule found for: ${n}`),this.getSuffix("dev",r,s))}}const Op=(i,n,r,s=".",o=!0)=>{let f=B0(i,n,r);return!f&&o&&ie(r)&&(f=Uo(i,r,s),f===void 0&&(f=Uo(n,r,s))),f},To=i=>i.replace(/\$/g,"$$$$");class K0{constructor(n={}){var r;this.logger=Wt.create("interpolator"),this.options=n,this.format=((r=n==null?void 0:n.interpolation)==null?void 0:r.format)||(s=>s),this.init(n)}init(n={}){n.interpolation||(n.interpolation={escapeValue:!0});const{escape:r,escapeValue:s,useRawValueToEscape:o,prefix:f,prefixEscaped:p,suffix:h,suffixEscaped:m,formatSeparator:d,unescapeSuffix:v,unescapePrefix:S,nestingPrefix:x,nestingPrefixEscaped:C,nestingSuffix:E,nestingSuffixEscaped:L,nestingOptionsSeparator:V,maxReplaces:M,alwaysFormat:D}=n.interpolation;this.escape=r!==void 0?r:V0,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=f?al(f):p||"{{",this.suffix=h?al(h):m||"}}",this.formatSeparator=d||",",this.unescapePrefix=v?"":S||"-",this.unescapeSuffix=this.unescapePrefix?"":v||"",this.nestingPrefix=x?al(x):C||al("$t("),this.nestingSuffix=E?al(E):L||al(")"),this.nestingOptionsSeparator=V||",",this.maxReplaces=M||1e3,this.alwaysFormat=D!==void 0?D:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const n=(r,s)=>(r==null?void 0:r.source)===s?(r.lastIndex=0,r):new RegExp(s,"g");this.regexp=n(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=n(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=n(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(n,r,s,o){var C;let f,p,h;const m=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},d=E=>{if(E.indexOf(this.formatSeparator)<0){const D=Op(r,m,E,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(D,void 0,s,{...o,...r,interpolationkey:E}):D}const L=E.split(this.formatSeparator),V=L.shift().trim(),M=L.join(this.formatSeparator).trim();return this.format(Op(r,m,V,this.options.keySeparator,this.options.ignoreJSONStructure),M,s,{...o,...r,interpolationkey:V})};this.resetRegExp();const v=(o==null?void 0:o.missingInterpolationHandler)||this.options.missingInterpolationHandler,S=((C=o==null?void 0:o.interpolation)==null?void 0:C.skipOnVariables)!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:E=>To(E)},{regex:this.regexp,safeValue:E=>this.escapeValue?To(this.escape(E)):To(E)}].forEach(E=>{for(h=0;f=E.regex.exec(n);){const L=f[1].trim();if(p=d(L),p===void 0)if(typeof v=="function"){const M=v(n,f,o);p=ie(M)?M:""}else if(o&&Object.prototype.hasOwnProperty.call(o,L))p="";else if(S){p=f[0];continue}else this.logger.warn(`missed to pass in variable ${L} for interpolating ${n}`),p="";else!ie(p)&&!this.useRawValueToEscape&&(p=xp(p));const V=E.safeValue(p);if(n=n.replace(f[0],V),S?(E.regex.lastIndex+=p.length,E.regex.lastIndex-=f[0].length):E.regex.lastIndex=0,h++,h>=this.maxReplaces)break}}),n}nest(n,r,s={}){let o,f,p;const h=(m,d)=>{const v=this.nestingOptionsSeparator;if(m.indexOf(v)<0)return m;const S=m.split(new RegExp(`${v}[ ]*{`));let x=`{${S[1]}`;m=S[0],x=this.interpolate(x,p);const C=x.match(/'/g),E=x.match(/"/g);(((C==null?void 0:C.length)??0)%2===0&&!E||E.length%2!==0)&&(x=x.replace(/'/g,'"'));try{p=JSON.parse(x),d&&(p={...d,...p})}catch(L){return this.logger.warn(`failed parsing options string in nesting for key ${m}`,L),`${m}${v}${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&&!ie(p.replace)?p.replace:p,p.applyPostProcessor=!1,delete p.defaultValue;let d=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const v=o[1].split(this.formatSeparator).map(S=>S.trim());o[1]=v.shift(),m=v,d=!0}if(f=r(h.call(this,o[1].trim(),p),p),f&&o[0]===n&&!ie(f))return f;ie(f)||(f=xp(f)),f||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${n}`),f=""),d&&(f=m.reduce((v,S)=>this.format(v,S,s.lng,{...s,interpolationkey:o[1].trim()}),f.trim())),n=n.replace(o[0],f),this.regexp.lastIndex=0}return n}}const X0=i=>{let n=i.toLowerCase().trim();const r={};if(i.indexOf("(")>-1){const s=i.split("(");n=s[0].toLowerCase().trim();const o=s[1].substring(0,s[1].length-1);n==="currency"&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):n==="relativetime"&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach(p=>{if(p){const[h,...m]=p.split(":"),d=m.join(":").trim().replace(/^'+|'+$/g,""),v=h.trim();r[v]||(r[v]=d),d==="false"&&(r[v]=!1),d==="true"&&(r[v]=!0),isNaN(d)||(r[v]=parseInt(d,10))}})}return{formatName:n,formatOptions:r}},kp=i=>{const n={};return(r,s,o)=>{let f=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(f={...f,[o.interpolationkey]:void 0});const p=s+JSON.stringify(f);let h=n[p];return h||(h=i(pi(s),o),n[p]=h),h(r)}},J0=i=>(n,r,s)=>i(pi(r),s)(n);class F0{constructor(n={}){this.logger=Wt.create("formatter"),this.options=n,this.init(n)}init(n,r={interpolation:{}}){this.formatSeparator=r.interpolation.formatSeparator||",";const s=r.cacheInBuiltFormats?kp:J0;this.formats={number:s((o,f)=>{const p=new Intl.NumberFormat(o,{...f});return h=>p.format(h)}),currency:s((o,f)=>{const p=new Intl.NumberFormat(o,{...f,style:"currency"});return h=>p.format(h)}),datetime:s((o,f)=>{const p=new Intl.DateTimeFormat(o,{...f});return h=>p.format(h)}),relativetime:s((o,f)=>{const p=new Intl.RelativeTimeFormat(o,{...f});return h=>p.format(h,f.range||"day")}),list:s((o,f)=>{const p=new Intl.ListFormat(o,{...f});return h=>p.format(h)})}}add(n,r){this.formats[n.toLowerCase().trim()]=r}addCached(n,r){this.formats[n.toLowerCase().trim()]=kp(r)}format(n,r,s,o={}){const f=r.split(this.formatSeparator);if(f.length>1&&f[0].indexOf("(")>1&&f[0].indexOf(")")<0&&f.find(h=>h.indexOf(")")>-1)){const h=f.findIndex(m=>m.indexOf(")")>-1);f[0]=[f[0],...f.splice(1,h)].join(this.formatSeparator)}return f.reduce((h,m)=>{var S;const{formatName:d,formatOptions:v}=X0(m);if(this.formats[d]){let x=h;try{const C=((S=o==null?void 0:o.formatParams)==null?void 0:S[o.interpolationkey])||{},E=C.locale||C.lng||o.locale||o.lng||s;x=this.formats[d](h,E,{...v,...o,...C})}catch(C){this.logger.warn(C)}return x}else this.logger.warn(`there was no format function for ${d}`);return h},n)}}const P0=(i,n)=>{i.pending[n]!==void 0&&(delete i.pending[n],i.pendingCount--)};class W0 extends as{constructor(n,r,s,o={}){var f,p;super(),this.backend=n,this.store=r,this.services=s,this.languageUtils=s.languageUtils,this.options=o,this.logger=Wt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],(p=(f=this.backend)==null?void 0:f.init)==null||p.call(f,s,o.backend,o)}queueLoad(n,r,s,o){const f={},p={},h={},m={};return n.forEach(d=>{let v=!0;r.forEach(S=>{const x=`${d}|${S}`;!s.reload&&this.store.hasResourceBundle(d,S)?this.state[x]=2:this.state[x]<0||(this.state[x]===1?p[x]===void 0&&(p[x]=!0):(this.state[x]=1,v=!1,p[x]===void 0&&(p[x]=!0),f[x]===void 0&&(f[x]=!0),m[S]===void 0&&(m[S]=!0)))}),v||(h[d]=!0)}),(Object.keys(f).length||Object.keys(p).length)&&this.queue.push({pending:p,pendingCount:Object.keys(p).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(f),pending:Object.keys(p),toLoadLanguages:Object.keys(h),toLoadNamespaces:Object.keys(m)}}loaded(n,r,s){const o=n.split("|"),f=o[0],p=o[1];r&&this.emit("failedLoading",f,p,r),!r&&s&&this.store.addResourceBundle(f,p,s,void 0,void 0,{skipCopy:!0}),this.state[n]=r?-1:2,r&&s&&(this.state[n]=0);const h={};this.queue.forEach(m=>{U0(m.loaded,[f],p),P0(m,n),r&&m.errors.push(r),m.pendingCount===0&&!m.done&&(Object.keys(m.loaded).forEach(d=>{h[d]||(h[d]={});const v=m.loaded[d];v.length&&v.forEach(S=>{h[d][S]===void 0&&(h[d][S]=!0)})}),m.done=!0,m.errors.length?m.callback(m.errors):m.callback())}),this.emit("loaded",h),this.queue=this.queue.filter(m=>!m.done)}read(n,r,s,o=0,f=this.retryTimeout,p){if(!n.length)return p(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:n,ns:r,fcName:s,tried:o,wait:f,callback:p});return}this.readingCalls++;const h=(d,v)=>{if(this.readingCalls--,this.waitingReads.length>0){const S=this.waitingReads.shift();this.read(S.lng,S.ns,S.fcName,S.tried,S.wait,S.callback)}if(d&&v&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,n,r,s,o+1,f*2,p)},f);return}p(d,v)},m=this.backend[s].bind(this.backend);if(m.length===2){try{const d=m(n,r);d&&typeof d.then=="function"?d.then(v=>h(null,v)).catch(h):h(null,d)}catch(d){h(d)}return}return m(n,r,h)}prepareLoading(n,r,s={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();ie(n)&&(n=this.languageUtils.toResolveHierarchy(n)),ie(r)&&(r=[r]);const f=this.queueLoad(n,r,s,o);if(!f.toLoad.length)return f.pending.length||o(),null;f.toLoad.forEach(p=>{this.loadOne(p)})}load(n,r,s){this.prepareLoading(n,r,{},s)}reload(n,r,s){this.prepareLoading(n,r,{reload:!0},s)}loadOne(n,r=""){const s=n.split("|"),o=s[0],f=s[1];this.read(o,f,"read",void 0,void 0,(p,h)=>{p&&this.logger.warn(`${r}loading namespace ${f} for language ${o} failed`,p),!p&&h&&this.logger.log(`${r}loaded namespace ${f} for language ${o}`,h),this.loaded(n,p,h)})}saveMissing(n,r,s,o,f,p={},h=()=>{}){var m,d,v,S,x;if((d=(m=this.services)==null?void 0:m.utils)!=null&&d.hasLoadedNamespace&&!((S=(v=this.services)==null?void 0:v.utils)!=null&&S.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 C={...p,isUpdate:f},E=this.backend.create.bind(this.backend);if(E.length<6)try{let L;E.length===5?L=E(n,r,s,o,C):L=E(n,r,s,o),L&&typeof L.then=="function"?L.then(V=>h(null,V)).catch(h):h(null,L)}catch(L){h(L)}else E(n,r,s,o,h,C)}!n||!n[0]||this.store.addResource(n[0],r,s,o)}}}const Lp=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:i=>{let n={};if(typeof i[1]=="object"&&(n=i[1]),ie(i[1])&&(n.defaultValue=i[1]),ie(i[2])&&(n.tDescription=i[2]),typeof i[2]=="object"||typeof i[3]=="object"){const r=i[3]||i[2];Object.keys(r).forEach(s=>{n[s]=r[s]})}return n},interpolation:{escapeValue:!0,format:i=>i,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),zp=i=>{var n,r;return ie(i.ns)&&(i.ns=[i.ns]),ie(i.fallbackLng)&&(i.fallbackLng=[i.fallbackLng]),ie(i.fallbackNS)&&(i.fallbackNS=[i.fallbackNS]),((r=(n=i.supportedLngs)==null?void 0:n.indexOf)==null?void 0:r.call(n,"cimode"))<0&&(i.supportedLngs=i.supportedLngs.concat(["cimode"])),typeof i.initImmediate=="boolean"&&(i.initAsync=i.initImmediate),i},Br=()=>{},I0=i=>{Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach(r=>{typeof i[r]=="function"&&(i[r]=i[r].bind(i))})};class mi extends as{constructor(n={},r){if(super(),this.options=zp(n),this.services={},this.logger=Wt,this.modules={external:[]},I0(this),r&&!this.isInitialized&&!n.isClone){if(!this.options.initAsync)return this.init(n,r),this;setTimeout(()=>{this.init(n,r)},0)}}init(n={},r){this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),n.defaultNS==null&&n.ns&&(ie(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const s=Lp();this.options={...s,...this.options,...zp(n)},this.options.interpolation={...s.interpolation,...this.options.interpolation},n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const o=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?Wt.init(o(this.modules.logger),this.options):Wt.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:d=F0;const v=new Cp(this.options);this.store=new Rp(this.options.resources,this.options);const S=this.services;S.logger=Wt,S.resourceStore=this.store,S.languageUtils=v,S.pluralResolver=new Z0(v,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(S.formatter=o(d),S.formatter.init(S,this.options),this.options.interpolation.format=S.formatter.format.bind(S.formatter)),S.interpolator=new K0(this.options),S.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},S.backendConnector=new W0(o(this.modules.backend),S.resourceStore,S,this.options),S.backendConnector.on("*",(x,...C)=>{this.emit(x,...C)}),this.modules.languageDetector&&(S.languageDetector=o(this.modules.languageDetector),S.languageDetector.init&&S.languageDetector.init(S,this.options.detection,this.options)),this.modules.i18nFormat&&(S.i18nFormat=o(this.modules.i18nFormat),S.i18nFormat.init&&S.i18nFormat.init(this)),this.translator=new Pr(this.services,this.options),this.translator.on("*",(x,...C)=>{this.emit(x,...C)}),this.modules.external.forEach(x=>{x.init&&x.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Br),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=(...v)=>this.store[d](...v)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=(...v)=>(this.store[d](...v),this)});const h=ri(),m=()=>{const d=(v,S)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),h.resolve(S),r(v,S)};if(this.languages&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initAsync?m():setTimeout(m,0),h}loadResources(n,r=Br){var f,p;let s=r;const o=ie(n)?n:this.language;if(typeof n=="function"&&(s=n),!this.options.resources||this.options.partialBundledLanguages){if((o==null?void 0:o.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const h=[],m=d=>{if(!d||d==="cimode")return;this.services.languageUtils.toResolveHierarchy(d).forEach(S=>{S!=="cimode"&&h.indexOf(S)<0&&h.push(S)})};o?m(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(v=>m(v)),(p=(f=this.options.preload)==null?void 0:f.forEach)==null||p.call(f,d=>m(d)),this.services.backendConnector.load(h,this.options.ns,d=>{!d&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(d)})}else s(null)}reloadResources(n,r,s){const o=ri();return typeof n=="function"&&(s=n,n=void 0),typeof r=="function"&&(s=r,r=void 0),n||(n=this.languages),r||(r=this.options.ns),s||(s=Br),this.services.backendConnector.reload(n,r,f=>{o.resolve(),s(f)}),o}use(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&um.addPostProcessor(n),n.type==="formatter"&&(this.modules.formatter=n),n.type==="3rdParty"&&this.modules.external.push(n),this}setResolvedLanguage(n){if(!(!n||!this.languages)&&!(["cimode","dev"].indexOf(n)>-1)){for(let r=0;r<this.languages.length;r++){const s=this.languages[r];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}!this.resolvedLanguage&&this.languages.indexOf(n)<0&&this.store.hasLanguageSomeTranslations(n)&&(this.resolvedLanguage=n,this.languages.unshift(n))}}changeLanguage(n,r){this.isLanguageChangingTo=n;const s=ri();this.emit("languageChanging",n);const o=h=>{this.language=h,this.languages=this.services.languageUtils.toResolveHierarchy(h),this.resolvedLanguage=void 0,this.setResolvedLanguage(h)},f=(h,m)=>{m?this.isLanguageChangingTo===n&&(o(m),this.translator.changeLanguage(m),this.isLanguageChangingTo=void 0,this.emit("languageChanged",m),this.logger.log("languageChanged",m)):this.isLanguageChangingTo=void 0,s.resolve((...d)=>this.t(...d)),r&&r(h,(...d)=>this.t(...d))},p=h=>{var v,S;!n&&!h&&this.services.languageDetector&&(h=[]);const m=ie(h)?h:h&&h[0],d=this.store.hasLanguageSomeTranslations(m)?m:this.services.languageUtils.getBestMatchFromCodes(ie(h)?[h]:h);d&&(this.language||o(d),this.translator.language||this.translator.changeLanguage(d),(S=(v=this.services.languageDetector)==null?void 0:v.cacheUserLanguage)==null||S.call(v,d)),this.loadResources(d,x=>{f(x,d)})};return!n&&this.services.languageDetector&&!this.services.languageDetector.async?p(this.services.languageDetector.detect()):!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(p):this.services.languageDetector.detect(p):p(n),s}getFixedT(n,r,s){const o=(f,p,...h)=>{let m;typeof p!="object"?m=this.options.overloadTranslationOptionHandler([f,p].concat(h)):m={...p},m.lng=m.lng||o.lng,m.lngs=m.lngs||o.lngs,m.ns=m.ns||o.ns,m.keyPrefix!==""&&(m.keyPrefix=m.keyPrefix||s||o.keyPrefix);const d=this.options.keySeparator||".";let v;return m.keyPrefix&&Array.isArray(f)?v=f.map(S=>`${m.keyPrefix}${d}${S}`):v=m.keyPrefix?`${m.keyPrefix}${d}${f}`:f,this.t(v,m)};return ie(n)?o.lng=n:o.lngs=n,o.ns=r,o.keyPrefix=s,o}t(...n){var r;return(r=this.translator)==null?void 0:r.translate(...n)}exists(...n){var r;return(r=this.translator)==null?void 0:r.exists(...n)}setDefaultNamespace(n){this.options.defaultNS=n}hasLoadedNamespace(n,r={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=r.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const p=(h,m)=>{const d=this.services.backendConnector.state[`${h}|${m}`];return d===-1||d===0||d===2};if(r.precheck){const h=r.precheck(this,p);if(h!==void 0)return h}return!!(this.hasResourceBundle(s,n)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||p(s,n)&&(!o||p(f,n)))}loadNamespaces(n,r){const s=ri();return this.options.ns?(ie(n)&&(n=[n]),n.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{s.resolve(),r&&r(o)}),s):(r&&r(),Promise.resolve())}loadLanguages(n,r){const s=ri();ie(n)&&(n=[n]);const o=this.options.preload||[],f=n.filter(p=>o.indexOf(p)<0&&this.services.languageUtils.isSupportedCode(p));return f.length?(this.options.preload=o.concat(f),this.loadResources(p=>{s.resolve(),r&&r(p)}),s):(r&&r(),Promise.resolve())}dir(n){var o,f;if(n||(n=this.resolvedLanguage||(((o=this.languages)==null?void 0:o.length)>0?this.languages[0]:this.language)),!n)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=((f=this.services)==null?void 0:f.languageUtils)||new Cp(Lp());return r.indexOf(s.getLanguagePartFromCode(n))>-1||n.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(n={},r){return new mi(n,r)}cloneInstance(n={},r=Br){const s=n.forkResourceStore;s&&delete n.forkResourceStore;const o={...this.options,...n,isClone:!0},f=new mi(o);if((n.debug!==void 0||n.prefix!==void 0)&&(f.logger=f.logger.clone(n)),["store","services","language"].forEach(h=>{f[h]=this[h]}),f.services={...this.services},f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},s){const h=Object.keys(this.store.data).reduce((m,d)=>(m[d]={...this.store.data[d]},m[d]=Object.keys(m[d]).reduce((v,S)=>(v[S]={...m[d][S]},v),m[d]),m),{});f.store=new Rp(h,o),f.services.resourceStore=f.store}return f.translator=new Pr(f.services,o),f.translator.on("*",(h,...m)=>{f.emit(h,...m)}),f.init(o,r),f.translator.options=o,f.translator.backendConnector.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const at=mi.createInstance();at.createInstance=mi.createInstance;at.createInstance;at.dir;at.init;at.loadResources;at.reloadResources;at.use;at.changeLanguage;at.getFixedT;at.t;at.exists;at.setDefaultNamespace;at.hasLoadedNamespace;at.loadNamespaces;at.loadLanguages;var Co={exports:{}},oe={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Dp;function eb(){if(Dp)return oe;Dp=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),p=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),S=Symbol.iterator;function x(R){return R===null||typeof R!="object"?null:(R=S&&R[S]||R["@@iterator"],typeof R=="function"?R:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,L={};function V(R,$,Z){this.props=R,this.context=$,this.refs=L,this.updater=Z||C}V.prototype.isReactComponent={},V.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")},V.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function M(){}M.prototype=V.prototype;function D(R,$,Z){this.props=R,this.context=$,this.refs=L,this.updater=Z||C}var G=D.prototype=new M;G.constructor=D,E(G,V.prototype),G.isPureReactComponent=!0;var X=Array.isArray,K={H:null,A:null,T:null,S:null,V:null},se=Object.prototype.hasOwnProperty;function re(R,$,Z,Q,I,me){return Z=me.ref,{$$typeof:i,type:R,key:$,ref:Z!==void 0?Z:null,props:me}}function ee(R,$){return re(R.type,$,void 0,void 0,void 0,R.props)}function F(R){return typeof R=="object"&&R!==null&&R.$$typeof===i}function ne(R){var $={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(Z){return $[Z]})}var pe=/\/+/g;function Ke(R,$){return typeof R=="object"&&R!==null&&R.key!=null?ne(""+R.key):$.toString(36)}function Xe(){}function Ge(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(Xe,Xe):(R.status="pending",R.then(function($){R.status==="pending"&&(R.status="fulfilled",R.value=$)},function($){R.status==="pending"&&(R.status="rejected",R.reason=$)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function Ye(R,$,Z,Q,I){var me=typeof R;(me==="undefined"||me==="boolean")&&(R=null);var 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 v:return ue=R._init,Ye(ue(R._payload),$,Z,Q,I)}}if(ue)return I=I(R),ue=Q===""?"."+Ke(R,0):Q,X(I)?(Z="",ue!=null&&(Z=ue.replace(pe,"$&/")+"/"),Ye(I,$,Z,"",function(ya){return ya})):I!=null&&(F(I)&&(I=ee(I,Z+(I.key==null||R&&R.key===I.key?"":(""+I.key).replace(pe,"$&/")+"/")+ue)),$.push(I)),1;ue=0;var gt=Q===""?".":Q+":";if(X(R))for(var ze=0;ze<R.length;ze++)Q=R[ze],me=gt+Ke(Q,ze),ue+=Ye(Q,$,Z,me,I);else if(ze=x(R),typeof ze=="function")for(R=ze.call(R),ze=0;!(Q=R.next()).done;)Q=Q.value,me=gt+Ke(Q,ze++),ue+=Ye(Q,$,Z,me,I);else if(me==="object"){if(typeof R.then=="function")return Ye(Ge(R),$,Z,Q,I);throw $=String(R),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}return ue}function _(R,$,Z){if(R==null)return R;var Q=[],I=0;return Ye(R,Q,"","",function(me){return $.call(Z,me,I++)}),Q}function Y(R){if(R._status===-1){var $=R._result;$=$(),$.then(function(Z){(R._status===0||R._status===-1)&&(R._status=1,R._result=Z)},function(Z){(R._status===0||R._status===-1)&&(R._status=2,R._result=Z)}),R._status===-1&&(R._status=0,R._result=$)}if(R._status===1)return R._result.default;throw R._result}var W=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var $=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent($))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)};function ye(){}return oe.Children={map:_,forEach:function(R,$,Z){_(R,function(){$.apply(this,arguments)},Z)},count:function(R){var $=0;return _(R,function(){$++}),$},toArray:function(R){return _(R,function($){return $})||[]},only:function(R){if(!F(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},oe.Component=V,oe.Fragment=r,oe.Profiler=o,oe.PureComponent=D,oe.StrictMode=s,oe.Suspense=m,oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,oe.__COMPILER_RUNTIME={__proto__:null,c:function(R){return K.H.useMemoCache(R)}},oe.cache=function(R){return function(){return R.apply(null,arguments)}},oe.cloneElement=function(R,$,Z){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var Q=E({},R.props),I=R.key,me=void 0;if($!=null)for(ue in $.ref!==void 0&&(me=void 0),$.key!==void 0&&(I=""+$.key),$)!se.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=Z;else if(1<ue){for(var gt=Array(ue),ze=0;ze<ue;ze++)gt[ze]=arguments[ze+2];Q.children=gt}return re(R.type,I,void 0,void 0,me,Q)},oe.createContext=function(R){return R={$$typeof:p,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:f,_context:R},R},oe.createElement=function(R,$,Z){var Q,I={},me=null;if($!=null)for(Q in $.key!==void 0&&(me=""+$.key),$)se.call($,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(I[Q]=$[Q]);var ue=arguments.length-2;if(ue===1)I.children=Z;else if(1<ue){for(var gt=Array(ue),ze=0;ze<ue;ze++)gt[ze]=arguments[ze+2];I.children=gt}if(R&&R.defaultProps)for(Q in ue=R.defaultProps,ue)I[Q]===void 0&&(I[Q]=ue[Q]);return re(R,me,void 0,void 0,null,I)},oe.createRef=function(){return{current:null}},oe.forwardRef=function(R){return{$$typeof:h,render:R}},oe.isValidElement=F,oe.lazy=function(R){return{$$typeof:v,_payload:{_status:-1,_result:R},_init:Y}},oe.memo=function(R,$){return{$$typeof:d,type:R,compare:$===void 0?null:$}},oe.startTransition=function(R){var $=K.T,Z={};K.T=Z;try{var Q=R(),I=K.S;I!==null&&I(Z,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(ye,W)}catch(me){W(me)}finally{K.T=$}},oe.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},oe.use=function(R){return K.H.use(R)},oe.useActionState=function(R,$,Z){return K.H.useActionState(R,$,Z)},oe.useCallback=function(R,$){return K.H.useCallback(R,$)},oe.useContext=function(R){return K.H.useContext(R)},oe.useDebugValue=function(){},oe.useDeferredValue=function(R,$){return K.H.useDeferredValue(R,$)},oe.useEffect=function(R,$,Z){var Q=K.H;if(typeof Z=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Q.useEffect(R,$)},oe.useId=function(){return K.H.useId()},oe.useImperativeHandle=function(R,$,Z){return K.H.useImperativeHandle(R,$,Z)},oe.useInsertionEffect=function(R,$){return K.H.useInsertionEffect(R,$)},oe.useLayoutEffect=function(R,$){return K.H.useLayoutEffect(R,$)},oe.useMemo=function(R,$){return K.H.useMemo(R,$)},oe.useOptimistic=function(R,$){return K.H.useOptimistic(R,$)},oe.useReducer=function(R,$,Z){return K.H.useReducer(R,$,Z)},oe.useRef=function(R){return K.H.useRef(R)},oe.useState=function(R){return K.H.useState(R)},oe.useSyncExternalStore=function(R,$,Z){return K.H.useSyncExternalStore(R,$,Z)},oe.useTransition=function(){return K.H.useTransition()},oe.version="19.1.0",oe}var _p;function Fo(){return _p||(_p=1,Co.exports=eb()),Co.exports}var w=Fo();const Bo=rm(w),tb=(i,n,r,s)=>{var f,p,h,m;const o=[r,{code:n,...s||{}}];if((p=(f=i==null?void 0:i.services)==null?void 0:f.logger)!=null&&p.forward)return i.services.logger.forward(o,"warn","react-i18next::",!0);fn(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),(m=(h=i==null?void 0:i.services)==null?void 0:h.logger)!=null&&m.warn?i.services.logger.warn(...o):console!=null&&console.warn&&console.warn(...o)},Mp={},Ho=(i,n,r,s)=>{fn(r)&&Mp[r]||(fn(r)&&(Mp[r]=new Date),tb(i,n,r,s))},om=(i,n)=>()=>{if(i.isInitialized)n();else{const r=()=>{setTimeout(()=>{i.off("initialized",r)},0),n()};i.on("initialized",r)}},Vo=(i,n,r)=>{i.loadNamespaces(n,om(i,r))},Up=(i,n,r,s)=>{if(fn(r)&&(r=[r]),i.options.preload&&i.options.preload.indexOf(n)>-1)return Vo(i,r,s);r.forEach(o=>{i.options.ns.indexOf(o)<0&&i.options.ns.push(o)}),i.loadLanguages(n,om(i,s))},ab=(i,n,r={})=>!n.languages||!n.languages.length?(Ho(n,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:n.languages}),!0):n.hasLoadedNamespace(i,{lng:r.lng,precheck:(s,o)=>{var f;if(((f=r.bindI18n)==null?void 0:f.indexOf("languageChanging"))>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!o(s.isLanguageChangingTo,i))return!1}}),fn=i=>typeof i=="string",nb=i=>typeof i=="object"&&i!==null,lb=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,ib={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},rb=i=>ib[i],sb=i=>i.replace(lb,rb);let $o={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:sb};const ub=(i={})=>{$o={...$o,...i}},ob=()=>$o;let cm;const cb=i=>{cm=i},fb=()=>cm,db={type:"3rdParty",init(i){ub(i.options.react),cb(i)}},hb=w.createContext();class pb{constructor(){this.usedNamespaces={}}addUsedNamespaces(n){n.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const mb=(i,n)=>{const r=w.useRef();return w.useEffect(()=>{r.current=i},[i,n]),r.current},fm=(i,n,r,s)=>i.getFixedT(n,r,s),gb=(i,n,r,s)=>w.useCallback(fm(i,n,r,s),[i,n,r,s]),ot=(i,n={})=>{var X,K,se,re;const{i18n:r}=n,{i18n:s,defaultNS:o}=w.useContext(hb)||{},f=r||s||fb();if(f&&!f.reportNamespaces&&(f.reportNamespaces=new pb),!f){Ho(f,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const ee=(ne,pe)=>fn(pe)?pe:nb(pe)&&fn(pe.defaultValue)?pe.defaultValue:Array.isArray(ne)?ne[ne.length-1]:ne,F=[ee,{},!1];return F.t=ee,F.i18n={},F.ready=!1,F}(X=f.options.react)!=null&&X.wait&&Ho(f,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const p={...ob(),...f.options.react,...n},{useSuspense:h,keyPrefix:m}=p;let d=o||((K=f.options)==null?void 0:K.defaultNS);d=fn(d)?[d]:d||["translation"],(re=(se=f.reportNamespaces).addUsedNamespaces)==null||re.call(se,d);const v=(f.isInitialized||f.initializedStoreOnce)&&d.every(ee=>ab(ee,f,p)),S=gb(f,n.lng||null,p.nsMode==="fallback"?d:d[0],m),x=()=>S,C=()=>fm(f,n.lng||null,p.nsMode==="fallback"?d:d[0],m),[E,L]=w.useState(x);let V=d.join();n.lng&&(V=`${n.lng}${V}`);const M=mb(V),D=w.useRef(!0);w.useEffect(()=>{const{bindI18n:ee,bindI18nStore:F}=p;D.current=!0,!v&&!h&&(n.lng?Up(f,n.lng,d,()=>{D.current&&L(C)}):Vo(f,d,()=>{D.current&&L(C)})),v&&M&&M!==V&&D.current&&L(C);const ne=()=>{D.current&&L(C)};return ee&&(f==null||f.on(ee,ne)),F&&(f==null||f.store.on(F,ne)),()=>{D.current=!1,f&&(ee==null||ee.split(" ").forEach(pe=>f.off(pe,ne))),F&&f&&F.split(" ").forEach(pe=>f.store.off(pe,ne))}},[f,V]),w.useEffect(()=>{D.current&&v&&L(x)},[f,m,v]);const G=[E,f,v];if(G.t=E,G.i18n=f,G.ready=v,v||!v&&!h)return G;throw new Promise(ee=>{n.lng?Up(f,n.lng,d,()=>ee()):Vo(f,d,()=>ee())})},vb="ParoiCMS Site Generator",yb="<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>",bb="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.",xb="Add a new text field to the page…",Sb="Modify the Site Schema",Nb="Create a Site Schema",Eb="Generate the website",Rb="Generate site with sample data (recommended)",wb="Generate an empty site",Tb="Open the admin-ui",Cb="Open the site",jb="Generated Schema",Ab="Tree View",Ob="Site Schema",kb="Node Types",Lb="Labels",zb="Select language",Db="Explanations",_b="Current Activity",Mb="An error occurred: {{ message }}",Ub="An error occurred",Bb="Start Again",Hb="Step {{stepNumber}}: {{kind}}",Vb="This step is in progress…",$b="This step failed.",qb="This step had no effect.",Gb="No session data available",Yb="Step not found",Qb="Welcome to ParoiCMS Site Generator",Zb="Close and start again",Kb="Reset Schema",Xb="unknown error",Jb="Create New Site",Fb="Generating your site…",Pb="The site is generated",Wb="Email:",Ib="Password:",ex="I agree",tx="You are about to generate your website.",ax="Cancel",nx="Confirm",lx="Site URL:",ix="Admin URL:",rx="Copy all information to clipboard",sx="<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>",ux="Initial Schema Creation",ox="Schema Update",cx="Site Generation",fx={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…"},dx="Login Email",hx="Login Password",px="Generated Site",mx="Your session has expired. Please refresh the page to start a new session.",gx="Failed to submit your prompt. Please try again.",vx="Failed to generate the site. Please try again.",yx='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>.',bx="Extend your session",xx="Failed to refresh your session. Please try again.",Sx="Error connecting to server. Please check your connection and try again.",Nx="Tip: If you want to start over, open the generator in a new tab and close this one.",Ex={title:vb,startInstruction:yb,createPromptPlaceholder:bb,updatePromptPlaceholder:xb,modifySchema:Sb,createSchema:Nb,generateTheWebsite:Eb,generateSiteWithData:Rb,generateEmptySite:wb,administration:Tb,viewSite:Cb,generatedSchema:jb,treeView:Ab,siteSchema:Ob,nodeTypes:kb,labels:Lb,languageSelector:zb,explanation:Db,currentActivity:_b,errorOccurred:Mb,unknownErrorOccurred:Ub,startAgain:Bb,stepTitle:Hb,stepPending:Vb,stepFailed:$b,stepNoEffect:qb,noSessionData:Gb,stepNotFound:Yb,welcomeTitle:Qb,reset:Zb,resetSchema:Kb,unknownError:Xb,createNewSite:Jb,generatingSite:Fb,siteGenerated:Pb,email:Wb,password:Ib,agree:ex,aboutToGenerateWebsite:tx,cancel:ax,confirm:nx,siteUrl:lx,adminUrl:ix,copyToClipboard:rx,introduction:sx,initialSchema:ux,updateSchema:ox,generateSite:cx,activity:fx,loginEmail:dx,loginPassword:hx,generatedSite:px,sessionExpired:mx,promptSubmissionFailed:gx,generationFailed:vx,footerText:yx,extendYourSession:bx,sessionRenewalFailed:xx,errorConnectingToServer:Sx,newTabRestartMessage:Nx},Rx="ParoiCMS - Générateur de Site",wx="<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>",Tx="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.",Cx="Ajoute un nouveau champ texte à la page…",jx="Modifier le schéma du site",Ax="Créer un schéma de site",Ox="Générer le site web",kx="Générer le site avec des données d'exemple (recommandé)",Lx="Générer un site vide",zx="Ouvrir l'espace d'administration du site",Dx="Ouvrir le site",_x="Schéma généré",Mx="Arborescence",Ux="Schéma du site",Bx="Types de nœuds",Hx="Libellés",Vx="Sélectionner la langue",$x="Explications",qx="Activité en cours",Gx="Une erreur est survenue : {{ message }}",Yx="Une erreur est survenue",Qx="Recommencer",Zx="Étape {{stepNumber}} : {{kind}}",Kx="Cette étape est en cours…",Xx="Cette étape a échoué.",Jx="Cette étape n'a eu aucun effet.",Fx="Données de session non disponibles",Px="Étape introuvable",Wx="Bienvenue sur le générateur de site ParoiCMS",Ix="Fermer et réinitialiser",eS="Réinitialiser le schéma",tS="erreur inconnue",aS="Créer un nouveau site",nS="Génération de votre site…",lS="Le site est généré",iS="Email :",rS="Mot de passe :",sS="J'accepte",uS="Vous êtes sur le point de générer votre site web.",oS="Annuler",cS="Confirmer",fS="URL du site :",dS="URL d'admin :",hS="Copier toutes les informations dans le presse-papier",pS="<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>",mS="Création du schéma initial",gS="Mise à jour du schéma",vS="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…"},bS="Email de connexion",xS="Mot de passe",SS="Site généré",NS="Votre session a expiré. Veuillez rafraîchir la page pour démarrer une nouvelle session.",ES="Échec de l'envoi de votre demande. Veuillez réessayer.",RS="Échec de la génération du site. Veuillez réessayer.",wS='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",CS="Échec du renouvellement de votre session. Veuillez réessayer.",jS="Erreur de connexion au serveur. Veuillez vérifier votre connexion et réessayer.",AS="Astuce : si vous souhaitez repartir de zéro, ouvrez le générateur dans un nouvel onglet et fermez celui-ci.",OS={title:Rx,startInstruction:wx,createPromptPlaceholder:Tx,updatePromptPlaceholder:Cx,modifySchema:jx,createSchema:Ax,generateTheWebsite:Ox,generateSiteWithData:kx,generateEmptySite:Lx,administration:zx,viewSite:Dx,generatedSchema:_x,treeView:Mx,siteSchema:Ux,nodeTypes:Bx,labels:Hx,languageSelector:Vx,explanation:$x,currentActivity:qx,errorOccurred:Gx,unknownErrorOccurred:Yx,startAgain:Qx,stepTitle:Zx,stepPending:Kx,stepFailed:Xx,stepNoEffect:Jx,noSessionData:Fx,stepNotFound:Px,welcomeTitle:Wx,reset:Ix,resetSchema:eS,unknownError:tS,createNewSite:aS,generatingSite:nS,siteGenerated:lS,email:iS,password:rS,agree:sS,aboutToGenerateWebsite:uS,cancel:oS,confirm:cS,siteUrl:fS,adminUrl:dS,copyToClipboard:hS,introduction:pS,initialSchema:mS,updateSchema:gS,generateSite:vS,activity:yS,loginEmail:bS,loginPassword:xS,generatedSite:SS,sessionExpired:NS,promptSubmissionFailed:ES,generationFailed:RS,footerText:wS,extendYourSession:TS,sessionRenewalFailed:CS,errorConnectingToServer:jS,newTabRestartMessage:AS},kS=`<p>Welcome!</p>
|
|
18
|
+
<p>ParoiCMS is a CMS for showcase websites. Its core feature is that you define the structure of your website. This tool will help you to do it.</p>
|
|
19
|
+
<p>A session identifier will follow you on the tab of your browser, it will be deleted when you close the tab. However, your session data may be retained for debugging purposes.</p>`,LS=`<p>Bienvenue !</p>
|
|
20
|
+
<p>ParoiCMS est un CMS pour sites vitrines. Sa fonctionnalité principale est que vous définissez la structure de votre site web. Le générateur vous aidera dans cette tâche.</p>
|
|
21
|
+
<p>Un identifiant de session vous suivra dans l'onglet de votre navigateur, il sera supprimé lorsque vous fermerez l'onglet. Mais vos données de session pourront être conservées à des fins de débogage.</p>`,zS=`<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
|
+
<p>Notice that it will be deleted in 48 hours. However, if you want to keep it, then <strong>make a backup</strong>. <em>Each backup is a zip file that contains a full Node.js project, ready to be installed and executed in a local environment.</em></p>
|
|
23
|
+
<p>An unattractive theme has been generated. Its purpose is to demonstrate how to write templates for your data structure.</p>
|
|
24
|
+
<p>Make sure to copy the information below, as it will be lost once you close this tab.</p>`,DS=`<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
|
+
<p>Notez qu'il sera supprimé dans 48 heures. Cependant, si vous souhaitez le conserver, alors <strong>faites une sauvegarde</strong>. <em>Chaque sauvegarde est un fichier zip qui contient un projet Node.js complet, prêt à être installé et exécuté dans un environnement local.</em></p>
|
|
26
|
+
<p>Un thème tout moche a été généré. Son but est de montrer comment écrire des templates pour votre structure de données.</p>
|
|
27
|
+
<p>Assurez-vous de copier les informations ci-dessous, car elles seront perdues une fois que vous fermerez cet onglet.</p>`,_S={en:{translation:{...Ex,introduction:kS,userManual:zS}},fr:{translation:{...OS,introduction:LS,userManual:DS}}};at.use(db).init({resources:_S,lng:navigator.language.split("-")[0],fallbackLng:"en",interpolation:{escapeValue:!1}});var jo={exports:{}},si={},Ao={exports:{}},Oo={};/**
|
|
28
|
+
* @license React
|
|
29
|
+
* scheduler.production.js
|
|
30
|
+
*
|
|
31
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
32
|
+
*
|
|
33
|
+
* This source code is licensed under the MIT license found in the
|
|
34
|
+
* LICENSE file in the root directory of this source tree.
|
|
35
|
+
*/var Bp;function MS(){return Bp||(Bp=1,function(i){function n(_,Y){var W=_.length;_.push(Y);e:for(;0<W;){var ye=W-1>>>1,R=_[ye];if(0<o(R,Y))_[ye]=Y,_[W]=R,W=ye;else break e}}function r(_){return _.length===0?null:_[0]}function s(_){if(_.length===0)return null;var Y=_[0],W=_.pop();if(W!==Y){_[0]=W;e:for(var ye=0,R=_.length,$=R>>>1;ye<$;){var Z=2*(ye+1)-1,Q=_[Z],I=Z+1,me=_[I];if(0>o(Q,W))I<R&&0>o(me,Q)?(_[ye]=me,_[I]=W,ye=I):(_[ye]=Q,_[Z]=W,ye=Z);else if(I<R&&0>o(me,W))_[ye]=me,_[I]=W,ye=I;else break e}}return Y}function o(_,Y){var W=_.sortIndex-Y.sortIndex;return W!==0?W:_.id-Y.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;i.unstable_now=function(){return f.now()}}else{var p=Date,h=p.now();i.unstable_now=function(){return p.now()-h}}var m=[],d=[],v=1,S=null,x=3,C=!1,E=!1,L=!1,V=!1,M=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function X(_){for(var Y=r(d);Y!==null;){if(Y.callback===null)s(d);else if(Y.startTime<=_)s(d),Y.sortIndex=Y.expirationTime,n(m,Y);else break;Y=r(d)}}function K(_){if(L=!1,X(_),!E)if(r(m)!==null)E=!0,se||(se=!0,Ke());else{var Y=r(d);Y!==null&&Ye(K,Y.startTime-_)}}var se=!1,re=-1,ee=5,F=-1;function ne(){return V?!0:!(i.unstable_now()-F<ee)}function pe(){if(V=!1,se){var _=i.unstable_now();F=_;var Y=!0;try{e:{E=!1,L&&(L=!1,D(re),re=-1),C=!0;var W=x;try{t:{for(X(_),S=r(m);S!==null&&!(S.expirationTime>_&&ne());){var ye=S.callback;if(typeof ye=="function"){S.callback=null,x=S.priorityLevel;var R=ye(S.expirationTime<=_);if(_=i.unstable_now(),typeof R=="function"){S.callback=R,X(_),Y=!0;break t}S===r(m)&&s(m),X(_)}else s(m);S=r(m)}if(S!==null)Y=!0;else{var $=r(d);$!==null&&Ye(K,$.startTime-_),Y=!1}}break e}finally{S=null,x=W,C=!1}Y=void 0}}finally{Y?Ke():se=!1}}}var Ke;if(typeof G=="function")Ke=function(){G(pe)};else if(typeof MessageChannel<"u"){var Xe=new MessageChannel,Ge=Xe.port2;Xe.port1.onmessage=pe,Ke=function(){Ge.postMessage(null)}}else Ke=function(){M(pe,0)};function Ye(_,Y){re=M(function(){_(i.unstable_now())},Y)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(_){_.callback=null},i.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ee=0<_?Math.floor(1e3/_):5},i.unstable_getCurrentPriorityLevel=function(){return x},i.unstable_next=function(_){switch(x){case 1:case 2:case 3:var Y=3;break;default:Y=x}var W=x;x=Y;try{return _()}finally{x=W}},i.unstable_requestPaint=function(){V=!0},i.unstable_runWithPriority=function(_,Y){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var W=x;x=_;try{return Y()}finally{x=W}},i.unstable_scheduleCallback=function(_,Y,W){var ye=i.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?ye+W:ye):W=ye,_){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=W+R,_={id:v++,callback:Y,priorityLevel:_,startTime:W,expirationTime:R,sortIndex:-1},W>ye?(_.sortIndex=W,n(d,_),r(m)===null&&_===r(d)&&(L?(D(re),re=-1):L=!0,Ye(K,W-ye))):(_.sortIndex=R,n(m,_),E||C||(E=!0,se||(se=!0,Ke()))),_},i.unstable_shouldYield=ne,i.unstable_wrapCallback=function(_){var Y=x;return function(){var W=x;x=Y;try{return _.apply(this,arguments)}finally{x=W}}}}(Oo)),Oo}var Hp;function US(){return Hp||(Hp=1,Ao.exports=MS()),Ao.exports}var ko={exports:{}},it={};/**
|
|
36
|
+
* @license React
|
|
37
|
+
* react-dom.production.js
|
|
38
|
+
*
|
|
39
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
40
|
+
*
|
|
41
|
+
* This source code is licensed under the MIT license found in the
|
|
42
|
+
* LICENSE file in the root directory of this source tree.
|
|
43
|
+
*/var Vp;function BS(){if(Vp)return it;Vp=1;var i=Fo();function n(m){var d="https://react.dev/errors/"+m;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)d+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+m+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function f(m,d,v){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:S==null?null:""+S,children:m,containerInfo:d,implementation:v}}var p=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,d){if(m==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return it.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,it.createPortal=function(m,d){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(n(299));return f(m,d,null,v)},it.flushSync=function(m){var d=p.T,v=s.p;try{if(p.T=null,s.p=2,m)return m()}finally{p.T=d,s.p=v,s.d.f()}},it.preconnect=function(m,d){typeof m=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,s.d.C(m,d))},it.prefetchDNS=function(m){typeof m=="string"&&s.d.D(m)},it.preinit=function(m,d){if(typeof m=="string"&&d&&typeof d.as=="string"){var v=d.as,S=h(v,d.crossOrigin),x=typeof d.integrity=="string"?d.integrity:void 0,C=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;v==="style"?s.d.S(m,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:S,integrity:x,fetchPriority:C}):v==="script"&&s.d.X(m,{crossOrigin:S,integrity:x,fetchPriority:C,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},it.preinitModule=function(m,d){if(typeof m=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var v=h(d.as,d.crossOrigin);s.d.M(m,{crossOrigin:v,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&s.d.M(m)},it.preload=function(m,d){if(typeof m=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var v=d.as,S=h(v,d.crossOrigin);s.d.L(m,v,{crossOrigin:S,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},it.preloadModule=function(m,d){if(typeof m=="string")if(d){var v=h(d.as,d.crossOrigin);s.d.m(m,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:v,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else s.d.m(m)},it.requestFormReset=function(m){s.d.r(m)},it.unstable_batchedUpdates=function(m,d){return m(d)},it.useFormState=function(m,d,v){return p.H.useFormState(m,d,v)},it.useFormStatus=function(){return p.H.useHostTransitionStatus()},it.version="19.1.0",it}var $p;function HS(){if($p)return ko.exports;$p=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(n){console.error(n)}}return i(),ko.exports=BS(),ko.exports}/**
|
|
44
|
+
* @license React
|
|
45
|
+
* react-dom-client.production.js
|
|
46
|
+
*
|
|
47
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
48
|
+
*
|
|
49
|
+
* This source code is licensed under the MIT license found in the
|
|
50
|
+
* LICENSE file in the root directory of this source tree.
|
|
51
|
+
*/var qp;function VS(){if(qp)return si;qp=1;var i=US(),n=Fo(),r=HS();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function p(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(f(e)!==e)throw Error(s(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,l=t;;){var u=a.return;if(u===null)break;var c=u.alternate;if(c===null){if(l=u.return,l!==null){a=l;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===a)return h(u),e;if(c===l)return h(u),t;c=c.sibling}throw Error(s(188))}if(a.return!==l.return)a=u,l=c;else{for(var g=!1,y=u.child;y;){if(y===a){g=!0,a=u,l=c;break}if(y===l){g=!0,l=u,a=c;break}y=y.sibling}if(!g){for(y=c.child;y;){if(y===a){g=!0,a=c,l=u;break}if(y===l){g=!0,l=c,a=u;break}y=y.sibling}if(!g)throw Error(s(189))}}if(a.alternate!==l)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,S=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),M=Symbol.for("react.provider"),D=Symbol.for("react.consumer"),G=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),re=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),ne=Symbol.for("react.memo_cache_sentinel"),pe=Symbol.iterator;function Ke(e){return e===null||typeof e!="object"?null:(e=pe&&e[pe]||e["@@iterator"],typeof e=="function"?e:null)}var Xe=Symbol.for("react.client.reference");function Ge(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Xe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case V:return"Profiler";case L:return"StrictMode";case K:return"Suspense";case se:return"SuspenseList";case F:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case C:return"Portal";case G:return(e.displayName||"Context")+".Provider";case D:return(e._context.displayName||"Context")+".Consumer";case X:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case re:return t=e.displayName||null,t!==null?t:Ge(e.type)||"Memo";case ee:t=e._payload,e=e._init;try{return Ge(e(t))}catch{}}return null}var Ye=Array.isArray,_=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},ye=[],R=-1;function $(e){return{current:e}}function Z(e){0>R||(e.current=ye[R],ye[R]=null,R--)}function Q(e,t){R++,ye[R]=e.current,e.current=t}var I=$(null),me=$(null),ue=$(null),gt=$(null);function ze(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)?Zh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Zh(t),e=Kh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Z(I),Q(I,e)}function ya(){Z(I),Z(me),Z(ue)}function os(e){e.memoizedState!==null&&Q(gt,e);var t=I.current,a=Kh(t,e.type);t!==a&&(Q(me,e),Q(I,a))}function Ei(e){me.current===e&&(Z(I),Z(me)),gt.current===e&&(Z(gt),ei._currentValue=W)}var cs=Object.prototype.hasOwnProperty,fs=i.unstable_scheduleCallback,ds=i.unstable_cancelCallback,ov=i.unstable_shouldYield,cv=i.unstable_requestPaint,Qt=i.unstable_now,fv=i.unstable_getCurrentPriorityLevel,wc=i.unstable_ImmediatePriority,Tc=i.unstable_UserBlockingPriority,Ri=i.unstable_NormalPriority,dv=i.unstable_LowPriority,Cc=i.unstable_IdlePriority,hv=i.log,pv=i.unstable_setDisableYieldValue,ul=null,vt=null;function ba(e){if(typeof hv=="function"&&pv(e),vt&&typeof vt.setStrictMode=="function")try{vt.setStrictMode(ul,e)}catch{}}var yt=Math.clz32?Math.clz32:vv,mv=Math.log,gv=Math.LN2;function vv(e){return e>>>=0,e===0?32:31-(mv(e)/gv|0)|0}var wi=256,Ti=4194304;function Za(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ci(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var u=0,c=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var y=l&134217727;return y!==0?(l=y&~c,l!==0?u=Za(l):(g&=y,g!==0?u=Za(g):a||(a=y&~e,a!==0&&(u=Za(a))))):(y=l&~c,y!==0?u=Za(y):g!==0?u=Za(g):a||(a=l&~e,a!==0&&(u=Za(a)))),u===0?0:t!==0&&t!==u&&(t&c)===0&&(c=u&-u,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:u}function ol(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function yv(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function jc(){var e=wi;return wi<<=1,(wi&4194048)===0&&(wi=256),e}function Ac(){var e=Ti;return Ti<<=1,(Ti&62914560)===0&&(Ti=4194304),e}function hs(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 bv(e,t,a,l,u,c){var g=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var y=e.entanglements,N=e.expirationTimes,O=e.hiddenUpdates;for(a=g&~a;0<a;){var B=31-yt(a),q=1<<B;y[B]=0,N[B]=-1;var k=O[B];if(k!==null)for(O[B]=null,B=0;B<k.length;B++){var z=k[B];z!==null&&(z.lane&=-536870913)}a&=~q}l!==0&&Oc(e,l,0),c!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=c&~(g&~t))}function Oc(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-yt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&4194090}function kc(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-yt(a),u=1<<l;u&t|e[l]&t&&(e[l]|=t),a&=~u}}function ps(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 ms(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Lc(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:dp(e.type))}function xv(e,t){var a=Y.p;try{return Y.p=e,t()}finally{Y.p=a}}var xa=Math.random().toString(36).slice(2),nt="__reactFiber$"+xa,ct="__reactProps$"+xa,vn="__reactContainer$"+xa,gs="__reactEvents$"+xa,Sv="__reactListeners$"+xa,Nv="__reactHandles$"+xa,zc="__reactResources$"+xa,fl="__reactMarker$"+xa;function vs(e){delete e[nt],delete e[ct],delete e[gs],delete e[Sv],delete e[Nv]}function yn(e){var t=e[nt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[vn]||a[nt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Ph(e);e!==null;){if(a=e[nt])return a;e=Ph(e)}return t}e=a,a=e.parentNode}return null}function bn(e){if(e=e[nt]||e[vn]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function dl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function xn(e){var t=e[zc];return t||(t=e[zc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Je(e){e[fl]=!0}var Dc=new Set,_c={};function Ka(e,t){Sn(e,t),Sn(e+"Capture",t)}function Sn(e,t){for(_c[e]=t,e=0;e<t.length;e++)Dc.add(t[e])}var Ev=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Mc={},Uc={};function Rv(e){return cs.call(Uc,e)?!0:cs.call(Mc,e)?!1:Ev.test(e)?Uc[e]=!0:(Mc[e]=!0,!1)}function ji(e,t,a){if(Rv(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Ai(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function It(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}var ys,Bc;function Nn(e){if(ys===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);ys=t&&t[1]||"",Bc=-1<a.stack.indexOf(`
|
|
52
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
53
|
+
`+ys+e+Bc}var bs=!1;function xs(e,t){if(!e||bs)return"";bs=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(z){var k=z}Reflect.construct(e,[],q)}else{try{q.call()}catch(z){k=z}e.call(q.prototype)}}else{try{throw Error()}catch(z){k=z}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(z){if(z&&k&&typeof z.stack=="string")return[z.stack,k.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),g=c[0],y=c[1];if(g&&y){var N=g.split(`
|
|
54
|
+
`),O=y.split(`
|
|
55
|
+
`);for(u=l=0;l<N.length&&!N[l].includes("DetermineComponentFrameRoot");)l++;for(;u<O.length&&!O[u].includes("DetermineComponentFrameRoot");)u++;if(l===N.length||u===O.length)for(l=N.length-1,u=O.length-1;1<=l&&0<=u&&N[l]!==O[u];)u--;for(;1<=l&&0<=u;l--,u--)if(N[l]!==O[u]){if(l!==1||u!==1)do if(l--,u--,0>u||N[l]!==O[u]){var B=`
|
|
56
|
+
`+N[l].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),B}while(1<=l&&0<=u);break}}}finally{bs=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Nn(a):""}function wv(e){switch(e.tag){case 26:case 27:case 5:return Nn(e.type);case 16:return Nn("Lazy");case 13:return Nn("Suspense");case 19:return Nn("SuspenseList");case 0:case 15:return xs(e.type,!1);case 11:return xs(e.type.render,!1);case 1:return xs(e.type,!0);case 31:return Nn("Activity");default:return""}}function Hc(e){try{var t="";do t+=wv(e),e=e.return;while(e);return t}catch(a){return`
|
|
57
|
+
Error generating stack: `+a.message+`
|
|
58
|
+
`+a.stack}}function jt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Vc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Tv(e){var t=Vc(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var u=a.get,c=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(g){l=""+g,c.call(this,g)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(g){l=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Oi(e){e._valueTracker||(e._valueTracker=Tv(e))}function $c(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=Vc(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function ki(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Cv=/[\n"\\]/g;function At(e){return e.replace(Cv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ss(e,t,a,l,u,c,g,y){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+jt(t)):e.value!==""+jt(t)&&(e.value=""+jt(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?Ns(e,g,jt(t)):a!=null?Ns(e,g,jt(a)):l!=null&&e.removeAttribute("value"),u==null&&c!=null&&(e.defaultChecked=!!c),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+jt(y):e.removeAttribute("name")}function qc(e,t,a,l,u,c,g,y){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null))return;a=a!=null?""+jt(a):"",t=t!=null?""+jt(t):a,y||t===e.value||(e.value=t),e.defaultValue=t}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=y?e.checked:!!l,e.defaultChecked=!!l,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g)}function Ns(e,t,a){t==="number"&&ki(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function En(e,t,a,l){if(e=e.options,t){t={};for(var u=0;u<a.length;u++)t["$"+a[u]]=!0;for(a=0;a<e.length;a++)u=t.hasOwnProperty("$"+e[a].value),e[a].selected!==u&&(e[a].selected=u),u&&l&&(e[a].defaultSelected=!0)}else{for(a=""+jt(a),t=null,u=0;u<e.length;u++){if(e[u].value===a){e[u].selected=!0,l&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Gc(e,t,a){if(t!=null&&(t=""+jt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+jt(a):""}function Yc(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(s(92));if(Ye(l)){if(1<l.length)throw Error(s(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=jt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l)}function Rn(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var jv=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Qc(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||jv.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Zc(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var u in t)l=t[u],t.hasOwnProperty(u)&&a[u]!==l&&Qc(e,u,l)}else for(var c in t)t.hasOwnProperty(c)&&Qc(e,c,t[c])}function Es(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 Av=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"]]),Ov=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Li(e){return Ov.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Rs=null;function ws(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wn=null,Tn=null;function Kc(e){var t=bn(e);if(t&&(e=t.stateNode)){var a=e[ct]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ss(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+At(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var u=l[ct]||null;if(!u)throw Error(s(90));Ss(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&$c(l)}break e;case"textarea":Gc(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&En(e,!!a.multiple,t,!1)}}}var Ts=!1;function Xc(e,t,a){if(Ts)return e(t,a);Ts=!0;try{var l=e(t);return l}finally{if(Ts=!1,(wn!==null||Tn!==null)&&(vr(),wn&&(t=wn,e=Tn,Tn=wn=null,Kc(t),e)))for(t=0;t<e.length;t++)Kc(e[t])}}function hl(e,t){var a=e.stateNode;if(a===null)return null;var l=a[ct]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var ea=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cs=!1;if(ea)try{var pl={};Object.defineProperty(pl,"passive",{get:function(){Cs=!0}}),window.addEventListener("test",pl,pl),window.removeEventListener("test",pl,pl)}catch{Cs=!1}var Sa=null,js=null,zi=null;function Jc(){if(zi)return zi;var e,t=js,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 zi=u.slice(e,1<l?1-l:void 0)}function Di(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function _i(){return!0}function Fc(){return!1}function ft(e){function t(a,l,u,c,g){this._reactName=a,this._targetInst=u,this.type=l,this.nativeEvent=c,this.target=g,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(a=e[y],this[y]=a?a(c):c[y]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?_i:Fc,this.isPropagationStopped=Fc,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=_i)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=_i)},persist:function(){},isPersistent:_i}),t}var Xa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mi=ft(Xa),ml=v({},Xa,{view:0,detail:0}),kv=ft(ml),As,Os,gl,Ui=v({},ml,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ls,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"?(As=e.screenX-gl.screenX,Os=e.screenY-gl.screenY):Os=As=0,gl=e),As)},movementY:function(e){return"movementY"in e?e.movementY:Os}}),Pc=ft(Ui),Lv=v({},Ui,{dataTransfer:0}),zv=ft(Lv),Dv=v({},ml,{relatedTarget:0}),ks=ft(Dv),_v=v({},Xa,{animationName:0,elapsedTime:0,pseudoElement:0}),Mv=ft(_v),Uv=v({},Xa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Bv=ft(Uv),Hv=v({},Xa,{data:0}),Wc=ft(Hv),Vv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$v={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"},qv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=qv[e])?!!t[e]:!1}function Ls(){return Gv}var Yv=v({},ml,{key:function(e){if(e.key){var t=Vv[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"?$v[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ls,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}}),Qv=ft(Yv),Zv=v({},Ui,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ic=ft(Zv),Kv=v({},ml,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ls}),Xv=ft(Kv),Jv=v({},Xa,{propertyName:0,elapsedTime:0,pseudoElement:0}),Fv=ft(Jv),Pv=v({},Ui,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Wv=ft(Pv),Iv=v({},Xa,{newState:0,oldState:0}),ey=ft(Iv),ty=[9,13,27,32],zs=ea&&"CompositionEvent"in window,vl=null;ea&&"documentMode"in document&&(vl=document.documentMode);var ay=ea&&"TextEvent"in window&&!vl,ef=ea&&(!zs||vl&&8<vl&&11>=vl),tf=" ",af=!1;function nf(e,t){switch(e){case"keyup":return ty.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cn=!1;function ny(e,t){switch(e){case"compositionend":return lf(t);case"keypress":return t.which!==32?null:(af=!0,tf);case"textInput":return e=t.data,e===tf&&af?null:e;default:return null}}function ly(e,t){if(Cn)return e==="compositionend"||!zs&&nf(e,t)?(e=Jc(),zi=js=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 ef&&t.locale!=="ko"?null:t.data;default:return null}}var iy={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function rf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!iy[e.type]:t==="textarea"}function sf(e,t,a,l){wn?Tn?Tn.push(l):Tn=[l]:wn=l,t=Er(t,"onChange"),0<t.length&&(a=new Mi("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var yl=null,bl=null;function ry(e){$h(e,0)}function Bi(e){var t=dl(e);if($c(t))return e}function uf(e,t){if(e==="change")return t}var of=!1;if(ea){var Ds;if(ea){var _s="oninput"in document;if(!_s){var cf=document.createElement("div");cf.setAttribute("oninput","return;"),_s=typeof cf.oninput=="function"}Ds=_s}else Ds=!1;of=Ds&&(!document.documentMode||9<document.documentMode)}function ff(){yl&&(yl.detachEvent("onpropertychange",df),bl=yl=null)}function df(e){if(e.propertyName==="value"&&Bi(bl)){var t=[];sf(t,bl,e,ws(e)),Xc(ry,t)}}function sy(e,t,a){e==="focusin"?(ff(),yl=t,bl=a,yl.attachEvent("onpropertychange",df)):e==="focusout"&&ff()}function uy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Bi(bl)}function oy(e,t){if(e==="click")return Bi(t)}function cy(e,t){if(e==="input"||e==="change")return Bi(t)}function fy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bt=typeof Object.is=="function"?Object.is:fy;function xl(e,t){if(bt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var u=a[l];if(!cs.call(t,u)||!bt(e[u],t[u]))return!1}return!0}function hf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pf(e,t){var a=hf(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=hf(a)}}function mf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?mf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ki(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=ki(e.document)}return t}function 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 dy=ea&&"documentMode"in document&&11>=document.documentMode,jn=null,Us=null,Sl=null,Bs=!1;function vf(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Bs||jn==null||jn!==ki(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&&xl(Sl,l)||(Sl=l,l=Er(Us,"onSelect"),0<l.length&&(t=new Mi("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=jn)))}function Ja(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var An={animationend:Ja("Animation","AnimationEnd"),animationiteration:Ja("Animation","AnimationIteration"),animationstart:Ja("Animation","AnimationStart"),transitionrun:Ja("Transition","TransitionRun"),transitionstart:Ja("Transition","TransitionStart"),transitioncancel:Ja("Transition","TransitionCancel"),transitionend:Ja("Transition","TransitionEnd")},Hs={},yf={};ea&&(yf=document.createElement("div").style,"AnimationEvent"in window||(delete An.animationend.animation,delete An.animationiteration.animation,delete An.animationstart.animation),"TransitionEvent"in window||delete An.transitionend.transition);function Fa(e){if(Hs[e])return Hs[e];if(!An[e])return e;var t=An[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in yf)return Hs[e]=t[a];return e}var bf=Fa("animationend"),xf=Fa("animationiteration"),Sf=Fa("animationstart"),hy=Fa("transitionrun"),py=Fa("transitionstart"),my=Fa("transitioncancel"),Nf=Fa("transitionend"),Ef=new Map,Vs="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(" ");Vs.push("scrollEnd");function Ht(e,t){Ef.set(e,t),Ka(t,[e])}var Rf=new WeakMap;function Ot(e,t){if(typeof e=="object"&&e!==null){var a=Rf.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Hc(t)},Rf.set(e,t),t)}return{value:e,source:t,stack:Hc(t)}}var kt=[],On=0,$s=0;function Hi(){for(var e=On,t=$s=On=0;t<e;){var a=kt[t];kt[t++]=null;var l=kt[t];kt[t++]=null;var u=kt[t];kt[t++]=null;var c=kt[t];if(kt[t++]=null,l!==null&&u!==null){var g=l.pending;g===null?u.next=u:(u.next=g.next,g.next=u),l.pending=u}c!==0&&wf(a,u,c)}}function Vi(e,t,a,l){kt[On++]=e,kt[On++]=t,kt[On++]=a,kt[On++]=l,$s|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function qs(e,t,a,l){return Vi(e,t,a,l),$i(e)}function kn(e,t){return Vi(e,null,null,t),$i(e)}function wf(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var u=!1,c=e.return;c!==null;)c.childLanes|=a,l=c.alternate,l!==null&&(l.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(u=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,u&&t!==null&&(u=31-yt(a),e=c.hiddenUpdates,l=e[u],l===null?e[u]=[t]:l.push(t),t.lane=a|536870912),c):null}function $i(e){if(50<Zl)throw Zl=0,Xu=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ln={};function gy(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 xt(e,t,a,l){return new gy(e,t,a,l)}function Gs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ta(e,t){var a=e.alternate;return a===null?(a=xt(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")Gs(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=xt(31,a,t,u),e.elementType=F,e.lanes=c,e;case E:return Pa(a.children,u,c,t);case L:g=8,u|=24;break;case V:return e=xt(12,a,t,u|2),e.elementType=V,e.lanes=c,e;case K:return e=xt(13,a,t,u),e.elementType=K,e.lanes=c,e;case se:return e=xt(19,a,t,u),e.elementType=se,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:case G:g=10;break e;case D:g=9;break e;case X:g=11;break e;case re:g=14;break e;case ee:g=16,l=null;break e}g=29,a=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=xt(g,a,t,u),t.elementType=e,t.type=l,t.lanes=c,t}function Pa(e,t,a,l){return e=xt(7,e,l,t),e.lanes=a,e}function Ys(e,t,a){return e=xt(6,e,null,t),e.lanes=a,e}function Qs(e,t,a){return t=xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var zn=[],Dn=0,Gi=null,Yi=0,Lt=[],zt=0,Wa=null,aa=1,na="";function Ia(e,t){zn[Dn++]=Yi,zn[Dn++]=Gi,Gi=e,Yi=t}function Cf(e,t,a){Lt[zt++]=aa,Lt[zt++]=na,Lt[zt++]=Wa,Wa=e;var l=aa;e=na;var u=32-yt(l)-1;l&=~(1<<u),a+=1;var c=32-yt(t)+u;if(30<c){var g=u-u%5;c=(l&(1<<g)-1).toString(32),l>>=g,u-=g,aa=1<<32-yt(t)+u|a<<u|l,na=c+e}else aa=1<<c|a<<u|l,na=e}function Zs(e){e.return!==null&&(Ia(e,1),Cf(e,1,0))}function Ks(e){for(;e===Gi;)Gi=zn[--Dn],zn[Dn]=null,Yi=zn[--Dn],zn[Dn]=null;for(;e===Wa;)Wa=Lt[--zt],Lt[zt]=null,na=Lt[--zt],Lt[zt]=null,aa=Lt[--zt],Lt[zt]=null}var st=null,Ue=null,xe=!1,en=null,Zt=!1,Xs=Error(s(519));function tn(e){var t=Error(s(418,""));throw Rl(Ot(t,e)),Xs}function jf(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[nt]=e,t[ct]=l,a){case"dialog":he("cancel",t),he("close",t);break;case"iframe":case"object":case"embed":he("load",t);break;case"video":case"audio":for(a=0;a<Xl.length;a++)he(Xl[a],t);break;case"source":he("error",t);break;case"img":case"image":case"link":he("error",t),he("load",t);break;case"details":he("toggle",t);break;case"input":he("invalid",t),qc(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),Oi(t);break;case"select":he("invalid",t);break;case"textarea":he("invalid",t),Yc(t,l.value,l.defaultValue,l.children),Oi(t)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||Qh(t.textContent,a)?(l.popover!=null&&(he("beforetoggle",t),he("toggle",t)),l.onScroll!=null&&he("scroll",t),l.onScrollEnd!=null&&he("scrollend",t),l.onClick!=null&&(t.onclick=Rr),t=!0):t=!1,t||tn(e)}function Af(e){for(st=e.return;st;)switch(st.tag){case 5:case 13:Zt=!1;return;case 27:case 3:Zt=!0;return;default:st=st.return}}function Nl(e){if(e!==st)return!1;if(!xe)return Af(e),xe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||co(e.type,e.memoizedProps)),a=!a),a&&Ue&&tn(e),Af(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(t===0){Ue=$t(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++;e=e.nextSibling}Ue=null}}else t===27?(t=Ue,Ua(e.type)?(e=mo,mo=null,Ue=e):Ue=t):Ue=st?$t(e.stateNode.nextSibling):null;return!0}function El(){Ue=st=null,xe=!1}function Of(){var e=en;return e!==null&&(pt===null?pt=e:pt.push.apply(pt,e),en=null),e}function Rl(e){en===null?en=[e]:en.push(e)}var Js=$(null),an=null,la=null;function Na(e,t,a){Q(Js,t._currentValue),t._currentValue=a}function ia(e){e._currentValue=Js.current,Z(Js)}function Fs(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 Ps(e,t,a,l){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var c=u.dependencies;if(c!==null){var g=u.child;c=c.firstContext;e:for(;c!==null;){var y=c;c=u;for(var N=0;N<t.length;N++)if(y.context===t[N]){c.lanes|=a,y=c.alternate,y!==null&&(y.lanes|=a),Fs(c.return,a,e),l||(g=null);break e}c=y.next}}else if(u.tag===18){if(g=u.return,g===null)throw Error(s(341));g.lanes|=a,c=g.alternate,c!==null&&(c.lanes|=a),Fs(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 wl(e,t,a,l){e=null;for(var u=t,c=!1;u!==null;){if(!c){if((u.flags&524288)!==0)c=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var g=u.alternate;if(g===null)throw Error(s(387));if(g=g.memoizedProps,g!==null){var y=u.type;bt(u.pendingProps.value,g.value)||(e!==null?e.push(y):e=[y])}}else if(u===gt.current){if(g=u.alternate,g===null)throw Error(s(387));g.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(ei):e=[ei])}u=u.return}e!==null&&Ps(t,e,a,l),t.flags|=262144}function Qi(e){for(e=e.firstContext;e!==null;){if(!bt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function nn(e){an=e,la=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function lt(e){return kf(an,e)}function Zi(e,t){return an===null&&nn(e),kf(e,t)}function kf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},la===null){if(e===null)throw Error(s(308));la=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else la=la.next=t;return a}var vy=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()})}},yy=i.unstable_scheduleCallback,by=i.unstable_NormalPriority,Qe={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ws(){return{controller:new vy,data:new Map,refCount:0}}function Tl(e){e.refCount--,e.refCount===0&&yy(by,function(){e.controller.abort()})}var Cl=null,Is=0,_n=0,Mn=null;function xy(e,t){if(Cl===null){var a=Cl=[];Is=0,_n=to(),Mn={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Is++,t.then(Lf,Lf),t}function Lf(){if(--Is===0&&Cl!==null){Mn!==null&&(Mn.status="fulfilled");var e=Cl;Cl=null,_n=0,Mn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Sy(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var u=0;u<a.length;u++)(0,a[u])(t)},function(u){for(l.status="rejected",l.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),l}var zf=_.S;_.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&xy(e,t),zf!==null&&zf(e,t)};var ln=$(null);function eu(){var e=ln.current;return e!==null?e:ke.pooledCache}function Ki(e,t){t===null?Q(ln,ln.current):Q(ln,t.pool)}function Df(){var e=eu();return e===null?null:{parent:Qe._currentValue,pool:e}}var jl=Error(s(460)),_f=Error(s(474)),Xi=Error(s(542)),tu={then:function(){}};function Mf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ji(){}function Uf(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Ji,Ji),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Hf(e),e;default:if(typeof t.status=="string")t.then(Ji,Ji);else{if(e=ke,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=l}},function(l){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Hf(e),e}throw Al=t,jl}}var Al=null;function Bf(){if(Al===null)throw Error(s(459));var e=Al;return Al=null,e}function Hf(e){if(e===jl||e===Xi)throw Error(s(483))}var Ea=!1;function au(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function nu(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 wa(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ne&2)!==0){var u=l.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),l.pending=t,t=$i(e),wf(e,null,a),t}return Vi(e,l,t,a),$i(e)}function Ol(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,kc(e,a)}}function lu(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 iu=!1;function kl(){if(iu){var e=Mn;if(e!==null)throw e}}function Ll(e,t,a,l){iu=!1;var u=e.updateQueue;Ea=!1;var c=u.firstBaseUpdate,g=u.lastBaseUpdate,y=u.shared.pending;if(y!==null){u.shared.pending=null;var N=y,O=N.next;N.next=null,g===null?c=O:g.next=O,g=N;var B=e.alternate;B!==null&&(B=B.updateQueue,y=B.lastBaseUpdate,y!==g&&(y===null?B.firstBaseUpdate=O:y.next=O,B.lastBaseUpdate=N))}if(c!==null){var q=u.baseState;g=0,B=O=N=null,y=c;do{var k=y.lane&-536870913,z=k!==y.lane;if(z?(ve&k)===k:(l&k)===k){k!==0&&k===_n&&(iu=!0),B!==null&&(B=B.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var le=e,te=y;k=t;var je=a;switch(te.tag){case 1:if(le=te.payload,typeof le=="function"){q=le.call(je,q,k);break e}q=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=te.payload,k=typeof le=="function"?le.call(je,q,k):le,k==null)break e;q=v({},q,k);break e;case 2:Ea=!0}}k=y.callback,k!==null&&(e.flags|=64,z&&(e.flags|=8192),z=u.callbacks,z===null?u.callbacks=[k]:z.push(k))}else z={lane:k,tag:y.tag,payload:y.payload,callback:y.callback,next:null},B===null?(O=B=z,N=q):B=B.next=z,g|=k;if(y=y.next,y===null){if(y=u.shared.pending,y===null)break;z=y,y=z.next,z.next=null,u.lastBaseUpdate=z,u.shared.pending=null}}while(!0);B===null&&(N=q),u.baseState=N,u.firstBaseUpdate=O,u.lastBaseUpdate=B,c===null&&(u.shared.lanes=0),za|=g,e.lanes=g,e.memoizedState=q}}function Vf(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function $f(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Vf(a[e],t)}var Un=$(null),Fi=$(0);function qf(e,t){e=da,Q(Fi,e),Q(Un,t),da=e|t.baseLanes}function ru(){Q(Fi,da),Q(Un,Un.current)}function su(){da=Fi.current,Z(Un),Z(Fi)}var Ta=0,ce=null,Te=null,$e=null,Pi=!1,Bn=!1,rn=!1,Wi=0,zl=0,Hn=null,Ny=0;function He(){throw Error(s(321))}function uu(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!bt(e[a],t[a]))return!1;return!0}function ou(e,t,a,l,u,c){return Ta=c,ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?wd:Td,rn=!1,c=a(l,u),rn=!1,Bn&&(c=Yf(t,a,l,u)),Gf(e),c}function Gf(e){_.H=lr;var t=Te!==null&&Te.next!==null;if(Ta=0,$e=Te=ce=null,Pi=!1,zl=0,Hn=null,t)throw Error(s(300));e===null||Fe||(e=e.dependencies,e!==null&&Qi(e)&&(Fe=!0))}function Yf(e,t,a,l){ce=e;var u=0;do{if(Bn&&(Hn=null),zl=0,Bn=!1,25<=u)throw Error(s(301));if(u+=1,$e=Te=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=Ay,c=t(a,l)}while(Bn);return c}function Ey(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?Dl(t):t,e=e.useState()[0],(Te!==null?Te.memoizedState:null)!==e&&(ce.flags|=1024),t}function cu(){var e=Wi!==0;return Wi=0,e}function fu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function du(e){if(Pi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Pi=!1}Ta=0,$e=Te=ce=null,Bn=!1,zl=Wi=0,Hn=null}function dt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $e===null?ce.memoizedState=$e=e:$e=$e.next=e,$e}function qe(){if(Te===null){var e=ce.alternate;e=e!==null?e.memoizedState:null}else e=Te.next;var t=$e===null?ce.memoizedState:$e.next;if(t!==null)$e=t,Te=e;else{if(e===null)throw ce.alternate===null?Error(s(467)):Error(s(310));Te=e,e={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},$e===null?ce.memoizedState=$e=e:$e=$e.next=e}return $e}function hu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Dl(e){var t=zl;return zl+=1,Hn===null&&(Hn=[]),e=Uf(Hn,e,t),t=ce,($e===null?t.memoizedState:$e.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?wd: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 pu(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=hu(),ce.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=ne;return t.index++,a}function ra(e,t){return typeof t=="function"?t(e):t}function er(e){var t=qe();return mu(t,Te,e)}function mu(e,t,a){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=a;var u=e.baseQueue,c=l.pending;if(c!==null){if(u!==null){var g=u.next;u.next=c.next,c.next=g}t.baseQueue=u=c,l.pending=null}if(c=e.baseState,u===null)e.memoizedState=c;else{t=u.next;var y=g=null,N=null,O=t,B=!1;do{var q=O.lane&-536870913;if(q!==O.lane?(ve&q)===q:(Ta&q)===q){var k=O.revertLane;if(k===0)N!==null&&(N=N.next={lane:0,revertLane:0,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),q===_n&&(B=!0);else if((Ta&k)===k){O=O.next,k===_n&&(B=!0);continue}else q={lane:0,revertLane:O.revertLane,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},N===null?(y=N=q,g=c):N=N.next=q,ce.lanes|=k,za|=k;q=O.action,rn&&a(c,q),c=O.hasEagerState?O.eagerState:a(c,q)}else k={lane:q,revertLane:O.revertLane,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},N===null?(y=N=k,g=c):N=N.next=k,ce.lanes|=q,za|=q;O=O.next}while(O!==null&&O!==t);if(N===null?g=c:N.next=y,!bt(c,e.memoizedState)&&(Fe=!0,B&&(a=Mn,a!==null)))throw a;e.memoizedState=c,e.baseState=g,e.baseQueue=N,l.lastRenderedState=c}return u===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function gu(e){var t=qe(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var l=a.dispatch,u=a.pending,c=t.memoizedState;if(u!==null){a.pending=null;var g=u=u.next;do c=e(c,g.action),g=g.next;while(g!==u);bt(c,t.memoizedState)||(Fe=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,l]}function Qf(e,t,a){var l=ce,u=qe(),c=xe;if(c){if(a===void 0)throw Error(s(407));a=a()}else a=t();var g=!bt((Te||u).memoizedState,a);g&&(u.memoizedState=a,Fe=!0),u=u.queue;var y=Xf.bind(null,l,u,e);if(_l(2048,8,y,[e]),u.getSnapshot!==t||g||$e!==null&&$e.memoizedState.tag&1){if(l.flags|=2048,Vn(9,tr(),Kf.bind(null,l,u,a,t),null),ke===null)throw Error(s(349));c||(Ta&124)!==0||Zf(l,t,a)}return a}function Zf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ce.updateQueue,t===null?(t=hu(),ce.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Kf(e,t,a,l){t.value=a,t.getSnapshot=l,Jf(t)&&Ff(e)}function Xf(e,t,a){return a(function(){Jf(t)&&Ff(e)})}function Jf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!bt(e,a)}catch{return!0}}function Ff(e){var t=kn(e,2);t!==null&&wt(t,e,2)}function vu(e){var t=dt();if(typeof e=="function"){var a=e;if(e=a(),rn){ba(!0);try{a()}finally{ba(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:e},t}function Pf(e,t,a,l){return e.baseState=a,mu(e,Te,typeof l=="function"?l:ra)}function Ry(e,t,a,l,u){if(nr(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){c.listeners.push(g)}};_.T!==null?a(!0):c.isTransition=!1,l(c),a=t.pending,a===null?(c.next=t.pending=c,Wf(t,c)):(c.next=a.next,t.pending=a.next=c)}}function Wf(e,t){var a=t.action,l=t.payload,u=e.state;if(t.isTransition){var c=_.T,g={};_.T=g;try{var y=a(u,l),N=_.S;N!==null&&N(g,y),If(e,t,y)}catch(O){yu(e,t,O)}finally{_.T=c}}else try{c=a(u,l),If(e,t,c)}catch(O){yu(e,t,O)}}function If(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){ed(e,t,l)},function(l){return yu(e,t,l)}):ed(e,t,a)}function ed(e,t,a){t.status="fulfilled",t.value=a,td(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Wf(e,a)))}function yu(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,td(t),t=t.next;while(t!==l)}e.action=null}function td(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ad(e,t){return t}function nd(e,t){if(xe){var a=ke.formState;if(a!==null){e:{var l=ce;if(xe){if(Ue){t:{for(var u=Ue,c=Zt;u.nodeType!==8;){if(!c){u=null;break t}if(u=$t(u.nextSibling),u===null){u=null;break t}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){Ue=$t(u.nextSibling),l=u.data==="F!";break e}}tn(l)}l=!1}l&&(t=a[0])}}return a=dt(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ad,lastRenderedState:t},a.queue=l,a=Nd.bind(null,ce,l),l.dispatch=a,l=vu(!1),c=Eu.bind(null,ce,!1,l.queue),l=dt(),u={state:t,dispatch:null,action:e,pending:null},l.queue=u,a=Ry.bind(null,ce,u,c,a),u.dispatch=a,l.memoizedState=e,[t,a,!1]}function ld(e){var t=qe();return id(t,Te,e)}function id(e,t,a){if(t=mu(e,t,ad)[0],e=er(ra)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Dl(t)}catch(g){throw g===jl?Xi:g}else l=t;t=qe();var u=t.queue,c=u.dispatch;return a!==t.memoizedState&&(ce.flags|=2048,Vn(9,tr(),wy.bind(null,u,a),null)),[l,c,e]}function wy(e,t){e.action=t}function rd(e){var t=qe(),a=Te;if(a!==null)return id(t,a,e);qe(),t=t.memoizedState,a=qe();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function Vn(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=ce.updateQueue,t===null&&(t=hu(),ce.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function tr(){return{destroy:void 0,resource:void 0}}function sd(){return qe().memoizedState}function ar(e,t,a,l){var u=dt();l=l===void 0?null:l,ce.flags|=e,u.memoizedState=Vn(1|t,tr(),a,l)}function _l(e,t,a,l){var u=qe();l=l===void 0?null:l;var c=u.memoizedState.inst;Te!==null&&l!==null&&uu(l,Te.memoizedState.deps)?u.memoizedState=Vn(t,c,a,l):(ce.flags|=e,u.memoizedState=Vn(1|t,c,a,l))}function ud(e,t){ar(8390656,8,e,t)}function od(e,t){_l(2048,8,e,t)}function cd(e,t){return _l(4,2,e,t)}function fd(e,t){return _l(4,4,e,t)}function dd(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function hd(e,t,a){a=a!=null?a.concat([e]):null,_l(4,4,dd.bind(null,t,e),a)}function bu(){}function pd(e,t){var a=qe();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&uu(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function md(e,t){var a=qe();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&uu(t,l[1]))return l[0];if(l=e(),rn){ba(!0);try{e()}finally{ba(!1)}}return a.memoizedState=[l,t],l}function xu(e,t,a){return a===void 0||(Ta&1073741824)!==0?e.memoizedState=t:(e.memoizedState=a,e=yh(),ce.lanes|=e,za|=e,a)}function gd(e,t,a,l){return bt(a,t)?a:Un.current!==null?(e=xu(e,a,l),bt(e,t)||(Fe=!0),e):(Ta&42)===0?(Fe=!0,e.memoizedState=a):(e=yh(),ce.lanes|=e,za|=e,t)}function vd(e,t,a,l,u){var c=Y.p;Y.p=c!==0&&8>c?c:8;var g=_.T,y={};_.T=y,Eu(e,!1,t,a);try{var N=u(),O=_.S;if(O!==null&&O(y,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var B=Sy(N,l);Ml(e,t,B,Rt(e))}else Ml(e,t,l,Rt(e))}catch(q){Ml(e,t,{then:function(){},status:"rejected",reason:q},Rt())}finally{Y.p=c,_.T=g}}function Ty(){}function Su(e,t,a,l){if(e.tag!==5)throw Error(s(476));var u=yd(e).queue;vd(e,u,t,W,a===null?Ty:function(){return bd(e),a(l)})}function yd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:W},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function bd(e){var t=yd(e).next.queue;Ml(e,t,{},Rt())}function Nu(){return lt(ei)}function xd(){return qe().memoizedState}function Sd(){return qe().memoizedState}function Cy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Rt();e=Ra(a);var l=wa(t,e,a);l!==null&&(wt(l,t,a),Ol(l,t,a)),t={cache:Ws()},e.payload=t;return}t=t.return}}function jy(e,t,a){var l=Rt();a={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},nr(e)?Ed(t,a):(a=qs(e,t,a,l),a!==null&&(wt(a,e,l),Rd(a,t,l)))}function Nd(e,t,a){var l=Rt();Ml(e,t,a,l)}function Ml(e,t,a,l){var u={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(nr(e))Ed(t,u);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var g=t.lastRenderedState,y=c(g,a);if(u.hasEagerState=!0,u.eagerState=y,bt(y,g))return Vi(e,t,u,0),ke===null&&Hi(),!1}catch{}finally{}if(a=qs(e,t,u,l),a!==null)return wt(a,e,l),Rd(a,t,l),!0}return!1}function Eu(e,t,a,l){if(l={lane:2,revertLane:to(),action:l,hasEagerState:!1,eagerState:null,next:null},nr(e)){if(t)throw Error(s(479))}else t=qs(e,a,l,2),t!==null&&wt(t,e,2)}function nr(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function Ed(e,t){Bn=Pi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Rd(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,kc(e,a)}}var lr={readContext:lt,use:Ii,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useLayoutEffect:He,useInsertionEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useSyncExternalStore:He,useId:He,useHostTransitionStatus:He,useFormState:He,useActionState:He,useOptimistic:He,useMemoCache:He,useCacheRefresh:He},wd={readContext:lt,use:Ii,useCallback:function(e,t){return dt().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:ud,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,ar(4194308,4,dd.bind(null,t,e),a)},useLayoutEffect:function(e,t){return ar(4194308,4,e,t)},useInsertionEffect:function(e,t){ar(4,2,e,t)},useMemo:function(e,t){var a=dt();t=t===void 0?null:t;var l=e();if(rn){ba(!0);try{e()}finally{ba(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=dt();if(a!==void 0){var u=a(t);if(rn){ba(!0);try{a(t)}finally{ba(!1)}}}else u=t;return l.memoizedState=l.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},l.queue=e,e=e.dispatch=jy.bind(null,ce,e),[l.memoizedState,e]},useRef:function(e){var t=dt();return e={current:e},t.memoizedState=e},useState:function(e){e=vu(e);var t=e.queue,a=Nd.bind(null,ce,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:bu,useDeferredValue:function(e,t){var a=dt();return xu(a,e,t)},useTransition:function(){var e=vu(!1);return e=vd.bind(null,ce,e.queue,!0,!1),dt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=ce,u=dt();if(xe){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),ke===null)throw Error(s(349));(ve&124)!==0||Zf(l,t,a)}u.memoizedState=a;var c={value:a,getSnapshot:t};return u.queue=c,ud(Xf.bind(null,l,c,e),[e]),l.flags|=2048,Vn(9,tr(),Kf.bind(null,l,c,a,t),null),a},useId:function(){var e=dt(),t=ke.identifierPrefix;if(xe){var a=na,l=aa;a=(l&~(1<<32-yt(l)-1)).toString(32)+a,t="«"+t+"R"+a,a=Wi++,0<a&&(t+="H"+a.toString(32)),t+="»"}else a=Ny++,t="«"+t+"r"+a.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Nu,useFormState:nd,useActionState:nd,useOptimistic:function(e){var t=dt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Eu.bind(null,ce,!0,a),a.dispatch=t,[e,t]},useMemoCache:pu,useCacheRefresh:function(){return dt().memoizedState=Cy.bind(null,ce)}},Td={readContext:lt,use:Ii,useCallback:pd,useContext:lt,useEffect:od,useImperativeHandle:hd,useInsertionEffect:cd,useLayoutEffect:fd,useMemo:md,useReducer:er,useRef:sd,useState:function(){return er(ra)},useDebugValue:bu,useDeferredValue:function(e,t){var a=qe();return gd(a,Te.memoizedState,e,t)},useTransition:function(){var e=er(ra)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:Dl(e),t]},useSyncExternalStore:Qf,useId:xd,useHostTransitionStatus:Nu,useFormState:ld,useActionState:ld,useOptimistic:function(e,t){var a=qe();return Pf(a,Te,e,t)},useMemoCache:pu,useCacheRefresh:Sd},Ay={readContext:lt,use:Ii,useCallback:pd,useContext:lt,useEffect:od,useImperativeHandle:hd,useInsertionEffect:cd,useLayoutEffect:fd,useMemo:md,useReducer:gu,useRef:sd,useState:function(){return gu(ra)},useDebugValue:bu,useDeferredValue:function(e,t){var a=qe();return Te===null?xu(a,e,t):gd(a,Te.memoizedState,e,t)},useTransition:function(){var e=gu(ra)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:Dl(e),t]},useSyncExternalStore:Qf,useId:xd,useHostTransitionStatus:Nu,useFormState:rd,useActionState:rd,useOptimistic:function(e,t){var a=qe();return Te!==null?Pf(a,Te,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:pu,useCacheRefresh:Sd},$n=null,Ul=0;function ir(e){var t=Ul;return Ul+=1,$n===null&&($n=[]),Uf($n,e,t)}function Bl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function rr(e,t){throw t.$$typeof===S?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Cd(e){var t=e._init;return t(e._payload)}function jd(e){function t(j,T){if(e){var A=j.deletions;A===null?(j.deletions=[T],j.flags|=16):A.push(T)}}function a(j,T){if(!e)return null;for(;T!==null;)t(j,T),T=T.sibling;return null}function l(j){for(var T=new Map;j!==null;)j.key!==null?T.set(j.key,j):T.set(j.index,j),j=j.sibling;return T}function u(j,T){return j=ta(j,T),j.index=0,j.sibling=null,j}function c(j,T,A){return j.index=A,e?(A=j.alternate,A!==null?(A=A.index,A<T?(j.flags|=67108866,T):A):(j.flags|=67108866,T)):(j.flags|=1048576,T)}function g(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function y(j,T,A,H){return T===null||T.tag!==6?(T=Ys(A,j.mode,H),T.return=j,T):(T=u(T,A),T.return=j,T)}function N(j,T,A,H){var J=A.type;return J===E?B(j,T,A.props.children,H,A.key):T!==null&&(T.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===ee&&Cd(J)===T.type)?(T=u(T,A.props),Bl(T,A),T.return=j,T):(T=qi(A.type,A.key,A.props,null,j.mode,H),Bl(T,A),T.return=j,T)}function O(j,T,A,H){return T===null||T.tag!==4||T.stateNode.containerInfo!==A.containerInfo||T.stateNode.implementation!==A.implementation?(T=Qs(A,j.mode,H),T.return=j,T):(T=u(T,A.children||[]),T.return=j,T)}function B(j,T,A,H,J){return T===null||T.tag!==7?(T=Pa(A,j.mode,H,J),T.return=j,T):(T=u(T,A),T.return=j,T)}function q(j,T,A){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=Ys(""+T,j.mode,A),T.return=j,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case x:return A=qi(T.type,T.key,T.props,null,j.mode,A),Bl(A,T),A.return=j,A;case C:return T=Qs(T,j.mode,A),T.return=j,T;case ee:var H=T._init;return T=H(T._payload),q(j,T,A)}if(Ye(T)||Ke(T))return T=Pa(T,j.mode,A,null),T.return=j,T;if(typeof T.then=="function")return q(j,ir(T),A);if(T.$$typeof===G)return q(j,Zi(j,T),A);rr(j,T)}return null}function k(j,T,A,H){var J=T!==null?T.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return J!==null?null:y(j,T,""+A,H);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case x:return A.key===J?N(j,T,A,H):null;case C:return A.key===J?O(j,T,A,H):null;case ee:return J=A._init,A=J(A._payload),k(j,T,A,H)}if(Ye(A)||Ke(A))return J!==null?null:B(j,T,A,H,null);if(typeof A.then=="function")return k(j,T,ir(A),H);if(A.$$typeof===G)return k(j,T,Zi(j,A),H);rr(j,A)}return null}function z(j,T,A,H,J){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return j=j.get(A)||null,y(T,j,""+H,J);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case x:return j=j.get(H.key===null?A:H.key)||null,N(T,j,H,J);case C:return j=j.get(H.key===null?A:H.key)||null,O(T,j,H,J);case ee:var fe=H._init;return H=fe(H._payload),z(j,T,A,H,J)}if(Ye(H)||Ke(H))return j=j.get(A)||null,B(T,j,H,J,null);if(typeof H.then=="function")return z(j,T,A,ir(H),J);if(H.$$typeof===G)return z(j,T,A,Zi(T,H),J);rr(T,H)}return null}function le(j,T,A,H){for(var J=null,fe=null,P=T,ae=T=0,We=null;P!==null&&ae<A.length;ae++){P.index>ae?(We=P,P=null):We=P.sibling;var be=k(j,P,A[ae],H);if(be===null){P===null&&(P=We);break}e&&P&&be.alternate===null&&t(j,P),T=c(be,T,ae),fe===null?J=be:fe.sibling=be,fe=be,P=We}if(ae===A.length)return a(j,P),xe&&Ia(j,ae),J;if(P===null){for(;ae<A.length;ae++)P=q(j,A[ae],H),P!==null&&(T=c(P,T,ae),fe===null?J=P:fe.sibling=P,fe=P);return xe&&Ia(j,ae),J}for(P=l(P);ae<A.length;ae++)We=z(P,j,ae,A[ae],H),We!==null&&(e&&We.alternate!==null&&P.delete(We.key===null?ae:We.key),T=c(We,T,ae),fe===null?J=We:fe.sibling=We,fe=We);return e&&P.forEach(function(qa){return t(j,qa)}),xe&&Ia(j,ae),J}function te(j,T,A,H){if(A==null)throw Error(s(151));for(var J=null,fe=null,P=T,ae=T=0,We=null,be=A.next();P!==null&&!be.done;ae++,be=A.next()){P.index>ae?(We=P,P=null):We=P.sibling;var qa=k(j,P,be.value,H);if(qa===null){P===null&&(P=We);break}e&&P&&qa.alternate===null&&t(j,P),T=c(qa,T,ae),fe===null?J=qa:fe.sibling=qa,fe=qa,P=We}if(be.done)return a(j,P),xe&&Ia(j,ae),J;if(P===null){for(;!be.done;ae++,be=A.next())be=q(j,be.value,H),be!==null&&(T=c(be,T,ae),fe===null?J=be:fe.sibling=be,fe=be);return xe&&Ia(j,ae),J}for(P=l(P);!be.done;ae++,be=A.next())be=z(P,j,ae,be.value,H),be!==null&&(e&&be.alternate!==null&&P.delete(be.key===null?ae:be.key),T=c(be,T,ae),fe===null?J=be:fe.sibling=be,fe=be);return e&&P.forEach(function(O0){return t(j,O0)}),xe&&Ia(j,ae),J}function je(j,T,A,H){if(typeof A=="object"&&A!==null&&A.type===E&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case x:e:{for(var J=A.key;T!==null;){if(T.key===J){if(J=A.type,J===E){if(T.tag===7){a(j,T.sibling),H=u(T,A.props.children),H.return=j,j=H;break e}}else if(T.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===ee&&Cd(J)===T.type){a(j,T.sibling),H=u(T,A.props),Bl(H,A),H.return=j,j=H;break e}a(j,T);break}else t(j,T);T=T.sibling}A.type===E?(H=Pa(A.props.children,j.mode,H,A.key),H.return=j,j=H):(H=qi(A.type,A.key,A.props,null,j.mode,H),Bl(H,A),H.return=j,j=H)}return g(j);case C:e:{for(J=A.key;T!==null;){if(T.key===J)if(T.tag===4&&T.stateNode.containerInfo===A.containerInfo&&T.stateNode.implementation===A.implementation){a(j,T.sibling),H=u(T,A.children||[]),H.return=j,j=H;break e}else{a(j,T);break}else t(j,T);T=T.sibling}H=Qs(A,j.mode,H),H.return=j,j=H}return g(j);case ee:return J=A._init,A=J(A._payload),je(j,T,A,H)}if(Ye(A))return le(j,T,A,H);if(Ke(A)){if(J=Ke(A),typeof J!="function")throw Error(s(150));return A=J.call(A),te(j,T,A,H)}if(typeof A.then=="function")return je(j,T,ir(A),H);if(A.$$typeof===G)return je(j,T,Zi(j,A),H);rr(j,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,T!==null&&T.tag===6?(a(j,T.sibling),H=u(T,A),H.return=j,j=H):(a(j,T),H=Ys(A,j.mode,H),H.return=j,j=H),g(j)):a(j,T)}return function(j,T,A,H){try{Ul=0;var J=je(j,T,A,H);return $n=null,J}catch(P){if(P===jl||P===Xi)throw P;var fe=xt(29,P,null,j.mode);return fe.lanes=H,fe.return=j,fe}finally{}}}var qn=jd(!0),Ad=jd(!1),Dt=$(null),Kt=null;function Ca(e){var t=e.alternate;Q(Ze,Ze.current&1),Q(Dt,e),Kt===null&&(t===null||Un.current!==null||t.memoizedState!==null)&&(Kt=e)}function Od(e){if(e.tag===22){if(Q(Ze,Ze.current),Q(Dt,e),Kt===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Kt=e)}}else ja()}function ja(){Q(Ze,Ze.current),Q(Dt,Dt.current)}function sa(e){Z(Dt),Kt===e&&(Kt=null),Z(Ze)}var Ze=$(0);function sr(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||po(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 Ru(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 wu={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Rt(),u=Ra(l);u.payload=t,a!=null&&(u.callback=a),t=wa(e,u,l),t!==null&&(wt(t,e,l),Ol(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Rt(),u=Ra(l);u.tag=1,u.payload=t,a!=null&&(u.callback=a),t=wa(e,u,l),t!==null&&(wt(t,e,l),Ol(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Rt(),l=Ra(a);l.tag=2,t!=null&&(l.callback=t),t=wa(e,l,a),t!==null&&(wt(t,e,a),Ol(t,e,a))}};function kd(e,t,a,l,u,c,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,c,g):t.prototype&&t.prototype.isPureReactComponent?!xl(a,l)||!xl(u,c):!0}function Ld(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&wu.enqueueReplaceState(t,t.state,null)}function sn(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=v({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}var ur=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function zd(e){ur(e)}function Dd(e){console.error(e)}function _d(e){ur(e)}function or(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Md(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Tu(e,t,a){return a=Ra(a),a.tag=3,a.payload={element:null},a.callback=function(){or(e,t)},a}function Ud(e){return e=Ra(e),e.tag=3,e}function Bd(e,t,a,l){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var c=l.value;e.payload=function(){return u(c)},e.callback=function(){Md(t,a,l)}}var g=a.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){Md(t,a,l),typeof u!="function"&&(Da===null?Da=new Set([this]):Da.add(this));var y=l.stack;this.componentDidCatch(l.value,{componentStack:y!==null?y:""})})}function Oy(e,t,a,l,u){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&wl(t,a,u,!0),a=Dt.current,a!==null){switch(a.tag){case 13:return Kt===null?Fu():a.alternate===null&&Be===0&&(Be=3),a.flags&=-257,a.flags|=65536,a.lanes=u,l===tu?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Wu(e,l,u)),!1;case 22:return a.flags|=65536,l===tu?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)),Wu(e,l,u)),!1}throw Error(s(435,a.tag))}return Wu(e,l,u),Fu(),!1}if(xe)return t=Dt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,l!==Xs&&(e=Error(s(422),{cause:l}),Rl(Ot(e,a)))):(l!==Xs&&(t=Error(s(423),{cause:l}),Rl(Ot(t,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,l=Ot(l,a),u=Tu(e.stateNode,l,u),lu(e,u),Be!==4&&(Be=2)),!1;var c=Error(s(520),{cause:l});if(c=Ot(c,a),Ql===null?Ql=[c]:Ql.push(c),Be!==4&&(Be=2),t===null)return!0;l=Ot(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=Tu(a.stateNode,l,e),lu(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Da===null||!Da.has(c))))return a.flags|=65536,u&=-u,a.lanes|=u,u=Ud(u),Bd(u,e,a,l),lu(a,u),!1}a=a.return}while(a!==null);return!1}var Hd=Error(s(461)),Fe=!1;function Ie(e,t,a,l){t.child=e===null?Ad(t,null,a,l):qn(t,e.child,a,l)}function Vd(e,t,a,l,u){a=a.render;var c=t.ref;if("ref"in l){var g={};for(var y in l)y!=="ref"&&(g[y]=l[y])}else g=l;return nn(t),l=ou(e,t,a,g,c,u),y=cu(),e!==null&&!Fe?(fu(e,t,u),ua(e,t,u)):(xe&&y&&Zs(t),t.flags|=1,Ie(e,t,l,u),t.child)}function $d(e,t,a,l,u){if(e===null){var c=a.type;return typeof c=="function"&&!Gs(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,qd(e,t,c,l,u)):(e=qi(a.type,null,l,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Du(e,u)){var g=c.memoizedProps;if(a=a.compare,a=a!==null?a:xl,a(g,l)&&e.ref===t.ref)return ua(e,t,u)}return t.flags|=1,e=ta(c,l),e.ref=t.ref,e.return=t,t.child=e}function qd(e,t,a,l,u){if(e!==null){var c=e.memoizedProps;if(xl(c,l)&&e.ref===t.ref)if(Fe=!1,t.pendingProps=l=c,Du(e,u))(e.flags&131072)!==0&&(Fe=!0);else return t.lanes=e.lanes,ua(e,t,u)}return Cu(e,t,a,l,u)}function Gd(e,t,a){var l=t.pendingProps,u=l.children,c=e!==null?e.memoizedState:null;if(l.mode==="hidden"){if((t.flags&128)!==0){if(l=c!==null?c.baseLanes|a:a,e!==null){for(u=t.child=e.child,c=0;u!==null;)c=c|u.lanes|u.childLanes,u=u.sibling;t.childLanes=c&~l}else t.childLanes=0,t.child=null;return Yd(e,t,l,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ki(t,c!==null?c.cachePool:null),c!==null?qf(t,c):ru(),Od(t);else return t.lanes=t.childLanes=536870912,Yd(e,t,c!==null?c.baseLanes|a:a,a)}else c!==null?(Ki(t,c.cachePool),qf(t,c),ja(),t.memoizedState=null):(e!==null&&Ki(t,null),ru(),ja());return Ie(e,t,u,a),t.child}function Yd(e,t,a,l){var u=eu();return u=u===null?null:{parent:Qe._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&Ki(t,null),ru(),Od(t),e!==null&&wl(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 Cu(e,t,a,l,u){return nn(t),a=ou(e,t,a,l,void 0,u),l=cu(),e!==null&&!Fe?(fu(e,t,u),ua(e,t,u)):(xe&&l&&Zs(t),t.flags|=1,Ie(e,t,a,u),t.child)}function Qd(e,t,a,l,u,c){return nn(t),t.updateQueue=null,a=Yf(t,l,a,u),Gf(e),l=cu(),e!==null&&!Fe?(fu(e,t,c),ua(e,t,c)):(xe&&l&&Zs(t),t.flags|=1,Ie(e,t,a,c),t.child)}function Zd(e,t,a,l,u){if(nn(t),t.stateNode===null){var c=Ln,g=a.contextType;typeof g=="object"&&g!==null&&(c=lt(g)),c=new a(l,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=wu,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=l,c.state=t.memoizedState,c.refs={},au(t),g=a.contextType,c.context=typeof g=="object"&&g!==null?lt(g):Ln,c.state=t.memoizedState,g=a.getDerivedStateFromProps,typeof g=="function"&&(Ru(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&&wu.enqueueReplaceState(c,c.state,null),Ll(t,l,c,u),kl(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){c=t.stateNode;var y=t.memoizedProps,N=sn(a,y);c.props=N;var O=c.context,B=a.contextType;g=Ln,typeof B=="object"&&B!==null&&(g=lt(B));var q=a.getDerivedStateFromProps;B=typeof q=="function"||typeof c.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,B||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(y||O!==g)&&Ld(t,c,l,g),Ea=!1;var k=t.memoizedState;c.state=k,Ll(t,l,c,u),kl(),O=t.memoizedState,y||k!==O||Ea?(typeof q=="function"&&(Ru(t,a,q,l),O=t.memoizedState),(N=Ea||kd(t,a,N,l,k,O,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=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,nu(e,t),g=t.memoizedProps,B=sn(a,g),c.props=B,q=t.pendingProps,k=c.context,O=a.contextType,N=Ln,typeof O=="object"&&O!==null&&(N=lt(O)),y=a.getDerivedStateFromProps,(O=typeof y=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g!==q||k!==N)&&Ld(t,c,l,N),Ea=!1,k=t.memoizedState,c.state=k,Ll(t,l,c,u),kl();var z=t.memoizedState;g!==q||k!==z||Ea||e!==null&&e.dependencies!==null&&Qi(e.dependencies)?(typeof y=="function"&&(Ru(t,a,y,l),z=t.memoizedState),(B=Ea||kd(t,a,B,l,k,z,N)||e!==null&&e.dependencies!==null&&Qi(e.dependencies))?(O||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,z,N),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,z,N)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=z),c.props=l,c.state=z,c.context=N,l=B):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),l=!1)}return c=l,cr(e,t),l=(t.flags&128)!==0,c||l?(c=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&l?(t.child=qn(t,e.child,null,u),t.child=qn(t,null,a,u)):Ie(e,t,a,u),t.memoizedState=c.state,e=t.child):e=ua(e,t,u),e}function Kd(e,t,a,l){return El(),t.flags|=256,Ie(e,t,a,l),t.child}var ju={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Au(e){return{baseLanes:e,cachePool:Df()}}function Ou(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=_t),e}function Xd(e,t,a){var l=t.pendingProps,u=!1,c=(t.flags&128)!==0,g;if((g=c)||(g=e!==null&&e.memoizedState===null?!1:(Ze.current&2)!==0),g&&(u=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(xe){if(u?Ca(t):ja(),xe){var y=Ue,N;if(N=y){e:{for(N=y,y=Zt;N.nodeType!==8;){if(!y){y=null;break e}if(N=$t(N.nextSibling),N===null){y=null;break e}}y=N}y!==null?(t.memoizedState={dehydrated:y,treeContext:Wa!==null?{id:aa,overflow:na}:null,retryLane:536870912,hydrationErrors:null},N=xt(18,null,null,0),N.stateNode=y,N.return=t,t.child=N,st=t,Ue=null,N=!0):N=!1}N||tn(t)}if(y=t.memoizedState,y!==null&&(y=y.dehydrated,y!==null))return po(y)?t.lanes=32:t.lanes=536870912,null;sa(t)}return y=l.children,l=l.fallback,u?(ja(),u=t.mode,y=fr({mode:"hidden",children:y},u),l=Pa(l,u,a,null),y.return=t,l.return=t,y.sibling=l,t.child=y,u=t.child,u.memoizedState=Au(a),u.childLanes=Ou(e,g,a),t.memoizedState=ju,l):(Ca(t),ku(t,y))}if(N=e.memoizedState,N!==null&&(y=N.dehydrated,y!==null)){if(c)t.flags&256?(Ca(t),t.flags&=-257,t=Lu(e,t,a)):t.memoizedState!==null?(ja(),t.child=e.child,t.flags|=128,t=null):(ja(),u=l.fallback,y=t.mode,l=fr({mode:"visible",children:l.children},y),u=Pa(u,y,a,null),u.flags|=2,l.return=t,u.return=t,l.sibling=u,t.child=l,qn(t,e.child,null,a),l=t.child,l.memoizedState=Au(a),l.childLanes=Ou(e,g,a),t.memoizedState=ju,t=u);else if(Ca(t),po(y)){if(g=y.nextSibling&&y.nextSibling.dataset,g)var O=g.dgst;g=O,l=Error(s(419)),l.stack="",l.digest=g,Rl({value:l,source:null,stack:null}),t=Lu(e,t,a)}else if(Fe||wl(e,t,a,!1),g=(a&e.childLanes)!==0,Fe||g){if(g=ke,g!==null&&(l=a&-a,l=(l&42)!==0?1:ps(l),l=(l&(g.suspendedLanes|a))!==0?0:l,l!==0&&l!==N.retryLane))throw N.retryLane=l,kn(e,l),wt(g,e,l),Hd;y.data==="$?"||Fu(),t=Lu(e,t,a)}else y.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=N.treeContext,Ue=$t(y.nextSibling),st=t,xe=!0,en=null,Zt=!1,e!==null&&(Lt[zt++]=aa,Lt[zt++]=na,Lt[zt++]=Wa,aa=e.id,na=e.overflow,Wa=t),t=ku(t,l.children),t.flags|=4096);return t}return u?(ja(),u=l.fallback,y=t.mode,N=e.child,O=N.sibling,l=ta(N,{mode:"hidden",children:l.children}),l.subtreeFlags=N.subtreeFlags&65011712,O!==null?u=ta(O,u):(u=Pa(u,y,a,null),u.flags|=2),u.return=t,l.return=t,l.sibling=u,t.child=l,l=u,u=t.child,y=e.child.memoizedState,y===null?y=Au(a):(N=y.cachePool,N!==null?(O=Qe._currentValue,N=N.parent!==O?{parent:O,pool:O}:N):N=Df(),y={baseLanes:y.baseLanes|a,cachePool:N}),u.memoizedState=y,u.childLanes=Ou(e,g,a),t.memoizedState=ju,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 ku(e,t){return t=fr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function fr(e,t){return e=xt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Lu(e,t,a){return qn(t,e.child,null,a),e=ku(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Jd(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Fs(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 Fd(e,t,a){var l=t.pendingProps,u=l.revealOrder,c=l.tail;if(Ie(e,t,l.children,a),l=Ze.current,(l&2)!==0)l=l&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Jd(e,a,t);else if(e.tag===19)Jd(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}switch(Q(Ze,l),u){case"forwards":for(a=t.child,u=null;a!==null;)e=a.alternate,e!==null&&sr(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=t.child,t.child=null):(u=a.sibling,a.sibling=null),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),za|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(wl(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 Du(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Qi(e)))}function ky(e,t,a){switch(t.tag){case 3:ze(t,t.stateNode.containerInfo),Na(t,Qe,e.memoizedState.cache),El();break;case 27:case 5:os(t);break;case 4:ze(t,t.stateNode.containerInfo);break;case 10:Na(t,t.type,t.memoizedProps.value);break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Ca(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Xd(e,t,a):(Ca(t),e=ua(e,t,a),e!==null?e.sibling:null);Ca(t);break;case 19:var u=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(wl(e,t,a,!1),l=(a&t.childLanes)!==0),u){if(l)return Fd(e,t,a);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),Q(Ze,Ze.current),l)break;return null;case 22:case 23:return t.lanes=0,Gd(e,t,a);case 24:Na(t,Qe,e.memoizedState.cache)}return ua(e,t,a)}function Pd(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Fe=!0;else{if(!Du(e,a)&&(t.flags&128)===0)return Fe=!1,ky(e,t,a);Fe=(e.flags&131072)!==0}else Fe=!1,xe&&(t.flags&1048576)!==0&&Cf(t,Yi,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var l=t.elementType,u=l._init;if(l=u(l._payload),t.type=l,typeof l=="function")Gs(l)?(e=sn(l,e),t.tag=1,t=Zd(null,t,l,e,a)):(t.tag=0,t=Cu(null,t,l,e,a));else{if(l!=null){if(u=l.$$typeof,u===X){t.tag=11,t=Vd(null,t,l,e,a);break e}else if(u===re){t.tag=14,t=$d(null,t,l,e,a);break e}}throw t=Ge(l)||l,Error(s(306,t,""))}}return t;case 0:return Cu(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,u=sn(l,t.pendingProps),Zd(e,t,l,u,a);case 3:e:{if(ze(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var c=t.memoizedState;u=c.element,nu(e,t),Ll(t,l,null,a);var g=t.memoizedState;if(l=g.cache,Na(t,Qe,l),l!==c.cache&&Ps(t,[Qe],a,!0),kl(),l=g.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Kd(e,t,l,a);break e}else if(l!==u){u=Ot(Error(s(424)),t),Rl(u),t=Kd(e,t,l,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ue=$t(e.firstChild),st=t,xe=!0,en=null,Zt=!0,a=Ad(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(El(),l===u){t=ua(e,t,a);break e}Ie(e,t,l,a)}t=t.child}return t;case 26:return cr(e,t),e===null?(a=tp(t.type,null,t.pendingProps,null))?t.memoizedState=a:xe||(a=t.type,e=t.pendingProps,l=wr(ue.current).createElement(a),l[nt]=t,l[ct]=e,tt(l,a,e),Je(l),t.stateNode=l):t.memoizedState=tp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return os(t),e===null&&xe&&(l=t.stateNode=Wh(t.type,t.pendingProps,ue.current),st=t,Zt=!0,u=Ue,Ua(t.type)?(mo=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&&xe&&((u=l=Ue)&&(l=i0(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)),os(t),u=t.type,c=t.pendingProps,g=e!==null?e.memoizedProps:null,l=c.children,co(u,c)?l=null:g!==null&&co(u,g)&&(t.flags|=32),t.memoizedState!==null&&(u=ou(e,t,Ey,null,null,a),ei._currentValue=u),cr(e,t),Ie(e,t,l,a),t.child;case 6:return e===null&&xe&&((e=a=Ue)&&(a=r0(a,t.pendingProps,Zt),a!==null?(t.stateNode=a,st=t,Ue=null,e=!0):e=!1),e||tn(t)),null;case 13:return Xd(e,t,a);case 4:return ze(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=qn(t,null,l,a):Ie(e,t,l,a),t.child;case 11:return Vd(e,t,t.type,t.pendingProps,a);case 7:return Ie(e,t,t.pendingProps,a),t.child;case 8:return Ie(e,t,t.pendingProps.children,a),t.child;case 12:return Ie(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,Na(t,t.type,l.value),Ie(e,t,l.children,a),t.child;case 9:return u=t.type._context,l=t.pendingProps.children,nn(t),u=lt(u),l=l(u),t.flags|=1,Ie(e,t,l,a),t.child;case 14:return $d(e,t,t.type,t.pendingProps,a);case 15:return qd(e,t,t.type,t.pendingProps,a);case 19:return Fd(e,t,a);case 31:return l=t.pendingProps,a=t.mode,l={mode:l.mode,children:l.children},e===null?(a=fr(l,a),a.ref=t.ref,t.child=a,a.return=t,t=a):(a=ta(e.child,l),a.ref=t.ref,t.child=a,a.return=t,t=a),t;case 22:return Gd(e,t,a);case 24:return nn(t),l=lt(Qe),e===null?(u=eu(),u===null&&(u=ke,c=Ws(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=a),u=c),t.memoizedState={parent:l,cache:u},au(t),Na(t,Qe,u)):((e.lanes&a)!==0&&(nu(e,t),Ll(t,null,null,a),kl()),u=e.memoizedState,c=t.memoizedState,u.parent!==l?(u={parent:l,cache:l},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Na(t,Qe,l)):(l=c.cache,Na(t,Qe,l),l!==u.cache&&Ps(t,[Qe],a,!0))),Ie(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function oa(e){e.flags|=4}function Wd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!rp(t)){if(t=Dt.current,t!==null&&((ve&4194048)===ve?Kt!==null:(ve&62914560)!==ve&&(ve&536870912)===0||t!==Kt))throw Al=tu,_f;e.flags|=8192}}function dr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ac():536870912,e.lanes|=t,Zn|=t)}function Hl(e,t){if(!xe)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 Ly(e,t,a){var l=t.pendingProps;switch(Ks(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Me(t),null;case 1:return Me(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ia(Qe),ya(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Nl(t)?oa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Of())),Me(t),null;case 26:return a=t.memoizedState,e===null?(oa(t),a!==null?(Me(t),Wd(t,a)):(Me(t),t.flags&=-16777217)):a?a!==e.memoizedState?(oa(t),Me(t),Wd(t,a)):(Me(t),t.flags&=-16777217):(e.memoizedProps!==l&&oa(t),Me(t),t.flags&=-16777217),null;case 27:Ei(t),a=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 Me(t),null}e=I.current,Nl(t)?jf(t):(e=Wh(u,l,a),t.stateNode=e,oa(t))}return Me(t),null;case 5:if(Ei(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&oa(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Me(t),null}if(e=I.current,Nl(t))jf(t);else{switch(u=wr(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 Me(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&oa(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=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||Qh(e.nodeValue,a)),e||tn(t)}else e=wr(e).createTextNode(l),e[nt]=t,t.stateNode=e}return Me(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Nl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!u)throw Error(s(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(s(317));u[nt]=t}else El(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Me(t),u=!1}else u=Of(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(sa(t),t):(sa(t),null)}if(sa(t),(t.flags&128)!==0)return t.lanes=a,t;if(a=l!==null,e=e!==null&&e.memoizedState!==null,a){l=t.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool);var c=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==u&&(l.flags|=2048)}return a!==e&&a&&(t.child.flags|=8192),dr(t,t.updateQueue),Me(t),null;case 4:return ya(),e===null&&io(t.stateNode.containerInfo),Me(t),null;case 10:return ia(t.type),Me(t),null;case 19:if(Z(Ze),u=t.memoizedState,u===null)return Me(t),null;if(l=(t.flags&128)!==0,c=u.rendering,c===null)if(l)Hl(u,!1);else{if(Be!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=sr(e),c!==null){for(t.flags|=128,Hl(u,!1),e=c.updateQueue,t.updateQueue=e,dr(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)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&&!xe)return Me(t),null}else 2*Qt()-u.renderingStartTime>mr&&a!==536870912&&(t.flags|=128,l=!0,Hl(u,!1),t.lanes=4194304);u.isBackwards?(c.sibling=t.child,t.child=c):(e=u.last,e!==null?e.sibling=c:t.child=c,u.last=c)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Qt(),t.sibling=null,e=Ze.current,Q(Ze,l?e&1|2:e&1),t):(Me(t),null);case 22:case 23:return sa(t),su(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Me(t),t.subtreeFlags&6&&(t.flags|=8192)):Me(t),a=t.updateQueue,a!==null&&dr(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&Z(ln),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ia(Qe),Me(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function zy(e,t){switch(Ks(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ia(Qe),ya(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ei(t),null;case 13:if(sa(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));El()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Z(Ze),null;case 4:return ya(),null;case 10:return ia(t.type),null;case 22:case 23:return sa(t),su(),e!==null&&Z(ln),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ia(Qe),null;case 25:return null;default:return null}}function Id(e,t){switch(Ks(t),t.tag){case 3:ia(Qe),ya();break;case 26:case 27:case 5:Ei(t);break;case 4:ya();break;case 13:sa(t);break;case 19:Z(Ze);break;case 10:ia(t.type);break;case 22:case 23:sa(t),su(),e!==null&&Z(ln);break;case 24:ia(Qe)}}function Vl(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var u=l.next;a=u;do{if((a.tag&e)===e){l=void 0;var c=a.create,g=a.inst;l=c(),g.destroy=l}a=a.next}while(a!==u)}}catch(y){Ae(t,t.return,y)}}function Aa(e,t,a){try{var l=t.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var c=u.next;l=c;do{if((l.tag&e)===e){var g=l.inst,y=g.destroy;if(y!==void 0){g.destroy=void 0,u=t;var N=a,O=y;try{O()}catch(B){Ae(u,N,B)}}}l=l.next}while(l!==c)}}catch(B){Ae(t,t.return,B)}}function eh(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{$f(t,a)}catch(l){Ae(e,e.return,l)}}}function th(e,t,a){a.props=sn(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Ae(e,t,l)}}function $l(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(u){Ae(e,t,u)}}function Xt(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(u){Ae(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){Ae(e,t,u)}else a.current=null}function ah(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(u){Ae(e,e.return,u)}}function _u(e,t,a){try{var l=e.stateNode;e0(l,e.type,a,t),l[ct]=t}catch(u){Ae(e,e.return,u)}}function nh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ua(e.type)||e.tag===4}function Mu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||nh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ua(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Uu(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(Uu(e,t,a),e=e.sibling;e!==null;)Uu(e,t,a),e=e.sibling}function hr(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Ua(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(hr(e,t,a),e=e.sibling;e!==null;)hr(e,t,a),e=e.sibling}function lh(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);tt(t,l,a),t[nt]=e,t[ct]=a}catch(c){Ae(e,e.return,c)}}var ca=!1,Ve=!1,Bu=!1,ih=typeof WeakSet=="function"?WeakSet:Set,Pe=null;function Dy(e,t){if(e=e.containerInfo,uo=kr,e=gf(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,y=-1,N=-1,O=0,B=0,q=e,k=null;t:for(;;){for(var z;q!==a||u!==0&&q.nodeType!==3||(y=g+u),q!==c||l!==0&&q.nodeType!==3||(N=g+l),q.nodeType===3&&(g+=q.nodeValue.length),(z=q.firstChild)!==null;)k=q,q=z;for(;;){if(q===e)break t;if(k===a&&++O===u&&(y=g),k===c&&++B===l&&(N=g),(z=q.nextSibling)!==null)break;q=k,k=q.parentNode}q=z}a=y===-1||N===-1?null:{start:y,end:N}}else a=null}a=a||{start:0,end:0}}else a=null;for(oo={focusedElem:e,selectionRange:a},kr=!1,Pe=t;Pe!==null;)if(t=Pe,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Pe=e;else for(;Pe!==null;){switch(t=Pe,c=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,u=c.memoizedProps,c=c.memoizedState,l=a.stateNode;try{var le=sn(a.type,u,a.elementType===a.type);e=l.getSnapshotBeforeUpdate(le,c),l.__reactInternalSnapshotBeforeUpdate=e}catch(te){Ae(a,a.return,te)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)ho(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ho(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Pe=e;break}Pe=t.return}}function rh(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Oa(e,a),l&4&&Vl(5,a);break;case 1:if(Oa(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(g){Ae(a,a.return,g)}else{var u=sn(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){Ae(a,a.return,g)}}l&64&&eh(a),l&512&&$l(a,a.return);break;case 3:if(Oa(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{$f(e,t)}catch(g){Ae(a,a.return,g)}}break;case 27:t===null&&l&4&&lh(a);case 26:case 5:Oa(e,a),t===null&&l&4&&ah(a),l&512&&$l(a,a.return);break;case 12:Oa(e,a);break;case 13:Oa(e,a),l&4&&oh(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Gy.bind(null,a),s0(e,a))));break;case 22:if(l=a.memoizedState!==null||ca,!l){t=t!==null&&t.memoizedState!==null||Ve,u=ca;var c=Ve;ca=l,(Ve=t)&&!c?ka(e,a,(a.subtreeFlags&8772)!==0):Oa(e,a),ca=u,Ve=c}break;case 30:break;default:Oa(e,a)}}function sh(e){var t=e.alternate;t!==null&&(e.alternate=null,sh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&vs(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var De=null,ht=!1;function fa(e,t,a){for(a=a.child;a!==null;)uh(e,t,a),a=a.sibling}function uh(e,t,a){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(ul,a)}catch{}switch(a.tag){case 26:Ve||Xt(a,t),fa(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ve||Xt(a,t);var l=De,u=ht;Ua(a.type)&&(De=a.stateNode,ht=!1),fa(e,t,a),Fl(a.stateNode),De=l,ht=u;break;case 5:Ve||Xt(a,t);case 6:if(l=De,u=ht,De=null,fa(e,t,a),De=l,ht=u,De!==null)if(ht)try{(De.nodeType===9?De.body:De.nodeName==="HTML"?De.ownerDocument.body:De).removeChild(a.stateNode)}catch(c){Ae(a,t,c)}else try{De.removeChild(a.stateNode)}catch(c){Ae(a,t,c)}break;case 18:De!==null&&(ht?(e=De,Fh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),li(e)):Fh(De,a.stateNode));break;case 4:l=De,u=ht,De=a.stateNode.containerInfo,ht=!0,fa(e,t,a),De=l,ht=u;break;case 0:case 11:case 14:case 15:Ve||Aa(2,a,t),Ve||Aa(4,a,t),fa(e,t,a);break;case 1:Ve||(Xt(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&th(a,t,l)),fa(e,t,a);break;case 21:fa(e,t,a);break;case 22:Ve=(l=Ve)||a.memoizedState!==null,fa(e,t,a),Ve=l;break;default:fa(e,t,a)}}function oh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{li(e)}catch(a){Ae(t,t.return,a)}}function _y(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ih),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ih),t;default:throw Error(s(435,e.tag))}}function Hu(e,t){var a=_y(e);t.forEach(function(l){var u=Yy.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,y=g;e:for(;y!==null;){switch(y.tag){case 27:if(Ua(y.type)){De=y.stateNode,ht=!1;break e}break;case 5:De=y.stateNode,ht=!1;break e;case 3:case 4:De=y.stateNode.containerInfo,ht=!0;break e}y=y.return}if(De===null)throw Error(s(160));uh(c,g,u),De=null,ht=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)ch(t,e),t=t.sibling}var Vt=null;function ch(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:St(t,e),Nt(e),l&4&&(Aa(3,e,e.return),Vl(3,e),Aa(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=lp("link","href",u).get(l+(a.href||""));if(g){for(var y=0;y<g.length;y++)if(c=g[y],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){g.splice(y,1);break t}}c=u.createElement(l),tt(c,l,a),u.head.appendChild(c);break;case"meta":if(g=lp("meta","content",u).get(l+(a.content||""))){for(y=0;y<g.length;y++)if(c=g[y],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){g.splice(y,1);break t}}c=u.createElement(l),tt(c,l,a),u.head.appendChild(c);break;default:throw Error(s(468,l))}c[nt]=e,Je(c),l=c}e.stateNode=l}else ip(u,e.type,e.stateNode);else e.stateNode=np(u,l,e.memoizedProps);else c!==l?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,l===null?ip(u,e.type,e.stateNode):np(u,l,e.memoizedProps)):l===null&&e.stateNode!==null&&_u(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&&_u(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(z){Ae(e,e.return,z)}}l&4&&e.stateNode!=null&&(u=e.memoizedProps,_u(e,u,a!==null?a.memoizedProps:u)),l&1024&&(Bu=!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(z){Ae(e,e.return,z)}}break;case 3:if(jr=null,u=Vt,Vt=Tr(t.containerInfo),St(t,e),Vt=u,Nt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{li(t.containerInfo)}catch(z){Ae(e,e.return,z)}Bu&&(Bu=!1,fh(e));break;case 4:l=Vt,Vt=Tr(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)&&(Qu=Qt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Hu(e,l)));break;case 22:u=e.memoizedState!==null;var N=a!==null&&a.memoizedState!==null,O=ca,B=Ve;if(ca=O||u,Ve=B||N,St(t,e),Ve=B,ca=O,Nt(e),l&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(a===null||N||ca||Ve||un(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){N=a=t;try{if(c=N.stateNode,u)g=c.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{y=N.stateNode;var q=N.memoizedProps.style,k=q!=null&&q.hasOwnProperty("display")?q.display:null;y.style.display=k==null||typeof k=="boolean"?"":(""+k).trim()}}catch(z){Ae(N,N.return,z)}}}else if(t.tag===6){if(a===null){N=t;try{N.stateNode.nodeValue=u?"":N.memoizedProps}catch(z){Ae(N,N.return,z)}}}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,Hu(e,a))));break;case 19:St(t,e),Nt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Hu(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(nh(l)){a=l;break}l=l.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var u=a.stateNode,c=Mu(e);hr(e,c,u);break;case 5:var g=a.stateNode;a.flags&32&&(Rn(g,""),a.flags&=-33);var y=Mu(e);hr(e,y,g);break;case 3:case 4:var N=a.stateNode.containerInfo,O=Mu(e);Uu(e,O,N);break;default:throw Error(s(161))}}catch(B){Ae(e,e.return,B)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function fh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;fh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Oa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)rh(e,t.alternate,t),t=t.sibling}function un(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Aa(4,t,t.return),un(t);break;case 1:Xt(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&th(t,t.return,a),un(t);break;case 27:Fl(t.stateNode);case 26:case 5:Xt(t,t.return),un(t);break;case 22:t.memoizedState===null&&un(t);break;case 30:un(t);break;default:un(t)}e=e.sibling}}function ka(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,u=e,c=t,g=c.flags;switch(c.tag){case 0:case 11:case 15:ka(u,c,a),Vl(4,c);break;case 1:if(ka(u,c,a),l=c,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(O){Ae(l,l.return,O)}if(l=c,u=l.updateQueue,u!==null){var y=l.stateNode;try{var N=u.shared.hiddenCallbacks;if(N!==null)for(u.shared.hiddenCallbacks=null,u=0;u<N.length;u++)Vf(N[u],y)}catch(O){Ae(l,l.return,O)}}a&&g&64&&eh(c),$l(c,c.return);break;case 27:lh(c);case 26:case 5:ka(u,c,a),a&&l===null&&g&4&&ah(c),$l(c,c.return);break;case 12:ka(u,c,a);break;case 13:ka(u,c,a),a&&g&4&&oh(u,c);break;case 22:c.memoizedState===null&&ka(u,c,a),$l(c,c.return);break;case 30:break;default:ka(u,c,a)}t=t.sibling}}function Vu(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&&Tl(a))}function $u(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Tl(e))}function Jt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)dh(e,t,a,l),t=t.sibling}function dh(e,t,a,l){var u=t.flags;switch(t.tag){case 0:case 11:case 15:Jt(e,t,a,l),u&2048&&Vl(9,t);break;case 1:Jt(e,t,a,l);break;case 3:Jt(e,t,a,l),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Tl(e)));break;case 12:if(u&2048){Jt(e,t,a,l),e=t.stateNode;try{var c=t.memoizedProps,g=c.id,y=c.onPostCommit;typeof y=="function"&&y(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(N){Ae(t,t.return,N)}}else Jt(e,t,a,l);break;case 13:Jt(e,t,a,l);break;case 23:break;case 22:c=t.stateNode,g=t.alternate,t.memoizedState!==null?c._visibility&2?Jt(e,t,a,l):ql(e,t):c._visibility&2?Jt(e,t,a,l):(c._visibility|=2,Gn(e,t,a,l,(t.subtreeFlags&10256)!==0)),u&2048&&Vu(g,t);break;case 24:Jt(e,t,a,l),u&2048&&$u(t.alternate,t);break;default:Jt(e,t,a,l)}}function Gn(e,t,a,l,u){for(u=u&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var c=e,g=t,y=a,N=l,O=g.flags;switch(g.tag){case 0:case 11:case 15:Gn(c,g,y,N,u),Vl(8,g);break;case 23:break;case 22:var B=g.stateNode;g.memoizedState!==null?B._visibility&2?Gn(c,g,y,N,u):ql(c,g):(B._visibility|=2,Gn(c,g,y,N,u)),u&&O&2048&&Vu(g.alternate,g);break;case 24:Gn(c,g,y,N,u),u&&O&2048&&$u(g.alternate,g);break;default:Gn(c,g,y,N,u)}t=t.sibling}}function ql(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,u=l.flags;switch(l.tag){case 22:ql(a,l),u&2048&&Vu(l.alternate,l);break;case 24:ql(a,l),u&2048&&$u(l.alternate,l);break;default:ql(a,l)}t=t.sibling}}var Gl=8192;function Yn(e){if(e.subtreeFlags&Gl)for(e=e.child;e!==null;)hh(e),e=e.sibling}function hh(e){switch(e.tag){case 26:Yn(e),e.flags&Gl&&e.memoizedState!==null&&x0(Vt,e.memoizedState,e.memoizedProps);break;case 5:Yn(e);break;case 3:case 4:var t=Vt;Vt=Tr(e.stateNode.containerInfo),Yn(e),Vt=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Gl,Gl=16777216,Yn(e),Gl=t):Yn(e));break;default:Yn(e)}}function ph(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Yl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Pe=l,gh(l,e)}ph(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)mh(e),e=e.sibling}function mh(e){switch(e.tag){case 0:case 11:case 15:Yl(e),e.flags&2048&&Aa(9,e,e.return);break;case 3:Yl(e);break;case 12:Yl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,pr(e)):Yl(e);break;default:Yl(e)}}function pr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Pe=l,gh(l,e)}ph(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Aa(8,t,t.return),pr(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,pr(t));break;default:pr(t)}e=e.sibling}}function gh(e,t){for(;Pe!==null;){var a=Pe;switch(a.tag){case 0:case 11:case 15:Aa(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Tl(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,Pe=l;else e:for(a=e;Pe!==null;){l=Pe;var u=l.sibling,c=l.return;if(sh(l),l===a){Pe=null;break e}if(u!==null){u.return=c,Pe=u;break e}Pe=c}}}var My={getCacheForType:function(e){var t=lt(Qe),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a}},Uy=typeof WeakMap=="function"?WeakMap:Map,Ne=0,ke=null,de=null,ve=0,Ee=0,Et=null,La=!1,Qn=!1,qu=!1,da=0,Be=0,za=0,on=0,Gu=0,_t=0,Zn=0,Ql=null,pt=null,Yu=!1,Qu=0,mr=1/0,gr=null,Da=null,et=0,_a=null,Kn=null,Xn=0,Zu=0,Ku=null,vh=null,Zl=0,Xu=null;function Rt(){if((Ne&2)!==0&&ve!==0)return ve&-ve;if(_.T!==null){var e=_n;return e!==0?e:to()}return Lc()}function yh(){_t===0&&(_t=(ve&536870912)===0||xe?jc():536870912);var e=Dt.current;return e!==null&&(e.flags|=32),_t}function wt(e,t,a){(e===ke&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)&&(Jn(e,0),Ma(e,ve,_t,!1)),cl(e,a),((Ne&2)===0||e!==ke)&&(e===ke&&((Ne&2)===0&&(on|=a),Be===4&&Ma(e,ve,_t,!1)),Ft(e))}function bh(e,t,a){if((Ne&6)!==0)throw Error(s(327));var l=!a&&(t&124)===0&&(t&e.expiredLanes)===0||ol(e,t),u=l?Vy(e,t):Pu(e,t,!0),c=l;do{if(u===0){Qn&&!l&&Ma(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!By(a)){u=Pu(e,t,!1),c=!1;continue}if(u===2){if(c=t,e.errorRecoveryDisabledLanes&c)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var y=e;u=Ql;var N=y.current.memoizedState.isDehydrated;if(N&&(Jn(y,g).flags|=256),g=Pu(y,g,!1),g!==2){if(qu&&!N){y.errorRecoveryDisabledLanes|=c,on|=c,u=4;break e}c=pt,pt=u,c!==null&&(pt===null?pt=c:pt.push.apply(pt,c))}u=g}if(c=!1,u!==2)continue}}if(u===1){Jn(e,0),Ma(e,t,0,!0);break}e:{switch(l=e,c=u,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Ma(l,t,_t,!La);break e;case 2:pt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(u=Qu+300-Qt(),10<u)){if(Ma(l,t,_t,!La),Ci(l,0,!0)!==0)break e;l.timeoutHandle=Xh(xh.bind(null,l,a,pt,gr,Yu,t,_t,on,Zn,La,c,2,-0,0),u);break e}xh(l,a,pt,gr,Yu,t,_t,on,Zn,La,c,0,-0,0)}}break}while(!0);Ft(e)}function xh(e,t,a,l,u,c,g,y,N,O,B,q,k,z){if(e.timeoutHandle=-1,q=t.subtreeFlags,(q&8192||(q&16785408)===16785408)&&(Il={stylesheets:null,count:0,unsuspend:b0},hh(t),q=S0(),q!==null)){e.cancelPendingCommit=q(Ch.bind(null,e,t,c,a,l,u,g,y,N,B,1,k,z)),Ma(e,c,g,!O);return}Ch(e,t,c,a,l,u,g,y,N)}function By(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var u=a[l],c=u.getSnapshot;u=u.value;try{if(!bt(c(),u))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ma(e,t,a,l){t&=~Gu,t&=~on,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var u=t;0<u;){var c=31-yt(u),g=1<<c;l[c]=-1,u&=~g}a!==0&&Oc(e,a,t)}function vr(){return(Ne&6)===0?(Kl(0),!1):!0}function Ju(){if(de!==null){if(Ee===0)var e=de.return;else e=de,la=an=null,du(e),$n=null,Ul=0,e=de;for(;e!==null;)Id(e.alternate,e),e=e.return;de=null}}function Jn(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,a0(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Ju(),ke=e,de=a=ta(e.current,null),ve=t,Ee=0,Et=null,La=!1,Qn=ol(e,t),qu=!1,Zn=_t=Gu=on=za=Be=0,pt=Ql=null,Yu=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var u=31-yt(l),c=1<<u;t|=e[u],l&=~c}return da=t,Hi(),a}function Sh(e,t){ce=null,_.H=lr,t===jl||t===Xi?(t=Bf(),Ee=3):t===_f?(t=Bf(),Ee=4):Ee=t===Hd?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Et=t,de===null&&(Be=1,or(e,Ot(t,e.current)))}function Nh(){var e=_.H;return _.H=lr,e===null?lr:e}function Eh(){var e=_.A;return _.A=My,e}function Fu(){Be=4,La||(ve&4194048)!==ve&&Dt.current!==null||(Qn=!0),(za&134217727)===0&&(on&134217727)===0||ke===null||Ma(ke,ve,_t,!1)}function Pu(e,t,a){var l=Ne;Ne|=2;var u=Nh(),c=Eh();(ke!==e||ve!==t)&&(gr=null,Jn(e,t)),t=!1;var g=Be;e:do try{if(Ee!==0&&de!==null){var y=de,N=Et;switch(Ee){case 8:Ju(),g=6;break e;case 3:case 2:case 9:case 6:Dt.current===null&&(t=!0);var O=Ee;if(Ee=0,Et=null,Fn(e,y,N,O),a&&Qn){g=0;break e}break;default:O=Ee,Ee=0,Et=null,Fn(e,y,N,O)}}Hy(),g=Be;break}catch(B){Sh(e,B)}while(!0);return t&&e.shellSuspendCounter++,la=an=null,Ne=l,_.H=u,_.A=c,de===null&&(ke=null,ve=0,Hi()),g}function Hy(){for(;de!==null;)Rh(de)}function Vy(e,t){var a=Ne;Ne|=2;var l=Nh(),u=Eh();ke!==e||ve!==t?(gr=null,mr=Qt()+500,Jn(e,t)):Qn=ol(e,t);e:do try{if(Ee!==0&&de!==null){t=de;var c=Et;t:switch(Ee){case 1:Ee=0,Et=null,Fn(e,t,c,1);break;case 2:case 9:if(Mf(c)){Ee=0,Et=null,wh(t);break}t=function(){Ee!==2&&Ee!==9||ke!==e||(Ee=7),Ft(e)},c.then(t,t);break e;case 3:Ee=7;break e;case 4:Ee=5;break e;case 7:Mf(c)?(Ee=0,Et=null,wh(t)):(Ee=0,Et=null,Fn(e,t,c,7));break;case 5:var g=null;switch(de.tag){case 26:g=de.memoizedState;case 5:case 27:var y=de;if(!g||rp(g)){Ee=0,Et=null;var N=y.sibling;if(N!==null)de=N;else{var O=y.return;O!==null?(de=O,yr(O)):de=null}break t}}Ee=0,Et=null,Fn(e,t,c,5);break;case 6:Ee=0,Et=null,Fn(e,t,c,6);break;case 8:Ju(),Be=6;break e;default:throw Error(s(462))}}$y();break}catch(B){Sh(e,B)}while(!0);return la=an=null,_.H=l,_.A=u,Ne=a,de!==null?0:(ke=null,ve=0,Hi(),Be)}function $y(){for(;de!==null&&!ov();)Rh(de)}function Rh(e){var t=Pd(e.alternate,e,da);e.memoizedProps=e.pendingProps,t===null?yr(e):de=t}function wh(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Qd(a,t,t.pendingProps,t.type,void 0,ve);break;case 11:t=Qd(a,t,t.pendingProps,t.type.render,t.ref,ve);break;case 5:du(t);default:Id(a,t),t=de=Tf(t,da),t=Pd(a,t,da)}e.memoizedProps=e.pendingProps,t===null?yr(e):de=t}function Fn(e,t,a,l){la=an=null,du(t),$n=null,Ul=0;var u=t.return;try{if(Oy(e,u,t,a,ve)){Be=1,or(e,Ot(a,e.current)),de=null;return}}catch(c){if(u!==null)throw de=u,c;Be=1,or(e,Ot(a,e.current)),de=null;return}t.flags&32768?(xe||l===1?e=!0:Qn||(ve&536870912)!==0?e=!1:(La=e=!0,(l===2||l===9||l===3||l===6)&&(l=Dt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Th(t,e)):yr(t)}function yr(e){var t=e;do{if((t.flags&32768)!==0){Th(t,La);return}e=t.return;var a=Ly(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=zy(e.alternate,e);if(a!==null){a.flags&=32767,de=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){de=e;return}de=e=a}while(e!==null);Be=6,de=null}function Ch(e,t,a,l,u,c,g,y,N){e.cancelPendingCommit=null;do br();while(et!==0);if((Ne&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=$s,bv(e,a,c,g,y,N),e===ke&&(de=ke=null,ve=0),Kn=t,_a=e,Xn=a,Zu=c,Ku=u,vh=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Qy(Ri,function(){return Lh(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=_.T,_.T=null,u=Y.p,Y.p=2,g=Ne,Ne|=4;try{Dy(e,t,a)}finally{Ne=g,Y.p=u,_.T=l}}et=1,jh(),Ah(),Oh()}}function jh(){if(et===1){et=0;var e=_a,t=Kn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=_.T,_.T=null;var l=Y.p;Y.p=2;var u=Ne;Ne|=4;try{ch(t,e);var c=oo,g=gf(e.containerInfo),y=c.focusedElem,N=c.selectionRange;if(g!==y&&y&&y.ownerDocument&&mf(y.ownerDocument.documentElement,y)){if(N!==null&&Ms(y)){var O=N.start,B=N.end;if(B===void 0&&(B=O),"selectionStart"in y)y.selectionStart=O,y.selectionEnd=Math.min(B,y.value.length);else{var q=y.ownerDocument||document,k=q&&q.defaultView||window;if(k.getSelection){var z=k.getSelection(),le=y.textContent.length,te=Math.min(N.start,le),je=N.end===void 0?te:Math.min(N.end,le);!z.extend&&te>je&&(g=je,je=te,te=g);var j=pf(y,te),T=pf(y,je);if(j&&T&&(z.rangeCount!==1||z.anchorNode!==j.node||z.anchorOffset!==j.offset||z.focusNode!==T.node||z.focusOffset!==T.offset)){var A=q.createRange();A.setStart(j.node,j.offset),z.removeAllRanges(),te>je?(z.addRange(A),z.extend(T.node,T.offset)):(A.setEnd(T.node,T.offset),z.addRange(A))}}}}for(q=[],z=y;z=z.parentNode;)z.nodeType===1&&q.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<q.length;y++){var H=q[y];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}kr=!!uo,oo=uo=null}finally{Ne=u,Y.p=l,_.T=a}}e.current=t,et=2}}function Ah(){if(et===2){et=0;var e=_a,t=Kn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=_.T,_.T=null;var l=Y.p;Y.p=2;var u=Ne;Ne|=4;try{rh(e,t.alternate,t)}finally{Ne=u,Y.p=l,_.T=a}}et=3}}function Oh(){if(et===4||et===3){et=0,cv();var e=_a,t=Kn,a=Xn,l=vh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?et=5:(et=0,Kn=_a=null,kh(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Da=null),ms(a),t=t.stateNode,vt&&typeof vt.onCommitFiberRoot=="function")try{vt.onCommitFiberRoot(ul,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=_.T,u=Y.p,Y.p=2,_.T=null;try{for(var c=e.onRecoverableError,g=0;g<l.length;g++){var y=l[g];c(y.value,{componentStack:y.stack})}}finally{_.T=t,Y.p=u}}(Xn&3)!==0&&br(),Ft(e),u=e.pendingLanes,(a&4194090)!==0&&(u&42)!==0?e===Xu?Zl++:(Zl=0,Xu=e):Zl=0,Kl(0)}}function kh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Tl(t)))}function br(e){return jh(),Ah(),Oh(),Lh()}function Lh(){if(et!==5)return!1;var e=_a,t=Zu;Zu=0;var a=ms(Xn),l=_.T,u=Y.p;try{Y.p=32>a?32:a,_.T=null,a=Ku,Ku=null;var c=_a,g=Xn;if(et=0,Kn=_a=null,Xn=0,(Ne&6)!==0)throw Error(s(331));var y=Ne;if(Ne|=4,mh(c.current),dh(c,c.current,g,a),Ne=y,Kl(0,!1),vt&&typeof vt.onPostCommitFiberRoot=="function")try{vt.onPostCommitFiberRoot(ul,c)}catch{}return!0}finally{Y.p=u,_.T=l,kh(e,t)}}function zh(e,t,a){t=Ot(a,t),t=Tu(e.stateNode,t,2),e=wa(e,t,2),e!==null&&(cl(e,2),Ft(e))}function Ae(e,t,a){if(e.tag===3)zh(e,e,a);else for(;t!==null;){if(t.tag===3){zh(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Da===null||!Da.has(l))){e=Ot(a,e),a=Ud(2),l=wa(t,a,2),l!==null&&(Bd(a,l,t,e),cl(l,2),Ft(l));break}}t=t.return}}function Wu(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new Uy;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)||(qu=!0,u.add(a),e=qy.bind(null,e,t,a),t.then(e,e))}function qy(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,ke===e&&(ve&a)===a&&(Be===4||Be===3&&(ve&62914560)===ve&&300>Qt()-Qu?(Ne&2)===0&&Jn(e,0):Gu|=a,Zn===ve&&(Zn=0)),Ft(e)}function Dh(e,t){t===0&&(t=Ac()),e=kn(e,t),e!==null&&(cl(e,t),Ft(e))}function Gy(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Dh(e,a)}function Yy(e,t){var a=0;switch(e.tag){case 13:var l=e.stateNode,u=e.memoizedState;u!==null&&(a=u.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),Dh(e,a)}function Qy(e,t){return fs(e,t)}var xr=null,Pn=null,Iu=!1,Sr=!1,eo=!1,cn=0;function Ft(e){e!==Pn&&e.next===null&&(Pn===null?xr=Pn=e:Pn=Pn.next=e),Sr=!0,Iu||(Iu=!0,Ky())}function Kl(e,t){if(!eo&&Sr){eo=!0;do for(var a=!1,l=xr;l!==null;){if(e!==0){var u=l.pendingLanes;if(u===0)var c=0;else{var g=l.suspendedLanes,y=l.pingedLanes;c=(1<<31-yt(42|e)+1)-1,c&=u&~(g&~y),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,Bh(l,c))}else c=ve,c=Ci(l,l===ke?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||ol(l,c)||(a=!0,Bh(l,c));l=l.next}while(a);eo=!1}}function Zy(){_h()}function _h(){Sr=Iu=!1;var e=0;cn!==0&&(t0()&&(e=cn),cn=0);for(var t=Qt(),a=null,l=xr;l!==null;){var u=l.next,c=Mh(l,t);c===0?(l.next=null,a===null?xr=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-yt(c),y=1<<g,N=u[g];N===-1?((y&a)===0||(y&l)!==0)&&(u[g]=yv(y,t)):N<=t&&(e.expiredLanes|=y),c&=~y}if(t=ke,a=ve,a=Ci(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&ds(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&&ds(l),ms(a)){case 2:case 8:a=Tc;break;case 32:a=Ri;break;case 268435456:a=Cc;break;default:a=Ri}return l=Uh.bind(null,e),a=fs(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&ds(l),e.callbackPriority=2,e.callbackNode=null,2}function Uh(e,t){if(et!==0&&et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(br()&&e.callbackNode!==a)return null;var l=ve;return l=Ci(e,e===ke?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(bh(e,l,t),Mh(e,Qt()),e.callbackNode!=null&&e.callbackNode===a?Uh.bind(null,e):null)}function Bh(e,t){if(br())return null;bh(e,t,!0)}function Ky(){n0(function(){(Ne&6)!==0?fs(wc,Zy):_h()})}function to(){return cn===0&&(cn=jc()),cn}function Hh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Li(""+e)}function Vh(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Xy(e,t,a,l,u){if(t==="submit"&&a&&a.stateNode===u){var c=Hh((u[ct]||null).action),g=l.submitter;g&&(t=(t=g[ct]||null)?Hh(t.formAction):g.getAttribute("formAction"),t!==null&&(c=t,g=null));var y=new Mi("action","action",null,l,u);e.push({event:y,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(cn!==0){var N=g?Vh(u,g):new FormData(u);Su(a,{pending:!0,data:N,method:u.method,action:c},null,N)}}else typeof c=="function"&&(y.preventDefault(),N=g?Vh(u,g):new FormData(u),Su(a,{pending:!0,data:N,method:u.method,action:c},c,N))},currentTarget:u}]})}}for(var ao=0;ao<Vs.length;ao++){var no=Vs[ao],Jy=no.toLowerCase(),Fy=no[0].toUpperCase()+no.slice(1);Ht(Jy,"on"+Fy)}Ht(bf,"onAnimationEnd"),Ht(xf,"onAnimationIteration"),Ht(Sf,"onAnimationStart"),Ht("dblclick","onDoubleClick"),Ht("focusin","onFocus"),Ht("focusout","onBlur"),Ht(hy,"onTransitionRun"),Ht(py,"onTransitionStart"),Ht(my,"onTransitionCancel"),Ht(Nf,"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(" "),Py=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Xl));function $h(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],u=l.event;l=l.listeners;e:{var c=void 0;if(t)for(var g=l.length-1;0<=g;g--){var y=l[g],N=y.instance,O=y.currentTarget;if(y=y.listener,N!==c&&u.isPropagationStopped())break e;c=y,u.currentTarget=O;try{c(u)}catch(B){ur(B)}u.currentTarget=null,c=N}else for(g=0;g<l.length;g++){if(y=l[g],N=y.instance,O=y.currentTarget,y=y.listener,N!==c&&u.isPropagationStopped())break e;c=y,u.currentTarget=O;try{c(u)}catch(B){ur(B)}u.currentTarget=null,c=N}}}}function he(e,t){var a=t[gs];a===void 0&&(a=t[gs]=new Set);var l=e+"__bubble";a.has(l)||(qh(t,e,2,!1),a.add(l))}function lo(e,t,a){var l=0;t&&(l|=4),qh(a,e,l,t)}var Nr="_reactListening"+Math.random().toString(36).slice(2);function io(e){if(!e[Nr]){e[Nr]=!0,Dc.forEach(function(a){a!=="selectionchange"&&(Py.has(a)||lo(a,!1,e),lo(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Nr]||(t[Nr]=!0,lo("selectionchange",!1,t))}}function qh(e,t,a,l){switch(dp(t)){case 2:var u=R0;break;case 8:u=w0;break;default:u=xo}a=u.bind(null,t,a,e),u=void 0,!Cs||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 ro(e,t,a,l,u){var c=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var g=l.tag;if(g===3||g===4){var y=l.stateNode.containerInfo;if(y===u)break;if(g===4)for(g=l.return;g!==null;){var N=g.tag;if((N===3||N===4)&&g.stateNode.containerInfo===u)return;g=g.return}for(;y!==null;){if(g=yn(y),g===null)return;if(N=g.tag,N===5||N===6||N===26||N===27){l=c=g;continue e}y=y.parentNode}}l=l.return}Xc(function(){var O=c,B=ws(a),q=[];e:{var k=Ef.get(e);if(k!==void 0){var z=Mi,le=e;switch(e){case"keypress":if(Di(a)===0)break e;case"keydown":case"keyup":z=Qv;break;case"focusin":le="focus",z=ks;break;case"focusout":le="blur",z=ks;break;case"beforeblur":case"afterblur":z=ks;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":z=Pc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=zv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=Xv;break;case bf:case xf:case Sf:z=Mv;break;case Nf:z=Fv;break;case"scroll":case"scrollend":z=kv;break;case"wheel":z=Wv;break;case"copy":case"cut":case"paste":z=Bv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=Ic;break;case"toggle":case"beforetoggle":z=ey}var te=(t&4)!==0,je=!te&&(e==="scroll"||e==="scrollend"),j=te?k!==null?k+"Capture":null:k;te=[];for(var T=O,A;T!==null;){var H=T;if(A=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||A===null||j===null||(H=hl(T,j),H!=null&&te.push(Jl(T,H,A))),je)break;T=T.return}0<te.length&&(k=new z(k,le,null,a,B),q.push({event:k,listeners:te}))}}if((t&7)===0){e:{if(k=e==="mouseover"||e==="pointerover",z=e==="mouseout"||e==="pointerout",k&&a!==Rs&&(le=a.relatedTarget||a.fromElement)&&(yn(le)||le[vn]))break e;if((z||k)&&(k=B.window===B?B:(k=B.ownerDocument)?k.defaultView||k.parentWindow:window,z?(le=a.relatedTarget||a.toElement,z=O,le=le?yn(le):null,le!==null&&(je=f(le),te=le.tag,le!==je||te!==5&&te!==27&&te!==6)&&(le=null)):(z=null,le=O),z!==le)){if(te=Pc,H="onMouseLeave",j="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(te=Ic,H="onPointerLeave",j="onPointerEnter",T="pointer"),je=z==null?k:dl(z),A=le==null?k:dl(le),k=new te(H,T+"leave",z,a,B),k.target=je,k.relatedTarget=A,H=null,yn(B)===O&&(te=new te(j,T+"enter",le,a,B),te.target=A,te.relatedTarget=je,H=te),je=H,z&&le)t:{for(te=z,j=le,T=0,A=te;A;A=Wn(A))T++;for(A=0,H=j;H;H=Wn(H))A++;for(;0<T-A;)te=Wn(te),T--;for(;0<A-T;)j=Wn(j),A--;for(;T--;){if(te===j||j!==null&&te===j.alternate)break t;te=Wn(te),j=Wn(j)}te=null}else te=null;z!==null&&Gh(q,k,z,te,!1),le!==null&&je!==null&&Gh(q,je,le,te,!0)}}e:{if(k=O?dl(O):window,z=k.nodeName&&k.nodeName.toLowerCase(),z==="select"||z==="input"&&k.type==="file")var J=uf;else if(rf(k))if(of)J=cy;else{J=uy;var fe=sy}else z=k.nodeName,!z||z.toLowerCase()!=="input"||k.type!=="checkbox"&&k.type!=="radio"?O&&Es(O.elementType)&&(J=uf):J=oy;if(J&&(J=J(e,O))){sf(q,J,a,B);break e}fe&&fe(e,k,O),e==="focusout"&&O&&k.type==="number"&&O.memoizedProps.value!=null&&Ns(k,"number",k.value)}switch(fe=O?dl(O):window,e){case"focusin":(rf(fe)||fe.contentEditable==="true")&&(jn=fe,Us=O,Sl=null);break;case"focusout":Sl=Us=jn=null;break;case"mousedown":Bs=!0;break;case"contextmenu":case"mouseup":case"dragend":Bs=!1,vf(q,a,B);break;case"selectionchange":if(dy)break;case"keydown":case"keyup":vf(q,a,B)}var P;if(zs)e:{switch(e){case"compositionstart":var ae="onCompositionStart";break e;case"compositionend":ae="onCompositionEnd";break e;case"compositionupdate":ae="onCompositionUpdate";break e}ae=void 0}else Cn?nf(e,a)&&(ae="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ae="onCompositionStart");ae&&(ef&&a.locale!=="ko"&&(Cn||ae!=="onCompositionStart"?ae==="onCompositionEnd"&&Cn&&(P=Jc()):(Sa=B,js="value"in Sa?Sa.value:Sa.textContent,Cn=!0)),fe=Er(O,ae),0<fe.length&&(ae=new Wc(ae,e,null,a,B),q.push({event:ae,listeners:fe}),P?ae.data=P:(P=lf(a),P!==null&&(ae.data=P)))),(P=ay?ny(e,a):ly(e,a))&&(ae=Er(O,"onBeforeInput"),0<ae.length&&(fe=new Wc("onBeforeInput","beforeinput",null,a,B),q.push({event:fe,listeners:ae}),fe.data=P)),Xy(q,e,O,a,B)}$h(q,t)})}function Jl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Er(e,t){for(var a=t+"Capture",l=[];e!==null;){var u=e,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=hl(e,a),u!=null&&l.unshift(Jl(e,u,c)),u=hl(e,t),u!=null&&l.push(Jl(e,u,c))),e.tag===3)return l;e=e.return}return[]}function Wn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Gh(e,t,a,l,u){for(var c=t._reactName,g=[];a!==null&&a!==l;){var y=a,N=y.alternate,O=y.stateNode;if(y=y.tag,N!==null&&N===l)break;y!==5&&y!==26&&y!==27||O===null||(N=O,u?(O=hl(a,c),O!=null&&g.unshift(Jl(a,O,N))):u||(O=hl(a,c),O!=null&&g.push(Jl(a,O,N)))),a=a.return}g.length!==0&&e.push({event:t,listeners:g})}var Wy=/\r\n?/g,Iy=/\u0000|\uFFFD/g;function Yh(e){return(typeof e=="string"?e:""+e).replace(Wy,`
|
|
59
|
+
`).replace(Iy,"")}function Qh(e,t){return t=Yh(t),Yh(e)===t}function Rr(){}function Ce(e,t,a,l,u,c){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Rn(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Rn(e,""+l);break;case"className":Ai(e,"class",l);break;case"tabIndex":Ai(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Ai(e,a,l);break;case"style":Zc(e,l,c);break;case"data":if(t!=="object"){Ai(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Li(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(t!=="input"&&Ce(e,t,"name",u.name,u,null),Ce(e,t,"formEncType",u.formEncType,u,null),Ce(e,t,"formMethod",u.formMethod,u,null),Ce(e,t,"formTarget",u.formTarget,u,null)):(Ce(e,t,"encType",u.encType,u,null),Ce(e,t,"method",u.method,u,null),Ce(e,t,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Li(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=Rr);break;case"onScroll":l!=null&&he("scroll",e);break;case"onScrollEnd":l!=null&&he("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=Li(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":he("beforetoggle",e),he("toggle",e),ji(e,"popover",l);break;case"xlinkActuate":It(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":It(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":It(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":It(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":It(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":It(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":It(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":It(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":It(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":ji(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Av.get(a)||a,ji(e,a,l))}}function so(e,t,a,l,u,c){switch(a){case"style":Zc(e,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Rn(e,l):(typeof l=="number"||typeof l=="bigint")&&Rn(e,""+l);break;case"onScroll":l!=null&&he("scroll",e);break;case"onScrollEnd":l!=null&&he("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Rr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!_c.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),t=a.slice(2,u?a.length-7:void 0),c=e[ct]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,u),typeof l=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,u);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):ji(e,a,l)}}}function tt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":he("error",e),he("load",e);var l=!1,u=!1,c;for(c in a)if(a.hasOwnProperty(c)){var g=a[c];if(g!=null)switch(c){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ce(e,t,c,g,a,null)}}u&&Ce(e,t,"srcSet",a.srcSet,a,null),l&&Ce(e,t,"src",a.src,a,null);return;case"input":he("invalid",e);var y=c=g=u=null,N=null,O=null;for(l in a)if(a.hasOwnProperty(l)){var 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":O=B;break;case"value":c=B;break;case"defaultValue":y=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(s(137,t));break;default:Ce(e,t,l,B,a,null)}}qc(e,c,y,N,O,g,u,!1),Oi(e);return;case"select":he("invalid",e),l=g=c=null;for(u in a)if(a.hasOwnProperty(u)&&(y=a[u],y!=null))switch(u){case"value":c=y;break;case"defaultValue":g=y;break;case"multiple":l=y;default:Ce(e,t,u,y,a,null)}t=c,a=g,e.multiple=!!l,t!=null?En(e,!!l,t,!1):a!=null&&En(e,!!l,a,!0);return;case"textarea":he("invalid",e),c=u=l=null;for(g in a)if(a.hasOwnProperty(g)&&(y=a[g],y!=null))switch(g){case"value":l=y;break;case"defaultValue":u=y;break;case"children":c=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(s(91));break;default:Ce(e,t,g,y,a,null)}Yc(e,l,u,c),Oi(e);return;case"option":for(N in a)if(a.hasOwnProperty(N)&&(l=a[N],l!=null))switch(N){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ce(e,t,N,l,a,null)}return;case"dialog":he("beforetoggle",e),he("toggle",e),he("cancel",e),he("close",e);break;case"iframe":case"object":he("load",e);break;case"video":case"audio":for(l=0;l<Xl.length;l++)he(Xl[l],e);break;case"image":he("error",e),he("load",e);break;case"details":he("toggle",e);break;case"embed":case"source":case"link":he("error",e),he("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(O in a)if(a.hasOwnProperty(O)&&(l=a[O],l!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ce(e,t,O,l,a,null)}return;default:if(Es(t)){for(B in a)a.hasOwnProperty(B)&&(l=a[B],l!==void 0&&so(e,t,B,l,a,void 0));return}}for(y in a)a.hasOwnProperty(y)&&(l=a[y],l!=null&&Ce(e,t,y,l,a,null))}function e0(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,c=null,g=null,y=null,N=null,O=null,B=null;for(z in a){var q=a[z];if(a.hasOwnProperty(z)&&q!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":N=q;default:l.hasOwnProperty(z)||Ce(e,t,z,null,l,q)}}for(var k in l){var z=l[k];if(q=a[k],l.hasOwnProperty(k)&&(z!=null||q!=null))switch(k){case"type":c=z;break;case"name":u=z;break;case"checked":O=z;break;case"defaultChecked":B=z;break;case"value":g=z;break;case"defaultValue":y=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(s(137,t));break;default:z!==q&&Ce(e,t,k,z,l,q)}}Ss(e,g,y,N,O,B,c,u);return;case"select":z=g=y=k=null;for(c in a)if(N=a[c],a.hasOwnProperty(c)&&N!=null)switch(c){case"value":break;case"multiple":z=N;default:l.hasOwnProperty(c)||Ce(e,t,c,null,l,N)}for(u in l)if(c=l[u],N=a[u],l.hasOwnProperty(u)&&(c!=null||N!=null))switch(u){case"value":k=c;break;case"defaultValue":y=c;break;case"multiple":g=c;default:c!==N&&Ce(e,t,u,c,l,N)}t=y,a=g,l=z,k!=null?En(e,!!a,k,!1):!!l!=!!a&&(t!=null?En(e,!!a,t,!0):En(e,!!a,a?[]:"",!1));return;case"textarea":z=k=null;for(y in a)if(u=a[y],a.hasOwnProperty(y)&&u!=null&&!l.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Ce(e,t,y,null,l,u)}for(g in l)if(u=l[g],c=a[g],l.hasOwnProperty(g)&&(u!=null||c!=null))switch(g){case"value":k=u;break;case"defaultValue":z=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(s(91));break;default:u!==c&&Ce(e,t,g,u,l,c)}Gc(e,k,z);return;case"option":for(var le in a)if(k=a[le],a.hasOwnProperty(le)&&k!=null&&!l.hasOwnProperty(le))switch(le){case"selected":e.selected=!1;break;default:Ce(e,t,le,null,l,k)}for(N in l)if(k=l[N],z=a[N],l.hasOwnProperty(N)&&k!==z&&(k!=null||z!=null))switch(N){case"selected":e.selected=k&&typeof k!="function"&&typeof k!="symbol";break;default:Ce(e,t,N,k,l,z)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var te in a)k=a[te],a.hasOwnProperty(te)&&k!=null&&!l.hasOwnProperty(te)&&Ce(e,t,te,null,l,k);for(O in l)if(k=l[O],z=a[O],l.hasOwnProperty(O)&&k!==z&&(k!=null||z!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(s(137,t));break;default:Ce(e,t,O,k,l,z)}return;default:if(Es(t)){for(var je in a)k=a[je],a.hasOwnProperty(je)&&k!==void 0&&!l.hasOwnProperty(je)&&so(e,t,je,void 0,l,k);for(B in l)k=l[B],z=a[B],!l.hasOwnProperty(B)||k===z||k===void 0&&z===void 0||so(e,t,B,k,l,z);return}}for(var j in a)k=a[j],a.hasOwnProperty(j)&&k!=null&&!l.hasOwnProperty(j)&&Ce(e,t,j,null,l,k);for(q in l)k=l[q],z=a[q],!l.hasOwnProperty(q)||k===z||k==null&&z==null||Ce(e,t,q,k,l,z)}var uo=null,oo=null;function wr(e){return e.nodeType===9?e:e.ownerDocument}function Zh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Kh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function co(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 fo=null;function t0(){var e=window.event;return e&&e.type==="popstate"?e===fo?!1:(fo=e,!0):(fo=null,!1)}var Xh=typeof setTimeout=="function"?setTimeout:void 0,a0=typeof clearTimeout=="function"?clearTimeout:void 0,Jh=typeof Promise=="function"?Promise:void 0,n0=typeof queueMicrotask=="function"?queueMicrotask:typeof Jh<"u"?function(e){return Jh.resolve(null).then(e).catch(l0)}:Xh;function l0(e){setTimeout(function(){throw e})}function Ua(e){return e==="head"}function Fh(e,t){var a=t,l=0,u=0;do{var c=a.nextSibling;if(e.removeChild(a),c&&c.nodeType===8)if(a=c.data,a==="/$"){if(0<l&&8>l){a=l;var g=e.ownerDocument;if(a&1&&Fl(g.documentElement),a&2&&Fl(g.body),a&4)for(a=g.head,Fl(a),g=a.firstChild;g;){var y=g.nextSibling,N=g.nodeName;g[fl]||N==="SCRIPT"||N==="STYLE"||N==="LINK"&&g.rel.toLowerCase()==="stylesheet"||a.removeChild(g),g=y}}if(u===0){e.removeChild(c),li(t);return}u--}else a==="$"||a==="$?"||a==="$!"?u++:l=a.charCodeAt(0)-48;else l=0;a=c}while(a);li(t)}function ho(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":ho(a),vs(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function i0(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 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 po(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function s0(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 mo=null;function Ph(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}function Wh(e,t,a){switch(t=wr(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]);vs(e)}var Mt=new Map,Ih=new Set;function Tr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ha=Y.d;Y.d={f:u0,r:o0,D:c0,C:f0,L:d0,m:h0,X:m0,S:p0,M:g0};function u0(){var e=ha.f(),t=vr();return e||t}function o0(e){var t=bn(e);t!==null&&t.tag===5&&t.type==="form"?bd(t):ha.r(e)}var In=typeof document>"u"?null:document;function ep(e,t,a){var l=In;if(l&&typeof t=="string"&&t){var u=At(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),Ih.has(u)||(Ih.add(u),e={rel:e,crossOrigin:a,href:t},l.querySelector(u)===null&&(t=l.createElement("link"),tt(t,"link",e),Je(t),l.head.appendChild(t)))}}function c0(e){ha.D(e),ep("dns-prefetch",e,null)}function f0(e,t){ha.C(e,t),ep("preconnect",e,t)}function d0(e,t,a){ha.L(e,t,a);var l=In;if(l&&e&&t){var u='link[rel="preload"][as="'+At(t)+'"]';t==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+At(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+At(a.imageSizes)+'"]')):u+='[href="'+At(e)+'"]';var c=u;switch(t){case"style":c=el(e);break;case"script":c=tl(e)}Mt.has(c)||(e=v({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Mt.set(c,e),l.querySelector(u)!==null||t==="style"&&l.querySelector(Pl(c))||t==="script"&&l.querySelector(Wl(c))||(t=l.createElement("link"),tt(t,"link",e),Je(t),l.head.appendChild(t)))}}function h0(e,t){ha.m(e,t);var a=In;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+At(l)+'"][href="'+At(e)+'"]',c=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=tl(e)}if(!Mt.has(c)&&(e=v({rel:"modulepreload",href:e},t),Mt.set(c,e),a.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Wl(c)))return}l=a.createElement("link"),tt(l,"link",e),Je(l),a.head.appendChild(l)}}}function p0(e,t,a){ha.S(e,t,a);var l=In;if(l&&e){var u=xn(l).hoistableStyles,c=el(e);t=t||"default";var g=u.get(c);if(!g){var y={loading:0,preload:null};if(g=l.querySelector(Pl(c)))y.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Mt.get(c))&&go(e,a);var N=g=l.createElement("link");Je(N),tt(N,"link",e),N._p=new Promise(function(O,B){N.onload=O,N.onerror=B}),N.addEventListener("load",function(){y.loading|=1}),N.addEventListener("error",function(){y.loading|=2}),y.loading|=4,Cr(g,t,l)}g={type:"stylesheet",instance:g,count:1,state:y},u.set(c,g)}}}function m0(e,t){ha.X(e,t);var a=In;if(a&&e){var l=xn(a).hoistableScripts,u=tl(e),c=l.get(u);c||(c=a.querySelector(Wl(u)),c||(e=v({src:e,async:!0},t),(t=Mt.get(u))&&vo(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 g0(e,t){ha.M(e,t);var a=In;if(a&&e){var l=xn(a).hoistableScripts,u=tl(e),c=l.get(u);c||(c=a.querySelector(Wl(u)),c||(e=v({src:e,async:!0,type:"module"},t),(t=Mt.get(u))&&vo(e,t),c=a.createElement("script"),Je(c),tt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(u,c))}}function tp(e,t,a,l){var u=(u=ue.current)?Tr(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=xn(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=xn(u).hoistableStyles,g=c.get(e);if(g||(u=u.ownerDocument||u,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,g),(c=u.querySelector(Pl(e)))&&!c._p&&(g.instance=c,g.state.loading=5),Mt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Mt.set(e,a),c||v0(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=xn(u).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function el(e){return'href="'+At(e)+'"'}function Pl(e){return'link[rel="stylesheet"]['+e+"]"}function ap(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function v0(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),tt(t,"link",a),Je(t),e.head.appendChild(t))}function tl(e){return'[src="'+At(e)+'"]'}function Wl(e){return"script[async]"+e}function np(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+At(a.href)+'"]');if(l)return t.instance=l,Je(l),l;var u=v({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Je(l),tt(l,"style",u),Cr(l,a.precedence,e),t.instance=l;case"stylesheet":u=el(a.href);var c=e.querySelector(Pl(u));if(c)return t.state.loading|=4,t.instance=c,Je(c),c;l=ap(a),(u=Mt.get(u))&&go(l,u),c=(e.ownerDocument||e).createElement("link"),Je(c);var g=c;return g._p=new Promise(function(y,N){g.onload=y,g.onerror=N}),tt(c,"link",l),t.state.loading|=4,Cr(c,a.precedence,e),t.instance=c;case"script":return c=tl(a.src),(u=e.querySelector(Wl(c)))?(t.instance=u,Je(u),u):(l=a,(u=Mt.get(c))&&(l=v({},a),vo(l,u)),e=e.ownerDocument||e,u=e.createElement("script"),Je(u),tt(u,"link",l),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Cr(l,a.precedence,e));return t.instance}function Cr(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,c=u,g=0;g<l.length;g++){var y=l[g];if(y.dataset.precedence===t)c=y;else if(c!==u)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function go(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function vo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var jr=null;function lp(e,t,a){if(jr===null){var l=new Map,u=jr=new Map;u.set(a,l)}else u=jr,l=u.get(a),l||(l=new Map,u.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),u=0;u<a.length;u++){var c=a[u];if(!(c[fl]||c[nt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var g=c.getAttribute(t)||"";g=e+g;var y=l.get(g);y?y.push(c):l.set(g,[c])}}return l}function ip(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function 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 rp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Il=null;function b0(){}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=Ar.bind(l),e.then(l,l)),t.state.loading|=4,t.instance=c,Je(c);return}c=e.ownerDocument||e,a=ap(a),(u=Mt.get(u))&&go(a,u),c=c.createElement("link"),Je(c);var g=c;g._p=new Promise(function(y,N){g.onload=y,g.onerror=N}),tt(c,"link",a),t.instance=c}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(l.count++,t=Ar.bind(l),e.addEventListener("load",t),e.addEventListener("error",t))}}function S0(){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 Ar(){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 Or=null;function yo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Or=new Map,t.forEach(N0,e),Or=null,Ar.call(e))}function N0(e,t){if(!(t.state.loading&4)){var a=Or.get(e);if(a)var l=a.get(null);else{a=new Map,Or.set(e,a);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var g=u[c];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(a.set(g.dataset.precedence,g),l=g)}l&&a.set(null,l)}u=t.instance,g=u.getAttribute("data-precedence"),c=a.get(g)||l,c===l&&a.set(null,u),a.set(g,u),this.count++,l=Ar.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),c?c.parentNode.insertBefore(u,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var ei={$$typeof:G,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function E0(e,t,a,l,u,c,g,y){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=hs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hs(0),this.hiddenUpdates=hs(null),this.identifierPrefix=l,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map}function sp(e,t,a,l,u,c,g,y,N,O,B,q){return e=new E0(e,t,a,g,y,N,O,q),t=1,c===!0&&(t|=24),c=xt(3,null,null,t),e.current=c,c.stateNode=e,t=Ws(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:l,isDehydrated:a,cache:t},au(c),e}function up(e){return e?(e=Ln,e):Ln}function op(e,t,a,l,u,c){u=up(u),l.context===null?l.context=u:l.pendingContext=u,l=Ra(t),l.payload={element:a},c=c===void 0?null:c,c!==null&&(l.callback=c),a=wa(e,l,t),a!==null&&(wt(a,e,t),Ol(a,e,t))}function cp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function bo(e,t){cp(e,t),(e=e.alternate)&&cp(e,t)}function fp(e){if(e.tag===13){var t=kn(e,67108864);t!==null&&wt(t,e,67108864),bo(e,67108864)}}var kr=!0;function R0(e,t,a,l){var u=_.T;_.T=null;var c=Y.p;try{Y.p=2,xo(e,t,a,l)}finally{Y.p=c,_.T=u}}function w0(e,t,a,l){var u=_.T;_.T=null;var c=Y.p;try{Y.p=8,xo(e,t,a,l)}finally{Y.p=c,_.T=u}}function xo(e,t,a,l){if(kr){var u=So(l);if(u===null)ro(e,t,l,Lr,a),hp(e,l);else if(C0(u,e,t,a,l))l.stopPropagation();else if(hp(e,l),t&4&&-1<T0.indexOf(e)){for(;u!==null;){var c=bn(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var g=Za(c.pendingLanes);if(g!==0){var y=c;for(y.pendingLanes|=2,y.entangledLanes|=2;g;){var N=1<<31-yt(g);y.entanglements[1]|=N,g&=~N}Ft(c),(Ne&6)===0&&(mr=Qt()+500,Kl(0))}}break;case 13:y=kn(c,2),y!==null&&wt(y,c,2),vr(),bo(c,2)}if(c=So(l),c===null&&ro(e,t,l,Lr,a),c===u)break;u=c}u!==null&&l.stopPropagation()}else ro(e,t,l,null,a)}}function So(e){return e=ws(e),No(e)}var Lr=null;function No(e){if(Lr=null,e=yn(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=p(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Lr=e,null}function dp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(fv()){case wc:return 2;case Tc:return 8;case Ri:case dv:return 32;case Cc:return 268435456;default:return 32}default:return 32}}var Eo=!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 hp(e,t){switch(e){case"focusin":case"focusout":Ba=null;break;case"dragenter":case"dragleave":Ha=null;break;case"mouseover":case"mouseout":Va=null;break;case"pointerover":case"pointerout":ti.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ai.delete(t.pointerId)}}function ni(e,t,a,l,u,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:c,targetContainers:[u]},t!==null&&(t=bn(t),t!==null&&fp(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function C0(e,t,a,l,u){switch(t){case"focusin":return Ba=ni(Ba,e,t,a,l,u),!0;case"dragenter":return Ha=ni(Ha,e,t,a,l,u),!0;case"mouseover":return Va=ni(Va,e,t,a,l,u),!0;case"pointerover":var c=u.pointerId;return ti.set(c,ni(ti.get(c)||null,e,t,a,l,u)),!0;case"gotpointercapture":return c=u.pointerId,ai.set(c,ni(ai.get(c)||null,e,t,a,l,u)),!0}return!1}function pp(e){var t=yn(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=p(a),t!==null){e.blockedOn=t,xv(e.priority,function(){if(a.tag===13){var l=Rt();l=ps(l);var u=kn(a,l);u!==null&&wt(u,a,l),bo(a,l)}});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function zr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=So(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Rs=l,a.target.dispatchEvent(l),Rs=null}else return t=bn(a),t!==null&&fp(t),e.blockedOn=a,!1;t.shift()}return!0}function mp(e,t,a){zr(e)&&a.delete(t)}function j0(){Eo=!1,Ba!==null&&zr(Ba)&&(Ba=null),Ha!==null&&zr(Ha)&&(Ha=null),Va!==null&&zr(Va)&&(Va=null),ti.forEach(mp),ai.forEach(mp)}function Dr(e,t){e.blockedOn===t&&(e.blockedOn=null,Eo||(Eo=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,j0)))}var _r=null;function gp(e){_r!==e&&(_r=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){_r===e&&(_r=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],u=e[t+2];if(typeof l!="function"){if(No(l||a)===null)continue;break}var c=bn(a);c!==null&&(e.splice(t,3),t-=3,Su(c,{pending:!0,data:u,method:a.method,action:l},l,u))}}))}function li(e){function t(N){return Dr(N,e)}Ba!==null&&Dr(Ba,e),Ha!==null&&Dr(Ha,e),Va!==null&&Dr(Va,e),ti.forEach(t),ai.forEach(t);for(var a=0;a<$a.length;a++){var l=$a[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<$a.length&&(a=$a[0],a.blockedOn===null);)pp(a),a.blockedOn===null&&$a.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var u=a[l],c=a[l+1],g=u[ct]||null;if(typeof c=="function")g||gp(a);else if(g){var y=null;if(c&&c.hasAttribute("formAction")){if(u=c,g=c[ct]||null)y=g.formAction;else if(No(u)!==null)continue}else y=g.action;typeof y=="function"?a[l+1]=y:(a.splice(l,3),l-=3),gp(a)}}}function Ro(e){this._internalRoot=e}Mr.prototype.render=Ro.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,l=Rt();op(a,l,e,t,null,null)},Mr.prototype.unmount=Ro.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;op(e.current,2,null,e,null,null),vr(),t[vn]=null}};function Mr(e){this._internalRoot=e}Mr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Lc();e={blockedOn:null,target:e,priority:t};for(var a=0;a<$a.length&&t!==0&&t<$a[a].priority;a++);$a.splice(a,0,e),a===0&&pp(e)}};var vp=n.version;if(vp!=="19.1.0")throw Error(s(527,vp,"19.1.0"));Y.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=m(t),e=e!==null?d(e):null,e=e===null?null:e.stateNode,e};var A0={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ur=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ur.isDisabled&&Ur.supportsFiber)try{ul=Ur.inject(A0),vt=Ur}catch{}}return si.createRoot=function(e,t){if(!o(e))throw Error(s(299));var a=!1,l="",u=zd,c=Dd,g=_d,y=null;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(y=t.unstable_transitionCallbacks)),t=sp(e,1,!1,null,null,a,l,u,c,g,y,null),e[vn]=t.current,io(e),new Ro(t)},si.hydrateRoot=function(e,t,a){if(!o(e))throw Error(s(299));var l=!1,u="",c=zd,g=Dd,y=_d,N=null,O=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(g=a.onCaughtError),a.onRecoverableError!==void 0&&(y=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(N=a.unstable_transitionCallbacks),a.formState!==void 0&&(O=a.formState)),t=sp(e,1,!0,t,a??null,l,u,c,g,y,N,O),t.context=up(null),a=t.current,l=Rt(),l=ps(l),u=Ra(l),u.callback=null,wa(a,u,l),a=l,t.current.lanes=a,cl(t,a),Ft(t),e[vn]=t.current,io(e),new Mr(t)},si.version="19.1.0",si}var Gp;function $S(){if(Gp)return jo.exports;Gp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(n){console.error(n)}}return i(),jo.exports=VS(),jo.exports}var qS=$S();const GS=rm(qS),dm=w.createContext(void 0);dm.Provider;function hm(i,n){const r=w.useContext(dm),s=w.useRef(void 0);w.useEffect(()=>{let o,f;s.current?f=s.current.then(p):f=p(),s.current=f;function p(){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(m=>r.error(m)))}else{const h=f.then(m=>m==null?void 0:m());r&&h.catch(m=>r.error(m))}}},n)}var ui={},Yp;function YS(){if(Yp)return ui;Yp=1,Object.defineProperty(ui,"__esModule",{value:!0}),ui.parse=p,ui.serialize=d;const i=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,n=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,s=/^[\u0020-\u003A\u003D-\u007E]*$/,o=Object.prototype.toString,f=(()=>{const x=function(){};return x.prototype=Object.create(null),x})();function p(x,C){const E=new f,L=x.length;if(L<2)return E;const V=(C==null?void 0:C.decode)||v;let M=0;do{const D=x.indexOf("=",M);if(D===-1)break;const G=x.indexOf(";",M),X=G===-1?L:G;if(D>X){M=x.lastIndexOf(";",D-1)+1;continue}const K=h(x,M,D),se=m(x,D,K),re=x.slice(K,se);if(E[re]===void 0){let ee=h(x,D+1,X),F=m(x,X,ee);const ne=V(x.slice(ee,F));E[re]=ne}M=X+1}while(M<L);return E}function h(x,C,E){do{const L=x.charCodeAt(C);if(L!==32&&L!==9)return C}while(++C<E);return E}function m(x,C,E){for(;C>E;){const L=x.charCodeAt(--C);if(L!==32&&L!==9)return C+1}return E}function d(x,C,E){const L=(E==null?void 0:E.encode)||encodeURIComponent;if(!i.test(x))throw new TypeError(`argument name is invalid: ${x}`);const V=L(C);if(!n.test(V))throw new TypeError(`argument val is invalid: ${C}`);let M=x+"="+V;if(!E)return M;if(E.maxAge!==void 0){if(!Number.isInteger(E.maxAge))throw new TypeError(`option maxAge is invalid: ${E.maxAge}`);M+="; Max-Age="+E.maxAge}if(E.domain){if(!r.test(E.domain))throw new TypeError(`option domain is invalid: ${E.domain}`);M+="; Domain="+E.domain}if(E.path){if(!s.test(E.path))throw new TypeError(`option path is invalid: ${E.path}`);M+="; Path="+E.path}if(E.expires){if(!S(E.expires)||!Number.isFinite(E.expires.valueOf()))throw new TypeError(`option expires is invalid: ${E.expires}`);M+="; Expires="+E.expires.toUTCString()}if(E.httpOnly&&(M+="; HttpOnly"),E.secure&&(M+="; Secure"),E.partitioned&&(M+="; Partitioned"),E.priority)switch(typeof E.priority=="string"?E.priority.toLowerCase():void 0){case"low":M+="; Priority=Low";break;case"medium":M+="; Priority=Medium";break;case"high":M+="; 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":M+="; SameSite=Strict";break;case"lax":M+="; SameSite=Lax";break;case"none":M+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${E.sameSite}`)}return M}function v(x){if(x.indexOf("%")===-1)return x;try{return decodeURIComponent(x)}catch{return x}}function S(x){return o.call(x)==="[object Date]"}return ui}YS();var Qp="popstate";function QS(i={}){function n(o,f){let{pathname:p="/",search:h="",hash:m=""}=hn(o.location.hash.substring(1));return!p.startsWith("/")&&!p.startsWith(".")&&(p="/"+p),qo("",{pathname:p,search:h,hash:m},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function r(o,f){let p=o.document.querySelector("base"),h="";if(p&&p.getAttribute("href")){let m=o.location.href,d=m.indexOf("#");h=d===-1?m:m.slice(0,d)}return h+"#"+(typeof f=="string"?f:gi(f))}function s(o,f){Ut(o.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(f)})`)}return KS(n,r,s,i)}function _e(i,n){if(i===!1||i===null||typeof i>"u")throw new Error(n)}function Ut(i,n){if(!i){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function ZS(){return Math.random().toString(36).substring(2,10)}function Zp(i,n){return{usr:i.state,key:i.key,idx:n}}function qo(i,n,r=null,s){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof n=="string"?hn(n):n,state:r,key:n&&n.key||s||ZS()}}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 KS(i,n,r,s={}){let{window:o=document.defaultView,v5Compat:f=!1}=s,p=o.history,h="POP",m=null,d=v();d==null&&(d=0,p.replaceState({...p.state,idx:d},""));function v(){return(p.state||{idx:null}).idx}function S(){h="POP";let V=v(),M=V==null?null:V-d;d=V,m&&m({action:h,location:L.location,delta:M})}function x(V,M){h="PUSH";let D=qo(L.location,V,M);r&&r(D,V),d=v()+1;let G=Zp(D,d),X=L.createHref(D);try{p.pushState(G,"",X)}catch(K){if(K instanceof DOMException&&K.name==="DataCloneError")throw K;o.location.assign(X)}f&&m&&m({action:h,location:L.location,delta:1})}function C(V,M){h="REPLACE";let D=qo(L.location,V,M);r&&r(D,V),d=v();let G=Zp(D,d),X=L.createHref(D);p.replaceState(G,"",X),f&&m&&m({action:h,location:L.location,delta:0})}function E(V){return XS(V)}let L={get action(){return h},get location(){return i(o,p)},listen(V){if(m)throw new Error("A history only accepts one active listener");return o.addEventListener(Qp,S),m=V,()=>{o.removeEventListener(Qp,S),m=null}},createHref(V){return n(o,V)},createURL:E,encodeLocation(V){let M=E(V);return{pathname:M.pathname,search:M.search,hash:M.hash}},push:x,replace:C,go(V){return p.go(V)}};return L}function XS(i,n=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),_e(r,"No window.location.(origin|href) available to create URL");let s=typeof i=="string"?i:gi(i);return s=s.replace(/ $/,"%20"),!n&&s.startsWith("//")&&(s=r+s),new URL(s,r)}function pm(i,n,r="/"){return JS(i,n,r,!1)}function JS(i,n,r,s){let o=typeof n=="string"?hn(n):n,f=va(o.pathname||"/",r);if(f==null)return null;let p=mm(i);FS(p);let h=null;for(let m=0;h==null&&m<p.length;++m){let d=s1(f);h=i1(p[m],d,s)}return h}function mm(i,n=[],r=[],s=""){let o=(f,p,h)=>{let m={relativePath:h===void 0?f.path||"":h,caseSensitive:f.caseSensitive===!0,childrenIndex:p,route:f};m.relativePath.startsWith("/")&&(_e(m.relativePath.startsWith(s),`Absolute route path "${m.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(s.length));let d=ga([s,m.relativePath]),v=r.concat(m);f.children&&f.children.length>0&&(_e(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),mm(f.children,n,v,d)),!(f.path==null&&!f.index)&&n.push({path:d,score:n1(d,f.index),routesMeta:v})};return i.forEach((f,p)=>{var h;if(f.path===""||!((h=f.path)!=null&&h.includes("?")))o(f,p);else for(let m of gm(f.path))o(f,p,m)}),n}function gm(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=gm(s.join("/")),h=[];return h.push(...p.map(m=>m===""?f:[f,m].join("/"))),o&&h.push(...p),h.map(m=>i.startsWith("/")&&m===""?"/":m)}function FS(i){i.sort((n,r)=>n.score!==r.score?r.score-n.score:l1(n.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}var PS=/^:[\w-]+$/,WS=3,IS=2,e1=1,t1=10,a1=-2,Kp=i=>i==="*";function n1(i,n){let r=i.split("/"),s=r.length;return r.some(Kp)&&(s+=a1),n&&(s+=IS),r.filter(o=>!Kp(o)).reduce((o,f)=>o+(PS.test(f)?WS:f===""?e1:t1),s)}function l1(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 i1(i,n,r=!1){let{routesMeta:s}=i,o={},f="/",p=[];for(let h=0;h<s.length;++h){let m=s[h],d=h===s.length-1,v=f==="/"?n:n.slice(f.length)||"/",S=Wr({path:m.relativePath,caseSensitive:m.caseSensitive,end:d},v),x=m.route;if(!S&&d&&r&&!s[s.length-1].route.index&&(S=Wr({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},v)),!S)return null;Object.assign(o,S.params),p.push({params:o,pathname:ga([f,S.pathname]),pathnameBase:f1(ga([f,S.pathnameBase])),route:x}),S.pathnameBase!=="/"&&(f=ga([f,S.pathnameBase]))}return p}function Wr(i,n){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[r,s]=r1(i.path,i.caseSensitive,i.end),o=n.match(r);if(!o)return null;let f=o[0],p=f.replace(/(.)\/+$/,"$1"),h=o.slice(1);return{params:s.reduce((d,{paramName:v,isOptional:S},x)=>{if(v==="*"){let E=h[x]||"";p=f.slice(0,f.length-E.length).replace(/(.)\/+$/,"$1")}const C=h[x];return S&&!C?d[v]=void 0:d[v]=(C||"").replace(/%2F/g,"/"),d},{}),pathname:f,pathnameBase:p,pattern:i}}function r1(i,n=!1,r=!0){Ut(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let s=[],o="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(p,h,m)=>(s.push({paramName:h,isOptional:m!=null}),m?"/?([^\\/]+)?":"/([^\\/]+)"));return i.endsWith("*")?(s.push({paramName:"*"}),o+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":i!==""&&i!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,n?void 0:"i"),s]}function s1(i){try{return i.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return Ut(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),i}}function va(i,n){if(n==="/")return i;if(!i.toLowerCase().startsWith(n.toLowerCase()))return null;let r=n.endsWith("/")?n.length-1:n.length,s=i.charAt(r);return s&&s!=="/"?null:i.slice(r)||"/"}function u1(i,n="/"){let{pathname:r,search:s="",hash:o=""}=typeof i=="string"?hn(i):i;return{pathname:r?r.startsWith("/")?r:o1(r,n):n,search:d1(s),hash:h1(o)}}function o1(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 Lo(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 c1(i){return i.filter((n,r)=>r===0||n.route.path&&n.route.path.length>0)}function Po(i){let n=c1(i);return n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase)}function Wo(i,n,r,s=!1){let o;typeof i=="string"?o=hn(i):(o={...i},_e(!o.pathname||!o.pathname.includes("?"),Lo("?","pathname","search",o)),_e(!o.pathname||!o.pathname.includes("#"),Lo("#","pathname","hash",o)),_e(!o.search||!o.search.includes("#"),Lo("#","search","hash",o)));let f=i===""||o.pathname==="",p=f?"/":o.pathname,h;if(p==null)h=r;else{let S=n.length-1;if(!s&&p.startsWith("..")){let x=p.split("/");for(;x[0]==="..";)x.shift(),S-=1;o.pathname=x.join("/")}h=S>=0?n[S]:"/"}let m=u1(o,h),d=p&&p!=="/"&&p.endsWith("/"),v=(f||p===".")&&r.endsWith("/");return!m.pathname.endsWith("/")&&(d||v)&&(m.pathname+="/"),m}var ga=i=>i.join("/").replace(/\/\/+/g,"/"),f1=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),d1=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,h1=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i;function p1(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}var vm=["POST","PUT","PATCH","DELETE"];new Set(vm);var m1=["GET",...vm];new Set(m1);var ll=w.createContext(null);ll.displayName="DataRouter";var ns=w.createContext(null);ns.displayName="DataRouterState";var ym=w.createContext({isTransitioning:!1});ym.displayName="ViewTransition";var g1=w.createContext(new Map);g1.displayName="Fetchers";var v1=w.createContext(null);v1.displayName="Await";var qt=w.createContext(null);qt.displayName="Navigation";var bi=w.createContext(null);bi.displayName="Location";var Gt=w.createContext({outlet:null,matches:[],isDataRoute:!1});Gt.displayName="Route";var Io=w.createContext(null);Io.displayName="RouteError";function y1(i,{relative:n}={}){_e(il(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:s}=w.useContext(qt),{hash:o,pathname:f,search:p}=xi(i,{relative:n}),h=f;return r!=="/"&&(h=f==="/"?r:ga([r,f])),s.createHref({pathname:h,search:p,hash:o})}function il(){return w.useContext(bi)!=null}function Ya(){return _e(il(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(bi).location}var bm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function xm(i){w.useContext(qt).static||w.useLayoutEffect(i)}function rl(){let{isDataRoute:i}=w.useContext(Gt);return i?L1():b1()}function b1(){_e(il(),"useNavigate() may be used only in the context of a <Router> component.");let i=w.useContext(ll),{basename:n,navigator:r}=w.useContext(qt),{matches:s}=w.useContext(Gt),{pathname:o}=Ya(),f=JSON.stringify(Po(s)),p=w.useRef(!1);return xm(()=>{p.current=!0}),w.useCallback((m,d={})=>{if(Ut(p.current,bm),!p.current)return;if(typeof m=="number"){r.go(m);return}let v=Wo(m,JSON.parse(f),o,d.relative==="path");i==null&&n!=="/"&&(v.pathname=v.pathname==="/"?n:ga([n,v.pathname])),(d.replace?r.replace:r.push)(v,d.state,d)},[n,r,f,o,i])}w.createContext(null);function x1(){let{matches:i}=w.useContext(Gt),n=i[i.length-1];return n?n.params:{}}function xi(i,{relative:n}={}){let{matches:r}=w.useContext(Gt),{pathname:s}=Ya(),o=JSON.stringify(Po(r));return w.useMemo(()=>Wo(i,JSON.parse(o),s,n==="path"),[i,o,s,n])}function S1(i,n){return Sm(i,n)}function Sm(i,n,r,s){var M;_e(il(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=w.useContext(qt),{matches:f}=w.useContext(Gt),p=f[f.length-1],h=p?p.params:{},m=p?p.pathname:"/",d=p?p.pathnameBase:"/",v=p&&p.route;{let D=v&&v.path||"";Nm(m,!v||D.endsWith("*")||D.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${D}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
60
|
+
|
|
61
|
+
Please change the parent <Route path="${D}"> to <Route path="${D==="/"?"*":`${D}/*`}">.`)}let S=Ya(),x;if(n){let D=typeof n=="string"?hn(n):n;_e(d==="/"||((M=D.pathname)==null?void 0:M.startsWith(d)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${D.pathname}" was given in the \`location\` prop.`),x=D}else x=S;let C=x.pathname||"/",E=C;if(d!=="/"){let D=d.replace(/^\//,"").split("/");E="/"+C.replace(/^\//,"").split("/").slice(D.length).join("/")}let L=pm(i,{pathname:E});Ut(v||L!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),Ut(L==null||L[L.length-1].route.element!==void 0||L[L.length-1].route.Component!==void 0||L[L.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.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 V=T1(L&&L.map(D=>Object.assign({},D,{params:Object.assign({},h,D.params),pathname:ga([d,o.encodeLocation?o.encodeLocation(D.pathname).pathname:D.pathname]),pathnameBase:D.pathnameBase==="/"?d:ga([d,o.encodeLocation?o.encodeLocation(D.pathnameBase).pathname:D.pathnameBase])})),f,r,s);return n&&V?w.createElement(bi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},V):V}function N1(){let i=k1(),n=p1(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=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:f},"ErrorBoundary")," or"," ",w.createElement("code",{style:f},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},n),r?w.createElement("pre",{style:o},r):null,p)}var E1=w.createElement(N1,null),R1=class extends w.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?w.createElement(Gt.Provider,{value:this.props.routeContext},w.createElement(Io.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function w1({routeContext:i,match:n,children:r}){let s=w.useContext(ll);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),w.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 m=o.findIndex(d=>d.route.id&&(f==null?void 0:f[d.route.id])!==void 0);_e(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),o=o.slice(0,Math.min(o.length,m+1))}let p=!1,h=-1;if(r)for(let m=0;m<o.length;m++){let d=o[m];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(h=m),d.route.id){let{loaderData:v,errors:S}=r,x=d.route.loader&&!v.hasOwnProperty(d.route.id)&&(!S||S[d.route.id]===void 0);if(d.route.lazy||x){p=!0,h>=0?o=o.slice(0,h+1):o=[o[0]];break}}}return o.reduceRight((m,d,v)=>{let S,x=!1,C=null,E=null;r&&(S=f&&d.route.id?f[d.route.id]:void 0,C=d.route.errorElement||E1,p&&(h<0&&v===0?(Nm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,E=null):h===v&&(x=!0,E=d.route.hydrateFallbackElement||null)));let L=n.concat(o.slice(0,v+1)),V=()=>{let M;return S?M=C:x?M=E:d.route.Component?M=w.createElement(d.route.Component,null):d.route.element?M=d.route.element:M=m,w.createElement(w1,{match:d,routeContext:{outlet:m,matches:L,isDataRoute:r!=null},children:M})};return r&&(d.route.ErrorBoundary||d.route.errorElement||v===0)?w.createElement(R1,{location:r.location,revalidation:r.revalidation,component:C,error:S,children:V(),routeContext:{outlet:null,matches:L,isDataRoute:!0}}):V()},null)}function ec(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function C1(i){let n=w.useContext(ll);return _e(n,ec(i)),n}function j1(i){let n=w.useContext(ns);return _e(n,ec(i)),n}function A1(i){let n=w.useContext(Gt);return _e(n,ec(i)),n}function tc(i){let n=A1(i),r=n.matches[n.matches.length-1];return _e(r.route.id,`${i} can only be used on routes that contain a unique "id"`),r.route.id}function O1(){return tc("useRouteId")}function k1(){var s;let i=w.useContext(Io),n=j1("useRouteError"),r=tc("useRouteError");return i!==void 0?i:(s=n.errors)==null?void 0:s[r]}function L1(){let{router:i}=C1("useNavigate"),n=tc("useNavigate"),r=w.useRef(!1);return xm(()=>{r.current=!0}),w.useCallback(async(o,f={})=>{Ut(r.current,bm),r.current&&(typeof o=="number"?i.navigate(o):await i.navigate(o,{fromRouteId:n,...f}))},[i,n])}var Xp={};function Nm(i,n,r){!n&&!Xp[i]&&(Xp[i]=!0,Ut(!1,r))}w.memo(z1);function z1({routes:i,future:n,state:r}){return Sm(i,void 0,r,n)}function D1({to:i,replace:n,state:r,relative:s}){_e(il(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=w.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}=w.useContext(Gt),{pathname:p}=Ya(),h=rl(),m=Wo(i,Po(f),p,s==="path"),d=JSON.stringify(m);return w.useEffect(()=>{h(JSON.parse(d),{replace:n,state:r,relative:s})},[h,d,s,n,r]),null}function Yr(i){_e(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function _1({basename:i="/",children:n=null,location:r,navigationType:s="POP",navigator:o,static:f=!1}){_e(!il(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=i.replace(/^\/*/,"/"),h=w.useMemo(()=>({basename:p,navigator:o,static:f,future:{}}),[p,o,f]);typeof r=="string"&&(r=hn(r));let{pathname:m="/",search:d="",hash:v="",state:S=null,key:x="default"}=r,C=w.useMemo(()=>{let E=va(m,p);return E==null?null:{location:{pathname:E,search:d,hash:v,state:S,key:x},navigationType:s}},[p,m,d,v,S,x,s]);return Ut(C!=null,`<Router basename="${p}"> is not able to match the URL "${m}${d}${v}" because it does not start with the basename, so the <Router> won't render anything.`),C==null?null:w.createElement(qt.Provider,{value:h},w.createElement(bi.Provider,{children:n,value:C}))}function M1({children:i,location:n}){return S1(Go(i),n)}function Go(i,n=[]){let r=[];return w.Children.forEach(i,(s,o)=>{if(!w.isValidElement(s))return;let f=[...n,o];if(s.type===w.Fragment){r.push.apply(r,Go(s.props.children,f));return}_e(s.type===Yr,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),_e(!s.props.index||!s.props.children,"An index route cannot have child routes.");let p={id:s.props.id||f.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(p.children=Go(s.props.children,f)),r.push(p)}),r}var Qr="get",Zr="application/x-www-form-urlencoded";function ls(i){return i!=null&&typeof i.tagName=="string"}function U1(i){return ls(i)&&i.tagName.toLowerCase()==="button"}function B1(i){return ls(i)&&i.tagName.toLowerCase()==="form"}function H1(i){return ls(i)&&i.tagName.toLowerCase()==="input"}function V1(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function $1(i,n){return i.button===0&&(!n||n==="_self")&&!V1(i)}var Hr=null;function q1(){if(Hr===null)try{new FormData(document.createElement("form"),0),Hr=!1}catch{Hr=!0}return Hr}var G1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function zo(i){return i!=null&&!G1.has(i)?(Ut(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Zr}"`),null):i}function Y1(i,n){let r,s,o,f,p;if(B1(i)){let h=i.getAttribute("action");s=h?va(h,n):null,r=i.getAttribute("method")||Qr,o=zo(i.getAttribute("enctype"))||Zr,f=new FormData(i)}else if(U1(i)||H1(i)&&(i.type==="submit"||i.type==="image")){let h=i.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=i.getAttribute("formaction")||h.getAttribute("action");if(s=m?va(m,n):null,r=i.getAttribute("formmethod")||h.getAttribute("method")||Qr,o=zo(i.getAttribute("formenctype"))||zo(h.getAttribute("enctype"))||Zr,f=new FormData(h,i),!q1()){let{name:d,type:v,value:S}=i;if(v==="image"){let x=d?`${d}.`:"";f.append(`${x}x`,"0"),f.append(`${x}y`,"0")}else d&&f.append(d,S)}}else{if(ls(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Qr,s=null,o=Zr,p=i}return f&&o==="text/plain"&&(p=f,f=void 0),{action:s,method:r.toLowerCase(),encType:o,formData:f,body:p}}function ac(i,n){if(i===!1||i===null||typeof i>"u")throw new Error(n)}async function Q1(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 Z1(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 K1(i,n,r){let s=await Promise.all(i.map(async o=>{let f=n.routes[o.route.id];if(f){let p=await Q1(f,r);return p.links?p.links():[]}return[]}));return P1(s.flat(1).filter(Z1).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Jp(i,n,r,s,o,f){let p=(m,d)=>r[d]?m.route.id!==r[d].route.id:!0,h=(m,d)=>{var v;return r[d].pathname!==m.pathname||((v=r[d].route.path)==null?void 0:v.endsWith("*"))&&r[d].params["*"]!==m.params["*"]};return f==="assets"?n.filter((m,d)=>p(m,d)||h(m,d)):f==="data"?n.filter((m,d)=>{var S;let v=s.routes[m.route.id];if(!v||!v.hasLoader)return!1;if(p(m,d)||h(m,d))return!0;if(m.route.shouldRevalidate){let x=m.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((S=r[0])==null?void 0:S.params)||{},nextUrl:new URL(i,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function X1(i,n,{includeHydrateFallback:r}={}){return J1(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 J1(i){return[...new Set(i)]}function F1(i){let n={},r=Object.keys(i).sort();for(let s of r)n[s]=i[s];return n}function P1(i,n){let r=new Set;return new Set(n),i.reduce((s,o)=>{let f=JSON.stringify(F1(o));return r.has(f)||(r.add(f),s.push({key:f,link:o})),s},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var W1=new Set([100,101,204,205]);function I1(i,n){let r=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return r.pathname==="/"?r.pathname="_root.data":n&&va(r.pathname,n)==="/"?r.pathname=`${n.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function Em(){let i=w.useContext(ll);return ac(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function e2(){let i=w.useContext(ns);return ac(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var nc=w.createContext(void 0);nc.displayName="FrameworkContext";function Rm(){let i=w.useContext(nc);return ac(i,"You must render this element inside a <HydratedRouter> element"),i}function t2(i,n){let r=w.useContext(nc),[s,o]=w.useState(!1),[f,p]=w.useState(!1),{onFocus:h,onBlur:m,onMouseEnter:d,onMouseLeave:v,onTouchStart:S}=n,x=w.useRef(null);w.useEffect(()=>{if(i==="render"&&p(!0),i==="viewport"){let L=M=>{M.forEach(D=>{p(D.isIntersecting)})},V=new IntersectionObserver(L,{threshold:.5});return x.current&&V.observe(x.current),()=>{V.disconnect()}}},[i]),w.useEffect(()=>{if(s){let L=setTimeout(()=>{p(!0)},100);return()=>{clearTimeout(L)}}},[s]);let C=()=>{o(!0)},E=()=>{o(!1),p(!1)};return r?i!=="intent"?[f,x,{}]:[f,x,{onFocus:oi(h,C),onBlur:oi(m,E),onMouseEnter:oi(d,C),onMouseLeave:oi(v,E),onTouchStart:oi(S,C)}]:[!1,x,{}]}function oi(i,n){return r=>{i&&i(r),r.defaultPrevented||n(r)}}function a2({page:i,...n}){let{router:r}=Em(),s=w.useMemo(()=>pm(r.routes,i,r.basename),[r.routes,i,r.basename]);return s?w.createElement(l2,{page:i,matches:s,...n}):null}function n2(i){let{manifest:n,routeModules:r}=Rm(),[s,o]=w.useState([]);return w.useEffect(()=>{let f=!1;return K1(i,n,r).then(p=>{f||o(p)}),()=>{f=!0}},[i,n,r]),s}function l2({page:i,matches:n,...r}){let s=Ya(),{manifest:o,routeModules:f}=Rm(),{basename:p}=Em(),{loaderData:h,matches:m}=e2(),d=w.useMemo(()=>Jp(i,n,m,o,s,"data"),[i,n,m,o,s]),v=w.useMemo(()=>Jp(i,n,m,o,s,"assets"),[i,n,m,o,s]),S=w.useMemo(()=>{if(i===s.pathname+s.search+s.hash)return[];let E=new Set,L=!1;if(n.forEach(M=>{var G;let D=o.routes[M.route.id];!D||!D.hasLoader||(!d.some(X=>X.route.id===M.route.id)&&M.route.id in h&&((G=f[M.route.id])!=null&&G.shouldRevalidate)||D.hasClientLoader?L=!0:E.add(M.route.id))}),E.size===0)return[];let V=I1(i,p);return L&&E.size>0&&V.searchParams.set("_routes",n.filter(M=>E.has(M.route.id)).map(M=>M.route.id).join(",")),[V.pathname+V.search]},[p,h,s,o,d,n,i,f]),x=w.useMemo(()=>X1(v,o),[v,o]),C=n2(v);return w.createElement(w.Fragment,null,S.map(E=>w.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...r})),x.map(E=>w.createElement("link",{key:E,rel:"modulepreload",href:E,...r})),C.map(({key:E,link:L})=>w.createElement("link",{key:E,...L})))}function i2(...i){return n=>{i.forEach(r=>{typeof r=="function"?r(n):r!=null&&(r.current=n)})}}var wm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{wm&&(window.__reactRouterVersion="7.6.3")}catch{}function r2({basename:i,children:n,window:r}){let s=w.useRef();s.current==null&&(s.current=QS({window:r,v5Compat:!0}));let o=s.current,[f,p]=w.useState({action:o.action,location:o.location}),h=w.useCallback(m=>{w.startTransition(()=>p(m))},[p]);return w.useLayoutEffect(()=>o.listen(h),[o,h]),w.createElement(_1,{basename:i,children:n,location:f.location,navigationType:f.action,navigator:o})}var Tm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Cm=w.forwardRef(function({onClick:n,discover:r="render",prefetch:s="none",relative:o,reloadDocument:f,replace:p,state:h,target:m,to:d,preventScrollReset:v,viewTransition:S,...x},C){let{basename:E}=w.useContext(qt),L=typeof d=="string"&&Tm.test(d),V,M=!1;if(typeof d=="string"&&L&&(V=d,wm))try{let F=new URL(window.location.href),ne=d.startsWith("//")?new URL(F.protocol+d):new URL(d),pe=va(ne.pathname,E);ne.origin===F.origin&&pe!=null?d=pe+ne.search+ne.hash:M=!0}catch{Ut(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let D=y1(d,{relative:o}),[G,X,K]=t2(s,x),se=c2(d,{replace:p,state:h,target:m,preventScrollReset:v,relative:o,viewTransition:S});function re(F){n&&n(F),F.defaultPrevented||se(F)}let ee=w.createElement("a",{...x,...K,href:V||D,onClick:M||f?n:re,ref:i2(C,X),target:m,"data-discover":!L&&r==="render"?"true":void 0});return G&&!L?w.createElement(w.Fragment,null,ee,w.createElement(a2,{page:D})):ee});Cm.displayName="Link";var s2=w.forwardRef(function({"aria-current":n="page",caseSensitive:r=!1,className:s="",end:o=!1,style:f,to:p,viewTransition:h,children:m,...d},v){let S=xi(p,{relative:d.relative}),x=Ya(),C=w.useContext(ns),{navigator:E,basename:L}=w.useContext(qt),V=C!=null&&m2(S)&&h===!0,M=E.encodeLocation?E.encodeLocation(S).pathname:S.pathname,D=x.pathname,G=C&&C.navigation&&C.navigation.location?C.navigation.location.pathname:null;r||(D=D.toLowerCase(),G=G?G.toLowerCase():null,M=M.toLowerCase()),G&&L&&(G=va(G,L)||G);const X=M!=="/"&&M.endsWith("/")?M.length-1:M.length;let K=D===M||!o&&D.startsWith(M)&&D.charAt(X)==="/",se=G!=null&&(G===M||!o&&G.startsWith(M)&&G.charAt(M.length)==="/"),re={isActive:K,isPending:se,isTransitioning:V},ee=K?n:void 0,F;typeof s=="function"?F=s(re):F=[s,K?"active":null,se?"pending":null,V?"transitioning":null].filter(Boolean).join(" ");let ne=typeof f=="function"?f(re):f;return w.createElement(Cm,{...d,"aria-current":ee,className:F,ref:v,style:ne,to:p,viewTransition:h},typeof m=="function"?m(re):m)});s2.displayName="NavLink";var u2=w.forwardRef(({discover:i="render",fetcherKey:n,navigate:r,reloadDocument:s,replace:o,state:f,method:p=Qr,action:h,onSubmit:m,relative:d,preventScrollReset:v,viewTransition:S,...x},C)=>{let E=h2(),L=p2(h,{relative:d}),V=p.toLowerCase()==="get"?"get":"post",M=typeof h=="string"&&Tm.test(h),D=G=>{if(m&&m(G),G.defaultPrevented)return;G.preventDefault();let X=G.nativeEvent.submitter,K=(X==null?void 0:X.getAttribute("formmethod"))||p;E(X||G.currentTarget,{fetcherKey:n,method:K,navigate:r,replace:o,state:f,relative:d,preventScrollReset:v,viewTransition:S})};return w.createElement("form",{ref:C,method:V,action:L,onSubmit:s?m:D,...x,"data-discover":!M&&i==="render"?"true":void 0})});u2.displayName="Form";function o2(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function jm(i){let n=w.useContext(ll);return _e(n,o2(i)),n}function c2(i,{target:n,replace:r,state:s,preventScrollReset:o,relative:f,viewTransition:p}={}){let h=rl(),m=Ya(),d=xi(i,{relative:f});return w.useCallback(v=>{if($1(v,n)){v.preventDefault();let S=r!==void 0?r:gi(m)===gi(d);h(i,{replace:S,state:s,preventScrollReset:o,relative:f,viewTransition:p})}},[m,h,d,r,s,n,i,o,f,p])}var f2=0,d2=()=>`__${String(++f2)}__`;function h2(){let{router:i}=jm("useSubmit"),{basename:n}=w.useContext(qt),r=O1();return w.useCallback(async(s,o={})=>{let{action:f,method:p,encType:h,formData:m,body:d}=Y1(s,n);if(o.navigate===!1){let v=o.fetcherKey||d2();await i.fetch(v,r,o.action||f,{preventScrollReset:o.preventScrollReset,formData:m,body:d,formMethod:o.method||p,formEncType:o.encType||h,flushSync:o.flushSync})}else await i.navigate(o.action||f,{preventScrollReset:o.preventScrollReset,formData:m,body:d,formMethod:o.method||p,formEncType:o.encType||h,replace:o.replace,state:o.state,fromRouteId:r,flushSync:o.flushSync,viewTransition:o.viewTransition})},[i,n,r])}function p2(i,{relative:n}={}){let{basename:r}=w.useContext(qt),s=w.useContext(Gt);_e(s,"useFormAction must be used inside a RouteContext");let[o]=s.matches.slice(-1),f={...xi(i||".",{relative:n})},p=Ya();if(i==null){f.search=p.search;let h=new URLSearchParams(f.search),m=h.getAll("index");if(m.some(v=>v==="")){h.delete("index"),m.filter(S=>S).forEach(S=>h.append("index",S));let v=h.toString();f.search=v?`?${v}`:""}}return(!i||i===".")&&o.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(f.pathname=f.pathname==="/"?r:ga([r,f.pathname])),gi(f)}function m2(i,n={}){let r=w.useContext(ym);_e(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=jm("useViewTransitionState"),o=xi(i,{relative:n.relative});if(!r.isTransitioning)return!1;let f=va(r.currentLocation.pathname,s)||r.currentLocation.pathname,p=va(r.nextLocation.pathname,s)||r.nextLocation.pathname;return Wr(o.pathname,p)!=null||Wr(o.pathname,f)!=null}[...W1];function g2(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 v2="/api/plugin/site-generator-plugin",y2=`${`//${document.location.host}`}${v2}`;let Am;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');Am=Vr.dataset.googleRecaptchaSiteKey}const Do=Am;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: ${g2(n)}`}}}const rt=w.forwardRef((i,n)=>{const{label:r,severity:s="primary",loading:o,children:f,onClick:p,className:h="",disabled:m,...d}=i,[v,S]=w.useState(!1),x=v||o,C=["Button",s==="secondary"?"secondary":"",x?"loading":"",h].filter(Boolean).join(" "),E=async L=>{if(p)try{L.preventDefault(),S(!0),await p(L)}finally{S(!1)}};return b.jsxs("button",{ref:n,type:"button",className:C,onClick:E,disabled:m||x,...d,children:[!x&&f,!x&&r]})});rt.displayName="Button";function Om({initialValue:i="",placeholder:n,submitLabel:r,onSubmit:s,isLoading:o=!1,error:f}){const{t:p}=ot(),[h,m]=w.useState(i),d=S=>{m(S.target.value)},v=async()=>{h.trim()&&await s(h.trim())};return b.jsxs("div",{className:"PromptForm",children:[f&&b.jsx("div",{className:"Alert error mb-3",children:b.jsx("p",{children:f})}),b.jsx("textarea",{className:"PromptForm-textarea",placeholder:n||p("createPromptPlaceholder"),value:h,onChange:d,rows:6,disabled:o}),b.jsx(rt,{onClick:v,loading:o,disabled:!h.trim()||o,className:"PromptForm-button mt-3",children:r})]})}const Fp=i=>{let n;const r=new Set,s=(d,v)=>{const S=typeof d=="function"?d(n):d;if(!Object.is(S,n)){const x=n;n=v??(typeof S!="object"||S===null)?S:Object.assign({},n,S),r.forEach(C=>C(n,x))}},o=()=>n,h={setState:s,getState:o,getInitialState:()=>m,subscribe:d=>(r.add(d),()=>r.delete(d))},m=n=i(s,o,h);return h},b2=i=>i?Fp(i):Fp,x2=i=>i;function S2(i,n=x2){const r=Bo.useSyncExternalStore(i.subscribe,()=>n(i.getState()),()=>n(i.getInitialState()));return Bo.useDebugValue(r),r}const Pp=i=>{const n=b2(i),r=s=>S2(n,s);return Object.assign(r,n),r},N2=i=>i?Pp(i):Pp,lc="site-generator-session-token";function Wp(i){try{sessionStorage.setItem(lc,i)}catch(n){console.error("Failed to save session token",n)}}function vi(){try{return sessionStorage.getItem(lc)??void 0}catch(i){console.error("Failed to get session token",i)}}function E2(){try{sessionStorage.removeItem(lc)}catch(i){console.error("Failed to remove session token",i)}}const R2=2e3,nl=new Map;function w2(i){if(nl.has(i))return;const n=window.setInterval(()=>{T2(i)},R2);nl.set(i,n)}function $r(i){const n=nl.get(i);n&&(window.clearInterval(n),nl.delete(i))}function ic(){nl.forEach(i=>{window.clearInterval(i)}),nl.clear()}async function T2(i){const n=vi();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;C2(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 C2(i){const{updateStep:n}=pn.getState();n(i)}function _o(i){ic(),i.steps.forEach(n=>{n.status==="pending"&&w2(n.stepNumber)})}const pn=N2((i,n)=>({workSession:void 0,isLoading:!1,error:void 0,activeStepNumber:void 0,setWorkSession:r=>{i({workSession:r}),r&&_o(r)},updateStep:r=>{const{workSession:s}=n();if(!s)return;const o=s.steps.map(p=>p.stepNumber===r.stepNumber?r:p),f={...s,steps:o};i({workSession:f}),r.status==="pending"&&_o(f)},appendNewStep:r=>{const{workSession:s}=n();if(!s)return;const o={...s,steps:[...s.steps,r]};i({workSession:o}),r.status==="pending"&&_o(o)},setIsLoading:r=>i({isLoading:r}),setError:r=>i({error:r}),setActiveStepNumber:r=>i({activeStepNumber:r}),resetSession:()=>{ic(),i({workSession:void 0,isLoading:!1,error:void 0,activeStepNumber:void 0})}}));function is({size:i="medium"}){return b.jsx("div",{className:`Spinner Spinner-${i}`})}function Kr({activeStep:i}){const{t:n}=ot(),r=rl(),{workSession:s}=pn(),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(rt,{className:`Sidebar-button ${i===void 0?"active":""}`,onClick:o,children:n("startAgain")})}):b.jsxs("div",{className:"Sidebar",children:[b.jsx(rt,{className:`Sidebar-button ${i===void 0?"active":""}`,onClick:o,children:n("startAgain")}),b.jsx("div",{className:"Sidebar-steps",children:s.steps.map(p=>b.jsxs("div",{className:"Sidebar-step",children:[b.jsx(rt,{className:`Sidebar-button ${i===p.stepNumber?"active":""} ${p.status==="pending"?"has-spinner":""}`,onClick:()=>f(p.stepNumber),children:n("stepTitle",{stepNumber:p.stepNumber,kind:n(p.kind)})}),p.status==="pending"&&b.jsx("div",{className:"Sidebar-spinner",children:b.jsx(is,{size:"small"})})]},p.stepNumber))})]})}function Tt({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 j2(){const{t:i}=ot(),n=rl(),[r,s]=w.useState(!1),[o,f]=w.useState(void 0),{workSession:p,appendNewStep:h}=pn(),m=async d=>{if(!p)return;s(!0),f(void 0);const v=vi();if(!v){f(i("sessionExpired")),s(!1);return}try{const S=await Ga({command:"createSiteSchema",sessionToken:v,prompt:d});if(S.success&&S.result){const x=S.result;h(x),await n(`/step/${x.stepNumber}`)}else f(i("promptSubmissionFailed"))}catch(S){console.error("Error submitting prompt:",S),f(i("errorOccurred"))}finally{s(!1)}};return b.jsxs("div",{className:"RouteLayout",children:[b.jsx("div",{className:"RouteLayout-main",children:b.jsxs(Tt,{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(Om,{submitLabel:i("createSchema"),onSubmit:m,isLoading:r,error:o})]})}),b.jsx("div",{className:"RouteLayout-sidebar",children:b.jsx(Kr,{activeStep:void 0})})]})}function A2(i){return"siteId"in i}function rc(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var mn=rc();function km(i){mn=i}var hi={exec:()=>null};function Se(i,n=""){let r=typeof i=="string"?i:i.source;const s={replace:(o,f)=>{let p=typeof f=="string"?f:f.source;return p=p.replace(ut.caret,"$1"),r=r.replace(o,p),s},getRegex:()=>new RegExp(r,n)};return s}var ut={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:i=>new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}#`),htmlBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}<(?:[a-z].*>|!--)`,"i")},O2=/^(?:[ \t]*(?:\n|$))+/,k2=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,L2=/^ {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+|$)/,sc=/(?:[*+-]|\d{1,9}[.)])/,Lm=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,zm=Se(Lm).replace(/bull/g,sc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),D2=Se(Lm).replace(/bull/g,sc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),uc=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,_2=/^[^\n]+/,oc=/(?!\s*\])(?:\\.|[^\[\]\\])+/,M2=Se(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",oc).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),U2=Se(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,sc).getRegex(),rs="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",cc=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,B2=Se("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",cc).replace("tag",rs).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Dm=Se(uc).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",rs).getRegex(),H2=Se(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Dm).getRegex(),fc={blockquote:H2,code:k2,def:M2,fences:L2,heading:z2,hr:Si,html:B2,lheading:zm,list:U2,newline:O2,paragraph:Dm,table:hi,text:_2},Ip=Se("^ *([^\\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",rs).getRegex(),V2={...fc,lheading:D2,table:Ip,paragraph:Se(uc).replace("hr",Si).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ip).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",rs).getRegex()},$2={...fc,html:Se(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",cc).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:hi,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Se(uc).replace("hr",Si).replace("heading",` *#{1,6} *[^
|
|
62
|
+
]`).replace("lheading",zm).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},q2=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,G2=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,_m=/^( {2,}|\\)\n(?!\s*$)/,Y2=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ss=/[\p{P}\p{S}]/u,dc=/[\s\p{P}\p{S}]/u,Mm=/[^\s\p{P}\p{S}]/u,Q2=Se(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,dc).getRegex(),Um=/(?!~)[\p{P}\p{S}]/u,Z2=/(?!~)[\s\p{P}\p{S}]/u,K2=/(?:[^\s\p{P}\p{S}]|~)/u,X2=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Bm=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,J2=Se(Bm,"u").replace(/punct/g,ss).getRegex(),F2=Se(Bm,"u").replace(/punct/g,Um).getRegex(),Hm="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",P2=Se(Hm,"gu").replace(/notPunctSpace/g,Mm).replace(/punctSpace/g,dc).replace(/punct/g,ss).getRegex(),W2=Se(Hm,"gu").replace(/notPunctSpace/g,K2).replace(/punctSpace/g,Z2).replace(/punct/g,Um).getRegex(),I2=Se("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Mm).replace(/punctSpace/g,dc).replace(/punct/g,ss).getRegex(),eN=Se(/\\(punct)/,"gu").replace(/punct/g,ss).getRegex(),tN=Se(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),aN=Se(cc).replace("(?:-->|$)","-->").getRegex(),nN=Se("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",aN).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ir=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,lN=Se(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Ir).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Vm=Se(/^!?\[(label)\]\[(ref)\]/).replace("label",Ir).replace("ref",oc).getRegex(),$m=Se(/^!?\[(ref)\](?:\[\])?/).replace("ref",oc).getRegex(),iN=Se("reflink|nolink(?!\\()","g").replace("reflink",Vm).replace("nolink",$m).getRegex(),hc={_backpedal:hi,anyPunctuation:eN,autolink:tN,blockSkip:X2,br:_m,code:G2,del:hi,emStrongLDelim:J2,emStrongRDelimAst:P2,emStrongRDelimUnd:I2,escape:q2,link:lN,nolink:$m,punctuation:Q2,reflink:Vm,reflinkSearch:iN,tag:nN,text:Y2,url:hi},rN={...hc,link:Se(/^!?\[(label)\]\((.*?)\)/).replace("label",Ir).getRegex(),reflink:Se(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ir).getRegex()},Yo={...hc,emStrongRDelimAst:W2,emStrongLDelim:F2,url:Se(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},sN={...Yo,br:Se(_m).replace("{2,}","*").getRegex(),text:Se(Yo.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},qr={normal:fc,gfm:V2,pedantic:$2},ci={normal:hc,gfm:Yo,breaks:sN,pedantic:rN},uN={"&":"&","<":"<",">":">",'"':""","'":"'"},em=i=>uN[i];function Pt(i,n){if(n){if(ut.escapeTest.test(i))return i.replace(ut.escapeReplace,em)}else if(ut.escapeTestNoEncode.test(i))return i.replace(ut.escapeReplaceNoEncode,em);return i}function tm(i){try{i=encodeURI(i).replace(ut.percentDecode,"%")}catch{return null}return i}function am(i,n){var f;const r=i.replace(ut.findPipe,(p,h,m)=>{let d=!1,v=h;for(;--v>=0&&m[v]==="\\";)d=!d;return d?"|":" |"}),s=r.split(ut.splitPipe);let o=0;if(s[0].trim()||s.shift(),s.length>0&&!((f=s.at(-1))!=null&&f.trim())&&s.pop(),n)if(s.length>n)s.splice(n);else for(;s.length<n;)s.push("");for(;o<s.length;o++)s[o]=s[o].trim().replace(ut.slashPipe,"|");return s}function fi(i,n,r){const s=i.length;if(s===0)return"";let o=0;for(;o<s&&i.charAt(s-o-1)===n;)o++;return i.slice(0,s-o)}function oN(i,n){if(i.indexOf(n[1])===-1)return-1;let r=0;for(let s=0;s<i.length;s++)if(i[s]==="\\")s++;else if(i[s]===n[0])r++;else if(i[s]===n[1]&&(r--,r<0))return s;return r>0?-2:-1}function nm(i,n,r,s,o){const f=n.href,p=n.title||null,h=i[1].replace(o.other.outputLinkReplace,"$1");s.state.inLink=!0;const m={type:i[0].charAt(0)==="!"?"image":"link",raw:r,href:f,title:p,text:h,tokens:s.inlineTokens(h)};return s.state.inLink=!1,m}function cN(i,n,r){const s=i.match(r.other.indentCodeCompensation);if(s===null)return n;const o=s[1];return n.split(`
|
|
63
|
+
`).map(f=>{const p=f.match(r.other.beginningSpace);if(p===null)return f;const[h]=p;return h.length>=o.length?f.slice(o.length):f}).join(`
|
|
64
|
+
`)}var es=class{constructor(i){Oe(this,"options");Oe(this,"rules");Oe(this,"lexer");this.options=i||mn}space(i){const n=this.rules.block.newline.exec(i);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(i){const n=this.rules.block.code.exec(i);if(n){const r=n[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:fi(r,`
|
|
65
|
+
`)}}}fences(i){const n=this.rules.block.fences.exec(i);if(n){const r=n[0],s=cN(r,n[3]||"",this.rules);return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:s}}}heading(i){const n=this.rules.block.heading.exec(i);if(n){let r=n[2].trim();if(this.rules.other.endingHash.test(r)){const s=fi(r,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(r=s.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(i){const n=this.rules.block.hr.exec(i);if(n)return{type:"hr",raw:fi(n[0],`
|
|
66
|
+
`)}}blockquote(i){const n=this.rules.block.blockquote.exec(i);if(n){let r=fi(n[0],`
|
|
67
|
+
`).split(`
|
|
68
|
+
`),s="",o="";const f=[];for(;r.length>0;){let p=!1;const h=[];let m;for(m=0;m<r.length;m++)if(this.rules.other.blockquoteStart.test(r[m]))h.push(r[m]),p=!0;else if(!p)h.push(r[m]);else break;r=r.slice(m);const d=h.join(`
|
|
69
|
+
`),v=d.replace(this.rules.other.blockquoteSetextReplace,`
|
|
70
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
|
|
71
|
+
${d}`:d,o=o?`${o}
|
|
72
|
+
${v}`:v;const S=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(v,f,!0),this.lexer.state.top=S,r.length===0)break;const x=f.at(-1);if((x==null?void 0:x.type)==="code")break;if((x==null?void 0:x.type)==="blockquote"){const C=x,E=C.raw+`
|
|
73
|
+
`+r.join(`
|
|
74
|
+
`),L=this.blockquote(E);f[f.length-1]=L,s=s.substring(0,s.length-C.raw.length)+L.raw,o=o.substring(0,o.length-C.text.length)+L.text;break}else if((x==null?void 0:x.type)==="list"){const C=x,E=C.raw+`
|
|
75
|
+
`+r.join(`
|
|
76
|
+
`),L=this.list(E);f[f.length-1]=L,s=s.substring(0,s.length-x.raw.length)+L.raw,o=o.substring(0,o.length-C.raw.length)+L.raw,r=E.substring(f.at(-1).raw.length).split(`
|
|
77
|
+
`);continue}}return{type:"blockquote",raw:s,tokens:f,text:o}}}list(i){let n=this.rules.block.list.exec(i);if(n){let r=n[1].trim();const s=r.length>1,o={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:!1,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?r:"[*+-]");const f=this.rules.other.listItemRegex(r);let p=!1;for(;i;){let m=!1,d="",v="";if(!(n=f.exec(i))||this.rules.block.hr.test(i))break;d=n[0],i=i.substring(d.length);let S=n[2].split(`
|
|
78
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,M=>" ".repeat(3*M.length)),x=i.split(`
|
|
79
|
+
`,1)[0],C=!S.trim(),E=0;if(this.options.pedantic?(E=2,v=S.trimStart()):C?E=n[1].length+1:(E=n[2].search(this.rules.other.nonSpaceChar),E=E>4?1:E,v=S.slice(E),E+=n[1].length),C&&this.rules.other.blankLine.test(x)&&(d+=x+`
|
|
80
|
+
`,i=i.substring(x.length+1),m=!0),!m){const M=this.rules.other.nextBulletRegex(E),D=this.rules.other.hrRegex(E),G=this.rules.other.fencesBeginRegex(E),X=this.rules.other.headingBeginRegex(E),K=this.rules.other.htmlBeginRegex(E);for(;i;){const se=i.split(`
|
|
81
|
+
`,1)[0];let re;if(x=se,this.options.pedantic?(x=x.replace(this.rules.other.listReplaceNesting," "),re=x):re=x.replace(this.rules.other.tabCharGlobal," "),G.test(x)||X.test(x)||K.test(x)||M.test(x)||D.test(x))break;if(re.search(this.rules.other.nonSpaceChar)>=E||!x.trim())v+=`
|
|
82
|
+
`+re.slice(E);else{if(C||S.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||G.test(S)||X.test(S)||D.test(S))break;v+=`
|
|
83
|
+
`+x}!C&&!x.trim()&&(C=!0),d+=se+`
|
|
84
|
+
`,i=i.substring(se.length+1),S=re.slice(E)}}o.loose||(p?o.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(p=!0));let L=null,V;this.options.gfm&&(L=this.rules.other.listIsTask.exec(v),L&&(V=L[0]!=="[ ] ",v=v.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:d,task:!!L,checked:V,loose:!1,text:v,tokens:[]}),o.raw+=d}const h=o.items.at(-1);if(h)h.raw=h.raw.trimEnd(),h.text=h.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let m=0;m<o.items.length;m++)if(this.lexer.state.top=!1,o.items[m].tokens=this.lexer.blockTokens(o.items[m].text,[]),!o.loose){const d=o.items[m].tokens.filter(S=>S.type==="space"),v=d.length>0&&d.some(S=>this.rules.other.anyLine.test(S.raw));o.loose=v}if(o.loose)for(let m=0;m<o.items.length;m++)o.items[m].loose=!0;return o}}html(i){const n=this.rules.block.html.exec(i);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(i){const n=this.rules.block.def.exec(i);if(n){const r=n[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:s,title:o}}}table(i){var p;const n=this.rules.block.table.exec(i);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;const r=am(n[1]),s=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=(p=n[3])!=null&&p.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
85
|
+
`):[],f={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===s.length){for(const h of s)this.rules.other.tableAlignRight.test(h)?f.align.push("right"):this.rules.other.tableAlignCenter.test(h)?f.align.push("center"):this.rules.other.tableAlignLeft.test(h)?f.align.push("left"):f.align.push(null);for(let h=0;h<r.length;h++)f.header.push({text:r[h],tokens:this.lexer.inline(r[h]),header:!0,align:f.align[h]});for(const h of o)f.rows.push(am(h,f.header.length).map((m,d)=>({text:m,tokens:this.lexer.inline(m),header:!1,align:f.align[d]})));return f}}lheading(i){const n=this.rules.block.lheading.exec(i);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(i){const n=this.rules.block.paragraph.exec(i);if(n){const r=n[1].charAt(n[1].length-1)===`
|
|
86
|
+
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(i){const n=this.rules.block.text.exec(i);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(i){const n=this.rules.inline.escape.exec(i);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(i){const n=this.rules.inline.tag.exec(i);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(i){const n=this.rules.inline.link.exec(i);if(n){const r=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const f=fi(r.slice(0,-1),"\\");if((r.length-f.length)%2===0)return}else{const f=oN(n[2],"()");if(f===-2)return;if(f>-1){const h=(n[0].indexOf("!")===0?5:4)+n[1].length+f;n[2]=n[2].substring(0,f),n[0]=n[0].substring(0,h).trim(),n[3]=""}}let s=n[2],o="";if(this.options.pedantic){const f=this.rules.other.pedanticHrefTitle.exec(s);f&&(s=f[1],o=f[3])}else o=n[3]?n[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?s=s.slice(1):s=s.slice(1,-1)),nm(n,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(i,n){let r;if((r=this.rules.inline.reflink.exec(i))||(r=this.rules.inline.nolink.exec(i))){const s=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=n[s.toLowerCase()];if(!o){const f=r[0].charAt(0);return{type:"text",raw:f,text:f}}return nm(r,o,r[0],this.lexer,this.rules)}}emStrong(i,n,r=""){let s=this.rules.inline.emStrongLDelim.exec(i);if(!s||s[3]&&r.match(this.rules.other.unicodeAlphaNumeric))return;if(!(s[1]||s[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const f=[...s[0]].length-1;let p,h,m=f,d=0;const v=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(v.lastIndex=0,n=n.slice(-1*i.length+f);(s=v.exec(n))!=null;){if(p=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!p)continue;if(h=[...p].length,s[3]||s[4]){m+=h;continue}else if((s[5]||s[6])&&f%3&&!((f+h)%3)){d+=h;continue}if(m-=h,m>0)continue;h=Math.min(h,h+m+d);const S=[...s[0]][0].length,x=i.slice(0,f+s.index+S+h);if(Math.min(f,h)%2){const E=x.slice(1,-1);return{type:"em",raw:x,text:E,tokens:this.lexer.inlineTokens(E)}}const C=x.slice(2,-2);return{type:"strong",raw:x,text:C,tokens:this.lexer.inlineTokens(C)}}}}codespan(i){const n=this.rules.inline.code.exec(i);if(n){let r=n[2].replace(this.rules.other.newLineCharGlobal," ");const s=this.rules.other.nonSpaceChar.test(r),o=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return s&&o&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:n[0],text:r}}}br(i){const n=this.rules.inline.br.exec(i);if(n)return{type:"br",raw:n[0]}}del(i){const n=this.rules.inline.del.exec(i);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(i){const n=this.rules.inline.autolink.exec(i);if(n){let r,s;return n[2]==="@"?(r=n[1],s="mailto:"+r):(r=n[1],s=r),{type:"link",raw:n[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(i){var r;let n;if(n=this.rules.inline.url.exec(i)){let s,o;if(n[2]==="@")s=n[0],o="mailto:"+s;else{let f;do f=n[0],n[0]=((r=this.rules.inline._backpedal.exec(n[0]))==null?void 0:r[0])??"";while(f!==n[0]);s=n[0],n[1]==="www."?o="http://"+n[0]:o=n[0]}return{type:"link",raw:n[0],text:s,href:o,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(i){const n=this.rules.inline.text.exec(i);if(n){const r=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:r}}}},pa=class Qo{constructor(n){Oe(this,"tokens");Oe(this,"options");Oe(this,"state");Oe(this,"tokenizer");Oe(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=n||mn,this.options.tokenizer=this.options.tokenizer||new es,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const r={other:ut,block:qr.normal,inline:ci.normal};this.options.pedantic?(r.block=qr.pedantic,r.inline=ci.pedantic):this.options.gfm&&(r.block=qr.gfm,this.options.breaks?r.inline=ci.breaks:r.inline=ci.gfm),this.tokenizer.rules=r}static get rules(){return{block:qr,inline:ci}}static lex(n,r){return new Qo(r).lex(n)}static lexInline(n,r){return new Qo(r).inlineTokens(n)}lex(n){n=n.replace(ut.carriageReturn,`
|
|
87
|
+
`),this.blockTokens(n,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){const s=this.inlineQueue[r];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(n,r=[],s=!1){var o,f,p;for(this.options.pedantic&&(n=n.replace(ut.tabCharGlobal," ").replace(ut.spaceLine,""));n;){let h;if((f=(o=this.options.extensions)==null?void 0:o.block)!=null&&f.some(d=>(h=d.call({lexer:this},n,r))?(n=n.substring(h.raw.length),r.push(h),!0):!1))continue;if(h=this.tokenizer.space(n)){n=n.substring(h.raw.length);const d=r.at(-1);h.raw.length===1&&d!==void 0?d.raw+=`
|
|
88
|
+
`:r.push(h);continue}if(h=this.tokenizer.code(n)){n=n.substring(h.raw.length);const d=r.at(-1);(d==null?void 0:d.type)==="paragraph"||(d==null?void 0:d.type)==="text"?(d.raw+=`
|
|
89
|
+
`+h.raw,d.text+=`
|
|
90
|
+
`+h.text,this.inlineQueue.at(-1).src=d.text):r.push(h);continue}if(h=this.tokenizer.fences(n)){n=n.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.heading(n)){n=n.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.hr(n)){n=n.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.blockquote(n)){n=n.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.list(n)){n=n.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.html(n)){n=n.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.def(n)){n=n.substring(h.raw.length);const d=r.at(-1);(d==null?void 0:d.type)==="paragraph"||(d==null?void 0:d.type)==="text"?(d.raw+=`
|
|
91
|
+
`+h.raw,d.text+=`
|
|
92
|
+
`+h.raw,this.inlineQueue.at(-1).src=d.text):this.tokens.links[h.tag]||(this.tokens.links[h.tag]={href:h.href,title:h.title});continue}if(h=this.tokenizer.table(n)){n=n.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.lheading(n)){n=n.substring(h.raw.length),r.push(h);continue}let m=n;if((p=this.options.extensions)!=null&&p.startBlock){let d=1/0;const v=n.slice(1);let S;this.options.extensions.startBlock.forEach(x=>{S=x.call({lexer:this},v),typeof S=="number"&&S>=0&&(d=Math.min(d,S))}),d<1/0&&d>=0&&(m=n.substring(0,d+1))}if(this.state.top&&(h=this.tokenizer.paragraph(m))){const d=r.at(-1);s&&(d==null?void 0:d.type)==="paragraph"?(d.raw+=`
|
|
93
|
+
`+h.raw,d.text+=`
|
|
94
|
+
`+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=d.text):r.push(h),s=m.length!==n.length,n=n.substring(h.raw.length);continue}if(h=this.tokenizer.text(n)){n=n.substring(h.raw.length);const d=r.at(-1);(d==null?void 0:d.type)==="text"?(d.raw+=`
|
|
95
|
+
`+h.raw,d.text+=`
|
|
96
|
+
`+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=d.text):r.push(h);continue}if(n){const d="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return this.state.top=!0,r}inline(n,r=[]){return this.inlineQueue.push({src:n,tokens:r}),r}inlineTokens(n,r=[]){var h,m,d;let s=n,o=null;if(this.tokens.links){const v=Object.keys(this.tokens.links);if(v.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)v.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,o.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(o=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let f=!1,p="";for(;n;){f||(p=""),f=!1;let v;if((m=(h=this.options.extensions)==null?void 0:h.inline)!=null&&m.some(x=>(v=x.call({lexer:this},n,r))?(n=n.substring(v.raw.length),r.push(v),!0):!1))continue;if(v=this.tokenizer.escape(n)){n=n.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.tag(n)){n=n.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.link(n)){n=n.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.reflink(n,this.tokens.links)){n=n.substring(v.raw.length);const x=r.at(-1);v.type==="text"&&(x==null?void 0:x.type)==="text"?(x.raw+=v.raw,x.text+=v.text):r.push(v);continue}if(v=this.tokenizer.emStrong(n,s,p)){n=n.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.codespan(n)){n=n.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.br(n)){n=n.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.del(n)){n=n.substring(v.raw.length),r.push(v);continue}if(v=this.tokenizer.autolink(n)){n=n.substring(v.raw.length),r.push(v);continue}if(!this.state.inLink&&(v=this.tokenizer.url(n))){n=n.substring(v.raw.length),r.push(v);continue}let S=n;if((d=this.options.extensions)!=null&&d.startInline){let x=1/0;const C=n.slice(1);let E;this.options.extensions.startInline.forEach(L=>{E=L.call({lexer:this},C),typeof E=="number"&&E>=0&&(x=Math.min(x,E))}),x<1/0&&x>=0&&(S=n.substring(0,x+1))}if(v=this.tokenizer.inlineText(S)){n=n.substring(v.raw.length),v.raw.slice(-1)!=="_"&&(p=v.raw.slice(-1)),f=!0;const x=r.at(-1);(x==null?void 0:x.type)==="text"?(x.raw+=v.raw,x.text+=v.text):r.push(v);continue}if(n){const x="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(x);break}else throw new Error(x)}}return r}},ts=class{constructor(i){Oe(this,"options");Oe(this,"parser");this.options=i||mn}space(i){return""}code({text:i,lang:n,escaped:r}){var f;const s=(f=(n||"").match(ut.notSpaceStart))==null?void 0:f[0],o=i.replace(ut.endingNewline,"")+`
|
|
97
|
+
`;return s?'<pre><code class="language-'+Pt(s)+'">'+(r?o:Pt(o,!0))+`</code></pre>
|
|
98
|
+
`:"<pre><code>"+(r?o:Pt(o,!0))+`</code></pre>
|
|
99
|
+
`}blockquote({tokens:i}){return`<blockquote>
|
|
100
|
+
${this.parser.parse(i)}</blockquote>
|
|
101
|
+
`}html({text:i}){return i}heading({tokens:i,depth:n}){return`<h${n}>${this.parser.parseInline(i)}</h${n}>
|
|
102
|
+
`}hr(i){return`<hr>
|
|
103
|
+
`}list(i){const n=i.ordered,r=i.start;let s="";for(let p=0;p<i.items.length;p++){const h=i.items[p];s+=this.listitem(h)}const o=n?"ol":"ul",f=n&&r!==1?' start="'+r+'"':"";return"<"+o+f+`>
|
|
104
|
+
`+s+"</"+o+`>
|
|
105
|
+
`}listitem(i){var r;let n="";if(i.task){const s=this.checkbox({checked:!!i.checked});i.loose?((r=i.tokens[0])==null?void 0:r.type)==="paragraph"?(i.tokens[0].text=s+" "+i.tokens[0].text,i.tokens[0].tokens&&i.tokens[0].tokens.length>0&&i.tokens[0].tokens[0].type==="text"&&(i.tokens[0].tokens[0].text=s+" "+Pt(i.tokens[0].tokens[0].text),i.tokens[0].tokens[0].escaped=!0)):i.tokens.unshift({type:"text",raw:s+" ",text:s+" ",escaped:!0}):n+=s+" "}return n+=this.parser.parse(i.tokens,!!i.loose),`<li>${n}</li>
|
|
106
|
+
`}checkbox({checked:i}){return"<input "+(i?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:i}){return`<p>${this.parser.parseInline(i)}</p>
|
|
107
|
+
`}table(i){let n="",r="";for(let o=0;o<i.header.length;o++)r+=this.tablecell(i.header[o]);n+=this.tablerow({text:r});let s="";for(let o=0;o<i.rows.length;o++){const f=i.rows[o];r="";for(let p=0;p<f.length;p++)r+=this.tablecell(f[p]);s+=this.tablerow({text:r})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
|
|
108
|
+
<thead>
|
|
109
|
+
`+n+`</thead>
|
|
110
|
+
`+s+`</table>
|
|
111
|
+
`}tablerow({text:i}){return`<tr>
|
|
112
|
+
${i}</tr>
|
|
113
|
+
`}tablecell(i){const n=this.parser.parseInline(i.tokens),r=i.header?"th":"td";return(i.align?`<${r} align="${i.align}">`:`<${r}>`)+n+`</${r}>
|
|
114
|
+
`}strong({tokens:i}){return`<strong>${this.parser.parseInline(i)}</strong>`}em({tokens:i}){return`<em>${this.parser.parseInline(i)}</em>`}codespan({text:i}){return`<code>${Pt(i,!0)}</code>`}br(i){return"<br>"}del({tokens:i}){return`<del>${this.parser.parseInline(i)}</del>`}link({href:i,title:n,tokens:r}){const s=this.parser.parseInline(r),o=tm(i);if(o===null)return s;i=o;let f='<a href="'+i+'"';return n&&(f+=' title="'+Pt(n)+'"'),f+=">"+s+"</a>",f}image({href:i,title:n,text:r,tokens:s}){s&&(r=this.parser.parseInline(s,this.parser.textRenderer));const o=tm(i);if(o===null)return Pt(r);i=o;let f=`<img src="${i}" alt="${r}"`;return n&&(f+=` title="${Pt(n)}"`),f+=">",f}text(i){return"tokens"in i&&i.tokens?this.parser.parseInline(i.tokens):"escaped"in i&&i.escaped?i.text:Pt(i.text)}},pc=class{strong({text:i}){return i}em({text:i}){return i}codespan({text:i}){return i}del({text:i}){return i}html({text:i}){return i}text({text:i}){return i}link({text:i}){return""+i}image({text:i}){return""+i}br(){return""}},ma=class Zo{constructor(n){Oe(this,"options");Oe(this,"renderer");Oe(this,"textRenderer");this.options=n||mn,this.options.renderer=this.options.renderer||new ts,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new pc}static parse(n,r){return new Zo(r).parse(n)}static parseInline(n,r){return new Zo(r).parseInline(n)}parse(n,r=!0){var o,f;let s="";for(let p=0;p<n.length;p++){const h=n[p];if((f=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&f[h.type]){const d=h,v=this.options.extensions.renderers[d.type].call({parser:this},d);if(v!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(d.type)){s+=v||"";continue}}const m=h;switch(m.type){case"space":{s+=this.renderer.space(m);continue}case"hr":{s+=this.renderer.hr(m);continue}case"heading":{s+=this.renderer.heading(m);continue}case"code":{s+=this.renderer.code(m);continue}case"table":{s+=this.renderer.table(m);continue}case"blockquote":{s+=this.renderer.blockquote(m);continue}case"list":{s+=this.renderer.list(m);continue}case"html":{s+=this.renderer.html(m);continue}case"paragraph":{s+=this.renderer.paragraph(m);continue}case"text":{let d=m,v=this.renderer.text(d);for(;p+1<n.length&&n[p+1].type==="text";)d=n[++p],v+=`
|
|
115
|
+
`+this.renderer.text(d);r?s+=this.renderer.paragraph({type:"paragraph",raw:v,text:v,tokens:[{type:"text",raw:v,text:v,escaped:!0}]}):s+=v;continue}default:{const d='Token with "'+m.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}return s}parseInline(n,r=this.renderer){var o,f;let s="";for(let p=0;p<n.length;p++){const h=n[p];if((f=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&f[h.type]){const d=this.options.extensions.renderers[h.type].call({parser:this},h);if(d!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(h.type)){s+=d||"";continue}}const m=h;switch(m.type){case"escape":{s+=r.text(m);break}case"html":{s+=r.html(m);break}case"link":{s+=r.link(m);break}case"image":{s+=r.image(m);break}case"strong":{s+=r.strong(m);break}case"em":{s+=r.em(m);break}case"codespan":{s+=r.codespan(m);break}case"br":{s+=r.br(m);break}case"del":{s+=r.del(m);break}case"text":{s+=r.text(m);break}default:{const d='Token with "'+m.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}return s}},Mo,Xr=(Mo=class{constructor(i){Oe(this,"options");Oe(this,"block");this.options=i||mn}preprocess(i){return i}postprocess(i){return i}processAllTokens(i){return i}provideLexer(){return this.block?pa.lex:pa.lexInline}provideParser(){return this.block?ma.parse:ma.parseInline}},Oe(Mo,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),Mo),fN=class{constructor(...i){Oe(this,"defaults",rc());Oe(this,"options",this.setOptions);Oe(this,"parse",this.parseMarkdown(!0));Oe(this,"parseInline",this.parseMarkdown(!1));Oe(this,"Parser",ma);Oe(this,"Renderer",ts);Oe(this,"TextRenderer",pc);Oe(this,"Lexer",pa);Oe(this,"Tokenizer",es);Oe(this,"Hooks",Xr);this.use(...i)}walkTokens(i,n){var s,o;let r=[];for(const f of i)switch(r=r.concat(n.call(this,f)),f.type){case"table":{const p=f;for(const h of p.header)r=r.concat(this.walkTokens(h.tokens,n));for(const h of p.rows)for(const m of h)r=r.concat(this.walkTokens(m.tokens,n));break}case"list":{const p=f;r=r.concat(this.walkTokens(p.items,n));break}default:{const p=f;(o=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&o[p.type]?this.defaults.extensions.childTokens[p.type].forEach(h=>{const m=p[h].flat(1/0);r=r.concat(this.walkTokens(m,n))}):p.tokens&&(r=r.concat(this.walkTokens(p.tokens,n)))}}return r}use(...i){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return i.forEach(r=>{const s={...r};if(s.async=this.defaults.async||s.async||!1,r.extensions&&(r.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){const f=n.renderers[o.name];f?n.renderers[o.name]=function(...p){let h=o.renderer.apply(this,p);return h===!1&&(h=f.apply(this,p)),h}:n.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const f=n[o.level];f?f.unshift(o.tokenizer):n[o.level]=[o.tokenizer],o.start&&(o.level==="block"?n.startBlock?n.startBlock.push(o.start):n.startBlock=[o.start]:o.level==="inline"&&(n.startInline?n.startInline.push(o.start):n.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(n.childTokens[o.name]=o.childTokens)}),s.extensions=n),r.renderer){const o=this.defaults.renderer||new ts(this.defaults);for(const f in r.renderer){if(!(f in o))throw new Error(`renderer '${f}' does not exist`);if(["options","parser"].includes(f))continue;const p=f,h=r.renderer[p],m=o[p];o[p]=(...d)=>{let v=h.apply(o,d);return v===!1&&(v=m.apply(o,d)),v||""}}s.renderer=o}if(r.tokenizer){const o=this.defaults.tokenizer||new es(this.defaults);for(const f in r.tokenizer){if(!(f in o))throw new Error(`tokenizer '${f}' does not exist`);if(["options","rules","lexer"].includes(f))continue;const p=f,h=r.tokenizer[p],m=o[p];o[p]=(...d)=>{let v=h.apply(o,d);return v===!1&&(v=m.apply(o,d)),v}}s.tokenizer=o}if(r.hooks){const o=this.defaults.hooks||new Xr;for(const f in r.hooks){if(!(f in o))throw new Error(`hook '${f}' does not exist`);if(["options","block"].includes(f))continue;const p=f,h=r.hooks[p],m=o[p];Xr.passThroughHooks.has(f)?o[p]=d=>{if(this.defaults.async)return Promise.resolve(h.call(o,d)).then(S=>m.call(o,S));const v=h.call(o,d);return m.call(o,v)}:o[p]=(...d)=>{let v=h.apply(o,d);return v===!1&&(v=m.apply(o,d)),v}}s.hooks=o}if(r.walkTokens){const o=this.defaults.walkTokens,f=r.walkTokens;s.walkTokens=function(p){let h=[];return h.push(f.call(this,p)),o&&(h=h.concat(o.call(this,p))),h}}this.defaults={...this.defaults,...s}}),this}setOptions(i){return this.defaults={...this.defaults,...i},this}lexer(i,n){return pa.lex(i,n??this.defaults)}parser(i,n){return ma.parse(i,n??this.defaults)}parseMarkdown(i){return(r,s)=>{const o={...s},f={...this.defaults,...o},p=this.onError(!!f.silent,!!f.async);if(this.defaults.async===!0&&o.async===!1)return p(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return p(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return p(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));f.hooks&&(f.hooks.options=f,f.hooks.block=i);const h=f.hooks?f.hooks.provideLexer():i?pa.lex:pa.lexInline,m=f.hooks?f.hooks.provideParser():i?ma.parse:ma.parseInline;if(f.async)return Promise.resolve(f.hooks?f.hooks.preprocess(r):r).then(d=>h(d,f)).then(d=>f.hooks?f.hooks.processAllTokens(d):d).then(d=>f.walkTokens?Promise.all(this.walkTokens(d,f.walkTokens)).then(()=>d):d).then(d=>m(d,f)).then(d=>f.hooks?f.hooks.postprocess(d):d).catch(p);try{f.hooks&&(r=f.hooks.preprocess(r));let d=h(r,f);f.hooks&&(d=f.hooks.processAllTokens(d)),f.walkTokens&&this.walkTokens(d,f.walkTokens);let v=m(d,f);return f.hooks&&(v=f.hooks.postprocess(v)),v}catch(d){return p(d)}}}onError(i,n){return r=>{if(r.message+=`
|
|
116
|
+
Please report this to https://github.com/markedjs/marked.`,i){const s="<p>An error occurred:</p><pre>"+Pt(r.message+"",!0)+"</pre>";return n?Promise.resolve(s):s}if(n)return Promise.reject(r);throw r}}},dn=new fN;function Re(i,n){return dn.parse(i,n)}Re.options=Re.setOptions=function(i){return dn.setOptions(i),Re.defaults=dn.defaults,km(Re.defaults),Re};Re.getDefaults=rc;Re.defaults=mn;Re.use=function(...i){return dn.use(...i),Re.defaults=dn.defaults,km(Re.defaults),Re};Re.walkTokens=function(i,n){return dn.walkTokens(i,n)};Re.parseInline=dn.parseInline;Re.Parser=ma;Re.parser=ma.parse;Re.Renderer=ts;Re.TextRenderer=pc;Re.Lexer=pa;Re.lexer=pa.lex;Re.Tokenizer=es;Re.Hooks=Xr;Re.parse=Re;Re.options;Re.setOptions;Re.use;Re.walkTokens;Re.parseInline;ma.parse;pa.lex;function dN(i){if(!i)return"";try{return Re.parse(i,{async:!1,gfm:!0,breaks:!0})}catch(n){return console.error("Error rendering markdown:",n),i}}function Ni({content:i,title:n,variant:r="default",className:s="",children:o}){const f=["Explanation",`Explanation-${r}`,s].filter(Boolean).join(" ");return b.jsxs("div",{className:f,children:[n&&b.jsx("h3",{className:"Explanation-title",children:n}),b.jsx("div",{className:"Explanation-content markdown-content",dangerouslySetInnerHTML:{__html:dN(i)}}),o]})}function hN({isOpen:i,title:n,message:r,confirmLabel:s,cancelLabel:o,onConfirm:f,onCancel:p}){const{t:h}=ot(),[m,d]=w.useState(!0);if(!i)return null;const v=async()=>{await f({withSampleData:m})},S=x=>{x.key==="Escape"&&p()};return b.jsxs("div",{className:"ConfirmDialog",children:[b.jsx("div",{className:"ConfirmDialog-backdrop",onClick:p,onKeyDown:S,tabIndex:0,role:"button","aria-label":"Close dialog"}),b.jsxs("div",{className:"ConfirmDialog-container",children:[b.jsx("div",{className:"ConfirmDialog-header",children:b.jsx("h3",{className:"ConfirmDialog-title",children:n})}),b.jsxs("div",{className:"ConfirmDialog-body",children:[b.jsx("p",{children:r}),b.jsx("div",{className:"ConfirmDialog-checkbox mt-3",children:b.jsxs("label",{children:[b.jsx("input",{type:"checkbox",checked:m,onChange:x=>d(x.target.checked)}),b.jsx("span",{className:"ml-2",children:h("generateSiteWithData")})]})})]}),b.jsxs("div",{className:"ConfirmDialog-footer",children:[b.jsx(rt,{onClick:p,severity:"secondary",className:"ConfirmDialog-button",children:o||h("cancel")}),b.jsx(rt,{onClick:v,className:"ConfirmDialog-button",children:s||h("confirm")})]})]})]})}function U(){return U=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},U.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 qm={},Gm=w.createContext(qm),pN=(i,n)=>U({},i,n),mN=()=>w.useContext(Gm),mc=w.createContext(()=>{});mc.displayName="JVR.DispatchShowTools";function gN(){return w.useReducer(pN,qm)}function Ym(){return w.useContext(mc)}var Qm=i=>{var{initial:n,dispatch:r,children:s}=i;return b.jsx(Gm.Provider,{value:n,children:b.jsx(mc.Provider,{value:r,children:s})})};Qm.displayName="JVR.ShowTools";var Zm={},Km=w.createContext(Zm),vN=(i,n)=>U({},i,n),us=()=>w.useContext(Km),gc=w.createContext(()=>{});gc.displayName="JVR.DispatchExpands";function yN(){return w.useReducer(vN,Zm)}function bN(){return w.useContext(gc)}var Xm=i=>{var{initial:n,dispatch:r,children:s}=i;return b.jsx(Km.Provider,{value:n,children:b.jsx(gc.Provider,{value:r,children:s})})};Xm.displayName="JVR.Expands";var Jm={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"}},Fm=w.createContext(Jm),xN=(i,n)=>U({},i,n),Le=()=>w.useContext(Fm),vc=w.createContext(()=>{});vc.displayName="JVR.DispatchTypes";function SN(){return w.useReducer(xN,Jm)}function NN(){return w.useContext(vc)}function Pm(i){var{initial:n,dispatch:r,children:s}=i;return b.jsx(Fm.Provider,{value:n,children:b.jsx(vc.Provider,{value:r,children:s})})}Pm.displayName="JVR.Types";var EN=["style"];function Wm(i){var{style:n}=i,r=ge(i,EN),s=U({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},n);return b.jsx("svg",U({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"})}))}Wm.displayName="JVR.TriangleArrow";var Im={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:b.jsx(Wm,{})},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:"}"}},eg=w.createContext(Im),RN=(i,n)=>U({},i,n),mt=()=>w.useContext(eg),yc=w.createContext(()=>{});yc.displayName="JVR.DispatchSymbols";function wN(){return w.useReducer(RN,Im)}function TN(){return w.useContext(yc)}var tg=i=>{var{initial:n,dispatch:r,children:s}=i;return b.jsx(eg.Provider,{value:n,children:b.jsx(yc.Provider,{value:r,children:s})})};tg.displayName="JVR.Symbols";var ag={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"}},ng=w.createContext(ag),CN=(i,n)=>U({},i,n),Bt=()=>w.useContext(ng),bc=w.createContext(()=>{});bc.displayName="JVR.DispatchSection";function jN(){return w.useReducer(CN,ag)}function AN(){return w.useContext(bc)}var lg=i=>{var{initial:n,dispatch:r,children:s}=i;return b.jsx(ng.Provider,{value:n,children:b.jsx(bc.Provider,{value:r,children:s})})};lg.displayName="JVR.Section";var ig={objectSortKeys:!1,indentWidth:15},xc=w.createContext(ig);xc.displayName="JVR.Context";var rg=w.createContext(()=>{});rg.displayName="JVR.DispatchContext";function ON(i,n){return U({},i,n)}var gn=()=>w.useContext(xc),sg=i=>{var{children:n,initialState:r,initialTypes:s}=i,[o,f]=w.useReducer(ON,Object.assign({},ig,r)),[p,h]=gN(),[m,d]=yN(),[v,S]=SN(),[x,C]=wN(),[E,L]=jN();return w.useEffect(()=>f(U({},r)),[r]),b.jsx(xc.Provider,{value:o,children:b.jsx(rg.Provider,{value:f,children:b.jsx(Qm,{initial:p,dispatch:h,children:b.jsx(Xm,{initial:m,dispatch:d,children:b.jsx(Pm,{initial:U({},v,s),dispatch:S,children:b.jsx(tg,{initial:x,dispatch:C,children:b.jsx(lg,{initial:E,dispatch:L,children:n})})})})})})})};sg.displayName="JVR.Provider";function kN(i){if(i==null)throw new TypeError("Cannot destructure "+i)}var LN=["isNumber","value","parentValue","keyName","keys"],zN=["as","render"],DN=["as","render"],_N=["as","render"],MN=["as","style","render"],UN=["as","render"],BN=["as","render"],HN=["as","render"],VN=["as","render"],Ko=i=>{var{Quote:n={}}=mt(),{isNumber:r,value:s,parentValue:o,keyName:f,keys:p}=i,h=ge(i,LN);if(r)return null;var{as:m,render:d}=n,v=ge(n,zN),S=m||"span",x=U({},h,v),C={value:s,parentValue:o,keyName:f,keys:p||(f?[f]:[])},E=d&&typeof d=="function"&&d(x,C);return E||b.jsx(S,U({},x))};Ko.displayName="JVR.Quote";var yi=i=>{var{ValueQuote:n={}}=mt(),r=U({},(kN(i),i)),{as:s,render:o}=n,f=ge(n,DN),p=s||"span",h=U({},r,f),m=o&&typeof o=="function"&&o(h,{});return m||b.jsx(p,U({},h))};yi.displayName="JVR.ValueQuote";var ug=i=>{var{value:n,parentValue:r,keyName:s,keys:o}=i,{Colon:f={}}=mt(),{as:p,render:h}=f,m=ge(f,_N),d=p||"span",v=h&&typeof h=="function"&&h(m,{value:n,parentValue:r,keyName:s,keys:o||(s?[s]:[])});return v||b.jsx(d,U({},m))};ug.displayName="JVR.Colon";var og=i=>{var{Arrow:n={}}=mt(),r=us(),{expandKey:s,style:o,value:f,parentValue:p,keyName:h,keys:m}=i,d=!!r[s],{as:v,style:S,render:x}=n,C=ge(n,MN),E=v||"span",L=x&&typeof x=="function",V=U({},C,{"data-expanded":d,style:U({},S,o)}),M={value:f,parentValue:p,keyName:h,keys:m||(h?[h]:[])},D=L&&x(V,M);return D||b.jsx(E,U({},C,{style:U({},S,o)}))};og.displayName="JVR.Arrow";var cg=i=>{var{isBrackets:n,value:r,parentValue:s,keyName:o,keys:f}=i,{BracketsLeft:p={},BraceLeft:h={}}=mt(),m={value:r,parentValue:s,keyName:o,keys:f||(o?[o]:[])};if(n){var{as:d,render:v}=p,S=ge(p,UN),x=d||"span",C=v&&typeof v=="function"&&v(S,m);return C||b.jsx(x,U({},S))}var{as:E,render:L}=h,V=ge(h,BN),M=E||"span",D=L&&typeof L=="function"&&L(V,m);return D||b.jsx(M,U({},V))};cg.displayName="JVR.BracketsOpen";var Sc=i=>{var{isBrackets:n,isVisiable:r,value:s,parentValue:o,keyName:f,keys:p}=i,h={value:s,parentValue:o,keyName:f,keys:p||(f?[f]:[])};if(!r)return null;var{BracketsRight:m={},BraceRight:d={}}=mt();if(n){var{as:v,render:S}=m,x=ge(m,HN),C=v||"span",E=S&&typeof S=="function"&&S(x,h);return E||b.jsx(C,U({},x))}var{as:L,render:V}=d,M=ge(d,VN),D=L||"span",G=V&&typeof V=="function"&&V(M,h);return G||b.jsx(D,U({},M))};Sc.displayName="JVR.BracketsClose";var fg=i=>{var n,{value:r,expandKey:s,level:o,keys:f=[]}=i,p=us(),h=Array.isArray(r),{collapsed:m,shouldExpandNodeInitially:d}=gn(),v=r instanceof Set,S=typeof m=="boolean"?m:typeof m=="number"?o>m:!1,x=(n=p[s])!=null?n:S,C=Object.keys(r).length,E=d&&d(!x,{value:r,keys:f,level:o});if(p[s]===void 0&&d&&!E||x||C===0)return null;var L={paddingLeft:4};return b.jsx("div",{style:L,children:b.jsx(Sc,{isBrackets:h||v,isVisiable:!0})})};fg.displayName="JVR.NestedClose";var $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"],IN=["as","render"],Xo=i=>{if(i===void 0)return"0n";if(typeof i=="string")try{i=BigInt(i)}catch{return"0n"}return i?i.toString()+"n":"0n"},dg=i=>{var{value:n,keyName:r}=i,{Set:s={},displayDataTypes:o}=Le(),f=n instanceof Set;if(!f||!o)return null;var{as:p,render:h}=s,m=ge(s,$N),d=h&&typeof h=="function",v=d&&h(m,{type:"type",value:n,keyName:r});if(v)return v;var S=p||"span";return b.jsx(S,U({},m))};dg.displayName="JVR.SetComp";var hg=i=>{var{value:n,keyName:r}=i,{Map:s={},displayDataTypes:o}=Le(),f=n instanceof Map;if(!f||!o)return null;var{as:p,render:h}=s,m=ge(s,qN),d=h&&typeof h=="function",v=d&&h(m,{type:"type",value:n,keyName:r});if(v)return v;var S=p||"span";return b.jsx(S,U({},m))};hg.displayName="JVR.MapComp";var Yt={opacity:.75,paddingRight:4},pg=i=>{var{children:n="",keyName:r}=i,{Str:s={},displayDataTypes:o}=Le(),{shortenTextAfterLength:f=30,stringEllipsis:p="..."}=gn(),{as:h,render:m}=s,d=ge(s,GN),v=n,[S,x]=w.useState(f&&v.length>f);w.useEffect(()=>x(f&&v.length>f),[f]);var C=h||"span",E=U({},Yt,s.style||{});f>0&&(d.style=U({},d.style,{cursor:v.length<=f?"initial":"pointer"}),v.length>f&&(d.onClick=()=>{x(!S)}));var L=S?""+v.slice(0,f)+p:v,V=m&&typeof m=="function",M=V&&m(U({},d,{style:E}),{type:"type",value:n,keyName:r}),D=S?"w-rjv-value w-rjv-value-short":"w-rjv-value",G=V&&m(U({},d,{children:L,className:D}),{type:"value",value:n,keyName:r});return b.jsxs(w.Fragment,{children:[o&&(M||b.jsx(C,U({},d,{style:E}))),G||b.jsxs(w.Fragment,{children:[b.jsx(yi,{}),b.jsx(C,U({},d,{className:D,children:L})),b.jsx(yi,{})]})]})};pg.displayName="JVR.TypeString";var mg=i=>{var{children:n,keyName:r}=i,{True:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,YN),m=f||"span",d=U({},Yt,s.style||{}),v=p&&typeof p=="function",S=v&&p(U({},h,{style:d}),{type:"type",value:n,keyName:r}),x=v&&p(U({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(w.Fragment,{children:[o&&(S||b.jsx(m,U({},h,{style:d}))),x||b.jsx(m,U({},h,{className:"w-rjv-value",children:n==null?void 0:n.toString()}))]})};mg.displayName="JVR.TypeTrue";var gg=i=>{var{children:n,keyName:r}=i,{False:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,QN),m=f||"span",d=U({},Yt,s.style||{}),v=p&&typeof p=="function",S=v&&p(U({},h,{style:d}),{type:"type",value:n,keyName:r}),x=v&&p(U({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(w.Fragment,{children:[o&&(S||b.jsx(m,U({},h,{style:d}))),x||b.jsx(m,U({},h,{className:"w-rjv-value",children:n==null?void 0:n.toString()}))]})};gg.displayName="JVR.TypeFalse";var vg=i=>{var{children:n,keyName:r}=i,{Float:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,ZN),m=f||"span",d=U({},Yt,s.style||{}),v=p&&typeof p=="function",S=v&&p(U({},h,{style:d}),{type:"type",value:n,keyName:r}),x=v&&p(U({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(w.Fragment,{children:[o&&(S||b.jsx(m,U({},h,{style:d}))),x||b.jsx(m,U({},h,{className:"w-rjv-value",children:n==null?void 0:n.toString()}))]})};vg.displayName="JVR.TypeFloat";var yg=i=>{var{children:n,keyName:r}=i,{Int:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,KN),m=f||"span",d=U({},Yt,s.style||{}),v=p&&typeof p=="function",S=v&&p(U({},h,{style:d}),{type:"type",value:n,keyName:r}),x=v&&p(U({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(w.Fragment,{children:[o&&(S||b.jsx(m,U({},h,{style:d}))),x||b.jsx(m,U({},h,{className:"w-rjv-value",children:n==null?void 0:n.toString()}))]})};yg.displayName="JVR.TypeInt";var bg=i=>{var{children:n,keyName:r}=i,{Bigint:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,XN),m=f||"span",d=U({},Yt,s.style||{}),v=p&&typeof p=="function",S=v&&p(U({},h,{style:d}),{type:"type",value:n,keyName:r}),x=v&&p(U({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(w.Fragment,{children:[o&&(S||b.jsx(m,U({},h,{style:d}))),x||b.jsx(m,U({},h,{className:"w-rjv-value",children:Xo(n==null?void 0:n.toString())}))]})};bg.displayName="JVR.TypeFloat";var xg=i=>{var{children:n,keyName:r}=i,{Url:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,JN),m=f||"span",d=U({},Yt,s.style),v=p&&typeof p=="function",S=v&&p(U({},h,{style:d}),{type:"type",value:n,keyName:r}),x=v&&p(U({},h,{children:n==null?void 0:n.href,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(w.Fragment,{children:[o&&(S||b.jsx(m,U({},h,{style:d}))),x||b.jsxs("a",U({href:n==null?void 0:n.href,target:"_blank"},h,{className:"w-rjv-value",children:[b.jsx(yi,{}),n==null?void 0:n.href,b.jsx(yi,{})]}))]})};xg.displayName="JVR.TypeUrl";var Sg=i=>{var{children:n,keyName:r}=i,{Date:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,FN),m=f||"span",d=U({},Yt,s.style||{}),v=p&&typeof p=="function",S=v&&p(U({},h,{style:d}),{type:"type",value:n,keyName:r}),x=n instanceof Date?n.toLocaleString():n,C=v&&p(U({},h,{children:x,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(w.Fragment,{children:[o&&(S||b.jsx(m,U({},h,{style:d}))),C||b.jsx(m,U({},h,{className:"w-rjv-value",children:x}))]})};Sg.displayName="JVR.TypeDate";var Ng=i=>{var{children:n,keyName:r}=i,{Undefined:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,PN),m=f||"span",d=U({},Yt,s.style||{}),v=p&&typeof p=="function",S=v&&p(U({},h,{style:d}),{type:"type",value:n,keyName:r}),x=v&&p(U({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(w.Fragment,{children:[o&&(S||b.jsx(m,U({},h,{style:d}))),x]})};Ng.displayName="JVR.TypeUndefined";var Eg=i=>{var{children:n,keyName:r}=i,{Null:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,WN),m=f||"span",d=U({},Yt,s.style||{}),v=p&&typeof p=="function",S=v&&p(U({},h,{style:d}),{type:"type",value:n,keyName:r}),x=v&&p(U({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(w.Fragment,{children:[o&&(S||b.jsx(m,U({},h,{style:d}))),x]})};Eg.displayName="JVR.TypeNull";var Rg=i=>{var{children:n,keyName:r}=i,{Nan:s={},displayDataTypes:o}=Le(),{as:f,render:p}=s,h=ge(s,IN),m=f||"span",d=U({},Yt,s.style||{}),v=p&&typeof p=="function",S=v&&p(U({},h,{style:d}),{type:"type",value:n,keyName:r}),x=v&&p(U({},h,{children:n==null?void 0:n.toString(),className:"w-rjv-value"}),{type:"value",value:n,keyName:r});return b.jsxs(w.Fragment,{children:[o&&(S||b.jsx(m,U({},h,{style:d}))),x]})};Rg.displayName="JVR.TypeNan";var eE=i=>Number(i)===i&&i%1!==0||isNaN(i),wg=i=>{var{value:n,keyName:r}=i,s={keyName:r};return n instanceof URL?b.jsx(xg,U({},s,{children:n})):typeof n=="string"?b.jsx(pg,U({},s,{children:n})):n===!0?b.jsx(mg,U({},s,{children:n})):n===!1?b.jsx(gg,U({},s,{children:n})):n===null?b.jsx(Eg,U({},s,{children:n})):n===void 0?b.jsx(Ng,U({},s,{children:n})):n instanceof Date?b.jsx(Sg,U({},s,{children:n})):typeof n=="number"&&isNaN(n)?b.jsx(Rg,U({},s,{children:n})):typeof n=="number"&&eE(n)?b.jsx(vg,U({},s,{children:n})):typeof n=="bigint"?b.jsx(bg,U({},s,{children:n})):typeof n=="number"?b.jsx(yg,U({},s,{children:n})):null};wg.displayName="JVR.Value";function Qa(i,n,r){var s=TN(),o=[i.className,n.className].filter(Boolean).join(" "),f=U({},i,n,{className:o,style:U({},i.style,n.style),children:n.children||i.children});w.useEffect(()=>s({[r]:f}),[n])}function Ct(i,n,r){var s=NN(),o=[i.className,n.className].filter(Boolean).join(" "),f=U({},i,n,{className:o,style:U({},i.style,n.style),children:n.children||i.children});w.useEffect(()=>s({[r]:f}),[n])}function sl(i,n,r){var s=AN(),o=[i.className,n.className].filter(Boolean).join(" "),f=U({},i,n,{className:o,style:U({},i.style,n.style),children:n.children||i.children});w.useEffect(()=>s({[r]:f}),[n])}var tE=["as","render"],Tg=i=>{var{KeyName:n={}}=Bt();return sl(n,i,"KeyName"),null};Tg.displayName="JVR.KeyName";var Cg=i=>{var{children:n,value:r,parentValue:s,keyName:o,keys:f}=i,p=typeof n=="number",h={color:p?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:m={}}=Bt(),{as:d,render:v}=m,S=ge(m,tE);S.style=U({},S.style,h);var x=d||"span",C=v&&typeof v=="function"&&v(U({},S,{children:n}),{value:r,parentValue:s,keyName:o,keys:f||(o?[o]:[])});return C||b.jsx(x,U({},S,{children:n}))};Cg.displayName="JVR.KeyNameComp";var aE=["children","value","parentValue","keyName","keys"],nE=["as","render","children"],jg=i=>{var{Row:n={}}=Bt();return sl(n,i,"Row"),null};jg.displayName="JVR.Row";var Ag=i=>{var{children:n,value:r,parentValue:s,keyName:o,keys:f}=i,p=ge(i,aE),{Row:h={}}=Bt(),{as:m,render:d}=h,v=ge(h,nE),S=m||"div",x=d&&typeof d=="function"&&d(U({},p,v,{children:n}),{value:r,keyName:o,parentValue:s,keys:f});return x||b.jsx(S,U({},p,v,{children:n}))};Ag.displayName="JVR.RowComp";function lE(i){var n=w.useRef();return w.useEffect(()=>{n.current=i}),n.current}function iE(i){var{value:n,highlightUpdates:r,highlightContainer:s}=i,o=lE(n),f=w.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]);w.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 rE=["keyName","value","parentValue","expandKey","keys"],sE=["as","render"],Nc=i=>{var{keyName:n,value:r,parentValue:s,expandKey:o,keys:f}=i,p=ge(i,rE),{onCopied:h,enableClipboard:m}=gn(),d=mN(),v=d[o],[S,x]=w.useState(!1),{Copied:C={}}=Bt();if(m===!1||!v)return null;var E=K=>{K.stopPropagation();var se="";typeof r=="number"&&r===1/0?se="Infinity":typeof r=="number"&&isNaN(r)?se="NaN":typeof r=="bigint"?se=Xo(r):r instanceof Date?se=r.toLocaleString():se=JSON.stringify(r,(ee,F)=>typeof F=="bigint"?Xo(F):F,2),h&&h(se,r),x(!0);var re=navigator.clipboard||{writeText(ee){return new Promise((F,ne)=>{var pe=document.createElement("textarea");pe.style.position="absolute",pe.style.opacity="0",pe.style.left="-99999999px",pe.value=ee,document.body.appendChild(pe),pe.select(),document.execCommand("copy")?F():ne(),pe.remove()})}};re.writeText(se).then(()=>{var ee=setTimeout(()=>{x(!1),clearTimeout(ee)},3e3)}).catch(ee=>{})},L={style:{display:"inline-flex"},fill:S?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:E},{render:V}=C,M=ge(C,sE),D=U({},M,p,L,{style:U({},M.style,p.style,L.style)}),G=V&&typeof V=="function",X=G&&V(U({},D,{"data-copied":S}),{value:r,keyName:n,keys:f,parentValue:s});return X||(S?b.jsx("svg",U({viewBox:"0 0 32 36"},D,{children:b.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})):b.jsx("svg",U({viewBox:"0 0 32 36"},D,{children:b.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})))};Nc.displayName="JVR.Copied";function Og(){var i=w.useRef(null);return i.current===null&&(i.current="custom-id-"+Math.random().toString(36).substr(2,9)),i.current}var kg=i=>{var n,{value:r,expandKey:s="",level:o,keys:f=[]}=i,p=us(),{objectSortKeys:h,indentWidth:m,collapsed:d,shouldExpandNodeInitially:v}=gn(),S=Array.isArray(r),x=typeof d=="boolean"?d:typeof d=="number"?o>d:!1,C=(n=p[s])!=null?n:x,E=v&&v(!C,{value:r,keys:f,level:o});if(p[s]===void 0&&v&&!E||C)return null;var L=S?Object.entries(r).map(M=>[Number(M[0]),M[1]]):Object.entries(r);h&&(L=h===!0?L.sort((M,D)=>{var[G]=M,[X]=D;return typeof G=="string"&&typeof X=="string"?G.localeCompare(X):0}):L.sort((M,D)=>{var[G,X]=M,[K,se]=D;return typeof G=="string"&&typeof K=="string"?h(G,K,X,se):0}));var V={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:m,marginLeft:6};return b.jsx("div",{className:"w-rjv-wrap",style:V,children:L.map((M,D)=>{var[G,X]=M;return b.jsx(Lg,{parentValue:r,keyName:G,keys:[...f,G],value:X,level:o},D)})})};kg.displayName="JVR.KeyValues";var Ec=i=>{var{keyName:n,parentValue:r,keys:s,value:o}=i,{highlightUpdates:f}=gn(),p=typeof n=="number",h=w.useRef(null);iE({value:o,highlightUpdates:f,highlightContainer:h});var m={keyName:n,value:o,keys:s,parentValue:r};return b.jsxs(w.Fragment,{children:[b.jsxs("span",{ref:h,children:[b.jsx(Ko,U({isNumber:p,"data-placement":"left"},m)),b.jsx(Cg,U({},m,{children:n})),b.jsx(Ko,U({isNumber:p,"data-placement":"right"},m))]}),b.jsx(ug,U({},m))]})};Ec.displayName="JVR.KayName";var Lg=i=>{var{keyName:n,value:r,parentValue:s,level:o=0,keys:f=[]}=i,p=Ym(),h=Og(),m=Array.isArray(r),d=r instanceof Set,v=r instanceof Map,S=r instanceof Date,x=r instanceof URL,C=r&&typeof r=="object"&&!m&&!d&&!v&&!S&&!x,E=C||m||d||v;if(E){var L=d?Array.from(r):v?Object.fromEntries(r):r;return b.jsx(Rc,{keyName:n,value:L,parentValue:s,initialValue:r,keys:f,level:o+1})}var V={onMouseEnter:()=>p({[h]:!0}),onMouseLeave:()=>p({[h]:!1})};return b.jsxs(Ag,U({className:"w-rjv-line",value:r,keyName:n,keys:f,parentValue:s},V,{children:[b.jsx(Ec,{keyName:n,value:r,keys:f,parentValue:s}),b.jsx(wg,{keyName:n,value:r}),b.jsx(Nc,{keyName:n,value:r,keys:f,parentValue:s,expandKey:h})]}))};Lg.displayName="JVR.KeyValuesItem";var uE=["value","keyName"],oE=["as","render"],zg=i=>{var{CountInfoExtra:n={}}=Bt();return sl(n,i,"CountInfoExtra"),null};zg.displayName="JVR.CountInfoExtra";var Dg=i=>{var{value:n={},keyName:r}=i,s=ge(i,uE),{CountInfoExtra:o={}}=Bt(),{as:f,render:p}=o,h=ge(o,oE);if(!p&&!h.children)return null;var m=f||"span",d=p&&typeof p=="function",v=U({},h,s),S=d&&p(v,{value:n,keyName:r});return S||b.jsx(m,U({},v))};Dg.displayName="JVR.CountInfoExtraComps";var cE=["value","keyName"],fE=["as","render"],_g=i=>{var{CountInfo:n={}}=Bt();return sl(n,i,"CountInfo"),null};_g.displayName="JVR.CountInfo";var Mg=i=>{var{value:n={},keyName:r}=i,s=ge(i,cE),{displayObjectSize:o}=gn(),{CountInfo:f={}}=Bt();if(!o)return null;var{as:p,render:h}=f,m=ge(f,fE),d=p||"span";m.style=U({},m.style,i.style);var v=Object.keys(n).length;m.children||(m.children=v+" item"+(v===1?"":"s"));var S=U({},m,s),x=h&&typeof h=="function",C=x&&h(U({},S,{"data-length":v}),{value:n,keyName:r});return C||b.jsx(d,U({},S))};Mg.displayName="JVR.CountInfoComp";var dE=["as","render"],Ug=i=>{var{Ellipsis:n={}}=Bt();return sl(n,i,"Ellipsis"),null};Ug.displayName="JVR.Ellipsis";var Bg=i=>{var{isExpanded:n,value:r,keyName:s}=i,{Ellipsis:o={}}=Bt(),{as:f,render:p}=o,h=ge(o,dE),m=f||"span",d=p&&typeof p=="function"&&p(U({},h,{"data-expanded":n}),{value:r,keyName:s});return d||(!n||typeof r=="object"&&Object.keys(r).length==0?null:b.jsx(m,U({},h)))};Bg.displayName="JVR.EllipsisComp";var Hg=i=>{var n,{keyName:r,expandKey:s,keys:o=[],initialValue:f,value:p,parentValue:h,level:m}=i,d=us(),v=bN(),{onExpand:S,collapsed:x,shouldExpandNodeInitially:C}=gn(),E=Array.isArray(p),L=p instanceof Set,V=typeof x=="boolean"?x:typeof x=="number"?m>x:!1,M=typeof p=="object",D=(n=d[s])!=null?n:V,G=C&&C(!D,{value:p,keys:o,level:m});d[s]===void 0&&C&&!G&&(D=!G);var X=()=>{var pe={expand:!D,value:p,keyid:s,keyName:r};S&&S(pe),v({[s]:pe.expand})},K={display:"inline-flex",alignItems:"center"},se={transform:"rotate("+(D?"-90":"0")+"deg)",transition:"all 0.3s"},re=Object.keys(p).length,ee=re!==0&&(E||L||M),F={style:K};ee&&(F.onClick=X);var ne={keyName:r,value:p,keys:o,parentValue:h};return b.jsxs("span",U({},F,{children:[ee&&b.jsx(og,U({style:se,expandKey:s},ne)),(r||typeof r=="number")&&b.jsx(Ec,U({},ne)),b.jsx(dg,{value:f,keyName:r}),b.jsx(hg,{value:f,keyName:r}),b.jsx(cg,U({isBrackets:E||L},ne)),b.jsx(Bg,{keyName:r,value:p,isExpanded:D}),b.jsx(Sc,U({isVisiable:D||!ee,isBrackets:E||L},ne)),b.jsx(Mg,{value:p,keyName:r}),b.jsx(Dg,{value:p,keyName:r}),b.jsx(Nc,{keyName:r,value:p,expandKey:s,parentValue:h,keys:o})]}))};Hg.displayName="JVR.NestedOpen";var hE=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],Rc=w.forwardRef((i,n)=>{var{className:r="",parentValue:s,level:o=1,value:f,initialValue:p,keys:h,keyName:m}=i,d=ge(i,hE),v=Ym(),S=Og(),x=[r,"w-rjv-inner"].filter(Boolean).join(" "),C={onMouseEnter:()=>v({[S]:!0}),onMouseLeave:()=>v({[S]:!1})};return b.jsxs("div",U({className:x,ref:n},d,C,{children:[b.jsx(Hg,{expandKey:S,value:f,level:o,keys:h,parentValue:s,keyName:m,initialValue:p}),b.jsx(kg,{expandKey:S,value:f,level:o,keys:h,parentValue:s,keyName:m}),b.jsx(fg,{expandKey:S,value:f,level:o,keys:h})]}))});Rc.displayName="JVR.Container";var Vg=i=>{var{BraceLeft:n={}}=mt();return Qa(n,i,"BraceLeft"),null};Vg.displayName="JVR.BraceLeft";var $g=i=>{var{BraceRight:n={}}=mt();return Qa(n,i,"BraceRight"),null};$g.displayName="JVR.BraceRight";var qg=i=>{var{BracketsLeft:n={}}=mt();return Qa(n,i,"BracketsLeft"),null};qg.displayName="JVR.BracketsLeft";var Gg=i=>{var{BracketsRight:n={}}=mt();return Qa(n,i,"BracketsRight"),null};Gg.displayName="JVR.BracketsRight";var Yg=i=>{var{Arrow:n={}}=mt();return Qa(n,i,"Arrow"),null};Yg.displayName="JVR.Arrow";var Qg=i=>{var{Colon:n={}}=mt();return Qa(n,i,"Colon"),null};Qg.displayName="JVR.Colon";var Zg=i=>{var{Quote:n={}}=mt();return Qa(n,i,"Quote"),null};Zg.displayName="JVR.Quote";var Kg=i=>{var{ValueQuote:n={}}=mt();return Qa(n,i,"ValueQuote"),null};Kg.displayName="JVR.ValueQuote";var Xg=i=>{var{Bigint:n={}}=Le();return Ct(n,i,"Bigint"),null};Xg.displayName="JVR.Bigint";var Jg=i=>{var{Date:n={}}=Le();return Ct(n,i,"Date"),null};Jg.displayName="JVR.Date";var Fg=i=>{var{False:n={}}=Le();return Ct(n,i,"False"),null};Fg.displayName="JVR.False";var Pg=i=>{var{Float:n={}}=Le();return Ct(n,i,"Float"),null};Pg.displayName="JVR.Float";var Wg=i=>{var{Int:n={}}=Le();return Ct(n,i,"Int"),null};Wg.displayName="JVR.Int";var Ig=i=>{var{Map:n={}}=Le();return Ct(n,i,"Map"),null};Ig.displayName="JVR.Map";var ev=i=>{var{Nan:n={}}=Le();return Ct(n,i,"Nan"),null};ev.displayName="JVR.Nan";var tv=i=>{var{Null:n={}}=Le();return Ct(n,i,"Null"),null};tv.displayName="JVR.Null";var av=i=>{var{Set:n={}}=Le();return Ct(n,i,"Set"),null};av.displayName="JVR.Set";var nv=i=>{var{Str:n={}}=Le();return Ct(n,i,"Str"),null};nv.displayName="JVR.StringText";var lv=i=>{var{True:n={}}=Le();return Ct(n,i,"True"),null};lv.displayName="JVR.True";var iv=i=>{var{Undefined:n={}}=Le();return Ct(n,i,"Undefined"),null};iv.displayName="JVR.Undefined";var rv=i=>{var{Url:n={}}=Le();return Ct(n,i,"Url"),null};rv.displayName="JVR.Url";var sv=i=>{var{Copied:n={}}=Bt();return sl(n,i,"Copied"),null};sv.displayName="JVR.Copied";var pE=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","stringEllipsis","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied"],we=w.forwardRef((i,n)=>{var{className:r="",style:s,value:o,children:f,collapsed:p,shouldExpandNodeInitially:h,indentWidth:m=15,displayObjectSize:d=!0,shortenTextAfterLength:v=30,stringEllipsis:S,highlightUpdates:x=!0,enableClipboard:C=!0,displayDataTypes:E=!0,objectSortKeys:L=!1,onExpand:V,onCopied:M}=i,D=ge(i,pE),G=U({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 b.jsxs(sg,{initialState:{value:o,objectSortKeys:L,indentWidth:m,shouldExpandNodeInitially:h,displayObjectSize:d,collapsed:p,enableClipboard:C,shortenTextAfterLength:v,stringEllipsis:S,highlightUpdates:x,onCopied:M,onExpand:V},initialTypes:{displayDataTypes:E},children:[b.jsx(Rc,U({value:o},D,{ref:n,className:X,style:G})),f]})});we.Bigint=Xg;we.Date=Jg;we.False=Fg;we.Float=Pg;we.Int=Wg;we.Map=Ig;we.Nan=ev;we.Null=tv;we.Set=av;we.String=nv;we.True=lv;we.Undefined=iv;we.Url=rv;we.ValueQuote=Kg;we.Arrow=Yg;we.Colon=Qg;we.Quote=Zg;we.Ellipsis=Ug;we.BraceLeft=Vg;we.BraceRight=$g;we.BracketsLeft=qg;we.BracketsRight=Gg;we.Copied=sv;we.CountInfo=_g;we.CountInfoExtra=zg;we.KeyName=Tg;we.Row=jg;we.displayName="JVR.JsonView";var lm={"--w-rjv-font-family":"monospace","--w-rjv-color":"#002b36","--w-rjv-key-string":"#002b36","--w-rjv-background-color":"#ffffff","--w-rjv-line-color":"#ebebeb","--w-rjv-arrow-color":"var(--w-rjv-color)","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#0000004d","--w-rjv-update-color":"#ebcb8b","--w-rjv-copied-color":"#002b36","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#236a7c","--w-rjv-colon-color":"#002b36","--w-rjv-brackets-color":"#236a7c","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#cb4b16","--w-rjv-type-int-color":"#268bd2","--w-rjv-type-float-color":"#859900","--w-rjv-type-bigint-color":"#268bd2","--w-rjv-type-boolean-color":"#2aa198","--w-rjv-type-date-color":"#586e75","--w-rjv-type-url-color":"#0969da","--w-rjv-type-null-color":"#d33682","--w-rjv-type-nan-color":"#859900","--w-rjv-type-undefined-color":"#586e75"};function mE(i){const n=Object.keys(i),r=n.length>0?n[0]:void 0;return(s,o,f={})=>{if(!r)return f.default??s;const p=i[o]??i[r],h=s.split(".");let m=p;for(const d of h){if(typeof m=="string"||!m||!Object.hasOwn(m,d))return f.default??s;m=m[d]}return typeof m=="string"?m:f.default??s}}function gE({siteSchema:i,schemaTranslate:n}){const r=new Set;return b.jsx("ul",{children:b.jsx(Jo,{schema:i,schemaT:n,typeName:"home",displayedNodeTypeNames:r})})}function Jo({schema:i,schemaT:n,typeName:r,depth:s=0,displayedNodeTypeNames:o}){const{i18n:f}=ot(),p=vE(i,r);if(!p)return null;const h=p.routingChildren||[],m=p.regularChildren||[],d=p.lists||[],v=p.documentKind==="routing",S=n(`nodeTypes.${r}.label`,f.language,{default:r});return o.has(r)?b.jsx("li",{children:b.jsxs("div",{children:[v?b.jsx("strong",{children:S}):S," (",b.jsx("code",{children:r}),")"]})}):(o.add(r),b.jsxs("li",{children:[b.jsxs("div",{children:[v?b.jsx("strong",{children:S}):S," (",b.jsx("code",{children:r}),")"]}),d.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)),h.length>0&&b.jsx("ul",{children:h.map(x=>b.jsx(Jo,{schema:i,schemaT:n,typeName:x,depth:s+1,displayedNodeTypeNames:o},x))}),m.length>0&&b.jsx("ul",{children:m.map(x=>b.jsx(Jo,{schema:i,schemaT:n,typeName:x,depth:s+1,displayedNodeTypeNames:o},x))})]}))}function vE(i,n){var r;return(r=i.nodeTypes)==null?void 0:r.find(s=>s.kind==="document"&&s.typeName===n)}const Gr=we;function yE({step:i}){const{t:n}=ot(),[r,s]=w.useState("tree"),{siteSchema:o,l10n:f}=i,p=mE(f),h=(m,d)=>d.keys.length===1&&d.keys[0]==="plugins";return b.jsxs("div",{className:"SchemaViewer",children:[b.jsxs("div",{className:"SchemaViewer-tabs",children:[b.jsx(rt,{className:`SchemaViewer-tab ${r==="tree"?"active":""}`,onClick:()=>s("tree"),children:n("treeView")}),b.jsx(rt,{className:`SchemaViewer-tab ${r==="schema"?"active":""}`,onClick:()=>s("schema"),children:n("siteSchema")}),b.jsx(rt,{className:`SchemaViewer-tab ${r==="locales"?"active":""}`,onClick:()=>s("locales"),children:n("labels")})]}),b.jsxs("div",{className:"SchemaViewer-main",children:[b.jsx("div",{className:"SchemaViewer-content",style:{display:r==="tree"?"block":"none"},children:b.jsx(gE,{siteSchema:o,schemaTranslate:p})}),b.jsx("div",{className:"SchemaViewer-content",style:{display:r==="locales"?"block":"none"},children:b.jsx(Gr,{value:f,style:lm,enableClipboard:!1,displayObjectSize:!1,displayDataTypes:!1,shortenTextAfterLength:0})}),b.jsx("div",{className:"SchemaViewer-content",style:{display:r==="schema"?"block":"none"},children:b.jsxs(Gr,{value:o,style:lm,enableClipboard:!1,displayObjectSize:!1,displayDataTypes:!1,shortenTextAfterLength:0,shouldExpandNodeInitially:h,children:[b.jsx(Gr.Colon,{render:(m,{parentValue:d})=>Array.isArray(d)&&m.children===":"?b.jsx("span",{}):b.jsx("span",{...m})}),b.jsx(Gr.KeyName,{render:({...m},{parentValue:d})=>Array.isArray(d)&&Number.isFinite(m.children)?b.jsx("span",{}):b.jsx("span",{...m})})]})})]})]})}function bE({step:i}){const{t:n}=ot(),{workSession:r,appendNewStep:s}=pn(),[o,f]=w.useState(!1),[p,h]=w.useState(!1),[m,d]=w.useState(!1),[v,S]=w.useState(void 0),x=rl(),C=()=>{f(!o)},E=async V=>{if(!r)return;d(!0),S(void 0);const M=vi();if(!M){S(n("sessionExpired")),d(!1);return}try{const D=await Ga({command:"updateSiteSchema",sessionToken:M,prompt:V,fromStepNumber:i.stepNumber});D.success&&D.result?(f(!1),s(D.result),await x(`/step/${D.result.stepNumber}`)):S(n("promptSubmissionFailed"))}catch(D){console.error("Error updating schema:",D),S(n("errorOccurred"))}finally{d(!1)}},L=async({withSampleData:V})=>{if(!r)return;d(!0),S(void 0),h(!1);const M=vi();if(!M){S(n("sessionExpired")),d(!1);return}try{const D=await Ga({command:"generateSite",sessionToken:M,fromStepNumber:i.stepNumber,withSampleData:V});D.success&&D.result?(s(D.result),await x(`/step/${D.result.stepNumber}`)):S(n("generationFailed"))}catch(D){console.error("Error generating site:",D),S(n("errorOccurred"))}finally{d(!1)}};return b.jsx(Tt,{children:b.jsxs("div",{className:"CompletedStep",children:[b.jsx(yE,{step:i}),i.explanation&&b.jsx(Ni,{content:i.explanation,title:n("explanation")}),b.jsxs("div",{className:"CompletedStep-actions",children:[b.jsx(rt,{onClick:C,className:"CompletedStep-button",children:n("modifySchema")}),b.jsx(rt,{onClick:()=>h(!0),className:"CompletedStep-button",children:n("generateTheWebsite")})]}),o&&b.jsxs("div",{className:"CompletedStep-updateForm",children:[b.jsx("h3",{children:n("updateSchema")}),b.jsx(Om,{placeholder:n("updatePromptPlaceholder"),submitLabel:n("modifySchema"),onSubmit:E,isLoading:m,error:v})]}),b.jsx(hN,{isOpen:p,title:n("generateTheWebsite"),message:n("aboutToGenerateWebsite"),confirmLabel:n("confirm"),onConfirm:L,onCancel:()=>h(!1)}),v&&!o&&b.jsx("div",{className:"Alert error",children:b.jsx("p",{children:v})})]})})}function xE({step:i}){const{t:n}=ot();return b.jsx(Tt,{children:b.jsxs("div",{className:"ErrorStep",children:[b.jsx("p",{className:"ErrorStep-message",children:n("stepFailed")}),i.explanation&&b.jsx(Ni,{content:i.explanation,variant:"error"})]})})}function SE({step:i}){const{t:n}=ot(),r=()=>{const s=`
|
|
117
|
+
${n("siteGenerated")}
|
|
118
|
+
${n("loginEmail")}: ${i.loginEmail}
|
|
119
|
+
${n("loginPassword")}: ${i.loginPassword}
|
|
120
|
+
${n("siteUrl")}: ${i.siteUrl}
|
|
121
|
+
${n("adminUrl")}: ${i.adminUiUrl}
|
|
122
|
+
`.trim();navigator.clipboard.writeText(s)};return b.jsx(Tt,{children:b.jsxs("div",{className:"GeneratedSite",children:[i.status==="pending"&&b.jsxs("div",{className:"GeneratedSite-pending",children:[b.jsx(is,{size:"small"}),b.jsx("p",{children:n("generatingContent")})]}),i.explanation&&b.jsx(Ni,{content:i.explanation,title:n("explanation"),variant:"info"}),b.jsx("div",{className:"GeneratedSite-header",children:b.jsx("h2",{className:"GeneratedSite-title",children:n("generatedSite")})}),b.jsx("div",{className:"Text my-4",dangerouslySetInnerHTML:{__html:n("userManual")}}),b.jsxs("div",{className:"GeneratedSite-information",children:[b.jsxs("div",{className:"GeneratedSite-field",children:[b.jsx("div",{className:"GeneratedSite-label",children:n("loginEmail")}),b.jsx("div",{className:"GeneratedSite-value",children:b.jsx("input",{type:"text",value:i.loginEmail,readOnly:!0,className:"GeneratedSite-input"})})]}),b.jsxs("div",{className:"GeneratedSite-field",children:[b.jsx("div",{className:"GeneratedSite-label",children:n("loginPassword")}),b.jsx("div",{className:"GeneratedSite-value",children:b.jsx("input",{type:"text",value:i.loginPassword,readOnly:!0,className:"GeneratedSite-input"})})]}),b.jsxs("div",{className:"GeneratedSite-field",children:[b.jsx("div",{className:"GeneratedSite-label",children:n("adminUrl")}),b.jsxs("div",{className:"GeneratedSite-value",children:[b.jsx("input",{type:"text",value:i.adminUiUrl,readOnly:!0,className:"GeneratedSite-input"}),b.jsx(rt,{className:"GeneratedSite-link-button",onClick:()=>{window.open(i.adminUiUrl,"_blank")},"aria-label":n("administration"),children:"↗"})]})]}),b.jsxs("div",{className:"GeneratedSite-field",children:[b.jsx("div",{className:"GeneratedSite-label",children:n("siteUrl")}),b.jsxs("div",{className:"GeneratedSite-value",children:[b.jsx("input",{type:"text",value:i.siteUrl,readOnly:!0,className:"GeneratedSite-input"}),b.jsx(rt,{className:"GeneratedSite-link-button",onClick:()=>{window.open(i.siteUrl,"_blank")},"aria-label":n("viewSite"),children:"↗"})]})]})]}),b.jsx("div",{className:"GeneratedSite-actions",children:b.jsx(rt,{onClick:r,className:"GeneratedSite-copy-button",children:n("copyToClipboard")})})]})})}function NE({step:i}){const{t:n}=ot();return b.jsx(Tt,{children:b.jsxs("div",{className:"ErrorStep",children:[b.jsx("p",{className:"ErrorStep-message ErrorStep-message-warning",children:n("stepNoEffect")}),i.explanation&&b.jsx(Ni,{content:i.explanation,variant:"warning"})]})})}function im({step:i}){const{t:n}=ot();return b.jsx(Tt,{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(is,{size:"large"})}),i.currentActivity&&b.jsxs("div",{className:"PendingStep-activity",children:[b.jsx("h3",{children:n("currentActivity")}),b.jsx("p",{children:n(`activity.${i.currentActivity}`)})]}),i.explanation&&b.jsx(Ni,{content:i.explanation,title:n("explanation"),variant:"info"})]})})}function EE({step:i}){if(i.status==="failed")return b.jsx(xE,{step:i});if(i.status==="noEffect")return b.jsx(NE,{step:i});if(i.kind==="initialSchema"||i.kind==="updateSchema")return i.status==="pending"?b.jsx(im,{step:i}):b.jsx(bE,{step:i});if(i.kind==="generateSite")return i.status==="pending"&&!A2(i)?b.jsx(im,{step:i}):b.jsx(SE,{step:i});throw new Error(`Unknown step kind: ${i.kind}`)}function RE(){const{t:i}=ot(),n=rl(),{stepNumber:r}=x1(),{workSession:s,setActiveStepNumber:o}=pn(),f=r===void 0?void 0:Number.parseInt(r,10);if(w.useEffect(()=>(o(f),()=>o(void 0)),[f,o]),hm(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(Tt,{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(Kr,{activeStep:f})})]});const p=s.steps.find(h=>h.stepNumber===f);return p?b.jsxs("div",{className:"RouteLayout",children:[b.jsx("div",{className:"RouteLayout-main",children:b.jsx(EE,{step:p})}),b.jsx("div",{className:"RouteLayout-sidebar",children:b.jsx(Kr,{activeStep:f})})]}):b.jsxs("div",{className:"RouteLayout",children:[b.jsx("div",{className:"RouteLayout-main",children:b.jsx(Tt,{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(Kr,{activeStep:f})})]})}function wE({sessionToken:i,onSessionExpired:n}){const{workSession:r,isLoading:s,error:o,setWorkSession:f,setIsLoading:p,setError:h,resetSession:m}=pn();return w.useEffect(()=>()=>{ic()},[]),hm(async()=>{p(!0),h(void 0);try{const d=await Ga({command:"loadWorkSession",sessionToken:i});d.success&&d.result?(f(d.result),at.changeLanguage(d.result.language)):(h(d.userMessage||"Failed to load session"),d.success||(m(),E2(),n()))}catch(d){h("Error connecting to server"),console.error(d)}finally{p(!1)}},[i,f,p,h,n]),s?b.jsx("div",{className:"Layout-center p-4",children:b.jsx(Tt,{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(Tt,{className:"p-4 max-w-2xl",children:b.jsx("div",{className:"Alert error",children:b.jsx("p",{children:o})})})}):r?b.jsx(r2,{children:b.jsxs(M1,{children:[b.jsx(Yr,{path:"/",element:b.jsx(j2,{})}),b.jsx(Yr,{path:"/step/:stepNumber",element:b.jsx(RE,{})}),b.jsx(Yr,{path:"*",element:b.jsx(D1,{to:"/",replace:!0})})]})}):b.jsx("div",{className:"Layout-center p-4",children:b.jsx(Tt,{className:"p-4 max-w-2xl",children:b.jsx("div",{className:"Text text-center",children:b.jsx("p",{children:"Session not available."})})})})}function TE({sessionToken:i}){const{t:n,i18n:r}=ot(),s=async o=>{const f=o.target.value;await r.changeLanguage(f),i&&await Ga({command:"setLanguage",sessionToken:i,language:f})};return b.jsxs("footer",{className:"App-footer",children:[b.jsx("span",{className:"InlineText",dangerouslySetInnerHTML:{__html:n("footerText")}}),b.jsx("span",{className:"LanguageSelector",children:b.jsxs("select",{className:"LanguageSelector-select",value:r.language,onChange:s,"aria-label":"Select language",children:[b.jsx("option",{value:"en",children:"English"}),b.jsx("option",{value:"fr",children:"Français"})]})})]})}function uv({onTokenReceived:i}){const[n,r]=w.useState(!!window.grecaptcha),s=Do;return w.useEffect(()=>{if(s){if(window.onRecaptchaSubmitted=o=>{i(o)},window.onRecaptchaExpired=()=>{i("")},n===!1&&!window.grecaptcha){r("loading");const o=document.createElement("script");o.src="https://www.google.com/recaptcha/api.js",o.async=!0,o.defer=!0,o.onload=()=>r(!0),document.head.appendChild(o)}else r(!0);return()=>{window.onRecaptchaSubmitted=void 0,window.onRecaptchaExpired=void 0}}},[s,i]),b.jsx(b.Fragment,{children:Do&&n===!0?b.jsx("div",{className:"g-recaptcha","data-sitekey":Do,"data-callback":"onRecaptchaSubmitted","data-expired-callback":"onRecaptchaExpired"}):b.jsx("div",{className:"RecaptchaBox",children:b.jsx(is,{})})})}function CE({onVerified:i}){const{t:n,i18n:r}=ot(),[s,o]=w.useState(""),[f,p]=w.useState(),h=async()=>{var m;if(s){p(void 0);try{const d=await Ga({command:"newSession",recaptchaToken:s,language:r.language});d.success&&((m=d.result)!=null&&m.token)?i(d.result.token):p("Failed to create session")}catch(d){p("Error connecting to server"),console.error(d)}}};return b.jsx("div",{className:"Layout-center p-4",children:b.jsxs(Tt,{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(uv,{onTokenReceived:o}),b.jsx(rt,{label:n("agree"),onClick:h,disabled:!s})]})]})})}function jE({expiredToken:i,onTokenRefreshed:n}){const{t:r}=ot(),[s,o]=w.useState(),f=async p=>{var h;if(p){o(void 0);try{const m=await Ga({command:"renewSession",sessionToken:i,recaptchaToken:p});m.success&&((h=m.result)!=null&&h.token)?n(m.result.token):o(r("sessionRenewalFailed"))}catch(m){o(r("errorConnectingToServer")),console.error(m)}}};return b.jsx("div",{className:"Dialog-backdrop",children:b.jsx("div",{className:"Dialog-container",children:b.jsxs(Tt,{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(uv,{onTokenReceived:f})}),b.jsx("p",{className:"InfoText",children:r("newTabRestartMessage")})]})})})}function AE(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 OE(){const[i,n]=w.useState(),[r,s]=w.useState(),o=pn(h=>h.resetSession);w.useEffect(()=>{const h=vi(),m=AE(h);if(!h||!m){o();return}m==="expired"?s(h):n(h)},[o]);const f=h=>{Wp(h),n(h)},p=h=>{Wp(h),n(h),s(void 0)};return b.jsxs("div",{className:"App",children:[b.jsx("div",{className:"App-content",children:i?b.jsx(wE,{sessionToken:i,onSessionExpired:()=>n(void 0)}):r?b.jsx(jE,{expiredToken:r,onTokenRefreshed:p}):b.jsx(CE,{onVerified:f})}),b.jsx(TE,{sessionToken:i})]})}async function kE(){const i=document.getElementById("site-generator-app");i&&GS.createRoot(i).render(b.jsx(Bo.StrictMode,{children:b.jsx(OE,{})}))}kE().catch(i=>console.error(i));
|