@c4a/server-cli 0.4.11-beta.1 → 0.4.12-alpha.1

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.
Files changed (67) hide show
  1. package/index.js +795 -3402
  2. package/package.json +1 -1
  3. package/serve.js +3223 -4183
  4. package/web/assets/index--UyZtsHr.js +238 -0
  5. package/web/assets/index-15FuETM5.js +238 -0
  6. package/web/assets/index-1O90ZcBt.js +238 -0
  7. package/web/assets/index-2ZaXHlEm.js +12 -0
  8. package/web/assets/index-5SgaIe6K.js +238 -0
  9. package/web/assets/index-69TE-Dt9.js +238 -0
  10. package/web/assets/index-6qWMAJjW.js +12 -0
  11. package/web/assets/index-8bavzcKH.js +238 -0
  12. package/web/assets/index-B2JcVRax.js +238 -0
  13. package/web/assets/index-B3a1j3cz.js +238 -0
  14. package/web/assets/index-B6EqO_Cg.js +12 -0
  15. package/web/assets/index-B7OJ5sV_.js +238 -0
  16. package/web/assets/index-B9YWtkC-.js +12 -0
  17. package/web/assets/index-BD162a_1.js +238 -0
  18. package/web/assets/index-BF50bkqY.css +1 -0
  19. package/web/assets/index-BPMcNaXa.css +1 -0
  20. package/web/assets/index-BPlwhwPb.css +1 -0
  21. package/web/assets/index-BW9aouHt.js +238 -0
  22. package/web/assets/index-BbZvxZvZ.css +1 -0
  23. package/web/assets/index-BkYFml7g.css +1 -0
  24. package/web/assets/index-Bnn0CunM.js +238 -0
  25. package/web/assets/index-BosC7CbW.css +1 -0
  26. package/web/assets/index-BrJa-9jA.css +1 -0
  27. package/web/assets/index-C63Z-8cw.js +238 -0
  28. package/web/assets/index-C6ydhyiL.js +238 -0
  29. package/web/assets/index-CAXoXe3-.css +1 -0
  30. package/web/assets/index-CDG7D9Wo.css +1 -0
  31. package/web/assets/index-CNruo9jb.js +238 -0
  32. package/web/assets/index-CUGq5bZG.js +12 -0
  33. package/web/assets/index-CVB_F0xd.js +238 -0
  34. package/web/assets/index-CVct6UjO.css +1 -0
  35. package/web/assets/index-CX2QKHgP.js +12 -0
  36. package/web/assets/index-Cok56quU.css +1 -0
  37. package/web/assets/index-Ct-X2M8U.js +12 -0
  38. package/web/assets/index-CtnVCeI7.css +1 -0
  39. package/web/assets/index-Cu6ttPtz.js +12 -0
  40. package/web/assets/index-CvTLDILA.css +1 -0
  41. package/web/assets/index-D0x9zuj2.js +238 -0
  42. package/web/assets/index-D3-qG0Hp.js +238 -0
  43. package/web/assets/index-D3UsEQTE.css +1 -0
  44. package/web/assets/index-D5WvCk3U.js +238 -0
  45. package/web/assets/index-D6QqUdMz.css +1 -0
  46. package/web/assets/index-D7EkgIsu.js +12 -0
  47. package/web/assets/index-DB_YWOXK.js +12 -0
  48. package/web/assets/index-DBaysFVi.css +1 -0
  49. package/web/assets/index-DGYdHfUt.js +238 -0
  50. package/web/assets/index-DIzfj2PR.css +1 -0
  51. package/web/assets/index-DJiYLRIW.css +1 -0
  52. package/web/assets/index-DQcztEye.js +238 -0
  53. package/web/assets/index-DSnxWXVs.css +1 -0
  54. package/web/assets/index-DX1UQEJF.css +1 -0
  55. package/web/assets/index-DgtV8nwc.js +238 -0
  56. package/web/assets/index-DqdyIshw.js +12 -0
  57. package/web/assets/index-DyF2kEj9.js +238 -0
  58. package/web/assets/index-H6Rs5Fbq.js +12 -0
  59. package/web/assets/index-O5LI2GNV.js +238 -0
  60. package/web/assets/index-SnFvyzm_.css +1 -0
  61. package/web/assets/index-bnfl0N-T.css +1 -0
  62. package/web/assets/index-cMgxghVE.css +1 -0
  63. package/web/assets/index-dDuVahj-.js +12 -0
  64. package/web/assets/index-fG23cf-l.js +238 -0
  65. package/web/assets/index-it-5oMch.css +1 -0
  66. package/web/assets/index-yq497d-W.js +12 -0
  67. package/web/index.html +2 -2
@@ -0,0 +1,12 @@
1
+ function Kv(l,i){for(var u=0;u<i.length;u++){const o=i[u];if(typeof o!="string"&&!Array.isArray(o)){for(const c in o)if(c!=="default"&&!(c in l)){const f=Object.getOwnPropertyDescriptor(o,c);f&&Object.defineProperty(l,c,f.get?f:{enumerable:!0,get:()=>o[c]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))o(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function u(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function o(c){if(c.ep)return;c.ep=!0;const f=u(c);fetch(c.href,f)}})();function Xv(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var ic={exports:{}},Gi={};var wm;function Qv(){if(wm)return Gi;wm=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function u(o,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var m in c)m!=="key"&&(f[m]=c[m])}else f=c;return c=f.ref,{$$typeof:l,type:o,key:d,ref:c!==void 0?c:null,props:f}}return Gi.Fragment=i,Gi.jsx=u,Gi.jsxs=u,Gi}var Cm;function Zv(){return Cm||(Cm=1,ic.exports=Qv()),ic.exports}var j=Zv();const Re=l=>typeof l=="string",Ki=()=>{let l,i;const u=new Promise((o,c)=>{l=o,i=c});return u.resolve=l,u.reject=i,u},zm=l=>l==null?"":""+l,$v=(l,i,u)=>{l.forEach(o=>{i[o]&&(u[o]=i[o])})},Jv=/###/g,Dm=l=>l&&l.indexOf("###")>-1?l.replace(Jv,"."):l,Mm=l=>!l||Re(l),Pi=(l,i,u)=>{const o=Re(i)?i.split("."):i;let c=0;for(;c<o.length-1;){if(Mm(l))return{};const f=Dm(o[c]);!l[f]&&u&&(l[f]=new u),Object.prototype.hasOwnProperty.call(l,f)?l=l[f]:l={},++c}return Mm(l)?{}:{obj:l,k:Dm(o[c])}},Am=(l,i,u)=>{const{obj:o,k:c}=Pi(l,i,Object);if(o!==void 0||i.length===1){o[c]=u;return}let f=i[i.length-1],d=i.slice(0,i.length-1),m=Pi(l,d,Object);for(;m.obj===void 0&&d.length;)f=`${d[d.length-1]}.${f}`,d=d.slice(0,d.length-1),m=Pi(l,d,Object),m?.obj&&typeof m.obj[`${m.k}.${f}`]<"u"&&(m.obj=void 0);m.obj[`${m.k}.${f}`]=u},Fv=(l,i,u,o)=>{const{obj:c,k:f}=Pi(l,i,Object);c[f]=c[f]||[],c[f].push(u)},Bu=(l,i)=>{const{obj:u,k:o}=Pi(l,i);if(u&&Object.prototype.hasOwnProperty.call(u,o))return u[o]},Wv=(l,i,u)=>{const o=Bu(l,u);return o!==void 0?o:Bu(i,u)},Kp=(l,i,u)=>{for(const o in i)o!=="__proto__"&&o!=="constructor"&&(o in l?Re(l[o])||l[o]instanceof String||Re(i[o])||i[o]instanceof String?u&&(l[o]=i[o]):Kp(l[o],i[o],u):l[o]=i[o]);return l},In=l=>l.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Pv={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Iv=l=>Re(l)?l.replace(/[&<>"'\/]/g,i=>Pv[i]):l;class e0{constructor(i){this.capacity=i,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(i){const u=this.regExpMap.get(i);if(u!==void 0)return u;const o=new RegExp(i);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(i,o),this.regExpQueue.push(i),o}}const t0=[" ",",","?","!",";"],a0=new e0(20),n0=(l,i,u)=>{i=i||"",u=u||"";const o=t0.filter(d=>i.indexOf(d)<0&&u.indexOf(d)<0);if(o.length===0)return!0;const c=a0.getRegExp(`(${o.map(d=>d==="?"?"\\?":d).join("|")})`);let f=!c.test(l);if(!f){const d=l.indexOf(u);d>0&&!c.test(l.substring(0,d))&&(f=!0)}return f},Ec=(l,i,u=".")=>{if(!l)return;if(l[i])return Object.prototype.hasOwnProperty.call(l,i)?l[i]:void 0;const o=i.split(u);let c=l;for(let f=0;f<o.length;){if(!c||typeof c!="object")return;let d,m="";for(let g=f;g<o.length;++g)if(g!==f&&(m+=u),m+=o[g],d=c[m],d!==void 0){if(["string","number","boolean"].indexOf(typeof d)>-1&&g<o.length-1)continue;f+=g-f+1;break}c=d}return c},tr=l=>l?.replace("_","-"),l0={type:"logger",log(l){this.output("log",l)},warn(l){this.output("warn",l)},error(l){this.output("error",l)},output(l,i){console?.[l]?.apply?.(console,i)}};class qu{constructor(i,u={}){this.init(i,u)}init(i,u={}){this.prefix=u.prefix||"i18next:",this.logger=i||l0,this.options=u,this.debug=u.debug}log(...i){return this.forward(i,"log","",!0)}warn(...i){return this.forward(i,"warn","",!0)}error(...i){return this.forward(i,"error","")}deprecate(...i){return this.forward(i,"warn","WARNING DEPRECATED: ",!0)}forward(i,u,o,c){return c&&!this.debug?null:(Re(i[0])&&(i[0]=`${o}${this.prefix} ${i[0]}`),this.logger[u](i))}create(i){return new qu(this.logger,{prefix:`${this.prefix}:${i}:`,...this.options})}clone(i){return i=i||this.options,i.prefix=i.prefix||this.prefix,new qu(this.logger,i)}}var _a=new qu;class Vu{constructor(){this.observers={}}on(i,u){return i.split(" ").forEach(o=>{this.observers[o]||(this.observers[o]=new Map);const c=this.observers[o].get(u)||0;this.observers[o].set(u,c+1)}),this}off(i,u){if(this.observers[i]){if(!u){delete this.observers[i];return}this.observers[i].delete(u)}}emit(i,...u){this.observers[i]&&Array.from(this.observers[i].entries()).forEach(([c,f])=>{for(let d=0;d<f;d++)c(...u)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([c,f])=>{for(let d=0;d<f;d++)c.apply(c,[i,...u])})}}class Nm extends Vu{constructor(i,u={ns:["translation"],defaultNS:"translation"}){super(),this.data=i||{},this.options=u,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}removeNamespaces(i){const u=this.options.ns.indexOf(i);u>-1&&this.options.ns.splice(u,1)}getResource(i,u,o,c={}){const f=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,d=c.ignoreJSONStructure!==void 0?c.ignoreJSONStructure:this.options.ignoreJSONStructure;let m;i.indexOf(".")>-1?m=i.split("."):(m=[i,u],o&&(Array.isArray(o)?m.push(...o):Re(o)&&f?m.push(...o.split(f)):m.push(o)));const g=Bu(this.data,m);return!g&&!u&&!o&&i.indexOf(".")>-1&&(i=m[0],u=m[1],o=m.slice(2).join(".")),g||!d||!Re(o)?g:Ec(this.data?.[i]?.[u],o,f)}addResource(i,u,o,c,f={silent:!1}){const d=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator;let m=[i,u];o&&(m=m.concat(d?o.split(d):o)),i.indexOf(".")>-1&&(m=i.split("."),c=u,u=m[1]),this.addNamespaces(u),Am(this.data,m,c),f.silent||this.emit("added",i,u,o,c)}addResources(i,u,o,c={silent:!1}){for(const f in o)(Re(o[f])||Array.isArray(o[f]))&&this.addResource(i,u,f,o[f],{silent:!0});c.silent||this.emit("added",i,u,o)}addResourceBundle(i,u,o,c,f,d={silent:!1,skipCopy:!1}){let m=[i,u];i.indexOf(".")>-1&&(m=i.split("."),c=o,o=u,u=m[1]),this.addNamespaces(u);let g=Bu(this.data,m)||{};d.skipCopy||(o=JSON.parse(JSON.stringify(o))),c?Kp(g,o,f):g={...g,...o},Am(this.data,m,g),d.silent||this.emit("added",i,u,o)}removeResourceBundle(i,u){this.hasResourceBundle(i,u)&&delete this.data[i][u],this.removeNamespaces(u),this.emit("removed",i,u)}hasResourceBundle(i,u){return this.getResource(i,u)!==void 0}getResourceBundle(i,u){return u||(u=this.options.defaultNS),this.getResource(i,u)}getDataByLanguage(i){return this.data[i]}hasLanguageSomeTranslations(i){const u=this.getDataByLanguage(i);return!!(u&&Object.keys(u)||[]).find(c=>u[c]&&Object.keys(u[c]).length>0)}toJSON(){return this.data}}var Xp={processors:{},addPostProcessor(l){this.processors[l.name]=l},handle(l,i,u,o,c){return l.forEach(f=>{i=this.processors[f]?.process(i,u,o,c)??i}),i}};const Qp=Symbol("i18next/PATH_KEY");function i0(){const l=[],i=Object.create(null);let u;return i.get=(o,c)=>(u?.revoke?.(),c===Qp?l:(l.push(c),u=Proxy.revocable(o,i),u.proxy)),Proxy.revocable(Object.create(null),i).proxy}function Rc(l,i){const{[Qp]:u}=l(i0());return u.join(i?.keySeparator??".")}const Lm={},rc=l=>!Re(l)&&typeof l!="boolean"&&typeof l!="number";class Yu extends Vu{constructor(i,u={}){super(),$v(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,this),this.options=u,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=_a.create("translator")}changeLanguage(i){i&&(this.language=i)}exists(i,u={interpolation:{}}){const o={...u};if(i==null)return!1;const c=this.resolve(i,o);if(c?.res===void 0)return!1;const f=rc(c.res);return!(o.returnObjects===!1&&f)}extractFromKey(i,u){let o=u.nsSeparator!==void 0?u.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");const c=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator;let f=u.ns||this.options.defaultNS||[];const d=o&&i.indexOf(o)>-1,m=!this.options.userDefinedKeySeparator&&!u.keySeparator&&!this.options.userDefinedNsSeparator&&!u.nsSeparator&&!n0(i,o,c);if(d&&!m){const g=i.match(this.interpolator.nestingRegexp);if(g&&g.length>0)return{key:i,namespaces:Re(f)?[f]:f};const p=i.split(o);(o!==c||o===c&&this.options.ns.indexOf(p[0])>-1)&&(f=p.shift()),i=p.join(c)}return{key:i,namespaces:Re(f)?[f]:f}}translate(i,u,o){let c=typeof u=="object"?{...u}:u;if(typeof c!="object"&&this.options.overloadTranslationOptionHandler&&(c=this.options.overloadTranslationOptionHandler(arguments)),typeof c=="object"&&(c={...c}),c||(c={}),i==null)return"";typeof i=="function"&&(i=Rc(i,{...this.options,...c})),Array.isArray(i)||(i=[String(i)]);const f=c.returnDetails!==void 0?c.returnDetails:this.options.returnDetails,d=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,{key:m,namespaces:g}=this.extractFromKey(i[i.length-1],c),p=g[g.length-1];let b=c.nsSeparator!==void 0?c.nsSeparator:this.options.nsSeparator;b===void 0&&(b=":");const v=c.lng||this.language,O=c.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(v?.toLowerCase()==="cimode")return O?f?{res:`${p}${b}${m}`,usedKey:m,exactUsedKey:m,usedLng:v,usedNS:p,usedParams:this.getUsedParamsDetails(c)}:`${p}${b}${m}`:f?{res:m,usedKey:m,exactUsedKey:m,usedLng:v,usedNS:p,usedParams:this.getUsedParamsDetails(c)}:m;const R=this.resolve(i,c);let D=R?.res;const Y=R?.usedKey||m,V=R?.exactUsedKey||m,J=["[object Number]","[object Function]","[object RegExp]"],$=c.joinArrays!==void 0?c.joinArrays:this.options.joinArrays,W=!this.i18nFormat||this.i18nFormat.handleAsObject,fe=c.count!==void 0&&!Re(c.count),ce=Yu.hasDefaultValue(c),ge=fe?this.pluralResolver.getSuffix(v,c.count,c):"",le=c.ordinal&&fe?this.pluralResolver.getSuffix(v,c.count,{ordinal:!1}):"",z=fe&&!c.ordinal&&c.count===0,ee=z&&c[`defaultValue${this.options.pluralSeparator}zero`]||c[`defaultValue${ge}`]||c[`defaultValue${le}`]||c.defaultValue;let ae=D;W&&!D&&ce&&(ae=ee);const xe=rc(ae),re=Object.prototype.toString.apply(ae);if(W&&ae&&xe&&J.indexOf(re)<0&&!(Re($)&&Array.isArray(ae))){if(!c.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const ze=this.options.returnedObjectHandler?this.options.returnedObjectHandler(Y,ae,{...c,ns:g}):`key '${m} (${this.language})' returned an object instead of string.`;return f?(R.res=ze,R.usedParams=this.getUsedParamsDetails(c),R):ze}if(d){const ze=Array.isArray(ae),Se=ze?[]:{},ye=ze?V:Y;for(const N in ae)if(Object.prototype.hasOwnProperty.call(ae,N)){const K=`${ye}${d}${N}`;ce&&!D?Se[N]=this.translate(K,{...c,defaultValue:rc(ee)?ee[N]:void 0,joinArrays:!1,ns:g}):Se[N]=this.translate(K,{...c,joinArrays:!1,ns:g}),Se[N]===K&&(Se[N]=ae[N])}D=Se}}else if(W&&Re($)&&Array.isArray(D))D=D.join($),D&&(D=this.extendTranslation(D,i,c,o));else{let ze=!1,Se=!1;!this.isValidLookup(D)&&ce&&(ze=!0,D=ee),this.isValidLookup(D)||(Se=!0,D=m);const N=(c.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Se?void 0:D,K=ce&&ee!==D&&this.options.updateMissing;if(Se||ze||K){if(this.logger.log(K?"updateKey":"missingKey",v,p,m,K?ee:D),d){const E=this.resolve(m,{...c,keySeparator:!1});E&&E.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let I=[];const ie=this.languageUtils.getFallbackCodes(this.options.fallbackLng,c.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ie&&ie[0])for(let E=0;E<ie.length;E++)I.push(ie[E]);else this.options.saveMissingTo==="all"?I=this.languageUtils.toResolveHierarchy(c.lng||this.language):I.push(c.lng||this.language);const Oe=(E,B,Q)=>{const P=ce&&Q!==D?Q:N;this.options.missingKeyHandler?this.options.missingKeyHandler(E,p,B,P,K,c):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(E,p,B,P,K,c),this.emit("missingKey",E,p,B,D)};this.options.saveMissing&&(this.options.saveMissingPlurals&&fe?I.forEach(E=>{const B=this.pluralResolver.getSuffixes(E,c);z&&c[`defaultValue${this.options.pluralSeparator}zero`]&&B.indexOf(`${this.options.pluralSeparator}zero`)<0&&B.push(`${this.options.pluralSeparator}zero`),B.forEach(Q=>{Oe([E],m+Q,c[`defaultValue${Q}`]||ee)})}):Oe(I,m,ee))}D=this.extendTranslation(D,i,c,R,o),Se&&D===m&&this.options.appendNamespaceToMissingKey&&(D=`${p}${b}${m}`),(Se||ze)&&this.options.parseMissingKeyHandler&&(D=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${p}${b}${m}`:m,ze?D:void 0,c))}return f?(R.res=D,R.usedParams=this.getUsedParamsDetails(c),R):D}extendTranslation(i,u,o,c,f){if(this.i18nFormat?.parse)i=this.i18nFormat.parse(i,{...this.options.interpolation.defaultVariables,...o},o.lng||this.language||c.usedLng,c.usedNS,c.usedKey,{resolved:c});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init({...o,interpolation:{...this.options.interpolation,...o.interpolation}});const g=Re(i)&&(o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let p;if(g){const v=i.match(this.interpolator.nestingRegexp);p=v&&v.length}let b=o.replace&&!Re(o.replace)?o.replace:o;if(this.options.interpolation.defaultVariables&&(b={...this.options.interpolation.defaultVariables,...b}),i=this.interpolator.interpolate(i,b,o.lng||this.language||c.usedLng,o),g){const v=i.match(this.interpolator.nestingRegexp),O=v&&v.length;p<O&&(o.nest=!1)}!o.lng&&c&&c.res&&(o.lng=this.language||c.usedLng),o.nest!==!1&&(i=this.interpolator.nest(i,(...v)=>f?.[0]===v[0]&&!o.context?(this.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${u[0]}`),null):this.translate(...v,u),o)),o.interpolation&&this.interpolator.reset()}const d=o.postProcess||this.options.postProcess,m=Re(d)?[d]:d;return i!=null&&m?.length&&o.applyPostProcessor!==!1&&(i=Xp.handle(m,i,u,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...c,usedParams:this.getUsedParamsDetails(o)},...o}:o,this)),i}resolve(i,u={}){let o,c,f,d,m;return Re(i)&&(i=[i]),i.forEach(g=>{if(this.isValidLookup(o))return;const p=this.extractFromKey(g,u),b=p.key;c=b;let v=p.namespaces;this.options.fallbackNS&&(v=v.concat(this.options.fallbackNS));const O=u.count!==void 0&&!Re(u.count),R=O&&!u.ordinal&&u.count===0,D=u.context!==void 0&&(Re(u.context)||typeof u.context=="number")&&u.context!=="",Y=u.lngs?u.lngs:this.languageUtils.toResolveHierarchy(u.lng||this.language,u.fallbackLng);v.forEach(V=>{this.isValidLookup(o)||(m=V,!Lm[`${Y[0]}-${V}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(m)&&(Lm[`${Y[0]}-${V}`]=!0,this.logger.warn(`key "${c}" for languages "${Y.join(", ")}" won't get resolved as namespace "${m}" 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!!!")),Y.forEach(J=>{if(this.isValidLookup(o))return;d=J;const $=[b];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys($,b,J,V,u);else{let fe;O&&(fe=this.pluralResolver.getSuffix(J,u.count,u));const ce=`${this.options.pluralSeparator}zero`,ge=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(O&&(u.ordinal&&fe.indexOf(ge)===0&&$.push(b+fe.replace(ge,this.options.pluralSeparator)),$.push(b+fe),R&&$.push(b+ce)),D){const le=`${b}${this.options.contextSeparator||"_"}${u.context}`;$.push(le),O&&(u.ordinal&&fe.indexOf(ge)===0&&$.push(le+fe.replace(ge,this.options.pluralSeparator)),$.push(le+fe),R&&$.push(le+ce))}}let W;for(;W=$.pop();)this.isValidLookup(o)||(f=W,o=this.getResource(J,V,W,u))}))})}),{res:o,usedKey:c,exactUsedKey:f,usedLng:d,usedNS:m}}isValidLookup(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}getResource(i,u,o,c={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(i,u,o,c):this.resourceStore.getResource(i,u,o,c)}getUsedParamsDetails(i={}){const u=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],o=i.replace&&!Re(i.replace);let c=o?i.replace:i;if(o&&typeof i.count<"u"&&(c.count=i.count),this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),!o){c={...c};for(const f of u)delete c[f]}return c}static hasDefaultValue(i){const u="defaultValue";for(const o in i)if(Object.prototype.hasOwnProperty.call(i,o)&&u===o.substring(0,u.length)&&i[o]!==void 0)return!0;return!1}}class jm{constructor(i){this.options=i,this.supportedLngs=this.options.supportedLngs||!1,this.logger=_a.create("languageUtils")}getScriptPartFromCode(i){if(i=tr(i),!i||i.indexOf("-")<0)return null;const u=i.split("-");return u.length===2||(u.pop(),u[u.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(u.join("-"))}getLanguagePartFromCode(i){if(i=tr(i),!i||i.indexOf("-")<0)return i;const u=i.split("-");return this.formatLanguageCode(u[0])}formatLanguageCode(i){if(Re(i)&&i.indexOf("-")>-1){let u;try{u=Intl.getCanonicalLocales(i)[0]}catch{}return u&&this.options.lowerCaseLng&&(u=u.toLowerCase()),u||(this.options.lowerCaseLng?i.toLowerCase():i)}return this.options.cleanCode||this.options.lowerCaseLng?i.toLowerCase():i}isSupportedCode(i){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(i=this.getLanguagePartFromCode(i)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(i)>-1}getBestMatchFromCodes(i){if(!i)return null;let u;return i.forEach(o=>{if(u)return;const c=this.formatLanguageCode(o);(!this.options.supportedLngs||this.isSupportedCode(c))&&(u=c)}),!u&&this.options.supportedLngs&&i.forEach(o=>{if(u)return;const c=this.getScriptPartFromCode(o);if(this.isSupportedCode(c))return u=c;const f=this.getLanguagePartFromCode(o);if(this.isSupportedCode(f))return u=f;u=this.options.supportedLngs.find(d=>{if(d===f)return d;if(!(d.indexOf("-")<0&&f.indexOf("-")<0)&&(d.indexOf("-")>0&&f.indexOf("-")<0&&d.substring(0,d.indexOf("-"))===f||d.indexOf(f)===0&&f.length>1))return d})}),u||(u=this.getFallbackCodes(this.options.fallbackLng)[0]),u}getFallbackCodes(i,u){if(!i)return[];if(typeof i=="function"&&(i=i(u)),Re(i)&&(i=[i]),Array.isArray(i))return i;if(!u)return i.default||[];let o=i[u];return o||(o=i[this.getScriptPartFromCode(u)]),o||(o=i[this.formatLanguageCode(u)]),o||(o=i[this.getLanguagePartFromCode(u)]),o||(o=i.default),o||[]}toResolveHierarchy(i,u){const o=this.getFallbackCodes((u===!1?[]:u)||this.options.fallbackLng||[],i),c=[],f=d=>{d&&(this.isSupportedCode(d)?c.push(d):this.logger.warn(`rejecting language code not found in supportedLngs: ${d}`))};return Re(i)&&(i.indexOf("-")>-1||i.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&f(this.formatLanguageCode(i)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&f(this.getScriptPartFromCode(i)),this.options.load!=="currentOnly"&&f(this.getLanguagePartFromCode(i))):Re(i)&&f(this.formatLanguageCode(i)),o.forEach(d=>{c.indexOf(d)<0&&f(this.formatLanguageCode(d))}),c}}const Um={zero:0,one:1,two:2,few:3,many:4,other:5},Hm={select:l=>l===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class r0{constructor(i,u={}){this.languageUtils=i,this.options=u,this.logger=_a.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(i,u={}){const o=tr(i==="dev"?"en":i),c=u.ordinal?"ordinal":"cardinal",f=JSON.stringify({cleanedCode:o,type:c});if(f in this.pluralRulesCache)return this.pluralRulesCache[f];let d;try{d=new Intl.PluralRules(o,{type:c})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),Hm;if(!i.match(/-|_/))return Hm;const g=this.languageUtils.getLanguagePartFromCode(i);d=this.getRule(g,u)}return this.pluralRulesCache[f]=d,d}needsPlural(i,u={}){let o=this.getRule(i,u);return o||(o=this.getRule("dev",u)),o?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(i,u,o={}){return this.getSuffixes(i,o).map(c=>`${u}${c}`)}getSuffixes(i,u={}){let o=this.getRule(i,u);return o||(o=this.getRule("dev",u)),o?o.resolvedOptions().pluralCategories.sort((c,f)=>Um[c]-Um[f]).map(c=>`${this.options.prepend}${u.ordinal?`ordinal${this.options.prepend}`:""}${c}`):[]}getSuffix(i,u,o={}){const c=this.getRule(i,o);return c?`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${c.select(u)}`:(this.logger.warn(`no plural rule found for: ${i}`),this.getSuffix("dev",u,o))}}const Bm=(l,i,u,o=".",c=!0)=>{let f=Wv(l,i,u);return!f&&c&&Re(u)&&(f=Ec(l,u,o),f===void 0&&(f=Ec(i,u,o))),f},uc=l=>l.replace(/\$/g,"$$$$");class qm{constructor(i={}){this.logger=_a.create("interpolator"),this.options=i,this.format=i?.interpolation?.format||(u=>u),this.init(i)}init(i={}){i.interpolation||(i.interpolation={escapeValue:!0});const{escape:u,escapeValue:o,useRawValueToEscape:c,prefix:f,prefixEscaped:d,suffix:m,suffixEscaped:g,formatSeparator:p,unescapeSuffix:b,unescapePrefix:v,nestingPrefix:O,nestingPrefixEscaped:R,nestingSuffix:D,nestingSuffixEscaped:Y,nestingOptionsSeparator:V,maxReplaces:J,alwaysFormat:$}=i.interpolation;this.escape=u!==void 0?u:Iv,this.escapeValue=o!==void 0?o:!0,this.useRawValueToEscape=c!==void 0?c:!1,this.prefix=f?In(f):d||"{{",this.suffix=m?In(m):g||"}}",this.formatSeparator=p||",",this.unescapePrefix=b?"":v||"-",this.unescapeSuffix=this.unescapePrefix?"":b||"",this.nestingPrefix=O?In(O):R||In("$t("),this.nestingSuffix=D?In(D):Y||In(")"),this.nestingOptionsSeparator=V||",",this.maxReplaces=J||1e3,this.alwaysFormat=$!==void 0?$:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const i=(u,o)=>u?.source===o?(u.lastIndex=0,u):new RegExp(o,"g");this.regexp=i(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=i(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=i(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(i,u,o,c){let f,d,m;const g=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=R=>{if(R.indexOf(this.formatSeparator)<0){const J=Bm(u,g,R,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(J,void 0,o,{...c,...u,interpolationkey:R}):J}const D=R.split(this.formatSeparator),Y=D.shift().trim(),V=D.join(this.formatSeparator).trim();return this.format(Bm(u,g,Y,this.options.keySeparator,this.options.ignoreJSONStructure),V,o,{...c,...u,interpolationkey:Y})};this.resetRegExp();const b=c?.missingInterpolationHandler||this.options.missingInterpolationHandler,v=c?.interpolation?.skipOnVariables!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:R=>uc(R)},{regex:this.regexp,safeValue:R=>this.escapeValue?uc(this.escape(R)):uc(R)}].forEach(R=>{for(m=0;f=R.regex.exec(i);){const D=f[1].trim();if(d=p(D),d===void 0)if(typeof b=="function"){const V=b(i,f,c);d=Re(V)?V:""}else if(c&&Object.prototype.hasOwnProperty.call(c,D))d="";else if(v){d=f[0];continue}else this.logger.warn(`missed to pass in variable ${D} for interpolating ${i}`),d="";else!Re(d)&&!this.useRawValueToEscape&&(d=zm(d));const Y=R.safeValue(d);if(i=i.replace(f[0],Y),v?(R.regex.lastIndex+=d.length,R.regex.lastIndex-=f[0].length):R.regex.lastIndex=0,m++,m>=this.maxReplaces)break}}),i}nest(i,u,o={}){let c,f,d;const m=(g,p)=>{const b=this.nestingOptionsSeparator;if(g.indexOf(b)<0)return g;const v=g.split(new RegExp(`${In(b)}[ ]*{`));let O=`{${v[1]}`;g=v[0],O=this.interpolate(O,d);const R=O.match(/'/g),D=O.match(/"/g);((R?.length??0)%2===0&&!D||(D?.length??0)%2!==0)&&(O=O.replace(/'/g,'"'));try{d=JSON.parse(O),p&&(d={...p,...d})}catch(Y){return this.logger.warn(`failed parsing options string in nesting for key ${g}`,Y),`${g}${b}${O}`}return d.defaultValue&&d.defaultValue.indexOf(this.prefix)>-1&&delete d.defaultValue,g};for(;c=this.nestingRegexp.exec(i);){let g=[];d={...o},d=d.replace&&!Re(d.replace)?d.replace:d,d.applyPostProcessor=!1,delete d.defaultValue;const p=/{.*}/.test(c[1])?c[1].lastIndexOf("}")+1:c[1].indexOf(this.formatSeparator);if(p!==-1&&(g=c[1].slice(p).split(this.formatSeparator).map(b=>b.trim()).filter(Boolean),c[1]=c[1].slice(0,p)),f=u(m.call(this,c[1].trim(),d),d),f&&c[0]===i&&!Re(f))return f;Re(f)||(f=zm(f)),f||(this.logger.warn(`missed to resolve ${c[1]} for nesting ${i}`),f=""),g.length&&(f=g.reduce((b,v)=>this.format(b,v,o.lng,{...o,interpolationkey:c[1].trim()}),f.trim())),i=i.replace(c[0],f),this.regexp.lastIndex=0}return i}}const u0=l=>{let i=l.toLowerCase().trim();const u={};if(l.indexOf("(")>-1){const o=l.split("(");i=o[0].toLowerCase().trim();const c=o[1].substring(0,o[1].length-1);i==="currency"&&c.indexOf(":")<0?u.currency||(u.currency=c.trim()):i==="relativetime"&&c.indexOf(":")<0?u.range||(u.range=c.trim()):c.split(";").forEach(d=>{if(d){const[m,...g]=d.split(":"),p=g.join(":").trim().replace(/^'+|'+$/g,""),b=m.trim();u[b]||(u[b]=p),p==="false"&&(u[b]=!1),p==="true"&&(u[b]=!0),isNaN(p)||(u[b]=parseInt(p,10))}})}return{formatName:i,formatOptions:u}},Ym=l=>{const i={};return(u,o,c)=>{let f=c;c&&c.interpolationkey&&c.formatParams&&c.formatParams[c.interpolationkey]&&c[c.interpolationkey]&&(f={...f,[c.interpolationkey]:void 0});const d=o+JSON.stringify(f);let m=i[d];return m||(m=l(tr(o),c),i[d]=m),m(u)}},o0=l=>(i,u,o)=>l(tr(u),o)(i);class s0{constructor(i={}){this.logger=_a.create("formatter"),this.options=i,this.init(i)}init(i,u={interpolation:{}}){this.formatSeparator=u.interpolation.formatSeparator||",";const o=u.cacheInBuiltFormats?Ym:o0;this.formats={number:o((c,f)=>{const d=new Intl.NumberFormat(c,{...f});return m=>d.format(m)}),currency:o((c,f)=>{const d=new Intl.NumberFormat(c,{...f,style:"currency"});return m=>d.format(m)}),datetime:o((c,f)=>{const d=new Intl.DateTimeFormat(c,{...f});return m=>d.format(m)}),relativetime:o((c,f)=>{const d=new Intl.RelativeTimeFormat(c,{...f});return m=>d.format(m,f.range||"day")}),list:o((c,f)=>{const d=new Intl.ListFormat(c,{...f});return m=>d.format(m)})}}add(i,u){this.formats[i.toLowerCase().trim()]=u}addCached(i,u){this.formats[i.toLowerCase().trim()]=Ym(u)}format(i,u,o,c={}){const f=u.split(this.formatSeparator);if(f.length>1&&f[0].indexOf("(")>1&&f[0].indexOf(")")<0&&f.find(m=>m.indexOf(")")>-1)){const m=f.findIndex(g=>g.indexOf(")")>-1);f[0]=[f[0],...f.splice(1,m)].join(this.formatSeparator)}return f.reduce((m,g)=>{const{formatName:p,formatOptions:b}=u0(g);if(this.formats[p]){let v=m;try{const O=c?.formatParams?.[c.interpolationkey]||{},R=O.locale||O.lng||c.locale||c.lng||o;v=this.formats[p](m,R,{...b,...c,...O})}catch(O){this.logger.warn(O)}return v}else this.logger.warn(`there was no format function for ${p}`);return m},i)}}const c0=(l,i)=>{l.pending[i]!==void 0&&(delete l.pending[i],l.pendingCount--)};class f0 extends Vu{constructor(i,u,o,c={}){super(),this.backend=i,this.store=u,this.services=o,this.languageUtils=o.languageUtils,this.options=c,this.logger=_a.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=c.maxParallelReads||10,this.readingCalls=0,this.maxRetries=c.maxRetries>=0?c.maxRetries:5,this.retryTimeout=c.retryTimeout>=1?c.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(o,c.backend,c)}queueLoad(i,u,o,c){const f={},d={},m={},g={};return i.forEach(p=>{let b=!0;u.forEach(v=>{const O=`${p}|${v}`;!o.reload&&this.store.hasResourceBundle(p,v)?this.state[O]=2:this.state[O]<0||(this.state[O]===1?d[O]===void 0&&(d[O]=!0):(this.state[O]=1,b=!1,d[O]===void 0&&(d[O]=!0),f[O]===void 0&&(f[O]=!0),g[v]===void 0&&(g[v]=!0)))}),b||(m[p]=!0)}),(Object.keys(f).length||Object.keys(d).length)&&this.queue.push({pending:d,pendingCount:Object.keys(d).length,loaded:{},errors:[],callback:c}),{toLoad:Object.keys(f),pending:Object.keys(d),toLoadLanguages:Object.keys(m),toLoadNamespaces:Object.keys(g)}}loaded(i,u,o){const c=i.split("|"),f=c[0],d=c[1];u&&this.emit("failedLoading",f,d,u),!u&&o&&this.store.addResourceBundle(f,d,o,void 0,void 0,{skipCopy:!0}),this.state[i]=u?-1:2,u&&o&&(this.state[i]=0);const m={};this.queue.forEach(g=>{Fv(g.loaded,[f],d),c0(g,i),u&&g.errors.push(u),g.pendingCount===0&&!g.done&&(Object.keys(g.loaded).forEach(p=>{m[p]||(m[p]={});const b=g.loaded[p];b.length&&b.forEach(v=>{m[p][v]===void 0&&(m[p][v]=!0)})}),g.done=!0,g.errors.length?g.callback(g.errors):g.callback())}),this.emit("loaded",m),this.queue=this.queue.filter(g=>!g.done)}read(i,u,o,c=0,f=this.retryTimeout,d){if(!i.length)return d(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:u,fcName:o,tried:c,wait:f,callback:d});return}this.readingCalls++;const m=(p,b)=>{if(this.readingCalls--,this.waitingReads.length>0){const v=this.waitingReads.shift();this.read(v.lng,v.ns,v.fcName,v.tried,v.wait,v.callback)}if(p&&b&&c<this.maxRetries){setTimeout(()=>{this.read.call(this,i,u,o,c+1,f*2,d)},f);return}d(p,b)},g=this.backend[o].bind(this.backend);if(g.length===2){try{const p=g(i,u);p&&typeof p.then=="function"?p.then(b=>m(null,b)).catch(m):m(null,p)}catch(p){m(p)}return}return g(i,u,m)}prepareLoading(i,u,o={},c){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),c&&c();Re(i)&&(i=this.languageUtils.toResolveHierarchy(i)),Re(u)&&(u=[u]);const f=this.queueLoad(i,u,o,c);if(!f.toLoad.length)return f.pending.length||c(),null;f.toLoad.forEach(d=>{this.loadOne(d)})}load(i,u,o){this.prepareLoading(i,u,{},o)}reload(i,u,o){this.prepareLoading(i,u,{reload:!0},o)}loadOne(i,u=""){const o=i.split("|"),c=o[0],f=o[1];this.read(c,f,"read",void 0,void 0,(d,m)=>{d&&this.logger.warn(`${u}loading namespace ${f} for language ${c} failed`,d),!d&&m&&this.logger.log(`${u}loaded namespace ${f} for language ${c}`,m),this.loaded(i,d,m)})}saveMissing(i,u,o,c,f,d={},m=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(u)){this.logger.warn(`did not save key "${o}" as the namespace "${u}" 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(!(o==null||o==="")){if(this.backend?.create){const g={...d,isUpdate:f},p=this.backend.create.bind(this.backend);if(p.length<6)try{let b;p.length===5?b=p(i,u,o,c,g):b=p(i,u,o,c),b&&typeof b.then=="function"?b.then(v=>m(null,v)).catch(m):m(null,b)}catch(b){m(b)}else p(i,u,o,c,m,g)}!i||!i[0]||this.store.addResource(i[0],u,o,c)}}}const oc=()=>({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:l=>{let i={};if(typeof l[1]=="object"&&(i=l[1]),Re(l[1])&&(i.defaultValue=l[1]),Re(l[2])&&(i.tDescription=l[2]),typeof l[2]=="object"||typeof l[3]=="object"){const u=l[3]||l[2];Object.keys(u).forEach(o=>{i[o]=u[o]})}return i},interpolation:{escapeValue:!0,format:l=>l,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),km=l=>(Re(l.ns)&&(l.ns=[l.ns]),Re(l.fallbackLng)&&(l.fallbackLng=[l.fallbackLng]),Re(l.fallbackNS)&&(l.fallbackNS=[l.fallbackNS]),l.supportedLngs?.indexOf?.("cimode")<0&&(l.supportedLngs=l.supportedLngs.concat(["cimode"])),typeof l.initImmediate=="boolean"&&(l.initAsync=l.initImmediate),l),Du=()=>{},d0=l=>{Object.getOwnPropertyNames(Object.getPrototypeOf(l)).forEach(u=>{typeof l[u]=="function"&&(l[u]=l[u].bind(l))})},Zp="__i18next_supportNoticeShown",h0=()=>typeof globalThis<"u"&&!!globalThis[Zp],m0=()=>{typeof globalThis<"u"&&(globalThis[Zp]=!0)},p0=l=>!!(l?.modules?.backend?.name?.indexOf("Locize")>0||l?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||l?.options?.backend?.backends&&l.options.backend.backends.some(i=>i?.name?.indexOf("Locize")>0||i?.constructor?.name?.indexOf("Locize")>0)||l?.options?.backend?.projectId||l?.options?.backend?.backendOptions&&l.options.backend.backendOptions.some(i=>i?.projectId));class Ii extends Vu{constructor(i={},u){if(super(),this.options=km(i),this.services={},this.logger=_a,this.modules={external:[]},d0(this),u&&!this.isInitialized&&!i.isClone){if(!this.options.initAsync)return this.init(i,u),this;setTimeout(()=>{this.init(i,u)},0)}}init(i={},u){this.isInitializing=!0,typeof i=="function"&&(u=i,i={}),i.defaultNS==null&&i.ns&&(Re(i.ns)?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));const o=oc();this.options={...o,...this.options,...km(i)},this.options.interpolation={...o.interpolation,...this.options.interpolation},i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=o.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!p0(this)&&!h0()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),m0());const c=p=>p?typeof p=="function"?new p:p:null;if(!this.options.isClone){this.modules.logger?_a.init(c(this.modules.logger),this.options):_a.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:p=s0;const b=new jm(this.options);this.store=new Nm(this.options.resources,this.options);const v=this.services;v.logger=_a,v.resourceStore=this.store,v.languageUtils=b,v.pluralResolver=new r0(b,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==o.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),p&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(v.formatter=c(p),v.formatter.init&&v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new qm(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new f0(c(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",(R,...D)=>{this.emit(R,...D)}),this.modules.languageDetector&&(v.languageDetector=c(this.modules.languageDetector),v.languageDetector.init&&v.languageDetector.init(v,this.options.detection,this.options)),this.modules.i18nFormat&&(v.i18nFormat=c(this.modules.i18nFormat),v.i18nFormat.init&&v.i18nFormat.init(this)),this.translator=new Yu(this.services,this.options),this.translator.on("*",(R,...D)=>{this.emit(R,...D)}),this.modules.external.forEach(R=>{R.init&&R.init(this)})}if(this.format=this.options.interpolation.format,u||(u=Du),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[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(p=>{this[p]=(...b)=>this.store[p](...b)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=(...b)=>(this.store[p](...b),this)});const m=Ki(),g=()=>{const p=(b,v)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),m.resolve(v),u(b,v)};if(this.languages&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)};return this.options.resources||!this.options.initAsync?g():setTimeout(g,0),m}loadResources(i,u=Du){let o=u;const c=Re(i)?i:this.language;if(typeof i=="function"&&(o=i),!this.options.resources||this.options.partialBundledLanguages){if(c?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return o();const f=[],d=m=>{if(!m||m==="cimode")return;this.services.languageUtils.toResolveHierarchy(m).forEach(p=>{p!=="cimode"&&f.indexOf(p)<0&&f.push(p)})};c?d(c):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(g=>d(g)),this.options.preload?.forEach?.(m=>d(m)),this.services.backendConnector.load(f,this.options.ns,m=>{!m&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),o(m)})}else o(null)}reloadResources(i,u,o){const c=Ki();return typeof i=="function"&&(o=i,i=void 0),typeof u=="function"&&(o=u,u=void 0),i||(i=this.languages),u||(u=this.options.ns),o||(o=Du),this.services.backendConnector.reload(i,u,f=>{c.resolve(),o(f)}),c}use(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&Xp.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}setResolvedLanguage(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1)){for(let u=0;u<this.languages.length;u++){const o=this.languages[u];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}!this.resolvedLanguage&&this.languages.indexOf(i)<0&&this.store.hasLanguageSomeTranslations(i)&&(this.resolvedLanguage=i,this.languages.unshift(i))}}changeLanguage(i,u){this.isLanguageChangingTo=i;const o=Ki();this.emit("languageChanging",i);const c=m=>{this.language=m,this.languages=this.services.languageUtils.toResolveHierarchy(m),this.resolvedLanguage=void 0,this.setResolvedLanguage(m)},f=(m,g)=>{g?this.isLanguageChangingTo===i&&(c(g),this.translator.changeLanguage(g),this.isLanguageChangingTo=void 0,this.emit("languageChanged",g),this.logger.log("languageChanged",g)):this.isLanguageChangingTo=void 0,o.resolve((...p)=>this.t(...p)),u&&u(m,(...p)=>this.t(...p))},d=m=>{!i&&!m&&this.services.languageDetector&&(m=[]);const g=Re(m)?m:m&&m[0],p=this.store.hasLanguageSomeTranslations(g)?g:this.services.languageUtils.getBestMatchFromCodes(Re(m)?[m]:m);p&&(this.language||c(p),this.translator.language||this.translator.changeLanguage(p),this.services.languageDetector?.cacheUserLanguage?.(p)),this.loadResources(p,b=>{f(b,p)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?d(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(d):this.services.languageDetector.detect(d):d(i),o}getFixedT(i,u,o){const c=(f,d,...m)=>{let g;typeof d!="object"?g=this.options.overloadTranslationOptionHandler([f,d].concat(m)):g={...d},g.lng=g.lng||c.lng,g.lngs=g.lngs||c.lngs,g.ns=g.ns||c.ns,g.keyPrefix!==""&&(g.keyPrefix=g.keyPrefix||o||c.keyPrefix);const p=this.options.keySeparator||".";let b;return g.keyPrefix&&Array.isArray(f)?b=f.map(v=>(typeof v=="function"&&(v=Rc(v,{...this.options,...d})),`${g.keyPrefix}${p}${v}`)):(typeof f=="function"&&(f=Rc(f,{...this.options,...d})),b=g.keyPrefix?`${g.keyPrefix}${p}${f}`:f),this.t(b,g)};return Re(i)?c.lng=i:c.lngs=i,c.ns=u,c.keyPrefix=o,c}t(...i){return this.translator?.translate(...i)}exists(...i){return this.translator?.exists(...i)}setDefaultNamespace(i){this.options.defaultNS=i}hasLoadedNamespace(i,u={}){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 o=u.lng||this.resolvedLanguage||this.languages[0],c=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;const d=(m,g)=>{const p=this.services.backendConnector.state[`${m}|${g}`];return p===-1||p===0||p===2};if(u.precheck){const m=u.precheck(this,d);if(m!==void 0)return m}return!!(this.hasResourceBundle(o,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||d(o,i)&&(!c||d(f,i)))}loadNamespaces(i,u){const o=Ki();return this.options.ns?(Re(i)&&(i=[i]),i.forEach(c=>{this.options.ns.indexOf(c)<0&&this.options.ns.push(c)}),this.loadResources(c=>{o.resolve(),u&&u(c)}),o):(u&&u(),Promise.resolve())}loadLanguages(i,u){const o=Ki();Re(i)&&(i=[i]);const c=this.options.preload||[],f=i.filter(d=>c.indexOf(d)<0&&this.services.languageUtils.isSupportedCode(d));return f.length?(this.options.preload=c.concat(f),this.loadResources(d=>{o.resolve(),u&&u(d)}),o):(u&&u(),Promise.resolve())}dir(i){if(i||(i=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!i)return"rtl";try{const c=new Intl.Locale(i);if(c&&c.getTextInfo){const f=c.getTextInfo();if(f&&f.direction)return f.direction}}catch{}const u=["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"],o=this.services?.languageUtils||new jm(oc());return i.toLowerCase().indexOf("-latn")>1?"ltr":u.indexOf(o.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(i={},u){const o=new Ii(i,u);return o.createInstance=Ii.createInstance,o}cloneInstance(i={},u=Du){const o=i.forkResourceStore;o&&delete i.forkResourceStore;const c={...this.options,...i,isClone:!0},f=new Ii(c);if((i.debug!==void 0||i.prefix!==void 0)&&(f.logger=f.logger.clone(i)),["store","services","language"].forEach(m=>{f[m]=this[m]}),f.services={...this.services},f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},o){const m=Object.keys(this.store.data).reduce((g,p)=>(g[p]={...this.store.data[p]},g[p]=Object.keys(g[p]).reduce((b,v)=>(b[v]={...g[p][v]},b),g[p]),g),{});f.store=new Nm(m,c),f.services.resourceStore=f.store}if(i.interpolation){const g={...oc().interpolation,...this.options.interpolation,...i.interpolation},p={...c,interpolation:g};f.services.interpolator=new qm(p)}return f.translator=new Yu(f.services,c),f.translator.on("*",(m,...g)=>{f.emit(m,...g)}),f.init(c,u),f.translator.options=c,f.translator.backendConnector.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ut=Ii.createInstance();Ut.createInstance;Ut.dir;Ut.init;Ut.loadResources;Ut.reloadResources;Ut.use;Ut.changeLanguage;Ut.getFixedT;Ut.t;Ut.exists;Ut.setDefaultNamespace;Ut.hasLoadedNamespace;Ut.loadNamespaces;Ut.loadLanguages;var sc={exports:{}},Te={};var Vm;function g0(){if(Vm)return Te;Vm=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),O=Symbol.iterator;function R(E){return E===null||typeof E!="object"?null:(E=O&&E[O]||E["@@iterator"],typeof E=="function"?E:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y=Object.assign,V={};function J(E,B,Q){this.props=E,this.context=B,this.refs=V,this.updater=Q||D}J.prototype.isReactComponent={},J.prototype.setState=function(E,B){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,B,"setState")},J.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function $(){}$.prototype=J.prototype;function W(E,B,Q){this.props=E,this.context=B,this.refs=V,this.updater=Q||D}var fe=W.prototype=new $;fe.constructor=W,Y(fe,J.prototype),fe.isPureReactComponent=!0;var ce=Array.isArray;function ge(){}var le={H:null,A:null,T:null,S:null},z=Object.prototype.hasOwnProperty;function ee(E,B,Q){var P=Q.ref;return{$$typeof:l,type:E,key:B,ref:P!==void 0?P:null,props:Q}}function ae(E,B){return ee(E.type,B,E.props)}function xe(E){return typeof E=="object"&&E!==null&&E.$$typeof===l}function re(E){var B={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(Q){return B[Q]})}var ze=/\/+/g;function Se(E,B){return typeof E=="object"&&E!==null&&E.key!=null?re(""+E.key):B.toString(36)}function ye(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(ge,ge):(E.status="pending",E.then(function(B){E.status==="pending"&&(E.status="fulfilled",E.value=B)},function(B){E.status==="pending"&&(E.status="rejected",E.reason=B)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function N(E,B,Q,P,ve){var Ee=typeof E;(Ee==="undefined"||Ee==="boolean")&&(E=null);var De=!1;if(E===null)De=!0;else switch(Ee){case"bigint":case"string":case"number":De=!0;break;case"object":switch(E.$$typeof){case l:case i:De=!0;break;case b:return De=E._init,N(De(E._payload),B,Q,P,ve)}}if(De)return ve=ve(E),De=P===""?"."+Se(E,0):P,ce(ve)?(Q="",De!=null&&(Q=De.replace(ze,"$&/")+"/"),N(ve,B,Q,"",function(An){return An})):ve!=null&&(xe(ve)&&(ve=ae(ve,Q+(ve.key==null||E&&E.key===ve.key?"":(""+ve.key).replace(ze,"$&/")+"/")+De)),B.push(ve)),1;De=0;var ft=P===""?".":P+":";if(ce(E))for(var Je=0;Je<E.length;Je++)P=E[Je],Ee=ft+Se(P,Je),De+=N(P,B,Q,Ee,ve);else if(Je=R(E),typeof Je=="function")for(E=Je.call(E),Je=0;!(P=E.next()).done;)P=P.value,Ee=ft+Se(P,Je++),De+=N(P,B,Q,Ee,ve);else if(Ee==="object"){if(typeof E.then=="function")return N(ye(E),B,Q,P,ve);throw B=String(E),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return De}function K(E,B,Q){if(E==null)return E;var P=[],ve=0;return N(E,P,"","",function(Ee){return B.call(Q,Ee,ve++)}),P}function I(E){if(E._status===-1){var B=E._result;B=B(),B.then(function(Q){(E._status===0||E._status===-1)&&(E._status=1,E._result=Q)},function(Q){(E._status===0||E._status===-1)&&(E._status=2,E._result=Q)}),E._status===-1&&(E._status=0,E._result=B)}if(E._status===1)return E._result.default;throw E._result}var ie=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=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(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},Oe={map:K,forEach:function(E,B,Q){K(E,function(){B.apply(this,arguments)},Q)},count:function(E){var B=0;return K(E,function(){B++}),B},toArray:function(E){return K(E,function(B){return B})||[]},only:function(E){if(!xe(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return Te.Activity=v,Te.Children=Oe,Te.Component=J,Te.Fragment=u,Te.Profiler=c,Te.PureComponent=W,Te.StrictMode=o,Te.Suspense=g,Te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=le,Te.__COMPILER_RUNTIME={__proto__:null,c:function(E){return le.H.useMemoCache(E)}},Te.cache=function(E){return function(){return E.apply(null,arguments)}},Te.cacheSignal=function(){return null},Te.cloneElement=function(E,B,Q){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var P=Y({},E.props),ve=E.key;if(B!=null)for(Ee in B.key!==void 0&&(ve=""+B.key),B)!z.call(B,Ee)||Ee==="key"||Ee==="__self"||Ee==="__source"||Ee==="ref"&&B.ref===void 0||(P[Ee]=B[Ee]);var Ee=arguments.length-2;if(Ee===1)P.children=Q;else if(1<Ee){for(var De=Array(Ee),ft=0;ft<Ee;ft++)De[ft]=arguments[ft+2];P.children=De}return ee(E.type,ve,P)},Te.createContext=function(E){return E={$$typeof:d,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:f,_context:E},E},Te.createElement=function(E,B,Q){var P,ve={},Ee=null;if(B!=null)for(P in B.key!==void 0&&(Ee=""+B.key),B)z.call(B,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(ve[P]=B[P]);var De=arguments.length-2;if(De===1)ve.children=Q;else if(1<De){for(var ft=Array(De),Je=0;Je<De;Je++)ft[Je]=arguments[Je+2];ve.children=ft}if(E&&E.defaultProps)for(P in De=E.defaultProps,De)ve[P]===void 0&&(ve[P]=De[P]);return ee(E,Ee,ve)},Te.createRef=function(){return{current:null}},Te.forwardRef=function(E){return{$$typeof:m,render:E}},Te.isValidElement=xe,Te.lazy=function(E){return{$$typeof:b,_payload:{_status:-1,_result:E},_init:I}},Te.memo=function(E,B){return{$$typeof:p,type:E,compare:B===void 0?null:B}},Te.startTransition=function(E){var B=le.T,Q={};le.T=Q;try{var P=E(),ve=le.S;ve!==null&&ve(Q,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(ge,ie)}catch(Ee){ie(Ee)}finally{B!==null&&Q.types!==null&&(B.types=Q.types),le.T=B}},Te.unstable_useCacheRefresh=function(){return le.H.useCacheRefresh()},Te.use=function(E){return le.H.use(E)},Te.useActionState=function(E,B,Q){return le.H.useActionState(E,B,Q)},Te.useCallback=function(E,B){return le.H.useCallback(E,B)},Te.useContext=function(E){return le.H.useContext(E)},Te.useDebugValue=function(){},Te.useDeferredValue=function(E,B){return le.H.useDeferredValue(E,B)},Te.useEffect=function(E,B){return le.H.useEffect(E,B)},Te.useEffectEvent=function(E){return le.H.useEffectEvent(E)},Te.useId=function(){return le.H.useId()},Te.useImperativeHandle=function(E,B,Q){return le.H.useImperativeHandle(E,B,Q)},Te.useInsertionEffect=function(E,B){return le.H.useInsertionEffect(E,B)},Te.useLayoutEffect=function(E,B){return le.H.useLayoutEffect(E,B)},Te.useMemo=function(E,B){return le.H.useMemo(E,B)},Te.useOptimistic=function(E,B){return le.H.useOptimistic(E,B)},Te.useReducer=function(E,B,Q){return le.H.useReducer(E,B,Q)},Te.useRef=function(E){return le.H.useRef(E)},Te.useState=function(E){return le.H.useState(E)},Te.useSyncExternalStore=function(E,B,Q){return le.H.useSyncExternalStore(E,B,Q)},Te.useTransition=function(){return le.H.useTransition()},Te.version="19.2.4",Te}var Gm;function Gu(){return Gm||(Gm=1,sc.exports=g0()),sc.exports}var C=Gu();const Ql=Xv(C),y0=Kv({__proto__:null,default:Ql},[C]),v0=(l,i,u,o)=>{const c=[u,{code:i,...o||{}}];if(l?.services?.logger?.forward)return l.services.logger.forward(c,"warn","react-i18next::",!0);tl(c[0])&&(c[0]=`react-i18next:: ${c[0]}`),l?.services?.logger?.warn?l.services.logger.warn(...c):console?.warn&&console.warn(...c)},Km={},$p=(l,i,u,o)=>{tl(u)&&Km[u]||(tl(u)&&(Km[u]=new Date),v0(l,i,u,o))},Jp=(l,i)=>()=>{if(l.isInitialized)i();else{const u=()=>{setTimeout(()=>{l.off("initialized",u)},0),i()};l.on("initialized",u)}},Oc=(l,i,u)=>{l.loadNamespaces(i,Jp(l,u))},Xm=(l,i,u,o)=>{if(tl(u)&&(u=[u]),l.options.preload&&l.options.preload.indexOf(i)>-1)return Oc(l,u,o);u.forEach(c=>{l.options.ns.indexOf(c)<0&&l.options.ns.push(c)}),l.loadLanguages(i,Jp(l,o))},b0=(l,i,u={})=>!i.languages||!i.languages.length?($p(i,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:i.languages}),!0):i.hasLoadedNamespace(l,{lng:u.lng,precheck:(o,c)=>{if(u.bindI18n&&u.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!c(o.isLanguageChangingTo,l))return!1}}),tl=l=>typeof l=="string",S0=l=>typeof l=="object"&&l!==null,x0=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,E0={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},R0=l=>E0[l],O0=l=>l.replace(x0,R0);let Tc={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:O0,transDefaultProps:void 0};const T0=(l={})=>{Tc={...Tc,...l}},_0=()=>Tc;let Fp;const w0=l=>{Fp=l},C0=()=>Fp,z0={type:"3rdParty",init(l){T0(l.options.react),w0(l)}},D0=C.createContext();class M0{constructor(){this.usedNamespaces={}}addUsedNamespaces(i){i.forEach(u=>{this.usedNamespaces[u]||(this.usedNamespaces[u]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var cc={exports:{}},fc={};var Qm;function A0(){if(Qm)return fc;Qm=1;var l=Gu();function i(v,O){return v===O&&(v!==0||1/v===1/O)||v!==v&&O!==O}var u=typeof Object.is=="function"?Object.is:i,o=l.useState,c=l.useEffect,f=l.useLayoutEffect,d=l.useDebugValue;function m(v,O){var R=O(),D=o({inst:{value:R,getSnapshot:O}}),Y=D[0].inst,V=D[1];return f(function(){Y.value=R,Y.getSnapshot=O,g(Y)&&V({inst:Y})},[v,R,O]),c(function(){return g(Y)&&V({inst:Y}),v(function(){g(Y)&&V({inst:Y})})},[v]),d(R),R}function g(v){var O=v.getSnapshot;v=v.value;try{var R=O();return!u(v,R)}catch{return!0}}function p(v,O){return O()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:m;return fc.useSyncExternalStore=l.useSyncExternalStore!==void 0?l.useSyncExternalStore:b,fc}var Zm;function N0(){return Zm||(Zm=1,cc.exports=A0()),cc.exports}var L0=N0();const j0=(l,i)=>tl(i)?i:S0(i)&&tl(i.defaultValue)?i.defaultValue:Array.isArray(l)?l[l.length-1]:l,U0={t:j0,ready:!1},H0=()=>()=>{},$e=(l,i={})=>{const{i18n:u}=i,{i18n:o,defaultNS:c}=C.useContext(D0)||{},f=u||o||C0();f&&!f.reportNamespaces&&(f.reportNamespaces=new M0),f||$p(f,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const d=C.useMemo(()=>({..._0(),...f?.options?.react,...i}),[f,i]),{useSuspense:m,keyPrefix:g}=d,p=c||f?.options?.defaultNS,b=tl(p)?[p]:p||["translation"],v=C.useMemo(()=>b,b);f?.reportNamespaces?.addUsedNamespaces?.(v);const O=C.useRef(0),R=C.useCallback(ee=>{if(!f)return H0;const{bindI18n:ae,bindI18nStore:xe}=d,re=()=>{O.current+=1,ee()};return ae&&f.on(ae,re),xe&&f.store.on(xe,re),()=>{ae&&ae.split(" ").forEach(ze=>f.off(ze,re)),xe&&xe.split(" ").forEach(ze=>f.store.off(ze,re))}},[f,d]),D=C.useRef(),Y=C.useCallback(()=>{if(!f)return U0;const ee=!!(f.isInitialized||f.initializedStoreOnce)&&v.every(ye=>b0(ye,f,d)),ae=i.lng||f.language,xe=O.current,re=D.current;if(re&&re.ready===ee&&re.lng===ae&&re.keyPrefix===g&&re.revision===xe)return re;const Se={t:f.getFixedT(ae,d.nsMode==="fallback"?v:v[0],g),ready:ee,lng:ae,keyPrefix:g,revision:xe};return D.current=Se,Se},[f,v,g,d,i.lng]),[V,J]=C.useState(0),{t:$,ready:W}=L0.useSyncExternalStore(R,Y,Y);C.useEffect(()=>{if(f&&!W&&!m){const ee=()=>J(ae=>ae+1);i.lng?Xm(f,i.lng,v,ee):Oc(f,v,ee)}},[f,i.lng,v,W,m,V]);const fe=f||{},ce=C.useRef(null),ge=C.useRef(),le=ee=>{const ae=Object.getOwnPropertyDescriptors(ee);ae.__original&&delete ae.__original;const xe=Object.create(Object.getPrototypeOf(ee),ae);if(!Object.prototype.hasOwnProperty.call(xe,"__original"))try{Object.defineProperty(xe,"__original",{value:ee,writable:!1,enumerable:!1,configurable:!1})}catch{}return xe},z=C.useMemo(()=>{const ee=fe,ae=ee?.language;let xe=ee;ee&&(ce.current&&ce.current.__original===ee?ge.current!==ae?(xe=le(ee),ce.current=xe,ge.current=ae):xe=ce.current:(xe=le(ee),ce.current=xe,ge.current=ae));const re=[$,xe,W];return re.t=$,re.i18n=xe,re.ready=W,re},[$,fe,W,fe.resolvedLanguage,fe.language,fe.languages]);if(f&&m&&!W)throw new Promise(ee=>{const ae=()=>ee();i.lng?Xm(f,i.lng,v,ae):Oc(f,v,ae)});return z},{slice:B0,forEach:q0}=[];function Y0(l){return q0.call(B0.call(arguments,1),i=>{if(i)for(const u in i)l[u]===void 0&&(l[u]=i[u])}),l}function k0(l){return typeof l!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(u=>u.test(l))}const $m=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,V0=function(l,i){const o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},c=encodeURIComponent(i);let f=`${l}=${c}`;if(o.maxAge>0){const d=o.maxAge-0;if(Number.isNaN(d))throw new Error("maxAge should be a Number");f+=`; Max-Age=${Math.floor(d)}`}if(o.domain){if(!$m.test(o.domain))throw new TypeError("option domain is invalid");f+=`; Domain=${o.domain}`}if(o.path){if(!$m.test(o.path))throw new TypeError("option path is invalid");f+=`; Path=${o.path}`}if(o.expires){if(typeof o.expires.toUTCString!="function")throw new TypeError("option expires is invalid");f+=`; Expires=${o.expires.toUTCString()}`}if(o.httpOnly&&(f+="; HttpOnly"),o.secure&&(f+="; Secure"),o.sameSite)switch(typeof o.sameSite=="string"?o.sameSite.toLowerCase():o.sameSite){case!0:f+="; SameSite=Strict";break;case"lax":f+="; SameSite=Lax";break;case"strict":f+="; SameSite=Strict";break;case"none":f+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return o.partitioned&&(f+="; Partitioned"),f},Jm={create(l,i,u,o){let c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};u&&(c.expires=new Date,c.expires.setTime(c.expires.getTime()+u*60*1e3)),o&&(c.domain=o),document.cookie=V0(l,i,c)},read(l){const i=`${l}=`,u=document.cookie.split(";");for(let o=0;o<u.length;o++){let c=u[o];for(;c.charAt(0)===" ";)c=c.substring(1,c.length);if(c.indexOf(i)===0)return c.substring(i.length,c.length)}return null},remove(l,i){this.create(l,"",-1,i)}};var G0={name:"cookie",lookup(l){let{lookupCookie:i}=l;if(i&&typeof document<"u")return Jm.read(i)||void 0},cacheUserLanguage(l,i){let{lookupCookie:u,cookieMinutes:o,cookieDomain:c,cookieOptions:f}=i;u&&typeof document<"u"&&Jm.create(u,l,o,c,f)}},K0={name:"querystring",lookup(l){let{lookupQuerystring:i}=l,u;if(typeof window<"u"){let{search:o}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(o=window.location.hash.substring(window.location.hash.indexOf("?")));const f=o.substring(1).split("&");for(let d=0;d<f.length;d++){const m=f[d].indexOf("=");m>0&&f[d].substring(0,m)===i&&(u=f[d].substring(m+1))}}return u}},X0={name:"hash",lookup(l){let{lookupHash:i,lookupFromHashIndex:u}=l,o;if(typeof window<"u"){const{hash:c}=window.location;if(c&&c.length>2){const f=c.substring(1);if(i){const d=f.split("&");for(let m=0;m<d.length;m++){const g=d[m].indexOf("=");g>0&&d[m].substring(0,g)===i&&(o=d[m].substring(g+1))}}if(o)return o;if(!o&&u>-1){const d=c.match(/\/([a-zA-Z-]*)/g);return Array.isArray(d)?d[typeof u=="number"?u:0]?.replace("/",""):void 0}}}return o}};let Gl=null;const Fm=()=>{if(Gl!==null)return Gl;try{if(Gl=typeof window<"u"&&window.localStorage!==null,!Gl)return!1;const l="i18next.translate.boo";window.localStorage.setItem(l,"foo"),window.localStorage.removeItem(l)}catch{Gl=!1}return Gl};var Q0={name:"localStorage",lookup(l){let{lookupLocalStorage:i}=l;if(i&&Fm())return window.localStorage.getItem(i)||void 0},cacheUserLanguage(l,i){let{lookupLocalStorage:u}=i;u&&Fm()&&window.localStorage.setItem(u,l)}};let Kl=null;const Wm=()=>{if(Kl!==null)return Kl;try{if(Kl=typeof window<"u"&&window.sessionStorage!==null,!Kl)return!1;const l="i18next.translate.boo";window.sessionStorage.setItem(l,"foo"),window.sessionStorage.removeItem(l)}catch{Kl=!1}return Kl};var Z0={name:"sessionStorage",lookup(l){let{lookupSessionStorage:i}=l;if(i&&Wm())return window.sessionStorage.getItem(i)||void 0},cacheUserLanguage(l,i){let{lookupSessionStorage:u}=i;u&&Wm()&&window.sessionStorage.setItem(u,l)}},$0={name:"navigator",lookup(l){const i=[];if(typeof navigator<"u"){const{languages:u,userLanguage:o,language:c}=navigator;if(u)for(let f=0;f<u.length;f++)i.push(u[f]);o&&i.push(o),c&&i.push(c)}return i.length>0?i:void 0}},J0={name:"htmlTag",lookup(l){let{htmlTag:i}=l,u;const o=i||(typeof document<"u"?document.documentElement:null);return o&&typeof o.getAttribute=="function"&&(u=o.getAttribute("lang")),u}},F0={name:"path",lookup(l){let{lookupFromPathIndex:i}=l;if(typeof window>"u")return;const u=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(u)?u[typeof i=="number"?i:0]?.replace("/",""):void 0}},W0={name:"subdomain",lookup(l){let{lookupFromSubdomainIndex:i}=l;const u=typeof i=="number"?i+1:1,o=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(o)return o[u]}};let Wp=!1;try{document.cookie,Wp=!0}catch{}const Pp=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Wp||Pp.splice(1,1);const P0=()=>({order:Pp,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:l=>l});class Ip{constructor(i){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(i,u)}init(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=i,this.options=Y0(u,this.options||{},P0()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=c=>c.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=o,this.addDetector(G0),this.addDetector(K0),this.addDetector(Q0),this.addDetector(Z0),this.addDetector($0),this.addDetector(J0),this.addDetector(F0),this.addDetector(W0),this.addDetector(X0)}addDetector(i){return this.detectors[i.name]=i,this}detect(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,u=[];return i.forEach(o=>{if(this.detectors[o]){let c=this.detectors[o].lookup(this.options);c&&typeof c=="string"&&(c=[c]),c&&(u=u.concat(c))}}),u=u.filter(o=>o!=null&&!k0(o)).map(o=>this.options.convertDetectedLanguage(o)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?u:u.length>0?u[0]:null}cacheUserLanguage(i){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;u&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(i)>-1||u.forEach(o=>{this.detectors[o]&&this.detectors[o].cacheUserLanguage(i,this.options)}))}}Ip.type="languageDetector";const I0={"nav.home":"Home","nav.studio":"Studio","nav.docs":"Docs","nav.login":"Login","nav.logout":"Logout","header.status.connected":"Connected","header.status.disconnected":"Disconnected","header.status.reconnecting":"Reconnecting","footer.copyright":"GitHub · @Context4AI {{year}}. All rights reserved.","footer.tagline":"Knowledge Factory","footer.theme.dark":"Dark","footer.theme.light":"Light","footer.theme.system":"System","studio.sidebar.sources":"Sources","studio.sidebar.modeling":"Modeling","studio.sidebar.brain":"Brain","studio.sidebar.discovery":"Discovery","studio.sidebar.sharing":"Sharing","studio.sidebar.collaboration":"Collaboration","studio.sidebar.settings":"Settings","placeholder.coming":"Coming in {{version}}","page.login.title":"Login","page.login.description":"Authentication and user management.","page.docs.title":"Docs","page.docs.description":"Public documentation portal.","page.sources.title":"Sources","page.sources.description":"Add code repositories, documents, and other input materials for your brain to index.","page.modeling.title":"Modeling","page.modeling.description":"Model indexed content with AI — only what stands up to scrutiny gets written to the knowledge graph.","page.brain.title":"Brain","page.brain.description":"All modeled knowledge lives here — browse, search, analyze, and use it anytime.","page.discovery.title":"Discovery","page.discovery.description":"Explore knowledge curated by others and add what's useful to your own brain.","page.sharing.title":"Sharing","page.sharing.description":"Package and export knowledge from your brain for others and AI to use directly.","page.collaboration.title":"Collaboration","page.collaboration.description":"Stay in sync with other brains — get notified on updates, no manual transfer needed.","page.settings.title":"Settings","page.settings.description":"Manage workspace members and configuration.","page.code_setup.title":"Code Setup","page.code_setup.description":"Repository selection and configuration for code modeling.","page.code_compile.title":"Code Compile","page.code_compile.description":"Compilation progress tracking for code modeling.","page.code_review.title":"Code Review","page.code_review.description":"Review and approve modeling results.","page.code_result.title":"Code Result","page.code_result.description":"View final modeling results and generated knowledge graph.","home.hero.title":"Context For AI","home.hero.description":"Transform code repositories and business documents into structured knowledge graphs.","home.hero.cta.studio":"Enter Studio","home.hero.cta.github":"GitHub","notfound.title":"404","notfound.description":"The page you're looking for doesn't exist.","notfound.back":"Back to Home","sources.menu.add_client":"Add Client","sources.menu.online":"online","sources.menu.offline":"offline","sources.library.default_cloud_name":"Personal Cloud","sources.library.rename":"Rename","sources.library.rename_placeholder":"Enter library name","sources.header.daemon_status":"{{online}}/{{total}} online","sources.header.all_offline":"All offline","sources.actions.new_folder":"New Folder","sources.actions.import_repo":"Import Repository","sources.actions.rename":"Rename","sources.actions.move_to":"Move to...","sources.actions.delete":"Delete","sources.filter.all":"All","sources.filter.indexed":"Indexed","sources.filter.not_indexed":"Not Indexed","sources.status.none":"None","sources.status.indexed":"Indexed","sources.status.stale":"Stale","sources.type.code":"Code","sources.type.doc":"Document","sources.empty.cloud.title":"Your personal knowledge input zone","sources.empty.cloud.description":"Create folders to organize your documents and materials. These are visible only to you and will serve as the foundation for building your digital brain. (Document upload coming soon)","sources.empty.daemon.title":"Connect your local code assets","sources.empty.daemon.description":"Import local code repositories. The system will automatically extract code structures and technical documents, transforming them into structured knowledge.","sources.empty.indexed.title":"Knowledge not yet indexed","sources.empty.indexed.description":"Select sources and complete indexing. They will be transformed into structured summaries, providing material for your future speculations.","sources.safety.notice":"Your code has absolute privacy. Source code never leaves your computer. The system only extracts structured summaries for knowledge modeling (function signatures, dependencies, etc.).","sources.import.title":"Import Repository","sources.import.step.select":"Select Repository","sources.import.step.version":"Version Selection","sources.import.step.confirm":"Confirm Import","sources.import.daemon_offline":"Client {{name}} is not connected. Please start the local Daemon and connect to the server before importing.","sources.import.view_guide":"View Connection Guide","sources.import.select_root":"Select repository root directory","sources.import.current_path":"Current path","sources.import.not_git":"This directory is not a Git repository. Please select a directory containing .git.","sources.import.branch":"Branch","sources.import.commit":"Commit","sources.import.branch_warning":"Currently based on {{branch}} branch HEAD","sources.import.uncommitted_warning":"Uncommitted changes will not be collected","sources.import.recognized":"Recognized {{packages}} packages and {{docs}} documents","sources.import.no_packages":"No package structure detected. Will be imported as a single-package repository.","sources.import.importing":"Importing...","sources.import.success":"Import complete","sources.add_client.title":"Connect Local Knowledge Source","sources.add_client.description":"Start a client (Daemon) on your local computer to mount local code repositories as input material into your digital brain.","sources.add_client.step1":"Install Daemon","sources.add_client.step2":"Start Daemon","sources.add_client.step3":"Wait for connection","sources.add_client.step3_desc":"This page will update automatically once connected.","sources.add_client.waiting":"Waiting for client connection...","sources.add_client.detected":"New client detected","sources.add_client.machine_name":"Machine ID","sources.add_client.os":"Operating system","sources.add_client.daemon_version":"Daemon version","sources.add_client.client_name":"Client name","sources.add_client.confirm":"Confirm Add","sources.add_client.reconnected":"Client {{name}} has reconnected","sources.add_client.go_to":"Go to {{name}}","sources.detail.tab.original":"Original","sources.detail.tab.digest":"Digest","sources.detail.tab.modeling":"Modeling Result","sources.detail.digest_placeholder":"Structured summary will be available here after indexing is complete.","sources.detail.modeling_placeholder":"Knowledge entities derived from this source will appear here after modeling in the speculation zone.","sources.detail.type":"Type","sources.detail.origin":"Origin","sources.detail.origin.upload":"Upload","sources.detail.origin.local":"Local file","sources.detail.status":"Status","sources.detail.repo":"Repository","sources.detail.branch":"Branch","sources.detail.commit":"Commit","sources.detail.tech_stack":"Tech stack","sources.delete.confirm_title":"Confirm Delete","sources.delete.resource":"Are you sure you want to delete {{name}}?","sources.delete.resource_impact":"The following data will be permanently deleted: original content, structured digest (if any).","sources.delete.session_warning":"If your personal speculation zone is using this source, related candidate speculations will be affected.","sources.delete.entity_safe":"Formal knowledge already merged into the brain will not be affected.","sources.delete.folder":"Are you sure you want to delete folder {{name}}?","sources.delete.folder_impact":"All resources inside will be recursively deleted: {{folders}} sub-folders, {{sources}} sources.","sources.delete.irreversible":"This action cannot be undone.","sources.delete.repo":"Are you sure you want to remove repository {{name}} from {{library}}?","sources.delete.repo_impact":"Will delete: {{packages}} package index records, {{docs}} document index records.","sources.delete.local_safe":"Local files will not be affected.","sources.delete.client":"Are you sure you want to delete client {{name}}?","sources.delete.client_impact":"All imported repository records and related index data under this client will be deleted.","sources.delete.client_reregister":"This client will need to re-register on next connection.","sources.error.name_conflict":'An item named "{{name}}" already exists in this directory.',"sources.breadcrumb.sources":"Sources","common.cancel":"Cancel","common.confirm":"Confirm","common.back":"Back","common.next":"Next","common.previous":"Previous","common.items":"{{count}} items"},eb={"nav.home":"首页","nav.studio":"工作台","nav.docs":"文档","nav.login":"登录","nav.logout":"退出登录","header.status.connected":"已连接","header.status.disconnected":"已断开","header.status.reconnecting":"重连中","footer.copyright":"GitHub · @Context4AI {{year}}. 版权所有 ","footer.tagline":"知识工厂","footer.theme.dark":"暗色","footer.theme.light":"亮色","footer.theme.system":"跟随系统","studio.sidebar.sources":"知识索引","studio.sidebar.modeling":"知识建模","studio.sidebar.brain":"知识大脑","studio.sidebar.discovery":"发现知识","studio.sidebar.sharing":"分享知识","studio.sidebar.collaboration":"知识协同","studio.sidebar.settings":"设置","placeholder.coming":"计划在 {{version}} 版本实现","page.login.title":"登录","page.login.description":"身份验证与用户管理。","page.docs.title":"文档","page.docs.description":"公开文档门户。","page.sources.title":"知识索引","page.sources.description":"添加代码仓库、文档等输入材料,让大脑完成初步索引。","page.modeling.title":"知识建模","page.modeling.description":"和 AI 一起对索引内容建模,只有经得起推敲的才写入知识图谱。","page.brain.title":"知识大脑","page.brain.description":"建模完成的全部知识都在这里——浏览、搜索、分析,随时调用。","page.discovery.title":"发现知识","page.discovery.description":"看看别人整理好的知识,发现有用的一键补充到自己的大脑。","page.sharing.title":"分享知识","page.sharing.description":"把大脑中的知识打包输出,让别人和 AI 都能直接使用。","page.collaboration.title":"知识协同","page.collaboration.description":"和其他大脑保持同步,知识更新时自动通知,不用手动搬运。","page.settings.title":"设置","page.settings.description":"管理大脑的成员和配置。","page.code_setup.title":"代码设置","page.code_setup.description":"代码建模的仓库选择与配置。","page.code_compile.title":"代码编译","page.code_compile.description":"代码建模的编译进度追踪。","page.code_review.title":"代码审查","page.code_review.description":"审查并确认建模结果。","page.code_result.title":"代码结果","page.code_result.description":"查看最终建模结果与生成的知识图谱。","home.hero.title":"Context For AI","home.hero.description":"将代码仓库和业务文档转化为结构化知识图谱。","home.hero.cta.studio":"进入工作台","home.hero.cta.github":"GitHub","notfound.title":"404","notfound.description":"您访问的页面不存在。","notfound.back":"返回首页","sources.menu.add_client":"添加客户端","sources.menu.online":"在线","sources.menu.offline":"离线","sources.library.default_cloud_name":"个人云","sources.library.rename":"重命名","sources.library.rename_placeholder":"输入名称","sources.header.daemon_status":"{{online}}/{{total}} 在线","sources.header.all_offline":"全部离线","sources.actions.new_folder":"新建文件夹","sources.actions.import_repo":"导入仓库","sources.actions.rename":"重命名","sources.actions.move_to":"移动到...","sources.actions.delete":"删除","sources.filter.all":"全部","sources.filter.indexed":"已索引","sources.filter.not_indexed":"未索引","sources.status.none":"未索引","sources.status.indexed":"已索引","sources.status.stale":"索引过期","sources.type.code":"代码","sources.type.doc":"文档","sources.empty.cloud.title":"这里是你专属的知识输入区","sources.empty.cloud.description":"创建文件夹来整理你的文档和材料。这些内容仅你个人可见,将成为后续推演、构建数字大脑的基础。(文档上传功能即将推出)","sources.empty.daemon.title":"连接你的本地代码资产","sources.empty.daemon.description":"导入本地代码仓库,系统会自动提取代码结构与技术文档,将其转化为结构化知识。","sources.empty.indexed.title":"这些知识尚未被索引","sources.empty.indexed.description":"选择资源并完成索引后,它们将转化为结构化摘要,为你后续的推演提供素材。","sources.safety.notice":"你的代码保有绝对隐私。源代码永远不会离开你的电脑,系统仅提取用于知识建模的结构化摘要(函数签名、依赖关系等)。","sources.import.title":"导入代码仓库","sources.import.step.select":"选择仓库","sources.import.step.version":"版本选择","sources.import.step.confirm":"确认导入","sources.import.daemon_offline":"客户端 {{name}} 未连接,请先启动本地 Daemon 并连接到服务器后再导入仓库。","sources.import.view_guide":"查看连接指引","sources.import.select_root":"选择仓库根目录","sources.import.current_path":"当前路径","sources.import.not_git":"该目录不是 Git 仓库,请选择包含 .git 的目录。","sources.import.branch":"分支","sources.import.commit":"提交","sources.import.branch_warning":"当前基于 {{branch}} 分支的 HEAD","sources.import.uncommitted_warning":"未提交的修改不会被采集","sources.import.recognized":"已识别 {{packages}} 个包和 {{docs}} 篇文档","sources.import.no_packages":"未识别到包结构,将作为单包仓库导入。","sources.import.importing":"导入中...","sources.import.success":"导入完成","sources.add_client.title":"接入本地知识源","sources.add_client.description":"在本地计算机上启动客户端 (Daemon),即可将本地代码仓库作为输入材料,挂载到你的数字大脑中。","sources.add_client.step1":"安装 Daemon","sources.add_client.step2":"启动 Daemon","sources.add_client.step3":"等待连接","sources.add_client.step3_desc":"连接成功后,本页面将自动更新。","sources.add_client.waiting":"等待客户端连接...","sources.add_client.detected":"检测到新的本地客户端","sources.add_client.machine_name":"机器标识","sources.add_client.os":"操作系统","sources.add_client.daemon_version":"Daemon 版本","sources.add_client.client_name":"客户端名称","sources.add_client.confirm":"确认添加","sources.add_client.reconnected":"客户端 {{name}} 已重新连接","sources.add_client.go_to":"前往 {{name}}","sources.detail.tab.original":"原文","sources.detail.tab.digest":"摘要","sources.detail.tab.modeling":"建模结果","sources.detail.digest_placeholder":"完成索引后,即可在此查看结构化摘要。","sources.detail.modeling_placeholder":"在推演区完成建模后,此处将展示由该源产生的知识实体。","sources.detail.type":"类型","sources.detail.origin":"来源","sources.detail.origin.upload":"直接上传","sources.detail.origin.local":"本地文件","sources.detail.status":"状态","sources.detail.repo":"仓库","sources.detail.branch":"分支","sources.detail.commit":"提交","sources.detail.tech_stack":"技术栈","sources.delete.confirm_title":"确认删除","sources.delete.resource":"确定要删除 {{name}}?","sources.delete.resource_impact":"以下数据将被永久删除:原文内容、结构化摘要(如有)。","sources.delete.session_warning":"如果你的个人推演区正在使用此知识源,相关的候选推演将受到影响。","sources.delete.entity_safe":"已汇入大脑的正式知识不受影响。","sources.delete.folder":"确定要删除文件夹 {{name}}?","sources.delete.folder_impact":"文件夹内的所有资源将被递归删除:{{folders}} 个子文件夹、{{sources}} 个知识源。","sources.delete.irreversible":"此操作不可撤销。","sources.delete.repo":"确定要从 {{library}} 中移除仓库 {{name}}?","sources.delete.repo_impact":"将删除:{{packages}} 个包的索引记录、{{docs}} 篇文档的索引记录。","sources.delete.local_safe":"本地文件不受影响。","sources.delete.client":"确定要删除客户端 {{name}}?","sources.delete.client_impact":"该客户端下的所有已导入仓库记录和相关索引数据将被删除。","sources.delete.client_reregister":"该客户端下次连接时将触发重新注册。","sources.error.name_conflict":'该目录下已存在同名项"{{name}}"。',"sources.breadcrumb.sources":"知识索引","common.cancel":"取消","common.confirm":"确认","common.back":"返回","common.next":"下一步","common.previous":"上一步","common.items":"{{count}} 项"};Ut.use(Ip).use(z0).init({resources:{en:{translation:I0},zh:{translation:eb}},fallbackLng:"en",interpolation:{escapeValue:!1},detection:{order:["localStorage"],caches:["localStorage"],lookupLocalStorage:"lang"}});var dc={exports:{}},Xi={},hc={exports:{}},mc={};var Pm;function tb(){return Pm||(Pm=1,(function(l){function i(N,K){var I=N.length;N.push(K);e:for(;0<I;){var ie=I-1>>>1,Oe=N[ie];if(0<c(Oe,K))N[ie]=K,N[I]=Oe,I=ie;else break e}}function u(N){return N.length===0?null:N[0]}function o(N){if(N.length===0)return null;var K=N[0],I=N.pop();if(I!==K){N[0]=I;e:for(var ie=0,Oe=N.length,E=Oe>>>1;ie<E;){var B=2*(ie+1)-1,Q=N[B],P=B+1,ve=N[P];if(0>c(Q,I))P<Oe&&0>c(ve,Q)?(N[ie]=ve,N[P]=I,ie=P):(N[ie]=Q,N[B]=I,ie=B);else if(P<Oe&&0>c(ve,I))N[ie]=ve,N[P]=I,ie=P;else break e}}return K}function c(N,K){var I=N.sortIndex-K.sortIndex;return I!==0?I:N.id-K.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var d=Date,m=d.now();l.unstable_now=function(){return d.now()-m}}var g=[],p=[],b=1,v=null,O=3,R=!1,D=!1,Y=!1,V=!1,J=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,W=typeof setImmediate<"u"?setImmediate:null;function fe(N){for(var K=u(p);K!==null;){if(K.callback===null)o(p);else if(K.startTime<=N)o(p),K.sortIndex=K.expirationTime,i(g,K);else break;K=u(p)}}function ce(N){if(Y=!1,fe(N),!D)if(u(g)!==null)D=!0,ge||(ge=!0,re());else{var K=u(p);K!==null&&ye(ce,K.startTime-N)}}var ge=!1,le=-1,z=5,ee=-1;function ae(){return V?!0:!(l.unstable_now()-ee<z)}function xe(){if(V=!1,ge){var N=l.unstable_now();ee=N;var K=!0;try{e:{D=!1,Y&&(Y=!1,$(le),le=-1),R=!0;var I=O;try{t:{for(fe(N),v=u(g);v!==null&&!(v.expirationTime>N&&ae());){var ie=v.callback;if(typeof ie=="function"){v.callback=null,O=v.priorityLevel;var Oe=ie(v.expirationTime<=N);if(N=l.unstable_now(),typeof Oe=="function"){v.callback=Oe,fe(N),K=!0;break t}v===u(g)&&o(g),fe(N)}else o(g);v=u(g)}if(v!==null)K=!0;else{var E=u(p);E!==null&&ye(ce,E.startTime-N),K=!1}}break e}finally{v=null,O=I,R=!1}K=void 0}}finally{K?re():ge=!1}}}var re;if(typeof W=="function")re=function(){W(xe)};else if(typeof MessageChannel<"u"){var ze=new MessageChannel,Se=ze.port2;ze.port1.onmessage=xe,re=function(){Se.postMessage(null)}}else re=function(){J(xe,0)};function ye(N,K){le=J(function(){N(l.unstable_now())},K)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(N){N.callback=null},l.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<N?Math.floor(1e3/N):5},l.unstable_getCurrentPriorityLevel=function(){return O},l.unstable_next=function(N){switch(O){case 1:case 2:case 3:var K=3;break;default:K=O}var I=O;O=K;try{return N()}finally{O=I}},l.unstable_requestPaint=function(){V=!0},l.unstable_runWithPriority=function(N,K){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var I=O;O=N;try{return K()}finally{O=I}},l.unstable_scheduleCallback=function(N,K,I){var ie=l.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?ie+I:ie):I=ie,N){case 1:var Oe=-1;break;case 2:Oe=250;break;case 5:Oe=1073741823;break;case 4:Oe=1e4;break;default:Oe=5e3}return Oe=I+Oe,N={id:b++,callback:K,priorityLevel:N,startTime:I,expirationTime:Oe,sortIndex:-1},I>ie?(N.sortIndex=I,i(p,N),u(g)===null&&N===u(p)&&(Y?($(le),le=-1):Y=!0,ye(ce,I-ie))):(N.sortIndex=Oe,i(g,N),D||R||(D=!0,ge||(ge=!0,re()))),N},l.unstable_shouldYield=ae,l.unstable_wrapCallback=function(N){var K=O;return function(){var I=O;O=K;try{return N.apply(this,arguments)}finally{O=I}}}})(mc)),mc}var Im;function ab(){return Im||(Im=1,hc.exports=tb()),hc.exports}var pc={exports:{}},Dt={};var ep;function nb(){if(ep)return Dt;ep=1;var l=Gu();function i(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var o={d:{f:u,r:function(){throw Error(i(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(g,p,b){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:v==null?null:""+v,children:g,containerInfo:p,implementation:b}}var d=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Dt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Dt.createPortal=function(g,p){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return f(g,p,null,b)},Dt.flushSync=function(g){var p=d.T,b=o.p;try{if(d.T=null,o.p=2,g)return g()}finally{d.T=p,o.p=b,o.d.f()}},Dt.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(g,p))},Dt.prefetchDNS=function(g){typeof g=="string"&&o.d.D(g)},Dt.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var b=p.as,v=m(b,p.crossOrigin),O=typeof p.integrity=="string"?p.integrity:void 0,R=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?o.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:O,fetchPriority:R}):b==="script"&&o.d.X(g,{crossOrigin:v,integrity:O,fetchPriority:R,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Dt.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=m(p.as,p.crossOrigin);o.d.M(g,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(g)},Dt.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,v=m(b,p.crossOrigin);o.d.L(g,b,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Dt.preloadModule=function(g,p){if(typeof g=="string")if(p){var b=m(p.as,p.crossOrigin);o.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(g)},Dt.requestFormReset=function(g){o.d.r(g)},Dt.unstable_batchedUpdates=function(g,p){return g(p)},Dt.useFormState=function(g,p,b){return d.H.useFormState(g,p,b)},Dt.useFormStatus=function(){return d.H.useHostTransitionStatus()},Dt.version="19.2.4",Dt}var tp;function lb(){if(tp)return pc.exports;tp=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),pc.exports=nb(),pc.exports}var ap;function ib(){if(ap)return Xi;ap=1;var l=ab(),i=Gu(),u=lb();function o(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 c(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 d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(f(e)!==e)throw Error(o(188))}function p(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,n=t;;){var r=a.return;if(r===null)break;var s=r.alternate;if(s===null){if(n=r.return,n!==null){a=n;continue}break}if(r.child===s.child){for(s=r.child;s;){if(s===a)return g(r),e;if(s===n)return g(r),t;s=s.sibling}throw Error(o(188))}if(a.return!==n.return)a=r,n=s;else{for(var h=!1,y=r.child;y;){if(y===a){h=!0,a=r,n=s;break}if(y===n){h=!0,n=r,a=s;break}y=y.sibling}if(!h){for(y=s.child;y;){if(y===a){h=!0,a=s,n=r;break}if(y===n){h=!0,n=s,a=r;break}y=y.sibling}if(!h)throw Error(o(189))}}if(a.alternate!==n)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,O=Symbol.for("react.element"),R=Symbol.for("react.transitional.element"),D=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),J=Symbol.for("react.profiler"),$=Symbol.for("react.consumer"),W=Symbol.for("react.context"),fe=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),ge=Symbol.for("react.suspense_list"),le=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),ee=Symbol.for("react.activity"),ae=Symbol.for("react.memo_cache_sentinel"),xe=Symbol.iterator;function re(e){return e===null||typeof e!="object"?null:(e=xe&&e[xe]||e["@@iterator"],typeof e=="function"?e:null)}var ze=Symbol.for("react.client.reference");function Se(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ze?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Y:return"Fragment";case J:return"Profiler";case V:return"StrictMode";case ce:return"Suspense";case ge:return"SuspenseList";case ee:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case D:return"Portal";case W:return e.displayName||"Context";case $:return(e._context.displayName||"Context")+".Consumer";case fe:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case le:return t=e.displayName||null,t!==null?t:Se(e.type)||"Memo";case z:t=e._payload,e=e._init;try{return Se(e(t))}catch{}}return null}var ye=Array.isArray,N=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},ie=[],Oe=-1;function E(e){return{current:e}}function B(e){0>Oe||(e.current=ie[Oe],ie[Oe]=null,Oe--)}function Q(e,t){Oe++,ie[Oe]=e.current,e.current=t}var P=E(null),ve=E(null),Ee=E(null),De=E(null);function ft(e,t){switch(Q(Ee,t),Q(ve,e),Q(P,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Fh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Fh(t),e=Wh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(P),Q(P,e)}function Je(){B(P),B(ve),B(Ee)}function An(e){e.memoizedState!==null&&Q(De,e);var t=P.current,a=Wh(t,e.type);t!==a&&(Q(ve,e),Q(P,a))}function nl(e){ve.current===e&&(B(P),B(ve)),De.current===e&&(B(De),qi._currentValue=I)}var Fl,yt;function Ht(e){if(Fl===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Fl=t&&t[1]||"",yt=-1<a.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+Fl+e+yt}var ll=!1;function Wl(e,t){if(!e||ll)return"";ll=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(H){var L=H}Reflect.construct(e,[],G)}else{try{G.call()}catch(H){L=H}e.call(G.prototype)}}else{try{throw Error()}catch(H){L=H}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(H){if(H&&L&&typeof H.stack=="string")return[H.stack,L.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=n.DetermineComponentFrameRoot(),h=s[0],y=s[1];if(h&&y){var S=h.split(`
4
+ `),A=y.split(`
5
+ `);for(r=n=0;n<S.length&&!S[n].includes("DetermineComponentFrameRoot");)n++;for(;r<A.length&&!A[r].includes("DetermineComponentFrameRoot");)r++;if(n===S.length||r===A.length)for(n=S.length-1,r=A.length-1;1<=n&&0<=r&&S[n]!==A[r];)r--;for(;1<=n&&0<=r;n--,r--)if(S[n]!==A[r]){if(n!==1||r!==1)do if(n--,r--,0>r||S[n]!==A[r]){var q=`
6
+ `+S[n].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),q}while(1<=n&&0<=r);break}}}finally{ll=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ht(a):""}function za(e,t){switch(e.tag){case 26:case 27:case 5:return Ht(e.type);case 16:return Ht("Lazy");case 13:return e.child!==t&&t!==null?Ht("Suspense Fallback"):Ht("Suspense");case 19:return Ht("SuspenseList");case 0:case 15:return Wl(e.type,!1);case 11:return Wl(e.type.render,!1);case 1:return Wl(e.type,!0);case 31:return Ht("Activity");default:return""}}function dr(e){try{var t="",a=null;do t+=za(e,a),a=e,e=e.return;while(e);return t}catch(n){return`
7
+ Error generating stack: `+n.message+`
8
+ `+n.stack}}var Pl=Object.prototype.hasOwnProperty,il=l.unstable_scheduleCallback,Il=l.unstable_cancelCallback,Zu=l.unstable_shouldYield,$u=l.unstable_requestPaint,Nt=l.unstable_now,Da=l.unstable_getCurrentPriorityLevel,Ia=l.unstable_ImmediatePriority,ei=l.unstable_UserBlockingPriority,en=l.unstable_NormalPriority,fa=l.unstable_LowPriority,It=l.unstable_IdlePriority,hr=l.log,Ju=l.unstable_setDisableYieldValue,Ma=null,Lt=null;function St(e){if(typeof hr=="function"&&Ju(e),Lt&&typeof Lt.setStrictMode=="function")try{Lt.setStrictMode(Ma,e)}catch{}}var Ct=Math.clz32?Math.clz32:Fu,mr=Math.log,pr=Math.LN2;function Fu(e){return e>>>=0,e===0?32:31-(mr(e)/pr|0)|0}var Nn=256,Aa=262144,Ln=4194304;function da(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function rl(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var y=n&134217727;return y!==0?(n=y&~s,n!==0?r=da(n):(h&=y,h!==0?r=da(h):a||(a=y&~e,a!==0&&(r=da(a))))):(y=n&~s,y!==0?r=da(y):h!==0?r=da(h):a||(a=n&~e,a!==0&&(r=da(a)))),r===0?0:t!==0&&t!==r&&(t&s)===0&&(s=r&-r,a=t&-t,s>=a||s===32&&(a&4194048)!==0)?t:r}function tn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Wu(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 ti(){var e=Ln;return Ln<<=1,(Ln&62914560)===0&&(Ln=4194304),e}function an(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function ba(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function gr(e,t,a,n,r,s){var h=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,S=e.expirationTimes,A=e.hiddenUpdates;for(a=h&~a;0<a;){var q=31-Ct(a),G=1<<q;y[q]=0,S[q]=-1;var L=A[q];if(L!==null)for(A[q]=null,q=0;q<L.length;q++){var H=L[q];H!==null&&(H.lane&=-536870913)}a&=~G}n!==0&&yr(e,n,0),s!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=s&~(h&~t))}function yr(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-Ct(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function vr(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-Ct(a),r=1<<n;r&t|e[n]&t&&(e[n]|=t),a&=~r}}function x(e,t){var a=t&-t;return a=(a&42)!==0?1:_(a),(a&(e.suspendedLanes|t))!==0?0:a}function _(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 U(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function X(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:Sm(e.type))}function Z(e,t){var a=K.p;try{return K.p=e,t()}finally{K.p=a}}var ue=Math.random().toString(36).slice(2),F="__reactFiber$"+ue,te="__reactProps$"+ue,ne="__reactContainer$"+ue,he="__reactEvents$"+ue,pe="__reactListeners$"+ue,de="__reactHandles$"+ue,qe="__reactResources$"+ue,Me="__reactMarker$"+ue;function Fe(e){delete e[F],delete e[te],delete e[he],delete e[pe],delete e[de]}function Ie(e){var t=e[F];if(t)return t;for(var a=e.parentNode;a;){if(t=a[ne]||a[F]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=lm(e);e!==null;){if(a=e[F])return a;e=lm(e)}return t}e=a,a=e.parentNode}return null}function lt(e){if(e=e[F]||e[ne]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Be(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function vt(e){var t=e[qe];return t||(t=e[qe]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Pe(e){e[Me]=!0}var nn=new Set,ha={};function xt(e,t){Sa(e,t),Sa(e+"Capture",t)}function Sa(e,t){for(ha[e]=t,e=0;e<t.length;e++)nn.add(t[e])}var jn=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]*$"),xa={},Un={};function ul(e){return Pl.call(Un,e)?!0:Pl.call(xa,e)?!1:jn.test(e)?Un[e]=!0:(xa[e]=!0,!1)}function Ae(e,t,a){if(ul(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function ut(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 zt(e,t,a,n){if(n===null)e.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+n)}}function dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function et(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ol(e,t,a){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(h){a=""+h,s.call(this,h)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(h){a=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function sl(e){if(!e._valueTracker){var t=et(e)?"checked":"value";e._valueTracker=ol(e,t,""+e[t])}}function br(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=et(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function Sr(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 Bg=/[\n"\\]/g;function ea(e){return e.replace(Bg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Pu(e,t,a,n,r,s,h,y){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+dt(t)):e.value!==""+dt(t)&&(e.value=""+dt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Iu(e,h,dt(t)):a!=null?Iu(e,h,dt(a)):n!=null&&e.removeAttribute("value"),r==null&&s!=null&&(e.defaultChecked=!!s),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+dt(y):e.removeAttribute("name")}function Gc(e,t,a,n,r,s,h,y){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||a!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){sl(e);return}a=a!=null?""+dt(a):"",t=t!=null?""+dt(t):a,y||t===e.value||(e.value=t),e.defaultValue=t}n=n??r,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=y?e.checked:!!n,e.defaultChecked=!!n,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),sl(e)}function Iu(e,t,a){t==="number"&&Sr(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function cl(e,t,a,n){if(e=e.options,t){t={};for(var r=0;r<a.length;r++)t["$"+a[r]]=!0;for(a=0;a<e.length;a++)r=t.hasOwnProperty("$"+e[a].value),e[a].selected!==r&&(e[a].selected=r),r&&n&&(e[a].defaultSelected=!0)}else{for(a=""+dt(a),t=null,r=0;r<e.length;r++){if(e[r].value===a){e[r].selected=!0,n&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function Kc(e,t,a){if(t!=null&&(t=""+dt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+dt(a):""}function Xc(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(o(92));if(ye(n)){if(1<n.length)throw Error(o(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=dt(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),sl(e)}function fl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var qg=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 n=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,a):typeof a!="number"||a===0||qg.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(o(62));if(e=e.style,a!=null){for(var n in a)!a.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var r in t)n=t[r],t.hasOwnProperty(r)&&a[r]!==n&&Qc(e,r,n)}else for(var s in t)t.hasOwnProperty(s)&&Qc(e,s,t[s])}function eo(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 Yg=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"]]),kg=/^[\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 xr(e){return kg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Na(){}var to=null;function ao(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var dl=null,hl=null;function $c(e){var t=lt(e);if(t&&(e=t.stateNode)){var a=e[te]||null;e:switch(e=t.stateNode,t.type){case"input":if(Pu(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="'+ea(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var r=n[te]||null;if(!r)throw Error(o(90));Pu(n,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&br(n)}break e;case"textarea":Kc(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&cl(e,!!a.multiple,t,!1)}}}var no=!1;function Jc(e,t,a){if(no)return e(t,a);no=!0;try{var n=e(t);return n}finally{if(no=!1,(dl!==null||hl!==null)&&(ou(),dl&&(t=dl,e=hl,hl=dl=null,$c(t),e)))for(t=0;t<e.length;t++)$c(e[t])}}function ai(e,t){var a=e.stateNode;if(a===null)return null;var n=a[te]||null;if(n===null)return null;a=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var La=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lo=!1;if(La)try{var ni={};Object.defineProperty(ni,"passive",{get:function(){lo=!0}}),window.addEventListener("test",ni,ni),window.removeEventListener("test",ni,ni)}catch{lo=!1}var ln=null,io=null,Er=null;function Fc(){if(Er)return Er;var e,t=io,a=t.length,n,r="value"in ln?ln.value:ln.textContent,s=r.length;for(e=0;e<a&&t[e]===r[e];e++);var h=a-e;for(n=1;n<=h&&t[a-n]===r[s-n];n++);return Er=r.slice(e,1<n?1-n:void 0)}function Rr(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 Or(){return!0}function Wc(){return!1}function Bt(e){function t(a,n,r,s,h){this._reactName=a,this._targetInst=r,this.type=n,this.nativeEvent=s,this.target=h,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(a=e[y],this[y]=a?a(s):s[y]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Or:Wc,this.isPropagationStopped=Wc,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=Or)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Or)},persist:function(){},isPersistent:Or}),t}var Hn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tr=Bt(Hn),li=v({},Hn,{view:0,detail:0}),Vg=Bt(li),ro,uo,ii,_r=v({},li,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:so,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!==ii&&(ii&&e.type==="mousemove"?(ro=e.screenX-ii.screenX,uo=e.screenY-ii.screenY):uo=ro=0,ii=e),ro)},movementY:function(e){return"movementY"in e?e.movementY:uo}}),Pc=Bt(_r),Gg=v({},_r,{dataTransfer:0}),Kg=Bt(Gg),Xg=v({},li,{relatedTarget:0}),oo=Bt(Xg),Qg=v({},Hn,{animationName:0,elapsedTime:0,pseudoElement:0}),Zg=Bt(Qg),$g=v({},Hn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Jg=Bt($g),Fg=v({},Hn,{data:0}),Ic=Bt(Fg),Wg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Pg={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"},Ig={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ey(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ig[e])?!!t[e]:!1}function so(){return ey}var ty=v({},li,{key:function(e){if(e.key){var t=Wg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Rr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Pg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:so,charCode:function(e){return e.type==="keypress"?Rr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Rr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ay=Bt(ty),ny=v({},_r,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ef=Bt(ny),ly=v({},li,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:so}),iy=Bt(ly),ry=v({},Hn,{propertyName:0,elapsedTime:0,pseudoElement:0}),uy=Bt(ry),oy=v({},_r,{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}),sy=Bt(oy),cy=v({},Hn,{newState:0,oldState:0}),fy=Bt(cy),dy=[9,13,27,32],co=La&&"CompositionEvent"in window,ri=null;La&&"documentMode"in document&&(ri=document.documentMode);var hy=La&&"TextEvent"in window&&!ri,tf=La&&(!co||ri&&8<ri&&11>=ri),af=" ",nf=!1;function lf(e,t){switch(e){case"keyup":return dy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ml=!1;function my(e,t){switch(e){case"compositionend":return rf(t);case"keypress":return t.which!==32?null:(nf=!0,af);case"textInput":return e=t.data,e===af&&nf?null:e;default:return null}}function py(e,t){if(ml)return e==="compositionend"||!co&&lf(e,t)?(e=Fc(),Er=io=ln=null,ml=!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 tf&&t.locale!=="ko"?null:t.data;default:return null}}var gy={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 uf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!gy[e.type]:t==="textarea"}function of(e,t,a,n){dl?hl?hl.push(n):hl=[n]:dl=n,t=pu(t,"onChange"),0<t.length&&(a=new Tr("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var ui=null,oi=null;function yy(e){Kh(e,0)}function wr(e){var t=Be(e);if(br(t))return e}function sf(e,t){if(e==="change")return t}var cf=!1;if(La){var fo;if(La){var ho="oninput"in document;if(!ho){var ff=document.createElement("div");ff.setAttribute("oninput","return;"),ho=typeof ff.oninput=="function"}fo=ho}else fo=!1;cf=fo&&(!document.documentMode||9<document.documentMode)}function df(){ui&&(ui.detachEvent("onpropertychange",hf),oi=ui=null)}function hf(e){if(e.propertyName==="value"&&wr(oi)){var t=[];of(t,oi,e,ao(e)),Jc(yy,t)}}function vy(e,t,a){e==="focusin"?(df(),ui=t,oi=a,ui.attachEvent("onpropertychange",hf)):e==="focusout"&&df()}function by(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return wr(oi)}function Sy(e,t){if(e==="click")return wr(t)}function xy(e,t){if(e==="input"||e==="change")return wr(t)}function Ey(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Kt=typeof Object.is=="function"?Object.is:Ey;function si(e,t){if(Kt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var r=a[n];if(!Pl.call(t,r)||!Kt(e[r],t[r]))return!1}return!0}function mf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pf(e,t){var a=mf(e);e=0;for(var n;a;){if(a.nodeType===3){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=mf(a)}}function gf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Sr(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=Sr(e.document)}return t}function mo(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 Ry=La&&"documentMode"in document&&11>=document.documentMode,pl=null,po=null,ci=null,go=!1;function vf(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;go||pl==null||pl!==Sr(n)||(n=pl,"selectionStart"in n&&mo(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ci&&si(ci,n)||(ci=n,n=pu(po,"onSelect"),0<n.length&&(t=new Tr("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=pl)))}function Bn(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var gl={animationend:Bn("Animation","AnimationEnd"),animationiteration:Bn("Animation","AnimationIteration"),animationstart:Bn("Animation","AnimationStart"),transitionrun:Bn("Transition","TransitionRun"),transitionstart:Bn("Transition","TransitionStart"),transitioncancel:Bn("Transition","TransitionCancel"),transitionend:Bn("Transition","TransitionEnd")},yo={},bf={};La&&(bf=document.createElement("div").style,"AnimationEvent"in window||(delete gl.animationend.animation,delete gl.animationiteration.animation,delete gl.animationstart.animation),"TransitionEvent"in window||delete gl.transitionend.transition);function qn(e){if(yo[e])return yo[e];if(!gl[e])return e;var t=gl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in bf)return yo[e]=t[a];return e}var Sf=qn("animationend"),xf=qn("animationiteration"),Ef=qn("animationstart"),Oy=qn("transitionrun"),Ty=qn("transitionstart"),_y=qn("transitioncancel"),Rf=qn("transitionend"),Of=new Map,vo="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(" ");vo.push("scrollEnd");function ma(e,t){Of.set(e,t),xt(t,[e])}var Cr=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)},ta=[],yl=0,bo=0;function zr(){for(var e=yl,t=bo=yl=0;t<e;){var a=ta[t];ta[t++]=null;var n=ta[t];ta[t++]=null;var r=ta[t];ta[t++]=null;var s=ta[t];if(ta[t++]=null,n!==null&&r!==null){var h=n.pending;h===null?r.next=r:(r.next=h.next,h.next=r),n.pending=r}s!==0&&Tf(a,r,s)}}function Dr(e,t,a,n){ta[yl++]=e,ta[yl++]=t,ta[yl++]=a,ta[yl++]=n,bo|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function So(e,t,a,n){return Dr(e,t,a,n),Mr(e)}function Yn(e,t){return Dr(e,null,null,t),Mr(e)}function Tf(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var r=!1,s=e.return;s!==null;)s.childLanes|=a,n=s.alternate,n!==null&&(n.childLanes|=a),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(r=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,r&&t!==null&&(r=31-Ct(a),e=s.hiddenUpdates,n=e[r],n===null?e[r]=[t]:n.push(t),t.lane=a|536870912),s):null}function Mr(e){if(50<Ai)throw Ai=0,zs=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var vl={};function wy(e,t,a,n){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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xt(e,t,a,n){return new wy(e,t,a,n)}function xo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ja(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 _f(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 Ar(e,t,a,n,r,s){var h=0;if(n=e,typeof e=="function")xo(e)&&(h=1);else if(typeof e=="string")h=Av(e,a,P.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ee:return e=Xt(31,a,t,r),e.elementType=ee,e.lanes=s,e;case Y:return kn(a.children,r,s,t);case V:h=8,r|=24;break;case J:return e=Xt(12,a,t,r|2),e.elementType=J,e.lanes=s,e;case ce:return e=Xt(13,a,t,r),e.elementType=ce,e.lanes=s,e;case ge:return e=Xt(19,a,t,r),e.elementType=ge,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case W:h=10;break e;case $:h=9;break e;case fe:h=11;break e;case le:h=14;break e;case z:h=16,n=null;break e}h=29,a=Error(o(130,e===null?"null":typeof e,"")),n=null}return t=Xt(h,a,t,r),t.elementType=e,t.type=n,t.lanes=s,t}function kn(e,t,a,n){return e=Xt(7,e,n,t),e.lanes=a,e}function Eo(e,t,a){return e=Xt(6,e,null,t),e.lanes=a,e}function wf(e){var t=Xt(18,null,null,0);return t.stateNode=e,t}function Ro(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 Cf=new WeakMap;function aa(e,t){if(typeof e=="object"&&e!==null){var a=Cf.get(e);return a!==void 0?a:(t={value:e,source:t,stack:dr(t)},Cf.set(e,t),t)}return{value:e,source:t,stack:dr(t)}}var bl=[],Sl=0,Nr=null,fi=0,na=[],la=0,rn=null,Ea=1,Ra="";function Ua(e,t){bl[Sl++]=fi,bl[Sl++]=Nr,Nr=e,fi=t}function zf(e,t,a){na[la++]=Ea,na[la++]=Ra,na[la++]=rn,rn=e;var n=Ea;e=Ra;var r=32-Ct(n)-1;n&=~(1<<r),a+=1;var s=32-Ct(t)+r;if(30<s){var h=r-r%5;s=(n&(1<<h)-1).toString(32),n>>=h,r-=h,Ea=1<<32-Ct(t)+r|a<<r|n,Ra=s+e}else Ea=1<<s|a<<r|n,Ra=e}function Oo(e){e.return!==null&&(Ua(e,1),zf(e,1,0))}function To(e){for(;e===Nr;)Nr=bl[--Sl],bl[Sl]=null,fi=bl[--Sl],bl[Sl]=null;for(;e===rn;)rn=na[--la],na[la]=null,Ra=na[--la],na[la]=null,Ea=na[--la],na[la]=null}function Df(e,t){na[la++]=Ea,na[la++]=Ra,na[la++]=rn,Ea=t.id,Ra=t.overflow,rn=e}var Rt=null,tt=null,He=!1,un=null,ia=!1,_o=Error(o(519));function on(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw di(aa(t,e)),_o}function Mf(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[F]=e,t[te]=n,a){case"dialog":Le("cancel",t),Le("close",t);break;case"iframe":case"object":case"embed":Le("load",t);break;case"video":case"audio":for(a=0;a<Li.length;a++)Le(Li[a],t);break;case"source":Le("error",t);break;case"img":case"image":case"link":Le("error",t),Le("load",t);break;case"details":Le("toggle",t);break;case"input":Le("invalid",t),Gc(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":Le("invalid",t);break;case"textarea":Le("invalid",t),Xc(t,n.value,n.defaultValue,n.children)}a=n.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||n.suppressHydrationWarning===!0||$h(t.textContent,a)?(n.popover!=null&&(Le("beforetoggle",t),Le("toggle",t)),n.onScroll!=null&&Le("scroll",t),n.onScrollEnd!=null&&Le("scrollend",t),n.onClick!=null&&(t.onclick=Na),t=!0):t=!1,t||on(e,!0)}function Af(e){for(Rt=e.return;Rt;)switch(Rt.tag){case 5:case 31:case 13:ia=!1;return;case 27:case 3:ia=!0;return;default:Rt=Rt.return}}function xl(e){if(e!==Rt)return!1;if(!He)return Af(e),He=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Ks(e.type,e.memoizedProps)),a=!a),a&&tt&&on(e),Af(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));tt=nm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));tt=nm(e)}else t===27?(t=tt,En(e.type)?(e=Js,Js=null,tt=e):tt=t):tt=Rt?ua(e.stateNode.nextSibling):null;return!0}function Vn(){tt=Rt=null,He=!1}function wo(){var e=un;return e!==null&&(Vt===null?Vt=e:Vt.push.apply(Vt,e),un=null),e}function di(e){un===null?un=[e]:un.push(e)}var Co=E(null),Gn=null,Ha=null;function sn(e,t,a){Q(Co,t._currentValue),t._currentValue=a}function Ba(e){e._currentValue=Co.current,B(Co)}function zo(e,t,a){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===a)break;e=e.return}}function Do(e,t,a,n){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var s=r.dependencies;if(s!==null){var h=r.child;s=s.firstContext;e:for(;s!==null;){var y=s;s=r;for(var S=0;S<t.length;S++)if(y.context===t[S]){s.lanes|=a,y=s.alternate,y!==null&&(y.lanes|=a),zo(s.return,a,e),n||(h=null);break e}s=y.next}}else if(r.tag===18){if(h=r.return,h===null)throw Error(o(341));h.lanes|=a,s=h.alternate,s!==null&&(s.lanes|=a),zo(h,a,e),h=null}else h=r.child;if(h!==null)h.return=r;else for(h=r;h!==null;){if(h===e){h=null;break}if(r=h.sibling,r!==null){r.return=h.return,h=r;break}h=h.return}r=h}}function El(e,t,a,n){e=null;for(var r=t,s=!1;r!==null;){if(!s){if((r.flags&524288)!==0)s=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var h=r.alternate;if(h===null)throw Error(o(387));if(h=h.memoizedProps,h!==null){var y=r.type;Kt(r.pendingProps.value,h.value)||(e!==null?e.push(y):e=[y])}}else if(r===De.current){if(h=r.alternate,h===null)throw Error(o(387));h.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(qi):e=[qi])}r=r.return}e!==null&&Do(t,e,a,n),t.flags|=262144}function Lr(e){for(e=e.firstContext;e!==null;){if(!Kt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Kn(e){Gn=e,Ha=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ot(e){return Nf(Gn,e)}function jr(e,t){return Gn===null&&Kn(e),Nf(e,t)}function Nf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Ha===null){if(e===null)throw Error(o(308));Ha=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ha=Ha.next=t;return a}var Cy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},zy=l.unstable_scheduleCallback,Dy=l.unstable_NormalPriority,ht={$$typeof:W,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Mo(){return{controller:new Cy,data:new Map,refCount:0}}function hi(e){e.refCount--,e.refCount===0&&zy(Dy,function(){e.controller.abort()})}var mi=null,Ao=0,Rl=0,Ol=null;function My(e,t){if(mi===null){var a=mi=[];Ao=0,Rl=js(),Ol={status:"pending",value:void 0,then:function(n){a.push(n)}}}return Ao++,t.then(Lf,Lf),t}function Lf(){if(--Ao===0&&mi!==null){Ol!==null&&(Ol.status="fulfilled");var e=mi;mi=null,Rl=0,Ol=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ay(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(r){a.push(r)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var r=0;r<a.length;r++)(0,a[r])(t)},function(r){for(n.status="rejected",n.reason=r,r=0;r<a.length;r++)(0,a[r])(void 0)}),n}var jf=N.S;N.S=function(e,t){vh=Nt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&My(e,t),jf!==null&&jf(e,t)};var Xn=E(null);function No(){var e=Xn.current;return e!==null?e:We.pooledCache}function Ur(e,t){t===null?Q(Xn,Xn.current):Q(Xn,t.pool)}function Uf(){var e=No();return e===null?null:{parent:ht._currentValue,pool:e}}var Tl=Error(o(460)),Lo=Error(o(474)),Hr=Error(o(542)),Br={then:function(){}};function Hf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Bf(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Na,Na),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Yf(e),e;default:if(typeof t.status=="string")t.then(Na,Na);else{if(e=We,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=n}},function(n){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Yf(e),e}throw Zn=t,Tl}}function Qn(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Zn=a,Tl):a}}var Zn=null;function qf(){if(Zn===null)throw Error(o(459));var e=Zn;return Zn=null,e}function Yf(e){if(e===Tl||e===Hr)throw Error(o(483))}var _l=null,pi=0;function qr(e){var t=pi;return pi+=1,_l===null&&(_l=[]),Bf(_l,e,t)}function gi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Yr(e,t){throw t.$$typeof===O?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function kf(e){function t(w,T){if(e){var M=w.deletions;M===null?(w.deletions=[T],w.flags|=16):M.push(T)}}function a(w,T){if(!e)return null;for(;T!==null;)t(w,T),T=T.sibling;return null}function n(w){for(var T=new Map;w!==null;)w.key!==null?T.set(w.key,w):T.set(w.index,w),w=w.sibling;return T}function r(w,T){return w=ja(w,T),w.index=0,w.sibling=null,w}function s(w,T,M){return w.index=M,e?(M=w.alternate,M!==null?(M=M.index,M<T?(w.flags|=67108866,T):M):(w.flags|=67108866,T)):(w.flags|=1048576,T)}function h(w){return e&&w.alternate===null&&(w.flags|=67108866),w}function y(w,T,M,k){return T===null||T.tag!==6?(T=Eo(M,w.mode,k),T.return=w,T):(T=r(T,M),T.return=w,T)}function S(w,T,M,k){var me=M.type;return me===Y?q(w,T,M.props.children,k,M.key):T!==null&&(T.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===z&&Qn(me)===T.type)?(T=r(T,M.props),gi(T,M),T.return=w,T):(T=Ar(M.type,M.key,M.props,null,w.mode,k),gi(T,M),T.return=w,T)}function A(w,T,M,k){return T===null||T.tag!==4||T.stateNode.containerInfo!==M.containerInfo||T.stateNode.implementation!==M.implementation?(T=Ro(M,w.mode,k),T.return=w,T):(T=r(T,M.children||[]),T.return=w,T)}function q(w,T,M,k,me){return T===null||T.tag!==7?(T=kn(M,w.mode,k,me),T.return=w,T):(T=r(T,M),T.return=w,T)}function G(w,T,M){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=Eo(""+T,w.mode,M),T.return=w,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case R:return M=Ar(T.type,T.key,T.props,null,w.mode,M),gi(M,T),M.return=w,M;case D:return T=Ro(T,w.mode,M),T.return=w,T;case z:return T=Qn(T),G(w,T,M)}if(ye(T)||re(T))return T=kn(T,w.mode,M,null),T.return=w,T;if(typeof T.then=="function")return G(w,qr(T),M);if(T.$$typeof===W)return G(w,jr(w,T),M);Yr(w,T)}return null}function L(w,T,M,k){var me=T!==null?T.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return me!==null?null:y(w,T,""+M,k);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case R:return M.key===me?S(w,T,M,k):null;case D:return M.key===me?A(w,T,M,k):null;case z:return M=Qn(M),L(w,T,M,k)}if(ye(M)||re(M))return me!==null?null:q(w,T,M,k,null);if(typeof M.then=="function")return L(w,T,qr(M),k);if(M.$$typeof===W)return L(w,T,jr(w,M),k);Yr(w,M)}return null}function H(w,T,M,k,me){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return w=w.get(M)||null,y(T,w,""+k,me);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case R:return w=w.get(k.key===null?M:k.key)||null,S(T,w,k,me);case D:return w=w.get(k.key===null?M:k.key)||null,A(T,w,k,me);case z:return k=Qn(k),H(w,T,M,k,me)}if(ye(k)||re(k))return w=w.get(M)||null,q(T,w,k,me,null);if(typeof k.then=="function")return H(w,T,M,qr(k),me);if(k.$$typeof===W)return H(w,T,M,jr(T,k),me);Yr(T,k)}return null}function oe(w,T,M,k){for(var me=null,Ye=null,se=T,we=T=0,Ue=null;se!==null&&we<M.length;we++){se.index>we?(Ue=se,se=null):Ue=se.sibling;var ke=L(w,se,M[we],k);if(ke===null){se===null&&(se=Ue);break}e&&se&&ke.alternate===null&&t(w,se),T=s(ke,T,we),Ye===null?me=ke:Ye.sibling=ke,Ye=ke,se=Ue}if(we===M.length)return a(w,se),He&&Ua(w,we),me;if(se===null){for(;we<M.length;we++)se=G(w,M[we],k),se!==null&&(T=s(se,T,we),Ye===null?me=se:Ye.sibling=se,Ye=se);return He&&Ua(w,we),me}for(se=n(se);we<M.length;we++)Ue=H(se,w,we,M[we],k),Ue!==null&&(e&&Ue.alternate!==null&&se.delete(Ue.key===null?we:Ue.key),T=s(Ue,T,we),Ye===null?me=Ue:Ye.sibling=Ue,Ye=Ue);return e&&se.forEach(function(wn){return t(w,wn)}),He&&Ua(w,we),me}function be(w,T,M,k){if(M==null)throw Error(o(151));for(var me=null,Ye=null,se=T,we=T=0,Ue=null,ke=M.next();se!==null&&!ke.done;we++,ke=M.next()){se.index>we?(Ue=se,se=null):Ue=se.sibling;var wn=L(w,se,ke.value,k);if(wn===null){se===null&&(se=Ue);break}e&&se&&wn.alternate===null&&t(w,se),T=s(wn,T,we),Ye===null?me=wn:Ye.sibling=wn,Ye=wn,se=Ue}if(ke.done)return a(w,se),He&&Ua(w,we),me;if(se===null){for(;!ke.done;we++,ke=M.next())ke=G(w,ke.value,k),ke!==null&&(T=s(ke,T,we),Ye===null?me=ke:Ye.sibling=ke,Ye=ke);return He&&Ua(w,we),me}for(se=n(se);!ke.done;we++,ke=M.next())ke=H(se,w,we,ke.value,k),ke!==null&&(e&&ke.alternate!==null&&se.delete(ke.key===null?we:ke.key),T=s(ke,T,we),Ye===null?me=ke:Ye.sibling=ke,Ye=ke);return e&&se.forEach(function(Gv){return t(w,Gv)}),He&&Ua(w,we),me}function Ze(w,T,M,k){if(typeof M=="object"&&M!==null&&M.type===Y&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case R:e:{for(var me=M.key;T!==null;){if(T.key===me){if(me=M.type,me===Y){if(T.tag===7){a(w,T.sibling),k=r(T,M.props.children),k.return=w,w=k;break e}}else if(T.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===z&&Qn(me)===T.type){a(w,T.sibling),k=r(T,M.props),gi(k,M),k.return=w,w=k;break e}a(w,T);break}else t(w,T);T=T.sibling}M.type===Y?(k=kn(M.props.children,w.mode,k,M.key),k.return=w,w=k):(k=Ar(M.type,M.key,M.props,null,w.mode,k),gi(k,M),k.return=w,w=k)}return h(w);case D:e:{for(me=M.key;T!==null;){if(T.key===me)if(T.tag===4&&T.stateNode.containerInfo===M.containerInfo&&T.stateNode.implementation===M.implementation){a(w,T.sibling),k=r(T,M.children||[]),k.return=w,w=k;break e}else{a(w,T);break}else t(w,T);T=T.sibling}k=Ro(M,w.mode,k),k.return=w,w=k}return h(w);case z:return M=Qn(M),Ze(w,T,M,k)}if(ye(M))return oe(w,T,M,k);if(re(M)){if(me=re(M),typeof me!="function")throw Error(o(150));return M=me.call(M),be(w,T,M,k)}if(typeof M.then=="function")return Ze(w,T,qr(M),k);if(M.$$typeof===W)return Ze(w,T,jr(w,M),k);Yr(w,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,T!==null&&T.tag===6?(a(w,T.sibling),k=r(T,M),k.return=w,w=k):(a(w,T),k=Eo(M,w.mode,k),k.return=w,w=k),h(w)):a(w,T)}return function(w,T,M,k){try{pi=0;var me=Ze(w,T,M,k);return _l=null,me}catch(se){if(se===Tl||se===Hr)throw se;var Ye=Xt(29,se,null,w.mode);return Ye.lanes=k,Ye.return=w,Ye}}}var $n=kf(!0),Vf=kf(!1),cn=!1;function jo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Uo(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 fn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function dn(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Ve&2)!==0){var r=n.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),n.pending=t,t=Mr(e),Tf(e,null,a),t}return Dr(e,n,t,a),Mr(e)}function yi(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,vr(e,a)}}function Ho(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var r=null,s=null;if(a=a.firstBaseUpdate,a!==null){do{var h={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};s===null?r=s=h:s=s.next=h,a=a.next}while(a!==null);s===null?r=s=t:s=s.next=t}else r=s=t;a={baseState:n.baseState,firstBaseUpdate:r,lastBaseUpdate:s,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Bo=!1;function vi(){if(Bo){var e=Ol;if(e!==null)throw e}}function bi(e,t,a,n){Bo=!1;var r=e.updateQueue;cn=!1;var s=r.firstBaseUpdate,h=r.lastBaseUpdate,y=r.shared.pending;if(y!==null){r.shared.pending=null;var S=y,A=S.next;S.next=null,h===null?s=A:h.next=A,h=S;var q=e.alternate;q!==null&&(q=q.updateQueue,y=q.lastBaseUpdate,y!==h&&(y===null?q.firstBaseUpdate=A:y.next=A,q.lastBaseUpdate=S))}if(s!==null){var G=r.baseState;h=0,q=A=S=null,y=s;do{var L=y.lane&-536870913,H=L!==y.lane;if(H?(je&L)===L:(n&L)===L){L!==0&&L===Rl&&(Bo=!0),q!==null&&(q=q.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var oe=e,be=y;L=t;var Ze=a;switch(be.tag){case 1:if(oe=be.payload,typeof oe=="function"){G=oe.call(Ze,G,L);break e}G=oe;break e;case 3:oe.flags=oe.flags&-65537|128;case 0:if(oe=be.payload,L=typeof oe=="function"?oe.call(Ze,G,L):oe,L==null)break e;G=v({},G,L);break e;case 2:cn=!0}}L=y.callback,L!==null&&(e.flags|=64,H&&(e.flags|=8192),H=r.callbacks,H===null?r.callbacks=[L]:H.push(L))}else H={lane:L,tag:y.tag,payload:y.payload,callback:y.callback,next:null},q===null?(A=q=H,S=G):q=q.next=H,h|=L;if(y=y.next,y===null){if(y=r.shared.pending,y===null)break;H=y,y=H.next,H.next=null,r.lastBaseUpdate=H,r.shared.pending=null}}while(!0);q===null&&(S=G),r.baseState=S,r.firstBaseUpdate=A,r.lastBaseUpdate=q,s===null&&(r.shared.lanes=0),yn|=h,e.lanes=h,e.memoizedState=G}}function Gf(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Kf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Gf(a[e],t)}var wl=E(null),kr=E(0);function Xf(e,t){e=Za,Q(kr,e),Q(wl,t),Za=e|t.baseLanes}function qo(){Q(kr,Za),Q(wl,wl.current)}function Yo(){Za=kr.current,B(wl),B(kr)}var Qt=E(null),ra=null;function hn(e){var t=e.alternate;Q(ot,ot.current&1),Q(Qt,e),ra===null&&(t===null||wl.current!==null||t.memoizedState!==null)&&(ra=e)}function ko(e){Q(ot,ot.current),Q(Qt,e),ra===null&&(ra=e)}function Qf(e){e.tag===22?(Q(ot,ot.current),Q(Qt,e),ra===null&&(ra=e)):mn()}function mn(){Q(ot,ot.current),Q(Qt,Qt.current)}function Zt(e){B(Qt),ra===e&&(ra=null),B(ot)}var ot=E(0);function Vr(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Zs(a)||$s(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var qa=0,_e=null,Xe=null,mt=null,Gr=!1,Cl=!1,Jn=!1,Kr=0,Si=0,zl=null,Ny=0;function it(){throw Error(o(321))}function Vo(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Kt(e[a],t[a]))return!1;return!0}function Go(e,t,a,n,r,s){return qa=s,_e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,N.H=e===null||e.memoizedState===null?zd:ls,Jn=!1,s=a(n,r),Jn=!1,Cl&&(s=$f(t,a,n,r)),Zf(e),s}function Zf(e){N.H=Ri;var t=Xe!==null&&Xe.next!==null;if(qa=0,mt=Xe=_e=null,Gr=!1,Si=0,zl=null,t)throw Error(o(300));e===null||pt||(e=e.dependencies,e!==null&&Lr(e)&&(pt=!0))}function $f(e,t,a,n){_e=e;var r=0;do{if(Cl&&(zl=null),Si=0,Cl=!1,25<=r)throw Error(o(301));if(r+=1,mt=Xe=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}N.H=Dd,s=t(a,n)}while(Cl);return s}function Ly(){var e=N.H,t=e.useState()[0];return t=typeof t.then=="function"?xi(t):t,e=e.useState()[0],(Xe!==null?Xe.memoizedState:null)!==e&&(_e.flags|=1024),t}function Ko(){var e=Kr!==0;return Kr=0,e}function Xo(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Qo(e){if(Gr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Gr=!1}qa=0,mt=Xe=_e=null,Cl=!1,Si=Kr=0,zl=null}function jt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mt===null?_e.memoizedState=mt=e:mt=mt.next=e,mt}function st(){if(Xe===null){var e=_e.alternate;e=e!==null?e.memoizedState:null}else e=Xe.next;var t=mt===null?_e.memoizedState:mt.next;if(t!==null)mt=t,Xe=e;else{if(e===null)throw _e.alternate===null?Error(o(467)):Error(o(310));Xe=e,e={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},mt===null?_e.memoizedState=mt=e:mt=mt.next=e}return mt}function Xr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function xi(e){var t=Si;return Si+=1,zl===null&&(zl=[]),e=Bf(zl,e,t),t=_e,(mt===null?t.memoizedState:mt.next)===null&&(t=t.alternate,N.H=t===null||t.memoizedState===null?zd:ls),e}function Qr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return xi(e);if(e.$$typeof===W)return Ot(e)}throw Error(o(438,String(e)))}function Zo(e){var t=null,a=_e.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=_e.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Xr(),_e.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),n=0;n<e;n++)a[n]=ae;return t.index++,a}function Ya(e,t){return typeof t=="function"?t(e):t}function Zr(e){var t=st();return $o(t,Xe,e)}function $o(e,t,a){var n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=a;var r=e.baseQueue,s=n.pending;if(s!==null){if(r!==null){var h=r.next;r.next=s.next,s.next=h}t.baseQueue=r=s,n.pending=null}if(s=e.baseState,r===null)e.memoizedState=s;else{t=r.next;var y=h=null,S=null,A=t,q=!1;do{var G=A.lane&-536870913;if(G!==A.lane?(je&G)===G:(qa&G)===G){var L=A.revertLane;if(L===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),G===Rl&&(q=!0);else if((qa&L)===L){A=A.next,L===Rl&&(q=!0);continue}else G={lane:0,revertLane:A.revertLane,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},S===null?(y=S=G,h=s):S=S.next=G,_e.lanes|=L,yn|=L;G=A.action,Jn&&a(s,G),s=A.hasEagerState?A.eagerState:a(s,G)}else L={lane:G,revertLane:A.revertLane,gesture:A.gesture,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},S===null?(y=S=L,h=s):S=S.next=L,_e.lanes|=G,yn|=G;A=A.next}while(A!==null&&A!==t);if(S===null?h=s:S.next=y,!Kt(s,e.memoizedState)&&(pt=!0,q&&(a=Ol,a!==null)))throw a;e.memoizedState=s,e.baseState=h,e.baseQueue=S,n.lastRenderedState=s}return r===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function Jo(e){var t=st(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var n=a.dispatch,r=a.pending,s=t.memoizedState;if(r!==null){a.pending=null;var h=r=r.next;do s=e(s,h.action),h=h.next;while(h!==r);Kt(s,t.memoizedState)||(pt=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),a.lastRenderedState=s}return[s,n]}function Jf(e,t,a){var n=_e,r=st(),s=He;if(s){if(a===void 0)throw Error(o(407));a=a()}else a=t();var h=!Kt((Xe||r).memoizedState,a);if(h&&(r.memoizedState=a,pt=!0),r=r.queue,Po(Pf.bind(null,n,r,e),[e]),r.getSnapshot!==t||h||mt!==null&&mt.memoizedState.tag&1){if(n.flags|=2048,Dl(9,{destroy:void 0},Wf.bind(null,n,r,a,t),null),We===null)throw Error(o(349));s||(qa&127)!==0||Ff(n,t,a)}return a}function Ff(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=_e.updateQueue,t===null?(t=Xr(),_e.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Wf(e,t,a,n){t.value=a,t.getSnapshot=n,If(t)&&ed(e)}function Pf(e,t,a){return a(function(){If(t)&&ed(e)})}function If(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Kt(e,a)}catch{return!0}}function ed(e){var t=Yn(e,2);t!==null&&Gt(t,e,2)}function Fo(e){var t=jt();if(typeof e=="function"){var a=e;if(e=a(),Jn){St(!0);try{a()}finally{St(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ya,lastRenderedState:e},t}function td(e,t,a,n){return e.baseState=a,$o(e,Xe,typeof n=="function"?n:Ya)}function jy(e,t,a,n,r){if(Fr(e))throw Error(o(485));if(e=t.action,e!==null){var s={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){s.listeners.push(h)}};N.T!==null?a(!0):s.isTransition=!1,n(s),a=t.pending,a===null?(s.next=t.pending=s,ad(t,s)):(s.next=a.next,t.pending=a.next=s)}}function ad(e,t){var a=t.action,n=t.payload,r=e.state;if(t.isTransition){var s=N.T,h={};N.T=h;try{var y=a(r,n),S=N.S;S!==null&&S(h,y),nd(e,t,y)}catch(A){Wo(e,t,A)}finally{s!==null&&h.types!==null&&(s.types=h.types),N.T=s}}else try{s=a(r,n),nd(e,t,s)}catch(A){Wo(e,t,A)}}function nd(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){ld(e,t,n)},function(n){return Wo(e,t,n)}):ld(e,t,a)}function ld(e,t,a){t.status="fulfilled",t.value=a,id(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,ad(e,a)))}function Wo(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,id(t),t=t.next;while(t!==n)}e.action=null}function id(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function rd(e,t){return t}function ud(e,t){if(He){var a=We.formState;if(a!==null){e:{var n=_e;if(He){if(tt){t:{for(var r=tt,s=ia;r.nodeType!==8;){if(!s){r=null;break t}if(r=ua(r.nextSibling),r===null){r=null;break t}}s=r.data,r=s==="F!"||s==="F"?r:null}if(r){tt=ua(r.nextSibling),n=r.data==="F!";break e}}on(n)}n=!1}n&&(t=a[0])}}return a=jt(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rd,lastRenderedState:t},a.queue=n,a=_d.bind(null,_e,n),n.dispatch=a,n=Fo(!1),s=ns.bind(null,_e,!1,n.queue),n=jt(),r={state:t,dispatch:null,action:e,pending:null},n.queue=r,a=jy.bind(null,_e,r,s,a),r.dispatch=a,n.memoizedState=e,[t,a,!1]}function od(e){var t=st();return sd(t,Xe,e)}function sd(e,t,a){if(t=$o(e,t,rd)[0],e=Zr(Ya)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=xi(t)}catch(h){throw h===Tl?Hr:h}else n=t;t=st();var r=t.queue,s=r.dispatch;return a!==t.memoizedState&&(_e.flags|=2048,Dl(9,{destroy:void 0},Uy.bind(null,r,a),null)),[n,s,e]}function Uy(e,t){e.action=t}function cd(e){var t=st(),a=Xe;if(a!==null)return sd(t,a,e);st(),t=t.memoizedState,a=st();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function Dl(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=_e.updateQueue,t===null&&(t=Xr(),_e.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(n=a.next,a.next=e,e.next=n,t.lastEffect=e),e}function fd(){return st().memoizedState}function $r(e,t,a,n){var r=jt();_e.flags|=e,r.memoizedState=Dl(1|t,{destroy:void 0},a,n===void 0?null:n)}function Jr(e,t,a,n){var r=st();n=n===void 0?null:n;var s=r.memoizedState.inst;Xe!==null&&n!==null&&Vo(n,Xe.memoizedState.deps)?r.memoizedState=Dl(t,s,a,n):(_e.flags|=e,r.memoizedState=Dl(1|t,s,a,n))}function dd(e,t){$r(8390656,8,e,t)}function Po(e,t){Jr(2048,8,e,t)}function Hy(e){_e.flags|=4;var t=_e.updateQueue;if(t===null)t=Xr(),_e.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function hd(e){var t=st().memoizedState;return Hy({ref:t,nextImpl:e}),function(){if((Ve&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function md(e,t){return Jr(4,2,e,t)}function pd(e,t){return Jr(4,4,e,t)}function gd(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 yd(e,t,a){a=a!=null?a.concat([e]):null,Jr(4,4,gd.bind(null,t,e),a)}function Io(){}function vd(e,t){var a=st();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&Vo(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function bd(e,t){var a=st();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&Vo(t,n[1]))return n[0];if(n=e(),Jn){St(!0);try{e()}finally{St(!1)}}return a.memoizedState=[n,t],n}function es(e,t,a){return a===void 0||(qa&1073741824)!==0&&(je&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Sh(),_e.lanes|=e,yn|=e,a)}function Sd(e,t,a,n){return Kt(a,t)?a:wl.current!==null?(e=es(e,a,n),Kt(e,t)||(pt=!0),e):(qa&42)===0||(qa&1073741824)!==0&&(je&261930)===0?(pt=!0,e.memoizedState=a):(e=Sh(),_e.lanes|=e,yn|=e,t)}function xd(e,t,a,n,r){var s=K.p;K.p=s!==0&&8>s?s:8;var h=N.T,y={};N.T=y,ns(e,!1,t,a);try{var S=r(),A=N.S;if(A!==null&&A(y,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var q=Ay(S,n);Ei(e,t,q,Ft(e))}else Ei(e,t,n,Ft(e))}catch(G){Ei(e,t,{then:function(){},status:"rejected",reason:G},Ft())}finally{K.p=s,h!==null&&y.types!==null&&(h.types=y.types),N.T=h}}function By(){}function ts(e,t,a,n){if(e.tag!==5)throw Error(o(476));var r=Ed(e).queue;xd(e,r,t,I,a===null?By:function(){return Rd(e),a(n)})}function Ed(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ya,lastRenderedState:I},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ya,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Rd(e){var t=Ed(e);t.next===null&&(t=e.alternate.memoizedState),Ei(e,t.next.queue,{},Ft())}function as(){return Ot(qi)}function Od(){return st().memoizedState}function Td(){return st().memoizedState}function qy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Ft();e=fn(a);var n=dn(t,e,a);n!==null&&(Gt(n,t,a),yi(n,t,a)),t={cache:Mo()},e.payload=t;return}t=t.return}}function Yy(e,t,a){var n=Ft();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Fr(e)?wd(t,a):(a=So(e,t,a,n),a!==null&&(Gt(a,e,n),Cd(a,t,n)))}function _d(e,t,a){var n=Ft();Ei(e,t,a,n)}function Ei(e,t,a,n){var r={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Fr(e))wd(t,r);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var h=t.lastRenderedState,y=s(h,a);if(r.hasEagerState=!0,r.eagerState=y,Kt(y,h))return Dr(e,t,r,0),We===null&&zr(),!1}catch{}if(a=So(e,t,r,n),a!==null)return Gt(a,e,n),Cd(a,t,n),!0}return!1}function ns(e,t,a,n){if(n={lane:2,revertLane:js(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Fr(e)){if(t)throw Error(o(479))}else t=So(e,a,n,2),t!==null&&Gt(t,e,2)}function Fr(e){var t=e.alternate;return e===_e||t!==null&&t===_e}function wd(e,t){Cl=Gr=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Cd(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,vr(e,a)}}var Ri={readContext:Ot,use:Qr,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useLayoutEffect:it,useInsertionEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useSyncExternalStore:it,useId:it,useHostTransitionStatus:it,useFormState:it,useActionState:it,useOptimistic:it,useMemoCache:it,useCacheRefresh:it};Ri.useEffectEvent=it;var zd={readContext:Ot,use:Qr,useCallback:function(e,t){return jt().memoizedState=[e,t===void 0?null:t],e},useContext:Ot,useEffect:dd,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,$r(4194308,4,gd.bind(null,t,e),a)},useLayoutEffect:function(e,t){return $r(4194308,4,e,t)},useInsertionEffect:function(e,t){$r(4,2,e,t)},useMemo:function(e,t){var a=jt();t=t===void 0?null:t;var n=e();if(Jn){St(!0);try{e()}finally{St(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=jt();if(a!==void 0){var r=a(t);if(Jn){St(!0);try{a(t)}finally{St(!1)}}}else r=t;return n.memoizedState=n.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},n.queue=e,e=e.dispatch=Yy.bind(null,_e,e),[n.memoizedState,e]},useRef:function(e){var t=jt();return e={current:e},t.memoizedState=e},useState:function(e){e=Fo(e);var t=e.queue,a=_d.bind(null,_e,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Io,useDeferredValue:function(e,t){var a=jt();return es(a,e,t)},useTransition:function(){var e=Fo(!1);return e=xd.bind(null,_e,e.queue,!0,!1),jt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=_e,r=jt();if(He){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),We===null)throw Error(o(349));(je&127)!==0||Ff(n,t,a)}r.memoizedState=a;var s={value:a,getSnapshot:t};return r.queue=s,dd(Pf.bind(null,n,s,e),[e]),n.flags|=2048,Dl(9,{destroy:void 0},Wf.bind(null,n,s,a,t),null),a},useId:function(){var e=jt(),t=We.identifierPrefix;if(He){var a=Ra,n=Ea;a=(n&~(1<<32-Ct(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Kr++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Ny++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:as,useFormState:ud,useActionState:ud,useOptimistic:function(e){var t=jt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=ns.bind(null,_e,!0,a),a.dispatch=t,[e,t]},useMemoCache:Zo,useCacheRefresh:function(){return jt().memoizedState=qy.bind(null,_e)},useEffectEvent:function(e){var t=jt(),a={impl:e};return t.memoizedState=a,function(){if((Ve&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}},ls={readContext:Ot,use:Qr,useCallback:vd,useContext:Ot,useEffect:Po,useImperativeHandle:yd,useInsertionEffect:md,useLayoutEffect:pd,useMemo:bd,useReducer:Zr,useRef:fd,useState:function(){return Zr(Ya)},useDebugValue:Io,useDeferredValue:function(e,t){var a=st();return Sd(a,Xe.memoizedState,e,t)},useTransition:function(){var e=Zr(Ya)[0],t=st().memoizedState;return[typeof e=="boolean"?e:xi(e),t]},useSyncExternalStore:Jf,useId:Od,useHostTransitionStatus:as,useFormState:od,useActionState:od,useOptimistic:function(e,t){var a=st();return td(a,Xe,e,t)},useMemoCache:Zo,useCacheRefresh:Td};ls.useEffectEvent=hd;var Dd={readContext:Ot,use:Qr,useCallback:vd,useContext:Ot,useEffect:Po,useImperativeHandle:yd,useInsertionEffect:md,useLayoutEffect:pd,useMemo:bd,useReducer:Jo,useRef:fd,useState:function(){return Jo(Ya)},useDebugValue:Io,useDeferredValue:function(e,t){var a=st();return Xe===null?es(a,e,t):Sd(a,Xe.memoizedState,e,t)},useTransition:function(){var e=Jo(Ya)[0],t=st().memoizedState;return[typeof e=="boolean"?e:xi(e),t]},useSyncExternalStore:Jf,useId:Od,useHostTransitionStatus:as,useFormState:cd,useActionState:cd,useOptimistic:function(e,t){var a=st();return Xe!==null?td(a,Xe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Zo,useCacheRefresh:Td};Dd.useEffectEvent=hd;function is(e,t,a,n){t=e.memoizedState,a=a(n,t),a=a==null?t:v({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var rs={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=Ft(),r=fn(n);r.payload=t,a!=null&&(r.callback=a),t=dn(e,r,n),t!==null&&(Gt(t,e,n),yi(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=Ft(),r=fn(n);r.tag=1,r.payload=t,a!=null&&(r.callback=a),t=dn(e,r,n),t!==null&&(Gt(t,e,n),yi(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Ft(),n=fn(a);n.tag=2,t!=null&&(n.callback=t),t=dn(e,n,a),t!==null&&(Gt(t,e,a),yi(t,e,a))}};function Md(e,t,a,n,r,s,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,s,h):t.prototype&&t.prototype.isPureReactComponent?!si(a,n)||!si(r,s):!0}function Ad(e,t,a,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,n),t.state!==e&&rs.enqueueReplaceState(t,t.state,null)}function Fn(e,t){var a=t;if("ref"in t){a={};for(var n in t)n!=="ref"&&(a[n]=t[n])}if(e=e.defaultProps){a===t&&(a=v({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r])}return a}function Nd(e){Cr(e)}function Ld(e){console.error(e)}function jd(e){Cr(e)}function Wr(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Ud(e,t,a){try{var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function us(e,t,a){return a=fn(a),a.tag=3,a.payload={element:null},a.callback=function(){Wr(e,t)},a}function Hd(e){return e=fn(e),e.tag=3,e}function Bd(e,t,a,n){var r=a.type.getDerivedStateFromError;if(typeof r=="function"){var s=n.value;e.payload=function(){return r(s)},e.callback=function(){Ud(t,a,n)}}var h=a.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){Ud(t,a,n),typeof r!="function"&&(vn===null?vn=new Set([this]):vn.add(this));var y=n.stack;this.componentDidCatch(n.value,{componentStack:y!==null?y:""})})}function ky(e,t,a,n,r){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&El(t,a,r,!0),a=Qt.current,a!==null){switch(a.tag){case 31:case 13:return ra===null?su():a.alternate===null&&rt===0&&(rt=3),a.flags&=-257,a.flags|=65536,a.lanes=r,n===Br?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),As(e,n,r)),!1;case 22:return a.flags|=65536,n===Br?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([n]):a.add(n)),As(e,n,r)),!1}throw Error(o(435,a.tag))}return As(e,n,r),su(),!1}if(He)return t=Qt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,n!==_o&&(e=Error(o(422),{cause:n}),di(aa(e,a)))):(n!==_o&&(t=Error(o(423),{cause:n}),di(aa(t,a))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,n=aa(n,a),r=us(e.stateNode,n,r),Ho(e,r),rt!==4&&(rt=2)),!1;var s=Error(o(520),{cause:n});if(s=aa(s,a),Mi===null?Mi=[s]:Mi.push(s),rt!==4&&(rt=2),t===null)return!0;n=aa(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=r&-r,a.lanes|=e,e=us(a.stateNode,n,e),Ho(a,e),!1;case 1:if(t=a.type,s=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(vn===null||!vn.has(s))))return a.flags|=65536,r&=-r,a.lanes|=r,r=Hd(r),Bd(r,e,a,n),Ho(a,r),!1}a=a.return}while(a!==null);return!1}var os=Error(o(461)),pt=!1;function Tt(e,t,a,n){t.child=e===null?Vf(t,null,a,n):$n(t,e.child,a,n)}function qd(e,t,a,n,r){a=a.render;var s=t.ref;if("ref"in n){var h={};for(var y in n)y!=="ref"&&(h[y]=n[y])}else h=n;return Kn(t),n=Go(e,t,a,h,s,r),y=Ko(),e!==null&&!pt?(Xo(e,t,r),ka(e,t,r)):(He&&y&&Oo(t),t.flags|=1,Tt(e,t,n,r),t.child)}function Yd(e,t,a,n,r){if(e===null){var s=a.type;return typeof s=="function"&&!xo(s)&&s.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=s,kd(e,t,s,n,r)):(e=Ar(a.type,null,n,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!gs(e,r)){var h=s.memoizedProps;if(a=a.compare,a=a!==null?a:si,a(h,n)&&e.ref===t.ref)return ka(e,t,r)}return t.flags|=1,e=ja(s,n),e.ref=t.ref,e.return=t,t.child=e}function kd(e,t,a,n,r){if(e!==null){var s=e.memoizedProps;if(si(s,n)&&e.ref===t.ref)if(pt=!1,t.pendingProps=n=s,gs(e,r))(e.flags&131072)!==0&&(pt=!0);else return t.lanes=e.lanes,ka(e,t,r)}return ss(e,t,a,n,r)}function Vd(e,t,a,n){var r=n.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|a:a,e!==null){for(n=t.child=e.child,r=0;n!==null;)r=r|n.lanes|n.childLanes,n=n.sibling;n=r&~s}else n=0,t.child=null;return Gd(e,t,s,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ur(t,s!==null?s.cachePool:null),s!==null?Xf(t,s):qo(),Qf(t);else return n=t.lanes=536870912,Gd(e,t,s!==null?s.baseLanes|a:a,a,n)}else s!==null?(Ur(t,s.cachePool),Xf(t,s),mn(),t.memoizedState=null):(e!==null&&Ur(t,null),qo(),mn());return Tt(e,t,r,a),t.child}function Oi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Gd(e,t,a,n,r){var s=No();return s=s===null?null:{parent:ht._currentValue,pool:s},t.memoizedState={baseLanes:a,cachePool:s},e!==null&&Ur(t,null),qo(),Qf(t),e!==null&&El(e,t,n,!0),t.childLanes=r,null}function Pr(e,t){return t=eu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Kd(e,t,a){return $n(t,e.child,null,a),e=Pr(t,t.pendingProps),e.flags|=2,Zt(t),t.memoizedState=null,e}function Vy(e,t,a){var n=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(He){if(n.mode==="hidden")return e=Pr(t,n),t.lanes=536870912,Oi(null,e);if(ko(t),(e=tt)?(e=am(e,ia),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:rn!==null?{id:Ea,overflow:Ra}:null,retryLane:536870912,hydrationErrors:null},a=wf(e),a.return=t,t.child=a,Rt=t,tt=null)):e=null,e===null)throw on(t);return t.lanes=536870912,null}return Pr(t,n)}var s=e.memoizedState;if(s!==null){var h=s.dehydrated;if(ko(t),r)if(t.flags&256)t.flags&=-257,t=Kd(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(pt||El(e,t,a,!1),r=(a&e.childLanes)!==0,pt||r){if(n=We,n!==null&&(h=x(n,a),h!==0&&h!==s.retryLane))throw s.retryLane=h,Yn(e,h),Gt(n,e,h),os;su(),t=Kd(e,t,a)}else e=s.treeContext,tt=ua(h.nextSibling),Rt=t,He=!0,un=null,ia=!1,e!==null&&Df(t,e),t=Pr(t,n),t.flags|=4096;return t}return e=ja(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ir(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(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function ss(e,t,a,n,r){return Kn(t),a=Go(e,t,a,n,void 0,r),n=Ko(),e!==null&&!pt?(Xo(e,t,r),ka(e,t,r)):(He&&n&&Oo(t),t.flags|=1,Tt(e,t,a,r),t.child)}function Xd(e,t,a,n,r,s){return Kn(t),t.updateQueue=null,a=$f(t,n,a,r),Zf(e),n=Ko(),e!==null&&!pt?(Xo(e,t,s),ka(e,t,s)):(He&&n&&Oo(t),t.flags|=1,Tt(e,t,a,s),t.child)}function Qd(e,t,a,n,r){if(Kn(t),t.stateNode===null){var s=vl,h=a.contextType;typeof h=="object"&&h!==null&&(s=Ot(h)),s=new a(n,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=rs,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=n,s.state=t.memoizedState,s.refs={},jo(t),h=a.contextType,s.context=typeof h=="object"&&h!==null?Ot(h):vl,s.state=t.memoizedState,h=a.getDerivedStateFromProps,typeof h=="function"&&(is(t,a,h,n),s.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(h=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),h!==s.state&&rs.enqueueReplaceState(s,s.state,null),bi(t,n,s,r),vi(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){s=t.stateNode;var y=t.memoizedProps,S=Fn(a,y);s.props=S;var A=s.context,q=a.contextType;h=vl,typeof q=="object"&&q!==null&&(h=Ot(q));var G=a.getDerivedStateFromProps;q=typeof G=="function"||typeof s.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,q||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(y||A!==h)&&Ad(t,s,n,h),cn=!1;var L=t.memoizedState;s.state=L,bi(t,n,s,r),vi(),A=t.memoizedState,y||L!==A||cn?(typeof G=="function"&&(is(t,a,G,n),A=t.memoizedState),(S=cn||Md(t,a,S,n,L,A,h))?(q||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=A),s.props=n,s.state=A,s.context=h,n=S):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{s=t.stateNode,Uo(e,t),h=t.memoizedProps,q=Fn(a,h),s.props=q,G=t.pendingProps,L=s.context,A=a.contextType,S=vl,typeof A=="object"&&A!==null&&(S=Ot(A)),y=a.getDerivedStateFromProps,(A=typeof y=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(h!==G||L!==S)&&Ad(t,s,n,S),cn=!1,L=t.memoizedState,s.state=L,bi(t,n,s,r),vi();var H=t.memoizedState;h!==G||L!==H||cn||e!==null&&e.dependencies!==null&&Lr(e.dependencies)?(typeof y=="function"&&(is(t,a,y,n),H=t.memoizedState),(q=cn||Md(t,a,q,n,L,H,S)||e!==null&&e.dependencies!==null&&Lr(e.dependencies))?(A||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,H,S),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,H,S)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||h===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=H),s.props=n,s.state=H,s.context=S,n=q):(typeof s.componentDidUpdate!="function"||h===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),n=!1)}return s=n,Ir(e,t),n=(t.flags&128)!==0,s||n?(s=t.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&n?(t.child=$n(t,e.child,null,r),t.child=$n(t,null,a,r)):Tt(e,t,a,r),t.memoizedState=s.state,e=t.child):e=ka(e,t,r),e}function Zd(e,t,a,n){return Vn(),t.flags|=256,Tt(e,t,a,n),t.child}var cs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function fs(e){return{baseLanes:e,cachePool:Uf()}}function ds(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Jt),e}function $d(e,t,a){var n=t.pendingProps,r=!1,s=(t.flags&128)!==0,h;if((h=s)||(h=e!==null&&e.memoizedState===null?!1:(ot.current&2)!==0),h&&(r=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(He){if(r?hn(t):mn(),(e=tt)?(e=am(e,ia),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:rn!==null?{id:Ea,overflow:Ra}:null,retryLane:536870912,hydrationErrors:null},a=wf(e),a.return=t,t.child=a,Rt=t,tt=null)):e=null,e===null)throw on(t);return $s(e)?t.lanes=32:t.lanes=536870912,null}var y=n.children;return n=n.fallback,r?(mn(),r=t.mode,y=eu({mode:"hidden",children:y},r),n=kn(n,r,a,null),y.return=t,n.return=t,y.sibling=n,t.child=y,n=t.child,n.memoizedState=fs(a),n.childLanes=ds(e,h,a),t.memoizedState=cs,Oi(null,n)):(hn(t),hs(t,y))}var S=e.memoizedState;if(S!==null&&(y=S.dehydrated,y!==null)){if(s)t.flags&256?(hn(t),t.flags&=-257,t=ms(e,t,a)):t.memoizedState!==null?(mn(),t.child=e.child,t.flags|=128,t=null):(mn(),y=n.fallback,r=t.mode,n=eu({mode:"visible",children:n.children},r),y=kn(y,r,a,null),y.flags|=2,n.return=t,y.return=t,n.sibling=y,t.child=n,$n(t,e.child,null,a),n=t.child,n.memoizedState=fs(a),n.childLanes=ds(e,h,a),t.memoizedState=cs,t=Oi(null,n));else if(hn(t),$s(y)){if(h=y.nextSibling&&y.nextSibling.dataset,h)var A=h.dgst;h=A,n=Error(o(419)),n.stack="",n.digest=h,di({value:n,source:null,stack:null}),t=ms(e,t,a)}else if(pt||El(e,t,a,!1),h=(a&e.childLanes)!==0,pt||h){if(h=We,h!==null&&(n=x(h,a),n!==0&&n!==S.retryLane))throw S.retryLane=n,Yn(e,n),Gt(h,e,n),os;Zs(y)||su(),t=ms(e,t,a)}else Zs(y)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,tt=ua(y.nextSibling),Rt=t,He=!0,un=null,ia=!1,e!==null&&Df(t,e),t=hs(t,n.children),t.flags|=4096);return t}return r?(mn(),y=n.fallback,r=t.mode,S=e.child,A=S.sibling,n=ja(S,{mode:"hidden",children:n.children}),n.subtreeFlags=S.subtreeFlags&65011712,A!==null?y=ja(A,y):(y=kn(y,r,a,null),y.flags|=2),y.return=t,n.return=t,n.sibling=y,t.child=n,Oi(null,n),n=t.child,y=e.child.memoizedState,y===null?y=fs(a):(r=y.cachePool,r!==null?(S=ht._currentValue,r=r.parent!==S?{parent:S,pool:S}:r):r=Uf(),y={baseLanes:y.baseLanes|a,cachePool:r}),n.memoizedState=y,n.childLanes=ds(e,h,a),t.memoizedState=cs,Oi(e.child,n)):(hn(t),a=e.child,e=a.sibling,a=ja(a,{mode:"visible",children:n.children}),a.return=t,a.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=a,t.memoizedState=null,a)}function hs(e,t){return t=eu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function eu(e,t){return e=Xt(22,e,null,t),e.lanes=0,e}function ms(e,t,a){return $n(t,e.child,null,a),e=hs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Jd(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),zo(e.return,t,a)}function ps(e,t,a,n,r,s){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:r,treeForkCount:s}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=n,h.tail=a,h.tailMode=r,h.treeForkCount=s)}function Fd(e,t,a){var n=t.pendingProps,r=n.revealOrder,s=n.tail;n=n.children;var h=ot.current,y=(h&2)!==0;if(y?(h=h&1|2,t.flags|=128):h&=1,Q(ot,h),Tt(e,t,n,a),n=He?fi:0,!y&&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}switch(r){case"forwards":for(a=t.child,r=null;a!==null;)e=a.alternate,e!==null&&Vr(e)===null&&(r=a),a=a.sibling;a=r,a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null),ps(t,!1,r,a,s,n);break;case"backwards":case"unstable_legacy-backwards":for(a=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Vr(e)===null){t.child=r;break}e=r.sibling,r.sibling=a,a=r,r=e}ps(t,!0,a,null,s,n);break;case"together":ps(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function ka(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),yn|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(El(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=ja(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ja(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function gs(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Lr(e)))}function Gy(e,t,a){switch(t.tag){case 3:ft(t,t.stateNode.containerInfo),sn(t,ht,e.memoizedState.cache),Vn();break;case 27:case 5:An(t);break;case 4:ft(t,t.stateNode.containerInfo);break;case 10:sn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ko(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(hn(t),t.flags|=128,null):(a&t.child.childLanes)!==0?$d(e,t,a):(hn(t),e=ka(e,t,a),e!==null?e.sibling:null);hn(t);break;case 19:var r=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(El(e,t,a,!1),n=(a&t.childLanes)!==0),r){if(n)return Fd(e,t,a);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),Q(ot,ot.current),n)break;return null;case 22:return t.lanes=0,Vd(e,t,a,t.pendingProps);case 24:sn(t,ht,e.memoizedState.cache)}return ka(e,t,a)}function Wd(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)pt=!0;else{if(!gs(e,a)&&(t.flags&128)===0)return pt=!1,Gy(e,t,a);pt=(e.flags&131072)!==0}else pt=!1,He&&(t.flags&1048576)!==0&&zf(t,fi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=Qn(t.elementType),t.type=e,typeof e=="function")xo(e)?(n=Fn(e,n),t.tag=1,t=Qd(null,t,e,n,a)):(t.tag=0,t=ss(null,t,e,n,a));else{if(e!=null){var r=e.$$typeof;if(r===fe){t.tag=11,t=qd(null,t,e,n,a);break e}else if(r===le){t.tag=14,t=Yd(null,t,e,n,a);break e}}throw t=Se(e)||e,Error(o(306,t,""))}}return t;case 0:return ss(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,r=Fn(n,t.pendingProps),Qd(e,t,n,r,a);case 3:e:{if(ft(t,t.stateNode.containerInfo),e===null)throw Error(o(387));n=t.pendingProps;var s=t.memoizedState;r=s.element,Uo(e,t),bi(t,n,null,a);var h=t.memoizedState;if(n=h.cache,sn(t,ht,n),n!==s.cache&&Do(t,[ht],a,!0),vi(),n=h.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=Zd(e,t,n,a);break e}else if(n!==r){r=aa(Error(o(424)),t),di(r),t=Zd(e,t,n,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,tt=ua(e.firstChild),Rt=t,He=!0,un=null,ia=!0,a=Vf(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Vn(),n===r){t=ka(e,t,a);break e}Tt(e,t,n,a)}t=t.child}return t;case 26:return Ir(e,t),e===null?(a=om(t.type,null,t.pendingProps,null))?t.memoizedState=a:He||(a=t.type,e=t.pendingProps,n=gu(Ee.current).createElement(a),n[F]=t,n[te]=e,_t(n,a,e),Pe(n),t.stateNode=n):t.memoizedState=om(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return An(t),e===null&&He&&(n=t.stateNode=im(t.type,t.pendingProps,Ee.current),Rt=t,ia=!0,r=tt,En(t.type)?(Js=r,tt=ua(n.firstChild)):tt=r),Tt(e,t,t.pendingProps.children,a),Ir(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&He&&((r=n=tt)&&(n=bv(n,t.type,t.pendingProps,ia),n!==null?(t.stateNode=n,Rt=t,tt=ua(n.firstChild),ia=!1,r=!0):r=!1),r||on(t)),An(t),r=t.type,s=t.pendingProps,h=e!==null?e.memoizedProps:null,n=s.children,Ks(r,s)?n=null:h!==null&&Ks(r,h)&&(t.flags|=32),t.memoizedState!==null&&(r=Go(e,t,Ly,null,null,a),qi._currentValue=r),Ir(e,t),Tt(e,t,n,a),t.child;case 6:return e===null&&He&&((e=a=tt)&&(a=Sv(a,t.pendingProps,ia),a!==null?(t.stateNode=a,Rt=t,tt=null,e=!0):e=!1),e||on(t)),null;case 13:return $d(e,t,a);case 4:return ft(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=$n(t,null,n,a):Tt(e,t,n,a),t.child;case 11:return qd(e,t,t.type,t.pendingProps,a);case 7:return Tt(e,t,t.pendingProps,a),t.child;case 8:return Tt(e,t,t.pendingProps.children,a),t.child;case 12:return Tt(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.pendingProps,sn(t,t.type,n.value),Tt(e,t,n.children,a),t.child;case 9:return r=t.type._context,n=t.pendingProps.children,Kn(t),r=Ot(r),n=n(r),t.flags|=1,Tt(e,t,n,a),t.child;case 14:return Yd(e,t,t.type,t.pendingProps,a);case 15:return kd(e,t,t.type,t.pendingProps,a);case 19:return Fd(e,t,a);case 31:return Vy(e,t,a);case 22:return Vd(e,t,a,t.pendingProps);case 24:return Kn(t),n=Ot(ht),e===null?(r=No(),r===null&&(r=We,s=Mo(),r.pooledCache=s,s.refCount++,s!==null&&(r.pooledCacheLanes|=a),r=s),t.memoizedState={parent:n,cache:r},jo(t),sn(t,ht,r)):((e.lanes&a)!==0&&(Uo(e,t),bi(t,null,null,a),vi()),r=e.memoizedState,s=t.memoizedState,r.parent!==n?(r={parent:n,cache:n},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),sn(t,ht,n)):(n=s.cache,sn(t,ht,n),n!==r.cache&&Do(t,[ht],a,!0))),Tt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Va(e){e.flags|=4}function ys(e,t,a,n,r){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(Oh())e.flags|=8192;else throw Zn=Br,Lo}else e.flags&=-16777217}function Pd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!hm(t))if(Oh())e.flags|=8192;else throw Zn=Br,Lo}function tu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ti():536870912,e.lanes|=t,Ll|=t)}function Ti(e,t){if(!He)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 n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function at(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)for(var r=e.child;r!==null;)a|=r.lanes|r.childLanes,n|=r.subtreeFlags&65011712,n|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,n|=r.subtreeFlags,n|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function Ky(e,t,a){var n=t.pendingProps;switch(To(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return at(t),null;case 1:return at(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ba(ht),Je(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(xl(t)?Va(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,wo())),at(t),null;case 26:var r=t.type,s=t.memoizedState;return e===null?(Va(t),s!==null?(at(t),Pd(t,s)):(at(t),ys(t,r,null,n,a))):s?s!==e.memoizedState?(Va(t),at(t),Pd(t,s)):(at(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&Va(t),at(t),ys(t,r,e,n,a)),null;case 27:if(nl(t),a=Ee.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Va(t);else{if(!n){if(t.stateNode===null)throw Error(o(166));return at(t),null}e=P.current,xl(t)?Mf(t):(e=im(r,n,a),t.stateNode=e,Va(t))}return at(t),null;case 5:if(nl(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Va(t);else{if(!n){if(t.stateNode===null)throw Error(o(166));return at(t),null}if(s=P.current,xl(t))Mf(t);else{var h=gu(Ee.current);switch(s){case 1:s=h.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:s=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":s=h.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":s=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":s=h.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof n.is=="string"?h.createElement("select",{is:n.is}):h.createElement("select"),n.multiple?s.multiple=!0:n.size&&(s.size=n.size);break;default:s=typeof n.is=="string"?h.createElement(r,{is:n.is}):h.createElement(r)}}s[F]=t,s[te]=n;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)s.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=s;e:switch(_t(s,r,n),r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&Va(t)}}return at(t),ys(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&Va(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(o(166));if(e=Ee.current,xl(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,r=Rt,r!==null)switch(r.tag){case 27:case 5:n=r.memoizedProps}e[F]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||$h(e.nodeValue,a)),e||on(t,!0)}else e=gu(e).createTextNode(n),e[F]=t,t.stateNode=e}return at(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=xl(t),a!==null){if(e===null){if(!n)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[F]=t}else Vn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;at(t),e=!1}else a=wo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Zt(t),t):(Zt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return at(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=xl(t),n!==null&&n.dehydrated!==null){if(e===null){if(!r)throw Error(o(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(o(317));r[F]=t}else Vn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;at(t),r=!1}else r=wo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(Zt(t),t):(Zt(t),null)}return Zt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,r=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(r=n.alternate.memoizedState.cachePool.pool),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==r&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),tu(t,t.updateQueue),at(t),null);case 4:return Je(),e===null&&qs(t.stateNode.containerInfo),at(t),null;case 10:return Ba(t.type),at(t),null;case 19:if(B(ot),n=t.memoizedState,n===null)return at(t),null;if(r=(t.flags&128)!==0,s=n.rendering,s===null)if(r)Ti(n,!1);else{if(rt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Vr(e),s!==null){for(t.flags|=128,Ti(n,!1),e=s.updateQueue,t.updateQueue=e,tu(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)_f(a,e),a=a.sibling;return Q(ot,ot.current&1|2),He&&Ua(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&Nt()>ru&&(t.flags|=128,r=!0,Ti(n,!1),t.lanes=4194304)}else{if(!r)if(e=Vr(s),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,tu(t,e),Ti(n,!0),n.tail===null&&n.tailMode==="hidden"&&!s.alternate&&!He)return at(t),null}else 2*Nt()-n.renderingStartTime>ru&&a!==536870912&&(t.flags|=128,r=!0,Ti(n,!1),t.lanes=4194304);n.isBackwards?(s.sibling=t.child,t.child=s):(e=n.last,e!==null?e.sibling=s:t.child=s,n.last=s)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=Nt(),e.sibling=null,a=ot.current,Q(ot,r?a&1|2:a&1),He&&Ua(t,n.treeForkCount),e):(at(t),null);case 22:case 23:return Zt(t),Yo(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(a&536870912)!==0&&(t.flags&128)===0&&(at(t),t.subtreeFlags&6&&(t.flags|=8192)):at(t),a=t.updateQueue,a!==null&&tu(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&B(Xn),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ba(ht),at(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Xy(e,t){switch(To(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ba(ht),Je(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return nl(t),null;case 31:if(t.memoizedState!==null){if(Zt(t),t.alternate===null)throw Error(o(340));Vn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Zt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Vn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(ot),null;case 4:return Je(),null;case 10:return Ba(t.type),null;case 22:case 23:return Zt(t),Yo(),e!==null&&B(Xn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ba(ht),null;case 25:return null;default:return null}}function Id(e,t){switch(To(t),t.tag){case 3:Ba(ht),Je();break;case 26:case 27:case 5:nl(t);break;case 4:Je();break;case 31:t.memoizedState!==null&&Zt(t);break;case 13:Zt(t);break;case 19:B(ot);break;case 10:Ba(t.type);break;case 22:case 23:Zt(t),Yo(),e!==null&&B(Xn);break;case 24:Ba(ht)}}function _i(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var r=n.next;a=r;do{if((a.tag&e)===e){n=void 0;var s=a.create,h=a.inst;n=s(),h.destroy=n}a=a.next}while(a!==r)}}catch(y){Ke(t,t.return,y)}}function pn(e,t,a){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var s=r.next;n=s;do{if((n.tag&e)===e){var h=n.inst,y=h.destroy;if(y!==void 0){h.destroy=void 0,r=t;var S=a,A=y;try{A()}catch(q){Ke(r,S,q)}}}n=n.next}while(n!==s)}}catch(q){Ke(t,t.return,q)}}function eh(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Kf(t,a)}catch(n){Ke(e,e.return,n)}}}function th(e,t,a){a.props=Fn(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){Ke(e,t,n)}}function wi(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof a=="function"?e.refCleanup=a(n):a.current=n}}catch(r){Ke(e,t,r)}}function Oa(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(r){Ke(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(r){Ke(e,t,r)}else a.current=null}function ah(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break e;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(r){Ke(e,e.return,r)}}function vs(e,t,a){try{var n=e.stateNode;hv(n,e.type,a,t),n[te]=t}catch(r){Ke(e,e.return,r)}}function nh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&En(e.type)||e.tag===4}function bs(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&&En(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 Ss(e,t,a){var n=e.tag;if(n===5||n===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=Na));else if(n!==4&&(n===27&&En(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Ss(e,t,a),e=e.sibling;e!==null;)Ss(e,t,a),e=e.sibling}function au(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(n!==4&&(n===27&&En(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(au(e,t,a),e=e.sibling;e!==null;)au(e,t,a),e=e.sibling}function lh(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);_t(t,n,a),t[F]=e,t[te]=a}catch(s){Ke(e,e.return,s)}}var Ga=!1,gt=!1,xs=!1,ih=typeof WeakSet=="function"?WeakSet:Set,Et=null;function Qy(e,t){if(e=e.containerInfo,Vs=Ru,e=yf(e),mo(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var r=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{a.nodeType,s.nodeType}catch{a=null;break e}var h=0,y=-1,S=-1,A=0,q=0,G=e,L=null;t:for(;;){for(var H;G!==a||r!==0&&G.nodeType!==3||(y=h+r),G!==s||n!==0&&G.nodeType!==3||(S=h+n),G.nodeType===3&&(h+=G.nodeValue.length),(H=G.firstChild)!==null;)L=G,G=H;for(;;){if(G===e)break t;if(L===a&&++A===r&&(y=h),L===s&&++q===n&&(S=h),(H=G.nextSibling)!==null)break;G=L,L=G.parentNode}G=H}a=y===-1||S===-1?null:{start:y,end:S}}else a=null}a=a||{start:0,end:0}}else a=null;for(Gs={focusedElem:e,selectionRange:a},Ru=!1,Et=t;Et!==null;)if(t=Et,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Et=e;else for(;Et!==null;){switch(t=Et,s=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)r=e[a],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,a=t,r=s.memoizedProps,s=s.memoizedState,n=a.stateNode;try{var oe=Fn(a.type,r);e=n.getSnapshotBeforeUpdate(oe,s),n.__reactInternalSnapshotBeforeUpdate=e}catch(be){Ke(a,a.return,be)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Qs(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Qs(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(o(163))}if(e=t.sibling,e!==null){e.return=t.return,Et=e;break}Et=t.return}}function rh(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:Xa(e,a),n&4&&_i(5,a);break;case 1:if(Xa(e,a),n&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(h){Ke(a,a.return,h)}else{var r=Fn(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){Ke(a,a.return,h)}}n&64&&eh(a),n&512&&wi(a,a.return);break;case 3:if(Xa(e,a),n&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{Kf(e,t)}catch(h){Ke(a,a.return,h)}}break;case 27:t===null&&n&4&&lh(a);case 26:case 5:Xa(e,a),t===null&&n&4&&ah(a),n&512&&wi(a,a.return);break;case 12:Xa(e,a);break;case 31:Xa(e,a),n&4&&sh(e,a);break;case 13:Xa(e,a),n&4&&ch(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=tv.bind(null,a),xv(e,a))));break;case 22:if(n=a.memoizedState!==null||Ga,!n){t=t!==null&&t.memoizedState!==null||gt,r=Ga;var s=gt;Ga=n,(gt=t)&&!s?Qa(e,a,(a.subtreeFlags&8772)!==0):Xa(e,a),Ga=r,gt=s}break;case 30:break;default:Xa(e,a)}}function uh(e){var t=e.alternate;t!==null&&(e.alternate=null,uh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Fe(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 nt=null,qt=!1;function Ka(e,t,a){for(a=a.child;a!==null;)oh(e,t,a),a=a.sibling}function oh(e,t,a){if(Lt&&typeof Lt.onCommitFiberUnmount=="function")try{Lt.onCommitFiberUnmount(Ma,a)}catch{}switch(a.tag){case 26:gt||Oa(a,t),Ka(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:gt||Oa(a,t);var n=nt,r=qt;En(a.type)&&(nt=a.stateNode,qt=!1),Ka(e,t,a),Ui(a.stateNode),nt=n,qt=r;break;case 5:gt||Oa(a,t);case 6:if(n=nt,r=qt,nt=null,Ka(e,t,a),nt=n,qt=r,nt!==null)if(qt)try{(nt.nodeType===9?nt.body:nt.nodeName==="HTML"?nt.ownerDocument.body:nt).removeChild(a.stateNode)}catch(s){Ke(a,t,s)}else try{nt.removeChild(a.stateNode)}catch(s){Ke(a,t,s)}break;case 18:nt!==null&&(qt?(e=nt,em(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Vl(e)):em(nt,a.stateNode));break;case 4:n=nt,r=qt,nt=a.stateNode.containerInfo,qt=!0,Ka(e,t,a),nt=n,qt=r;break;case 0:case 11:case 14:case 15:pn(2,a,t),gt||pn(4,a,t),Ka(e,t,a);break;case 1:gt||(Oa(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&th(a,t,n)),Ka(e,t,a);break;case 21:Ka(e,t,a);break;case 22:gt=(n=gt)||a.memoizedState!==null,Ka(e,t,a),gt=n;break;default:Ka(e,t,a)}}function sh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Vl(e)}catch(a){Ke(t,t.return,a)}}}function ch(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Vl(e)}catch(a){Ke(t,t.return,a)}}function Zy(e){switch(e.tag){case 31: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(o(435,e.tag))}}function nu(e,t){var a=Zy(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var r=av.bind(null,e,n);n.then(r,r)}})}function Yt(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var r=a[n],s=e,h=t,y=h;e:for(;y!==null;){switch(y.tag){case 27:if(En(y.type)){nt=y.stateNode,qt=!1;break e}break;case 5:nt=y.stateNode,qt=!1;break e;case 3:case 4:nt=y.stateNode.containerInfo,qt=!0;break e}y=y.return}if(nt===null)throw Error(o(160));oh(s,h,r),nt=null,qt=!1,s=r.alternate,s!==null&&(s.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)fh(t,e),t=t.sibling}var pa=null;function fh(e,t){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Yt(t,e),kt(e),n&4&&(pn(3,e,e.return),_i(3,e),pn(5,e,e.return));break;case 1:Yt(t,e),kt(e),n&512&&(gt||a===null||Oa(a,a.return)),n&64&&Ga&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?n:a.concat(n))));break;case 26:var r=pa;if(Yt(t,e),kt(e),n&512&&(gt||a===null||Oa(a,a.return)),n&4){var s=a!==null?a.memoizedState:null;if(n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null){e:{n=e.type,a=e.memoizedProps,r=r.ownerDocument||r;t:switch(n){case"title":s=r.getElementsByTagName("title")[0],(!s||s[Me]||s[F]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=r.createElement(n),r.head.insertBefore(s,r.querySelector("head > title"))),_t(s,n,a),s[F]=e,Pe(s),n=s;break e;case"link":var h=fm("link","href",r).get(n+(a.href||""));if(h){for(var y=0;y<h.length;y++)if(s=h[y],s.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&s.getAttribute("rel")===(a.rel==null?null:a.rel)&&s.getAttribute("title")===(a.title==null?null:a.title)&&s.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){h.splice(y,1);break t}}s=r.createElement(n),_t(s,n,a),r.head.appendChild(s);break;case"meta":if(h=fm("meta","content",r).get(n+(a.content||""))){for(y=0;y<h.length;y++)if(s=h[y],s.getAttribute("content")===(a.content==null?null:""+a.content)&&s.getAttribute("name")===(a.name==null?null:a.name)&&s.getAttribute("property")===(a.property==null?null:a.property)&&s.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&s.getAttribute("charset")===(a.charSet==null?null:a.charSet)){h.splice(y,1);break t}}s=r.createElement(n),_t(s,n,a),r.head.appendChild(s);break;default:throw Error(o(468,n))}s[F]=e,Pe(s),n=s}e.stateNode=n}else dm(r,e.type,e.stateNode);else e.stateNode=cm(r,n,e.memoizedProps);else s!==n?(s===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):s.count--,n===null?dm(r,e.type,e.stateNode):cm(r,n,e.memoizedProps)):n===null&&e.stateNode!==null&&vs(e,e.memoizedProps,a.memoizedProps)}break;case 27:Yt(t,e),kt(e),n&512&&(gt||a===null||Oa(a,a.return)),a!==null&&n&4&&vs(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Yt(t,e),kt(e),n&512&&(gt||a===null||Oa(a,a.return)),e.flags&32){r=e.stateNode;try{fl(r,"")}catch(oe){Ke(e,e.return,oe)}}n&4&&e.stateNode!=null&&(r=e.memoizedProps,vs(e,r,a!==null?a.memoizedProps:r)),n&1024&&(xs=!0);break;case 6:if(Yt(t,e),kt(e),n&4){if(e.stateNode===null)throw Error(o(162));n=e.memoizedProps,a=e.stateNode;try{a.nodeValue=n}catch(oe){Ke(e,e.return,oe)}}break;case 3:if(bu=null,r=pa,pa=yu(t.containerInfo),Yt(t,e),pa=r,kt(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{Vl(t.containerInfo)}catch(oe){Ke(e,e.return,oe)}xs&&(xs=!1,dh(e));break;case 4:n=pa,pa=yu(e.stateNode.containerInfo),Yt(t,e),kt(e),pa=n;break;case 12:Yt(t,e),kt(e);break;case 31:Yt(t,e),kt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,nu(e,n)));break;case 13:Yt(t,e),kt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(iu=Nt()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,nu(e,n)));break;case 22:r=e.memoizedState!==null;var S=a!==null&&a.memoizedState!==null,A=Ga,q=gt;if(Ga=A||r,gt=q||S,Yt(t,e),gt=q,Ga=A,kt(e),n&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(a===null||S||Ga||gt||Wn(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){S=a=t;try{if(s=S.stateNode,r)h=s.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{y=S.stateNode;var G=S.memoizedProps.style,L=G!=null&&G.hasOwnProperty("display")?G.display:null;y.style.display=L==null||typeof L=="boolean"?"":(""+L).trim()}}catch(oe){Ke(S,S.return,oe)}}}else if(t.tag===6){if(a===null){S=t;try{S.stateNode.nodeValue=r?"":S.memoizedProps}catch(oe){Ke(S,S.return,oe)}}}else if(t.tag===18){if(a===null){S=t;try{var H=S.stateNode;r?tm(H,!0):tm(S.stateNode,!1)}catch(oe){Ke(S,S.return,oe)}}}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}n&4&&(n=e.updateQueue,n!==null&&(a=n.retryQueue,a!==null&&(n.retryQueue=null,nu(e,a))));break;case 19:Yt(t,e),kt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,nu(e,n)));break;case 30:break;case 21:break;default:Yt(t,e),kt(e)}}function kt(e){var t=e.flags;if(t&2){try{for(var a,n=e.return;n!==null;){if(nh(n)){a=n;break}n=n.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var r=a.stateNode,s=bs(e);au(e,s,r);break;case 5:var h=a.stateNode;a.flags&32&&(fl(h,""),a.flags&=-33);var y=bs(e);au(e,y,h);break;case 3:case 4:var S=a.stateNode.containerInfo,A=bs(e);Ss(e,A,S);break;default:throw Error(o(161))}}catch(q){Ke(e,e.return,q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function dh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;dh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Xa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)rh(e,t.alternate,t),t=t.sibling}function Wn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:pn(4,t,t.return),Wn(t);break;case 1:Oa(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&th(t,t.return,a),Wn(t);break;case 27:Ui(t.stateNode);case 26:case 5:Oa(t,t.return),Wn(t);break;case 22:t.memoizedState===null&&Wn(t);break;case 30:Wn(t);break;default:Wn(t)}e=e.sibling}}function Qa(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,r=e,s=t,h=s.flags;switch(s.tag){case 0:case 11:case 15:Qa(r,s,a),_i(4,s);break;case 1:if(Qa(r,s,a),n=s,r=n.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(A){Ke(n,n.return,A)}if(n=s,r=n.updateQueue,r!==null){var y=n.stateNode;try{var S=r.shared.hiddenCallbacks;if(S!==null)for(r.shared.hiddenCallbacks=null,r=0;r<S.length;r++)Gf(S[r],y)}catch(A){Ke(n,n.return,A)}}a&&h&64&&eh(s),wi(s,s.return);break;case 27:lh(s);case 26:case 5:Qa(r,s,a),a&&n===null&&h&4&&ah(s),wi(s,s.return);break;case 12:Qa(r,s,a);break;case 31:Qa(r,s,a),a&&h&4&&sh(r,s);break;case 13:Qa(r,s,a),a&&h&4&&ch(r,s);break;case 22:s.memoizedState===null&&Qa(r,s,a),wi(s,s.return);break;case 30:break;default:Qa(r,s,a)}t=t.sibling}}function Es(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&&hi(a))}function Rs(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&hi(e))}function ga(e,t,a,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)hh(e,t,a,n),t=t.sibling}function hh(e,t,a,n){var r=t.flags;switch(t.tag){case 0:case 11:case 15:ga(e,t,a,n),r&2048&&_i(9,t);break;case 1:ga(e,t,a,n);break;case 3:ga(e,t,a,n),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&hi(e)));break;case 12:if(r&2048){ga(e,t,a,n),e=t.stateNode;try{var s=t.memoizedProps,h=s.id,y=s.onPostCommit;typeof y=="function"&&y(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){Ke(t,t.return,S)}}else ga(e,t,a,n);break;case 31:ga(e,t,a,n);break;case 13:ga(e,t,a,n);break;case 23:break;case 22:s=t.stateNode,h=t.alternate,t.memoizedState!==null?s._visibility&2?ga(e,t,a,n):Ci(e,t):s._visibility&2?ga(e,t,a,n):(s._visibility|=2,Ml(e,t,a,n,(t.subtreeFlags&10256)!==0||!1)),r&2048&&Es(h,t);break;case 24:ga(e,t,a,n),r&2048&&Rs(t.alternate,t);break;default:ga(e,t,a,n)}}function Ml(e,t,a,n,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,h=t,y=a,S=n,A=h.flags;switch(h.tag){case 0:case 11:case 15:Ml(s,h,y,S,r),_i(8,h);break;case 23:break;case 22:var q=h.stateNode;h.memoizedState!==null?q._visibility&2?Ml(s,h,y,S,r):Ci(s,h):(q._visibility|=2,Ml(s,h,y,S,r)),r&&A&2048&&Es(h.alternate,h);break;case 24:Ml(s,h,y,S,r),r&&A&2048&&Rs(h.alternate,h);break;default:Ml(s,h,y,S,r)}t=t.sibling}}function Ci(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,n=t,r=n.flags;switch(n.tag){case 22:Ci(a,n),r&2048&&Es(n.alternate,n);break;case 24:Ci(a,n),r&2048&&Rs(n.alternate,n);break;default:Ci(a,n)}t=t.sibling}}var zi=8192;function Al(e,t,a){if(e.subtreeFlags&zi)for(e=e.child;e!==null;)mh(e,t,a),e=e.sibling}function mh(e,t,a){switch(e.tag){case 26:Al(e,t,a),e.flags&zi&&e.memoizedState!==null&&Nv(a,pa,e.memoizedState,e.memoizedProps);break;case 5:Al(e,t,a);break;case 3:case 4:var n=pa;pa=yu(e.stateNode.containerInfo),Al(e,t,a),pa=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=zi,zi=16777216,Al(e,t,a),zi=n):Al(e,t,a));break;default:Al(e,t,a)}}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 Di(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];Et=n,yh(n,e)}ph(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)gh(e),e=e.sibling}function gh(e){switch(e.tag){case 0:case 11:case 15:Di(e),e.flags&2048&&pn(9,e,e.return);break;case 3:Di(e);break;case 12:Di(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,lu(e)):Di(e);break;default:Di(e)}}function lu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];Et=n,yh(n,e)}ph(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:pn(8,t,t.return),lu(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,lu(t));break;default:lu(t)}e=e.sibling}}function yh(e,t){for(;Et!==null;){var a=Et;switch(a.tag){case 0:case 11:case 15:pn(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var n=a.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:hi(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,Et=n;else e:for(a=e;Et!==null;){n=Et;var r=n.sibling,s=n.return;if(uh(n),n===a){Et=null;break e}if(r!==null){r.return=s,Et=r;break e}Et=s}}}var $y={getCacheForType:function(e){var t=Ot(ht),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Ot(ht).controller.signal}},Jy=typeof WeakMap=="function"?WeakMap:Map,Ve=0,We=null,Ne=null,je=0,Ge=0,$t=null,gn=!1,Nl=!1,Os=!1,Za=0,rt=0,yn=0,Pn=0,Ts=0,Jt=0,Ll=0,Mi=null,Vt=null,_s=!1,iu=0,vh=0,ru=1/0,uu=null,vn=null,bt=0,bn=null,jl=null,$a=0,ws=0,Cs=null,bh=null,Ai=0,zs=null;function Ft(){return(Ve&2)!==0&&je!==0?je&-je:N.T!==null?js():X()}function Sh(){if(Jt===0)if((je&536870912)===0||He){var e=Aa;Aa<<=1,(Aa&3932160)===0&&(Aa=262144),Jt=e}else Jt=536870912;return e=Qt.current,e!==null&&(e.flags|=32),Jt}function Gt(e,t,a){(e===We&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)&&(Ul(e,0),Sn(e,je,Jt,!1)),ba(e,a),((Ve&2)===0||e!==We)&&(e===We&&((Ve&2)===0&&(Pn|=a),rt===4&&Sn(e,je,Jt,!1)),Ta(e))}function xh(e,t,a){if((Ve&6)!==0)throw Error(o(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||tn(e,t),r=n?Py(e,t):Ms(e,t,!0),s=n;do{if(r===0){Nl&&!n&&Sn(e,t,0,!1);break}else{if(a=e.current.alternate,s&&!Fy(a)){r=Ms(e,t,!1),s=!1;continue}if(r===2){if(s=t,e.errorRecoveryDisabledLanes&s)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var y=e;r=Mi;var S=y.current.memoizedState.isDehydrated;if(S&&(Ul(y,h).flags|=256),h=Ms(y,h,!1),h!==2){if(Os&&!S){y.errorRecoveryDisabledLanes|=s,Pn|=s,r=4;break e}s=Vt,Vt=r,s!==null&&(Vt===null?Vt=s:Vt.push.apply(Vt,s))}r=h}if(s=!1,r!==2)continue}}if(r===1){Ul(e,0),Sn(e,t,0,!0);break}e:{switch(n=e,s=r,s){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Sn(n,t,Jt,!gn);break e;case 2:Vt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(r=iu+300-Nt(),10<r)){if(Sn(n,t,Jt,!gn),rl(n,0,!0)!==0)break e;$a=t,n.timeoutHandle=Ph(Eh.bind(null,n,a,Vt,uu,_s,t,Jt,Pn,Ll,gn,s,"Throttled",-0,0),r);break e}Eh(n,a,Vt,uu,_s,t,Jt,Pn,Ll,gn,s,null,-0,0)}}break}while(!0);Ta(e)}function Eh(e,t,a,n,r,s,h,y,S,A,q,G,L,H){if(e.timeoutHandle=-1,G=t.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Na},mh(t,s,G);var oe=(s&62914560)===s?iu-Nt():(s&4194048)===s?vh-Nt():0;if(oe=Lv(G,oe),oe!==null){$a=s,e.cancelPendingCommit=oe(Dh.bind(null,e,t,s,a,n,r,h,y,S,q,G,null,L,H)),Sn(e,s,h,!A);return}}Dh(e,t,s,a,n,r,h,y,S)}function Fy(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 n=0;n<a.length;n++){var r=a[n],s=r.getSnapshot;r=r.value;try{if(!Kt(s(),r))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 Sn(e,t,a,n){t&=~Ts,t&=~Pn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var r=t;0<r;){var s=31-Ct(r),h=1<<s;n[s]=-1,r&=~h}a!==0&&yr(e,a,t)}function ou(){return(Ve&6)===0?(Ni(0),!1):!0}function Ds(){if(Ne!==null){if(Ge===0)var e=Ne.return;else e=Ne,Ha=Gn=null,Qo(e),_l=null,pi=0,e=Ne;for(;e!==null;)Id(e.alternate,e),e=e.return;Ne=null}}function Ul(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,gv(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),$a=0,Ds(),We=e,Ne=a=ja(e.current,null),je=t,Ge=0,$t=null,gn=!1,Nl=tn(e,t),Os=!1,Ll=Jt=Ts=Pn=yn=rt=0,Vt=Mi=null,_s=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-Ct(n),s=1<<r;t|=e[r],n&=~s}return Za=t,zr(),a}function Rh(e,t){_e=null,N.H=Ri,t===Tl||t===Hr?(t=qf(),Ge=3):t===Lo?(t=qf(),Ge=4):Ge=t===os?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,$t=t,Ne===null&&(rt=1,Wr(e,aa(t,e.current)))}function Oh(){var e=Qt.current;return e===null?!0:(je&4194048)===je?ra===null:(je&62914560)===je||(je&536870912)!==0?e===ra:!1}function Th(){var e=N.H;return N.H=Ri,e===null?Ri:e}function _h(){var e=N.A;return N.A=$y,e}function su(){rt=4,gn||(je&4194048)!==je&&Qt.current!==null||(Nl=!0),(yn&134217727)===0&&(Pn&134217727)===0||We===null||Sn(We,je,Jt,!1)}function Ms(e,t,a){var n=Ve;Ve|=2;var r=Th(),s=_h();(We!==e||je!==t)&&(uu=null,Ul(e,t)),t=!1;var h=rt;e:do try{if(Ge!==0&&Ne!==null){var y=Ne,S=$t;switch(Ge){case 8:Ds(),h=6;break e;case 3:case 2:case 9:case 6:Qt.current===null&&(t=!0);var A=Ge;if(Ge=0,$t=null,Hl(e,y,S,A),a&&Nl){h=0;break e}break;default:A=Ge,Ge=0,$t=null,Hl(e,y,S,A)}}Wy(),h=rt;break}catch(q){Rh(e,q)}while(!0);return t&&e.shellSuspendCounter++,Ha=Gn=null,Ve=n,N.H=r,N.A=s,Ne===null&&(We=null,je=0,zr()),h}function Wy(){for(;Ne!==null;)wh(Ne)}function Py(e,t){var a=Ve;Ve|=2;var n=Th(),r=_h();We!==e||je!==t?(uu=null,ru=Nt()+500,Ul(e,t)):Nl=tn(e,t);e:do try{if(Ge!==0&&Ne!==null){t=Ne;var s=$t;t:switch(Ge){case 1:Ge=0,$t=null,Hl(e,t,s,1);break;case 2:case 9:if(Hf(s)){Ge=0,$t=null,Ch(t);break}t=function(){Ge!==2&&Ge!==9||We!==e||(Ge=7),Ta(e)},s.then(t,t);break e;case 3:Ge=7;break e;case 4:Ge=5;break e;case 7:Hf(s)?(Ge=0,$t=null,Ch(t)):(Ge=0,$t=null,Hl(e,t,s,7));break;case 5:var h=null;switch(Ne.tag){case 26:h=Ne.memoizedState;case 5:case 27:var y=Ne;if(h?hm(h):y.stateNode.complete){Ge=0,$t=null;var S=y.sibling;if(S!==null)Ne=S;else{var A=y.return;A!==null?(Ne=A,cu(A)):Ne=null}break t}}Ge=0,$t=null,Hl(e,t,s,5);break;case 6:Ge=0,$t=null,Hl(e,t,s,6);break;case 8:Ds(),rt=6;break e;default:throw Error(o(462))}}Iy();break}catch(q){Rh(e,q)}while(!0);return Ha=Gn=null,N.H=n,N.A=r,Ve=a,Ne!==null?0:(We=null,je=0,zr(),rt)}function Iy(){for(;Ne!==null&&!Zu();)wh(Ne)}function wh(e){var t=Wd(e.alternate,e,Za);e.memoizedProps=e.pendingProps,t===null?cu(e):Ne=t}function Ch(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Xd(a,t,t.pendingProps,t.type,void 0,je);break;case 11:t=Xd(a,t,t.pendingProps,t.type.render,t.ref,je);break;case 5:Qo(t);default:Id(a,t),t=Ne=_f(t,Za),t=Wd(a,t,Za)}e.memoizedProps=e.pendingProps,t===null?cu(e):Ne=t}function Hl(e,t,a,n){Ha=Gn=null,Qo(t),_l=null,pi=0;var r=t.return;try{if(ky(e,r,t,a,je)){rt=1,Wr(e,aa(a,e.current)),Ne=null;return}}catch(s){if(r!==null)throw Ne=r,s;rt=1,Wr(e,aa(a,e.current)),Ne=null;return}t.flags&32768?(He||n===1?e=!0:Nl||(je&536870912)!==0?e=!1:(gn=e=!0,(n===2||n===9||n===3||n===6)&&(n=Qt.current,n!==null&&n.tag===13&&(n.flags|=16384))),zh(t,e)):cu(t)}function cu(e){var t=e;do{if((t.flags&32768)!==0){zh(t,gn);return}e=t.return;var a=Ky(t.alternate,t,Za);if(a!==null){Ne=a;return}if(t=t.sibling,t!==null){Ne=t;return}Ne=t=e}while(t!==null);rt===0&&(rt=5)}function zh(e,t){do{var a=Xy(e.alternate,e);if(a!==null){a.flags&=32767,Ne=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Ne=e;return}Ne=e=a}while(e!==null);rt=6,Ne=null}function Dh(e,t,a,n,r,s,h,y,S){e.cancelPendingCommit=null;do fu();while(bt!==0);if((Ve&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(s=t.lanes|t.childLanes,s|=bo,gr(e,a,s,h,y,S),e===We&&(Ne=We=null,je=0),jl=t,bn=e,$a=a,ws=s,Cs=r,bh=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,nv(en,function(){return jh(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=N.T,N.T=null,r=K.p,K.p=2,h=Ve,Ve|=4;try{Qy(e,t,a)}finally{Ve=h,K.p=r,N.T=n}}bt=1,Mh(),Ah(),Nh()}}function Mh(){if(bt===1){bt=0;var e=bn,t=jl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=N.T,N.T=null;var n=K.p;K.p=2;var r=Ve;Ve|=4;try{fh(t,e);var s=Gs,h=yf(e.containerInfo),y=s.focusedElem,S=s.selectionRange;if(h!==y&&y&&y.ownerDocument&&gf(y.ownerDocument.documentElement,y)){if(S!==null&&mo(y)){var A=S.start,q=S.end;if(q===void 0&&(q=A),"selectionStart"in y)y.selectionStart=A,y.selectionEnd=Math.min(q,y.value.length);else{var G=y.ownerDocument||document,L=G&&G.defaultView||window;if(L.getSelection){var H=L.getSelection(),oe=y.textContent.length,be=Math.min(S.start,oe),Ze=S.end===void 0?be:Math.min(S.end,oe);!H.extend&&be>Ze&&(h=Ze,Ze=be,be=h);var w=pf(y,be),T=pf(y,Ze);if(w&&T&&(H.rangeCount!==1||H.anchorNode!==w.node||H.anchorOffset!==w.offset||H.focusNode!==T.node||H.focusOffset!==T.offset)){var M=G.createRange();M.setStart(w.node,w.offset),H.removeAllRanges(),be>Ze?(H.addRange(M),H.extend(T.node,T.offset)):(M.setEnd(T.node,T.offset),H.addRange(M))}}}}for(G=[],H=y;H=H.parentNode;)H.nodeType===1&&G.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<G.length;y++){var k=G[y];k.element.scrollLeft=k.left,k.element.scrollTop=k.top}}Ru=!!Vs,Gs=Vs=null}finally{Ve=r,K.p=n,N.T=a}}e.current=t,bt=2}}function Ah(){if(bt===2){bt=0;var e=bn,t=jl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=N.T,N.T=null;var n=K.p;K.p=2;var r=Ve;Ve|=4;try{rh(e,t.alternate,t)}finally{Ve=r,K.p=n,N.T=a}}bt=3}}function Nh(){if(bt===4||bt===3){bt=0,$u();var e=bn,t=jl,a=$a,n=bh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?bt=5:(bt=0,jl=bn=null,Lh(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(vn=null),U(a),t=t.stateNode,Lt&&typeof Lt.onCommitFiberRoot=="function")try{Lt.onCommitFiberRoot(Ma,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=N.T,r=K.p,K.p=2,N.T=null;try{for(var s=e.onRecoverableError,h=0;h<n.length;h++){var y=n[h];s(y.value,{componentStack:y.stack})}}finally{N.T=t,K.p=r}}($a&3)!==0&&fu(),Ta(e),r=e.pendingLanes,(a&261930)!==0&&(r&42)!==0?e===zs?Ai++:(Ai=0,zs=e):Ai=0,Ni(0)}}function Lh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,hi(t)))}function fu(){return Mh(),Ah(),Nh(),jh()}function jh(){if(bt!==5)return!1;var e=bn,t=ws;ws=0;var a=U($a),n=N.T,r=K.p;try{K.p=32>a?32:a,N.T=null,a=Cs,Cs=null;var s=bn,h=$a;if(bt=0,jl=bn=null,$a=0,(Ve&6)!==0)throw Error(o(331));var y=Ve;if(Ve|=4,gh(s.current),hh(s,s.current,h,a),Ve=y,Ni(0,!1),Lt&&typeof Lt.onPostCommitFiberRoot=="function")try{Lt.onPostCommitFiberRoot(Ma,s)}catch{}return!0}finally{K.p=r,N.T=n,Lh(e,t)}}function Uh(e,t,a){t=aa(a,t),t=us(e.stateNode,t,2),e=dn(e,t,2),e!==null&&(ba(e,2),Ta(e))}function Ke(e,t,a){if(e.tag===3)Uh(e,e,a);else for(;t!==null;){if(t.tag===3){Uh(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(vn===null||!vn.has(n))){e=aa(a,e),a=Hd(2),n=dn(t,a,2),n!==null&&(Bd(a,n,t,e),ba(n,2),Ta(n));break}}t=t.return}}function As(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new Jy;var r=new Set;n.set(t,r)}else r=n.get(t),r===void 0&&(r=new Set,n.set(t,r));r.has(a)||(Os=!0,r.add(a),e=ev.bind(null,e,t,a),t.then(e,e))}function ev(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,We===e&&(je&a)===a&&(rt===4||rt===3&&(je&62914560)===je&&300>Nt()-iu?(Ve&2)===0&&Ul(e,0):Ts|=a,Ll===je&&(Ll=0)),Ta(e)}function Hh(e,t){t===0&&(t=ti()),e=Yn(e,t),e!==null&&(ba(e,t),Ta(e))}function tv(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Hh(e,a)}function av(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,r=e.memoizedState;r!==null&&(a=r.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(o(314))}n!==null&&n.delete(t),Hh(e,a)}function nv(e,t){return il(e,t)}var du=null,Bl=null,Ns=!1,hu=!1,Ls=!1,xn=0;function Ta(e){e!==Bl&&e.next===null&&(Bl===null?du=Bl=e:Bl=Bl.next=e),hu=!0,Ns||(Ns=!0,iv())}function Ni(e,t){if(!Ls&&hu){Ls=!0;do for(var a=!1,n=du;n!==null;){if(e!==0){var r=n.pendingLanes;if(r===0)var s=0;else{var h=n.suspendedLanes,y=n.pingedLanes;s=(1<<31-Ct(42|e)+1)-1,s&=r&~(h&~y),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(a=!0,kh(n,s))}else s=je,s=rl(n,n===We?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(s&3)===0||tn(n,s)||(a=!0,kh(n,s));n=n.next}while(a);Ls=!1}}function lv(){Bh()}function Bh(){hu=Ns=!1;var e=0;xn!==0&&pv()&&(e=xn);for(var t=Nt(),a=null,n=du;n!==null;){var r=n.next,s=qh(n,t);s===0?(n.next=null,a===null?du=r:a.next=r,r===null&&(Bl=a)):(a=n,(e!==0||(s&3)!==0)&&(hu=!0)),n=r}bt!==0&&bt!==5||Ni(e),xn!==0&&(xn=0)}function qh(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,r=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var h=31-Ct(s),y=1<<h,S=r[h];S===-1?((y&a)===0||(y&n)!==0)&&(r[h]=Wu(y,t)):S<=t&&(e.expiredLanes|=y),s&=~y}if(t=We,a=je,a=rl(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,a===0||e===t&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&Il(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||tn(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&Il(n),U(a)){case 2:case 8:a=ei;break;case 32:a=en;break;case 268435456:a=It;break;default:a=en}return n=Yh.bind(null,e),a=il(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&Il(n),e.callbackPriority=2,e.callbackNode=null,2}function Yh(e,t){if(bt!==0&&bt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(fu()&&e.callbackNode!==a)return null;var n=je;return n=rl(e,e===We?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(xh(e,n,t),qh(e,Nt()),e.callbackNode!=null&&e.callbackNode===a?Yh.bind(null,e):null)}function kh(e,t){if(fu())return null;xh(e,t,!0)}function iv(){yv(function(){(Ve&6)!==0?il(Ia,lv):Bh()})}function js(){if(xn===0){var e=Rl;e===0&&(e=Nn,Nn<<=1,(Nn&261888)===0&&(Nn=256)),xn=e}return xn}function Vh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:xr(""+e)}function Gh(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 rv(e,t,a,n,r){if(t==="submit"&&a&&a.stateNode===r){var s=Vh((r[te]||null).action),h=n.submitter;h&&(t=(t=h[te]||null)?Vh(t.formAction):h.getAttribute("formAction"),t!==null&&(s=t,h=null));var y=new Tr("action","action",null,n,r);e.push({event:y,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(xn!==0){var S=h?Gh(r,h):new FormData(r);ts(a,{pending:!0,data:S,method:r.method,action:s},null,S)}}else typeof s=="function"&&(y.preventDefault(),S=h?Gh(r,h):new FormData(r),ts(a,{pending:!0,data:S,method:r.method,action:s},s,S))},currentTarget:r}]})}}for(var Us=0;Us<vo.length;Us++){var Hs=vo[Us],uv=Hs.toLowerCase(),ov=Hs[0].toUpperCase()+Hs.slice(1);ma(uv,"on"+ov)}ma(Sf,"onAnimationEnd"),ma(xf,"onAnimationIteration"),ma(Ef,"onAnimationStart"),ma("dblclick","onDoubleClick"),ma("focusin","onFocus"),ma("focusout","onBlur"),ma(Oy,"onTransitionRun"),ma(Ty,"onTransitionStart"),ma(_y,"onTransitionCancel"),ma(Rf,"onTransitionEnd"),Sa("onMouseEnter",["mouseout","mouseover"]),Sa("onMouseLeave",["mouseout","mouseover"]),Sa("onPointerEnter",["pointerout","pointerover"]),Sa("onPointerLeave",["pointerout","pointerover"]),xt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),xt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),xt("onBeforeInput",["compositionend","keypress","textInput","paste"]),xt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),xt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),xt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Li="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(" "),sv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Li));function Kh(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a],r=n.event;n=n.listeners;e:{var s=void 0;if(t)for(var h=n.length-1;0<=h;h--){var y=n[h],S=y.instance,A=y.currentTarget;if(y=y.listener,S!==s&&r.isPropagationStopped())break e;s=y,r.currentTarget=A;try{s(r)}catch(q){Cr(q)}r.currentTarget=null,s=S}else for(h=0;h<n.length;h++){if(y=n[h],S=y.instance,A=y.currentTarget,y=y.listener,S!==s&&r.isPropagationStopped())break e;s=y,r.currentTarget=A;try{s(r)}catch(q){Cr(q)}r.currentTarget=null,s=S}}}}function Le(e,t){var a=t[he];a===void 0&&(a=t[he]=new Set);var n=e+"__bubble";a.has(n)||(Xh(t,e,2,!1),a.add(n))}function Bs(e,t,a){var n=0;t&&(n|=4),Xh(a,e,n,t)}var mu="_reactListening"+Math.random().toString(36).slice(2);function qs(e){if(!e[mu]){e[mu]=!0,nn.forEach(function(a){a!=="selectionchange"&&(sv.has(a)||Bs(a,!1,e),Bs(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[mu]||(t[mu]=!0,Bs("selectionchange",!1,t))}}function Xh(e,t,a,n){switch(Sm(t)){case 2:var r=Hv;break;case 8:r=Bv;break;default:r=ec}a=r.bind(null,t,a,e),r=void 0,!lo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),n?r!==void 0?e.addEventListener(t,a,{capture:!0,passive:r}):e.addEventListener(t,a,!0):r!==void 0?e.addEventListener(t,a,{passive:r}):e.addEventListener(t,a,!1)}function Ys(e,t,a,n,r){var s=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var h=n.tag;if(h===3||h===4){var y=n.stateNode.containerInfo;if(y===r)break;if(h===4)for(h=n.return;h!==null;){var S=h.tag;if((S===3||S===4)&&h.stateNode.containerInfo===r)return;h=h.return}for(;y!==null;){if(h=Ie(y),h===null)return;if(S=h.tag,S===5||S===6||S===26||S===27){n=s=h;continue e}y=y.parentNode}}n=n.return}Jc(function(){var A=s,q=ao(a),G=[];e:{var L=Of.get(e);if(L!==void 0){var H=Tr,oe=e;switch(e){case"keypress":if(Rr(a)===0)break e;case"keydown":case"keyup":H=ay;break;case"focusin":oe="focus",H=oo;break;case"focusout":oe="blur",H=oo;break;case"beforeblur":case"afterblur":H=oo;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":H=Pc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=Kg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=iy;break;case Sf:case xf:case Ef:H=Zg;break;case Rf:H=uy;break;case"scroll":case"scrollend":H=Vg;break;case"wheel":H=sy;break;case"copy":case"cut":case"paste":H=Jg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=ef;break;case"toggle":case"beforetoggle":H=fy}var be=(t&4)!==0,Ze=!be&&(e==="scroll"||e==="scrollend"),w=be?L!==null?L+"Capture":null:L;be=[];for(var T=A,M;T!==null;){var k=T;if(M=k.stateNode,k=k.tag,k!==5&&k!==26&&k!==27||M===null||w===null||(k=ai(T,w),k!=null&&be.push(ji(T,k,M))),Ze)break;T=T.return}0<be.length&&(L=new H(L,oe,null,a,q),G.push({event:L,listeners:be}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",L&&a!==to&&(oe=a.relatedTarget||a.fromElement)&&(Ie(oe)||oe[ne]))break e;if((H||L)&&(L=q.window===q?q:(L=q.ownerDocument)?L.defaultView||L.parentWindow:window,H?(oe=a.relatedTarget||a.toElement,H=A,oe=oe?Ie(oe):null,oe!==null&&(Ze=f(oe),be=oe.tag,oe!==Ze||be!==5&&be!==27&&be!==6)&&(oe=null)):(H=null,oe=A),H!==oe)){if(be=Pc,k="onMouseLeave",w="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(be=ef,k="onPointerLeave",w="onPointerEnter",T="pointer"),Ze=H==null?L:Be(H),M=oe==null?L:Be(oe),L=new be(k,T+"leave",H,a,q),L.target=Ze,L.relatedTarget=M,k=null,Ie(q)===A&&(be=new be(w,T+"enter",oe,a,q),be.target=M,be.relatedTarget=Ze,k=be),Ze=k,H&&oe)t:{for(be=cv,w=H,T=oe,M=0,k=w;k;k=be(k))M++;k=0;for(var me=T;me;me=be(me))k++;for(;0<M-k;)w=be(w),M--;for(;0<k-M;)T=be(T),k--;for(;M--;){if(w===T||T!==null&&w===T.alternate){be=w;break t}w=be(w),T=be(T)}be=null}else be=null;H!==null&&Qh(G,L,H,be,!1),oe!==null&&Ze!==null&&Qh(G,Ze,oe,be,!0)}}e:{if(L=A?Be(A):window,H=L.nodeName&&L.nodeName.toLowerCase(),H==="select"||H==="input"&&L.type==="file")var Ye=sf;else if(uf(L))if(cf)Ye=xy;else{Ye=by;var se=vy}else H=L.nodeName,!H||H.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?A&&eo(A.elementType)&&(Ye=sf):Ye=Sy;if(Ye&&(Ye=Ye(e,A))){of(G,Ye,a,q);break e}se&&se(e,L,A),e==="focusout"&&A&&L.type==="number"&&A.memoizedProps.value!=null&&Iu(L,"number",L.value)}switch(se=A?Be(A):window,e){case"focusin":(uf(se)||se.contentEditable==="true")&&(pl=se,po=A,ci=null);break;case"focusout":ci=po=pl=null;break;case"mousedown":go=!0;break;case"contextmenu":case"mouseup":case"dragend":go=!1,vf(G,a,q);break;case"selectionchange":if(Ry)break;case"keydown":case"keyup":vf(G,a,q)}var we;if(co)e:{switch(e){case"compositionstart":var Ue="onCompositionStart";break e;case"compositionend":Ue="onCompositionEnd";break e;case"compositionupdate":Ue="onCompositionUpdate";break e}Ue=void 0}else ml?lf(e,a)&&(Ue="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Ue="onCompositionStart");Ue&&(tf&&a.locale!=="ko"&&(ml||Ue!=="onCompositionStart"?Ue==="onCompositionEnd"&&ml&&(we=Fc()):(ln=q,io="value"in ln?ln.value:ln.textContent,ml=!0)),se=pu(A,Ue),0<se.length&&(Ue=new Ic(Ue,e,null,a,q),G.push({event:Ue,listeners:se}),we?Ue.data=we:(we=rf(a),we!==null&&(Ue.data=we)))),(we=hy?my(e,a):py(e,a))&&(Ue=pu(A,"onBeforeInput"),0<Ue.length&&(se=new Ic("onBeforeInput","beforeinput",null,a,q),G.push({event:se,listeners:Ue}),se.data=we)),rv(G,e,A,a,q)}Kh(G,t)})}function ji(e,t,a){return{instance:e,listener:t,currentTarget:a}}function pu(e,t){for(var a=t+"Capture",n=[];e!==null;){var r=e,s=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||s===null||(r=ai(e,a),r!=null&&n.unshift(ji(e,r,s)),r=ai(e,t),r!=null&&n.push(ji(e,r,s))),e.tag===3)return n;e=e.return}return[]}function cv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Qh(e,t,a,n,r){for(var s=t._reactName,h=[];a!==null&&a!==n;){var y=a,S=y.alternate,A=y.stateNode;if(y=y.tag,S!==null&&S===n)break;y!==5&&y!==26&&y!==27||A===null||(S=A,r?(A=ai(a,s),A!=null&&h.unshift(ji(a,A,S))):r||(A=ai(a,s),A!=null&&h.push(ji(a,A,S)))),a=a.return}h.length!==0&&e.push({event:t,listeners:h})}var fv=/\r\n?/g,dv=/\u0000|\uFFFD/g;function Zh(e){return(typeof e=="string"?e:""+e).replace(fv,`
9
+ `).replace(dv,"")}function $h(e,t){return t=Zh(t),Zh(e)===t}function Qe(e,t,a,n,r,s){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||fl(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&fl(e,""+n);break;case"className":ut(e,"class",n);break;case"tabIndex":ut(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":ut(e,a,n);break;case"style":Zc(e,n,s);break;case"data":if(t!=="object"){ut(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=xr(""+n),e.setAttribute(a,n);break;case"action":case"formAction":if(typeof n=="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 s=="function"&&(a==="formAction"?(t!=="input"&&Qe(e,t,"name",r.name,r,null),Qe(e,t,"formEncType",r.formEncType,r,null),Qe(e,t,"formMethod",r.formMethod,r,null),Qe(e,t,"formTarget",r.formTarget,r,null)):(Qe(e,t,"encType",r.encType,r,null),Qe(e,t,"method",r.method,r,null),Qe(e,t,"target",r.target,r,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=xr(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=Na);break;case"onScroll":n!=null&&Le("scroll",e);break;case"onScrollEnd":n!=null&&Le("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(o(61));if(a=n.__html,a!=null){if(r.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}a=xr(""+n),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":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""+n):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":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":n===!0?e.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,n):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(a,n):e.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(a):e.setAttribute(a,n);break;case"popover":Le("beforetoggle",e),Le("toggle",e),Ae(e,"popover",n);break;case"xlinkActuate":zt(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":zt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":zt(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":zt(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":zt(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":zt(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":zt(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":zt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":zt(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Ae(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Yg.get(a)||a,Ae(e,a,n))}}function ks(e,t,a,n,r,s){switch(a){case"style":Zc(e,n,s);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(o(61));if(a=n.__html,a!=null){if(r.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"children":typeof n=="string"?fl(e,n):(typeof n=="number"||typeof n=="bigint")&&fl(e,""+n);break;case"onScroll":n!=null&&Le("scroll",e);break;case"onScrollEnd":n!=null&&Le("scrollend",e);break;case"onClick":n!=null&&(e.onclick=Na);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ha.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(r=a.endsWith("Capture"),t=a.slice(2,r?a.length-7:void 0),s=e[te]||null,s=s!=null?s[a]:null,typeof s=="function"&&e.removeEventListener(t,s,r),typeof n=="function")){typeof s!="function"&&s!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,r);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):Ae(e,a,n)}}}function _t(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Le("error",e),Le("load",e);var n=!1,r=!1,s;for(s in a)if(a.hasOwnProperty(s)){var h=a[s];if(h!=null)switch(s){case"src":n=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Qe(e,t,s,h,a,null)}}r&&Qe(e,t,"srcSet",a.srcSet,a,null),n&&Qe(e,t,"src",a.src,a,null);return;case"input":Le("invalid",e);var y=s=h=r=null,S=null,A=null;for(n in a)if(a.hasOwnProperty(n)){var q=a[n];if(q!=null)switch(n){case"name":r=q;break;case"type":h=q;break;case"checked":S=q;break;case"defaultChecked":A=q;break;case"value":s=q;break;case"defaultValue":y=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(o(137,t));break;default:Qe(e,t,n,q,a,null)}}Gc(e,s,y,S,A,h,r,!1);return;case"select":Le("invalid",e),n=h=s=null;for(r in a)if(a.hasOwnProperty(r)&&(y=a[r],y!=null))switch(r){case"value":s=y;break;case"defaultValue":h=y;break;case"multiple":n=y;default:Qe(e,t,r,y,a,null)}t=s,a=h,e.multiple=!!n,t!=null?cl(e,!!n,t,!1):a!=null&&cl(e,!!n,a,!0);return;case"textarea":Le("invalid",e),s=r=n=null;for(h in a)if(a.hasOwnProperty(h)&&(y=a[h],y!=null))switch(h){case"value":n=y;break;case"defaultValue":r=y;break;case"children":s=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(o(91));break;default:Qe(e,t,h,y,a,null)}Xc(e,n,r,s);return;case"option":for(S in a)a.hasOwnProperty(S)&&(n=a[S],n!=null)&&(S==="selected"?e.selected=n&&typeof n!="function"&&typeof n!="symbol":Qe(e,t,S,n,a,null));return;case"dialog":Le("beforetoggle",e),Le("toggle",e),Le("cancel",e),Le("close",e);break;case"iframe":case"object":Le("load",e);break;case"video":case"audio":for(n=0;n<Li.length;n++)Le(Li[n],e);break;case"image":Le("error",e),Le("load",e);break;case"details":Le("toggle",e);break;case"embed":case"source":case"link":Le("error",e),Le("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(A in a)if(a.hasOwnProperty(A)&&(n=a[A],n!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Qe(e,t,A,n,a,null)}return;default:if(eo(t)){for(q in a)a.hasOwnProperty(q)&&(n=a[q],n!==void 0&&ks(e,t,q,n,a,void 0));return}}for(y in a)a.hasOwnProperty(y)&&(n=a[y],n!=null&&Qe(e,t,y,n,a,null))}function hv(e,t,a,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,s=null,h=null,y=null,S=null,A=null,q=null;for(H in a){var G=a[H];if(a.hasOwnProperty(H)&&G!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":S=G;default:n.hasOwnProperty(H)||Qe(e,t,H,null,n,G)}}for(var L in n){var H=n[L];if(G=a[L],n.hasOwnProperty(L)&&(H!=null||G!=null))switch(L){case"type":s=H;break;case"name":r=H;break;case"checked":A=H;break;case"defaultChecked":q=H;break;case"value":h=H;break;case"defaultValue":y=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(o(137,t));break;default:H!==G&&Qe(e,t,L,H,n,G)}}Pu(e,h,y,S,A,q,s,r);return;case"select":H=h=y=L=null;for(s in a)if(S=a[s],a.hasOwnProperty(s)&&S!=null)switch(s){case"value":break;case"multiple":H=S;default:n.hasOwnProperty(s)||Qe(e,t,s,null,n,S)}for(r in n)if(s=n[r],S=a[r],n.hasOwnProperty(r)&&(s!=null||S!=null))switch(r){case"value":L=s;break;case"defaultValue":y=s;break;case"multiple":h=s;default:s!==S&&Qe(e,t,r,s,n,S)}t=y,a=h,n=H,L!=null?cl(e,!!a,L,!1):!!n!=!!a&&(t!=null?cl(e,!!a,t,!0):cl(e,!!a,a?[]:"",!1));return;case"textarea":H=L=null;for(y in a)if(r=a[y],a.hasOwnProperty(y)&&r!=null&&!n.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Qe(e,t,y,null,n,r)}for(h in n)if(r=n[h],s=a[h],n.hasOwnProperty(h)&&(r!=null||s!=null))switch(h){case"value":L=r;break;case"defaultValue":H=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(o(91));break;default:r!==s&&Qe(e,t,h,r,n,s)}Kc(e,L,H);return;case"option":for(var oe in a)L=a[oe],a.hasOwnProperty(oe)&&L!=null&&!n.hasOwnProperty(oe)&&(oe==="selected"?e.selected=!1:Qe(e,t,oe,null,n,L));for(S in n)L=n[S],H=a[S],n.hasOwnProperty(S)&&L!==H&&(L!=null||H!=null)&&(S==="selected"?e.selected=L&&typeof L!="function"&&typeof L!="symbol":Qe(e,t,S,L,n,H));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 be in a)L=a[be],a.hasOwnProperty(be)&&L!=null&&!n.hasOwnProperty(be)&&Qe(e,t,be,null,n,L);for(A in n)if(L=n[A],H=a[A],n.hasOwnProperty(A)&&L!==H&&(L!=null||H!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(o(137,t));break;default:Qe(e,t,A,L,n,H)}return;default:if(eo(t)){for(var Ze in a)L=a[Ze],a.hasOwnProperty(Ze)&&L!==void 0&&!n.hasOwnProperty(Ze)&&ks(e,t,Ze,void 0,n,L);for(q in n)L=n[q],H=a[q],!n.hasOwnProperty(q)||L===H||L===void 0&&H===void 0||ks(e,t,q,L,n,H);return}}for(var w in a)L=a[w],a.hasOwnProperty(w)&&L!=null&&!n.hasOwnProperty(w)&&Qe(e,t,w,null,n,L);for(G in n)L=n[G],H=a[G],!n.hasOwnProperty(G)||L===H||L==null&&H==null||Qe(e,t,G,L,n,H)}function Jh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function mv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var r=a[n],s=r.transferSize,h=r.initiatorType,y=r.duration;if(s&&y&&Jh(h)){for(h=0,y=r.responseEnd,n+=1;n<a.length;n++){var S=a[n],A=S.startTime;if(A>y)break;var q=S.transferSize,G=S.initiatorType;q&&Jh(G)&&(S=S.responseEnd,h+=q*(S<y?1:(y-A)/(S-A)))}if(--n,t+=8*(s+h)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Vs=null,Gs=null;function gu(e){return e.nodeType===9?e:e.ownerDocument}function Fh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Wh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Ks(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 Xs=null;function pv(){var e=window.event;return e&&e.type==="popstate"?e===Xs?!1:(Xs=e,!0):(Xs=null,!1)}var Ph=typeof setTimeout=="function"?setTimeout:void 0,gv=typeof clearTimeout=="function"?clearTimeout:void 0,Ih=typeof Promise=="function"?Promise:void 0,yv=typeof queueMicrotask=="function"?queueMicrotask:typeof Ih<"u"?function(e){return Ih.resolve(null).then(e).catch(vv)}:Ph;function vv(e){setTimeout(function(){throw e})}function En(e){return e==="head"}function em(e,t){var a=t,n=0;do{var r=a.nextSibling;if(e.removeChild(a),r&&r.nodeType===8)if(a=r.data,a==="/$"||a==="/&"){if(n===0){e.removeChild(r),Vl(t);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")Ui(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Ui(a);for(var s=a.firstChild;s;){var h=s.nextSibling,y=s.nodeName;s[Me]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&s.rel.toLowerCase()==="stylesheet"||a.removeChild(s),s=h}}else a==="body"&&Ui(e.ownerDocument.body);a=r}while(a);Vl(t)}function tm(e,t){var a=e;e=0;do{var n=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),n&&n.nodeType===8)if(a=n.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=n}while(a)}function Qs(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":Qs(a),Fe(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function bv(e,t,a,n){for(;e.nodeType===1;){var r=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[Me])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=ua(e.nextSibling),e===null)break}return null}function Sv(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=ua(e.nextSibling),e===null))return null;return e}function am(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ua(e.nextSibling),e===null))return null;return e}function Zs(e){return e.data==="$?"||e.data==="$~"}function $s(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function xv(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var n=function(){t(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function ua(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Js=null;function nm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return ua(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function lm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function im(e,t,a){switch(t=gu(a),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Ui(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Fe(e)}var oa=new Map,rm=new Set;function yu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ja=K.d;K.d={f:Ev,r:Rv,D:Ov,C:Tv,L:_v,m:wv,X:zv,S:Cv,M:Dv};function Ev(){var e=Ja.f(),t=ou();return e||t}function Rv(e){var t=lt(e);t!==null&&t.tag===5&&t.type==="form"?Rd(t):Ja.r(e)}var ql=typeof document>"u"?null:document;function um(e,t,a){var n=ql;if(n&&typeof t=="string"&&t){var r=ea(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a=="string"&&(r+='[crossorigin="'+a+'"]'),rm.has(r)||(rm.add(r),e={rel:e,crossOrigin:a,href:t},n.querySelector(r)===null&&(t=n.createElement("link"),_t(t,"link",e),Pe(t),n.head.appendChild(t)))}}function Ov(e){Ja.D(e),um("dns-prefetch",e,null)}function Tv(e,t){Ja.C(e,t),um("preconnect",e,t)}function _v(e,t,a){Ja.L(e,t,a);var n=ql;if(n&&e&&t){var r='link[rel="preload"][as="'+ea(t)+'"]';t==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+ea(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+ea(a.imageSizes)+'"]')):r+='[href="'+ea(e)+'"]';var s=r;switch(t){case"style":s=Yl(e);break;case"script":s=kl(e)}oa.has(s)||(e=v({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),oa.set(s,e),n.querySelector(r)!==null||t==="style"&&n.querySelector(Hi(s))||t==="script"&&n.querySelector(Bi(s))||(t=n.createElement("link"),_t(t,"link",e),Pe(t),n.head.appendChild(t)))}}function wv(e,t){Ja.m(e,t);var a=ql;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+ea(n)+'"][href="'+ea(e)+'"]',s=r;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=kl(e)}if(!oa.has(s)&&(e=v({rel:"modulepreload",href:e},t),oa.set(s,e),a.querySelector(r)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Bi(s)))return}n=a.createElement("link"),_t(n,"link",e),Pe(n),a.head.appendChild(n)}}}function Cv(e,t,a){Ja.S(e,t,a);var n=ql;if(n&&e){var r=vt(n).hoistableStyles,s=Yl(e);t=t||"default";var h=r.get(s);if(!h){var y={loading:0,preload:null};if(h=n.querySelector(Hi(s)))y.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},a),(a=oa.get(s))&&Fs(e,a);var S=h=n.createElement("link");Pe(S),_t(S,"link",e),S._p=new Promise(function(A,q){S.onload=A,S.onerror=q}),S.addEventListener("load",function(){y.loading|=1}),S.addEventListener("error",function(){y.loading|=2}),y.loading|=4,vu(h,t,n)}h={type:"stylesheet",instance:h,count:1,state:y},r.set(s,h)}}}function zv(e,t){Ja.X(e,t);var a=ql;if(a&&e){var n=vt(a).hoistableScripts,r=kl(e),s=n.get(r);s||(s=a.querySelector(Bi(r)),s||(e=v({src:e,async:!0},t),(t=oa.get(r))&&Ws(e,t),s=a.createElement("script"),Pe(s),_t(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},n.set(r,s))}}function Dv(e,t){Ja.M(e,t);var a=ql;if(a&&e){var n=vt(a).hoistableScripts,r=kl(e),s=n.get(r);s||(s=a.querySelector(Bi(r)),s||(e=v({src:e,async:!0,type:"module"},t),(t=oa.get(r))&&Ws(e,t),s=a.createElement("script"),Pe(s),_t(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},n.set(r,s))}}function om(e,t,a,n){var r=(r=Ee.current)?yu(r):null;if(!r)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Yl(a.href),a=vt(r).hoistableStyles,n=a.get(t),n||(n={type:"style",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Yl(a.href);var s=vt(r).hoistableStyles,h=s.get(e);if(h||(r=r.ownerDocument||r,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,h),(s=r.querySelector(Hi(e)))&&!s._p&&(h.instance=s,h.state.loading=5),oa.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},oa.set(e,a),s||Mv(r,e,a,h.state))),t&&n===null)throw Error(o(528,""));return h}if(t&&n!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=kl(a),a=vt(r).hoistableScripts,n=a.get(t),n||(n={type:"script",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Yl(e){return'href="'+ea(e)+'"'}function Hi(e){return'link[rel="stylesheet"]['+e+"]"}function sm(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function Mv(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),_t(t,"link",a),Pe(t),e.head.appendChild(t))}function kl(e){return'[src="'+ea(e)+'"]'}function Bi(e){return"script[async]"+e}function cm(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+ea(a.href)+'"]');if(n)return t.instance=n,Pe(n),n;var r=v({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),Pe(n),_t(n,"style",r),vu(n,a.precedence,e),t.instance=n;case"stylesheet":r=Yl(a.href);var s=e.querySelector(Hi(r));if(s)return t.state.loading|=4,t.instance=s,Pe(s),s;n=sm(a),(r=oa.get(r))&&Fs(n,r),s=(e.ownerDocument||e).createElement("link"),Pe(s);var h=s;return h._p=new Promise(function(y,S){h.onload=y,h.onerror=S}),_t(s,"link",n),t.state.loading|=4,vu(s,a.precedence,e),t.instance=s;case"script":return s=kl(a.src),(r=e.querySelector(Bi(s)))?(t.instance=r,Pe(r),r):(n=a,(r=oa.get(s))&&(n=v({},a),Ws(n,r)),e=e.ownerDocument||e,r=e.createElement("script"),Pe(r),_t(r,"link",n),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,vu(n,a.precedence,e));return t.instance}function vu(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=n.length?n[n.length-1]:null,s=r,h=0;h<n.length;h++){var y=n[h];if(y.dataset.precedence===t)s=y;else if(s!==r)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Fs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ws(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var bu=null;function fm(e,t,a){if(bu===null){var n=new Map,r=bu=new Map;r.set(a,n)}else r=bu,n=r.get(a),n||(n=new Map,r.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),r=0;r<a.length;r++){var s=a[r];if(!(s[Me]||s[F]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var h=s.getAttribute(t)||"";h=e+h;var y=n.get(h);y?y.push(s):n.set(h,[s])}}return n}function dm(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Av(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;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!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 hm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Nv(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var r=Yl(n.href),s=t.querySelector(Hi(r));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Su.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=s,Pe(s);return}s=t.ownerDocument||t,n=sm(n),(r=oa.get(r))&&Fs(n,r),s=s.createElement("link"),Pe(s);var h=s;h._p=new Promise(function(y,S){h.onload=y,h.onerror=S}),_t(s,"link",n),a.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Su.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Ps=0;function Lv(e,t){return e.stylesheets&&e.count===0&&Eu(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&Eu(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&Ps===0&&(Ps=62500*mv());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Eu(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>Ps?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(r)}}:null}function Su(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Eu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var xu=null;function Eu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,xu=new Map,t.forEach(jv,e),xu=null,Su.call(e))}function jv(e,t){if(!(t.state.loading&4)){var a=xu.get(e);if(a)var n=a.get(null);else{a=new Map,xu.set(e,a);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<r.length;s++){var h=r[s];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(a.set(h.dataset.precedence,h),n=h)}n&&a.set(null,n)}r=t.instance,h=r.getAttribute("data-precedence"),s=a.get(h)||n,s===n&&a.set(null,r),a.set(h,r),this.count++,n=Su.bind(this),r.addEventListener("load",n),r.addEventListener("error",n),s?s.parentNode.insertBefore(r,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var qi={$$typeof:W,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function Uv(e,t,a,n,r,s,h,y,S){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=an(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=an(0),this.hiddenUpdates=an(null),this.identifierPrefix=n,this.onUncaughtError=r,this.onCaughtError=s,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function mm(e,t,a,n,r,s,h,y,S,A,q,G){return e=new Uv(e,t,a,h,S,A,q,G,y),t=1,s===!0&&(t|=24),s=Xt(3,null,null,t),e.current=s,s.stateNode=e,t=Mo(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:n,isDehydrated:a,cache:t},jo(s),e}function pm(e){return e?(e=vl,e):vl}function gm(e,t,a,n,r,s){r=pm(r),n.context===null?n.context=r:n.pendingContext=r,n=fn(t),n.payload={element:a},s=s===void 0?null:s,s!==null&&(n.callback=s),a=dn(e,n,t),a!==null&&(Gt(a,e,t),yi(a,e,t))}function ym(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Is(e,t){ym(e,t),(e=e.alternate)&&ym(e,t)}function vm(e){if(e.tag===13||e.tag===31){var t=Yn(e,67108864);t!==null&&Gt(t,e,67108864),Is(e,67108864)}}function bm(e){if(e.tag===13||e.tag===31){var t=Ft();t=_(t);var a=Yn(e,t);a!==null&&Gt(a,e,t),Is(e,t)}}var Ru=!0;function Hv(e,t,a,n){var r=N.T;N.T=null;var s=K.p;try{K.p=2,ec(e,t,a,n)}finally{K.p=s,N.T=r}}function Bv(e,t,a,n){var r=N.T;N.T=null;var s=K.p;try{K.p=8,ec(e,t,a,n)}finally{K.p=s,N.T=r}}function ec(e,t,a,n){if(Ru){var r=tc(n);if(r===null)Ys(e,t,n,Ou,a),xm(e,n);else if(Yv(r,e,t,a,n))n.stopPropagation();else if(xm(e,n),t&4&&-1<qv.indexOf(e)){for(;r!==null;){var s=lt(r);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var h=da(s.pendingLanes);if(h!==0){var y=s;for(y.pendingLanes|=2,y.entangledLanes|=2;h;){var S=1<<31-Ct(h);y.entanglements[1]|=S,h&=~S}Ta(s),(Ve&6)===0&&(ru=Nt()+500,Ni(0))}}break;case 31:case 13:y=Yn(s,2),y!==null&&Gt(y,s,2),ou(),Is(s,2)}if(s=tc(n),s===null&&Ys(e,t,n,Ou,a),s===r)break;r=s}r!==null&&n.stopPropagation()}else Ys(e,t,n,null,a)}}function tc(e){return e=ao(e),ac(e)}var Ou=null;function ac(e){if(Ou=null,e=Ie(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(t),e!==null)return e;e=null}else if(a===31){if(e=m(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ou=e,null}function Sm(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(Da()){case Ia:return 2;case ei:return 8;case en:case fa:return 32;case It:return 268435456;default:return 32}default:return 32}}var nc=!1,Rn=null,On=null,Tn=null,Yi=new Map,ki=new Map,_n=[],qv="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 xm(e,t){switch(e){case"focusin":case"focusout":Rn=null;break;case"dragenter":case"dragleave":On=null;break;case"mouseover":case"mouseout":Tn=null;break;case"pointerover":case"pointerout":Yi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ki.delete(t.pointerId)}}function Vi(e,t,a,n,r,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:s,targetContainers:[r]},t!==null&&(t=lt(t),t!==null&&vm(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function Yv(e,t,a,n,r){switch(t){case"focusin":return Rn=Vi(Rn,e,t,a,n,r),!0;case"dragenter":return On=Vi(On,e,t,a,n,r),!0;case"mouseover":return Tn=Vi(Tn,e,t,a,n,r),!0;case"pointerover":var s=r.pointerId;return Yi.set(s,Vi(Yi.get(s)||null,e,t,a,n,r)),!0;case"gotpointercapture":return s=r.pointerId,ki.set(s,Vi(ki.get(s)||null,e,t,a,n,r)),!0}return!1}function Em(e){var t=Ie(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,Z(e.priority,function(){bm(a)});return}}else if(t===31){if(t=m(a),t!==null){e.blockedOn=t,Z(e.priority,function(){bm(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Tu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=tc(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);to=n,a.target.dispatchEvent(n),to=null}else return t=lt(a),t!==null&&vm(t),e.blockedOn=a,!1;t.shift()}return!0}function Rm(e,t,a){Tu(e)&&a.delete(t)}function kv(){nc=!1,Rn!==null&&Tu(Rn)&&(Rn=null),On!==null&&Tu(On)&&(On=null),Tn!==null&&Tu(Tn)&&(Tn=null),Yi.forEach(Rm),ki.forEach(Rm)}function _u(e,t){e.blockedOn===t&&(e.blockedOn=null,nc||(nc=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,kv)))}var wu=null;function Om(e){wu!==e&&(wu=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){wu===e&&(wu=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],r=e[t+2];if(typeof n!="function"){if(ac(n||a)===null)continue;break}var s=lt(a);s!==null&&(e.splice(t,3),t-=3,ts(s,{pending:!0,data:r,method:a.method,action:n},n,r))}}))}function Vl(e){function t(S){return _u(S,e)}Rn!==null&&_u(Rn,e),On!==null&&_u(On,e),Tn!==null&&_u(Tn,e),Yi.forEach(t),ki.forEach(t);for(var a=0;a<_n.length;a++){var n=_n[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<_n.length&&(a=_n[0],a.blockedOn===null);)Em(a),a.blockedOn===null&&_n.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var r=a[n],s=a[n+1],h=r[te]||null;if(typeof s=="function")h||Om(a);else if(h){var y=null;if(s&&s.hasAttribute("formAction")){if(r=s,h=s[te]||null)y=h.formAction;else if(ac(r)!==null)continue}else y=h.action;typeof y=="function"?a[n+1]=y:(a.splice(n,3),n-=3),Om(a)}}}function Tm(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(h){return r=h})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function lc(e){this._internalRoot=e}Cu.prototype.render=lc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,n=Ft();gm(a,n,e,t,null,null)},Cu.prototype.unmount=lc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;gm(e.current,2,null,e,null,null),ou(),t[ne]=null}};function Cu(e){this._internalRoot=e}Cu.prototype.unstable_scheduleHydration=function(e){if(e){var t=X();e={blockedOn:null,target:e,priority:t};for(var a=0;a<_n.length&&t!==0&&t<_n[a].priority;a++);_n.splice(a,0,e),a===0&&Em(e)}};var _m=i.version;if(_m!=="19.2.4")throw Error(o(527,_m,"19.2.4"));K.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=p(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var Vv={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var zu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zu.isDisabled&&zu.supportsFiber)try{Ma=zu.inject(Vv),Lt=zu}catch{}}return Xi.createRoot=function(e,t){if(!c(e))throw Error(o(299));var a=!1,n="",r=Nd,s=Ld,h=jd;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=mm(e,1,!1,null,null,a,n,null,r,s,h,Tm),e[ne]=t.current,qs(e),new lc(t)},Xi.hydrateRoot=function(e,t,a){if(!c(e))throw Error(o(299));var n=!1,r="",s=Nd,h=Ld,y=jd,S=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(r=a.identifierPrefix),a.onUncaughtError!==void 0&&(s=a.onUncaughtError),a.onCaughtError!==void 0&&(h=a.onCaughtError),a.onRecoverableError!==void 0&&(y=a.onRecoverableError),a.formState!==void 0&&(S=a.formState)),t=mm(e,1,!0,t,a??null,n,r,S,s,h,y,Tm),t.context=pm(null),a=t.current,n=Ft(),n=_(n),r=fn(n),r.callback=null,dn(a,r,n),a=n,t.current.lanes=a,ba(t,a),Ta(t),e[ne]=t.current,qs(e),new Cu(t)},Xi.version="19.2.4",Xi}var np;function rb(){if(np)return dc.exports;np=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),dc.exports=ib(),dc.exports}var ub=rb();var eg=l=>{throw TypeError(l)},ob=(l,i,u)=>i.has(l)||eg("Cannot "+u),gc=(l,i,u)=>(ob(l,i,"read from private field"),u?u.call(l):i.get(l)),sb=(l,i,u)=>i.has(l)?eg("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(l):i.set(l,u),lp="popstate";function ip(l){return typeof l=="object"&&l!=null&&"pathname"in l&&"search"in l&&"hash"in l&&"state"in l&&"key"in l}function cb(l={}){function i(o,c){let f=c.state?.masked,{pathname:d,search:m,hash:g}=f||o.location;return ar("",{pathname:d,search:m,hash:g},c.state&&c.state.usr||null,c.state&&c.state.key||"default",f?{pathname:o.location.pathname,search:o.location.search,hash:o.location.hash}:void 0)}function u(o,c){return typeof c=="string"?c:wa(c)}return db(i,u,null,l)}function Ce(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}function ct(l,i){if(!l){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function fb(){return Math.random().toString(36).substring(2,10)}function rp(l,i){return{usr:l.state,key:l.key,idx:i,masked:l.unstable_mask?{pathname:l.pathname,search:l.search,hash:l.hash}:void 0}}function ar(l,i,u=null,o,c){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof i=="string"?Pa(i):i,state:u,key:i&&i.key||o||fb(),unstable_mask:c}}function wa({pathname:l="/",search:i="",hash:u=""}){return i&&i!=="?"&&(l+=i.charAt(0)==="?"?i:"?"+i),u&&u!=="#"&&(l+=u.charAt(0)==="#"?u:"#"+u),l}function Pa(l){let i={};if(l){let u=l.indexOf("#");u>=0&&(i.hash=l.substring(u),l=l.substring(0,u));let o=l.indexOf("?");o>=0&&(i.search=l.substring(o),l=l.substring(0,o)),l&&(i.pathname=l)}return i}function db(l,i,u,o={}){let{window:c=document.defaultView,v5Compat:f=!1}=o,d=c.history,m="POP",g=null,p=b();p==null&&(p=0,d.replaceState({...d.state,idx:p},""));function b(){return(d.state||{idx:null}).idx}function v(){m="POP";let V=b(),J=V==null?null:V-p;p=V,g&&g({action:m,location:Y.location,delta:J})}function O(V,J){m="PUSH";let $=ip(V)?V:ar(Y.location,V,J);p=b()+1;let W=rp($,p),fe=Y.createHref($.unstable_mask||$);try{d.pushState(W,"",fe)}catch(ce){if(ce instanceof DOMException&&ce.name==="DataCloneError")throw ce;c.location.assign(fe)}f&&g&&g({action:m,location:Y.location,delta:1})}function R(V,J){m="REPLACE";let $=ip(V)?V:ar(Y.location,V,J);p=b();let W=rp($,p),fe=Y.createHref($.unstable_mask||$);d.replaceState(W,"",fe),f&&g&&g({action:m,location:Y.location,delta:0})}function D(V){return tg(V)}let Y={get action(){return m},get location(){return l(c,d)},listen(V){if(g)throw new Error("A history only accepts one active listener");return c.addEventListener(lp,v),g=V,()=>{c.removeEventListener(lp,v),g=null}},createHref(V){return i(c,V)},createURL:D,encodeLocation(V){let J=D(V);return{pathname:J.pathname,search:J.search,hash:J.hash}},push:O,replace:R,go(V){return d.go(V)}};return Y}function tg(l,i=!1){let u="http://localhost";typeof window<"u"&&(u=window.location.origin!=="null"?window.location.origin:window.location.href),Ce(u,"No window.location.(origin|href) available to create URL");let o=typeof l=="string"?l:wa(l);return o=o.replace(/ $/,"%20"),!i&&o.startsWith("//")&&(o=u+o),new URL(o,u)}var Fi,up=class{constructor(l){if(sb(this,Fi,new Map),l)for(let[i,u]of l)this.set(i,u)}get(l){if(gc(this,Fi).has(l))return gc(this,Fi).get(l);if(l.defaultValue!==void 0)return l.defaultValue;throw new Error("No value found for context")}set(l,i){gc(this,Fi).set(l,i)}};Fi=new WeakMap;var hb=new Set(["lazy","caseSensitive","path","id","index","children"]);function mb(l){return hb.has(l)}var pb=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function gb(l){return pb.has(l)}function yb(l){return l.index===!0}function nr(l,i,u=[],o={},c=!1){return l.map((f,d)=>{let m=[...u,String(d)],g=typeof f.id=="string"?f.id:m.join("-");if(Ce(f.index!==!0||!f.children,"Cannot specify children on an index route"),Ce(c||!o[g],`Found a route id collision on id "${g}". Route id's must be globally unique within Data Router usages`),yb(f)){let p={...f,id:g};return o[g]=op(p,i(p)),p}else{let p={...f,id:g,children:void 0};return o[g]=op(p,i(p)),f.children&&(p.children=nr(f.children,i,m,o,c)),p}})}function op(l,i){return Object.assign(l,{...i,...typeof i.lazy=="object"&&i.lazy!=null?{lazy:{...l.lazy,...i.lazy}}:{}})}function Cn(l,i,u="/"){return Wi(l,i,u,!1)}function Wi(l,i,u,o){let c=typeof i=="string"?Pa(i):i,f=ca(c.pathname||"/",u);if(f==null)return null;let d=ag(l);bb(d);let m=null;for(let g=0;m==null&&g<d.length;++g){let p=Db(f);m=Cb(d[g],p,o)}return m}function vb(l,i){let{route:u,pathname:o,params:c}=l;return{id:u.id,pathname:o,params:c,data:i[u.id],loaderData:i[u.id],handle:u.handle}}function ag(l,i=[],u=[],o="",c=!1){let f=(d,m,g=c,p)=>{let b={relativePath:p===void 0?d.path||"":p,caseSensitive:d.caseSensitive===!0,childrenIndex:m,route:d};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(o)&&g)return;Ce(b.relativePath.startsWith(o),`Absolute route path "${b.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(o.length)}let v=ya([o,b.relativePath]),O=u.concat(b);d.children&&d.children.length>0&&(Ce(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),ag(d.children,i,O,v,g)),!(d.path==null&&!d.index)&&i.push({path:v,score:_b(v,d.index),routesMeta:O})};return l.forEach((d,m)=>{if(d.path===""||!d.path?.includes("?"))f(d,m);else for(let g of ng(d.path))f(d,m,!0,g)}),i}function ng(l){let i=l.split("/");if(i.length===0)return[];let[u,...o]=i,c=u.endsWith("?"),f=u.replace(/\?$/,"");if(o.length===0)return c?[f,""]:[f];let d=ng(o.join("/")),m=[];return m.push(...d.map(g=>g===""?f:[f,g].join("/"))),c&&m.push(...d),m.map(g=>l.startsWith("/")&&g===""?"/":g)}function bb(l){l.sort((i,u)=>i.score!==u.score?u.score-i.score:wb(i.routesMeta.map(o=>o.childrenIndex),u.routesMeta.map(o=>o.childrenIndex)))}var Sb=/^:[\w-]+$/,xb=3,Eb=2,Rb=1,Ob=10,Tb=-2,sp=l=>l==="*";function _b(l,i){let u=l.split("/"),o=u.length;return u.some(sp)&&(o+=Tb),i&&(o+=Eb),u.filter(c=>!sp(c)).reduce((c,f)=>c+(Sb.test(f)?xb:f===""?Rb:Ob),o)}function wb(l,i){return l.length===i.length&&l.slice(0,-1).every((o,c)=>o===i[c])?l[l.length-1]-i[i.length-1]:0}function Cb(l,i,u=!1){let{routesMeta:o}=l,c={},f="/",d=[];for(let m=0;m<o.length;++m){let g=o[m],p=m===o.length-1,b=f==="/"?i:i.slice(f.length)||"/",v=ku({path:g.relativePath,caseSensitive:g.caseSensitive,end:p},b),O=g.route;if(!v&&p&&u&&!o[o.length-1].route.index&&(v=ku({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},b)),!v)return null;Object.assign(c,v.params),d.push({params:c,pathname:ya([f,v.pathname]),pathnameBase:Nb(ya([f,v.pathnameBase])),route:O}),v.pathnameBase!=="/"&&(f=ya([f,v.pathnameBase]))}return d}function ku(l,i){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[u,o]=zb(l.path,l.caseSensitive,l.end),c=i.match(u);if(!c)return null;let f=c[0],d=f.replace(/(.)\/+$/,"$1"),m=c.slice(1);return{params:o.reduce((p,{paramName:b,isOptional:v},O)=>{if(b==="*"){let D=m[O]||"";d=f.slice(0,f.length-D.length).replace(/(.)\/+$/,"$1")}const R=m[O];return v&&!R?p[b]=void 0:p[b]=(R||"").replace(/%2F/g,"/"),p},{}),pathname:f,pathnameBase:d,pattern:l}}function zb(l,i=!1,u=!0){ct(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let o=[],c="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,m,g,p,b)=>{if(o.push({paramName:m,isOptional:g!=null}),g){let v=b.charAt(p+d.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(o.push({paramName:"*"}),c+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):u?c+="\\/*$":l!==""&&l!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,i?void 0:"i"),o]}function Db(l){try{return l.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return ct(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),l}}function ca(l,i){if(i==="/")return l;if(!l.toLowerCase().startsWith(i.toLowerCase()))return null;let u=i.endsWith("/")?i.length-1:i.length,o=l.charAt(u);return o&&o!=="/"?null:l.slice(u)||"/"}function Mb({basename:l,pathname:i}){return i==="/"?l:ya([l,i])}var lg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Mc=l=>lg.test(l);function Ab(l,i="/"){let{pathname:u,search:o="",hash:c=""}=typeof l=="string"?Pa(l):l,f;return u?(u=u.replace(/\/\/+/g,"/"),u.startsWith("/")?f=cp(u.substring(1),"/"):f=cp(u,i)):f=i,{pathname:f,search:Lb(o),hash:jb(c)}}function cp(l,i){let u=i.replace(/\/+$/,"").split("/");return l.split("/").forEach(c=>{c===".."?u.length>1&&u.pop():c!=="."&&u.push(c)}),u.length>1?u.join("/"):"/"}function yc(l,i,u,o){return`Cannot include a '${l}' character in a manually specified \`to.${i}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${u}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function ig(l){return l.filter((i,u)=>u===0||i.route.path&&i.route.path.length>0)}function Ku(l){let i=ig(l);return i.map((u,o)=>o===i.length-1?u.pathname:u.pathnameBase)}function ur(l,i,u,o=!1){let c;typeof l=="string"?c=Pa(l):(c={...l},Ce(!c.pathname||!c.pathname.includes("?"),yc("?","pathname","search",c)),Ce(!c.pathname||!c.pathname.includes("#"),yc("#","pathname","hash",c)),Ce(!c.search||!c.search.includes("#"),yc("#","search","hash",c)));let f=l===""||c.pathname==="",d=f?"/":c.pathname,m;if(d==null)m=u;else{let v=i.length-1;if(!o&&d.startsWith("..")){let O=d.split("/");for(;O[0]==="..";)O.shift(),v-=1;c.pathname=O.join("/")}m=v>=0?i[v]:"/"}let g=Ab(c,m),p=d&&d!=="/"&&d.endsWith("/"),b=(f||d===".")&&u.endsWith("/");return!g.pathname.endsWith("/")&&(p||b)&&(g.pathname+="/"),g}var ya=l=>l.join("/").replace(/\/\/+/g,"/"),Nb=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),Lb=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,jb=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,or=class{constructor(l,i,u,o=!1){this.status=l,this.statusText=i||"",this.internal=o,u instanceof Error?(this.data=u.toString(),this.error=u):this.data=u}};function lr(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}function sr(l){return l.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var rg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ug(l,i){let u=l;if(typeof u!="string"||!lg.test(u))return{absoluteURL:void 0,isExternal:!1,to:u};let o=u,c=!1;if(rg)try{let f=new URL(window.location.href),d=u.startsWith("//")?new URL(f.protocol+u):new URL(u),m=ca(d.pathname,i);d.origin===f.origin&&m!=null?u=m+d.search+d.hash:c=!0}catch{ct(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:c,to:u}}var Dn=Symbol("Uninstrumented");function Ub(l,i){let u={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};l.forEach(c=>c({id:i.id,index:i.index,path:i.path,instrument(f){let d=Object.keys(u);for(let m of d)f[m]&&u[m].push(f[m])}}));let o={};if(typeof i.lazy=="function"&&u.lazy.length>0){let c=Zl(u.lazy,i.lazy,()=>{});c&&(o.lazy=c)}if(typeof i.lazy=="object"){let c=i.lazy;["middleware","loader","action"].forEach(f=>{let d=c[f],m=u[`lazy.${f}`];if(typeof d=="function"&&m.length>0){let g=Zl(m,d,()=>{});g&&(o.lazy=Object.assign(o.lazy||{},{[f]:g}))}})}return["loader","action"].forEach(c=>{let f=i[c];if(typeof f=="function"&&u[c].length>0){let d=f[Dn]??f,m=Zl(u[c],d,(...g)=>fp(g[0]));m&&(c==="loader"&&d.hydrate===!0&&(m.hydrate=!0),m[Dn]=d,o[c]=m)}}),i.middleware&&i.middleware.length>0&&u.middleware.length>0&&(o.middleware=i.middleware.map(c=>{let f=c[Dn]??c,d=Zl(u.middleware,f,(...m)=>fp(m[0]));return d?(d[Dn]=f,d):c})),o}function Hb(l,i){let u={navigate:[],fetch:[]};if(i.forEach(o=>o({instrument(c){let f=Object.keys(c);for(let d of f)c[d]&&u[d].push(c[d])}})),u.navigate.length>0){let o=l.navigate[Dn]??l.navigate,c=Zl(u.navigate,o,(...f)=>{let[d,m]=f;return{to:typeof d=="number"||typeof d=="string"?d:d?wa(d):".",...dp(l,m??{})}});c&&(c[Dn]=o,l.navigate=c)}if(u.fetch.length>0){let o=l.fetch[Dn]??l.fetch,c=Zl(u.fetch,o,(...f)=>{let[d,,m,g]=f;return{href:m??".",fetcherKey:d,...dp(l,g??{})}});c&&(c[Dn]=o,l.fetch=c)}return l}function Zl(l,i,u){return l.length===0?null:async(...o)=>{let c=await og(l,u(...o),()=>i(...o),l.length-1);if(c.type==="error")throw c.value;return c.value}}async function og(l,i,u,o){let c=l[o],f;if(c){let d,m=async()=>(d?console.error("You cannot call instrumented handlers more than once"):d=og(l,i,u,o-1),f=await d,Ce(f,"Expected a result"),f.type==="error"&&f.value instanceof Error?{status:"error",error:f.value}:{status:"success",error:void 0});try{await c(m,i)}catch(g){console.error("An instrumentation function threw an error:",g)}d||await m(),await d}else try{f={type:"success",value:await u()}}catch(d){f={type:"error",value:d}}return f||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function fp(l){let{request:i,context:u,params:o,unstable_pattern:c}=l;return{request:Bb(i),params:{...o},unstable_pattern:c,context:qb(u)}}function dp(l,i){return{currentUrl:wa(l.state.location),..."formMethod"in i?{formMethod:i.formMethod}:{},..."formEncType"in i?{formEncType:i.formEncType}:{},..."formData"in i?{formData:i.formData}:{},..."body"in i?{body:i.body}:{}}}function Bb(l){return{method:l.method,url:l.url,headers:{get:(...i)=>l.headers.get(...i)}}}function qb(l){if(kb(l)){let i={...l};return Object.freeze(i),i}else return{get:i=>l.get(i)}}var Yb=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function kb(l){if(l===null||typeof l!="object")return!1;const i=Object.getPrototypeOf(l);return i===Object.prototype||i===null||Object.getOwnPropertyNames(i).sort().join("\0")===Yb}var sg=["POST","PUT","PATCH","DELETE"],Vb=new Set(sg),Gb=["GET",...sg],Kb=new Set(Gb),cg=new Set([301,302,303,307,308]),Xb=new Set([307,308]),vc={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Qb={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Qi={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Zb=l=>({hasErrorBoundary:!!l.hasErrorBoundary}),fg="remix-router-transitions",dg=Symbol("ResetLoaderData");function $b(l){const i=l.window?l.window:typeof window<"u"?window:void 0,u=typeof i<"u"&&typeof i.document<"u"&&typeof i.document.createElement<"u";Ce(l.routes.length>0,"You must provide a non-empty routes array to createRouter");let o=l.hydrationRouteProperties||[],c=l.mapRouteProperties||Zb,f=c;if(l.unstable_instrumentations){let x=l.unstable_instrumentations;f=_=>({...c(_),...Ub(x.map(U=>U.route).filter(Boolean),_)})}let d={},m=nr(l.routes,f,void 0,d),g,p=l.basename||"/";p.startsWith("/")||(p=`/${p}`);let b=l.dataStrategy||Ib,v={...l.future},O=null,R=new Set,D=null,Y=null,V=null,J=l.hydrationData!=null,$=Cn(m,l.history.location,p),W=!1,fe=null,ce,ge;if($==null&&!l.patchRoutesOnNavigation){let x=sa(404,{pathname:l.history.location.pathname}),{matches:_,route:U}=Mu(m);ce=!0,ge=!ce,$=_,fe={[U.id]:x}}else if($&&!l.hydrationData&&an($,m,l.history.location.pathname).active&&($=null),$)if($.some(x=>x.route.lazy))ce=!1,ge=!ce;else if(!$.some(x=>Ac(x.route)))ce=!0,ge=!ce;else{let x=l.hydrationData?l.hydrationData.loaderData:null,_=l.hydrationData?l.hydrationData.errors:null,U=$;if(_){let X=$.findIndex(Z=>_[Z.route.id]!==void 0);U=U.slice(0,X+1)}ge=!1,ce=U.every(X=>{let Z=hg(X.route,x,_);return ge=ge||Z.renderFallback,!Z.shouldLoad})}else{ce=!1,ge=!ce,$=[];let x=an(null,m,l.history.location.pathname);x.active&&x.matches&&(W=!0,$=x.matches)}let le,z={historyAction:l.history.action,location:l.history.location,matches:$,initialized:ce,renderFallback:ge,navigation:vc,restoreScrollPosition:l.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:l.hydrationData&&l.hydrationData.loaderData||{},actionData:l.hydrationData&&l.hydrationData.actionData||null,errors:l.hydrationData&&l.hydrationData.errors||fe,fetchers:new Map,blockers:new Map},ee="POP",ae=null,xe=!1,re,ze=!1,Se=new Map,ye=null,N=!1,K=!1,I=new Set,ie=new Map,Oe=0,E=-1,B=new Map,Q=new Set,P=new Map,ve=new Map,Ee=new Set,De=new Map,ft,Je=null;function An(){if(O=l.history.listen(({action:x,location:_,delta:U})=>{if(ft){ft(),ft=void 0;return}ct(De.size===0||U!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let X=Ln({currentLocation:z.location,nextLocation:_,historyAction:x});if(X&&U!=null){let Z=new Promise(ue=>{ft=ue});l.history.go(U*-1),Aa(X,{state:"blocked",location:_,proceed(){Aa(X,{state:"proceeding",proceed:void 0,reset:void 0,location:_}),Z.then(()=>l.history.go(U))},reset(){let ue=new Map(z.blockers);ue.set(X,Qi),yt({blockers:ue})}}),ae?.resolve(),ae=null;return}return za(x,_)}),u){y1(i,Se);let x=()=>v1(i,Se);i.addEventListener("pagehide",x),ye=()=>i.removeEventListener("pagehide",x)}return z.initialized||za("POP",z.location,{initialHydration:!0}),le}function nl(){O&&O(),ye&&ye(),R.clear(),re&&re.abort(),z.fetchers.forEach((x,_)=>Ma(_)),z.blockers.forEach((x,_)=>Nn(_))}function Fl(x){return R.add(x),()=>R.delete(x)}function yt(x,_={}){x.matches&&(x.matches=x.matches.map(Z=>{let ue=d[Z.route.id],F=Z.route;return F.element!==ue.element||F.errorElement!==ue.errorElement||F.hydrateFallbackElement!==ue.hydrateFallbackElement?{...Z,route:ue}:Z})),z={...z,...x};let U=[],X=[];z.fetchers.forEach((Z,ue)=>{Z.state==="idle"&&(Ee.has(ue)?U.push(ue):X.push(ue))}),Ee.forEach(Z=>{!z.fetchers.has(Z)&&!ie.has(Z)&&U.push(Z)}),[...R].forEach(Z=>Z(z,{deletedFetchers:U,newErrors:x.errors??null,viewTransitionOpts:_.viewTransitionOpts,flushSync:_.flushSync===!0})),U.forEach(Z=>Ma(Z)),X.forEach(Z=>z.fetchers.delete(Z))}function Ht(x,_,{flushSync:U}={}){let X=z.actionData!=null&&z.navigation.formMethod!=null&&Mt(z.navigation.formMethod)&&z.navigation.state==="loading"&&x.state?._isRedirect!==!0,Z;_.actionData?Object.keys(_.actionData).length>0?Z=_.actionData:Z=null:X?Z=z.actionData:Z=null;let ue=_.loaderData?Ep(z.loaderData,_.loaderData,_.matches||[],_.errors):z.loaderData,F=z.blockers;F.size>0&&(F=new Map(F),F.forEach((pe,de)=>F.set(de,Qi)));let te=N?!1:ti(x,_.matches||z.matches),ne=xe===!0||z.navigation.formMethod!=null&&Mt(z.navigation.formMethod)&&x.state?._isRedirect!==!0;g&&(m=g,g=void 0),N||ee==="POP"||(ee==="PUSH"?l.history.push(x,x.state):ee==="REPLACE"&&l.history.replace(x,x.state));let he;if(ee==="POP"){let pe=Se.get(z.location.pathname);pe&&pe.has(x.pathname)?he={currentLocation:z.location,nextLocation:x}:Se.has(x.pathname)&&(he={currentLocation:x,nextLocation:z.location})}else if(ze){let pe=Se.get(z.location.pathname);pe?pe.add(x.pathname):(pe=new Set([x.pathname]),Se.set(z.location.pathname,pe)),he={currentLocation:z.location,nextLocation:x}}yt({..._,actionData:Z,loaderData:ue,historyAction:ee,location:x,initialized:!0,renderFallback:!1,navigation:vc,revalidation:"idle",restoreScrollPosition:te,preventScrollReset:ne,blockers:F},{viewTransitionOpts:he,flushSync:U===!0}),ee="POP",xe=!1,ze=!1,N=!1,K=!1,ae?.resolve(),ae=null,Je?.resolve(),Je=null}async function ll(x,_){if(ae?.resolve(),ae=null,typeof x=="number"){ae||(ae=_p());let Fe=ae.promise;return l.history.go(x),Fe}let U=_c(z.location,z.matches,p,x,_?.fromRouteId,_?.relative),{path:X,submission:Z,error:ue}=hp(!1,U,_),F;_?.unstable_mask&&(F={pathname:"",search:"",hash:"",...typeof _.unstable_mask=="string"?Pa(_.unstable_mask):{...z.location.unstable_mask,..._.unstable_mask}});let te=z.location,ne=ar(te,X,_&&_.state,void 0,F);ne={...ne,...l.history.encodeLocation(ne)};let he=_&&_.replace!=null?_.replace:void 0,pe="PUSH";he===!0?pe="REPLACE":he===!1||Z!=null&&Mt(Z.formMethod)&&Z.formAction===z.location.pathname+z.location.search&&(pe="REPLACE");let de=_&&"preventScrollReset"in _?_.preventScrollReset===!0:void 0,qe=(_&&_.flushSync)===!0,Me=Ln({currentLocation:te,nextLocation:ne,historyAction:pe});if(Me){Aa(Me,{state:"blocked",location:ne,proceed(){Aa(Me,{state:"proceeding",proceed:void 0,reset:void 0,location:ne}),ll(x,_)},reset(){let Fe=new Map(z.blockers);Fe.set(Me,Qi),yt({blockers:Fe})}});return}await za(pe,ne,{submission:Z,pendingError:ue,preventScrollReset:de,replace:_&&_.replace,enableViewTransition:_&&_.viewTransition,flushSync:qe,callSiteDefaultShouldRevalidate:_&&_.unstable_defaultShouldRevalidate})}function Wl(){Je||(Je=_p()),en(),yt({revalidation:"loading"});let x=Je.promise;return z.navigation.state==="submitting"?x:z.navigation.state==="idle"?(za(z.historyAction,z.location,{startUninterruptedRevalidation:!0}),x):(za(ee||z.historyAction,z.navigation.location,{overrideNavigation:z.navigation,enableViewTransition:ze===!0}),x)}async function za(x,_,U){re&&re.abort(),re=null,ee=x,N=(U&&U.startUninterruptedRevalidation)===!0,Wu(z.location,z.matches),xe=(U&&U.preventScrollReset)===!0,ze=(U&&U.enableViewTransition)===!0;let X=g||m,Z=U&&U.overrideNavigation,ue=U?.initialHydration&&z.matches&&z.matches.length>0&&!W?z.matches:Cn(X,_,p),F=(U&&U.flushSync)===!0;if(ue&&z.initialized&&!K&&u1(z.location,_)&&!(U&&U.submission&&Mt(U.submission.formMethod))){Ht(_,{matches:ue},{flushSync:F});return}let te=an(ue,X,_.pathname);if(te.active&&te.matches&&(ue=te.matches),!ue){let{error:Ie,notFoundMatches:lt,route:Be}=da(_.pathname);Ht(_,{matches:lt,loaderData:{},errors:{[Be.id]:Ie}},{flushSync:F});return}re=new AbortController;let ne=Xl(l.history,_,re.signal,U&&U.submission),he=l.getContext?await l.getContext():new up,pe;if(U&&U.pendingError)pe=[zn(ue).route.id,{type:"error",error:U.pendingError}];else if(U&&U.submission&&Mt(U.submission.formMethod)){let Ie=await dr(ne,_,U.submission,ue,he,te.active,U&&U.initialHydration===!0,{replace:U.replace,flushSync:F});if(Ie.shortCircuited)return;if(Ie.pendingActionResult){let[lt,Be]=Ie.pendingActionResult;if(Wt(Be)&&lr(Be.error)&&Be.error.status===404){re=null,Ht(_,{matches:Ie.matches,loaderData:{},errors:{[lt]:Be.error}});return}}ue=Ie.matches||ue,pe=Ie.pendingActionResult,Z=bc(_,U.submission),F=!1,te.active=!1,ne=Xl(l.history,ne.url,ne.signal)}let{shortCircuited:de,matches:qe,loaderData:Me,errors:Fe}=await Pl(ne,_,ue,he,te.active,Z,U&&U.submission,U&&U.fetcherSubmission,U&&U.replace,U&&U.initialHydration===!0,F,pe,U&&U.callSiteDefaultShouldRevalidate);de||(re=null,Ht(_,{matches:qe||ue,...Rp(pe),loaderData:Me,errors:Fe}))}async function dr(x,_,U,X,Z,ue,F,te={}){en();let ne=p1(_,U);if(yt({navigation:ne},{flushSync:te.flushSync===!0}),ue){let de=await ba(X,_.pathname,x.signal);if(de.type==="aborted")return{shortCircuited:!0};if(de.type==="error"){if(de.partialMatches.length===0){let{matches:Me,route:Fe}=Mu(m);return{matches:Me,pendingActionResult:[Fe.id,{type:"error",error:de.error}]}}let qe=zn(de.partialMatches).route.id;return{matches:de.partialMatches,pendingActionResult:[qe,{type:"error",error:de.error}]}}else if(de.matches)X=de.matches;else{let{notFoundMatches:qe,error:Me,route:Fe}=da(_.pathname);return{matches:qe,pendingActionResult:[Fe.id,{type:"error",error:Me}]}}}let he,pe=ju(X,_);if(!pe.route.action&&!pe.route.lazy)he={type:"error",error:sa(405,{method:x.method,pathname:_.pathname,routeId:pe.route.id})};else{let de=$l(f,d,x,X,pe,F?[]:o,Z),qe=await Ia(x,de,Z,null);if(he=qe[pe.route.id],!he){for(let Me of X)if(qe[Me.route.id]){he=qe[Me.route.id];break}}if(x.signal.aborted)return{shortCircuited:!0}}if(el(he)){let de;return te&&te.replace!=null?de=te.replace:de=bp(he.response.headers.get("Location"),new URL(x.url),p,l.history)===z.location.pathname+z.location.search,await Da(x,he,!0,{submission:U,replace:de}),{shortCircuited:!0}}if(Wt(he)){let de=zn(X,pe.route.id);return(te&&te.replace)!==!0&&(ee="PUSH"),{matches:X,pendingActionResult:[de.route.id,he,pe.route.id]}}return{matches:X,pendingActionResult:[pe.route.id,he]}}async function Pl(x,_,U,X,Z,ue,F,te,ne,he,pe,de,qe){let Me=ue||bc(_,F),Fe=F||te||Tp(Me),Ie=!N&&!he;if(Z){if(Ie){let ut=il(de);yt({navigation:Me,...ut!==void 0?{actionData:ut}:{}},{flushSync:pe})}let Ae=await ba(U,_.pathname,x.signal);if(Ae.type==="aborted")return{shortCircuited:!0};if(Ae.type==="error"){if(Ae.partialMatches.length===0){let{matches:zt,route:dt}=Mu(m);return{matches:zt,loaderData:{},errors:{[dt.id]:Ae.error}}}let ut=zn(Ae.partialMatches).route.id;return{matches:Ae.partialMatches,loaderData:{},errors:{[ut]:Ae.error}}}else if(Ae.matches)U=Ae.matches;else{let{error:ut,notFoundMatches:zt,route:dt}=da(_.pathname);return{matches:zt,loaderData:{},errors:{[dt.id]:ut}}}}let lt=g||m,{dsMatches:Be,revalidatingFetchers:vt}=mp(x,X,f,d,l.history,z,U,Fe,_,he?[]:o,he===!0,K,I,Ee,P,Q,lt,p,l.patchRoutesOnNavigation!=null,de,qe);if(E=++Oe,!l.dataStrategy&&!Be.some(Ae=>Ae.shouldLoad)&&!Be.some(Ae=>Ae.route.middleware&&Ae.route.middleware.length>0)&&vt.length===0){let Ae=mr();return Ht(_,{matches:U,loaderData:{},errors:de&&Wt(de[1])?{[de[0]]:de[1].error}:null,...Rp(de),...Ae?{fetchers:new Map(z.fetchers)}:{}},{flushSync:pe}),{shortCircuited:!0}}if(Ie){let Ae={};if(!Z){Ae.navigation=Me;let ut=il(de);ut!==void 0&&(Ae.actionData=ut)}vt.length>0&&(Ae.fetchers=Il(vt)),yt(Ae,{flushSync:pe})}vt.forEach(Ae=>{St(Ae.key),Ae.controller&&ie.set(Ae.key,Ae.controller)});let Pe=()=>vt.forEach(Ae=>St(Ae.key));re&&re.signal.addEventListener("abort",Pe);let{loaderResults:nn,fetcherResults:ha}=await ei(Be,vt,x,X);if(x.signal.aborted)return{shortCircuited:!0};re&&re.signal.removeEventListener("abort",Pe),vt.forEach(Ae=>ie.delete(Ae.key));let xt=Au(nn);if(xt)return await Da(x,xt.result,!0,{replace:ne}),{shortCircuited:!0};if(xt=Au(ha),xt)return Q.add(xt.key),await Da(x,xt.result,!0,{replace:ne}),{shortCircuited:!0};let{loaderData:Sa,errors:jn}=xp(z,U,nn,de,vt,ha);he&&z.errors&&(jn={...z.errors,...jn});let xa=mr(),Un=pr(E),ul=xa||Un||vt.length>0;return{matches:U,loaderData:Sa,errors:jn,...ul?{fetchers:new Map(z.fetchers)}:{}}}function il(x){if(x&&!Wt(x[1]))return{[x[0]]:x[1].data};if(z.actionData)return Object.keys(z.actionData).length===0?null:z.actionData}function Il(x){return x.forEach(_=>{let U=z.fetchers.get(_.key),X=Zi(void 0,U?U.data:void 0);z.fetchers.set(_.key,X)}),new Map(z.fetchers)}async function Zu(x,_,U,X){St(x);let Z=(X&&X.flushSync)===!0,ue=g||m,F=_c(z.location,z.matches,p,U,_,X?.relative),te=Cn(ue,F,p),ne=an(te,ue,F);if(ne.active&&ne.matches&&(te=ne.matches),!te){It(x,_,sa(404,{pathname:F}),{flushSync:Z});return}let{path:he,submission:pe,error:de}=hp(!0,F,X);if(de){It(x,_,de,{flushSync:Z});return}let qe=l.getContext?await l.getContext():new up,Me=(X&&X.preventScrollReset)===!0;if(pe&&Mt(pe.formMethod)){await $u(x,_,he,te,qe,ne.active,Z,Me,pe,X&&X.unstable_defaultShouldRevalidate);return}P.set(x,{routeId:_,path:he}),await Nt(x,_,he,te,qe,ne.active,Z,Me,pe)}async function $u(x,_,U,X,Z,ue,F,te,ne,he){en(),P.delete(x);let pe=z.fetchers.get(x);fa(x,g1(ne,pe),{flushSync:F});let de=new AbortController,qe=Xl(l.history,U,de.signal,ne);if(ue){let et=await ba(X,new URL(qe.url).pathname,qe.signal,x);if(et.type==="aborted")return;if(et.type==="error"){It(x,_,et.error,{flushSync:F});return}else if(et.matches)X=et.matches;else{It(x,_,sa(404,{pathname:U}),{flushSync:F});return}}let Me=ju(X,U);if(!Me.route.action&&!Me.route.lazy){let et=sa(405,{method:ne.formMethod,pathname:U,routeId:_});It(x,_,et,{flushSync:F});return}ie.set(x,de);let Fe=Oe,Ie=$l(f,d,qe,X,Me,o,Z),lt=await Ia(qe,Ie,Z,x),Be=lt[Me.route.id];if(!Be){for(let et of Ie)if(lt[et.route.id]){Be=lt[et.route.id];break}}if(qe.signal.aborted){ie.get(x)===de&&ie.delete(x);return}if(Ee.has(x)){if(el(Be)||Wt(Be)){fa(x,Fa(void 0));return}}else{if(el(Be))if(ie.delete(x),E>Fe){fa(x,Fa(void 0));return}else return Q.add(x),fa(x,Zi(ne)),Da(qe,Be,!1,{fetcherSubmission:ne,preventScrollReset:te});if(Wt(Be)){It(x,_,Be.error);return}}let vt=z.navigation.location||z.location,Pe=Xl(l.history,vt,de.signal),nn=g||m,ha=z.navigation.state!=="idle"?Cn(nn,z.navigation.location,p):z.matches;Ce(ha,"Didn't find any matches after fetcher action");let xt=++Oe;B.set(x,xt);let Sa=Zi(ne,Be.data);z.fetchers.set(x,Sa);let{dsMatches:jn,revalidatingFetchers:xa}=mp(Pe,Z,f,d,l.history,z,ha,ne,vt,o,!1,K,I,Ee,P,Q,nn,p,l.patchRoutesOnNavigation!=null,[Me.route.id,Be],he);xa.filter(et=>et.key!==x).forEach(et=>{let ol=et.key,sl=z.fetchers.get(ol),br=Zi(void 0,sl?sl.data:void 0);z.fetchers.set(ol,br),St(ol),et.controller&&ie.set(ol,et.controller)}),yt({fetchers:new Map(z.fetchers)});let Un=()=>xa.forEach(et=>St(et.key));de.signal.addEventListener("abort",Un);let{loaderResults:ul,fetcherResults:Ae}=await ei(jn,xa,Pe,Z);if(de.signal.aborted)return;if(de.signal.removeEventListener("abort",Un),B.delete(x),ie.delete(x),xa.forEach(et=>ie.delete(et.key)),z.fetchers.has(x)){let et=Fa(Be.data);z.fetchers.set(x,et)}let ut=Au(ul);if(ut)return Da(Pe,ut.result,!1,{preventScrollReset:te});if(ut=Au(Ae),ut)return Q.add(ut.key),Da(Pe,ut.result,!1,{preventScrollReset:te});let{loaderData:zt,errors:dt}=xp(z,ha,ul,void 0,xa,Ae);pr(xt),z.navigation.state==="loading"&&xt>E?(Ce(ee,"Expected pending action"),re&&re.abort(),Ht(z.navigation.location,{matches:ha,loaderData:zt,errors:dt,fetchers:new Map(z.fetchers)})):(yt({errors:dt,loaderData:Ep(z.loaderData,zt,ha,dt),fetchers:new Map(z.fetchers)}),K=!1)}async function Nt(x,_,U,X,Z,ue,F,te,ne){let he=z.fetchers.get(x);fa(x,Zi(ne,he?he.data:void 0),{flushSync:F});let pe=new AbortController,de=Xl(l.history,U,pe.signal);if(ue){let Be=await ba(X,new URL(de.url).pathname,de.signal,x);if(Be.type==="aborted")return;if(Be.type==="error"){It(x,_,Be.error,{flushSync:F});return}else if(Be.matches)X=Be.matches;else{It(x,_,sa(404,{pathname:U}),{flushSync:F});return}}let qe=ju(X,U);ie.set(x,pe);let Me=Oe,Fe=$l(f,d,de,X,qe,o,Z),lt=(await Ia(de,Fe,Z,x))[qe.route.id];if(ie.get(x)===pe&&ie.delete(x),!de.signal.aborted){if(Ee.has(x)){fa(x,Fa(void 0));return}if(el(lt))if(E>Me){fa(x,Fa(void 0));return}else{Q.add(x),await Da(de,lt,!1,{preventScrollReset:te});return}if(Wt(lt)){It(x,_,lt.error);return}fa(x,Fa(lt.data))}}async function Da(x,_,U,{submission:X,fetcherSubmission:Z,preventScrollReset:ue,replace:F}={}){U||(ae?.resolve(),ae=null),_.response.headers.has("X-Remix-Revalidate")&&(K=!0);let te=_.response.headers.get("Location");Ce(te,"Expected a Location header on the redirect Response"),te=bp(te,new URL(x.url),p,l.history);let ne=ar(z.location,te,{_isRedirect:!0});if(u){let Fe=!1;if(_.response.headers.has("X-Remix-Reload-Document"))Fe=!0;else if(Mc(te)){const Ie=tg(te,!0);Fe=Ie.origin!==i.location.origin||ca(Ie.pathname,p)==null}if(Fe){F?i.location.replace(te):i.location.assign(te);return}}re=null;let he=F===!0||_.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:pe,formAction:de,formEncType:qe}=z.navigation;!X&&!Z&&pe&&de&&qe&&(X=Tp(z.navigation));let Me=X||Z;if(Xb.has(_.response.status)&&Me&&Mt(Me.formMethod))await za(he,ne,{submission:{...Me,formAction:te},preventScrollReset:ue||xe,enableViewTransition:U?ze:void 0});else{let Fe=bc(ne,X);await za(he,ne,{overrideNavigation:Fe,fetcherSubmission:Z,preventScrollReset:ue||xe,enableViewTransition:U?ze:void 0})}}async function Ia(x,_,U,X){let Z,ue={};try{Z=await t1(b,x,_,X,U,!1)}catch(F){return _.filter(te=>te.shouldLoad).forEach(te=>{ue[te.route.id]={type:"error",error:F}}),ue}if(x.signal.aborted)return ue;if(!Mt(x.method))for(let F of _){if(Z[F.route.id]?.type==="error")break;!Z.hasOwnProperty(F.route.id)&&!z.loaderData.hasOwnProperty(F.route.id)&&(!z.errors||!z.errors.hasOwnProperty(F.route.id))&&F.shouldCallHandler()&&(Z[F.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${F.route.id}`)})}for(let[F,te]of Object.entries(Z))if(f1(te)){let ne=te.result;ue[F]={type:"redirect",response:i1(ne,x,F,_,p)}}else ue[F]=await l1(te);return ue}async function ei(x,_,U,X){let Z=Ia(U,x,X,null),ue=Promise.all(_.map(async ne=>{if(ne.matches&&ne.match&&ne.request&&ne.controller){let pe=(await Ia(ne.request,ne.matches,X,ne.key))[ne.match.route.id];return{[ne.key]:pe}}else return Promise.resolve({[ne.key]:{type:"error",error:sa(404,{pathname:ne.path})}})})),F=await Z,te=(await ue).reduce((ne,he)=>Object.assign(ne,he),{});return{loaderResults:F,fetcherResults:te}}function en(){K=!0,P.forEach((x,_)=>{ie.has(_)&&I.add(_),St(_)})}function fa(x,_,U={}){z.fetchers.set(x,_),yt({fetchers:new Map(z.fetchers)},{flushSync:(U&&U.flushSync)===!0})}function It(x,_,U,X={}){let Z=zn(z.matches,_);Ma(x),yt({errors:{[Z.route.id]:U},fetchers:new Map(z.fetchers)},{flushSync:(X&&X.flushSync)===!0})}function hr(x){return ve.set(x,(ve.get(x)||0)+1),Ee.has(x)&&Ee.delete(x),z.fetchers.get(x)||Qb}function Ju(x,_){St(x,_?.reason),fa(x,Fa(null))}function Ma(x){let _=z.fetchers.get(x);ie.has(x)&&!(_&&_.state==="loading"&&B.has(x))&&St(x),P.delete(x),B.delete(x),Q.delete(x),Ee.delete(x),I.delete(x),z.fetchers.delete(x)}function Lt(x){let _=(ve.get(x)||0)-1;_<=0?(ve.delete(x),Ee.add(x)):ve.set(x,_),yt({fetchers:new Map(z.fetchers)})}function St(x,_){let U=ie.get(x);U&&(U.abort(_),ie.delete(x))}function Ct(x){for(let _ of x){let U=hr(_),X=Fa(U.data);z.fetchers.set(_,X)}}function mr(){let x=[],_=!1;for(let U of Q){let X=z.fetchers.get(U);Ce(X,`Expected fetcher: ${U}`),X.state==="loading"&&(Q.delete(U),x.push(U),_=!0)}return Ct(x),_}function pr(x){let _=[];for(let[U,X]of B)if(X<x){let Z=z.fetchers.get(U);Ce(Z,`Expected fetcher: ${U}`),Z.state==="loading"&&(St(U),B.delete(U),_.push(U))}return Ct(_),_.length>0}function Fu(x,_){let U=z.blockers.get(x)||Qi;return De.get(x)!==_&&De.set(x,_),U}function Nn(x){z.blockers.delete(x),De.delete(x)}function Aa(x,_){let U=z.blockers.get(x)||Qi;Ce(U.state==="unblocked"&&_.state==="blocked"||U.state==="blocked"&&_.state==="blocked"||U.state==="blocked"&&_.state==="proceeding"||U.state==="blocked"&&_.state==="unblocked"||U.state==="proceeding"&&_.state==="unblocked",`Invalid blocker state transition: ${U.state} -> ${_.state}`);let X=new Map(z.blockers);X.set(x,_),yt({blockers:X})}function Ln({currentLocation:x,nextLocation:_,historyAction:U}){if(De.size===0)return;De.size>1&&ct(!1,"A router only supports one blocker at a time");let X=Array.from(De.entries()),[Z,ue]=X[X.length-1],F=z.blockers.get(Z);if(!(F&&F.state==="proceeding")&&ue({currentLocation:x,nextLocation:_,historyAction:U}))return Z}function da(x){let _=sa(404,{pathname:x}),U=g||m,{matches:X,route:Z}=Mu(U);return{notFoundMatches:X,route:Z,error:_}}function rl(x,_,U){if(D=x,V=_,Y=U||null,!J&&z.navigation===vc){J=!0;let X=ti(z.location,z.matches);X!=null&&yt({restoreScrollPosition:X})}return()=>{D=null,V=null,Y=null}}function tn(x,_){return Y&&Y(x,_.map(X=>vb(X,z.loaderData)))||x.key}function Wu(x,_){if(D&&V){let U=tn(x,_);D[U]=V()}}function ti(x,_){if(D){let U=tn(x,_),X=D[U];if(typeof X=="number")return X}return null}function an(x,_,U){if(l.patchRoutesOnNavigation)if(x){if(Object.keys(x[0].params).length>0)return{active:!0,matches:Wi(_,U,p,!0)}}else return{active:!0,matches:Wi(_,U,p,!0)||[]};return{active:!1,matches:null}}async function ba(x,_,U,X){if(!l.patchRoutesOnNavigation)return{type:"success",matches:x};let Z=x;for(;;){let ue=g==null,F=g||m,te=d;try{await l.patchRoutesOnNavigation({signal:U,path:_,matches:Z,fetcherKey:X,patch:(pe,de)=>{U.aborted||pp(pe,de,F,te,f,!1)}})}catch(pe){return{type:"error",error:pe,partialMatches:Z}}finally{ue&&!U.aborted&&(m=[...m])}if(U.aborted)return{type:"aborted"};let ne=Cn(F,_,p),he=null;if(ne){if(Object.keys(ne[0].params).length===0)return{type:"success",matches:ne};if(he=Wi(F,_,p,!0),!(he&&Z.length<he.length&&gr(Z,he.slice(0,Z.length))))return{type:"success",matches:ne}}if(he||(he=Wi(F,_,p,!0)),!he||gr(Z,he))return{type:"success",matches:null};Z=he}}function gr(x,_){return x.length===_.length&&x.every((U,X)=>U.route.id===_[X].route.id)}function yr(x){d={},g=nr(x,f,void 0,d)}function vr(x,_,U=!1){let X=g==null;pp(x,_,g||m,d,f,U),X&&(m=[...m],yt({}))}return le={get basename(){return p},get future(){return v},get state(){return z},get routes(){return m},get window(){return i},initialize:An,subscribe:Fl,enableScrollRestoration:rl,navigate:ll,fetch:Zu,revalidate:Wl,createHref:x=>l.history.createHref(x),encodeLocation:x=>l.history.encodeLocation(x),getFetcher:hr,resetFetcher:Ju,deleteFetcher:Lt,dispose:nl,getBlocker:Fu,deleteBlocker:Nn,patchRoutes:vr,_internalFetchControllers:ie,_internalSetRoutes:yr,_internalSetStateDoNotUseOrYouWillBreakYourApp(x){yt(x)}},l.unstable_instrumentations&&(le=Hb(le,l.unstable_instrumentations.map(x=>x.router).filter(Boolean))),le}function Jb(l){return l!=null&&("formData"in l&&l.formData!=null||"body"in l&&l.body!==void 0)}function _c(l,i,u,o,c,f){let d,m;if(c){d=[];for(let p of i)if(d.push(p),p.route.id===c){m=p;break}}else d=i,m=i[i.length-1];let g=ur(o||".",Ku(d),ca(l.pathname,u)||l.pathname,f==="path");if(o==null&&(g.search=l.search,g.hash=l.hash),(o==null||o===""||o===".")&&m){let p=Lc(g.search);if(m.route.index&&!p)g.search=g.search?g.search.replace(/^\?/,"?index&"):"?index";else if(!m.route.index&&p){let b=new URLSearchParams(g.search),v=b.getAll("index");b.delete("index"),v.filter(R=>R).forEach(R=>b.append("index",R));let O=b.toString();g.search=O?`?${O}`:""}}return u!=="/"&&(g.pathname=Mb({basename:u,pathname:g.pathname})),wa(g)}function hp(l,i,u){if(!u||!Jb(u))return{path:i};if(u.formMethod&&!m1(u.formMethod))return{path:i,error:sa(405,{method:u.formMethod})};let o=()=>({path:i,error:sa(400,{type:"invalid-body"})}),f=(u.formMethod||"get").toUpperCase(),d=bg(i);if(u.body!==void 0){if(u.formEncType==="text/plain"){if(!Mt(f))return o();let v=typeof u.body=="string"?u.body:u.body instanceof FormData||u.body instanceof URLSearchParams?Array.from(u.body.entries()).reduce((O,[R,D])=>`${O}${R}=${D}
10
+ `,""):String(u.body);return{path:i,submission:{formMethod:f,formAction:d,formEncType:u.formEncType,formData:void 0,json:void 0,text:v}}}else if(u.formEncType==="application/json"){if(!Mt(f))return o();try{let v=typeof u.body=="string"?JSON.parse(u.body):u.body;return{path:i,submission:{formMethod:f,formAction:d,formEncType:u.formEncType,formData:void 0,json:v,text:void 0}}}catch{return o()}}}Ce(typeof FormData=="function","FormData is not available in this environment");let m,g;if(u.formData)m=Cc(u.formData),g=u.formData;else if(u.body instanceof FormData)m=Cc(u.body),g=u.body;else if(u.body instanceof URLSearchParams)m=u.body,g=Sp(m);else if(u.body==null)m=new URLSearchParams,g=new FormData;else try{m=new URLSearchParams(u.body),g=Sp(m)}catch{return o()}let p={formMethod:f,formAction:d,formEncType:u&&u.formEncType||"application/x-www-form-urlencoded",formData:g,json:void 0,text:void 0};if(Mt(p.formMethod))return{path:i,submission:p};let b=Pa(i);return l&&b.search&&Lc(b.search)&&m.append("index",""),b.search=`?${m}`,{path:wa(b),submission:p}}function mp(l,i,u,o,c,f,d,m,g,p,b,v,O,R,D,Y,V,J,$,W,fe){let ce=W?Wt(W[1])?W[1].error:W[1].data:void 0,ge=c.createURL(f.location),le=c.createURL(g),z;if(b&&f.errors){let ye=Object.keys(f.errors)[0];z=d.findIndex(N=>N.route.id===ye)}else if(W&&Wt(W[1])){let ye=W[0];z=d.findIndex(N=>N.route.id===ye)-1}let ee=W?W[1].statusCode:void 0,ae=ee&&ee>=400,xe={currentUrl:ge,currentParams:f.matches[0]?.params||{},nextUrl:le,nextParams:d[0].params,...m,actionResult:ce,actionStatus:ee},re=sr(d),ze=d.map((ye,N)=>{let{route:K}=ye,I=null;if(z!=null&&N>z)I=!1;else if(K.lazy)I=!0;else if(!Ac(K))I=!1;else if(b){let{shouldLoad:B}=hg(K,f.loaderData,f.errors);I=B}else Fb(f.loaderData,f.matches[N],ye)&&(I=!0);if(I!==null)return wc(u,o,l,re,ye,p,i,I);let ie=!1;typeof fe=="boolean"?ie=fe:ae?ie=!1:(v||ge.pathname+ge.search===le.pathname+le.search||ge.search!==le.search||Wb(f.matches[N],ye))&&(ie=!0);let Oe={...xe,defaultShouldRevalidate:ie},E=er(ye,Oe);return wc(u,o,l,re,ye,p,i,E,Oe,fe)}),Se=[];return D.forEach((ye,N)=>{if(b||!d.some(P=>P.route.id===ye.routeId)||R.has(N))return;let K=f.fetchers.get(N),I=K&&K.state!=="idle"&&K.data===void 0,ie=Cn(V,ye.path,J);if(!ie){if($&&I)return;Se.push({key:N,routeId:ye.routeId,path:ye.path,matches:null,match:null,request:null,controller:null});return}if(Y.has(N))return;let Oe=ju(ie,ye.path),E=new AbortController,B=Xl(c,ye.path,E.signal),Q=null;if(O.has(N))O.delete(N),Q=$l(u,o,B,ie,Oe,p,i);else if(I)v&&(Q=$l(u,o,B,ie,Oe,p,i));else{let P;typeof fe=="boolean"?P=fe:ae?P=!1:P=v;let ve={...xe,defaultShouldRevalidate:P};er(Oe,ve)&&(Q=$l(u,o,B,ie,Oe,p,i,ve))}Q&&Se.push({key:N,routeId:ye.routeId,path:ye.path,matches:Q,match:Oe,request:B,controller:E})}),{dsMatches:ze,revalidatingFetchers:Se}}function Ac(l){return l.loader!=null||l.middleware!=null&&l.middleware.length>0}function hg(l,i,u){if(l.lazy)return{shouldLoad:!0,renderFallback:!0};if(!Ac(l))return{shouldLoad:!1,renderFallback:!1};let o=i!=null&&l.id in i,c=u!=null&&u[l.id]!==void 0;if(!o&&c)return{shouldLoad:!1,renderFallback:!1};if(typeof l.loader=="function"&&l.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!o};let f=!o&&!c;return{shouldLoad:f,renderFallback:f}}function Fb(l,i,u){let o=!i||u.route.id!==i.route.id,c=!l.hasOwnProperty(u.route.id);return o||c}function Wb(l,i){let u=l.route.path;return l.pathname!==i.pathname||u!=null&&u.endsWith("*")&&l.params["*"]!==i.params["*"]}function er(l,i){if(l.route.shouldRevalidate){let u=l.route.shouldRevalidate(i);if(typeof u=="boolean")return u}return i.defaultShouldRevalidate}function pp(l,i,u,o,c,f){let d;if(l){let p=o[l];Ce(p,`No route found to patch children into: routeId = ${l}`),p.children||(p.children=[]),d=p.children}else d=u;let m=[],g=[];if(i.forEach(p=>{let b=d.find(v=>mg(p,v));b?g.push({existingRoute:b,newRoute:p}):m.push(p)}),m.length>0){let p=nr(m,c,[l||"_","patch",String(d?.length||"0")],o);d.push(...p)}if(f&&g.length>0)for(let p=0;p<g.length;p++){let{existingRoute:b,newRoute:v}=g[p],O=b,[R]=nr([v],c,[],{},!0);Object.assign(O,{element:R.element?R.element:O.element,errorElement:R.errorElement?R.errorElement:O.errorElement,hydrateFallbackElement:R.hydrateFallbackElement?R.hydrateFallbackElement:O.hydrateFallbackElement})}}function mg(l,i){return"id"in l&&"id"in i&&l.id===i.id?!0:l.index===i.index&&l.path===i.path&&l.caseSensitive===i.caseSensitive?(!l.children||l.children.length===0)&&(!i.children||i.children.length===0)?!0:l.children?.every((u,o)=>i.children?.some(c=>mg(u,c)))??!1:!1}var gp=new WeakMap,pg=({key:l,route:i,manifest:u,mapRouteProperties:o})=>{let c=u[i.id];if(Ce(c,"No route found in manifest"),!c.lazy||typeof c.lazy!="object")return;let f=c.lazy[l];if(!f)return;let d=gp.get(c);d||(d={},gp.set(c,d));let m=d[l];if(m)return m;let g=(async()=>{let p=mb(l),v=c[l]!==void 0&&l!=="hasErrorBoundary";if(p)ct(!p,"Route property "+l+" is not a supported lazy route property. This property will be ignored."),d[l]=Promise.resolve();else if(v)ct(!1,`Route "${c.id}" has a static property "${l}" defined. The lazy property will be ignored.`);else{let O=await f();O!=null&&(Object.assign(c,{[l]:O}),Object.assign(c,o(c)))}typeof c.lazy=="object"&&(c.lazy[l]=void 0,Object.values(c.lazy).every(O=>O===void 0)&&(c.lazy=void 0))})();return d[l]=g,g},yp=new WeakMap;function Pb(l,i,u,o,c){let f=u[l.id];if(Ce(f,"No route found in manifest"),!l.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof l.lazy=="function"){let b=yp.get(f);if(b)return{lazyRoutePromise:b,lazyHandlerPromise:b};let v=(async()=>{Ce(typeof l.lazy=="function","No lazy route function found");let O=await l.lazy(),R={};for(let D in O){let Y=O[D];if(Y===void 0)continue;let V=gb(D),$=f[D]!==void 0&&D!=="hasErrorBoundary";V?ct(!V,"Route property "+D+" is not a supported property to be returned from a lazy route function. This property will be ignored."):$?ct(!$,`Route "${f.id}" has a static property "${D}" defined but its lazy function is also returning a value for this property. The lazy route property "${D}" will be ignored.`):R[D]=Y}Object.assign(f,R),Object.assign(f,{...o(f),lazy:void 0})})();return yp.set(f,v),v.catch(()=>{}),{lazyRoutePromise:v,lazyHandlerPromise:v}}let d=Object.keys(l.lazy),m=[],g;for(let b of d){if(c&&c.includes(b))continue;let v=pg({key:b,route:l,manifest:u,mapRouteProperties:o});v&&(m.push(v),b===i&&(g=v))}let p=m.length>0?Promise.all(m).then(()=>{}):void 0;return p?.catch(()=>{}),g?.catch(()=>{}),{lazyRoutePromise:p,lazyHandlerPromise:g}}async function vp(l){let i=l.matches.filter(c=>c.shouldLoad),u={};return(await Promise.all(i.map(c=>c.resolve()))).forEach((c,f)=>{u[i[f].route.id]=c}),u}async function Ib(l){return l.matches.some(i=>i.route.middleware)?gg(l,()=>vp(l)):vp(l)}function gg(l,i){return e1(l,i,o=>{if(h1(o))throw o;return o},s1,u);function u(o,c,f){if(f)return Promise.resolve(Object.assign(f.value,{[c]:{type:"error",result:o}}));{let{matches:d}=l,m=Math.min(Math.max(d.findIndex(p=>p.route.id===c),0),Math.max(d.findIndex(p=>p.shouldCallHandler()),0)),g=zn(d,d[m].route.id).route.id;return Promise.resolve({[g]:{type:"error",result:o}})}}}async function e1(l,i,u,o,c){let{matches:f,request:d,params:m,context:g,unstable_pattern:p}=l,b=f.flatMap(O=>O.route.middleware?O.route.middleware.map(R=>[O.route.id,R]):[]);return await yg({request:d,params:m,context:g,unstable_pattern:p},b,i,u,o,c)}async function yg(l,i,u,o,c,f,d=0){let{request:m}=l;if(m.signal.aborted)throw m.signal.reason??new Error(`Request aborted: ${m.method} ${m.url}`);let g=i[d];if(!g)return await u();let[p,b]=g,v,O=async()=>{if(v)throw new Error("You may only call `next()` once per middleware");try{return v={value:await yg(l,i,u,o,c,f,d+1)},v.value}catch(R){return v={value:await f(R,p,v)},v.value}};try{let R=await b(l,O),D=R!=null?o(R):void 0;return c(D)?D:v?D??v.value:(v={value:await O()},v.value)}catch(R){return await f(R,p,v)}}function vg(l,i,u,o,c){let f=pg({key:"middleware",route:o.route,manifest:i,mapRouteProperties:l}),d=Pb(o.route,Mt(u.method)?"action":"loader",i,l,c);return{middleware:f,route:d.lazyRoutePromise,handler:d.lazyHandlerPromise}}function wc(l,i,u,o,c,f,d,m,g=null,p){let b=!1,v=vg(l,i,u,c,f);return{...c,_lazyPromises:v,shouldLoad:m,shouldRevalidateArgs:g,shouldCallHandler(O){return b=!0,g?typeof p=="boolean"?er(c,{...g,defaultShouldRevalidate:p}):typeof O=="boolean"?er(c,{...g,defaultShouldRevalidate:O}):er(c,g):m},resolve(O){let{lazy:R,loader:D,middleware:Y}=c.route,V=b||m||O&&!Mt(u.method)&&(R||D),J=Y&&Y.length>0&&!D&&!R;return V&&(Mt(u.method)||!J)?a1({request:u,unstable_pattern:o,match:c,lazyHandlerPromise:v?.handler,lazyRoutePromise:v?.route,handlerOverride:O,scopedContext:d}):Promise.resolve({type:"data",result:void 0})}}}function $l(l,i,u,o,c,f,d,m=null){return o.map(g=>g.route.id!==c.route.id?{...g,shouldLoad:!1,shouldRevalidateArgs:m,shouldCallHandler:()=>!1,_lazyPromises:vg(l,i,u,g,f),resolve:()=>Promise.resolve({type:"data",result:void 0})}:wc(l,i,u,sr(o),g,f,d,!0,m))}async function t1(l,i,u,o,c,f){u.some(p=>p._lazyPromises?.middleware)&&await Promise.all(u.map(p=>p._lazyPromises?.middleware));let d={request:i,unstable_pattern:sr(u),params:u[0].params,context:c,matches:u},g=await l({...d,fetcherKey:o,runClientMiddleware:p=>{let b=d;return gg(b,()=>p({...b,fetcherKey:o,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(u.flatMap(p=>[p._lazyPromises?.handler,p._lazyPromises?.route]))}catch{}return g}async function a1({request:l,unstable_pattern:i,match:u,lazyHandlerPromise:o,lazyRoutePromise:c,handlerOverride:f,scopedContext:d}){let m,g,p=Mt(l.method),b=p?"action":"loader",v=O=>{let R,D=new Promise((J,$)=>R=$);g=()=>R(),l.signal.addEventListener("abort",g);let Y=J=>typeof O!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${b}" [routeId: ${u.route.id}]`)):O({request:l,unstable_pattern:i,params:u.params,context:d},...J!==void 0?[J]:[]),V=(async()=>{try{return{type:"data",result:await(f?f($=>Y($)):Y())}}catch(J){return{type:"error",result:J}}})();return Promise.race([V,D])};try{let O=p?u.route.action:u.route.loader;if(o||c)if(O){let R,[D]=await Promise.all([v(O).catch(Y=>{R=Y}),o,c]);if(R!==void 0)throw R;m=D}else{await o;let R=p?u.route.action:u.route.loader;if(R)[m]=await Promise.all([v(R),c]);else if(b==="action"){let D=new URL(l.url),Y=D.pathname+D.search;throw sa(405,{method:l.method,pathname:Y,routeId:u.route.id})}else return{type:"data",result:void 0}}else if(O)m=await v(O);else{let R=new URL(l.url),D=R.pathname+R.search;throw sa(404,{pathname:D})}}catch(O){return{type:"error",result:O}}finally{g&&l.signal.removeEventListener("abort",g)}return m}async function n1(l){let i=l.headers.get("Content-Type");return i&&/\bapplication\/json\b/.test(i)?l.body==null?null:l.json():l.text()}async function l1(l){let{result:i,type:u}=l;if(Nc(i)){let o;try{o=await n1(i)}catch(c){return{type:"error",error:c}}return u==="error"?{type:"error",error:new or(i.status,i.statusText,o),statusCode:i.status,headers:i.headers}:{type:"data",data:o,statusCode:i.status,headers:i.headers}}return u==="error"?Op(i)?i.data instanceof Error?{type:"error",error:i.data,statusCode:i.init?.status,headers:i.init?.headers?new Headers(i.init.headers):void 0}:{type:"error",error:o1(i),statusCode:lr(i)?i.status:void 0,headers:i.init?.headers?new Headers(i.init.headers):void 0}:{type:"error",error:i,statusCode:lr(i)?i.status:void 0}:Op(i)?{type:"data",data:i.data,statusCode:i.init?.status,headers:i.init?.headers?new Headers(i.init.headers):void 0}:{type:"data",data:i}}function i1(l,i,u,o,c){let f=l.headers.get("Location");if(Ce(f,"Redirects returned/thrown from loaders/actions must have a Location header"),!Mc(f)){let d=o.slice(0,o.findIndex(m=>m.route.id===u)+1);f=_c(new URL(i.url),d,c,f),l.headers.set("Location",f)}return l}function bp(l,i,u,o){let c=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(Mc(l)){let f=l,d=f.startsWith("//")?new URL(i.protocol+f):new URL(f);if(c.includes(d.protocol))throw new Error("Invalid redirect location");let m=ca(d.pathname,u)!=null;if(d.origin===i.origin&&m)return d.pathname+d.search+d.hash}try{let f=o.createURL(l);if(c.includes(f.protocol))throw new Error("Invalid redirect location")}catch{}return l}function Xl(l,i,u,o){let c=l.createURL(bg(i)).toString(),f={signal:u};if(o&&Mt(o.formMethod)){let{formMethod:d,formEncType:m}=o;f.method=d.toUpperCase(),m==="application/json"?(f.headers=new Headers({"Content-Type":m}),f.body=JSON.stringify(o.json)):m==="text/plain"?f.body=o.text:m==="application/x-www-form-urlencoded"&&o.formData?f.body=Cc(o.formData):f.body=o.formData}return new Request(c,f)}function Cc(l){let i=new URLSearchParams;for(let[u,o]of l.entries())i.append(u,typeof o=="string"?o:o.name);return i}function Sp(l){let i=new FormData;for(let[u,o]of l.entries())i.append(u,o);return i}function r1(l,i,u,o=!1,c=!1){let f={},d=null,m,g=!1,p={},b=u&&Wt(u[1])?u[1].error:void 0;return l.forEach(v=>{if(!(v.route.id in i))return;let O=v.route.id,R=i[O];if(Ce(!el(R),"Cannot handle redirect results in processLoaderData"),Wt(R)){let D=R.error;if(b!==void 0&&(D=b,b=void 0),d=d||{},c)d[O]=D;else{let Y=zn(l,O);d[Y.route.id]==null&&(d[Y.route.id]=D)}o||(f[O]=dg),g||(g=!0,m=lr(R.error)?R.error.status:500),R.headers&&(p[O]=R.headers)}else f[O]=R.data,R.statusCode&&R.statusCode!==200&&!g&&(m=R.statusCode),R.headers&&(p[O]=R.headers)}),b!==void 0&&u&&(d={[u[0]]:b},u[2]&&(f[u[2]]=void 0)),{loaderData:f,errors:d,statusCode:m||200,loaderHeaders:p}}function xp(l,i,u,o,c,f){let{loaderData:d,errors:m}=r1(i,u,o);return c.filter(g=>!g.matches||g.matches.some(p=>p.shouldLoad)).forEach(g=>{let{key:p,match:b,controller:v}=g;if(v&&v.signal.aborted)return;let O=f[p];if(Ce(O,"Did not find corresponding fetcher result"),Wt(O)){let R=zn(l.matches,b?.route.id);m&&m[R.route.id]||(m={...m,[R.route.id]:O.error}),l.fetchers.delete(p)}else if(el(O))Ce(!1,"Unhandled fetcher revalidation redirect");else{let R=Fa(O.data);l.fetchers.set(p,R)}}),{loaderData:d,errors:m}}function Ep(l,i,u,o){let c=Object.entries(i).filter(([,f])=>f!==dg).reduce((f,[d,m])=>(f[d]=m,f),{});for(let f of u){let d=f.route.id;if(!i.hasOwnProperty(d)&&l.hasOwnProperty(d)&&f.route.loader&&(c[d]=l[d]),o&&o.hasOwnProperty(d))break}return c}function Rp(l){return l?Wt(l[1])?{actionData:{}}:{actionData:{[l[0]]:l[1].data}}:{}}function zn(l,i){return(i?l.slice(0,l.findIndex(o=>o.route.id===i)+1):[...l]).reverse().find(o=>o.route.hasErrorBoundary===!0)||l[0]}function Mu(l){let i=l.length===1?l[0]:l.find(u=>u.index||!u.path||u.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:i}],route:i}}function sa(l,{pathname:i,routeId:u,method:o,type:c,message:f}={}){let d="Unknown Server Error",m="Unknown @remix-run/router error";return l===400?(d="Bad Request",o&&i&&u?m=`You made a ${o} request to "${i}" but did not provide a \`loader\` for route "${u}", so there is no way to handle the request.`:c==="invalid-body"&&(m="Unable to encode submission body")):l===403?(d="Forbidden",m=`Route "${u}" does not match URL "${i}"`):l===404?(d="Not Found",m=`No route matches URL "${i}"`):l===405&&(d="Method Not Allowed",o&&i&&u?m=`You made a ${o.toUpperCase()} request to "${i}" but did not provide an \`action\` for route "${u}", so there is no way to handle the request.`:o&&(m=`Invalid request method "${o.toUpperCase()}"`)),new or(l||500,d,new Error(m),!0)}function Au(l){let i=Object.entries(l);for(let u=i.length-1;u>=0;u--){let[o,c]=i[u];if(el(c))return{key:o,result:c}}}function bg(l){let i=typeof l=="string"?Pa(l):l;return wa({...i,hash:""})}function u1(l,i){return l.pathname!==i.pathname||l.search!==i.search?!1:l.hash===""?i.hash!=="":l.hash===i.hash?!0:i.hash!==""}function o1(l){return new or(l.init?.status??500,l.init?.statusText??"Internal Server Error",l.data)}function s1(l){return l!=null&&typeof l=="object"&&Object.entries(l).every(([i,u])=>typeof i=="string"&&c1(u))}function c1(l){return l!=null&&typeof l=="object"&&"type"in l&&"result"in l&&(l.type==="data"||l.type==="error")}function f1(l){return Nc(l.result)&&cg.has(l.result.status)}function Wt(l){return l.type==="error"}function el(l){return(l&&l.type)==="redirect"}function Op(l){return typeof l=="object"&&l!=null&&"type"in l&&"data"in l&&"init"in l&&l.type==="DataWithResponseInit"}function Nc(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.headers=="object"&&typeof l.body<"u"}function d1(l){return cg.has(l)}function h1(l){return Nc(l)&&d1(l.status)&&l.headers.has("Location")}function m1(l){return Kb.has(l.toUpperCase())}function Mt(l){return Vb.has(l.toUpperCase())}function Lc(l){return new URLSearchParams(l).getAll("index").some(i=>i==="")}function ju(l,i){let u=typeof i=="string"?Pa(i).search:i.search;if(l[l.length-1].route.index&&Lc(u||""))return l[l.length-1];let o=ig(l);return o[o.length-1]}function Tp(l){let{formMethod:i,formAction:u,formEncType:o,text:c,formData:f,json:d}=l;if(!(!i||!u||!o)){if(c!=null)return{formMethod:i,formAction:u,formEncType:o,formData:void 0,json:void 0,text:c};if(f!=null)return{formMethod:i,formAction:u,formEncType:o,formData:f,json:void 0,text:void 0};if(d!==void 0)return{formMethod:i,formAction:u,formEncType:o,formData:void 0,json:d,text:void 0}}}function bc(l,i){return i?{state:"loading",location:l,formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}:{state:"loading",location:l,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function p1(l,i){return{state:"submitting",location:l,formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}}function Zi(l,i){return l?{state:"loading",formMethod:l.formMethod,formAction:l.formAction,formEncType:l.formEncType,formData:l.formData,json:l.json,text:l.text,data:i}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:i}}function g1(l,i){return{state:"submitting",formMethod:l.formMethod,formAction:l.formAction,formEncType:l.formEncType,formData:l.formData,json:l.json,text:l.text,data:i?i.data:void 0}}function Fa(l){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:l}}function y1(l,i){try{let u=l.sessionStorage.getItem(fg);if(u){let o=JSON.parse(u);for(let[c,f]of Object.entries(o||{}))f&&Array.isArray(f)&&i.set(c,new Set(f||[]))}}catch{}}function v1(l,i){if(i.size>0){let u={};for(let[o,c]of i)u[o]=[...c];try{l.sessionStorage.setItem(fg,JSON.stringify(u))}catch(o){ct(!1,`Failed to save applied view transitions in sessionStorage (${o}).`)}}}function _p(){let l,i,u=new Promise((o,c)=>{l=async f=>{o(f);try{await u}catch{}},i=async f=>{c(f);try{await u}catch{}}});return{promise:u,resolve:l,reject:i}}var al=C.createContext(null);al.displayName="DataRouter";var cr=C.createContext(null);cr.displayName="DataRouterState";var Sg=C.createContext(!1);function b1(){return C.useContext(Sg)}var jc=C.createContext({isTransitioning:!1});jc.displayName="ViewTransition";var xg=C.createContext(new Map);xg.displayName="Fetchers";var S1=C.createContext(null);S1.displayName="Await";var Pt=C.createContext(null);Pt.displayName="Navigation";var Xu=C.createContext(null);Xu.displayName="Location";var va=C.createContext({outlet:null,matches:[],isDataRoute:!1});va.displayName="Route";var Uc=C.createContext(null);Uc.displayName="RouteError";var Eg="REACT_ROUTER_ERROR",x1="REDIRECT",E1="ROUTE_ERROR_RESPONSE";function R1(l){if(l.startsWith(`${Eg}:${x1}:{`))try{let i=JSON.parse(l.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function O1(l){if(l.startsWith(`${Eg}:${E1}:{`))try{let i=JSON.parse(l.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new or(i.status,i.statusText,i.data)}catch{}}function T1(l,{relative:i}={}){Ce(Jl(),"useHref() may be used only in the context of a <Router> component.");let{basename:u,navigator:o}=C.useContext(Pt),{hash:c,pathname:f,search:d}=fr(l,{relative:i}),m=f;return u!=="/"&&(m=f==="/"?u:ya([u,f])),o.createHref({pathname:m,search:d,hash:c})}function Jl(){return C.useContext(Xu)!=null}function Ca(){return Ce(Jl(),"useLocation() may be used only in the context of a <Router> component."),C.useContext(Xu).location}var Rg="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Og(l){C.useContext(Pt).static||C.useLayoutEffect(l)}function Hc(){let{isDataRoute:l}=C.useContext(va);return l?Y1():_1()}function _1(){Ce(Jl(),"useNavigate() may be used only in the context of a <Router> component.");let l=C.useContext(al),{basename:i,navigator:u}=C.useContext(Pt),{matches:o}=C.useContext(va),{pathname:c}=Ca(),f=JSON.stringify(Ku(o)),d=C.useRef(!1);return Og(()=>{d.current=!0}),C.useCallback((g,p={})=>{if(ct(d.current,Rg),!d.current)return;if(typeof g=="number"){u.go(g);return}let b=ur(g,JSON.parse(f),c,p.relative==="path");l==null&&i!=="/"&&(b.pathname=b.pathname==="/"?i:ya([i,b.pathname])),(p.replace?u.replace:u.push)(b,p.state,p)},[i,u,f,c,l])}var w1=C.createContext(null);function C1(l){let i=C.useContext(va).outlet;return C.useMemo(()=>i&&C.createElement(w1.Provider,{value:l},i),[i,l])}function fr(l,{relative:i}={}){let{matches:u}=C.useContext(va),{pathname:o}=Ca(),c=JSON.stringify(Ku(u));return C.useMemo(()=>ur(l,JSON.parse(c),o,i==="path"),[l,c,o,i])}function z1(l,i,u){Ce(Jl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=C.useContext(Pt),{matches:c}=C.useContext(va),f=c[c.length-1],d=f?f.params:{},m=f?f.pathname:"/",g=f?f.pathnameBase:"/",p=f&&f.route;{let V=p&&p.path||"";_g(m,!p||V.endsWith("*")||V.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${V}">) 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.
11
+
12
+ Please change the parent <Route path="${V}"> to <Route path="${V==="/"?"*":`${V}/*`}">.`)}let b=Ca(),v;v=b;let O=v.pathname||"/",R=O;if(g!=="/"){let V=g.replace(/^\//,"").split("/");R="/"+O.replace(/^\//,"").split("/").slice(V.length).join("/")}let D=Cn(l,{pathname:R});return ct(p||D!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),ct(D==null||D[D.length-1].route.element!==void 0||D[D.length-1].route.Component!==void 0||D[D.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.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.`),L1(D&&D.map(V=>Object.assign({},V,{params:Object.assign({},d,V.params),pathname:ya([g,o.encodeLocation?o.encodeLocation(V.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:V.pathname]),pathnameBase:V.pathnameBase==="/"?g:ya([g,o.encodeLocation?o.encodeLocation(V.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:V.pathnameBase])})),c,u)}function D1(){let l=q1(),i=lr(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),u=l instanceof Error?l.stack:null,o="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:o},f={padding:"2px 4px",backgroundColor:o},d=null;return console.error("Error handled by React Router default ErrorBoundary:",l),d=C.createElement(C.Fragment,null,C.createElement("p",null,"💿 Hey developer 👋"),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C.createElement("code",{style:f},"ErrorBoundary")," or"," ",C.createElement("code",{style:f},"errorElement")," prop on your route.")),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},i),u?C.createElement("pre",{style:c},u):null,d)}var M1=C.createElement(D1,null),Tg=class extends C.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,i){return i.location!==l.location||i.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:i.error,location:i.location,revalidation:l.revalidation||i.revalidation}}componentDidCatch(l,i){this.props.onError?this.props.onError(l,i):console.error("React Router caught the following error during render",l)}render(){let l=this.state.error;if(this.context&&typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){const u=O1(l.digest);u&&(l=u)}let i=l!==void 0?C.createElement(va.Provider,{value:this.props.routeContext},C.createElement(Uc.Provider,{value:l,children:this.props.component})):this.props.children;return this.context?C.createElement(A1,{error:l},i):i}};Tg.contextType=Sg;var Sc=new WeakMap;function A1({children:l,error:i}){let{basename:u}=C.useContext(Pt);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let o=R1(i.digest);if(o){let c=Sc.get(i);if(c)throw c;let f=ug(o.location,u);if(rg&&!Sc.get(i))if(f.isExternal||o.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:o.replace}));throw Sc.set(i,d),d}return C.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return l}function N1({routeContext:l,match:i,children:u}){let o=C.useContext(al);return o&&o.static&&o.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=i.route.id),C.createElement(va.Provider,{value:l},u)}function L1(l,i=[],u){let o=u?.state;if(l==null){if(!o)return null;if(o.errors)l=o.matches;else if(i.length===0&&!o.initialized&&o.matches.length>0)l=o.matches;else return null}let c=l,f=o?.errors;if(f!=null){let b=c.findIndex(v=>v.route.id&&f?.[v.route.id]!==void 0);Ce(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),c=c.slice(0,Math.min(c.length,b+1))}let d=!1,m=-1;if(u&&o){d=o.renderFallback;for(let b=0;b<c.length;b++){let v=c[b];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(m=b),v.route.id){let{loaderData:O,errors:R}=o,D=v.route.loader&&!O.hasOwnProperty(v.route.id)&&(!R||R[v.route.id]===void 0);if(v.route.lazy||D){u.isStatic&&(d=!0),m>=0?c=c.slice(0,m+1):c=[c[0]];break}}}}let g=u?.onError,p=o&&g?(b,v)=>{g(b,{location:o.location,params:o.matches?.[0]?.params??{},unstable_pattern:sr(o.matches),errorInfo:v})}:void 0;return c.reduceRight((b,v,O)=>{let R,D=!1,Y=null,V=null;o&&(R=f&&v.route.id?f[v.route.id]:void 0,Y=v.route.errorElement||M1,d&&(m<0&&O===0?(_g("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),D=!0,V=null):m===O&&(D=!0,V=v.route.hydrateFallbackElement||null)));let J=i.concat(c.slice(0,O+1)),$=()=>{let W;return R?W=Y:D?W=V:v.route.Component?W=C.createElement(v.route.Component,null):v.route.element?W=v.route.element:W=b,C.createElement(N1,{match:v,routeContext:{outlet:b,matches:J,isDataRoute:o!=null},children:W})};return o&&(v.route.ErrorBoundary||v.route.errorElement||O===0)?C.createElement(Tg,{location:o.location,revalidation:o.revalidation,component:Y,error:R,children:$(),routeContext:{outlet:null,matches:J,isDataRoute:!0},onError:p}):$()},null)}function Bc(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function j1(l){let i=C.useContext(al);return Ce(i,Bc(l)),i}function U1(l){let i=C.useContext(cr);return Ce(i,Bc(l)),i}function H1(l){let i=C.useContext(va);return Ce(i,Bc(l)),i}function qc(l){let i=H1(l),u=i.matches[i.matches.length-1];return Ce(u.route.id,`${l} can only be used on routes that contain a unique "id"`),u.route.id}function B1(){return qc("useRouteId")}function q1(){let l=C.useContext(Uc),i=U1("useRouteError"),u=qc("useRouteError");return l!==void 0?l:i.errors?.[u]}function Y1(){let{router:l}=j1("useNavigate"),i=qc("useNavigate"),u=C.useRef(!1);return Og(()=>{u.current=!0}),C.useCallback(async(c,f={})=>{ct(u.current,Rg),u.current&&(typeof c=="number"?await l.navigate(c):await l.navigate(c,{fromRouteId:i,...f}))},[l,i])}var wp={};function _g(l,i,u){!i&&!wp[l]&&(wp[l]=!0,ct(!1,u))}var Cp={};function zp(l,i){!l&&!Cp[i]&&(Cp[i]=!0,console.warn(i))}var k1="useOptimistic",Dp=y0[k1],V1=()=>{};function G1(l){return Dp?Dp(l):[l,V1]}function K1(l){let i={hasErrorBoundary:l.hasErrorBoundary||l.ErrorBoundary!=null||l.errorElement!=null};return l.Component&&(l.element&&ct(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(i,{element:C.createElement(l.Component),Component:void 0})),l.HydrateFallback&&(l.hydrateFallbackElement&&ct(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(i,{hydrateFallbackElement:C.createElement(l.HydrateFallback),HydrateFallback:void 0})),l.ErrorBoundary&&(l.errorElement&&ct(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(i,{errorElement:C.createElement(l.ErrorBoundary),ErrorBoundary:void 0})),i}var X1=["HydrateFallback","hydrateFallbackElement"],Q1=class{constructor(){this.status="pending",this.promise=new Promise((l,i)=>{this.resolve=u=>{this.status==="pending"&&(this.status="resolved",l(u))},this.reject=u=>{this.status==="pending"&&(this.status="rejected",i(u))}})}};function Z1({router:l,flushSync:i,onError:u,unstable_useTransitions:o}){o=b1()||o;let[f,d]=C.useState(l.state),[m,g]=G1(f),[p,b]=C.useState(),[v,O]=C.useState({isTransitioning:!1}),[R,D]=C.useState(),[Y,V]=C.useState(),[J,$]=C.useState(),W=C.useRef(new Map),fe=C.useCallback((z,{deletedFetchers:ee,newErrors:ae,flushSync:xe,viewTransitionOpts:re})=>{ae&&u&&Object.values(ae).forEach(Se=>u(Se,{location:z.location,params:z.matches[0]?.params??{},unstable_pattern:sr(z.matches)})),z.fetchers.forEach((Se,ye)=>{Se.data!==void 0&&W.current.set(ye,Se.data)}),ee.forEach(Se=>W.current.delete(Se)),zp(xe===!1||i!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let ze=l.window!=null&&l.window.document!=null&&typeof l.window.document.startViewTransition=="function";if(zp(re==null||ze,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!re||!ze){i&&xe?i(()=>d(z)):o===!1?d(z):C.startTransition(()=>{o===!0&&g(Se=>Mp(Se,z)),d(z)});return}if(i&&xe){i(()=>{Y&&(R?.resolve(),Y.skipTransition()),O({isTransitioning:!0,flushSync:!0,currentLocation:re.currentLocation,nextLocation:re.nextLocation})});let Se=l.window.document.startViewTransition(()=>{i(()=>d(z))});Se.finished.finally(()=>{i(()=>{D(void 0),V(void 0),b(void 0),O({isTransitioning:!1})})}),i(()=>V(Se));return}Y?(R?.resolve(),Y.skipTransition(),$({state:z,currentLocation:re.currentLocation,nextLocation:re.nextLocation})):(b(z),O({isTransitioning:!0,flushSync:!1,currentLocation:re.currentLocation,nextLocation:re.nextLocation}))},[l.window,i,Y,R,o,g,u]);C.useLayoutEffect(()=>l.subscribe(fe),[l,fe]),C.useEffect(()=>{v.isTransitioning&&!v.flushSync&&D(new Q1)},[v]),C.useEffect(()=>{if(R&&p&&l.window){let z=p,ee=R.promise,ae=l.window.document.startViewTransition(async()=>{o===!1?d(z):C.startTransition(()=>{o===!0&&g(xe=>Mp(xe,z)),d(z)}),await ee});ae.finished.finally(()=>{D(void 0),V(void 0),b(void 0),O({isTransitioning:!1})}),V(ae)}},[p,R,l.window,o,g]),C.useEffect(()=>{R&&p&&m.location.key===p.location.key&&R.resolve()},[R,Y,m.location,p]),C.useEffect(()=>{!v.isTransitioning&&J&&(b(J.state),O({isTransitioning:!0,flushSync:!1,currentLocation:J.currentLocation,nextLocation:J.nextLocation}),$(void 0))},[v.isTransitioning,J]);let ce=C.useMemo(()=>({createHref:l.createHref,encodeLocation:l.encodeLocation,go:z=>l.navigate(z),push:(z,ee,ae)=>l.navigate(z,{state:ee,preventScrollReset:ae?.preventScrollReset}),replace:(z,ee,ae)=>l.navigate(z,{replace:!0,state:ee,preventScrollReset:ae?.preventScrollReset})}),[l]),ge=l.basename||"/",le=C.useMemo(()=>({router:l,navigator:ce,static:!1,basename:ge,onError:u}),[l,ce,ge,u]);return C.createElement(C.Fragment,null,C.createElement(al.Provider,{value:le},C.createElement(cr.Provider,{value:m},C.createElement(xg.Provider,{value:W.current},C.createElement(jc.Provider,{value:v},C.createElement(F1,{basename:ge,location:m.location,navigationType:m.historyAction,navigator:ce,unstable_useTransitions:o},C.createElement($1,{routes:l.routes,future:l.future,state:m,isStatic:!1,onError:u})))))),null)}function Mp(l,i){return{...l,navigation:i.navigation.state!=="idle"?i.navigation:l.navigation,revalidation:i.revalidation!=="idle"?i.revalidation:l.revalidation,actionData:i.navigation.state!=="submitting"?i.actionData:l.actionData,fetchers:i.fetchers}}var $1=C.memo(J1);function J1({routes:l,future:i,state:u,isStatic:o,onError:c}){return z1(l,void 0,{state:u,isStatic:o,onError:c})}function Ap({to:l,replace:i,state:u,relative:o}){Ce(Jl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=C.useContext(Pt);ct(!c,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=C.useContext(va),{pathname:d}=Ca(),m=Hc(),g=ur(l,Ku(f),d,o==="path"),p=JSON.stringify(g);return C.useEffect(()=>{m(JSON.parse(p),{replace:i,state:u,relative:o})},[m,p,o,i,u]),null}function wg(l){return C1(l.context)}function F1({basename:l="/",children:i=null,location:u,navigationType:o="POP",navigator:c,static:f=!1,unstable_useTransitions:d}){Ce(!Jl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=l.replace(/^\/*/,"/"),g=C.useMemo(()=>({basename:m,navigator:c,static:f,unstable_useTransitions:d,future:{}}),[m,c,f,d]);typeof u=="string"&&(u=Pa(u));let{pathname:p="/",search:b="",hash:v="",state:O=null,key:R="default",unstable_mask:D}=u,Y=C.useMemo(()=>{let V=ca(p,m);return V==null?null:{location:{pathname:V,search:b,hash:v,state:O,key:R,unstable_mask:D},navigationType:o}},[m,p,b,v,O,R,o,D]);return ct(Y!=null,`<Router basename="${m}"> is not able to match the URL "${p}${b}${v}" because it does not start with the basename, so the <Router> won't render anything.`),Y==null?null:C.createElement(Pt.Provider,{value:g},C.createElement(Xu.Provider,{children:i,value:Y}))}var Uu="get",Hu="application/x-www-form-urlencoded";function Qu(l){return typeof HTMLElement<"u"&&l instanceof HTMLElement}function W1(l){return Qu(l)&&l.tagName.toLowerCase()==="button"}function P1(l){return Qu(l)&&l.tagName.toLowerCase()==="form"}function I1(l){return Qu(l)&&l.tagName.toLowerCase()==="input"}function eS(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function tS(l,i){return l.button===0&&(!i||i==="_self")&&!eS(l)}var Nu=null;function aS(){if(Nu===null)try{new FormData(document.createElement("form"),0),Nu=!1}catch{Nu=!0}return Nu}var nS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function xc(l){return l!=null&&!nS.has(l)?(ct(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Hu}"`),null):l}function lS(l,i){let u,o,c,f,d;if(P1(l)){let m=l.getAttribute("action");o=m?ca(m,i):null,u=l.getAttribute("method")||Uu,c=xc(l.getAttribute("enctype"))||Hu,f=new FormData(l)}else if(W1(l)||I1(l)&&(l.type==="submit"||l.type==="image")){let m=l.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=l.getAttribute("formaction")||m.getAttribute("action");if(o=g?ca(g,i):null,u=l.getAttribute("formmethod")||m.getAttribute("method")||Uu,c=xc(l.getAttribute("formenctype"))||xc(m.getAttribute("enctype"))||Hu,f=new FormData(m,l),!aS()){let{name:p,type:b,value:v}=l;if(b==="image"){let O=p?`${p}.`:"";f.append(`${O}x`,"0"),f.append(`${O}y`,"0")}else p&&f.append(p,v)}}else{if(Qu(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');u=Uu,o=null,c=Hu,d=l}return f&&c==="text/plain"&&(d=f,f=void 0),{action:o,method:u.toLowerCase(),encType:c,formData:f,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Yc(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}function iS(l,i,u,o){let c=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return u?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${o}`:c.pathname=`${c.pathname}.${o}`:c.pathname==="/"?c.pathname=`_root.${o}`:i&&ca(c.pathname,i)==="/"?c.pathname=`${i.replace(/\/$/,"")}/_root.${o}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${o}`,c}async function rS(l,i){if(l.id in i)return i[l.id];try{let u=await import(l.module);return i[l.id]=u,u}catch(u){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(u),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function uS(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function oS(l,i,u){let o=await Promise.all(l.map(async c=>{let f=i.routes[c.route.id];if(f){let d=await rS(f,u);return d.links?d.links():[]}return[]}));return dS(o.flat(1).filter(uS).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function Np(l,i,u,o,c,f){let d=(g,p)=>u[p]?g.route.id!==u[p].route.id:!0,m=(g,p)=>u[p].pathname!==g.pathname||u[p].route.path?.endsWith("*")&&u[p].params["*"]!==g.params["*"];return f==="assets"?i.filter((g,p)=>d(g,p)||m(g,p)):f==="data"?i.filter((g,p)=>{let b=o.routes[g.route.id];if(!b||!b.hasLoader)return!1;if(d(g,p)||m(g,p))return!0;if(g.route.shouldRevalidate){let v=g.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:u[0]?.params||{},nextUrl:new URL(l,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function sS(l,i,{includeHydrateFallback:u}={}){return cS(l.map(o=>{let c=i.routes[o.route.id];if(!c)return[];let f=[c.module];return c.clientActionModule&&(f=f.concat(c.clientActionModule)),c.clientLoaderModule&&(f=f.concat(c.clientLoaderModule)),u&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function cS(l){return[...new Set(l)]}function fS(l){let i={},u=Object.keys(l).sort();for(let o of u)i[o]=l[o];return i}function dS(l,i){let u=new Set;return new Set(i),l.reduce((o,c)=>{let f=JSON.stringify(fS(c));return u.has(f)||(u.add(f),o.push({key:f,link:c})),o},[])}function Cg(){let l=C.useContext(al);return Yc(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function hS(){let l=C.useContext(cr);return Yc(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var kc=C.createContext(void 0);kc.displayName="FrameworkContext";function zg(){let l=C.useContext(kc);return Yc(l,"You must render this element inside a <HydratedRouter> element"),l}function mS(l,i){let u=C.useContext(kc),[o,c]=C.useState(!1),[f,d]=C.useState(!1),{onFocus:m,onBlur:g,onMouseEnter:p,onMouseLeave:b,onTouchStart:v}=i,O=C.useRef(null);C.useEffect(()=>{if(l==="render"&&d(!0),l==="viewport"){let Y=J=>{J.forEach($=>{d($.isIntersecting)})},V=new IntersectionObserver(Y,{threshold:.5});return O.current&&V.observe(O.current),()=>{V.disconnect()}}},[l]),C.useEffect(()=>{if(o){let Y=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(Y)}}},[o]);let R=()=>{c(!0)},D=()=>{c(!1),d(!1)};return u?l!=="intent"?[f,O,{}]:[f,O,{onFocus:$i(m,R),onBlur:$i(g,D),onMouseEnter:$i(p,R),onMouseLeave:$i(b,D),onTouchStart:$i(v,R)}]:[!1,O,{}]}function $i(l,i){return u=>{l&&l(u),u.defaultPrevented||i(u)}}function pS({page:l,...i}){let{router:u}=Cg(),o=C.useMemo(()=>Cn(u.routes,l,u.basename),[u.routes,l,u.basename]);return o?C.createElement(yS,{page:l,matches:o,...i}):null}function gS(l){let{manifest:i,routeModules:u}=zg(),[o,c]=C.useState([]);return C.useEffect(()=>{let f=!1;return oS(l,i,u).then(d=>{f||c(d)}),()=>{f=!0}},[l,i,u]),o}function yS({page:l,matches:i,...u}){let o=Ca(),{future:c,manifest:f,routeModules:d}=zg(),{basename:m}=Cg(),{loaderData:g,matches:p}=hS(),b=C.useMemo(()=>Np(l,i,p,f,o,"data"),[l,i,p,f,o]),v=C.useMemo(()=>Np(l,i,p,f,o,"assets"),[l,i,p,f,o]),O=C.useMemo(()=>{if(l===o.pathname+o.search+o.hash)return[];let Y=new Set,V=!1;if(i.forEach($=>{let W=f.routes[$.route.id];!W||!W.hasLoader||(!b.some(fe=>fe.route.id===$.route.id)&&$.route.id in g&&d[$.route.id]?.shouldRevalidate||W.hasClientLoader?V=!0:Y.add($.route.id))}),Y.size===0)return[];let J=iS(l,m,c.unstable_trailingSlashAwareDataRequests,"data");return V&&Y.size>0&&J.searchParams.set("_routes",i.filter($=>Y.has($.route.id)).map($=>$.route.id).join(",")),[J.pathname+J.search]},[m,c.unstable_trailingSlashAwareDataRequests,g,o,f,b,i,l,d]),R=C.useMemo(()=>sS(v,f),[v,f]),D=gS(v);return C.createElement(C.Fragment,null,O.map(Y=>C.createElement("link",{key:Y,rel:"prefetch",as:"fetch",href:Y,...u})),R.map(Y=>C.createElement("link",{key:Y,rel:"modulepreload",href:Y,...u})),D.map(({key:Y,link:V})=>C.createElement("link",{key:Y,nonce:u.nonce,...V,crossOrigin:V.crossOrigin??u.crossOrigin})))}function vS(...l){return i=>{l.forEach(u=>{typeof u=="function"?u(i):u!=null&&(u.current=i)})}}var bS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{bS&&(window.__reactRouterVersion="7.13.1")}catch{}function SS(l,i){return $b({basename:i?.basename,getContext:i?.getContext,future:i?.future,history:cb({window:i?.window}),hydrationData:xS(),routes:l,mapRouteProperties:K1,hydrationRouteProperties:X1,dataStrategy:i?.dataStrategy,patchRoutesOnNavigation:i?.patchRoutesOnNavigation,window:i?.window,unstable_instrumentations:i?.unstable_instrumentations}).initialize()}function xS(){let l=window?.__staticRouterHydrationData;return l&&l.errors&&(l={...l,errors:ES(l.errors)}),l}function ES(l){if(!l)return null;let i=Object.entries(l),u={};for(let[o,c]of i)if(c&&c.__type==="RouteErrorResponse")u[o]=new or(c.status,c.statusText,c.data,c.internal===!0);else if(c&&c.__type==="Error"){if(c.__subType){let f=window[c.__subType];if(typeof f=="function")try{let d=new f(c.message);d.stack="",u[o]=d}catch{}}if(u[o]==null){let f=new Error(c.message);f.stack="",u[o]=f}}else u[o]=c;return u}var Dg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Wa=C.forwardRef(function({onClick:i,discover:u="render",prefetch:o="none",relative:c,reloadDocument:f,replace:d,unstable_mask:m,state:g,target:p,to:b,preventScrollReset:v,viewTransition:O,unstable_defaultShouldRevalidate:R,...D},Y){let{basename:V,navigator:J,unstable_useTransitions:$}=C.useContext(Pt),W=typeof b=="string"&&Dg.test(b),fe=ug(b,V);b=fe.to;let ce=T1(b,{relative:c}),ge=Ca(),le=null;if(m){let ye=ur(m,[],ge.unstable_mask?ge.unstable_mask.pathname:"/",!0);V!=="/"&&(ye.pathname=ye.pathname==="/"?V:ya([V,ye.pathname])),le=J.createHref(ye)}let[z,ee,ae]=mS(o,D),xe=TS(b,{replace:d,unstable_mask:m,state:g,target:p,preventScrollReset:v,relative:c,viewTransition:O,unstable_defaultShouldRevalidate:R,unstable_useTransitions:$});function re(ye){i&&i(ye),ye.defaultPrevented||xe(ye)}let ze=!(fe.isExternal||f),Se=C.createElement("a",{...D,...ae,href:(ze?le:void 0)||fe.absoluteURL||ce,onClick:ze?re:i,ref:vS(Y,ee),target:p,"data-discover":!W&&u==="render"?"true":void 0});return z&&!W?C.createElement(C.Fragment,null,Se,C.createElement(pS,{page:ce})):Se});Wa.displayName="Link";var ir=C.forwardRef(function({"aria-current":i="page",caseSensitive:u=!1,className:o="",end:c=!1,style:f,to:d,viewTransition:m,children:g,...p},b){let v=fr(d,{relative:p.relative}),O=Ca(),R=C.useContext(cr),{navigator:D,basename:Y}=C.useContext(Pt),V=R!=null&&DS(v)&&m===!0,J=D.encodeLocation?D.encodeLocation(v).pathname:v.pathname,$=O.pathname,W=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;u||($=$.toLowerCase(),W=W?W.toLowerCase():null,J=J.toLowerCase()),W&&Y&&(W=ca(W,Y)||W);const fe=J!=="/"&&J.endsWith("/")?J.length-1:J.length;let ce=$===J||!c&&$.startsWith(J)&&$.charAt(fe)==="/",ge=W!=null&&(W===J||!c&&W.startsWith(J)&&W.charAt(J.length)==="/"),le={isActive:ce,isPending:ge,isTransitioning:V},z=ce?i:void 0,ee;typeof o=="function"?ee=o(le):ee=[o,ce?"active":null,ge?"pending":null,V?"transitioning":null].filter(Boolean).join(" ");let ae=typeof f=="function"?f(le):f;return C.createElement(Wa,{...p,"aria-current":z,className:ee,ref:b,style:ae,to:d,viewTransition:m},typeof g=="function"?g(le):g)});ir.displayName="NavLink";var RS=C.forwardRef(({discover:l="render",fetcherKey:i,navigate:u,reloadDocument:o,replace:c,state:f,method:d=Uu,action:m,onSubmit:g,relative:p,preventScrollReset:b,viewTransition:v,unstable_defaultShouldRevalidate:O,...R},D)=>{let{unstable_useTransitions:Y}=C.useContext(Pt),V=CS(),J=zS(m,{relative:p}),$=d.toLowerCase()==="get"?"get":"post",W=typeof m=="string"&&Dg.test(m),fe=ce=>{if(g&&g(ce),ce.defaultPrevented)return;ce.preventDefault();let ge=ce.nativeEvent.submitter,le=ge?.getAttribute("formmethod")||d,z=()=>V(ge||ce.currentTarget,{fetcherKey:i,method:le,navigate:u,replace:c,state:f,relative:p,preventScrollReset:b,viewTransition:v,unstable_defaultShouldRevalidate:O});Y&&u!==!1?C.startTransition(()=>z()):z()};return C.createElement("form",{ref:D,method:$,action:J,onSubmit:o?g:fe,...R,"data-discover":!W&&l==="render"?"true":void 0})});RS.displayName="Form";function OS(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Mg(l){let i=C.useContext(al);return Ce(i,OS(l)),i}function TS(l,{target:i,replace:u,unstable_mask:o,state:c,preventScrollReset:f,relative:d,viewTransition:m,unstable_defaultShouldRevalidate:g,unstable_useTransitions:p}={}){let b=Hc(),v=Ca(),O=fr(l,{relative:d});return C.useCallback(R=>{if(tS(R,i)){R.preventDefault();let D=u!==void 0?u:wa(v)===wa(O),Y=()=>b(l,{replace:D,unstable_mask:o,state:c,preventScrollReset:f,relative:d,viewTransition:m,unstable_defaultShouldRevalidate:g});p?C.startTransition(()=>Y()):Y()}},[v,b,O,u,o,c,i,l,f,d,m,g,p])}var _S=0,wS=()=>`__${String(++_S)}__`;function CS(){let{router:l}=Mg("useSubmit"),{basename:i}=C.useContext(Pt),u=B1(),o=l.fetch,c=l.navigate;return C.useCallback(async(f,d={})=>{let{action:m,method:g,encType:p,formData:b,body:v}=lS(f,i);if(d.navigate===!1){let O=d.fetcherKey||wS();await o(O,u,d.action||m,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:b,body:v,formMethod:d.method||g,formEncType:d.encType||p,flushSync:d.flushSync})}else await c(d.action||m,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:b,body:v,formMethod:d.method||g,formEncType:d.encType||p,replace:d.replace,state:d.state,fromRouteId:u,flushSync:d.flushSync,viewTransition:d.viewTransition})},[o,c,i,u])}function zS(l,{relative:i}={}){let{basename:u}=C.useContext(Pt),o=C.useContext(va);Ce(o,"useFormAction must be used inside a RouteContext");let[c]=o.matches.slice(-1),f={...fr(l||".",{relative:i})},d=Ca();if(l==null){f.search=d.search;let m=new URLSearchParams(f.search),g=m.getAll("index");if(g.some(b=>b==="")){m.delete("index"),g.filter(v=>v).forEach(v=>m.append("index",v));let b=m.toString();f.search=b?`?${b}`:""}}return(!l||l===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),u!=="/"&&(f.pathname=f.pathname==="/"?u:ya([u,f.pathname])),wa(f)}function DS(l,{relative:i}={}){let u=C.useContext(jc);Ce(u!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=Mg("useViewTransitionState"),c=fr(l,{relative:i});if(!u.isTransitioning)return!1;let f=ca(u.currentLocation.pathname,o)||u.currentLocation.pathname,d=ca(u.nextLocation.pathname,o)||u.nextLocation.pathname;return ku(c.pathname,d)!=null||ku(c.pathname,f)!=null}const Ag=(...l)=>l.filter((i,u,o)=>!!i&&i.trim()!==""&&o.indexOf(i)===u).join(" ").trim();const MS=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const AS=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,u,o)=>o?o.toUpperCase():u.toLowerCase());const Lp=l=>{const i=AS(l);return i.charAt(0).toUpperCase()+i.slice(1)};var NS={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const LS=l=>{for(const i in l)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};const jS=C.forwardRef(({color:l="currentColor",size:i=24,strokeWidth:u=2,absoluteStrokeWidth:o,className:c="",children:f,iconNode:d,...m},g)=>C.createElement("svg",{ref:g,...NS,width:i,height:i,stroke:l,strokeWidth:o?Number(u)*24/Number(i):u,className:Ag("lucide",c),...!f&&!LS(m)&&{"aria-hidden":"true"},...m},[...d.map(([p,b])=>C.createElement(p,b)),...Array.isArray(f)?f:[f]]));const wt=(l,i)=>{const u=C.forwardRef(({className:o,...c},f)=>C.createElement(jS,{ref:f,iconNode:i,className:Ag(`lucide-${MS(Lp(l))}`,`lucide-${l}`,o),...c}));return u.displayName=Lp(l),u};const US=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],HS=wt("arrow-right",US);const BS=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],qS=wt("boxes",BS);const YS=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],kS=wt("brain",YS);const VS=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],GS=wt("chevron-down",VS);const KS=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],XS=wt("chevron-right",KS);const QS=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],ZS=wt("database",QS);const $S=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],JS=wt("menu",$S);const FS=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],WS=wt("monitor",FS);const PS=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],IS=wt("moon",PS);const ex=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],tx=wt("panel-left",ex);const ax=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],nx=wt("plus",ax);const lx=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],ix=wt("search",lx);const rx=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],ux=wt("settings",rx);const ox=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],sx=wt("share-2",ox);const cx=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],fx=wt("sun",cx);const dx=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],hx=wt("users",dx);const mx=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],px=wt("x",mx),jp=l=>{let i;const u=new Set,o=(p,b)=>{const v=typeof p=="function"?p(i):p;if(!Object.is(v,i)){const O=i;i=b??(typeof v!="object"||v===null)?v:Object.assign({},i,v),u.forEach(R=>R(i,O))}},c=()=>i,m={setState:o,getState:c,getInitialState:()=>g,subscribe:p=>(u.add(p),()=>u.delete(p))},g=i=l(o,c,m);return m},gx=(l=>l?jp(l):jp),yx=l=>l;function vx(l,i=yx){const u=Ql.useSyncExternalStore(l.subscribe,Ql.useCallback(()=>i(l.getState()),[l,i]),Ql.useCallback(()=>i(l.getInitialState()),[l,i]));return Ql.useDebugValue(u),u}const Up=l=>{const i=gx(l),u=o=>vx(i,o);return Object.assign(u,i),u},Vc=(l=>l?Up(l):Up),Ng=Vc(l=>({status:"disconnected",setStatus:i=>l({status:i})})),bx={connected:"bg-c4a-success",disconnected:"bg-c4a-error",reconnecting:"bg-c4a-warning"};function zc(){const{t:l}=$e(),i=Ng(c=>c.status),u=bx[i]??"bg-c4a-text-muted",o=l(`header.status.${i}`);return j.jsxs("div",{className:"group relative flex items-center",title:o,children:[j.jsx("span",{className:`inline-block h-[7px] w-[7px] rounded-full ${u}`}),j.jsx("span",{className:"pointer-events-none absolute right-full mr-2 hidden whitespace-nowrap rounded bg-c4a-bg-elevated px-2 py-1 font-mono text-xs text-c4a-text-secondary shadow-c4a-md group-hover:block",children:o})]})}const Hp=[{to:"/",labelKey:"nav.home"},{to:"/studio",labelKey:"nav.studio"},{to:"/docs",labelKey:"nav.docs"}];function Sx(){const{t:l}=$e(),[i,u]=C.useState(!1);return j.jsxs("header",{className:"sticky top-0 z-40 border-b border-c4a-border-subtle bg-c4a-bg-base/95 backdrop-blur-sm",children:[j.jsxs("div",{className:"flex h-14 items-center justify-between px-4",children:[j.jsxs(Wa,{to:"/",className:"flex items-center gap-2 text-c4a-text-primary",children:[j.jsx("span",{className:"font-mono text-lg font-bold text-c4a-accent",children:"C4A"}),j.jsx("span",{className:"hidden font-mono text-sm font-semibold uppercase tracking-tight md:inline",children:"Context4AI"})]}),j.jsxs("div",{className:"hidden items-center gap-6 md:flex",children:[j.jsx("nav",{className:"flex items-center gap-4",children:Hp.map(({to:o,labelKey:c})=>j.jsx(ir,{to:o,end:o==="/",className:({isActive:f})=>`font-mono text-xs uppercase tracking-tight transition-colors duration-150 ${f?"text-c4a-accent":"text-c4a-text-secondary hover:text-c4a-text-primary"}`,children:l(c)},o))}),j.jsxs("div",{className:"flex items-center gap-3",children:[j.jsx(zc,{}),j.jsx(Wa,{to:"/login",className:"font-mono text-xs uppercase tracking-tight text-c4a-text-muted transition-colors duration-150 hover:text-c4a-text-primary",children:l("nav.login")})]})]}),j.jsx("button",{onClick:()=>u(!i),className:"text-c4a-text-secondary md:hidden",children:i?j.jsx(px,{size:20}):j.jsx(JS,{size:20})})]}),i&&j.jsxs("div",{className:"border-t border-c4a-border-subtle bg-c4a-bg-surface px-4 pb-4 pt-2 md:hidden",children:[j.jsx("nav",{className:"flex flex-col gap-2",children:Hp.map(({to:o,labelKey:c})=>j.jsx(ir,{to:o,end:o==="/",onClick:()=>u(!1),className:({isActive:f})=>`block py-2 font-mono text-xs uppercase tracking-tight transition-colors duration-150 ${f?"text-c4a-accent":"text-c4a-text-secondary hover:text-c4a-text-primary"}`,children:l(c)},o))}),j.jsx("div",{className:"mt-2 border-t border-c4a-border-subtle pt-2",children:j.jsxs("div",{className:"flex items-center gap-3",children:[j.jsx(zc,{}),j.jsx(Wa,{to:"/login",onClick:()=>u(!1),className:"font-mono text-xs uppercase tracking-tight text-c4a-text-muted transition-colors duration-150 hover:text-c4a-text-primary",children:l("nav.login")})]})})]})]})}function xx(l){return l==="system"&&typeof window<"u"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":l==="system"?"dark":l}function Lg(l){if(typeof window>"u")return;const i=xx(l);document.documentElement.setAttribute("data-theme",i),localStorage.setItem("theme",l)}function Ex(){try{return localStorage.getItem("theme")||"system"}catch{return"system"}}const jg=Vc(l=>({theme:Ex(),setTheme:i=>{Lg(i),l({theme:i})}}));let Bp=!1;function Rx(){if(Bp||typeof window>"u")return;Bp=!0;const l=window.matchMedia("(prefers-color-scheme: dark)"),i=()=>{const{theme:u}=jg.getState();u==="system"&&Lg("system")};l.addEventListener("change",i)}Rx();const Ox=[{mode:"light",icon:fx,labelKey:"footer.theme.light"},{mode:"dark",icon:IS,labelKey:"footer.theme.dark"},{mode:"system",icon:WS,labelKey:"footer.theme.system"}];function Tx(){const{t:l}=$e(),{theme:i,setTheme:u}=jg();return j.jsx("div",{className:"flex items-center gap-1",children:Ox.map(({mode:o,icon:c,labelKey:f})=>j.jsx("button",{onClick:()=>u(o),title:l(f),className:`cursor-pointer rounded p-1.5 transition-colors duration-150 ${i===o?"bg-c4a-bg-active text-c4a-accent":"text-c4a-text-muted hover:text-c4a-text-secondary hover:bg-c4a-bg-hover"}`,children:j.jsx(c,{size:14})},o))})}function _x(){const{i18n:l}=$e(),i=()=>{const u=l.language==="en"?"zh":"en";l.changeLanguage(u)};return j.jsx("button",{onClick:i,className:"cursor-pointer rounded px-2 py-1 font-mono text-xs uppercase tracking-tight text-c4a-text-muted transition-colors duration-150 hover:text-c4a-text-secondary hover:bg-c4a-bg-hover",children:l.language==="en"?"CN":"EN"})}const wx="_brandIcon_1c7st_1",Cx="_iconPulse_1c7st_35",qp={brandIcon:wx,iconPulse:Cx};function Ug(){const{t:l}=$e(),i=new Date().getFullYear();return j.jsx("footer",{className:"border-t border-c4a-border-subtle bg-c4a-bg-base px-4 py-4",children:j.jsxs("div",{className:"flex items-end justify-between gap-4",children:[j.jsxs("div",{className:"hidden items-center gap-3 md:flex",children:[j.jsx("div",{className:qp.brandIcon,children:j.jsx("span",{className:qp.iconPulse,children:"C4A"})}),j.jsxs("div",{className:"flex flex-col",children:[j.jsx("span",{className:"font-mono text-xs font-semibold uppercase tracking-tight text-c4a-text-primary",children:"Context4AI"}),j.jsx("span",{className:"font-mono text-[10px] uppercase tracking-wider text-c4a-text-muted",children:l("footer.tagline")})]})]}),j.jsxs("div",{className:"ml-auto flex flex-col items-end gap-2",children:[j.jsxs("div",{className:"flex items-center gap-2",children:[j.jsx(Tx,{}),j.jsx(_x,{})]}),j.jsx("p",{className:"font-mono text-[11px] text-c4a-text-muted",children:l("footer.copyright",{year:i})})]})]})})}function zx(){return j.jsxs("div",{className:"flex min-h-screen flex-col",children:[j.jsx(Sx,{}),j.jsx("main",{className:"mx-auto flex w-full max-w-[1200px] flex-1 flex-col px-4",children:j.jsx(wg,{})}),j.jsx(Ug,{})]})}const Yp=l=>Symbol.iterator in l,kp=l=>"entries"in l,Vp=(l,i)=>{const u=l instanceof Map?l:new Map(l.entries()),o=i instanceof Map?i:new Map(i.entries());if(u.size!==o.size)return!1;for(const[c,f]of u)if(!o.has(c)||!Object.is(f,o.get(c)))return!1;return!0},Dx=(l,i)=>{const u=l[Symbol.iterator](),o=i[Symbol.iterator]();let c=u.next(),f=o.next();for(;!c.done&&!f.done;){if(!Object.is(c.value,f.value))return!1;c=u.next(),f=o.next()}return!!c.done&&!!f.done};function Mx(l,i){return Object.is(l,i)?!0:typeof l!="object"||l===null||typeof i!="object"||i===null||Object.getPrototypeOf(l)!==Object.getPrototypeOf(i)?!1:Yp(l)&&Yp(i)?kp(l)&&kp(i)?Vp(l,i):Dx(l,i):Vp({entries:()=>Object.entries(l)},{entries:()=>Object.entries(i)})}function Dc(l){const i=Ql.useRef(void 0);return u=>{const o=l(u);return Mx(i.current,o)?i.current:i.current=o}}const Ax="/api/v1";class Nx extends Error{constructor(i,u,o){super(o),this.status=i,this.code=u,this.name="ApiError"}}async function Lu(l,i,u,o){let c=`${Ax}${i}`;if(o){const m=new URLSearchParams(o).toString();m&&(c+=`?${m}`)}const f={method:l,headers:{"Content-Type":"application/json"}};u!==void 0&&(f.body=JSON.stringify(u));const d=await fetch(c,f);if(!d.ok){let m="UNKNOWN",g=d.statusText;try{const p=await d.json();p.code&&(m=p.code),p.message&&(g=p.message)}catch{}throw new Nx(d.status,m,g)}return d.json()}const Ji={get(l,i){return Lu("GET",l,void 0,i)},post(l,i){return Lu("POST",l,i)},put(l,i){return Lu("PUT",l,i)},delete(l){return Lu("DELETE",l)}},Lx=3e4,jx=1e3,Ux=3e4;class Hx{ws=null;url="";handlers=new Map;heartbeatTimer=null;reconnectTimer=null;reconnectAttempt=0;intentionalClose=!1;_status="disconnected";get status(){return this._status}setStatus(i){this._status=i;const u=i==="connecting"?"disconnected":i;Ng.getState().setStatus(u)}connect(i){this.url=i,this.intentionalClose=!1,this.reconnectAttempt=0,this.open()}disconnect(){this.intentionalClose=!0,this.clearTimers(),this.ws&&(this.ws.close(),this.ws=null),this.setStatus("disconnected")}on(i,u){let o=this.handlers.get(i);return o||(o=new Set,this.handlers.set(i,o)),o.add(u),()=>{o.delete(u),o.size===0&&this.handlers.delete(i)}}send(i,u){if(this.ws?.readyState!==WebSocket.OPEN)return;const o={event:i,payload:u,timestamp:Date.now()};this.ws.send(JSON.stringify(o))}open(){this.setStatus("connecting");const i=new WebSocket(this.url);i.onopen=()=>{this.reconnectAttempt=0,this.setStatus("connected"),this.startHeartbeat()},i.onmessage=u=>{try{const o=JSON.parse(String(u.data));if(o.event==="pong")return;const c=this.handlers.get(o.event);if(c)for(const f of c)f(o.payload)}catch{}},i.onclose=()=>{this.stopHeartbeat(),this.intentionalClose||(this.setStatus("reconnecting"),this.scheduleReconnect())},i.onerror=()=>{},this.ws=i}startHeartbeat(){this.stopHeartbeat(),this.heartbeatTimer=setInterval(()=>{this.ws?.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify({event:"ping",payload:null,timestamp:Date.now()}))},Lx)}stopHeartbeat(){this.heartbeatTimer&&(clearInterval(this.heartbeatTimer),this.heartbeatTimer=null)}scheduleReconnect(){if(this.reconnectTimer)return;const i=Math.min(jx*2**this.reconnectAttempt,Ux);this.reconnectAttempt++,this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.open()},i)}clearTimers(){this.stopHeartbeat(),this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}}const rr=new Hx,Mn=Vc((l,i)=>({libraries:[],loading:!1,error:null,fetchLibraries:async()=>{l({loading:!0,error:null});try{const u=await Ji.get("/libraries");l({libraries:u,loading:!1})}catch(u){l({error:u instanceof Error?u.message:"Failed to load libraries",loading:!1})}},createLibrary:async u=>{const o=await Ji.post("/libraries",u);return l(c=>({libraries:[...c.libraries,o]})),o},deleteLibrary:async u=>{await Ji.delete(`/libraries/${u}`),l(o=>({libraries:o.libraries.filter(c=>c.id!==u)}))},updateLibraryName:async(u,o)=>{const c=await Ji.put(`/libraries/${u}`,{name:o});l(f=>({libraries:f.libraries.map(d=>d.id===u?c:d)}))},_updateLibraryOnline:(u,o)=>{l(c=>({libraries:c.libraries.map(f=>f.id===u?{...f,is_online:o}:f)}))},_refreshLibrary:async u=>{try{const o=await Ji.get(`/libraries/${u}`);l(c=>({libraries:c.libraries.map(f=>f.id===u?o:f)}))}catch{i().fetchLibraries()}}})),Bx=l=>{const i=l.libraries.filter(o=>o.type==="cloud").sort((o,c)=>o.created_at.localeCompare(c.created_at)),u=l.libraries.filter(o=>o.type==="daemon").sort((o,c)=>o.name.localeCompare(c.name));return[...i,...u]},qx=l=>l.libraries.filter(i=>i.type==="daemon"),Yx=l=>l.libraries.filter(i=>i.type==="daemon"&&i.is_online);rr.on("ws:daemon:status",l=>{const i=l;i.lib_id&&Mn.getState()._updateLibraryOnline(i.lib_id,i.is_online)});rr.on("ws:daemon:connected",l=>{const i=l;i.lib_id&&Mn.getState()._updateLibraryOnline(i.lib_id,!0),Mn.getState().fetchLibraries()});rr.on("ws:library:updated",l=>{const i=l;Mn.getState()._refreshLibrary(i.library_id)});function kx(){const{t:l}=$e(),i=Mn(Dc(qx)),u=Mn(Dc(Yx));if(i.length===0)return null;const o=u.length,c=i.length,f=o>0;return j.jsxs("span",{className:"flex items-center gap-1.5 font-mono text-xs text-c4a-text-secondary",children:[j.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${f?"bg-c4a-success":"bg-c4a-error"}`}),f?l("sources.header.daemon_status",{online:o,total:c}):l("sources.header.all_offline")]})}function Vx({onToggleSidebar:l}){const{t:i}=$e();return j.jsx("header",{className:"sticky top-0 z-40 border-b border-c4a-border-subtle bg-c4a-bg-base/95 backdrop-blur-sm",children:j.jsxs("div",{className:"flex h-14 items-center justify-between px-4",children:[j.jsxs("div",{className:"flex items-center gap-2",children:[l&&j.jsx("button",{onClick:l,className:"text-c4a-text-secondary transition-colors duration-150 hover:text-c4a-text-primary md:hidden",children:j.jsx(tx,{size:20})}),j.jsxs(Wa,{to:"/",className:"flex items-center gap-2 text-c4a-text-primary",children:[j.jsx("span",{className:"font-mono text-lg font-bold text-c4a-accent",children:"C4A"}),j.jsx("span",{className:"hidden font-mono text-sm font-semibold uppercase tracking-tight md:inline",children:"Context4AI"})]})]}),j.jsxs("div",{className:"flex items-center gap-3",children:[j.jsx(kx,{}),j.jsx(zc,{}),j.jsx(Wa,{to:"/login",className:"font-mono text-xs uppercase tracking-tight text-c4a-text-muted transition-colors duration-150 hover:text-c4a-text-primary",children:i("nav.login")})]})]})})}const Hg="lib_cloud_default",Gx=l=>`flex items-center gap-2 rounded px-3 py-2 font-mono text-xs uppercase tracking-tight transition-colors duration-150 ${l?"bg-c4a-bg-active text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-bg-hover hover:text-c4a-text-primary"}`,Kx=[{to:"/studio/modeling",icon:qS,i18nKey:"studio.sidebar.modeling"},{to:"/studio/brain",icon:kS,i18nKey:"studio.sidebar.brain"},{to:"/studio/discovery",icon:ix,i18nKey:"studio.sidebar.discovery"},{to:"/studio/sharing",icon:sx,i18nKey:"studio.sidebar.sharing"},{to:"/studio/collaboration",icon:hx,i18nKey:"studio.sidebar.collaboration"},{to:"/studio/settings",icon:ux,i18nKey:"studio.sidebar.settings"}];function Xx({state:l,onClose:i}){const{t:u}=$e(),o=C.useRef(null);C.useEffect(()=>{const f=d=>{o.current&&!o.current.contains(d.target)&&i()};return document.addEventListener("mousedown",f),()=>document.removeEventListener("mousedown",f)},[i]);const c=l.library.id===Hg;return j.jsxs("div",{ref:o,className:"fixed z-50 min-w-[140px] rounded border border-c4a-border-default bg-c4a-bg-elevated py-1 shadow-lg",style:{top:l.y,left:l.x},children:[j.jsx("button",{className:"flex w-full items-center px-3 py-1.5 text-left font-mono text-xs text-c4a-text-secondary hover:bg-c4a-bg-hover hover:text-c4a-text-primary",onClick:()=>{console.log("[stub] rename library",l.library.id),i()},children:u("sources.library.rename")}),!c&&j.jsx("button",{className:"flex w-full items-center px-3 py-1.5 text-left font-mono text-xs text-c4a-error hover:bg-c4a-bg-hover",onClick:()=>{console.log("[stub] delete library",l.library.id),i()},children:u("sources.actions.delete")})]})}function Gp({onNavigate:l}){const{t:i}=$e(),u=Ca(),o=Hc(),c=Mn(Dc(Bx)),f=u.pathname.startsWith("/studio/sources")||u.pathname.startsWith("/studio/source/"),[d,m]=C.useState(f),[g,p]=C.useState(null);C.useEffect(()=>{f&&m(!0)},[f]);const b=C.useCallback((R,D)=>{R.preventDefault(),p({x:R.clientX,y:R.clientY,library:D})},[]),v=C.useCallback(()=>p(null),[]),O=R=>R.id===Hg?i("sources.library.default_cloud_name"):R.name;return j.jsxs("aside",{className:"flex h-full w-[220px] shrink-0 flex-col border-r border-c4a-border-subtle bg-c4a-bg-surface p-4",children:[j.jsxs("nav",{className:"flex flex-col gap-1",children:[j.jsxs("div",{children:[j.jsxs("div",{className:"flex items-center",children:[j.jsxs("button",{onClick:()=>m(R=>!R),className:`flex flex-1 items-center gap-2 rounded px-3 py-2 font-mono text-xs uppercase tracking-tight transition-colors duration-150 ${f?"text-c4a-accent":"text-c4a-text-secondary hover:text-c4a-text-primary"}`,children:[j.jsx(ZS,{size:14}),i("studio.sidebar.sources"),d?j.jsx(GS,{size:12,className:"ml-auto"}):j.jsx(XS,{size:12,className:"ml-auto"})]}),j.jsx("button",{onClick:()=>{o("/studio/sources/add-client"),l?.()},className:"rounded p-1 text-c4a-text-muted hover:bg-c4a-bg-hover hover:text-c4a-text-primary",title:i("sources.menu.add_client"),children:j.jsx(nx,{size:14})})]}),d&&j.jsx("div",{className:"mt-0.5 flex flex-col gap-0.5",children:c.map(R=>j.jsxs(ir,{to:`/studio/sources/${R.id}`,onClick:l,onContextMenu:D=>b(D,R),className:({isActive:D})=>`flex items-center gap-2 rounded py-1.5 pl-8 pr-3 font-mono text-xs tracking-tight transition-colors duration-150 ${D?"bg-c4a-bg-active text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-bg-hover hover:text-c4a-text-primary"}`,children:[j.jsx("span",{className:"truncate",children:O(R)}),R.type==="daemon"&&j.jsx("span",{className:`ml-auto h-2 w-2 shrink-0 rounded-full ${R.is_online?"bg-c4a-success":"bg-c4a-error"}`})]},R.id))})]}),Kx.map(({to:R,icon:D,i18nKey:Y})=>j.jsxs(ir,{to:R,onClick:l,className:({isActive:V})=>Gx(V),children:[j.jsx(D,{size:14}),i(Y)]},R))]}),g&&j.jsx(Xx,{state:g,onClose:v})]})}function Qx(){const[l,i]=C.useState(!1);return C.useEffect(()=>{Mn.getState().fetchLibraries()},[]),j.jsxs("div",{className:"flex min-h-screen flex-col",children:[j.jsx(Vx,{onToggleSidebar:()=>i(!l)}),j.jsxs("div",{className:"flex flex-1",children:[j.jsx("div",{className:"hidden md:block",children:j.jsx(Gp,{})}),l&&j.jsxs(j.Fragment,{children:[j.jsx("div",{className:"fixed inset-0 z-20 bg-black/40 md:hidden",onClick:()=>i(!1)}),j.jsx("div",{className:"fixed inset-y-0 left-0 z-20 md:hidden",children:j.jsx(Gp,{onNavigate:()=>i(!1)})})]}),j.jsx("main",{className:"flex flex-1 flex-col overflow-x-hidden",children:j.jsx(wg,{})})]}),j.jsx(Ug,{})]})}function Zx(){const{t:l}=$e();return j.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center py-20 text-center",children:[j.jsx("h1",{className:"font-mono text-4xl font-bold uppercase tracking-wide text-c4a-text-primary md:text-5xl",children:l("home.hero.title")}),j.jsx("p",{className:"mt-6 max-w-lg text-base text-c4a-text-secondary",children:l("home.hero.description")}),j.jsxs("div",{className:"mt-10 flex items-center gap-4",children:[j.jsxs(Wa,{to:"/studio",className:"flex items-center gap-2 rounded bg-c4a-accent px-5 py-2.5 font-mono text-xs font-semibold uppercase tracking-tight text-white transition-colors duration-150 hover:bg-c4a-accent-hover",children:[l("home.hero.cta.studio"),j.jsx(HS,{size:14})]}),j.jsx("a",{href:"https://github.com/anthropics/c4a",target:"_blank",rel:"noopener noreferrer",className:"rounded border border-c4a-border-default px-5 py-2.5 font-mono text-xs font-semibold uppercase tracking-tight text-c4a-text-secondary transition-colors duration-150 hover:border-c4a-border-strong hover:text-c4a-text-primary",children:l("home.hero.cta.github")})]})]})}function At({title:l,version:i,description:u}){const{t:o}=$e();return j.jsx("div",{className:"flex flex-1 items-center justify-center p-8",children:j.jsxs("div",{className:"max-w-md text-center",children:[j.jsx("h2",{className:"font-mono text-2xl font-bold uppercase text-c4a-text-primary",children:l}),i&&j.jsx("span",{className:"mt-3 inline-block rounded border border-c4a-border-default bg-c4a-bg-surface px-3 py-1 font-mono text-xs uppercase text-c4a-accent",children:o("placeholder.coming",{version:i})}),j.jsx("p",{className:"mt-4 text-sm text-c4a-text-secondary",children:u})]})})}function $x(){const{t:l}=$e();return j.jsx(At,{title:l("page.login.title"),version:"0.5.0",description:l("page.login.description")})}function Jx(){const{t:l}=$e();return j.jsx(At,{title:l("page.docs.title"),version:"0.4.13",description:l("page.docs.description")})}function Fx(){const{t:l}=$e();return j.jsxs("div",{className:"flex min-h-screen flex-col items-center justify-center bg-c4a-bg-base p-8 text-center",children:[j.jsx("h1",{className:"font-mono text-6xl font-bold text-c4a-accent",children:l("notfound.title")}),j.jsx("p",{className:"mt-4 text-base text-c4a-text-secondary",children:l("notfound.description")}),j.jsx(Wa,{to:"/",className:"mt-8 rounded border border-c4a-border-default px-5 py-2.5 font-mono text-xs uppercase tracking-tight text-c4a-text-secondary transition-colors duration-150 hover:border-c4a-border-strong hover:text-c4a-text-primary",children:l("notfound.back")})]})}function Wx(){const{t:l}=$e();return j.jsx(At,{title:l("page.modeling.title"),version:"0.4.16",description:l("page.modeling.description")})}function Px(){const{t:l}=$e();return j.jsx(At,{title:l("page.brain.title"),version:"0.4.18",description:l("page.brain.description")})}function Ix(){const{t:l}=$e();return j.jsx(At,{title:l("page.discovery.title"),version:"0.6.x",description:l("page.discovery.description")})}function e2(){const{t:l}=$e();return j.jsx(At,{title:l("page.sharing.title"),version:"0.4.39",description:l("page.sharing.description")})}function t2(){const{t:l}=$e();return j.jsx(At,{title:l("page.collaboration.title"),version:"0.5.x",description:l("page.collaboration.description")})}function a2(){const{t:l}=$e();return j.jsx(At,{title:l("page.settings.title"),version:"0.5.x",description:l("page.settings.description")})}function n2(){const{t:l}=$e();return j.jsx(At,{title:l("page.code_setup.title"),version:"0.4.13",description:l("page.code_setup.description")})}function l2(){const{t:l}=$e();return j.jsx(At,{title:l("page.code_compile.title"),version:"0.4.13",description:l("page.code_compile.description")})}function i2(){const{t:l}=$e();return j.jsx(At,{title:l("page.code_review.title"),version:"0.4.14",description:l("page.code_review.description")})}function r2(){const{t:l}=$e();return j.jsx(At,{title:l("page.code_result.title"),version:"0.4.14",description:l("page.code_result.description")})}function u2(){const{t:l}=$e();return j.jsx(At,{title:l("page.sources.title"),version:"0.4.12",description:l("page.sources.description")})}function o2(){const{t:l}=$e();return j.jsx(At,{title:l("sources.import.title"),version:"0.4.12",description:l("page.sources.description")})}function s2(){const{t:l}=$e();return j.jsx(At,{title:l("sources.add_client.title"),version:"0.4.12",description:l("sources.add_client.description")})}function c2(){const{t:l}=$e();return j.jsx(At,{title:l("page.sources.title"),version:"0.4.12",description:l("page.sources.description")})}const f2="lib_cloud_default",d2=SS([{element:j.jsx(zx,{}),children:[{path:"/",element:j.jsx(Zx,{})},{path:"/login",element:j.jsx($x,{})},{path:"/docs",element:j.jsx(Jx,{})}]},{path:"/studio",element:j.jsx(Qx,{}),children:[{index:!0,element:j.jsx(Ap,{to:"/studio/sources",replace:!0})},{path:"sources",element:j.jsx(Ap,{to:`/studio/sources/${f2}`,replace:!0})},{path:"sources/add-client",element:j.jsx(s2,{})},{path:"sources/import/:libId",element:j.jsx(o2,{})},{path:"sources/:libId",element:j.jsx(u2,{})},{path:"source/:sourceUuid",element:j.jsx(c2,{})},{path:"modeling",element:j.jsx(Wx,{})},{path:"modeling/code/setup",element:j.jsx(n2,{})},{path:"modeling/code/compile",element:j.jsx(l2,{})},{path:"modeling/code/review",element:j.jsx(i2,{})},{path:"modeling/code/result",element:j.jsx(r2,{})},{path:"brain",element:j.jsx(Px,{})},{path:"discovery",element:j.jsx(Ix,{})},{path:"sharing",element:j.jsx(e2,{})},{path:"collaboration",element:j.jsx(t2,{})},{path:"settings",element:j.jsx(a2,{})}]},{path:"*",element:j.jsx(Fx,{})}]);function h2(){return C.useEffect(()=>{const i=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`;return rr.connect(i),()=>{rr.disconnect()}},[]),j.jsx(Z1,{router:d2})}ub.createRoot(document.getElementById("root")).render(j.jsx(C.StrictMode,{children:j.jsx(h2,{})}));