@musistudio/claude-code-router 1.0.46 → 1.0.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>CCR UI</title>
7
- <script type="module" crossorigin>function Qw(n,a){for(var l=0;l<a.length;l++){const i=a[l];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in n)){const u=Object.getOwnPropertyDescriptor(i,s);u&&Object.defineProperty(n,s,u.get?u:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const u of s)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&i(f)}).observe(document,{childList:!0,subtree:!0});function l(s){const u={};return s.integrity&&(u.integrity=s.integrity),s.referrerPolicy&&(u.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?u.credentials="include":s.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function i(s){if(s.ep)return;s.ep=!0;const u=l(s);fetch(s.href,u)}})();function Xy(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var If={exports:{}},to={};/**
7
+ <script type="module" crossorigin>function Zw(n,a){for(var l=0;l<a.length;l++){const i=a[l];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in n)){const c=Object.getOwnPropertyDescriptor(i,s);c&&Object.defineProperty(n,s,c.get?c:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&i(f)}).observe(document,{childList:!0,subtree:!0});function l(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(s){if(s.ep)return;s.ep=!0;const c=l(s);fetch(s.href,c)}})();function Iy(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Zf={exports:{}},to={};/**
8
8
  * @license React
9
9
  * react-jsx-runtime.production.js
10
10
  *
@@ -12,7 +12,7 @@
12
12
  *
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
- */var uv;function Zw(){if(uv)return to;uv=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function l(i,s,u){var f=null;if(u!==void 0&&(f=""+u),s.key!==void 0&&(f=""+s.key),"key"in s){u={};for(var h in s)h!=="key"&&(u[h]=s[h])}else u=s;return s=u.ref,{$$typeof:n,type:i,key:f,ref:s!==void 0?s:null,props:u}}return to.Fragment=a,to.jsx=l,to.jsxs=l,to}var cv;function Iw(){return cv||(cv=1,If.exports=Zw()),If.exports}var g=Iw();const Ue=n=>typeof n=="string",no=()=>{let n,a;const l=new Promise((i,s)=>{n=i,a=s});return l.resolve=n,l.reject=a,l},fv=n=>n==null?"":""+n,Jw=(n,a,l)=>{n.forEach(i=>{a[i]&&(l[i]=a[i])})},Ww=/###/g,dv=n=>n&&n.indexOf("###")>-1?n.replace(Ww,"."):n,hv=n=>!n||Ue(n),fo=(n,a,l)=>{const i=Ue(a)?a.split("."):a;let s=0;for(;s<i.length-1;){if(hv(n))return{};const u=dv(i[s]);!n[u]&&l&&(n[u]=new l),Object.prototype.hasOwnProperty.call(n,u)?n=n[u]:n={},++s}return hv(n)?{}:{obj:n,k:dv(i[s])}},mv=(n,a,l)=>{const{obj:i,k:s}=fo(n,a,Object);if(i!==void 0||a.length===1){i[s]=l;return}let u=a[a.length-1],f=a.slice(0,a.length-1),h=fo(n,f,Object);for(;h.obj===void 0&&f.length;)u=`${f[f.length-1]}.${u}`,f=f.slice(0,f.length-1),h=fo(n,f,Object),h?.obj&&typeof h.obj[`${h.k}.${u}`]<"u"&&(h.obj=void 0);h.obj[`${h.k}.${u}`]=l},eS=(n,a,l,i)=>{const{obj:s,k:u}=fo(n,a,Object);s[u]=s[u]||[],s[u].push(l)},fu=(n,a)=>{const{obj:l,k:i}=fo(n,a);if(l&&Object.prototype.hasOwnProperty.call(l,i))return l[i]},tS=(n,a,l)=>{const i=fu(n,l);return i!==void 0?i:fu(a,l)},Qy=(n,a,l)=>{for(const i in a)i!=="__proto__"&&i!=="constructor"&&(i in n?Ue(n[i])||n[i]instanceof String||Ue(a[i])||a[i]instanceof String?l&&(n[i]=a[i]):Qy(n[i],a[i],l):n[i]=a[i]);return n},kl=n=>n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var nS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const aS=n=>Ue(n)?n.replace(/[&<>"'\/]/g,a=>nS[a]):n;class rS{constructor(a){this.capacity=a,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(a){const l=this.regExpMap.get(a);if(l!==void 0)return l;const i=new RegExp(a);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(a,i),this.regExpQueue.push(a),i}}const lS=[" ",",","?","!",";"],iS=new rS(20),oS=(n,a,l)=>{a=a||"",l=l||"";const i=lS.filter(f=>a.indexOf(f)<0&&l.indexOf(f)<0);if(i.length===0)return!0;const s=iS.getRegExp(`(${i.map(f=>f==="?"?"\\?":f).join("|")})`);let u=!s.test(n);if(!u){const f=n.indexOf(l);f>0&&!s.test(n.substring(0,f))&&(u=!0)}return u},Rd=(n,a,l=".")=>{if(!n)return;if(n[a])return Object.prototype.hasOwnProperty.call(n,a)?n[a]:void 0;const i=a.split(l);let s=n;for(let u=0;u<i.length;){if(!s||typeof s!="object")return;let f,h="";for(let p=u;p<i.length;++p)if(p!==u&&(h+=l),h+=i[p],f=s[h],f!==void 0){if(["string","number","boolean"].indexOf(typeof f)>-1&&p<i.length-1)continue;u+=p-u+1;break}s=f}return s},po=n=>n?.replace("_","-"),sS={type:"logger",log(n){this.output("log",n)},warn(n){this.output("warn",n)},error(n){this.output("error",n)},output(n,a){console?.[n]?.apply?.(console,a)}};class du{constructor(a,l={}){this.init(a,l)}init(a,l={}){this.prefix=l.prefix||"i18next:",this.logger=a||sS,this.options=l,this.debug=l.debug}log(...a){return this.forward(a,"log","",!0)}warn(...a){return this.forward(a,"warn","",!0)}error(...a){return this.forward(a,"error","")}deprecate(...a){return this.forward(a,"warn","WARNING DEPRECATED: ",!0)}forward(a,l,i,s){return s&&!this.debug?null:(Ue(a[0])&&(a[0]=`${i}${this.prefix} ${a[0]}`),this.logger[l](a))}create(a){return new du(this.logger,{prefix:`${this.prefix}:${a}:`,...this.options})}clone(a){return a=a||this.options,a.prefix=a.prefix||this.prefix,new du(this.logger,a)}}var Zn=new du;class Eu{constructor(){this.observers={}}on(a,l){return a.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);const s=this.observers[i].get(l)||0;this.observers[i].set(l,s+1)}),this}off(a,l){if(this.observers[a]){if(!l){delete this.observers[a];return}this.observers[a].delete(l)}}emit(a,...l){this.observers[a]&&Array.from(this.observers[a].entries()).forEach(([s,u])=>{for(let f=0;f<u;f++)s(...l)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([s,u])=>{for(let f=0;f<u;f++)s.apply(s,[a,...l])})}}class pv extends Eu{constructor(a,l={ns:["translation"],defaultNS:"translation"}){super(),this.data=a||{},this.options=l,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(a){this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}removeNamespaces(a){const l=this.options.ns.indexOf(a);l>-1&&this.options.ns.splice(l,1)}getResource(a,l,i,s={}){const u=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,f=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let h;a.indexOf(".")>-1?h=a.split("."):(h=[a,l],i&&(Array.isArray(i)?h.push(...i):Ue(i)&&u?h.push(...i.split(u)):h.push(i)));const p=fu(this.data,h);return!p&&!l&&!i&&a.indexOf(".")>-1&&(a=h[0],l=h[1],i=h.slice(2).join(".")),p||!f||!Ue(i)?p:Rd(this.data?.[a]?.[l],i,u)}addResource(a,l,i,s,u={silent:!1}){const f=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator;let h=[a,l];i&&(h=h.concat(f?i.split(f):i)),a.indexOf(".")>-1&&(h=a.split("."),s=l,l=h[1]),this.addNamespaces(l),mv(this.data,h,s),u.silent||this.emit("added",a,l,i,s)}addResources(a,l,i,s={silent:!1}){for(const u in i)(Ue(i[u])||Array.isArray(i[u]))&&this.addResource(a,l,u,i[u],{silent:!0});s.silent||this.emit("added",a,l,i)}addResourceBundle(a,l,i,s,u,f={silent:!1,skipCopy:!1}){let h=[a,l];a.indexOf(".")>-1&&(h=a.split("."),s=i,i=l,l=h[1]),this.addNamespaces(l);let p=fu(this.data,h)||{};f.skipCopy||(i=JSON.parse(JSON.stringify(i))),s?Qy(p,i,u):p={...p,...i},mv(this.data,h,p),f.silent||this.emit("added",a,l,i)}removeResourceBundle(a,l){this.hasResourceBundle(a,l)&&delete this.data[a][l],this.removeNamespaces(l),this.emit("removed",a,l)}hasResourceBundle(a,l){return this.getResource(a,l)!==void 0}getResourceBundle(a,l){return l||(l=this.options.defaultNS),this.getResource(a,l)}getDataByLanguage(a){return this.data[a]}hasLanguageSomeTranslations(a){const l=this.getDataByLanguage(a);return!!(l&&Object.keys(l)||[]).find(s=>l[s]&&Object.keys(l[s]).length>0)}toJSON(){return this.data}}var Zy={processors:{},addPostProcessor(n){this.processors[n.name]=n},handle(n,a,l,i,s){return n.forEach(u=>{a=this.processors[u]?.process(a,l,i,s)??a}),a}};const gv={},vv=n=>!Ue(n)&&typeof n!="boolean"&&typeof n!="number";class hu extends Eu{constructor(a,l={}){super(),Jw(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],a,this),this.options=l,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Zn.create("translator")}changeLanguage(a){a&&(this.language=a)}exists(a,l={interpolation:{}}){const i={...l};return a==null?!1:this.resolve(a,i)?.res!==void 0}extractFromKey(a,l){let i=l.nsSeparator!==void 0?l.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const s=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator;let u=l.ns||this.options.defaultNS||[];const f=i&&a.indexOf(i)>-1,h=!this.options.userDefinedKeySeparator&&!l.keySeparator&&!this.options.userDefinedNsSeparator&&!l.nsSeparator&&!oS(a,i,s);if(f&&!h){const p=a.match(this.interpolator.nestingRegexp);if(p&&p.length>0)return{key:a,namespaces:Ue(u)?[u]:u};const m=a.split(i);(i!==s||i===s&&this.options.ns.indexOf(m[0])>-1)&&(u=m.shift()),a=m.join(s)}return{key:a,namespaces:Ue(u)?[u]:u}}translate(a,l,i){let s=typeof l=="object"?{...l}:l;if(typeof s!="object"&&this.options.overloadTranslationOptionHandler&&(s=this.options.overloadTranslationOptionHandler(arguments)),typeof options=="object"&&(s={...s}),s||(s={}),a==null)return"";Array.isArray(a)||(a=[String(a)]);const u=s.returnDetails!==void 0?s.returnDetails:this.options.returnDetails,f=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,{key:h,namespaces:p}=this.extractFromKey(a[a.length-1],s),m=p[p.length-1];let v=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;v===void 0&&(v=":");const b=s.lng||this.language,w=s.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(b?.toLowerCase()==="cimode")return w?u?{res:`${m}${v}${h}`,usedKey:h,exactUsedKey:h,usedLng:b,usedNS:m,usedParams:this.getUsedParamsDetails(s)}:`${m}${v}${h}`:u?{res:h,usedKey:h,exactUsedKey:h,usedLng:b,usedNS:m,usedParams:this.getUsedParamsDetails(s)}:h;const S=this.resolve(a,s);let C=S?.res;const _=S?.usedKey||h,j=S?.exactUsedKey||h,N=["[object Number]","[object Function]","[object RegExp]"],z=s.joinArrays!==void 0?s.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,H=s.count!==void 0&&!Ue(s.count),D=hu.hasDefaultValue(s),R=H?this.pluralResolver.getSuffix(b,s.count,s):"",B=s.ordinal&&H?this.pluralResolver.getSuffix(b,s.count,{ordinal:!1}):"",Z=H&&!s.ordinal&&s.count===0,ne=Z&&s[`defaultValue${this.options.pluralSeparator}zero`]||s[`defaultValue${R}`]||s[`defaultValue${B}`]||s.defaultValue;let oe=C;k&&!C&&D&&(oe=ne);const le=vv(oe),J=Object.prototype.toString.apply(oe);if(k&&oe&&le&&N.indexOf(J)<0&&!(Ue(z)&&Array.isArray(oe))){if(!s.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const te=this.options.returnedObjectHandler?this.options.returnedObjectHandler(_,oe,{...s,ns:p}):`key '${h} (${this.language})' returned an object instead of string.`;return u?(S.res=te,S.usedParams=this.getUsedParamsDetails(s),S):te}if(f){const te=Array.isArray(oe),W=te?[]:{},ue=te?j:_;for(const A in oe)if(Object.prototype.hasOwnProperty.call(oe,A)){const Q=`${ue}${f}${A}`;D&&!C?W[A]=this.translate(Q,{...s,defaultValue:vv(ne)?ne[A]:void 0,joinArrays:!1,ns:p}):W[A]=this.translate(Q,{...s,joinArrays:!1,ns:p}),W[A]===Q&&(W[A]=oe[A])}C=W}}else if(k&&Ue(z)&&Array.isArray(C))C=C.join(z),C&&(C=this.extendTranslation(C,a,s,i));else{let te=!1,W=!1;!this.isValidLookup(C)&&D&&(te=!0,C=ne),this.isValidLookup(C)||(W=!0,C=h);const A=(s.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&W?void 0:C,Q=D&&ne!==C&&this.options.updateMissing;if(W||te||Q){if(this.logger.log(Q?"updateKey":"missingKey",b,m,h,Q?ne:C),f){const F=this.resolve(h,{...s,keySeparator:!1});F&&F.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 V=[];const ve=this.languageUtils.getFallbackCodes(this.options.fallbackLng,s.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ve&&ve[0])for(let F=0;F<ve.length;F++)V.push(ve[F]);else this.options.saveMissingTo==="all"?V=this.languageUtils.toResolveHierarchy(s.lng||this.language):V.push(s.lng||this.language);const O=(F,U,K)=>{const ae=D&&K!==C?K:A;this.options.missingKeyHandler?this.options.missingKeyHandler(F,m,U,ae,Q,s):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(F,m,U,ae,Q,s),this.emit("missingKey",F,m,U,C)};this.options.saveMissing&&(this.options.saveMissingPlurals&&H?V.forEach(F=>{const U=this.pluralResolver.getSuffixes(F,s);Z&&s[`defaultValue${this.options.pluralSeparator}zero`]&&U.indexOf(`${this.options.pluralSeparator}zero`)<0&&U.push(`${this.options.pluralSeparator}zero`),U.forEach(K=>{O([F],h+K,s[`defaultValue${K}`]||ne)})}):O(V,h,ne))}C=this.extendTranslation(C,a,s,S,i),W&&C===h&&this.options.appendNamespaceToMissingKey&&(C=`${m}${v}${h}`),(W||te)&&this.options.parseMissingKeyHandler&&(C=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${m}${v}${h}`:h,te?C:void 0,s))}return u?(S.res=C,S.usedParams=this.getUsedParamsDetails(s),S):C}extendTranslation(a,l,i,s,u){if(this.i18nFormat?.parse)a=this.i18nFormat.parse(a,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const p=Ue(a)&&(i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let m;if(p){const b=a.match(this.interpolator.nestingRegexp);m=b&&b.length}let v=i.replace&&!Ue(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(v={...this.options.interpolation.defaultVariables,...v}),a=this.interpolator.interpolate(a,v,i.lng||this.language||s.usedLng,i),p){const b=a.match(this.interpolator.nestingRegexp),w=b&&b.length;m<w&&(i.nest=!1)}!i.lng&&s&&s.res&&(i.lng=this.language||s.usedLng),i.nest!==!1&&(a=this.interpolator.nest(a,(...b)=>u?.[0]===b[0]&&!i.context?(this.logger.warn(`It seems you are nesting recursively key: ${b[0]} in key: ${l[0]}`),null):this.translate(...b,l),i)),i.interpolation&&this.interpolator.reset()}const f=i.postProcess||this.options.postProcess,h=Ue(f)?[f]:f;return a!=null&&h?.length&&i.applyPostProcessor!==!1&&(a=Zy.handle(h,a,l,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),a}resolve(a,l={}){let i,s,u,f,h;return Ue(a)&&(a=[a]),a.forEach(p=>{if(this.isValidLookup(i))return;const m=this.extractFromKey(p,l),v=m.key;s=v;let b=m.namespaces;this.options.fallbackNS&&(b=b.concat(this.options.fallbackNS));const w=l.count!==void 0&&!Ue(l.count),S=w&&!l.ordinal&&l.count===0,C=l.context!==void 0&&(Ue(l.context)||typeof l.context=="number")&&l.context!=="",_=l.lngs?l.lngs:this.languageUtils.toResolveHierarchy(l.lng||this.language,l.fallbackLng);b.forEach(j=>{this.isValidLookup(i)||(h=j,!gv[`${_[0]}-${j}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(h)&&(gv[`${_[0]}-${j}`]=!0,this.logger.warn(`key "${s}" for languages "${_.join(", ")}" won't get resolved as namespace "${h}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),_.forEach(N=>{if(this.isValidLookup(i))return;f=N;const z=[v];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(z,v,N,j,l);else{let H;w&&(H=this.pluralResolver.getSuffix(N,l.count,l));const D=`${this.options.pluralSeparator}zero`,R=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(w&&(z.push(v+H),l.ordinal&&H.indexOf(R)===0&&z.push(v+H.replace(R,this.options.pluralSeparator)),S&&z.push(v+D)),C){const B=`${v}${this.options.contextSeparator}${l.context}`;z.push(B),w&&(z.push(B+H),l.ordinal&&H.indexOf(R)===0&&z.push(B+H.replace(R,this.options.pluralSeparator)),S&&z.push(B+D))}}let k;for(;k=z.pop();)this.isValidLookup(i)||(u=k,i=this.getResource(N,j,k,l))}))})}),{res:i,usedKey:s,exactUsedKey:u,usedLng:f,usedNS:h}}isValidLookup(a){return a!==void 0&&!(!this.options.returnNull&&a===null)&&!(!this.options.returnEmptyString&&a==="")}getResource(a,l,i,s={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(a,l,i,s):this.resourceStore.getResource(a,l,i,s)}getUsedParamsDetails(a={}){const l=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=a.replace&&!Ue(a.replace);let s=i?a.replace:a;if(i&&typeof a.count<"u"&&(s.count=a.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!i){s={...s};for(const u of l)delete s[u]}return s}static hasDefaultValue(a){const l="defaultValue";for(const i in a)if(Object.prototype.hasOwnProperty.call(a,i)&&l===i.substring(0,l.length)&&a[i]!==void 0)return!0;return!1}}class yv{constructor(a){this.options=a,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Zn.create("languageUtils")}getScriptPartFromCode(a){if(a=po(a),!a||a.indexOf("-")<0)return null;const l=a.split("-");return l.length===2||(l.pop(),l[l.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(l.join("-"))}getLanguagePartFromCode(a){if(a=po(a),!a||a.indexOf("-")<0)return a;const l=a.split("-");return this.formatLanguageCode(l[0])}formatLanguageCode(a){if(Ue(a)&&a.indexOf("-")>-1){let l;try{l=Intl.getCanonicalLocales(a)[0]}catch{}return l&&this.options.lowerCaseLng&&(l=l.toLowerCase()),l||(this.options.lowerCaseLng?a.toLowerCase():a)}return this.options.cleanCode||this.options.lowerCaseLng?a.toLowerCase():a}isSupportedCode(a){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(a=this.getLanguagePartFromCode(a)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(a)>-1}getBestMatchFromCodes(a){if(!a)return null;let l;return a.forEach(i=>{if(l)return;const s=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(s))&&(l=s)}),!l&&this.options.supportedLngs&&a.forEach(i=>{if(l)return;const s=this.getScriptPartFromCode(i);if(this.isSupportedCode(s))return l=s;const u=this.getLanguagePartFromCode(i);if(this.isSupportedCode(u))return l=u;l=this.options.supportedLngs.find(f=>{if(f===u)return f;if(!(f.indexOf("-")<0&&u.indexOf("-")<0)&&(f.indexOf("-")>0&&u.indexOf("-")<0&&f.substring(0,f.indexOf("-"))===u||f.indexOf(u)===0&&u.length>1))return f})}),l||(l=this.getFallbackCodes(this.options.fallbackLng)[0]),l}getFallbackCodes(a,l){if(!a)return[];if(typeof a=="function"&&(a=a(l)),Ue(a)&&(a=[a]),Array.isArray(a))return a;if(!l)return a.default||[];let i=a[l];return i||(i=a[this.getScriptPartFromCode(l)]),i||(i=a[this.formatLanguageCode(l)]),i||(i=a[this.getLanguagePartFromCode(l)]),i||(i=a.default),i||[]}toResolveHierarchy(a,l){const i=this.getFallbackCodes((l===!1?[]:l)||this.options.fallbackLng||[],a),s=[],u=f=>{f&&(this.isSupportedCode(f)?s.push(f):this.logger.warn(`rejecting language code not found in supportedLngs: ${f}`))};return Ue(a)&&(a.indexOf("-")>-1||a.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&u(this.formatLanguageCode(a)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&u(this.getScriptPartFromCode(a)),this.options.load!=="currentOnly"&&u(this.getLanguagePartFromCode(a))):Ue(a)&&u(this.formatLanguageCode(a)),i.forEach(f=>{s.indexOf(f)<0&&u(this.formatLanguageCode(f))}),s}}const bv={zero:0,one:1,two:2,few:3,many:4,other:5},xv={select:n=>n===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class uS{constructor(a,l={}){this.languageUtils=a,this.options=l,this.logger=Zn.create("pluralResolver"),this.pluralRulesCache={}}addRule(a,l){this.rules[a]=l}clearCache(){this.pluralRulesCache={}}getRule(a,l={}){const i=po(a==="dev"?"en":a),s=l.ordinal?"ordinal":"cardinal",u=JSON.stringify({cleanedCode:i,type:s});if(u in this.pluralRulesCache)return this.pluralRulesCache[u];let f;try{f=new Intl.PluralRules(i,{type:s})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),xv;if(!a.match(/-|_/))return xv;const p=this.languageUtils.getLanguagePartFromCode(a);f=this.getRule(p,l)}return this.pluralRulesCache[u]=f,f}needsPlural(a,l={}){let i=this.getRule(a,l);return i||(i=this.getRule("dev",l)),i?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(a,l,i={}){return this.getSuffixes(a,i).map(s=>`${l}${s}`)}getSuffixes(a,l={}){let i=this.getRule(a,l);return i||(i=this.getRule("dev",l)),i?i.resolvedOptions().pluralCategories.sort((s,u)=>bv[s]-bv[u]).map(s=>`${this.options.prepend}${l.ordinal?`ordinal${this.options.prepend}`:""}${s}`):[]}getSuffix(a,l,i={}){const s=this.getRule(a,i);return s?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${s.select(l)}`:(this.logger.warn(`no plural rule found for: ${a}`),this.getSuffix("dev",l,i))}}const wv=(n,a,l,i=".",s=!0)=>{let u=tS(n,a,l);return!u&&s&&Ue(l)&&(u=Rd(n,l,i),u===void 0&&(u=Rd(a,l,i))),u},Jf=n=>n.replace(/\$/g,"$$$$");class cS{constructor(a={}){this.logger=Zn.create("interpolator"),this.options=a,this.format=a?.interpolation?.format||(l=>l),this.init(a)}init(a={}){a.interpolation||(a.interpolation={escapeValue:!0});const{escape:l,escapeValue:i,useRawValueToEscape:s,prefix:u,prefixEscaped:f,suffix:h,suffixEscaped:p,formatSeparator:m,unescapeSuffix:v,unescapePrefix:b,nestingPrefix:w,nestingPrefixEscaped:S,nestingSuffix:C,nestingSuffixEscaped:_,nestingOptionsSeparator:j,maxReplaces:N,alwaysFormat:z}=a.interpolation;this.escape=l!==void 0?l:aS,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=u?kl(u):f||"{{",this.suffix=h?kl(h):p||"}}",this.formatSeparator=m||",",this.unescapePrefix=v?"":b||"-",this.unescapeSuffix=this.unescapePrefix?"":v||"",this.nestingPrefix=w?kl(w):S||kl("$t("),this.nestingSuffix=C?kl(C):_||kl(")"),this.nestingOptionsSeparator=j||",",this.maxReplaces=N||1e3,this.alwaysFormat=z!==void 0?z:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const a=(l,i)=>l?.source===i?(l.lastIndex=0,l):new RegExp(i,"g");this.regexp=a(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=a(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=a(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(a,l,i,s){let u,f,h;const p=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},m=S=>{if(S.indexOf(this.formatSeparator)<0){const N=wv(l,p,S,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(N,void 0,i,{...s,...l,interpolationkey:S}):N}const C=S.split(this.formatSeparator),_=C.shift().trim(),j=C.join(this.formatSeparator).trim();return this.format(wv(l,p,_,this.options.keySeparator,this.options.ignoreJSONStructure),j,i,{...s,...l,interpolationkey:_})};this.resetRegExp();const v=s?.missingInterpolationHandler||this.options.missingInterpolationHandler,b=s?.interpolation?.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:S=>Jf(S)},{regex:this.regexp,safeValue:S=>this.escapeValue?Jf(this.escape(S)):Jf(S)}].forEach(S=>{for(h=0;u=S.regex.exec(a);){const C=u[1].trim();if(f=m(C),f===void 0)if(typeof v=="function"){const j=v(a,u,s);f=Ue(j)?j:""}else if(s&&Object.prototype.hasOwnProperty.call(s,C))f="";else if(b){f=u[0];continue}else this.logger.warn(`missed to pass in variable ${C} for interpolating ${a}`),f="";else!Ue(f)&&!this.useRawValueToEscape&&(f=fv(f));const _=S.safeValue(f);if(a=a.replace(u[0],_),b?(S.regex.lastIndex+=f.length,S.regex.lastIndex-=u[0].length):S.regex.lastIndex=0,h++,h>=this.maxReplaces)break}}),a}nest(a,l,i={}){let s,u,f;const h=(p,m)=>{const v=this.nestingOptionsSeparator;if(p.indexOf(v)<0)return p;const b=p.split(new RegExp(`${v}[ ]*{`));let w=`{${b[1]}`;p=b[0],w=this.interpolate(w,f);const S=w.match(/'/g),C=w.match(/"/g);((S?.length??0)%2===0&&!C||C.length%2!==0)&&(w=w.replace(/'/g,'"'));try{f=JSON.parse(w),m&&(f={...m,...f})}catch(_){return this.logger.warn(`failed parsing options string in nesting for key ${p}`,_),`${p}${v}${w}`}return f.defaultValue&&f.defaultValue.indexOf(this.prefix)>-1&&delete f.defaultValue,p};for(;s=this.nestingRegexp.exec(a);){let p=[];f={...i},f=f.replace&&!Ue(f.replace)?f.replace:f,f.applyPostProcessor=!1,delete f.defaultValue;const m=/{.*}/.test(s[1])?s[1].lastIndexOf("}")+1:s[1].indexOf(this.formatSeparator);if(m!==-1&&(p=s[1].slice(m).split(this.formatSeparator).map(v=>v.trim()).filter(Boolean),s[1]=s[1].slice(0,m)),u=l(h.call(this,s[1].trim(),f),f),u&&s[0]===a&&!Ue(u))return u;Ue(u)||(u=fv(u)),u||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${a}`),u=""),p.length&&(u=p.reduce((v,b)=>this.format(v,b,i.lng,{...i,interpolationkey:s[1].trim()}),u.trim())),a=a.replace(s[0],u),this.regexp.lastIndex=0}return a}}const fS=n=>{let a=n.toLowerCase().trim();const l={};if(n.indexOf("(")>-1){const i=n.split("(");a=i[0].toLowerCase().trim();const s=i[1].substring(0,i[1].length-1);a==="currency"&&s.indexOf(":")<0?l.currency||(l.currency=s.trim()):a==="relativetime"&&s.indexOf(":")<0?l.range||(l.range=s.trim()):s.split(";").forEach(f=>{if(f){const[h,...p]=f.split(":"),m=p.join(":").trim().replace(/^'+|'+$/g,""),v=h.trim();l[v]||(l[v]=m),m==="false"&&(l[v]=!1),m==="true"&&(l[v]=!0),isNaN(m)||(l[v]=parseInt(m,10))}})}return{formatName:a,formatOptions:l}},Sv=n=>{const a={};return(l,i,s)=>{let u=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(u={...u,[s.interpolationkey]:void 0});const f=i+JSON.stringify(u);let h=a[f];return h||(h=n(po(i),s),a[f]=h),h(l)}},dS=n=>(a,l,i)=>n(po(l),i)(a);class hS{constructor(a={}){this.logger=Zn.create("formatter"),this.options=a,this.init(a)}init(a,l={interpolation:{}}){this.formatSeparator=l.interpolation.formatSeparator||",";const i=l.cacheInBuiltFormats?Sv:dS;this.formats={number:i((s,u)=>{const f=new Intl.NumberFormat(s,{...u});return h=>f.format(h)}),currency:i((s,u)=>{const f=new Intl.NumberFormat(s,{...u,style:"currency"});return h=>f.format(h)}),datetime:i((s,u)=>{const f=new Intl.DateTimeFormat(s,{...u});return h=>f.format(h)}),relativetime:i((s,u)=>{const f=new Intl.RelativeTimeFormat(s,{...u});return h=>f.format(h,u.range||"day")}),list:i((s,u)=>{const f=new Intl.ListFormat(s,{...u});return h=>f.format(h)})}}add(a,l){this.formats[a.toLowerCase().trim()]=l}addCached(a,l){this.formats[a.toLowerCase().trim()]=Sv(l)}format(a,l,i,s={}){const u=l.split(this.formatSeparator);if(u.length>1&&u[0].indexOf("(")>1&&u[0].indexOf(")")<0&&u.find(h=>h.indexOf(")")>-1)){const h=u.findIndex(p=>p.indexOf(")")>-1);u[0]=[u[0],...u.splice(1,h)].join(this.formatSeparator)}return u.reduce((h,p)=>{const{formatName:m,formatOptions:v}=fS(p);if(this.formats[m]){let b=h;try{const w=s?.formatParams?.[s.interpolationkey]||{},S=w.locale||w.lng||s.locale||s.lng||i;b=this.formats[m](h,S,{...v,...s,...w})}catch(w){this.logger.warn(w)}return b}else this.logger.warn(`there was no format function for ${m}`);return h},a)}}const mS=(n,a)=>{n.pending[a]!==void 0&&(delete n.pending[a],n.pendingCount--)};class pS extends Eu{constructor(a,l,i,s={}){super(),this.backend=a,this.store=l,this.services=i,this.languageUtils=i.languageUtils,this.options=s,this.logger=Zn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(i,s.backend,s)}queueLoad(a,l,i,s){const u={},f={},h={},p={};return a.forEach(m=>{let v=!0;l.forEach(b=>{const w=`${m}|${b}`;!i.reload&&this.store.hasResourceBundle(m,b)?this.state[w]=2:this.state[w]<0||(this.state[w]===1?f[w]===void 0&&(f[w]=!0):(this.state[w]=1,v=!1,f[w]===void 0&&(f[w]=!0),u[w]===void 0&&(u[w]=!0),p[b]===void 0&&(p[b]=!0)))}),v||(h[m]=!0)}),(Object.keys(u).length||Object.keys(f).length)&&this.queue.push({pending:f,pendingCount:Object.keys(f).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(u),pending:Object.keys(f),toLoadLanguages:Object.keys(h),toLoadNamespaces:Object.keys(p)}}loaded(a,l,i){const s=a.split("|"),u=s[0],f=s[1];l&&this.emit("failedLoading",u,f,l),!l&&i&&this.store.addResourceBundle(u,f,i,void 0,void 0,{skipCopy:!0}),this.state[a]=l?-1:2,l&&i&&(this.state[a]=0);const h={};this.queue.forEach(p=>{eS(p.loaded,[u],f),mS(p,a),l&&p.errors.push(l),p.pendingCount===0&&!p.done&&(Object.keys(p.loaded).forEach(m=>{h[m]||(h[m]={});const v=p.loaded[m];v.length&&v.forEach(b=>{h[m][b]===void 0&&(h[m][b]=!0)})}),p.done=!0,p.errors.length?p.callback(p.errors):p.callback())}),this.emit("loaded",h),this.queue=this.queue.filter(p=>!p.done)}read(a,l,i,s=0,u=this.retryTimeout,f){if(!a.length)return f(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:a,ns:l,fcName:i,tried:s,wait:u,callback:f});return}this.readingCalls++;const h=(m,v)=>{if(this.readingCalls--,this.waitingReads.length>0){const b=this.waitingReads.shift();this.read(b.lng,b.ns,b.fcName,b.tried,b.wait,b.callback)}if(m&&v&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,a,l,i,s+1,u*2,f)},u);return}f(m,v)},p=this.backend[i].bind(this.backend);if(p.length===2){try{const m=p(a,l);m&&typeof m.then=="function"?m.then(v=>h(null,v)).catch(h):h(null,m)}catch(m){h(m)}return}return p(a,l,h)}prepareLoading(a,l,i={},s){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();Ue(a)&&(a=this.languageUtils.toResolveHierarchy(a)),Ue(l)&&(l=[l]);const u=this.queueLoad(a,l,i,s);if(!u.toLoad.length)return u.pending.length||s(),null;u.toLoad.forEach(f=>{this.loadOne(f)})}load(a,l,i){this.prepareLoading(a,l,{},i)}reload(a,l,i){this.prepareLoading(a,l,{reload:!0},i)}loadOne(a,l=""){const i=a.split("|"),s=i[0],u=i[1];this.read(s,u,"read",void 0,void 0,(f,h)=>{f&&this.logger.warn(`${l}loading namespace ${u} for language ${s} failed`,f),!f&&h&&this.logger.log(`${l}loaded namespace ${u} for language ${s}`,h),this.loaded(a,f,h)})}saveMissing(a,l,i,s,u,f={},h=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(l)){this.logger.warn(`did not save key "${i}" as the namespace "${l}" 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(!(i==null||i==="")){if(this.backend?.create){const p={...f,isUpdate:u},m=this.backend.create.bind(this.backend);if(m.length<6)try{let v;m.length===5?v=m(a,l,i,s,p):v=m(a,l,i,s),v&&typeof v.then=="function"?v.then(b=>h(null,b)).catch(h):h(null,v)}catch(v){h(v)}else m(a,l,i,s,h,p)}!a||!a[0]||this.store.addResource(a[0],l,i,s)}}}const Ev=()=>({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:n=>{let a={};if(typeof n[1]=="object"&&(a=n[1]),Ue(n[1])&&(a.defaultValue=n[1]),Ue(n[2])&&(a.tDescription=n[2]),typeof n[2]=="object"||typeof n[3]=="object"){const l=n[3]||n[2];Object.keys(l).forEach(i=>{a[i]=l[i]})}return a},interpolation:{escapeValue:!0,format:n=>n,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),_v=n=>(Ue(n.ns)&&(n.ns=[n.ns]),Ue(n.fallbackLng)&&(n.fallbackLng=[n.fallbackLng]),Ue(n.fallbackNS)&&(n.fallbackNS=[n.fallbackNS]),n.supportedLngs?.indexOf?.("cimode")<0&&(n.supportedLngs=n.supportedLngs.concat(["cimode"])),typeof n.initImmediate=="boolean"&&(n.initAsync=n.initImmediate),n),qs=()=>{},gS=n=>{Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(l=>{typeof n[l]=="function"&&(n[l]=n[l].bind(n))})};class go extends Eu{constructor(a={},l){if(super(),this.options=_v(a),this.services={},this.logger=Zn,this.modules={external:[]},gS(this),l&&!this.isInitialized&&!a.isClone){if(!this.options.initAsync)return this.init(a,l),this;setTimeout(()=>{this.init(a,l)},0)}}init(a={},l){this.isInitializing=!0,typeof a=="function"&&(l=a,a={}),a.defaultNS==null&&a.ns&&(Ue(a.ns)?a.defaultNS=a.ns:a.ns.indexOf("translation")<0&&(a.defaultNS=a.ns[0]));const i=Ev();this.options={...i,...this.options,..._v(a)},this.options.interpolation={...i.interpolation,...this.options.interpolation},a.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=a.keySeparator),a.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=a.nsSeparator);const s=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?Zn.init(s(this.modules.logger),this.options):Zn.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:m=hS;const v=new yv(this.options);this.store=new pv(this.options.resources,this.options);const b=this.services;b.logger=Zn,b.resourceStore=this.store,b.languageUtils=v,b.pluralResolver=new uS(v,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format&&this.logger.warn("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),m&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(b.formatter=s(m),b.formatter.init&&b.formatter.init(b,this.options),this.options.interpolation.format=b.formatter.format.bind(b.formatter)),b.interpolator=new cS(this.options),b.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},b.backendConnector=new pS(s(this.modules.backend),b.resourceStore,b,this.options),b.backendConnector.on("*",(S,...C)=>{this.emit(S,...C)}),this.modules.languageDetector&&(b.languageDetector=s(this.modules.languageDetector),b.languageDetector.init&&b.languageDetector.init(b,this.options.detection,this.options)),this.modules.i18nFormat&&(b.i18nFormat=s(this.modules.i18nFormat),b.i18nFormat.init&&b.i18nFormat.init(this)),this.translator=new hu(this.services,this.options),this.translator.on("*",(S,...C)=>{this.emit(S,...C)}),this.modules.external.forEach(S=>{S.init&&S.init(this)})}if(this.format=this.options.interpolation.format,l||(l=qs),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[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(m=>{this[m]=(...v)=>this.store[m](...v)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(m=>{this[m]=(...v)=>(this.store[m](...v),this)});const h=no(),p=()=>{const m=(v,b)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),h.resolve(b),l(v,b)};if(this.languages&&!this.isInitialized)return m(null,this.t.bind(this));this.changeLanguage(this.options.lng,m)};return this.options.resources||!this.options.initAsync?p():setTimeout(p,0),h}loadResources(a,l=qs){let i=l;const s=Ue(a)?a:this.language;if(typeof a=="function"&&(i=a),!this.options.resources||this.options.partialBundledLanguages){if(s?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();const u=[],f=h=>{if(!h||h==="cimode")return;this.services.languageUtils.toResolveHierarchy(h).forEach(m=>{m!=="cimode"&&u.indexOf(m)<0&&u.push(m)})};s?f(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(p=>f(p)),this.options.preload?.forEach?.(h=>f(h)),this.services.backendConnector.load(u,this.options.ns,h=>{!h&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(h)})}else i(null)}reloadResources(a,l,i){const s=no();return typeof a=="function"&&(i=a,a=void 0),typeof l=="function"&&(i=l,l=void 0),a||(a=this.languages),l||(l=this.options.ns),i||(i=qs),this.services.backendConnector.reload(a,l,u=>{s.resolve(),i(u)}),s}use(a){if(!a)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!a.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return a.type==="backend"&&(this.modules.backend=a),(a.type==="logger"||a.log&&a.warn&&a.error)&&(this.modules.logger=a),a.type==="languageDetector"&&(this.modules.languageDetector=a),a.type==="i18nFormat"&&(this.modules.i18nFormat=a),a.type==="postProcessor"&&Zy.addPostProcessor(a),a.type==="formatter"&&(this.modules.formatter=a),a.type==="3rdParty"&&this.modules.external.push(a),this}setResolvedLanguage(a){if(!(!a||!this.languages)&&!(["cimode","dev"].indexOf(a)>-1)){for(let l=0;l<this.languages.length;l++){const i=this.languages[l];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}!this.resolvedLanguage&&this.languages.indexOf(a)<0&&this.store.hasLanguageSomeTranslations(a)&&(this.resolvedLanguage=a,this.languages.unshift(a))}}changeLanguage(a,l){this.isLanguageChangingTo=a;const i=no();this.emit("languageChanging",a);const s=h=>{this.language=h,this.languages=this.services.languageUtils.toResolveHierarchy(h),this.resolvedLanguage=void 0,this.setResolvedLanguage(h)},u=(h,p)=>{p?this.isLanguageChangingTo===a&&(s(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,i.resolve((...m)=>this.t(...m)),l&&l(h,(...m)=>this.t(...m))},f=h=>{!a&&!h&&this.services.languageDetector&&(h=[]);const p=Ue(h)?h:h&&h[0],m=this.store.hasLanguageSomeTranslations(p)?p:this.services.languageUtils.getBestMatchFromCodes(Ue(h)?[h]:h);m&&(this.language||s(m),this.translator.language||this.translator.changeLanguage(m),this.services.languageDetector?.cacheUserLanguage?.(m)),this.loadResources(m,v=>{u(v,m)})};return!a&&this.services.languageDetector&&!this.services.languageDetector.async?f(this.services.languageDetector.detect()):!a&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(f):this.services.languageDetector.detect(f):f(a),i}getFixedT(a,l,i){const s=(u,f,...h)=>{let p;typeof f!="object"?p=this.options.overloadTranslationOptionHandler([u,f].concat(h)):p={...f},p.lng=p.lng||s.lng,p.lngs=p.lngs||s.lngs,p.ns=p.ns||s.ns,p.keyPrefix!==""&&(p.keyPrefix=p.keyPrefix||i||s.keyPrefix);const m=this.options.keySeparator||".";let v;return p.keyPrefix&&Array.isArray(u)?v=u.map(b=>`${p.keyPrefix}${m}${b}`):v=p.keyPrefix?`${p.keyPrefix}${m}${u}`:u,this.t(v,p)};return Ue(a)?s.lng=a:s.lngs=a,s.ns=l,s.keyPrefix=i,s}t(...a){return this.translator?.translate(...a)}exists(...a){return this.translator?.exists(...a)}setDefaultNamespace(a){this.options.defaultNS=a}hasLoadedNamespace(a,l={}){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 i=l.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,u=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const f=(h,p)=>{const m=this.services.backendConnector.state[`${h}|${p}`];return m===-1||m===0||m===2};if(l.precheck){const h=l.precheck(this,f);if(h!==void 0)return h}return!!(this.hasResourceBundle(i,a)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||f(i,a)&&(!s||f(u,a)))}loadNamespaces(a,l){const i=no();return this.options.ns?(Ue(a)&&(a=[a]),a.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{i.resolve(),l&&l(s)}),i):(l&&l(),Promise.resolve())}loadLanguages(a,l){const i=no();Ue(a)&&(a=[a]);const s=this.options.preload||[],u=a.filter(f=>s.indexOf(f)<0&&this.services.languageUtils.isSupportedCode(f));return u.length?(this.options.preload=s.concat(u),this.loadResources(f=>{i.resolve(),l&&l(f)}),i):(l&&l(),Promise.resolve())}dir(a){if(a||(a=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!a)return"rtl";try{const s=new Intl.Locale(a);if(s&&s.getTextInfo){const u=s.getTextInfo();if(u&&u.direction)return u.direction}}catch{}const l=["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"],i=this.services?.languageUtils||new yv(Ev());return a.toLowerCase().indexOf("-latn")>1?"ltr":l.indexOf(i.getLanguagePartFromCode(a))>-1||a.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(a={},l){return new go(a,l)}cloneInstance(a={},l=qs){const i=a.forkResourceStore;i&&delete a.forkResourceStore;const s={...this.options,...a,isClone:!0},u=new go(s);if((a.debug!==void 0||a.prefix!==void 0)&&(u.logger=u.logger.clone(a)),["store","services","language"].forEach(h=>{u[h]=this[h]}),u.services={...this.services},u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},i){const h=Object.keys(this.store.data).reduce((p,m)=>(p[m]={...this.store.data[m]},p[m]=Object.keys(p[m]).reduce((v,b)=>(v[b]={...p[m][b]},v),p[m]),p),{});u.store=new pv(h,s),u.services.resourceStore=u.store}return u.translator=new hu(u.services,s),u.translator.on("*",(h,...p)=>{u.emit(h,...p)}),u.init(s,l),u.translator.options=s,u.translator.backendConnector.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Kt=go.createInstance();Kt.createInstance=go.createInstance;Kt.createInstance;Kt.dir;Kt.init;Kt.loadResources;Kt.reloadResources;Kt.use;Kt.changeLanguage;Kt.getFixedT;Kt.t;Kt.exists;Kt.setDefaultNamespace;Kt.hasLoadedNamespace;Kt.loadNamespaces;Kt.loadLanguages;var Wf={exports:{}},Be={};/**
15
+ */var fv;function Jw(){if(fv)return to;fv=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function l(i,s,c){var f=null;if(c!==void 0&&(f=""+c),s.key!==void 0&&(f=""+s.key),"key"in s){c={};for(var h in s)h!=="key"&&(c[h]=s[h])}else c=s;return s=c.ref,{$$typeof:n,type:i,key:f,ref:s!==void 0?s:null,props:c}}return to.Fragment=a,to.jsx=l,to.jsxs=l,to}var dv;function Ww(){return dv||(dv=1,Zf.exports=Jw()),Zf.exports}var g=Ww();const Ue=n=>typeof n=="string",no=()=>{let n,a;const l=new Promise((i,s)=>{n=i,a=s});return l.resolve=n,l.reject=a,l},hv=n=>n==null?"":""+n,eS=(n,a,l)=>{n.forEach(i=>{a[i]&&(l[i]=a[i])})},tS=/###/g,mv=n=>n&&n.indexOf("###")>-1?n.replace(tS,"."):n,pv=n=>!n||Ue(n),fo=(n,a,l)=>{const i=Ue(a)?a.split("."):a;let s=0;for(;s<i.length-1;){if(pv(n))return{};const c=mv(i[s]);!n[c]&&l&&(n[c]=new l),Object.prototype.hasOwnProperty.call(n,c)?n=n[c]:n={},++s}return pv(n)?{}:{obj:n,k:mv(i[s])}},gv=(n,a,l)=>{const{obj:i,k:s}=fo(n,a,Object);if(i!==void 0||a.length===1){i[s]=l;return}let c=a[a.length-1],f=a.slice(0,a.length-1),h=fo(n,f,Object);for(;h.obj===void 0&&f.length;)c=`${f[f.length-1]}.${c}`,f=f.slice(0,f.length-1),h=fo(n,f,Object),h?.obj&&typeof h.obj[`${h.k}.${c}`]<"u"&&(h.obj=void 0);h.obj[`${h.k}.${c}`]=l},nS=(n,a,l,i)=>{const{obj:s,k:c}=fo(n,a,Object);s[c]=s[c]||[],s[c].push(l)},fc=(n,a)=>{const{obj:l,k:i}=fo(n,a);if(l&&Object.prototype.hasOwnProperty.call(l,i))return l[i]},aS=(n,a,l)=>{const i=fc(n,l);return i!==void 0?i:fc(a,l)},Zy=(n,a,l)=>{for(const i in a)i!=="__proto__"&&i!=="constructor"&&(i in n?Ue(n[i])||n[i]instanceof String||Ue(a[i])||a[i]instanceof String?l&&(n[i]=a[i]):Zy(n[i],a[i],l):n[i]=a[i]);return n},zl=n=>n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var rS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const lS=n=>Ue(n)?n.replace(/[&<>"'\/]/g,a=>rS[a]):n;class iS{constructor(a){this.capacity=a,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(a){const l=this.regExpMap.get(a);if(l!==void 0)return l;const i=new RegExp(a);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(a,i),this.regExpQueue.push(a),i}}const oS=[" ",",","?","!",";"],sS=new iS(20),cS=(n,a,l)=>{a=a||"",l=l||"";const i=oS.filter(f=>a.indexOf(f)<0&&l.indexOf(f)<0);if(i.length===0)return!0;const s=sS.getRegExp(`(${i.map(f=>f==="?"?"\\?":f).join("|")})`);let c=!s.test(n);if(!c){const f=n.indexOf(l);f>0&&!s.test(n.substring(0,f))&&(c=!0)}return c},jd=(n,a,l=".")=>{if(!n)return;if(n[a])return Object.prototype.hasOwnProperty.call(n,a)?n[a]:void 0;const i=a.split(l);let s=n;for(let c=0;c<i.length;){if(!s||typeof s!="object")return;let f,h="";for(let p=c;p<i.length;++p)if(p!==c&&(h+=l),h+=i[p],f=s[h],f!==void 0){if(["string","number","boolean"].indexOf(typeof f)>-1&&p<i.length-1)continue;c+=p-c+1;break}s=f}return s},po=n=>n?.replace("_","-"),uS={type:"logger",log(n){this.output("log",n)},warn(n){this.output("warn",n)},error(n){this.output("error",n)},output(n,a){console?.[n]?.apply?.(console,a)}};class dc{constructor(a,l={}){this.init(a,l)}init(a,l={}){this.prefix=l.prefix||"i18next:",this.logger=a||uS,this.options=l,this.debug=l.debug}log(...a){return this.forward(a,"log","",!0)}warn(...a){return this.forward(a,"warn","",!0)}error(...a){return this.forward(a,"error","")}deprecate(...a){return this.forward(a,"warn","WARNING DEPRECATED: ",!0)}forward(a,l,i,s){return s&&!this.debug?null:(Ue(a[0])&&(a[0]=`${i}${this.prefix} ${a[0]}`),this.logger[l](a))}create(a){return new dc(this.logger,{prefix:`${this.prefix}:${a}:`,...this.options})}clone(a){return a=a||this.options,a.prefix=a.prefix||this.prefix,new dc(this.logger,a)}}var In=new dc;class _c{constructor(){this.observers={}}on(a,l){return a.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);const s=this.observers[i].get(l)||0;this.observers[i].set(l,s+1)}),this}off(a,l){if(this.observers[a]){if(!l){delete this.observers[a];return}this.observers[a].delete(l)}}emit(a,...l){this.observers[a]&&Array.from(this.observers[a].entries()).forEach(([s,c])=>{for(let f=0;f<c;f++)s(...l)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([s,c])=>{for(let f=0;f<c;f++)s.apply(s,[a,...l])})}}class vv extends _c{constructor(a,l={ns:["translation"],defaultNS:"translation"}){super(),this.data=a||{},this.options=l,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(a){this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}removeNamespaces(a){const l=this.options.ns.indexOf(a);l>-1&&this.options.ns.splice(l,1)}getResource(a,l,i,s={}){const c=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,f=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let h;a.indexOf(".")>-1?h=a.split("."):(h=[a,l],i&&(Array.isArray(i)?h.push(...i):Ue(i)&&c?h.push(...i.split(c)):h.push(i)));const p=fc(this.data,h);return!p&&!l&&!i&&a.indexOf(".")>-1&&(a=h[0],l=h[1],i=h.slice(2).join(".")),p||!f||!Ue(i)?p:jd(this.data?.[a]?.[l],i,c)}addResource(a,l,i,s,c={silent:!1}){const f=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator;let h=[a,l];i&&(h=h.concat(f?i.split(f):i)),a.indexOf(".")>-1&&(h=a.split("."),s=l,l=h[1]),this.addNamespaces(l),gv(this.data,h,s),c.silent||this.emit("added",a,l,i,s)}addResources(a,l,i,s={silent:!1}){for(const c in i)(Ue(i[c])||Array.isArray(i[c]))&&this.addResource(a,l,c,i[c],{silent:!0});s.silent||this.emit("added",a,l,i)}addResourceBundle(a,l,i,s,c,f={silent:!1,skipCopy:!1}){let h=[a,l];a.indexOf(".")>-1&&(h=a.split("."),s=i,i=l,l=h[1]),this.addNamespaces(l);let p=fc(this.data,h)||{};f.skipCopy||(i=JSON.parse(JSON.stringify(i))),s?Zy(p,i,c):p={...p,...i},gv(this.data,h,p),f.silent||this.emit("added",a,l,i)}removeResourceBundle(a,l){this.hasResourceBundle(a,l)&&delete this.data[a][l],this.removeNamespaces(l),this.emit("removed",a,l)}hasResourceBundle(a,l){return this.getResource(a,l)!==void 0}getResourceBundle(a,l){return l||(l=this.options.defaultNS),this.getResource(a,l)}getDataByLanguage(a){return this.data[a]}hasLanguageSomeTranslations(a){const l=this.getDataByLanguage(a);return!!(l&&Object.keys(l)||[]).find(s=>l[s]&&Object.keys(l[s]).length>0)}toJSON(){return this.data}}var Jy={processors:{},addPostProcessor(n){this.processors[n.name]=n},handle(n,a,l,i,s){return n.forEach(c=>{a=this.processors[c]?.process(a,l,i,s)??a}),a}};const yv={},bv=n=>!Ue(n)&&typeof n!="boolean"&&typeof n!="number";class hc extends _c{constructor(a,l={}){super(),eS(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],a,this),this.options=l,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=In.create("translator")}changeLanguage(a){a&&(this.language=a)}exists(a,l={interpolation:{}}){const i={...l};return a==null?!1:this.resolve(a,i)?.res!==void 0}extractFromKey(a,l){let i=l.nsSeparator!==void 0?l.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const s=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator;let c=l.ns||this.options.defaultNS||[];const f=i&&a.indexOf(i)>-1,h=!this.options.userDefinedKeySeparator&&!l.keySeparator&&!this.options.userDefinedNsSeparator&&!l.nsSeparator&&!cS(a,i,s);if(f&&!h){const p=a.match(this.interpolator.nestingRegexp);if(p&&p.length>0)return{key:a,namespaces:Ue(c)?[c]:c};const m=a.split(i);(i!==s||i===s&&this.options.ns.indexOf(m[0])>-1)&&(c=m.shift()),a=m.join(s)}return{key:a,namespaces:Ue(c)?[c]:c}}translate(a,l,i){let s=typeof l=="object"?{...l}:l;if(typeof s!="object"&&this.options.overloadTranslationOptionHandler&&(s=this.options.overloadTranslationOptionHandler(arguments)),typeof options=="object"&&(s={...s}),s||(s={}),a==null)return"";Array.isArray(a)||(a=[String(a)]);const c=s.returnDetails!==void 0?s.returnDetails:this.options.returnDetails,f=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,{key:h,namespaces:p}=this.extractFromKey(a[a.length-1],s),m=p[p.length-1];let v=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;v===void 0&&(v=":");const b=s.lng||this.language,w=s.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(b?.toLowerCase()==="cimode")return w?c?{res:`${m}${v}${h}`,usedKey:h,exactUsedKey:h,usedLng:b,usedNS:m,usedParams:this.getUsedParamsDetails(s)}:`${m}${v}${h}`:c?{res:h,usedKey:h,exactUsedKey:h,usedLng:b,usedNS:m,usedParams:this.getUsedParamsDetails(s)}:h;const S=this.resolve(a,s);let C=S?.res;const E=S?.usedKey||h,j=S?.exactUsedKey||h,R=["[object Number]","[object Function]","[object RegExp]"],L=s.joinArrays!==void 0?s.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,H=s.count!==void 0&&!Ue(s.count),M=hc.hasDefaultValue(s),N=H?this.pluralResolver.getSuffix(b,s.count,s):"",B=s.ordinal&&H?this.pluralResolver.getSuffix(b,s.count,{ordinal:!1}):"",J=H&&!s.ordinal&&s.count===0,te=J&&s[`defaultValue${this.options.pluralSeparator}zero`]||s[`defaultValue${N}`]||s[`defaultValue${B}`]||s.defaultValue;let ae=C;k&&!C&&M&&(ae=te);const re=bv(ae),fe=Object.prototype.toString.apply(ae);if(k&&ae&&re&&R.indexOf(fe)<0&&!(Ue(L)&&Array.isArray(ae))){if(!s.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const de=this.options.returnedObjectHandler?this.options.returnedObjectHandler(E,ae,{...s,ns:p}):`key '${h} (${this.language})' returned an object instead of string.`;return c?(S.res=de,S.usedParams=this.getUsedParamsDetails(s),S):de}if(f){const de=Array.isArray(ae),Q=de?[]:{},ee=de?j:E;for(const A in ae)if(Object.prototype.hasOwnProperty.call(ae,A)){const X=`${ee}${f}${A}`;M&&!C?Q[A]=this.translate(X,{...s,defaultValue:bv(te)?te[A]:void 0,joinArrays:!1,ns:p}):Q[A]=this.translate(X,{...s,joinArrays:!1,ns:p}),Q[A]===X&&(Q[A]=ae[A])}C=Q}}else if(k&&Ue(L)&&Array.isArray(C))C=C.join(L),C&&(C=this.extendTranslation(C,a,s,i));else{let de=!1,Q=!1;!this.isValidLookup(C)&&M&&(de=!0,C=te),this.isValidLookup(C)||(Q=!0,C=h);const A=(s.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Q?void 0:C,X=M&&te!==C&&this.options.updateMissing;if(Q||de||X){if(this.logger.log(X?"updateKey":"missingKey",b,m,h,X?te:C),f){const G=this.resolve(h,{...s,keySeparator:!1});G&&G.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 V=[];const ye=this.languageUtils.getFallbackCodes(this.options.fallbackLng,s.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ye&&ye[0])for(let G=0;G<ye.length;G++)V.push(ye[G]);else this.options.saveMissingTo==="all"?V=this.languageUtils.toResolveHierarchy(s.lng||this.language):V.push(s.lng||this.language);const O=(G,U,K)=>{const P=M&&K!==C?K:A;this.options.missingKeyHandler?this.options.missingKeyHandler(G,m,U,P,X,s):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(G,m,U,P,X,s),this.emit("missingKey",G,m,U,C)};this.options.saveMissing&&(this.options.saveMissingPlurals&&H?V.forEach(G=>{const U=this.pluralResolver.getSuffixes(G,s);J&&s[`defaultValue${this.options.pluralSeparator}zero`]&&U.indexOf(`${this.options.pluralSeparator}zero`)<0&&U.push(`${this.options.pluralSeparator}zero`),U.forEach(K=>{O([G],h+K,s[`defaultValue${K}`]||te)})}):O(V,h,te))}C=this.extendTranslation(C,a,s,S,i),Q&&C===h&&this.options.appendNamespaceToMissingKey&&(C=`${m}${v}${h}`),(Q||de)&&this.options.parseMissingKeyHandler&&(C=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${m}${v}${h}`:h,de?C:void 0,s))}return c?(S.res=C,S.usedParams=this.getUsedParamsDetails(s),S):C}extendTranslation(a,l,i,s,c){if(this.i18nFormat?.parse)a=this.i18nFormat.parse(a,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const p=Ue(a)&&(i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let m;if(p){const b=a.match(this.interpolator.nestingRegexp);m=b&&b.length}let v=i.replace&&!Ue(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(v={...this.options.interpolation.defaultVariables,...v}),a=this.interpolator.interpolate(a,v,i.lng||this.language||s.usedLng,i),p){const b=a.match(this.interpolator.nestingRegexp),w=b&&b.length;m<w&&(i.nest=!1)}!i.lng&&s&&s.res&&(i.lng=this.language||s.usedLng),i.nest!==!1&&(a=this.interpolator.nest(a,(...b)=>c?.[0]===b[0]&&!i.context?(this.logger.warn(`It seems you are nesting recursively key: ${b[0]} in key: ${l[0]}`),null):this.translate(...b,l),i)),i.interpolation&&this.interpolator.reset()}const f=i.postProcess||this.options.postProcess,h=Ue(f)?[f]:f;return a!=null&&h?.length&&i.applyPostProcessor!==!1&&(a=Jy.handle(h,a,l,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),a}resolve(a,l={}){let i,s,c,f,h;return Ue(a)&&(a=[a]),a.forEach(p=>{if(this.isValidLookup(i))return;const m=this.extractFromKey(p,l),v=m.key;s=v;let b=m.namespaces;this.options.fallbackNS&&(b=b.concat(this.options.fallbackNS));const w=l.count!==void 0&&!Ue(l.count),S=w&&!l.ordinal&&l.count===0,C=l.context!==void 0&&(Ue(l.context)||typeof l.context=="number")&&l.context!=="",E=l.lngs?l.lngs:this.languageUtils.toResolveHierarchy(l.lng||this.language,l.fallbackLng);b.forEach(j=>{this.isValidLookup(i)||(h=j,!yv[`${E[0]}-${j}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(h)&&(yv[`${E[0]}-${j}`]=!0,this.logger.warn(`key "${s}" for languages "${E.join(", ")}" won't get resolved as namespace "${h}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),E.forEach(R=>{if(this.isValidLookup(i))return;f=R;const L=[v];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(L,v,R,j,l);else{let H;w&&(H=this.pluralResolver.getSuffix(R,l.count,l));const M=`${this.options.pluralSeparator}zero`,N=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(w&&(L.push(v+H),l.ordinal&&H.indexOf(N)===0&&L.push(v+H.replace(N,this.options.pluralSeparator)),S&&L.push(v+M)),C){const B=`${v}${this.options.contextSeparator}${l.context}`;L.push(B),w&&(L.push(B+H),l.ordinal&&H.indexOf(N)===0&&L.push(B+H.replace(N,this.options.pluralSeparator)),S&&L.push(B+M))}}let k;for(;k=L.pop();)this.isValidLookup(i)||(c=k,i=this.getResource(R,j,k,l))}))})}),{res:i,usedKey:s,exactUsedKey:c,usedLng:f,usedNS:h}}isValidLookup(a){return a!==void 0&&!(!this.options.returnNull&&a===null)&&!(!this.options.returnEmptyString&&a==="")}getResource(a,l,i,s={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(a,l,i,s):this.resourceStore.getResource(a,l,i,s)}getUsedParamsDetails(a={}){const l=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=a.replace&&!Ue(a.replace);let s=i?a.replace:a;if(i&&typeof a.count<"u"&&(s.count=a.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!i){s={...s};for(const c of l)delete s[c]}return s}static hasDefaultValue(a){const l="defaultValue";for(const i in a)if(Object.prototype.hasOwnProperty.call(a,i)&&l===i.substring(0,l.length)&&a[i]!==void 0)return!0;return!1}}class xv{constructor(a){this.options=a,this.supportedLngs=this.options.supportedLngs||!1,this.logger=In.create("languageUtils")}getScriptPartFromCode(a){if(a=po(a),!a||a.indexOf("-")<0)return null;const l=a.split("-");return l.length===2||(l.pop(),l[l.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(l.join("-"))}getLanguagePartFromCode(a){if(a=po(a),!a||a.indexOf("-")<0)return a;const l=a.split("-");return this.formatLanguageCode(l[0])}formatLanguageCode(a){if(Ue(a)&&a.indexOf("-")>-1){let l;try{l=Intl.getCanonicalLocales(a)[0]}catch{}return l&&this.options.lowerCaseLng&&(l=l.toLowerCase()),l||(this.options.lowerCaseLng?a.toLowerCase():a)}return this.options.cleanCode||this.options.lowerCaseLng?a.toLowerCase():a}isSupportedCode(a){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(a=this.getLanguagePartFromCode(a)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(a)>-1}getBestMatchFromCodes(a){if(!a)return null;let l;return a.forEach(i=>{if(l)return;const s=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(s))&&(l=s)}),!l&&this.options.supportedLngs&&a.forEach(i=>{if(l)return;const s=this.getScriptPartFromCode(i);if(this.isSupportedCode(s))return l=s;const c=this.getLanguagePartFromCode(i);if(this.isSupportedCode(c))return l=c;l=this.options.supportedLngs.find(f=>{if(f===c)return f;if(!(f.indexOf("-")<0&&c.indexOf("-")<0)&&(f.indexOf("-")>0&&c.indexOf("-")<0&&f.substring(0,f.indexOf("-"))===c||f.indexOf(c)===0&&c.length>1))return f})}),l||(l=this.getFallbackCodes(this.options.fallbackLng)[0]),l}getFallbackCodes(a,l){if(!a)return[];if(typeof a=="function"&&(a=a(l)),Ue(a)&&(a=[a]),Array.isArray(a))return a;if(!l)return a.default||[];let i=a[l];return i||(i=a[this.getScriptPartFromCode(l)]),i||(i=a[this.formatLanguageCode(l)]),i||(i=a[this.getLanguagePartFromCode(l)]),i||(i=a.default),i||[]}toResolveHierarchy(a,l){const i=this.getFallbackCodes((l===!1?[]:l)||this.options.fallbackLng||[],a),s=[],c=f=>{f&&(this.isSupportedCode(f)?s.push(f):this.logger.warn(`rejecting language code not found in supportedLngs: ${f}`))};return Ue(a)&&(a.indexOf("-")>-1||a.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&c(this.formatLanguageCode(a)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&c(this.getScriptPartFromCode(a)),this.options.load!=="currentOnly"&&c(this.getLanguagePartFromCode(a))):Ue(a)&&c(this.formatLanguageCode(a)),i.forEach(f=>{s.indexOf(f)<0&&c(this.formatLanguageCode(f))}),s}}const wv={zero:0,one:1,two:2,few:3,many:4,other:5},Sv={select:n=>n===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class fS{constructor(a,l={}){this.languageUtils=a,this.options=l,this.logger=In.create("pluralResolver"),this.pluralRulesCache={}}addRule(a,l){this.rules[a]=l}clearCache(){this.pluralRulesCache={}}getRule(a,l={}){const i=po(a==="dev"?"en":a),s=l.ordinal?"ordinal":"cardinal",c=JSON.stringify({cleanedCode:i,type:s});if(c in this.pluralRulesCache)return this.pluralRulesCache[c];let f;try{f=new Intl.PluralRules(i,{type:s})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Sv;if(!a.match(/-|_/))return Sv;const p=this.languageUtils.getLanguagePartFromCode(a);f=this.getRule(p,l)}return this.pluralRulesCache[c]=f,f}needsPlural(a,l={}){let i=this.getRule(a,l);return i||(i=this.getRule("dev",l)),i?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(a,l,i={}){return this.getSuffixes(a,i).map(s=>`${l}${s}`)}getSuffixes(a,l={}){let i=this.getRule(a,l);return i||(i=this.getRule("dev",l)),i?i.resolvedOptions().pluralCategories.sort((s,c)=>wv[s]-wv[c]).map(s=>`${this.options.prepend}${l.ordinal?`ordinal${this.options.prepend}`:""}${s}`):[]}getSuffix(a,l,i={}){const s=this.getRule(a,i);return s?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${s.select(l)}`:(this.logger.warn(`no plural rule found for: ${a}`),this.getSuffix("dev",l,i))}}const _v=(n,a,l,i=".",s=!0)=>{let c=aS(n,a,l);return!c&&s&&Ue(l)&&(c=jd(n,l,i),c===void 0&&(c=jd(a,l,i))),c},Jf=n=>n.replace(/\$/g,"$$$$");class dS{constructor(a={}){this.logger=In.create("interpolator"),this.options=a,this.format=a?.interpolation?.format||(l=>l),this.init(a)}init(a={}){a.interpolation||(a.interpolation={escapeValue:!0});const{escape:l,escapeValue:i,useRawValueToEscape:s,prefix:c,prefixEscaped:f,suffix:h,suffixEscaped:p,formatSeparator:m,unescapeSuffix:v,unescapePrefix:b,nestingPrefix:w,nestingPrefixEscaped:S,nestingSuffix:C,nestingSuffixEscaped:E,nestingOptionsSeparator:j,maxReplaces:R,alwaysFormat:L}=a.interpolation;this.escape=l!==void 0?l:lS,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=c?zl(c):f||"{{",this.suffix=h?zl(h):p||"}}",this.formatSeparator=m||",",this.unescapePrefix=v?"":b||"-",this.unescapeSuffix=this.unescapePrefix?"":v||"",this.nestingPrefix=w?zl(w):S||zl("$t("),this.nestingSuffix=C?zl(C):E||zl(")"),this.nestingOptionsSeparator=j||",",this.maxReplaces=R||1e3,this.alwaysFormat=L!==void 0?L:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const a=(l,i)=>l?.source===i?(l.lastIndex=0,l):new RegExp(i,"g");this.regexp=a(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=a(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=a(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(a,l,i,s){let c,f,h;const p=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},m=S=>{if(S.indexOf(this.formatSeparator)<0){const R=_v(l,p,S,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(R,void 0,i,{...s,...l,interpolationkey:S}):R}const C=S.split(this.formatSeparator),E=C.shift().trim(),j=C.join(this.formatSeparator).trim();return this.format(_v(l,p,E,this.options.keySeparator,this.options.ignoreJSONStructure),j,i,{...s,...l,interpolationkey:E})};this.resetRegExp();const v=s?.missingInterpolationHandler||this.options.missingInterpolationHandler,b=s?.interpolation?.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:S=>Jf(S)},{regex:this.regexp,safeValue:S=>this.escapeValue?Jf(this.escape(S)):Jf(S)}].forEach(S=>{for(h=0;c=S.regex.exec(a);){const C=c[1].trim();if(f=m(C),f===void 0)if(typeof v=="function"){const j=v(a,c,s);f=Ue(j)?j:""}else if(s&&Object.prototype.hasOwnProperty.call(s,C))f="";else if(b){f=c[0];continue}else this.logger.warn(`missed to pass in variable ${C} for interpolating ${a}`),f="";else!Ue(f)&&!this.useRawValueToEscape&&(f=hv(f));const E=S.safeValue(f);if(a=a.replace(c[0],E),b?(S.regex.lastIndex+=f.length,S.regex.lastIndex-=c[0].length):S.regex.lastIndex=0,h++,h>=this.maxReplaces)break}}),a}nest(a,l,i={}){let s,c,f;const h=(p,m)=>{const v=this.nestingOptionsSeparator;if(p.indexOf(v)<0)return p;const b=p.split(new RegExp(`${v}[ ]*{`));let w=`{${b[1]}`;p=b[0],w=this.interpolate(w,f);const S=w.match(/'/g),C=w.match(/"/g);((S?.length??0)%2===0&&!C||C.length%2!==0)&&(w=w.replace(/'/g,'"'));try{f=JSON.parse(w),m&&(f={...m,...f})}catch(E){return this.logger.warn(`failed parsing options string in nesting for key ${p}`,E),`${p}${v}${w}`}return f.defaultValue&&f.defaultValue.indexOf(this.prefix)>-1&&delete f.defaultValue,p};for(;s=this.nestingRegexp.exec(a);){let p=[];f={...i},f=f.replace&&!Ue(f.replace)?f.replace:f,f.applyPostProcessor=!1,delete f.defaultValue;const m=/{.*}/.test(s[1])?s[1].lastIndexOf("}")+1:s[1].indexOf(this.formatSeparator);if(m!==-1&&(p=s[1].slice(m).split(this.formatSeparator).map(v=>v.trim()).filter(Boolean),s[1]=s[1].slice(0,m)),c=l(h.call(this,s[1].trim(),f),f),c&&s[0]===a&&!Ue(c))return c;Ue(c)||(c=hv(c)),c||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${a}`),c=""),p.length&&(c=p.reduce((v,b)=>this.format(v,b,i.lng,{...i,interpolationkey:s[1].trim()}),c.trim())),a=a.replace(s[0],c),this.regexp.lastIndex=0}return a}}const hS=n=>{let a=n.toLowerCase().trim();const l={};if(n.indexOf("(")>-1){const i=n.split("(");a=i[0].toLowerCase().trim();const s=i[1].substring(0,i[1].length-1);a==="currency"&&s.indexOf(":")<0?l.currency||(l.currency=s.trim()):a==="relativetime"&&s.indexOf(":")<0?l.range||(l.range=s.trim()):s.split(";").forEach(f=>{if(f){const[h,...p]=f.split(":"),m=p.join(":").trim().replace(/^'+|'+$/g,""),v=h.trim();l[v]||(l[v]=m),m==="false"&&(l[v]=!1),m==="true"&&(l[v]=!0),isNaN(m)||(l[v]=parseInt(m,10))}})}return{formatName:a,formatOptions:l}},Ev=n=>{const a={};return(l,i,s)=>{let c=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(c={...c,[s.interpolationkey]:void 0});const f=i+JSON.stringify(c);let h=a[f];return h||(h=n(po(i),s),a[f]=h),h(l)}},mS=n=>(a,l,i)=>n(po(l),i)(a);class pS{constructor(a={}){this.logger=In.create("formatter"),this.options=a,this.init(a)}init(a,l={interpolation:{}}){this.formatSeparator=l.interpolation.formatSeparator||",";const i=l.cacheInBuiltFormats?Ev:mS;this.formats={number:i((s,c)=>{const f=new Intl.NumberFormat(s,{...c});return h=>f.format(h)}),currency:i((s,c)=>{const f=new Intl.NumberFormat(s,{...c,style:"currency"});return h=>f.format(h)}),datetime:i((s,c)=>{const f=new Intl.DateTimeFormat(s,{...c});return h=>f.format(h)}),relativetime:i((s,c)=>{const f=new Intl.RelativeTimeFormat(s,{...c});return h=>f.format(h,c.range||"day")}),list:i((s,c)=>{const f=new Intl.ListFormat(s,{...c});return h=>f.format(h)})}}add(a,l){this.formats[a.toLowerCase().trim()]=l}addCached(a,l){this.formats[a.toLowerCase().trim()]=Ev(l)}format(a,l,i,s={}){const c=l.split(this.formatSeparator);if(c.length>1&&c[0].indexOf("(")>1&&c[0].indexOf(")")<0&&c.find(h=>h.indexOf(")")>-1)){const h=c.findIndex(p=>p.indexOf(")")>-1);c[0]=[c[0],...c.splice(1,h)].join(this.formatSeparator)}return c.reduce((h,p)=>{const{formatName:m,formatOptions:v}=hS(p);if(this.formats[m]){let b=h;try{const w=s?.formatParams?.[s.interpolationkey]||{},S=w.locale||w.lng||s.locale||s.lng||i;b=this.formats[m](h,S,{...v,...s,...w})}catch(w){this.logger.warn(w)}return b}else this.logger.warn(`there was no format function for ${m}`);return h},a)}}const gS=(n,a)=>{n.pending[a]!==void 0&&(delete n.pending[a],n.pendingCount--)};class vS extends _c{constructor(a,l,i,s={}){super(),this.backend=a,this.store=l,this.services=i,this.languageUtils=i.languageUtils,this.options=s,this.logger=In.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(i,s.backend,s)}queueLoad(a,l,i,s){const c={},f={},h={},p={};return a.forEach(m=>{let v=!0;l.forEach(b=>{const w=`${m}|${b}`;!i.reload&&this.store.hasResourceBundle(m,b)?this.state[w]=2:this.state[w]<0||(this.state[w]===1?f[w]===void 0&&(f[w]=!0):(this.state[w]=1,v=!1,f[w]===void 0&&(f[w]=!0),c[w]===void 0&&(c[w]=!0),p[b]===void 0&&(p[b]=!0)))}),v||(h[m]=!0)}),(Object.keys(c).length||Object.keys(f).length)&&this.queue.push({pending:f,pendingCount:Object.keys(f).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(c),pending:Object.keys(f),toLoadLanguages:Object.keys(h),toLoadNamespaces:Object.keys(p)}}loaded(a,l,i){const s=a.split("|"),c=s[0],f=s[1];l&&this.emit("failedLoading",c,f,l),!l&&i&&this.store.addResourceBundle(c,f,i,void 0,void 0,{skipCopy:!0}),this.state[a]=l?-1:2,l&&i&&(this.state[a]=0);const h={};this.queue.forEach(p=>{nS(p.loaded,[c],f),gS(p,a),l&&p.errors.push(l),p.pendingCount===0&&!p.done&&(Object.keys(p.loaded).forEach(m=>{h[m]||(h[m]={});const v=p.loaded[m];v.length&&v.forEach(b=>{h[m][b]===void 0&&(h[m][b]=!0)})}),p.done=!0,p.errors.length?p.callback(p.errors):p.callback())}),this.emit("loaded",h),this.queue=this.queue.filter(p=>!p.done)}read(a,l,i,s=0,c=this.retryTimeout,f){if(!a.length)return f(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:a,ns:l,fcName:i,tried:s,wait:c,callback:f});return}this.readingCalls++;const h=(m,v)=>{if(this.readingCalls--,this.waitingReads.length>0){const b=this.waitingReads.shift();this.read(b.lng,b.ns,b.fcName,b.tried,b.wait,b.callback)}if(m&&v&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,a,l,i,s+1,c*2,f)},c);return}f(m,v)},p=this.backend[i].bind(this.backend);if(p.length===2){try{const m=p(a,l);m&&typeof m.then=="function"?m.then(v=>h(null,v)).catch(h):h(null,m)}catch(m){h(m)}return}return p(a,l,h)}prepareLoading(a,l,i={},s){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();Ue(a)&&(a=this.languageUtils.toResolveHierarchy(a)),Ue(l)&&(l=[l]);const c=this.queueLoad(a,l,i,s);if(!c.toLoad.length)return c.pending.length||s(),null;c.toLoad.forEach(f=>{this.loadOne(f)})}load(a,l,i){this.prepareLoading(a,l,{},i)}reload(a,l,i){this.prepareLoading(a,l,{reload:!0},i)}loadOne(a,l=""){const i=a.split("|"),s=i[0],c=i[1];this.read(s,c,"read",void 0,void 0,(f,h)=>{f&&this.logger.warn(`${l}loading namespace ${c} for language ${s} failed`,f),!f&&h&&this.logger.log(`${l}loaded namespace ${c} for language ${s}`,h),this.loaded(a,f,h)})}saveMissing(a,l,i,s,c,f={},h=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(l)){this.logger.warn(`did not save key "${i}" as the namespace "${l}" 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(!(i==null||i==="")){if(this.backend?.create){const p={...f,isUpdate:c},m=this.backend.create.bind(this.backend);if(m.length<6)try{let v;m.length===5?v=m(a,l,i,s,p):v=m(a,l,i,s),v&&typeof v.then=="function"?v.then(b=>h(null,b)).catch(h):h(null,v)}catch(v){h(v)}else m(a,l,i,s,h,p)}!a||!a[0]||this.store.addResource(a[0],l,i,s)}}}const Cv=()=>({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:n=>{let a={};if(typeof n[1]=="object"&&(a=n[1]),Ue(n[1])&&(a.defaultValue=n[1]),Ue(n[2])&&(a.tDescription=n[2]),typeof n[2]=="object"||typeof n[3]=="object"){const l=n[3]||n[2];Object.keys(l).forEach(i=>{a[i]=l[i]})}return a},interpolation:{escapeValue:!0,format:n=>n,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Nv=n=>(Ue(n.ns)&&(n.ns=[n.ns]),Ue(n.fallbackLng)&&(n.fallbackLng=[n.fallbackLng]),Ue(n.fallbackNS)&&(n.fallbackNS=[n.fallbackNS]),n.supportedLngs?.indexOf?.("cimode")<0&&(n.supportedLngs=n.supportedLngs.concat(["cimode"])),typeof n.initImmediate=="boolean"&&(n.initAsync=n.initImmediate),n),Fs=()=>{},yS=n=>{Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(l=>{typeof n[l]=="function"&&(n[l]=n[l].bind(n))})};class go extends _c{constructor(a={},l){if(super(),this.options=Nv(a),this.services={},this.logger=In,this.modules={external:[]},yS(this),l&&!this.isInitialized&&!a.isClone){if(!this.options.initAsync)return this.init(a,l),this;setTimeout(()=>{this.init(a,l)},0)}}init(a={},l){this.isInitializing=!0,typeof a=="function"&&(l=a,a={}),a.defaultNS==null&&a.ns&&(Ue(a.ns)?a.defaultNS=a.ns:a.ns.indexOf("translation")<0&&(a.defaultNS=a.ns[0]));const i=Cv();this.options={...i,...this.options,...Nv(a)},this.options.interpolation={...i.interpolation,...this.options.interpolation},a.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=a.keySeparator),a.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=a.nsSeparator);const s=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?In.init(s(this.modules.logger),this.options):In.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:m=pS;const v=new xv(this.options);this.store=new vv(this.options.resources,this.options);const b=this.services;b.logger=In,b.resourceStore=this.store,b.languageUtils=v,b.pluralResolver=new fS(v,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format&&this.logger.warn("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),m&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(b.formatter=s(m),b.formatter.init&&b.formatter.init(b,this.options),this.options.interpolation.format=b.formatter.format.bind(b.formatter)),b.interpolator=new dS(this.options),b.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},b.backendConnector=new vS(s(this.modules.backend),b.resourceStore,b,this.options),b.backendConnector.on("*",(S,...C)=>{this.emit(S,...C)}),this.modules.languageDetector&&(b.languageDetector=s(this.modules.languageDetector),b.languageDetector.init&&b.languageDetector.init(b,this.options.detection,this.options)),this.modules.i18nFormat&&(b.i18nFormat=s(this.modules.i18nFormat),b.i18nFormat.init&&b.i18nFormat.init(this)),this.translator=new hc(this.services,this.options),this.translator.on("*",(S,...C)=>{this.emit(S,...C)}),this.modules.external.forEach(S=>{S.init&&S.init(this)})}if(this.format=this.options.interpolation.format,l||(l=Fs),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[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(m=>{this[m]=(...v)=>this.store[m](...v)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(m=>{this[m]=(...v)=>(this.store[m](...v),this)});const h=no(),p=()=>{const m=(v,b)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),h.resolve(b),l(v,b)};if(this.languages&&!this.isInitialized)return m(null,this.t.bind(this));this.changeLanguage(this.options.lng,m)};return this.options.resources||!this.options.initAsync?p():setTimeout(p,0),h}loadResources(a,l=Fs){let i=l;const s=Ue(a)?a:this.language;if(typeof a=="function"&&(i=a),!this.options.resources||this.options.partialBundledLanguages){if(s?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();const c=[],f=h=>{if(!h||h==="cimode")return;this.services.languageUtils.toResolveHierarchy(h).forEach(m=>{m!=="cimode"&&c.indexOf(m)<0&&c.push(m)})};s?f(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(p=>f(p)),this.options.preload?.forEach?.(h=>f(h)),this.services.backendConnector.load(c,this.options.ns,h=>{!h&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(h)})}else i(null)}reloadResources(a,l,i){const s=no();return typeof a=="function"&&(i=a,a=void 0),typeof l=="function"&&(i=l,l=void 0),a||(a=this.languages),l||(l=this.options.ns),i||(i=Fs),this.services.backendConnector.reload(a,l,c=>{s.resolve(),i(c)}),s}use(a){if(!a)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!a.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return a.type==="backend"&&(this.modules.backend=a),(a.type==="logger"||a.log&&a.warn&&a.error)&&(this.modules.logger=a),a.type==="languageDetector"&&(this.modules.languageDetector=a),a.type==="i18nFormat"&&(this.modules.i18nFormat=a),a.type==="postProcessor"&&Jy.addPostProcessor(a),a.type==="formatter"&&(this.modules.formatter=a),a.type==="3rdParty"&&this.modules.external.push(a),this}setResolvedLanguage(a){if(!(!a||!this.languages)&&!(["cimode","dev"].indexOf(a)>-1)){for(let l=0;l<this.languages.length;l++){const i=this.languages[l];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}!this.resolvedLanguage&&this.languages.indexOf(a)<0&&this.store.hasLanguageSomeTranslations(a)&&(this.resolvedLanguage=a,this.languages.unshift(a))}}changeLanguage(a,l){this.isLanguageChangingTo=a;const i=no();this.emit("languageChanging",a);const s=h=>{this.language=h,this.languages=this.services.languageUtils.toResolveHierarchy(h),this.resolvedLanguage=void 0,this.setResolvedLanguage(h)},c=(h,p)=>{p?this.isLanguageChangingTo===a&&(s(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,i.resolve((...m)=>this.t(...m)),l&&l(h,(...m)=>this.t(...m))},f=h=>{!a&&!h&&this.services.languageDetector&&(h=[]);const p=Ue(h)?h:h&&h[0],m=this.store.hasLanguageSomeTranslations(p)?p:this.services.languageUtils.getBestMatchFromCodes(Ue(h)?[h]:h);m&&(this.language||s(m),this.translator.language||this.translator.changeLanguage(m),this.services.languageDetector?.cacheUserLanguage?.(m)),this.loadResources(m,v=>{c(v,m)})};return!a&&this.services.languageDetector&&!this.services.languageDetector.async?f(this.services.languageDetector.detect()):!a&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(f):this.services.languageDetector.detect(f):f(a),i}getFixedT(a,l,i){const s=(c,f,...h)=>{let p;typeof f!="object"?p=this.options.overloadTranslationOptionHandler([c,f].concat(h)):p={...f},p.lng=p.lng||s.lng,p.lngs=p.lngs||s.lngs,p.ns=p.ns||s.ns,p.keyPrefix!==""&&(p.keyPrefix=p.keyPrefix||i||s.keyPrefix);const m=this.options.keySeparator||".";let v;return p.keyPrefix&&Array.isArray(c)?v=c.map(b=>`${p.keyPrefix}${m}${b}`):v=p.keyPrefix?`${p.keyPrefix}${m}${c}`:c,this.t(v,p)};return Ue(a)?s.lng=a:s.lngs=a,s.ns=l,s.keyPrefix=i,s}t(...a){return this.translator?.translate(...a)}exists(...a){return this.translator?.exists(...a)}setDefaultNamespace(a){this.options.defaultNS=a}hasLoadedNamespace(a,l={}){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 i=l.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const f=(h,p)=>{const m=this.services.backendConnector.state[`${h}|${p}`];return m===-1||m===0||m===2};if(l.precheck){const h=l.precheck(this,f);if(h!==void 0)return h}return!!(this.hasResourceBundle(i,a)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||f(i,a)&&(!s||f(c,a)))}loadNamespaces(a,l){const i=no();return this.options.ns?(Ue(a)&&(a=[a]),a.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{i.resolve(),l&&l(s)}),i):(l&&l(),Promise.resolve())}loadLanguages(a,l){const i=no();Ue(a)&&(a=[a]);const s=this.options.preload||[],c=a.filter(f=>s.indexOf(f)<0&&this.services.languageUtils.isSupportedCode(f));return c.length?(this.options.preload=s.concat(c),this.loadResources(f=>{i.resolve(),l&&l(f)}),i):(l&&l(),Promise.resolve())}dir(a){if(a||(a=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!a)return"rtl";try{const s=new Intl.Locale(a);if(s&&s.getTextInfo){const c=s.getTextInfo();if(c&&c.direction)return c.direction}}catch{}const l=["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"],i=this.services?.languageUtils||new xv(Cv());return a.toLowerCase().indexOf("-latn")>1?"ltr":l.indexOf(i.getLanguagePartFromCode(a))>-1||a.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(a={},l){return new go(a,l)}cloneInstance(a={},l=Fs){const i=a.forkResourceStore;i&&delete a.forkResourceStore;const s={...this.options,...a,isClone:!0},c=new go(s);if((a.debug!==void 0||a.prefix!==void 0)&&(c.logger=c.logger.clone(a)),["store","services","language"].forEach(h=>{c[h]=this[h]}),c.services={...this.services},c.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},i){const h=Object.keys(this.store.data).reduce((p,m)=>(p[m]={...this.store.data[m]},p[m]=Object.keys(p[m]).reduce((v,b)=>(v[b]={...p[m][b]},v),p[m]),p),{});c.store=new vv(h,s),c.services.resourceStore=c.store}return c.translator=new hc(c.services,s),c.translator.on("*",(h,...p)=>{c.emit(h,...p)}),c.init(s,l),c.translator.options=s,c.translator.backendConnector.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},c}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Kt=go.createInstance();Kt.createInstance=go.createInstance;Kt.createInstance;Kt.dir;Kt.init;Kt.loadResources;Kt.reloadResources;Kt.use;Kt.changeLanguage;Kt.getFixedT;Kt.t;Kt.exists;Kt.setDefaultNamespace;Kt.hasLoadedNamespace;Kt.loadNamespaces;Kt.loadLanguages;var Wf={exports:{}},Be={};/**
16
16
  * @license React
17
17
  * react.production.js
18
18
  *
@@ -20,7 +20,7 @@
20
20
  *
21
21
  * This source code is licensed under the MIT license found in the
22
22
  * LICENSE file in the root directory of this source tree.
23
- */var Cv;function vS(){if(Cv)return Be;Cv=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.iterator;function w(O){return O===null||typeof O!="object"?null:(O=b&&O[b]||O["@@iterator"],typeof O=="function"?O:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,_={};function j(O,F,U){this.props=O,this.context=F,this.refs=_,this.updater=U||S}j.prototype.isReactComponent={},j.prototype.setState=function(O,F){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,F,"setState")},j.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function N(){}N.prototype=j.prototype;function z(O,F,U){this.props=O,this.context=F,this.refs=_,this.updater=U||S}var k=z.prototype=new N;k.constructor=z,C(k,j.prototype),k.isPureReactComponent=!0;var H=Array.isArray,D={H:null,A:null,T:null,S:null,V:null},R=Object.prototype.hasOwnProperty;function B(O,F,U,K,ae,de){return U=de.ref,{$$typeof:n,type:O,key:F,ref:U!==void 0?U:null,props:de}}function Z(O,F){return B(O.type,F,void 0,void 0,void 0,O.props)}function ne(O){return typeof O=="object"&&O!==null&&O.$$typeof===n}function oe(O){var F={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(U){return F[U]})}var le=/\/+/g;function J(O,F){return typeof O=="object"&&O!==null&&O.key!=null?oe(""+O.key):F.toString(36)}function te(){}function W(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(te,te):(O.status="pending",O.then(function(F){O.status==="pending"&&(O.status="fulfilled",O.value=F)},function(F){O.status==="pending"&&(O.status="rejected",O.reason=F)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function ue(O,F,U,K,ae){var de=typeof O;(de==="undefined"||de==="boolean")&&(O=null);var ge=!1;if(O===null)ge=!0;else switch(de){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(O.$$typeof){case n:case a:ge=!0;break;case v:return ge=O._init,ue(ge(O._payload),F,U,K,ae)}}if(ge)return ae=ae(O),ge=K===""?"."+J(O,0):K,H(ae)?(U="",ge!=null&&(U=ge.replace(le,"$&/")+"/"),ue(ae,F,U,"",function(qe){return qe})):ae!=null&&(ne(ae)&&(ae=Z(ae,U+(ae.key==null||O&&O.key===ae.key?"":(""+ae.key).replace(le,"$&/")+"/")+ge)),F.push(ae)),1;ge=0;var ye=K===""?".":K+":";if(H(O))for(var Le=0;Le<O.length;Le++)K=O[Le],de=ye+J(K,Le),ge+=ue(K,F,U,de,ae);else if(Le=w(O),typeof Le=="function")for(O=Le.call(O),Le=0;!(K=O.next()).done;)K=K.value,de=ye+J(K,Le++),ge+=ue(K,F,U,de,ae);else if(de==="object"){if(typeof O.then=="function")return ue(W(O),F,U,K,ae);throw F=String(O),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return ge}function A(O,F,U){if(O==null)return O;var K=[],ae=0;return ue(O,K,"","",function(de){return F.call(U,de,ae++)}),K}function Q(O){if(O._status===-1){var F=O._result;F=F(),F.then(function(U){(O._status===0||O._status===-1)&&(O._status=1,O._result=U)},function(U){(O._status===0||O._status===-1)&&(O._status=2,O._result=U)}),O._status===-1&&(O._status=0,O._result=F)}if(O._status===1)return O._result.default;throw O._result}var V=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)};function ve(){}return Be.Children={map:A,forEach:function(O,F,U){A(O,function(){F.apply(this,arguments)},U)},count:function(O){var F=0;return A(O,function(){F++}),F},toArray:function(O){return A(O,function(F){return F})||[]},only:function(O){if(!ne(O))throw Error("React.Children.only expected to receive a single React element child.");return O}},Be.Component=j,Be.Fragment=l,Be.Profiler=s,Be.PureComponent=z,Be.StrictMode=i,Be.Suspense=p,Be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,Be.__COMPILER_RUNTIME={__proto__:null,c:function(O){return D.H.useMemoCache(O)}},Be.cache=function(O){return function(){return O.apply(null,arguments)}},Be.cloneElement=function(O,F,U){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var K=C({},O.props),ae=O.key,de=void 0;if(F!=null)for(ge in F.ref!==void 0&&(de=void 0),F.key!==void 0&&(ae=""+F.key),F)!R.call(F,ge)||ge==="key"||ge==="__self"||ge==="__source"||ge==="ref"&&F.ref===void 0||(K[ge]=F[ge]);var ge=arguments.length-2;if(ge===1)K.children=U;else if(1<ge){for(var ye=Array(ge),Le=0;Le<ge;Le++)ye[Le]=arguments[Le+2];K.children=ye}return B(O.type,ae,void 0,void 0,de,K)},Be.createContext=function(O){return O={$$typeof:f,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:u,_context:O},O},Be.createElement=function(O,F,U){var K,ae={},de=null;if(F!=null)for(K in F.key!==void 0&&(de=""+F.key),F)R.call(F,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(ae[K]=F[K]);var ge=arguments.length-2;if(ge===1)ae.children=U;else if(1<ge){for(var ye=Array(ge),Le=0;Le<ge;Le++)ye[Le]=arguments[Le+2];ae.children=ye}if(O&&O.defaultProps)for(K in ge=O.defaultProps,ge)ae[K]===void 0&&(ae[K]=ge[K]);return B(O,de,void 0,void 0,null,ae)},Be.createRef=function(){return{current:null}},Be.forwardRef=function(O){return{$$typeof:h,render:O}},Be.isValidElement=ne,Be.lazy=function(O){return{$$typeof:v,_payload:{_status:-1,_result:O},_init:Q}},Be.memo=function(O,F){return{$$typeof:m,type:O,compare:F===void 0?null:F}},Be.startTransition=function(O){var F=D.T,U={};D.T=U;try{var K=O(),ae=D.S;ae!==null&&ae(U,K),typeof K=="object"&&K!==null&&typeof K.then=="function"&&K.then(ve,V)}catch(de){V(de)}finally{D.T=F}},Be.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},Be.use=function(O){return D.H.use(O)},Be.useActionState=function(O,F,U){return D.H.useActionState(O,F,U)},Be.useCallback=function(O,F){return D.H.useCallback(O,F)},Be.useContext=function(O){return D.H.useContext(O)},Be.useDebugValue=function(){},Be.useDeferredValue=function(O,F){return D.H.useDeferredValue(O,F)},Be.useEffect=function(O,F,U){var K=D.H;if(typeof U=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return K.useEffect(O,F)},Be.useId=function(){return D.H.useId()},Be.useImperativeHandle=function(O,F,U){return D.H.useImperativeHandle(O,F,U)},Be.useInsertionEffect=function(O,F){return D.H.useInsertionEffect(O,F)},Be.useLayoutEffect=function(O,F){return D.H.useLayoutEffect(O,F)},Be.useMemo=function(O,F){return D.H.useMemo(O,F)},Be.useOptimistic=function(O,F){return D.H.useOptimistic(O,F)},Be.useReducer=function(O,F,U){return D.H.useReducer(O,F,U)},Be.useRef=function(O){return D.H.useRef(O)},Be.useState=function(O){return D.H.useState(O)},Be.useSyncExternalStore=function(O,F,U){return D.H.useSyncExternalStore(O,F,U)},Be.useTransition=function(){return D.H.useTransition()},Be.version="19.1.1",Be}var Nv;function Wd(){return Nv||(Nv=1,Wf.exports=vS()),Wf.exports}var y=Wd();const mt=Xy(y),Iy=Qw({__proto__:null,default:mt},[y]),yS=(n,a,l,i)=>{const s=[l,{code:a,...i||{}}];if(n?.services?.logger?.forward)return n.services.logger.forward(s,"warn","react-i18next::",!0);Yr(s[0])&&(s[0]=`react-i18next:: ${s[0]}`),n?.services?.logger?.warn?n.services.logger.warn(...s):console?.warn&&console.warn(...s)},Rv={},jd=(n,a,l,i)=>{Yr(l)&&Rv[l]||(Yr(l)&&(Rv[l]=new Date),yS(n,a,l,i))},Jy=(n,a)=>()=>{if(n.isInitialized)a();else{const l=()=>{setTimeout(()=>{n.off("initialized",l)},0),a()};n.on("initialized",l)}},Od=(n,a,l)=>{n.loadNamespaces(a,Jy(n,l))},jv=(n,a,l,i)=>{if(Yr(l)&&(l=[l]),n.options.preload&&n.options.preload.indexOf(a)>-1)return Od(n,l,i);l.forEach(s=>{n.options.ns.indexOf(s)<0&&n.options.ns.push(s)}),n.loadLanguages(a,Jy(n,i))},bS=(n,a,l={})=>!a.languages||!a.languages.length?(jd(a,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:a.languages}),!0):a.hasLoadedNamespace(n,{lng:l.lng,precheck:(i,s)=>{if(l.bindI18n&&l.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!s(i.isLanguageChangingTo,n))return!1}}),Yr=n=>typeof n=="string",xS=n=>typeof n=="object"&&n!==null,wS=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,SS={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},ES=n=>SS[n],_S=n=>n.replace(wS,ES);let Ad={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:_S};const CS=(n={})=>{Ad={...Ad,...n}},NS=()=>Ad;let Wy;const RS=n=>{Wy=n},jS=()=>Wy,OS={type:"3rdParty",init(n){CS(n.options.react),RS(n)}},AS=y.createContext();class TS{constructor(){this.usedNamespaces={}}addUsedNamespaces(a){a.forEach(l=>{this.usedNamespaces[l]||(this.usedNamespaces[l]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const MS=(n,a)=>{const l=y.useRef();return y.useEffect(()=>{l.current=n},[n,a]),l.current},e0=(n,a,l,i)=>n.getFixedT(a,l,i),DS=(n,a,l,i)=>y.useCallback(e0(n,a,l,i),[n,a,l,i]),hr=(n,a={})=>{const{i18n:l}=a,{i18n:i,defaultNS:s}=y.useContext(AS)||{},u=l||i||jS();if(u&&!u.reportNamespaces&&(u.reportNamespaces=new TS),!u){jd(u,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const H=(R,B)=>Yr(B)?B:xS(B)&&Yr(B.defaultValue)?B.defaultValue:Array.isArray(R)?R[R.length-1]:R,D=[H,{},!1];return D.t=H,D.i18n={},D.ready=!1,D}u.options.react?.wait&&jd(u,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const f={...NS(),...u.options.react,...a},{useSuspense:h,keyPrefix:p}=f;let m=s||u.options?.defaultNS;m=Yr(m)?[m]:m||["translation"],u.reportNamespaces.addUsedNamespaces?.(m);const v=(u.isInitialized||u.initializedStoreOnce)&&m.every(H=>bS(H,u,f)),b=DS(u,a.lng||null,f.nsMode==="fallback"?m:m[0],p),w=()=>b,S=()=>e0(u,a.lng||null,f.nsMode==="fallback"?m:m[0],p),[C,_]=y.useState(w);let j=m.join();a.lng&&(j=`${a.lng}${j}`);const N=MS(j),z=y.useRef(!0);y.useEffect(()=>{const{bindI18n:H,bindI18nStore:D}=f;z.current=!0,!v&&!h&&(a.lng?jv(u,a.lng,m,()=>{z.current&&_(S)}):Od(u,m,()=>{z.current&&_(S)})),v&&N&&N!==j&&z.current&&_(S);const R=()=>{z.current&&_(S)};return H&&u?.on(H,R),D&&u?.store.on(D,R),()=>{z.current=!1,u&&H&&H?.split(" ").forEach(B=>u.off(B,R)),D&&u&&D.split(" ").forEach(B=>u.store.off(B,R))}},[u,j]),y.useEffect(()=>{z.current&&v&&_(w)},[u,p,v]);const k=[C,u,v];if(k.t=C,k.i18n=u,k.ready=v,v||!v&&!h)return k;throw new Promise(H=>{a.lng?jv(u,a.lng,m,()=>H()):Od(u,m,()=>H())})},{slice:LS,forEach:kS}=[];function zS(n){return kS.call(LS.call(arguments,1),a=>{if(a)for(const l in a)n[l]===void 0&&(n[l]=a[l])}),n}function US(n){return typeof n!="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(l=>l.test(n))}const Ov=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,PS=function(n,a){const i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},s=encodeURIComponent(a);let u=`${n}=${s}`;if(i.maxAge>0){const f=i.maxAge-0;if(Number.isNaN(f))throw new Error("maxAge should be a Number");u+=`; Max-Age=${Math.floor(f)}`}if(i.domain){if(!Ov.test(i.domain))throw new TypeError("option domain is invalid");u+=`; Domain=${i.domain}`}if(i.path){if(!Ov.test(i.path))throw new TypeError("option path is invalid");u+=`; Path=${i.path}`}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");u+=`; Expires=${i.expires.toUTCString()}`}if(i.httpOnly&&(u+="; HttpOnly"),i.secure&&(u+="; Secure"),i.sameSite)switch(typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite){case!0:u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"strict":u+="; SameSite=Strict";break;case"none":u+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i.partitioned&&(u+="; Partitioned"),u},Av={create(n,a,l,i){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};l&&(s.expires=new Date,s.expires.setTime(s.expires.getTime()+l*60*1e3)),i&&(s.domain=i),document.cookie=PS(n,a,s)},read(n){const a=`${n}=`,l=document.cookie.split(";");for(let i=0;i<l.length;i++){let s=l[i];for(;s.charAt(0)===" ";)s=s.substring(1,s.length);if(s.indexOf(a)===0)return s.substring(a.length,s.length)}return null},remove(n,a){this.create(n,"",-1,a)}};var HS={name:"cookie",lookup(n){let{lookupCookie:a}=n;if(a&&typeof document<"u")return Av.read(a)||void 0},cacheUserLanguage(n,a){let{lookupCookie:l,cookieMinutes:i,cookieDomain:s,cookieOptions:u}=a;l&&typeof document<"u"&&Av.create(l,n,i,s,u)}},BS={name:"querystring",lookup(n){let{lookupQuerystring:a}=n,l;if(typeof window<"u"){let{search:i}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));const u=i.substring(1).split("&");for(let f=0;f<u.length;f++){const h=u[f].indexOf("=");h>0&&u[f].substring(0,h)===a&&(l=u[f].substring(h+1))}}return l}},$S={name:"hash",lookup(n){let{lookupHash:a,lookupFromHashIndex:l}=n,i;if(typeof window<"u"){const{hash:s}=window.location;if(s&&s.length>2){const u=s.substring(1);if(a){const f=u.split("&");for(let h=0;h<f.length;h++){const p=f[h].indexOf("=");p>0&&f[h].substring(0,p)===a&&(i=f[h].substring(p+1))}}if(i)return i;if(!i&&l>-1){const f=s.match(/\/([a-zA-Z-]*)/g);return Array.isArray(f)?f[typeof l=="number"?l:0]?.replace("/",""):void 0}}}return i}};let zl=null;const Tv=()=>{if(zl!==null)return zl;try{if(zl=typeof window<"u"&&window.localStorage!==null,!zl)return!1;const n="i18next.translate.boo";window.localStorage.setItem(n,"foo"),window.localStorage.removeItem(n)}catch{zl=!1}return zl};var VS={name:"localStorage",lookup(n){let{lookupLocalStorage:a}=n;if(a&&Tv())return window.localStorage.getItem(a)||void 0},cacheUserLanguage(n,a){let{lookupLocalStorage:l}=a;l&&Tv()&&window.localStorage.setItem(l,n)}};let Ul=null;const Mv=()=>{if(Ul!==null)return Ul;try{if(Ul=typeof window<"u"&&window.sessionStorage!==null,!Ul)return!1;const n="i18next.translate.boo";window.sessionStorage.setItem(n,"foo"),window.sessionStorage.removeItem(n)}catch{Ul=!1}return Ul};var YS={name:"sessionStorage",lookup(n){let{lookupSessionStorage:a}=n;if(a&&Mv())return window.sessionStorage.getItem(a)||void 0},cacheUserLanguage(n,a){let{lookupSessionStorage:l}=a;l&&Mv()&&window.sessionStorage.setItem(l,n)}},qS={name:"navigator",lookup(n){const a=[];if(typeof navigator<"u"){const{languages:l,userLanguage:i,language:s}=navigator;if(l)for(let u=0;u<l.length;u++)a.push(l[u]);i&&a.push(i),s&&a.push(s)}return a.length>0?a:void 0}},FS={name:"htmlTag",lookup(n){let{htmlTag:a}=n,l;const i=a||(typeof document<"u"?document.documentElement:null);return i&&typeof i.getAttribute=="function"&&(l=i.getAttribute("lang")),l}},KS={name:"path",lookup(n){let{lookupFromPathIndex:a}=n;if(typeof window>"u")return;const l=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(l)?l[typeof a=="number"?a:0]?.replace("/",""):void 0}},GS={name:"subdomain",lookup(n){let{lookupFromSubdomainIndex:a}=n;const l=typeof a=="number"?a+1:1,i=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(i)return i[l]}};let t0=!1;try{document.cookie,t0=!0}catch{}const n0=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];t0||n0.splice(1,1);const XS=()=>({order:n0,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:n=>n});class a0{constructor(a){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(a,l)}init(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=a,this.options=zS(l,this.options||{},XS()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=s=>s.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(HS),this.addDetector(BS),this.addDetector(VS),this.addDetector(YS),this.addDetector(qS),this.addDetector(FS),this.addDetector(KS),this.addDetector(GS),this.addDetector($S)}addDetector(a){return this.detectors[a.name]=a,this}detect(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,l=[];return a.forEach(i=>{if(this.detectors[i]){let s=this.detectors[i].lookup(this.options);s&&typeof s=="string"&&(s=[s]),s&&(l=l.concat(s))}}),l=l.filter(i=>i!=null&&!US(i)).map(i=>this.options.convertDetectedLanguage(i)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?l:l.length>0?l[0]:null}cacheUserLanguage(a){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;l&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(a)>-1||l.forEach(i=>{this.detectors[i]&&this.detectors[i].cacheUserLanguage(a,this.options)}))}}a0.type="languageDetector";const QS={yes:"Yes",no:"No"},ZS={title:"Claude Code Router",save:"Save",save_and_restart:"Save and Restart",cancel:"Cancel",edit:"Edit",remove:"Remove",delete:"Delete",settings:"Settings",selectFile:"Select File",config_saved_success:"Config saved successfully",config_saved_failed:"Failed to save config",config_saved_restart_success:"Config saved and service restarted successfully",config_saved_restart_failed:"Failed to save config and restart service",new_version_available:"New Version Available",update_description:"A new version is available. Please review the changelog and update to get the latest features and improvements.",no_changelog_available:"No changelog available",later:"Later",update_now:"Update Now",no_updates_available:"No updates available",update_check_failed:"Failed to check for updates",update_successful:"Update successful",update_failed:"Update failed"},IS={title:"Sign in to your account",description:"Enter your API key to access the configuration panel",apiKey:"API Key",apiKeyPlaceholder:"Enter your API key",signIn:"Sign In",invalidApiKey:"Invalid API key",configError:"Configuration not loaded",validating:"Validating API key..."},JS={title:"General Settings",log:"Enable Logging",log_level:"Log Level",claude_path:"Claude Path",host:"Host",port:"Port",apikey:"API Key",timeout:"API Timeout (ms)",proxy_url:"Proxy URL",custom_router_path:"Custom Router Script Path",custom_router_path_placeholder:"Enter absolute path to custom router script file"},WS={title:"Custom Transformers",path:"Path",project:"Project",remove:"Remove",add:"Add Custom Transformer",edit:"Edit Custom Transformer",delete:"Delete Custom Transformer",delete_transformer_confirm:"Are you sure you want to delete this custom transformer?",parameters:"Parameters"},eE={title:"Providers",name:"Name",api_base_url:"API Full URL",api_key:"API Key",models:"Models",models_placeholder:"Enter model name and press Enter to add",add_model:"Add Model",select_models:"Select Models",remove:"Remove",add:"Add Provider",edit:"Edit Provider",delete:"Delete",cancel:"Cancel",delete_provider_confirm:"Are you sure you want to delete this provider?",test_connectivity:"Test Connectivity",testing:"Testing...",connection_successful:"Connection successful!",connection_failed:"Connection failed!",missing_credentials:"Missing API base URL or API key",fetch_available_models:"Fetch available models",fetching_models:"Fetching models...",fetch_models_failed:"Failed to fetch models",transformers:"Transformers",select_transformer:"Select Transformer",no_transformers:"No transformers available",provider_transformer:"Provider Transformer",model_transformers:"Model Transformers",transformer_parameters:"Transformer Parameters",add_parameter:"Add Parameter",parameter_name:"Parameter Name",parameter_value:"Parameter Value",selected_transformers:"Selected Transformers",import_from_template:"Import from template",no_templates_found:"No templates found",select_template:"Select a template...",api_key_required:"API Key is required",name_required:"Name is required",name_duplicate:"A provider with this name already exists",search:"Search providers..."},tE={title:"Router",default:"Default",background:"Background",think:"Think",longContext:"Long Context",longContextThreshold:"Context Threshold",webSearch:"Web Search",image:"Image",forceUseImageAgent:"Force Use Image Agent",selectModel:"Select a model...",searchModel:"Search model...",noModelFound:"No model found."},nE={title:"JSON Editor",save:"Save",saving:"Saving...",cancel:"Cancel",save_failed:"Failed to save config",save_and_restart:"Save & Restart"},aE={title:"Status Line Configuration",enable:"Enable Status Line",theme:"Theme Style",theme_default:"Default",theme_powerline:"Powerline",modules:"Modules",module_type:"Type",module_icon:"Icon",module_text:"Text",module_color:"Color",module_background:"Background",module_text_description:"Enter display text, variables can be used:",module_color_description:"Select text color",module_background_description:"Select background color (optional)",module_script_path:"Script Path",module_script_path_description:"Enter the absolute path of the Node.js script file",add_module:"Add Module",remove_module:"Remove Module",delete_module:"Delete Module",preview:"Preview",components:"Components",properties:"Properties",workDir:"Working Directory",gitBranch:"Git Branch",model:"Model",usage:"Usage",script:"Script",background_none:"None",color_black:"Black",color_red:"Red",color_green:"Green",color_yellow:"Yellow",color_blue:"Blue",color_magenta:"Magenta",color_cyan:"Cyan",color_white:"White",color_bright_black:"Bright Black",color_bright_red:"Bright Red",color_bright_green:"Bright Green",color_bright_yellow:"Bright Yellow",color_bright_blue:"Bright Blue",color_bright_magenta:"Bright Magenta",color_bright_cyan:"Bright Cyan",color_bright_white:"Bright White",font_placeholder:"Select Font",theme_placeholder:"Select Theme Style",icon_placeholder:"Paste icon or search by name...",icon_description:"Enter icon character, paste icon, or search icons (optional)",text_placeholder:"e.g.: {{workDirName}}",script_placeholder:"e.g.: /path/to/your/script.js",drag_hint:"Drag components here to configure",select_hint:"Select a component to configure",no_icons_found:"No icons found",no_icons_available:"No icons available",import_export:"Import/Export",import:"Import Config",export:"Export Config",download_template:"Download Template",import_export_help:"Export current configuration as a JSON file, or import configuration from a JSON file. You can also download a configuration template for reference.",export_success:"Configuration exported successfully",export_failed:"Failed to export configuration",import_success:"Configuration imported successfully",import_failed:"Failed to import configuration",invalid_config:"Invalid configuration file",template_download_success:"Template downloaded successfully",template_download_success_desc:"Configuration template has been downloaded to your device",template_download_failed:"Failed to download template"},rE={common:QS,app:ZS,login:IS,toplevel:JS,transformers:WS,providers:eE,router:tE,json_editor:nE,statusline:aE},lE={yes:"是",no:"否"},iE={title:"Claude Code Router",save:"保存",save_and_restart:"保存并重启",cancel:"取消",edit:"编辑",remove:"移除",delete:"删除",settings:"设置",selectFile:"选择文件",config_saved_success:"配置保存成功",config_saved_failed:"配置保存失败",config_saved_restart_success:"配置保存并服务重启成功",config_saved_restart_failed:"配置保存并服务重启失败",new_version_available:"有新版本可用",update_description:"发现新版本。请查看更新日志并更新以获取最新功能和改进。",no_changelog_available:"暂无更新日志",later:"稍后再说",update_now:"立即更新",no_updates_available:"当前已是最新版本",update_check_failed:"检查更新失败",update_successful:"更新成功",update_failed:"更新失败"},oE={title:"登录到您的账户",description:"请输入您的API密钥以访问配置面板",apiKey:"API密钥",apiKeyPlaceholder:"请输入您的API密钥",signIn:"登录",invalidApiKey:"API密钥无效",configError:"配置未加载",validating:"正在验证API密钥..."},sE={title:"通用设置",log:"启用日志",log_level:"日志级别",claude_path:"Claude 路径",host:"主机",port:"端口",apikey:"API 密钥",timeout:"API 超时时间 (毫秒)",proxy_url:"代理地址",custom_router_path:"自定义路由脚本路径",custom_router_path_placeholder:"输入自定义路由脚本文件的绝对路径"},uE={title:"自定义转换器",path:"路径",project:"项目",remove:"移除",add:"添加自定义转换器",edit:"编辑自定义转换器",delete:"删除自定义转换器",delete_transformer_confirm:"您确定要删除此自定义转换器吗?",parameters:"参数"},cE={title:"供应商",name:"名称",api_base_url:"API 完整地址",api_key:"API 密钥",models:"模型",models_placeholder:"输入模型名称并按回车键添加",add_model:"添加模型",select_models:"选择模型",remove:"移除",add:"添加供应商",edit:"编辑供应商",delete:"删除",cancel:"取消",delete_provider_confirm:"您确定要删除此供应商吗?",test_connectivity:"测试连通性",testing:"测试中...",connection_successful:"连接成功!",connection_failed:"连接失败!",missing_credentials:"缺少 API 基础地址或 API 密钥",fetch_available_models:"获取可用模型",fetching_models:"获取模型中...",fetch_models_failed:"获取模型失败",transformers:"转换器",select_transformer:"选择转换器",no_transformers:"无可用转换器",provider_transformer:"供应商转换器",model_transformers:"模型转换器",transformer_parameters:"转换器参数",add_parameter:"添加参数",parameter_name:"参数名称",parameter_value:"参数值",selected_transformers:"已选转换器",import_from_template:"从模板导入",no_templates_found:"未找到模板",select_template:"选择一个模板...",api_key_required:"API 密钥为必填项",name_required:"名称为必填项",name_duplicate:"已存在同名供应商",search:"搜索供应商..."},fE={title:"路由",default:"默认",background:"后台",think:"思考",longContext:"长上下文",longContextThreshold:"上下文阈值",webSearch:"网络搜索",image:"图像",forceUseImageAgent:"强制使用图像代理",selectModel:"选择一个模型...",searchModel:"搜索模型...",noModelFound:"未找到模型."},dE={title:"JSON 编辑器",save:"保存",saving:"保存中...",cancel:"取消",save_failed:"配置保存失败",save_and_restart:"保存并重启"},hE={title:"状态栏配置",enable:"启用状态栏",theme:"主题样式",theme_default:"默认",theme_powerline:"Powerline",modules:"模块",module_type:"类型",module_icon:"图标",module_text:"文本",module_color:"颜色",module_background:"背景",module_text_description:"输入显示文本,可使用变量:",module_color_description:"选择文字颜色",module_background_description:"选择背景颜色(可选)",module_script_path:"脚本路径",module_script_path_description:"输入Node.js脚本文件的绝对路径",add_module:"添加模块",remove_module:"移除模块",delete_module:"删除组件",preview:"预览",components:"组件",properties:"属性",workDir:"工作目录",gitBranch:"Git分支",model:"模型",usage:"使用情况",script:"脚本",background_none:"无",color_black:"黑色",color_red:"红色",color_green:"绿色",color_yellow:"黄色",color_blue:"蓝色",color_magenta:"品红",color_cyan:"青色",color_white:"白色",color_bright_black:"亮黑色",color_bright_red:"亮红色",color_bright_green:"亮绿色",color_bright_yellow:"亮黄色",color_bright_blue:"亮蓝色",color_bright_magenta:"亮品红",color_bright_cyan:"亮青色",color_bright_white:"亮白色",font_placeholder:"选择字体",theme_placeholder:"选择主题样式",icon_placeholder:"粘贴图标或输入名称搜索...",icon_description:"输入图标字符、粘贴图标或搜索图标(可选)",text_placeholder:"例如: {{workDirName}}",script_placeholder:"例如: /path/to/your/script.js",drag_hint:"拖拽组件到此处进行配置",select_hint:"选择一个组件进行配置",no_icons_found:"未找到图标",no_icons_available:"暂无可用图标",import_export:"导入/导出",import:"导入配置",export:"导出配置",download_template:"下载模板",import_export_help:"导出当前配置为JSON文件,或从JSON文件导入配置。您也可以下载配置模板作为参考。",export_success:"配置导出成功",export_failed:"配置导出失败",import_success:"配置导入成功",import_failed:"配置导入失败",invalid_config:"无效的配置文件",template_download_success:"模板下载成功",template_download_success_desc:"配置模板已下载到您的设备",template_download_failed:"模板下载失败"},mE={common:lE,app:iE,login:oE,toplevel:sE,transformers:uE,providers:cE,router:fE,json_editor:dE,statusline:hE},pE={en:{translation:rE},zh:{translation:mE}};Kt.use(a0).use(OS).init({resources:pE,fallbackLng:"en",interpolation:{escapeValue:!1}});var ed={exports:{}},ao={},td={exports:{}},nd={};/**
23
+ */var Rv;function bS(){if(Rv)return Be;Rv=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.iterator;function w(O){return O===null||typeof O!="object"?null:(O=b&&O[b]||O["@@iterator"],typeof O=="function"?O:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,E={};function j(O,G,U){this.props=O,this.context=G,this.refs=E,this.updater=U||S}j.prototype.isReactComponent={},j.prototype.setState=function(O,G){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,G,"setState")},j.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function R(){}R.prototype=j.prototype;function L(O,G,U){this.props=O,this.context=G,this.refs=E,this.updater=U||S}var k=L.prototype=new R;k.constructor=L,C(k,j.prototype),k.isPureReactComponent=!0;var H=Array.isArray,M={H:null,A:null,T:null,S:null,V:null},N=Object.prototype.hasOwnProperty;function B(O,G,U,K,P,oe){return U=oe.ref,{$$typeof:n,type:O,key:G,ref:U!==void 0?U:null,props:oe}}function J(O,G){return B(O.type,G,void 0,void 0,void 0,O.props)}function te(O){return typeof O=="object"&&O!==null&&O.$$typeof===n}function ae(O){var G={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(U){return G[U]})}var re=/\/+/g;function fe(O,G){return typeof O=="object"&&O!==null&&O.key!=null?ae(""+O.key):G.toString(36)}function de(){}function Q(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(de,de):(O.status="pending",O.then(function(G){O.status==="pending"&&(O.status="fulfilled",O.value=G)},function(G){O.status==="pending"&&(O.status="rejected",O.reason=G)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function ee(O,G,U,K,P){var oe=typeof O;(oe==="undefined"||oe==="boolean")&&(O=null);var me=!1;if(O===null)me=!0;else switch(oe){case"bigint":case"string":case"number":me=!0;break;case"object":switch(O.$$typeof){case n:case a:me=!0;break;case v:return me=O._init,ee(me(O._payload),G,U,K,P)}}if(me)return P=P(O),me=K===""?"."+fe(O,0):K,H(P)?(U="",me!=null&&(U=me.replace(re,"$&/")+"/"),ee(P,G,U,"",function(Fe){return Fe})):P!=null&&(te(P)&&(P=J(P,U+(P.key==null||O&&O.key===P.key?"":(""+P.key).replace(re,"$&/")+"/")+me)),G.push(P)),1;me=0;var ve=K===""?".":K+":";if(H(O))for(var Le=0;Le<O.length;Le++)K=O[Le],oe=ve+fe(K,Le),me+=ee(K,G,U,oe,P);else if(Le=w(O),typeof Le=="function")for(O=Le.call(O),Le=0;!(K=O.next()).done;)K=K.value,oe=ve+fe(K,Le++),me+=ee(K,G,U,oe,P);else if(oe==="object"){if(typeof O.then=="function")return ee(Q(O),G,U,K,P);throw G=String(O),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return me}function A(O,G,U){if(O==null)return O;var K=[],P=0;return ee(O,K,"","",function(oe){return G.call(U,oe,P++)}),K}function X(O){if(O._status===-1){var G=O._result;G=G(),G.then(function(U){(O._status===0||O._status===-1)&&(O._status=1,O._result=U)},function(U){(O._status===0||O._status===-1)&&(O._status=2,O._result=U)}),O._status===-1&&(O._status=0,O._result=G)}if(O._status===1)return O._result.default;throw O._result}var V=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)};function ye(){}return Be.Children={map:A,forEach:function(O,G,U){A(O,function(){G.apply(this,arguments)},U)},count:function(O){var G=0;return A(O,function(){G++}),G},toArray:function(O){return A(O,function(G){return G})||[]},only:function(O){if(!te(O))throw Error("React.Children.only expected to receive a single React element child.");return O}},Be.Component=j,Be.Fragment=l,Be.Profiler=s,Be.PureComponent=L,Be.StrictMode=i,Be.Suspense=p,Be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,Be.__COMPILER_RUNTIME={__proto__:null,c:function(O){return M.H.useMemoCache(O)}},Be.cache=function(O){return function(){return O.apply(null,arguments)}},Be.cloneElement=function(O,G,U){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var K=C({},O.props),P=O.key,oe=void 0;if(G!=null)for(me in G.ref!==void 0&&(oe=void 0),G.key!==void 0&&(P=""+G.key),G)!N.call(G,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&G.ref===void 0||(K[me]=G[me]);var me=arguments.length-2;if(me===1)K.children=U;else if(1<me){for(var ve=Array(me),Le=0;Le<me;Le++)ve[Le]=arguments[Le+2];K.children=ve}return B(O.type,P,void 0,void 0,oe,K)},Be.createContext=function(O){return O={$$typeof:f,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:c,_context:O},O},Be.createElement=function(O,G,U){var K,P={},oe=null;if(G!=null)for(K in G.key!==void 0&&(oe=""+G.key),G)N.call(G,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(P[K]=G[K]);var me=arguments.length-2;if(me===1)P.children=U;else if(1<me){for(var ve=Array(me),Le=0;Le<me;Le++)ve[Le]=arguments[Le+2];P.children=ve}if(O&&O.defaultProps)for(K in me=O.defaultProps,me)P[K]===void 0&&(P[K]=me[K]);return B(O,oe,void 0,void 0,null,P)},Be.createRef=function(){return{current:null}},Be.forwardRef=function(O){return{$$typeof:h,render:O}},Be.isValidElement=te,Be.lazy=function(O){return{$$typeof:v,_payload:{_status:-1,_result:O},_init:X}},Be.memo=function(O,G){return{$$typeof:m,type:O,compare:G===void 0?null:G}},Be.startTransition=function(O){var G=M.T,U={};M.T=U;try{var K=O(),P=M.S;P!==null&&P(U,K),typeof K=="object"&&K!==null&&typeof K.then=="function"&&K.then(ye,V)}catch(oe){V(oe)}finally{M.T=G}},Be.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},Be.use=function(O){return M.H.use(O)},Be.useActionState=function(O,G,U){return M.H.useActionState(O,G,U)},Be.useCallback=function(O,G){return M.H.useCallback(O,G)},Be.useContext=function(O){return M.H.useContext(O)},Be.useDebugValue=function(){},Be.useDeferredValue=function(O,G){return M.H.useDeferredValue(O,G)},Be.useEffect=function(O,G,U){var K=M.H;if(typeof U=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return K.useEffect(O,G)},Be.useId=function(){return M.H.useId()},Be.useImperativeHandle=function(O,G,U){return M.H.useImperativeHandle(O,G,U)},Be.useInsertionEffect=function(O,G){return M.H.useInsertionEffect(O,G)},Be.useLayoutEffect=function(O,G){return M.H.useLayoutEffect(O,G)},Be.useMemo=function(O,G){return M.H.useMemo(O,G)},Be.useOptimistic=function(O,G){return M.H.useOptimistic(O,G)},Be.useReducer=function(O,G,U){return M.H.useReducer(O,G,U)},Be.useRef=function(O){return M.H.useRef(O)},Be.useState=function(O){return M.H.useState(O)},Be.useSyncExternalStore=function(O,G,U){return M.H.useSyncExternalStore(O,G,U)},Be.useTransition=function(){return M.H.useTransition()},Be.version="19.1.1",Be}var jv;function eh(){return jv||(jv=1,Wf.exports=bS()),Wf.exports}var y=eh();const mt=Iy(y),Wy=Zw({__proto__:null,default:mt},[y]),xS=(n,a,l,i)=>{const s=[l,{code:a,...i||{}}];if(n?.services?.logger?.forward)return n.services.logger.forward(s,"warn","react-i18next::",!0);Fr(s[0])&&(s[0]=`react-i18next:: ${s[0]}`),n?.services?.logger?.warn?n.services.logger.warn(...s):console?.warn&&console.warn(...s)},Ov={},Od=(n,a,l,i)=>{Fr(l)&&Ov[l]||(Fr(l)&&(Ov[l]=new Date),xS(n,a,l,i))},e0=(n,a)=>()=>{if(n.isInitialized)a();else{const l=()=>{setTimeout(()=>{n.off("initialized",l)},0),a()};n.on("initialized",l)}},Ad=(n,a,l)=>{n.loadNamespaces(a,e0(n,l))},Av=(n,a,l,i)=>{if(Fr(l)&&(l=[l]),n.options.preload&&n.options.preload.indexOf(a)>-1)return Ad(n,l,i);l.forEach(s=>{n.options.ns.indexOf(s)<0&&n.options.ns.push(s)}),n.loadLanguages(a,e0(n,i))},wS=(n,a,l={})=>!a.languages||!a.languages.length?(Od(a,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:a.languages}),!0):a.hasLoadedNamespace(n,{lng:l.lng,precheck:(i,s)=>{if(l.bindI18n&&l.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!s(i.isLanguageChangingTo,n))return!1}}),Fr=n=>typeof n=="string",SS=n=>typeof n=="object"&&n!==null,_S=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,ES={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},CS=n=>ES[n],NS=n=>n.replace(_S,CS);let Td={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:NS};const RS=(n={})=>{Td={...Td,...n}},jS=()=>Td;let t0;const OS=n=>{t0=n},AS=()=>t0,TS={type:"3rdParty",init(n){RS(n.options.react),OS(n)}},MS=y.createContext();class DS{constructor(){this.usedNamespaces={}}addUsedNamespaces(a){a.forEach(l=>{this.usedNamespaces[l]||(this.usedNamespaces[l]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const LS=(n,a)=>{const l=y.useRef();return y.useEffect(()=>{l.current=n},[n,a]),l.current},n0=(n,a,l,i)=>n.getFixedT(a,l,i),kS=(n,a,l,i)=>y.useCallback(n0(n,a,l,i),[n,a,l,i]),Oa=(n,a={})=>{const{i18n:l}=a,{i18n:i,defaultNS:s}=y.useContext(MS)||{},c=l||i||AS();if(c&&!c.reportNamespaces&&(c.reportNamespaces=new DS),!c){Od(c,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const H=(N,B)=>Fr(B)?B:SS(B)&&Fr(B.defaultValue)?B.defaultValue:Array.isArray(N)?N[N.length-1]:N,M=[H,{},!1];return M.t=H,M.i18n={},M.ready=!1,M}c.options.react?.wait&&Od(c,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const f={...jS(),...c.options.react,...a},{useSuspense:h,keyPrefix:p}=f;let m=s||c.options?.defaultNS;m=Fr(m)?[m]:m||["translation"],c.reportNamespaces.addUsedNamespaces?.(m);const v=(c.isInitialized||c.initializedStoreOnce)&&m.every(H=>wS(H,c,f)),b=kS(c,a.lng||null,f.nsMode==="fallback"?m:m[0],p),w=()=>b,S=()=>n0(c,a.lng||null,f.nsMode==="fallback"?m:m[0],p),[C,E]=y.useState(w);let j=m.join();a.lng&&(j=`${a.lng}${j}`);const R=LS(j),L=y.useRef(!0);y.useEffect(()=>{const{bindI18n:H,bindI18nStore:M}=f;L.current=!0,!v&&!h&&(a.lng?Av(c,a.lng,m,()=>{L.current&&E(S)}):Ad(c,m,()=>{L.current&&E(S)})),v&&R&&R!==j&&L.current&&E(S);const N=()=>{L.current&&E(S)};return H&&c?.on(H,N),M&&c?.store.on(M,N),()=>{L.current=!1,c&&H&&H?.split(" ").forEach(B=>c.off(B,N)),M&&c&&M.split(" ").forEach(B=>c.store.off(B,N))}},[c,j]),y.useEffect(()=>{L.current&&v&&E(w)},[c,p,v]);const k=[C,c,v];if(k.t=C,k.i18n=c,k.ready=v,v||!v&&!h)return k;throw new Promise(H=>{a.lng?Av(c,a.lng,m,()=>H()):Ad(c,m,()=>H())})},{slice:zS,forEach:US}=[];function PS(n){return US.call(zS.call(arguments,1),a=>{if(a)for(const l in a)n[l]===void 0&&(n[l]=a[l])}),n}function HS(n){return typeof n!="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(l=>l.test(n))}const Tv=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,BS=function(n,a){const i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},s=encodeURIComponent(a);let c=`${n}=${s}`;if(i.maxAge>0){const f=i.maxAge-0;if(Number.isNaN(f))throw new Error("maxAge should be a Number");c+=`; Max-Age=${Math.floor(f)}`}if(i.domain){if(!Tv.test(i.domain))throw new TypeError("option domain is invalid");c+=`; Domain=${i.domain}`}if(i.path){if(!Tv.test(i.path))throw new TypeError("option path is invalid");c+=`; Path=${i.path}`}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");c+=`; Expires=${i.expires.toUTCString()}`}if(i.httpOnly&&(c+="; HttpOnly"),i.secure&&(c+="; Secure"),i.sameSite)switch(typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite){case!0:c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"strict":c+="; SameSite=Strict";break;case"none":c+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i.partitioned&&(c+="; Partitioned"),c},Mv={create(n,a,l,i){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};l&&(s.expires=new Date,s.expires.setTime(s.expires.getTime()+l*60*1e3)),i&&(s.domain=i),document.cookie=BS(n,a,s)},read(n){const a=`${n}=`,l=document.cookie.split(";");for(let i=0;i<l.length;i++){let s=l[i];for(;s.charAt(0)===" ";)s=s.substring(1,s.length);if(s.indexOf(a)===0)return s.substring(a.length,s.length)}return null},remove(n,a){this.create(n,"",-1,a)}};var $S={name:"cookie",lookup(n){let{lookupCookie:a}=n;if(a&&typeof document<"u")return Mv.read(a)||void 0},cacheUserLanguage(n,a){let{lookupCookie:l,cookieMinutes:i,cookieDomain:s,cookieOptions:c}=a;l&&typeof document<"u"&&Mv.create(l,n,i,s,c)}},VS={name:"querystring",lookup(n){let{lookupQuerystring:a}=n,l;if(typeof window<"u"){let{search:i}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));const c=i.substring(1).split("&");for(let f=0;f<c.length;f++){const h=c[f].indexOf("=");h>0&&c[f].substring(0,h)===a&&(l=c[f].substring(h+1))}}return l}},qS={name:"hash",lookup(n){let{lookupHash:a,lookupFromHashIndex:l}=n,i;if(typeof window<"u"){const{hash:s}=window.location;if(s&&s.length>2){const c=s.substring(1);if(a){const f=c.split("&");for(let h=0;h<f.length;h++){const p=f[h].indexOf("=");p>0&&f[h].substring(0,p)===a&&(i=f[h].substring(p+1))}}if(i)return i;if(!i&&l>-1){const f=s.match(/\/([a-zA-Z-]*)/g);return Array.isArray(f)?f[typeof l=="number"?l:0]?.replace("/",""):void 0}}}return i}};let Ul=null;const Dv=()=>{if(Ul!==null)return Ul;try{if(Ul=typeof window<"u"&&window.localStorage!==null,!Ul)return!1;const n="i18next.translate.boo";window.localStorage.setItem(n,"foo"),window.localStorage.removeItem(n)}catch{Ul=!1}return Ul};var FS={name:"localStorage",lookup(n){let{lookupLocalStorage:a}=n;if(a&&Dv())return window.localStorage.getItem(a)||void 0},cacheUserLanguage(n,a){let{lookupLocalStorage:l}=a;l&&Dv()&&window.localStorage.setItem(l,n)}};let Pl=null;const Lv=()=>{if(Pl!==null)return Pl;try{if(Pl=typeof window<"u"&&window.sessionStorage!==null,!Pl)return!1;const n="i18next.translate.boo";window.sessionStorage.setItem(n,"foo"),window.sessionStorage.removeItem(n)}catch{Pl=!1}return Pl};var YS={name:"sessionStorage",lookup(n){let{lookupSessionStorage:a}=n;if(a&&Lv())return window.sessionStorage.getItem(a)||void 0},cacheUserLanguage(n,a){let{lookupSessionStorage:l}=a;l&&Lv()&&window.sessionStorage.setItem(l,n)}},GS={name:"navigator",lookup(n){const a=[];if(typeof navigator<"u"){const{languages:l,userLanguage:i,language:s}=navigator;if(l)for(let c=0;c<l.length;c++)a.push(l[c]);i&&a.push(i),s&&a.push(s)}return a.length>0?a:void 0}},KS={name:"htmlTag",lookup(n){let{htmlTag:a}=n,l;const i=a||(typeof document<"u"?document.documentElement:null);return i&&typeof i.getAttribute=="function"&&(l=i.getAttribute("lang")),l}},XS={name:"path",lookup(n){let{lookupFromPathIndex:a}=n;if(typeof window>"u")return;const l=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(l)?l[typeof a=="number"?a:0]?.replace("/",""):void 0}},QS={name:"subdomain",lookup(n){let{lookupFromSubdomainIndex:a}=n;const l=typeof a=="number"?a+1:1,i=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(i)return i[l]}};let a0=!1;try{document.cookie,a0=!0}catch{}const r0=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];a0||r0.splice(1,1);const IS=()=>({order:r0,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:n=>n});class l0{constructor(a){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(a,l)}init(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=a,this.options=PS(l,this.options||{},IS()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=s=>s.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector($S),this.addDetector(VS),this.addDetector(FS),this.addDetector(YS),this.addDetector(GS),this.addDetector(KS),this.addDetector(XS),this.addDetector(QS),this.addDetector(qS)}addDetector(a){return this.detectors[a.name]=a,this}detect(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,l=[];return a.forEach(i=>{if(this.detectors[i]){let s=this.detectors[i].lookup(this.options);s&&typeof s=="string"&&(s=[s]),s&&(l=l.concat(s))}}),l=l.filter(i=>i!=null&&!HS(i)).map(i=>this.options.convertDetectedLanguage(i)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?l:l.length>0?l[0]:null}cacheUserLanguage(a){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;l&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(a)>-1||l.forEach(i=>{this.detectors[i]&&this.detectors[i].cacheUserLanguage(a,this.options)}))}}l0.type="languageDetector";const ZS={yes:"Yes",no:"No"},JS={title:"Claude Code Router",save:"Save",save_and_restart:"Save and Restart",cancel:"Cancel",edit:"Edit",remove:"Remove",delete:"Delete",settings:"Settings",selectFile:"Select File",config_saved_success:"Config saved successfully",config_saved_failed:"Failed to save config",config_saved_restart_success:"Config saved and service restarted successfully",config_saved_restart_failed:"Failed to save config and restart service",new_version_available:"New Version Available",update_description:"A new version is available. Please review the changelog and update to get the latest features and improvements.",no_changelog_available:"No changelog available",later:"Later",update_now:"Update Now",no_updates_available:"No updates available",update_check_failed:"Failed to check for updates",update_successful:"Update successful",update_failed:"Update failed"},WS={title:"Sign in to your account",description:"Enter your API key to access the configuration panel",apiKey:"API Key",apiKeyPlaceholder:"Enter your API key",signIn:"Sign In",invalidApiKey:"Invalid API key",configError:"Configuration not loaded",validating:"Validating API key..."},e_={title:"General Settings",log:"Enable Logging",log_level:"Log Level",claude_path:"Claude Path",host:"Host",port:"Port",apikey:"API Key",timeout:"API Timeout (ms)",proxy_url:"Proxy URL",custom_router_path:"Custom Router Script Path",custom_router_path_placeholder:"Enter absolute path to custom router script file"},t_={title:"Custom Transformers",path:"Path",project:"Project",remove:"Remove",add:"Add Custom Transformer",edit:"Edit Custom Transformer",delete:"Delete Custom Transformer",delete_transformer_confirm:"Are you sure you want to delete this custom transformer?",parameters:"Parameters"},n_={title:"Providers",name:"Name",api_base_url:"API Full URL",api_key:"API Key",models:"Models",models_placeholder:"Enter model name and press Enter to add",add_model:"Add Model",select_models:"Select Models",remove:"Remove",add:"Add Provider",edit:"Edit Provider",delete:"Delete",cancel:"Cancel",delete_provider_confirm:"Are you sure you want to delete this provider?",test_connectivity:"Test Connectivity",testing:"Testing...",connection_successful:"Connection successful!",connection_failed:"Connection failed!",missing_credentials:"Missing API base URL or API key",fetch_available_models:"Fetch available models",fetching_models:"Fetching models...",fetch_models_failed:"Failed to fetch models",transformers:"Transformers",select_transformer:"Select Transformer",no_transformers:"No transformers available",provider_transformer:"Provider Transformer",model_transformers:"Model Transformers",transformer_parameters:"Transformer Parameters",add_parameter:"Add Parameter",parameter_name:"Parameter Name",parameter_value:"Parameter Value",selected_transformers:"Selected Transformers",import_from_template:"Import from template",no_templates_found:"No templates found",select_template:"Select a template...",api_key_required:"API Key is required",name_required:"Name is required",name_duplicate:"A provider with this name already exists",search:"Search providers..."},a_={title:"Router",default:"Default",background:"Background",think:"Think",longContext:"Long Context",longContextThreshold:"Context Threshold",webSearch:"Web Search",image:"Image",forceUseImageAgent:"Force Use Image Agent",selectModel:"Select a model...",searchModel:"Search model...",noModelFound:"No model found."},r_={title:"JSON Editor",save:"Save",saving:"Saving...",cancel:"Cancel",save_failed:"Failed to save config",save_and_restart:"Save & Restart"},l_={title:"Status Line Configuration",enable:"Enable Status Line",theme:"Theme Style",theme_default:"Default",theme_powerline:"Powerline",modules:"Modules",module_type:"Type",module_icon:"Icon",module_text:"Text",module_color:"Color",module_background:"Background",module_text_description:"Enter display text, variables can be used:",module_color_description:"Select text color",module_background_description:"Select background color (optional)",module_script_path:"Script Path",module_script_path_description:"Enter the absolute path of the Node.js script file",add_module:"Add Module",remove_module:"Remove Module",delete_module:"Delete Module",preview:"Preview",components:"Components",properties:"Properties",workDir:"Working Directory",gitBranch:"Git Branch",model:"Model",usage:"Usage",script:"Script",background_none:"None",color_black:"Black",color_red:"Red",color_green:"Green",color_yellow:"Yellow",color_blue:"Blue",color_magenta:"Magenta",color_cyan:"Cyan",color_white:"White",color_bright_black:"Bright Black",color_bright_red:"Bright Red",color_bright_green:"Bright Green",color_bright_yellow:"Bright Yellow",color_bright_blue:"Bright Blue",color_bright_magenta:"Bright Magenta",color_bright_cyan:"Bright Cyan",color_bright_white:"Bright White",font_placeholder:"Select Font",theme_placeholder:"Select Theme Style",icon_placeholder:"Paste icon or search by name...",icon_description:"Enter icon character, paste icon, or search icons (optional)",text_placeholder:"e.g.: {{workDirName}}",script_placeholder:"e.g.: /path/to/your/script.js",drag_hint:"Drag components here to configure",select_hint:"Select a component to configure",no_icons_found:"No icons found",no_icons_available:"No icons available",import_export:"Import/Export",import:"Import Config",export:"Export Config",download_template:"Download Template",import_export_help:"Export current configuration as a JSON file, or import configuration from a JSON file. You can also download a configuration template for reference.",export_success:"Configuration exported successfully",export_failed:"Failed to export configuration",import_success:"Configuration imported successfully",import_failed:"Failed to import configuration",invalid_config:"Invalid configuration file",template_download_success:"Template downloaded successfully",template_download_success_desc:"Configuration template has been downloaded to your device",template_download_failed:"Failed to download template"},i_={title:"Log Viewer",close:"Close",download:"Download",clear:"Clear",auto_refresh_on:"Auto Refresh On",auto_refresh_off:"Auto Refresh Off",load_failed:"Failed to load logs",no_logs_available:"No logs available",logs_cleared:"Logs cleared successfully",clear_failed:"Failed to clear logs",logs_downloaded:"Logs downloaded successfully",back_to_files:"Back to Files",select_file:"Select a log file to view",no_log_files_available:"No log files available",load_files_failed:"Failed to load log files",group_by_req_id:"Group by Request ID",grouped_on:"Grouped",request_groups:"Request Groups",total_requests:"Total Requests",total_logs:"Total Logs",request:"Request",logs:"logs",first_log:"First Log",last_log:"Last Log",back_to_all_logs:"Back to All Logs",worker_error:"Worker error",worker_init_failed:"Failed to initialize worker",grouping_not_supported:"Log grouping not supported by server",back:"Back"},o_={common:ZS,app:JS,login:WS,toplevel:e_,transformers:t_,providers:n_,router:a_,json_editor:r_,statusline:l_,log_viewer:i_},s_={yes:"是",no:"否"},c_={title:"Claude Code Router",save:"保存",save_and_restart:"保存并重启",cancel:"取消",edit:"编辑",remove:"移除",delete:"删除",settings:"设置",selectFile:"选择文件",config_saved_success:"配置保存成功",config_saved_failed:"配置保存失败",config_saved_restart_success:"配置保存并服务重启成功",config_saved_restart_failed:"配置保存并服务重启失败",new_version_available:"有新版本可用",update_description:"发现新版本。请查看更新日志并更新以获取最新功能和改进。",no_changelog_available:"暂无更新日志",later:"稍后再说",update_now:"立即更新",no_updates_available:"当前已是最新版本",update_check_failed:"检查更新失败",update_successful:"更新成功",update_failed:"更新失败"},u_={title:"登录到您的账户",description:"请输入您的API密钥以访问配置面板",apiKey:"API密钥",apiKeyPlaceholder:"请输入您的API密钥",signIn:"登录",invalidApiKey:"API密钥无效",configError:"配置未加载",validating:"正在验证API密钥..."},f_={title:"通用设置",log:"启用日志",log_level:"日志级别",claude_path:"Claude 路径",host:"主机",port:"端口",apikey:"API 密钥",timeout:"API 超时时间 (毫秒)",proxy_url:"代理地址",custom_router_path:"自定义路由脚本路径",custom_router_path_placeholder:"输入自定义路由脚本文件的绝对路径"},d_={title:"自定义转换器",path:"路径",project:"项目",remove:"移除",add:"添加自定义转换器",edit:"编辑自定义转换器",delete:"删除自定义转换器",delete_transformer_confirm:"您确定要删除此自定义转换器吗?",parameters:"参数"},h_={title:"供应商",name:"名称",api_base_url:"API 完整地址",api_key:"API 密钥",models:"模型",models_placeholder:"输入模型名称并按回车键添加",add_model:"添加模型",select_models:"选择模型",remove:"移除",add:"添加供应商",edit:"编辑供应商",delete:"删除",cancel:"取消",delete_provider_confirm:"您确定要删除此供应商吗?",test_connectivity:"测试连通性",testing:"测试中...",connection_successful:"连接成功!",connection_failed:"连接失败!",missing_credentials:"缺少 API 基础地址或 API 密钥",fetch_available_models:"获取可用模型",fetching_models:"获取模型中...",fetch_models_failed:"获取模型失败",transformers:"转换器",select_transformer:"选择转换器",no_transformers:"无可用转换器",provider_transformer:"供应商转换器",model_transformers:"模型转换器",transformer_parameters:"转换器参数",add_parameter:"添加参数",parameter_name:"参数名称",parameter_value:"参数值",selected_transformers:"已选转换器",import_from_template:"从模板导入",no_templates_found:"未找到模板",select_template:"选择一个模板...",api_key_required:"API 密钥为必填项",name_required:"名称为必填项",name_duplicate:"已存在同名供应商",search:"搜索供应商..."},m_={title:"路由",default:"默认",background:"后台",think:"思考",longContext:"长上下文",longContextThreshold:"上下文阈值",webSearch:"网络搜索",image:"图像",forceUseImageAgent:"强制使用图像代理",selectModel:"选择一个模型...",searchModel:"搜索模型...",noModelFound:"未找到模型."},p_={title:"JSON 编辑器",save:"保存",saving:"保存中...",cancel:"取消",save_failed:"配置保存失败",save_and_restart:"保存并重启"},g_={title:"状态栏配置",enable:"启用状态栏",theme:"主题样式",theme_default:"默认",theme_powerline:"Powerline",modules:"模块",module_type:"类型",module_icon:"图标",module_text:"文本",module_color:"颜色",module_background:"背景",module_text_description:"输入显示文本,可使用变量:",module_color_description:"选择文字颜色",module_background_description:"选择背景颜色(可选)",module_script_path:"脚本路径",module_script_path_description:"输入Node.js脚本文件的绝对路径",add_module:"添加模块",remove_module:"移除模块",delete_module:"删除组件",preview:"预览",components:"组件",properties:"属性",workDir:"工作目录",gitBranch:"Git分支",model:"模型",usage:"使用情况",script:"脚本",background_none:"无",color_black:"黑色",color_red:"红色",color_green:"绿色",color_yellow:"黄色",color_blue:"蓝色",color_magenta:"品红",color_cyan:"青色",color_white:"白色",color_bright_black:"亮黑色",color_bright_red:"亮红色",color_bright_green:"亮绿色",color_bright_yellow:"亮黄色",color_bright_blue:"亮蓝色",color_bright_magenta:"亮品红",color_bright_cyan:"亮青色",color_bright_white:"亮白色",font_placeholder:"选择字体",theme_placeholder:"选择主题样式",icon_placeholder:"粘贴图标或输入名称搜索...",icon_description:"输入图标字符、粘贴图标或搜索图标(可选)",text_placeholder:"例如: {{workDirName}}",script_placeholder:"例如: /path/to/your/script.js",drag_hint:"拖拽组件到此处进行配置",select_hint:"选择一个组件进行配置",no_icons_found:"未找到图标",no_icons_available:"暂无可用图标",import_export:"导入/导出",import:"导入配置",export:"导出配置",download_template:"下载模板",import_export_help:"导出当前配置为JSON文件,或从JSON文件导入配置。您也可以下载配置模板作为参考。",export_success:"配置导出成功",export_failed:"配置导出失败",import_success:"配置导入成功",import_failed:"配置导入失败",invalid_config:"无效的配置文件",template_download_success:"模板下载成功",template_download_success_desc:"配置模板已下载到您的设备",template_download_failed:"模板下载失败"},v_={title:"日志查看器",close:"关闭",download:"下载",clear:"清除",auto_refresh_on:"自动刷新开启",auto_refresh_off:"自动刷新关闭",load_failed:"加载日志失败",no_logs_available:"暂无日志",logs_cleared:"日志清除成功",clear_failed:"清除日志失败",logs_downloaded:"日志下载成功",back_to_files:"返回文件列表",select_file:"选择要查看的日志文件",no_log_files_available:"暂无日志文件",load_files_failed:"加载日志文件失败",group_by_req_id:"按请求ID分组",grouped_on:"已分组",request_groups:"请求组",total_requests:"总请求数",total_logs:"总日志数",request:"请求",logs:"条日志",first_log:"首条日志",last_log:"末条日志",back_to_all_logs:"返回所有日志",worker_error:"Worker错误",worker_init_failed:"Worker初始化失败",grouping_not_supported:"服务器不支持日志分组",back:"返回"},y_={common:s_,app:c_,login:u_,toplevel:f_,transformers:d_,providers:h_,router:m_,json_editor:p_,statusline:g_,log_viewer:v_},b_={en:{translation:o_},zh:{translation:y_}};Kt.use(l0).use(TS).init({resources:b_,fallbackLng:"en",interpolation:{escapeValue:!1}});var ed={exports:{}},ao={},td={exports:{}},nd={};/**
24
24
  * @license React
25
25
  * scheduler.production.js
26
26
  *
@@ -28,7 +28,7 @@
28
28
  *
29
29
  * This source code is licensed under the MIT license found in the
30
30
  * LICENSE file in the root directory of this source tree.
31
- */var Dv;function gE(){return Dv||(Dv=1,function(n){function a(A,Q){var V=A.length;A.push(Q);e:for(;0<V;){var ve=V-1>>>1,O=A[ve];if(0<s(O,Q))A[ve]=Q,A[V]=O,V=ve;else break e}}function l(A){return A.length===0?null:A[0]}function i(A){if(A.length===0)return null;var Q=A[0],V=A.pop();if(V!==Q){A[0]=V;e:for(var ve=0,O=A.length,F=O>>>1;ve<F;){var U=2*(ve+1)-1,K=A[U],ae=U+1,de=A[ae];if(0>s(K,V))ae<O&&0>s(de,K)?(A[ve]=de,A[ae]=V,ve=ae):(A[ve]=K,A[U]=V,ve=U);else if(ae<O&&0>s(de,V))A[ve]=de,A[ae]=V,ve=ae;else break e}}return Q}function s(A,Q){var V=A.sortIndex-Q.sortIndex;return V!==0?V:A.id-Q.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;n.unstable_now=function(){return u.now()}}else{var f=Date,h=f.now();n.unstable_now=function(){return f.now()-h}}var p=[],m=[],v=1,b=null,w=3,S=!1,C=!1,_=!1,j=!1,N=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function H(A){for(var Q=l(m);Q!==null;){if(Q.callback===null)i(m);else if(Q.startTime<=A)i(m),Q.sortIndex=Q.expirationTime,a(p,Q);else break;Q=l(m)}}function D(A){if(_=!1,H(A),!C)if(l(p)!==null)C=!0,R||(R=!0,J());else{var Q=l(m);Q!==null&&ue(D,Q.startTime-A)}}var R=!1,B=-1,Z=5,ne=-1;function oe(){return j?!0:!(n.unstable_now()-ne<Z)}function le(){if(j=!1,R){var A=n.unstable_now();ne=A;var Q=!0;try{e:{C=!1,_&&(_=!1,z(B),B=-1),S=!0;var V=w;try{t:{for(H(A),b=l(p);b!==null&&!(b.expirationTime>A&&oe());){var ve=b.callback;if(typeof ve=="function"){b.callback=null,w=b.priorityLevel;var O=ve(b.expirationTime<=A);if(A=n.unstable_now(),typeof O=="function"){b.callback=O,H(A),Q=!0;break t}b===l(p)&&i(p),H(A)}else i(p);b=l(p)}if(b!==null)Q=!0;else{var F=l(m);F!==null&&ue(D,F.startTime-A),Q=!1}}break e}finally{b=null,w=V,S=!1}Q=void 0}}finally{Q?J():R=!1}}}var J;if(typeof k=="function")J=function(){k(le)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,W=te.port2;te.port1.onmessage=le,J=function(){W.postMessage(null)}}else J=function(){N(le,0)};function ue(A,Q){B=N(function(){A(n.unstable_now())},Q)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(A){A.callback=null},n.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<A?Math.floor(1e3/A):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_next=function(A){switch(w){case 1:case 2:case 3:var Q=3;break;default:Q=w}var V=w;w=Q;try{return A()}finally{w=V}},n.unstable_requestPaint=function(){j=!0},n.unstable_runWithPriority=function(A,Q){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var V=w;w=A;try{return Q()}finally{w=V}},n.unstable_scheduleCallback=function(A,Q,V){var ve=n.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?ve+V:ve):V=ve,A){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=V+O,A={id:v++,callback:Q,priorityLevel:A,startTime:V,expirationTime:O,sortIndex:-1},V>ve?(A.sortIndex=V,a(m,A),l(p)===null&&A===l(m)&&(_?(z(B),B=-1):_=!0,ue(D,V-ve))):(A.sortIndex=O,a(p,A),C||S||(C=!0,R||(R=!0,J()))),A},n.unstable_shouldYield=oe,n.unstable_wrapCallback=function(A){var Q=w;return function(){var V=w;w=Q;try{return A.apply(this,arguments)}finally{w=V}}}}(nd)),nd}var Lv;function vE(){return Lv||(Lv=1,td.exports=gE()),td.exports}var ad={exports:{}},Ft={};/**
31
+ */var kv;function x_(){return kv||(kv=1,function(n){function a(A,X){var V=A.length;A.push(X);e:for(;0<V;){var ye=V-1>>>1,O=A[ye];if(0<s(O,X))A[ye]=X,A[V]=O,V=ye;else break e}}function l(A){return A.length===0?null:A[0]}function i(A){if(A.length===0)return null;var X=A[0],V=A.pop();if(V!==X){A[0]=V;e:for(var ye=0,O=A.length,G=O>>>1;ye<G;){var U=2*(ye+1)-1,K=A[U],P=U+1,oe=A[P];if(0>s(K,V))P<O&&0>s(oe,K)?(A[ye]=oe,A[P]=V,ye=P):(A[ye]=K,A[U]=V,ye=U);else if(P<O&&0>s(oe,V))A[ye]=oe,A[P]=V,ye=P;else break e}}return X}function s(A,X){var V=A.sortIndex-X.sortIndex;return V!==0?V:A.id-X.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var f=Date,h=f.now();n.unstable_now=function(){return f.now()-h}}var p=[],m=[],v=1,b=null,w=3,S=!1,C=!1,E=!1,j=!1,R=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function H(A){for(var X=l(m);X!==null;){if(X.callback===null)i(m);else if(X.startTime<=A)i(m),X.sortIndex=X.expirationTime,a(p,X);else break;X=l(m)}}function M(A){if(E=!1,H(A),!C)if(l(p)!==null)C=!0,N||(N=!0,fe());else{var X=l(m);X!==null&&ee(M,X.startTime-A)}}var N=!1,B=-1,J=5,te=-1;function ae(){return j?!0:!(n.unstable_now()-te<J)}function re(){if(j=!1,N){var A=n.unstable_now();te=A;var X=!0;try{e:{C=!1,E&&(E=!1,L(B),B=-1),S=!0;var V=w;try{t:{for(H(A),b=l(p);b!==null&&!(b.expirationTime>A&&ae());){var ye=b.callback;if(typeof ye=="function"){b.callback=null,w=b.priorityLevel;var O=ye(b.expirationTime<=A);if(A=n.unstable_now(),typeof O=="function"){b.callback=O,H(A),X=!0;break t}b===l(p)&&i(p),H(A)}else i(p);b=l(p)}if(b!==null)X=!0;else{var G=l(m);G!==null&&ee(M,G.startTime-A),X=!1}}break e}finally{b=null,w=V,S=!1}X=void 0}}finally{X?fe():N=!1}}}var fe;if(typeof k=="function")fe=function(){k(re)};else if(typeof MessageChannel<"u"){var de=new MessageChannel,Q=de.port2;de.port1.onmessage=re,fe=function(){Q.postMessage(null)}}else fe=function(){R(re,0)};function ee(A,X){B=R(function(){A(n.unstable_now())},X)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(A){A.callback=null},n.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<A?Math.floor(1e3/A):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_next=function(A){switch(w){case 1:case 2:case 3:var X=3;break;default:X=w}var V=w;w=X;try{return A()}finally{w=V}},n.unstable_requestPaint=function(){j=!0},n.unstable_runWithPriority=function(A,X){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var V=w;w=A;try{return X()}finally{w=V}},n.unstable_scheduleCallback=function(A,X,V){var ye=n.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?ye+V:ye):V=ye,A){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=V+O,A={id:v++,callback:X,priorityLevel:A,startTime:V,expirationTime:O,sortIndex:-1},V>ye?(A.sortIndex=V,a(m,A),l(p)===null&&A===l(m)&&(E?(L(B),B=-1):E=!0,ee(M,V-ye))):(A.sortIndex=O,a(p,A),C||S||(C=!0,N||(N=!0,fe()))),A},n.unstable_shouldYield=ae,n.unstable_wrapCallback=function(A){var X=w;return function(){var V=w;w=X;try{return A.apply(this,arguments)}finally{w=V}}}}(nd)),nd}var zv;function w_(){return zv||(zv=1,td.exports=x_()),td.exports}var ad={exports:{}},Gt={};/**
32
32
  * @license React
33
33
  * react-dom.production.js
34
34
  *
@@ -36,7 +36,7 @@
36
36
  *
37
37
  * This source code is licensed under the MIT license found in the
38
38
  * LICENSE file in the root directory of this source tree.
39
- */var kv;function yE(){if(kv)return Ft;kv=1;var n=Wd();function a(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var i={d:{f:l,r:function(){throw Error(a(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},s=Symbol.for("react.portal");function u(p,m,v){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:b==null?null:""+b,children:p,containerInfo:m,implementation:v}}var f=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Ft.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Ft.createPortal=function(p,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(a(299));return u(p,m,null,v)},Ft.flushSync=function(p){var m=f.T,v=i.p;try{if(f.T=null,i.p=2,p)return p()}finally{f.T=m,i.p=v,i.d.f()}},Ft.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,i.d.C(p,m))},Ft.prefetchDNS=function(p){typeof p=="string"&&i.d.D(p)},Ft.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var v=m.as,b=h(v,m.crossOrigin),w=typeof m.integrity=="string"?m.integrity:void 0,S=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?i.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:b,integrity:w,fetchPriority:S}):v==="script"&&i.d.X(p,{crossOrigin:b,integrity:w,fetchPriority:S,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Ft.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=h(m.as,m.crossOrigin);i.d.M(p,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&i.d.M(p)},Ft.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,b=h(v,m.crossOrigin);i.d.L(p,v,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Ft.preloadModule=function(p,m){if(typeof p=="string")if(m){var v=h(m.as,m.crossOrigin);i.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else i.d.m(p)},Ft.requestFormReset=function(p){i.d.r(p)},Ft.unstable_batchedUpdates=function(p,m){return p(m)},Ft.useFormState=function(p,m,v){return f.H.useFormState(p,m,v)},Ft.useFormStatus=function(){return f.H.useHostTransitionStatus()},Ft.version="19.1.1",Ft}var zv;function r0(){if(zv)return ad.exports;zv=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),ad.exports=yE(),ad.exports}/**
39
+ */var Uv;function S_(){if(Uv)return Gt;Uv=1;var n=eh();function a(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var i={d:{f:l,r:function(){throw Error(a(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},s=Symbol.for("react.portal");function c(p,m,v){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:b==null?null:""+b,children:p,containerInfo:m,implementation:v}}var f=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Gt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Gt.createPortal=function(p,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(a(299));return c(p,m,null,v)},Gt.flushSync=function(p){var m=f.T,v=i.p;try{if(f.T=null,i.p=2,p)return p()}finally{f.T=m,i.p=v,i.d.f()}},Gt.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,i.d.C(p,m))},Gt.prefetchDNS=function(p){typeof p=="string"&&i.d.D(p)},Gt.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var v=m.as,b=h(v,m.crossOrigin),w=typeof m.integrity=="string"?m.integrity:void 0,S=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?i.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:b,integrity:w,fetchPriority:S}):v==="script"&&i.d.X(p,{crossOrigin:b,integrity:w,fetchPriority:S,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Gt.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=h(m.as,m.crossOrigin);i.d.M(p,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&i.d.M(p)},Gt.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,b=h(v,m.crossOrigin);i.d.L(p,v,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Gt.preloadModule=function(p,m){if(typeof p=="string")if(m){var v=h(m.as,m.crossOrigin);i.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else i.d.m(p)},Gt.requestFormReset=function(p){i.d.r(p)},Gt.unstable_batchedUpdates=function(p,m){return p(m)},Gt.useFormState=function(p,m,v){return f.H.useFormState(p,m,v)},Gt.useFormStatus=function(){return f.H.useHostTransitionStatus()},Gt.version="19.1.1",Gt}var Pv;function i0(){if(Pv)return ad.exports;Pv=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),ad.exports=S_(),ad.exports}/**
40
40
  * @license React
41
41
  * react-dom-client.production.js
42
42
  *
@@ -44,15 +44,15 @@
44
44
  *
45
45
  * This source code is licensed under the MIT license found in the
46
46
  * LICENSE file in the root directory of this source tree.
47
- */var Uv;function bE(){if(Uv)return ao;Uv=1;var n=vE(),a=Wd(),l=r0();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}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 s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function f(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(u(e)!==e)throw Error(i(188))}function p(e){var t=e.alternate;if(!t){if(t=u(e),t===null)throw Error(i(188));return t!==e?null:e}for(var r=e,o=t;;){var c=r.return;if(c===null)break;var d=c.alternate;if(d===null){if(o=c.return,o!==null){r=o;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===r)return h(c),e;if(d===o)return h(c),t;d=d.sibling}throw Error(i(188))}if(r.return!==o.return)r=c,o=d;else{for(var x=!1,E=c.child;E;){if(E===r){x=!0,r=c,o=d;break}if(E===o){x=!0,o=c,r=d;break}E=E.sibling}if(!x){for(E=d.child;E;){if(E===r){x=!0,r=d,o=c;break}if(E===o){x=!0,o=d,r=c;break}E=E.sibling}if(!x)throw Error(i(189))}}if(r.alternate!==o)throw Error(i(190))}if(r.tag!==3)throw Error(i(188));return r.stateNode.current===r?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,b=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),N=Symbol.for("react.provider"),z=Symbol.for("react.consumer"),k=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),ne=Symbol.for("react.activity"),oe=Symbol.for("react.memo_cache_sentinel"),le=Symbol.iterator;function J(e){return e===null||typeof e!="object"?null:(e=le&&e[le]||e["@@iterator"],typeof e=="function"?e:null)}var te=Symbol.for("react.client.reference");function W(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===te?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case j:return"Profiler";case _:return"StrictMode";case D:return"Suspense";case R:return"SuspenseList";case ne:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case S:return"Portal";case k:return(e.displayName||"Context")+".Provider";case z:return(e._context.displayName||"Context")+".Consumer";case H:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case B:return t=e.displayName||null,t!==null?t:W(e.type)||"Memo";case Z:t=e._payload,e=e._init;try{return W(e(t))}catch{}}return null}var ue=Array.isArray,A=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V={pending:!1,data:null,method:null,action:null},ve=[],O=-1;function F(e){return{current:e}}function U(e){0>O||(e.current=ve[O],ve[O]=null,O--)}function K(e,t){O++,ve[O]=e.current,e.current=t}var ae=F(null),de=F(null),ge=F(null),ye=F(null);function Le(e,t){switch(K(ge,t),K(de,e),K(ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ug(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ug(t),e=Pg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}U(ae),K(ae,e)}function qe(){U(ae),U(de),U(ge)}function Je(e){e.memoizedState!==null&&K(ye,e);var t=ae.current,r=Pg(t,e.type);t!==r&&(K(de,e),K(ae,r))}function At(e){de.current===e&&(U(ae),U(de)),ye.current===e&&(U(ye),Zi._currentValue=V)}var Ie=Object.prototype.hasOwnProperty,an=n.unstable_scheduleCallback,ie=n.unstable_cancelCallback,fe=n.unstable_shouldYield,pe=n.unstable_requestPaint,he=n.unstable_now,je=n.unstable_getCurrentPriorityLevel,ke=n.unstable_ImmediatePriority,Pe=n.unstable_UserBlockingPriority,nt=n.unstable_NormalPriority,Yt=n.unstable_LowPriority,Bn=n.unstable_IdlePriority,Oo=n.log,ii=n.unstable_setDisableYieldValue,Zt=null,vt=null;function Mn(e){if(typeof Oo=="function"&&ii(e),vt&&typeof vt.setStrictMode=="function")try{vt.setStrictMode(Zt,e)}catch{}}var Pt=Math.clz32?Math.clz32:Ao,Ku=Math.log,$n=Math.LN2;function Ao(e){return e>>>=0,e===0?32:31-(Ku(e)/$n|0)|0}var gr=256,vr=4194304;function ra(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function yr(e,t,r){var o=e.pendingLanes;if(o===0)return 0;var c=0,d=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var E=o&134217727;return E!==0?(o=E&~d,o!==0?c=ra(o):(x&=E,x!==0?c=ra(x):r||(r=E&~e,r!==0&&(c=ra(r))))):(E=o&~d,E!==0?c=ra(E):x!==0?c=ra(x):r||(r=o&~e,r!==0&&(c=ra(r)))),c===0?0:t!==0&&t!==c&&(t&d)===0&&(d=c&-c,r=t&-t,d>=r||d===32&&(r&4194048)!==0)?t:c}function Vn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function To(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 Wr(){var e=gr;return gr<<=1,(gr&4194048)===0&&(gr=256),e}function Mo(){var e=vr;return vr<<=1,(vr&62914560)===0&&(vr=4194304),e}function el(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function br(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Do(e,t,r,o,c,d){var x=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var E=e.entanglements,T=e.expirationTimes,q=e.hiddenUpdates;for(r=x&~r;0<r;){var ee=31-Pt(r),se=1<<ee;E[ee]=0,T[ee]=-1;var G=q[ee];if(G!==null)for(q[ee]=null,ee=0;ee<G.length;ee++){var X=G[ee];X!==null&&(X.lane&=-536870913)}r&=~se}o!==0&&xr(e,o,0),d!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=d&~(x&~t))}function xr(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-Pt(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|r&4194090}function wr(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var o=31-Pt(r),c=1<<o;c&t|e[o]&t&&(e[o]|=t),r&=~c}}function oi(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 si(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function M(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:av(e.type))}function $(e,t){var r=Q.p;try{return Q.p=e,t()}finally{Q.p=r}}var I=Math.random().toString(36).slice(2),ce="__reactFiber$"+I,me="__reactProps$"+I,Se="__reactContainer$"+I,Ce="__reactEvents$"+I,Ee="__reactListeners$"+I,Oe="__reactHandles$"+I,Te="__reactResources$"+I,_e="__reactMarker$"+I;function Ne(e){delete e[ce],delete e[me],delete e[Ce],delete e[Ee],delete e[Oe]}function $e(e){var t=e[ce];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Se]||r[ce]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Vg(e);e!==null;){if(r=e[ce])return r;e=Vg(e)}return t}e=r,r=e.parentNode}return null}function at(e){if(e=e[ce]||e[Se]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function xt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function wt(e){var t=e[Te];return t||(t=e[Te]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function He(e){e[_e]=!0}var it=new Set,Yn={};function rn(e,t){Gt(e,t),Gt(e+"Capture",t)}function Gt(e,t){for(Yn[e]=t,e=0;e<t.length;e++)it.add(t[e])}var yn=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]*$"),tl={},Aa={};function la(e){return Ie.call(Aa,e)?!0:Ie.call(tl,e)?!1:yn.test(e)?Aa[e]=!0:(tl[e]=!0,!1)}function ia(e,t,r){if(la(t))if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+r)}}function oa(e,t,r){if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+r)}}function Fe(e,t,r,o){if(o===null)e.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(t,r,""+o)}}var Rt,Sr;function bn(e){if(Rt===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Rt=t&&t[1]||"",Sr=-1<r.stack.indexOf(`
47
+ */var Hv;function __(){if(Hv)return ao;Hv=1;var n=w_(),a=eh(),l=i0();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}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 s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function f(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(c(e)!==e)throw Error(i(188))}function p(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(i(188));return t!==e?null:e}for(var r=e,o=t;;){var u=r.return;if(u===null)break;var d=u.alternate;if(d===null){if(o=u.return,o!==null){r=o;continue}break}if(u.child===d.child){for(d=u.child;d;){if(d===r)return h(u),e;if(d===o)return h(u),t;d=d.sibling}throw Error(i(188))}if(r.return!==o.return)r=u,o=d;else{for(var x=!1,_=u.child;_;){if(_===r){x=!0,r=u,o=d;break}if(_===o){x=!0,o=u,r=d;break}_=_.sibling}if(!x){for(_=d.child;_;){if(_===r){x=!0,r=d,o=u;break}if(_===o){x=!0,o=d,r=u;break}_=_.sibling}if(!x)throw Error(i(189))}}if(r.alternate!==o)throw Error(i(190))}if(r.tag!==3)throw Error(i(188));return r.stateNode.current===r?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,b=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),L=Symbol.for("react.consumer"),k=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),ae=Symbol.for("react.memo_cache_sentinel"),re=Symbol.iterator;function fe(e){return e===null||typeof e!="object"?null:(e=re&&e[re]||e["@@iterator"],typeof e=="function"?e:null)}var de=Symbol.for("react.client.reference");function Q(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===de?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case j:return"Profiler";case E:return"StrictMode";case M:return"Suspense";case N:return"SuspenseList";case te:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case S:return"Portal";case k:return(e.displayName||"Context")+".Provider";case L:return(e._context.displayName||"Context")+".Consumer";case H:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case B:return t=e.displayName||null,t!==null?t:Q(e.type)||"Memo";case J:t=e._payload,e=e._init;try{return Q(e(t))}catch{}}return null}var ee=Array.isArray,A=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V={pending:!1,data:null,method:null,action:null},ye=[],O=-1;function G(e){return{current:e}}function U(e){0>O||(e.current=ye[O],ye[O]=null,O--)}function K(e,t){O++,ye[O]=e.current,e.current=t}var P=G(null),oe=G(null),me=G(null),ve=G(null);function Le(e,t){switch(K(me,t),K(oe,e),K(P,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Hg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Hg(t),e=Bg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}U(P),K(P,e)}function Fe(){U(P),U(oe),U(me)}function Je(e){e.memoizedState!==null&&K(ve,e);var t=P.current,r=Bg(t,e.type);t!==r&&(K(oe,e),K(P,r))}function Tt(e){oe.current===e&&(U(P),U(oe)),ve.current===e&&(U(ve),Ii._currentValue=V)}var Ze=Object.prototype.hasOwnProperty,an=n.unstable_scheduleCallback,ie=n.unstable_cancelCallback,ue=n.unstable_shouldYield,ge=n.unstable_requestPaint,he=n.unstable_now,Oe=n.unstable_getCurrentPriorityLevel,ke=n.unstable_ImmediatePriority,Pe=n.unstable_UserBlockingPriority,nt=n.unstable_NormalPriority,Ft=n.unstable_LowPriority,Bn=n.unstable_IdlePriority,Oo=n.log,ii=n.unstable_setDisableYieldValue,It=null,vt=null;function Mn(e){if(typeof Oo=="function"&&ii(e),vt&&typeof vt.setStrictMode=="function")try{vt.setStrictMode(It,e)}catch{}}var Ht=Math.clz32?Math.clz32:Ao,Gc=Math.log,$n=Math.LN2;function Ao(e){return e>>>=0,e===0?32:31-(Gc(e)/$n|0)|0}var vr=256,yr=4194304;function ra(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function br(e,t,r){var o=e.pendingLanes;if(o===0)return 0;var u=0,d=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var _=o&134217727;return _!==0?(o=_&~d,o!==0?u=ra(o):(x&=_,x!==0?u=ra(x):r||(r=_&~e,r!==0&&(u=ra(r))))):(_=o&~d,_!==0?u=ra(_):x!==0?u=ra(x):r||(r=o&~e,r!==0&&(u=ra(r)))),u===0?0:t!==0&&t!==u&&(t&d)===0&&(d=u&-u,r=t&-t,d>=r||d===32&&(r&4194048)!==0)?t:u}function Vn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function To(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 el(){var e=vr;return vr<<=1,(vr&4194048)===0&&(vr=256),e}function Mo(){var e=yr;return yr<<=1,(yr&62914560)===0&&(yr=4194304),e}function tl(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function xr(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Do(e,t,r,o,u,d){var x=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var _=e.entanglements,T=e.expirationTimes,Y=e.hiddenUpdates;for(r=x&~r;0<r;){var ne=31-Ht(r),se=1<<ne;_[ne]=0,T[ne]=-1;var I=Y[ne];if(I!==null)for(Y[ne]=null,ne=0;ne<I.length;ne++){var Z=I[ne];Z!==null&&(Z.lane&=-536870913)}r&=~se}o!==0&&wr(e,o,0),d!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=d&~(x&~t))}function wr(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-Ht(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|r&4194090}function Sr(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var o=31-Ht(r),u=1<<o;u&t|e[o]&t&&(e[o]|=t),r&=~u}}function oi(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 si(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function D(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:lv(e.type))}function q(e,t){var r=X.p;try{return X.p=e,t()}finally{X.p=r}}var W=Math.random().toString(36).slice(2),ce="__reactFiber$"+W,pe="__reactProps$"+W,Se="__reactContainer$"+W,Ne="__reactEvents$"+W,_e="__reactListeners$"+W,Ae="__reactHandles$"+W,Te="__reactResources$"+W,Ee="__reactMarker$"+W;function Re(e){delete e[ce],delete e[pe],delete e[Ne],delete e[_e],delete e[Ae]}function $e(e){var t=e[ce];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Se]||r[ce]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Fg(e);e!==null;){if(r=e[ce])return r;e=Fg(e)}return t}e=r,r=e.parentNode}return null}function at(e){if(e=e[ce]||e[Se]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function wt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function St(e){var t=e[Te];return t||(t=e[Te]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function He(e){e[Ee]=!0}var it=new Set,qn={};function rn(e,t){Xt(e,t),Xt(e+"Capture",t)}function Xt(e,t){for(qn[e]=t,e=0;e<t.length;e++)it.add(t[e])}var yn=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]*$"),nl={},Ta={};function la(e){return Ze.call(Ta,e)?!0:Ze.call(nl,e)?!1:yn.test(e)?Ta[e]=!0:(nl[e]=!0,!1)}function ia(e,t,r){if(la(t))if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+r)}}function oa(e,t,r){if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+r)}}function Ye(e,t,r,o){if(o===null)e.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(t,r,""+o)}}var jt,_r;function bn(e){if(jt===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);jt=t&&t[1]||"",_r=-1<r.stack.indexOf(`
48
48
  at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
49
- `+Rt+e+Sr}var yt=!1;function Ta(e,t){if(!e||yt)return"";yt=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(t){var se=function(){throw Error()};if(Object.defineProperty(se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(se,[])}catch(X){var G=X}Reflect.construct(e,[],se)}else{try{se.call()}catch(X){G=X}e.call(se.prototype)}}else{try{throw Error()}catch(X){G=X}(se=e())&&typeof se.catch=="function"&&se.catch(function(){})}}catch(X){if(X&&G&&typeof X.stack=="string")return[X.stack,G.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=o.DetermineComponentFrameRoot(),x=d[0],E=d[1];if(x&&E){var T=x.split(`
50
- `),q=E.split(`
51
- `);for(c=o=0;o<T.length&&!T[o].includes("DetermineComponentFrameRoot");)o++;for(;c<q.length&&!q[c].includes("DetermineComponentFrameRoot");)c++;if(o===T.length||c===q.length)for(o=T.length-1,c=q.length-1;1<=o&&0<=c&&T[o]!==q[c];)c--;for(;1<=o&&0<=c;o--,c--)if(T[o]!==q[c]){if(o!==1||c!==1)do if(o--,c--,0>c||T[o]!==q[c]){var ee=`
52
- `+T[o].replace(" at new "," at ");return e.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",e.displayName)),ee}while(1<=o&&0<=c);break}}}finally{yt=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?bn(r):""}function Lo(e){switch(e.tag){case 26:case 27:case 5:return bn(e.type);case 16:return bn("Lazy");case 13:return bn("Suspense");case 19:return bn("SuspenseList");case 0:case 15:return Ta(e.type,!1);case 11:return Ta(e.type.render,!1);case 1:return Ta(e.type,!0);case 31:return bn("Activity");default:return""}}function ko(e){try{var t="";do t+=Lo(e),e=e.return;while(e);return t}catch(r){return`
49
+ `+jt+e+_r}var yt=!1;function Ma(e,t){if(!e||yt)return"";yt=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(t){var se=function(){throw Error()};if(Object.defineProperty(se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(se,[])}catch(Z){var I=Z}Reflect.construct(e,[],se)}else{try{se.call()}catch(Z){I=Z}e.call(se.prototype)}}else{try{throw Error()}catch(Z){I=Z}(se=e())&&typeof se.catch=="function"&&se.catch(function(){})}}catch(Z){if(Z&&I&&typeof Z.stack=="string")return[Z.stack,I.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=o.DetermineComponentFrameRoot(),x=d[0],_=d[1];if(x&&_){var T=x.split(`
50
+ `),Y=_.split(`
51
+ `);for(u=o=0;o<T.length&&!T[o].includes("DetermineComponentFrameRoot");)o++;for(;u<Y.length&&!Y[u].includes("DetermineComponentFrameRoot");)u++;if(o===T.length||u===Y.length)for(o=T.length-1,u=Y.length-1;1<=o&&0<=u&&T[o]!==Y[u];)u--;for(;1<=o&&0<=u;o--,u--)if(T[o]!==Y[u]){if(o!==1||u!==1)do if(o--,u--,0>u||T[o]!==Y[u]){var ne=`
52
+ `+T[o].replace(" at new "," at ");return e.displayName&&ne.includes("<anonymous>")&&(ne=ne.replace("<anonymous>",e.displayName)),ne}while(1<=o&&0<=u);break}}}finally{yt=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?bn(r):""}function Lo(e){switch(e.tag){case 26:case 27:case 5:return bn(e.type);case 16:return bn("Lazy");case 13:return bn("Suspense");case 19:return bn("SuspenseList");case 0:case 15:return Ma(e.type,!1);case 11:return Ma(e.type.render,!1);case 1:return Ma(e.type,!0);case 31:return bn("Activity");default:return""}}function ko(e){try{var t="";do t+=Lo(e),e=e.return;while(e);return t}catch(r){return`
53
53
  Error generating stack: `+r.message+`
54
- `+r.stack}}function xn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Mh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qx(e){var t=Mh(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var c=r.get,d=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(x){o=""+x,d.call(this,x)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return o},setValue:function(x){o=""+x},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zo(e){e._valueTracker||(e._valueTracker=qx(e))}function Dh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),o="";return e&&(o=Mh(e)?e.checked?"true":"false":e.value),e=o,e!==r?(t.setValue(e),!0):!1}function Uo(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 Fx=/[\n"\\]/g;function wn(e){return e.replace(Fx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Gu(e,t,r,o,c,d,x,E){e.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.type=x:e.removeAttribute("type"),t!=null?x==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+xn(t)):e.value!==""+xn(t)&&(e.value=""+xn(t)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),t!=null?Xu(e,x,xn(t)):r!=null?Xu(e,x,xn(r)):o!=null&&e.removeAttribute("value"),c==null&&d!=null&&(e.defaultChecked=!!d),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?e.name=""+xn(E):e.removeAttribute("name")}function Lh(e,t,r,o,c,d,x,E){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||r!=null){if(!(d!=="submit"&&d!=="reset"||t!=null))return;r=r!=null?""+xn(r):"",t=t!=null?""+xn(t):r,E||t===e.value||(e.value=t),e.defaultValue=t}o=o??c,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=E?e.checked:!!o,e.defaultChecked=!!o,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x)}function Xu(e,t,r){t==="number"&&Uo(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function nl(e,t,r,o){if(e=e.options,t){t={};for(var c=0;c<r.length;c++)t["$"+r[c]]=!0;for(r=0;r<e.length;r++)c=t.hasOwnProperty("$"+e[r].value),e[r].selected!==c&&(e[r].selected=c),c&&o&&(e[r].defaultSelected=!0)}else{for(r=""+xn(r),t=null,c=0;c<e.length;c++){if(e[c].value===r){e[c].selected=!0,o&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function kh(e,t,r){if(t!=null&&(t=""+xn(t),t!==e.value&&(e.value=t),r==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=r!=null?""+xn(r):""}function zh(e,t,r,o){if(t==null){if(o!=null){if(r!=null)throw Error(i(92));if(ue(o)){if(1<o.length)throw Error(i(93));o=o[0]}r=o}r==null&&(r=""),t=r}r=xn(t),e.defaultValue=r,o=e.textContent,o===r&&o!==""&&o!==null&&(e.value=o)}function al(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Kx=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 Uh(e,t,r){var o=t.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,r):typeof r!="number"||r===0||Kx.has(t)?t==="float"?e.cssFloat=r:e[t]=(""+r).trim():e[t]=r+"px"}function Ph(e,t,r){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,r!=null){for(var o in r)!r.hasOwnProperty(o)||t!=null&&t.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var c in t)o=t[c],t.hasOwnProperty(c)&&r[c]!==o&&Uh(e,c,o)}else for(var d in t)t.hasOwnProperty(d)&&Uh(e,d,t[d])}function Qu(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 Gx=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"]]),Xx=/^[\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 Po(e){return Xx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Zu=null;function Iu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rl=null,ll=null;function Hh(e){var t=at(e);if(t&&(e=t.stateNode)){var r=e[me]||null;e:switch(e=t.stateNode,t.type){case"input":if(Gu(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+wn(""+t)+'"][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var c=o[me]||null;if(!c)throw Error(i(90));Gu(o,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<r.length;t++)o=r[t],o.form===e.form&&Dh(o)}break e;case"textarea":kh(e,r.value,r.defaultValue);break e;case"select":t=r.value,t!=null&&nl(e,!!r.multiple,t,!1)}}}var Ju=!1;function Bh(e,t,r){if(Ju)return e(t,r);Ju=!0;try{var o=e(t);return o}finally{if(Ju=!1,(rl!==null||ll!==null)&&(Es(),rl&&(t=rl,e=ll,ll=rl=null,Hh(t),e)))for(t=0;t<e.length;t++)Hh(e[t])}}function ui(e,t){var r=e.stateNode;if(r===null)return null;var o=r[me]||null;if(o===null)return null;r=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(i(231,t,typeof r));return r}var sa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wu=!1;if(sa)try{var ci={};Object.defineProperty(ci,"passive",{get:function(){Wu=!0}}),window.addEventListener("test",ci,ci),window.removeEventListener("test",ci,ci)}catch{Wu=!1}var Ma=null,ec=null,Ho=null;function $h(){if(Ho)return Ho;var e,t=ec,r=t.length,o,c="value"in Ma?Ma.value:Ma.textContent,d=c.length;for(e=0;e<r&&t[e]===c[e];e++);var x=r-e;for(o=1;o<=x&&t[r-o]===c[d-o];o++);return Ho=c.slice(e,1<o?1-o:void 0)}function Bo(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 $o(){return!0}function Vh(){return!1}function It(e){function t(r,o,c,d,x){this._reactName=r,this._targetInst=c,this.type=o,this.nativeEvent=d,this.target=x,this.currentTarget=null;for(var E in e)e.hasOwnProperty(E)&&(r=e[E],this[E]=r?r(d):d[E]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?$o:Vh,this.isPropagationStopped=Vh,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=$o)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=$o)},persist:function(){},isPersistent:$o}),t}var Er={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vo=It(Er),fi=v({},Er,{view:0,detail:0}),Qx=It(fi),tc,nc,di,Yo=v({},fi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rc,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!==di&&(di&&e.type==="mousemove"?(tc=e.screenX-di.screenX,nc=e.screenY-di.screenY):nc=tc=0,di=e),tc)},movementY:function(e){return"movementY"in e?e.movementY:nc}}),Yh=It(Yo),Zx=v({},Yo,{dataTransfer:0}),Ix=It(Zx),Jx=v({},fi,{relatedTarget:0}),ac=It(Jx),Wx=v({},Er,{animationName:0,elapsedTime:0,pseudoElement:0}),e1=It(Wx),t1=v({},Er,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),n1=It(t1),a1=v({},Er,{data:0}),qh=It(a1),r1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},l1={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"},i1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function o1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=i1[e])?!!t[e]:!1}function rc(){return o1}var s1=v({},fi,{key:function(e){if(e.key){var t=r1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Bo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?l1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:rc,charCode:function(e){return e.type==="keypress"?Bo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Bo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),u1=It(s1),c1=v({},Yo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fh=It(c1),f1=v({},fi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rc}),d1=It(f1),h1=v({},Er,{propertyName:0,elapsedTime:0,pseudoElement:0}),m1=It(h1),p1=v({},Yo,{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}),g1=It(p1),v1=v({},Er,{newState:0,oldState:0}),y1=It(v1),b1=[9,13,27,32],lc=sa&&"CompositionEvent"in window,hi=null;sa&&"documentMode"in document&&(hi=document.documentMode);var x1=sa&&"TextEvent"in window&&!hi,Kh=sa&&(!lc||hi&&8<hi&&11>=hi),Gh=" ",Xh=!1;function Qh(e,t){switch(e){case"keyup":return b1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var il=!1;function w1(e,t){switch(e){case"compositionend":return Zh(t);case"keypress":return t.which!==32?null:(Xh=!0,Gh);case"textInput":return e=t.data,e===Gh&&Xh?null:e;default:return null}}function S1(e,t){if(il)return e==="compositionend"||!lc&&Qh(e,t)?(e=$h(),Ho=ec=Ma=null,il=!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 Kh&&t.locale!=="ko"?null:t.data;default:return null}}var E1={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 Ih(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!E1[e.type]:t==="textarea"}function Jh(e,t,r,o){rl?ll?ll.push(o):ll=[o]:rl=o,t=Os(t,"onChange"),0<t.length&&(r=new Vo("onChange","change",null,r,o),e.push({event:r,listeners:t}))}var mi=null,pi=null;function _1(e){Mg(e,0)}function qo(e){var t=xt(e);if(Dh(t))return e}function Wh(e,t){if(e==="change")return t}var em=!1;if(sa){var ic;if(sa){var oc="oninput"in document;if(!oc){var tm=document.createElement("div");tm.setAttribute("oninput","return;"),oc=typeof tm.oninput=="function"}ic=oc}else ic=!1;em=ic&&(!document.documentMode||9<document.documentMode)}function nm(){mi&&(mi.detachEvent("onpropertychange",am),pi=mi=null)}function am(e){if(e.propertyName==="value"&&qo(pi)){var t=[];Jh(t,pi,e,Iu(e)),Bh(_1,t)}}function C1(e,t,r){e==="focusin"?(nm(),mi=t,pi=r,mi.attachEvent("onpropertychange",am)):e==="focusout"&&nm()}function N1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return qo(pi)}function R1(e,t){if(e==="click")return qo(t)}function j1(e,t){if(e==="input"||e==="change")return qo(t)}function O1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ln=typeof Object.is=="function"?Object.is:O1;function gi(e,t){if(ln(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(o=0;o<r.length;o++){var c=r[o];if(!Ie.call(t,c)||!ln(e[c],t[c]))return!1}return!0}function rm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lm(e,t){var r=rm(e);e=0;for(var o;r;){if(r.nodeType===3){if(o=e+r.textContent.length,e<=t&&o>=t)return{node:r,offset:t-e};e=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=rm(r)}}function im(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?im(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function om(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Uo(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Uo(e.document)}return t}function sc(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 A1=sa&&"documentMode"in document&&11>=document.documentMode,ol=null,uc=null,vi=null,cc=!1;function sm(e,t,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;cc||ol==null||ol!==Uo(o)||(o=ol,"selectionStart"in o&&sc(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),vi&&gi(vi,o)||(vi=o,o=Os(uc,"onSelect"),0<o.length&&(t=new Vo("onSelect","select",null,t,r),e.push({event:t,listeners:o}),t.target=ol)))}function _r(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var sl={animationend:_r("Animation","AnimationEnd"),animationiteration:_r("Animation","AnimationIteration"),animationstart:_r("Animation","AnimationStart"),transitionrun:_r("Transition","TransitionRun"),transitionstart:_r("Transition","TransitionStart"),transitioncancel:_r("Transition","TransitionCancel"),transitionend:_r("Transition","TransitionEnd")},fc={},um={};sa&&(um=document.createElement("div").style,"AnimationEvent"in window||(delete sl.animationend.animation,delete sl.animationiteration.animation,delete sl.animationstart.animation),"TransitionEvent"in window||delete sl.transitionend.transition);function Cr(e){if(fc[e])return fc[e];if(!sl[e])return e;var t=sl[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in um)return fc[e]=t[r];return e}var cm=Cr("animationend"),fm=Cr("animationiteration"),dm=Cr("animationstart"),T1=Cr("transitionrun"),M1=Cr("transitionstart"),D1=Cr("transitioncancel"),hm=Cr("transitionend"),mm=new Map,dc="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(" ");dc.push("scrollEnd");function Dn(e,t){mm.set(e,t),rn(t,[e])}var pm=new WeakMap;function Sn(e,t){if(typeof e=="object"&&e!==null){var r=pm.get(e);return r!==void 0?r:(t={value:e,source:t,stack:ko(t)},pm.set(e,t),t)}return{value:e,source:t,stack:ko(t)}}var En=[],ul=0,hc=0;function Fo(){for(var e=ul,t=hc=ul=0;t<e;){var r=En[t];En[t++]=null;var o=En[t];En[t++]=null;var c=En[t];En[t++]=null;var d=En[t];if(En[t++]=null,o!==null&&c!==null){var x=o.pending;x===null?c.next=c:(c.next=x.next,x.next=c),o.pending=c}d!==0&&gm(r,c,d)}}function Ko(e,t,r,o){En[ul++]=e,En[ul++]=t,En[ul++]=r,En[ul++]=o,hc|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function mc(e,t,r,o){return Ko(e,t,r,o),Go(e)}function cl(e,t){return Ko(e,null,null,t),Go(e)}function gm(e,t,r){e.lanes|=r;var o=e.alternate;o!==null&&(o.lanes|=r);for(var c=!1,d=e.return;d!==null;)d.childLanes|=r,o=d.alternate,o!==null&&(o.childLanes|=r),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(c=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,c&&t!==null&&(c=31-Pt(r),e=d.hiddenUpdates,o=e[c],o===null?e[c]=[t]:o.push(t),t.lane=r|536870912),d):null}function Go(e){if(50<Vi)throw Vi=0,wf=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var fl={};function L1(e,t,r,o){this.tag=e,this.key=r,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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function on(e,t,r,o){return new L1(e,t,r,o)}function pc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ua(e,t){var r=e.alternate;return r===null?(r=on(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function vm(e,t){e.flags&=65011714;var r=e.alternate;return r===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=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,t=r.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Xo(e,t,r,o,c,d){var x=0;if(o=e,typeof e=="function")pc(e)&&(x=1);else if(typeof e=="string")x=zw(e,r,ae.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ne:return e=on(31,r,t,c),e.elementType=ne,e.lanes=d,e;case C:return Nr(r.children,c,d,t);case _:x=8,c|=24;break;case j:return e=on(12,r,t,c|2),e.elementType=j,e.lanes=d,e;case D:return e=on(13,r,t,c),e.elementType=D,e.lanes=d,e;case R:return e=on(19,r,t,c),e.elementType=R,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case N:case k:x=10;break e;case z:x=9;break e;case H:x=11;break e;case B:x=14;break e;case Z:x=16,o=null;break e}x=29,r=Error(i(130,e===null?"null":typeof e,"")),o=null}return t=on(x,r,t,c),t.elementType=e,t.type=o,t.lanes=d,t}function Nr(e,t,r,o){return e=on(7,e,o,t),e.lanes=r,e}function gc(e,t,r){return e=on(6,e,null,t),e.lanes=r,e}function vc(e,t,r){return t=on(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var dl=[],hl=0,Qo=null,Zo=0,_n=[],Cn=0,Rr=null,ca=1,fa="";function jr(e,t){dl[hl++]=Zo,dl[hl++]=Qo,Qo=e,Zo=t}function ym(e,t,r){_n[Cn++]=ca,_n[Cn++]=fa,_n[Cn++]=Rr,Rr=e;var o=ca;e=fa;var c=32-Pt(o)-1;o&=~(1<<c),r+=1;var d=32-Pt(t)+c;if(30<d){var x=c-c%5;d=(o&(1<<x)-1).toString(32),o>>=x,c-=x,ca=1<<32-Pt(t)+c|r<<c|o,fa=d+e}else ca=1<<d|r<<c|o,fa=e}function yc(e){e.return!==null&&(jr(e,1),ym(e,1,0))}function bc(e){for(;e===Qo;)Qo=dl[--hl],dl[hl]=null,Zo=dl[--hl],dl[hl]=null;for(;e===Rr;)Rr=_n[--Cn],_n[Cn]=null,fa=_n[--Cn],_n[Cn]=null,ca=_n[--Cn],_n[Cn]=null}var Xt=null,St=null,tt=!1,Or=null,qn=!1,xc=Error(i(519));function Ar(e){var t=Error(i(418,""));throw xi(Sn(t,e)),xc}function bm(e){var t=e.stateNode,r=e.type,o=e.memoizedProps;switch(t[ce]=e,t[me]=o,r){case"dialog":Ze("cancel",t),Ze("close",t);break;case"iframe":case"object":case"embed":Ze("load",t);break;case"video":case"audio":for(r=0;r<qi.length;r++)Ze(qi[r],t);break;case"source":Ze("error",t);break;case"img":case"image":case"link":Ze("error",t),Ze("load",t);break;case"details":Ze("toggle",t);break;case"input":Ze("invalid",t),Lh(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0),zo(t);break;case"select":Ze("invalid",t);break;case"textarea":Ze("invalid",t),zh(t,o.value,o.defaultValue,o.children),zo(t)}r=o.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||t.textContent===""+r||o.suppressHydrationWarning===!0||zg(t.textContent,r)?(o.popover!=null&&(Ze("beforetoggle",t),Ze("toggle",t)),o.onScroll!=null&&Ze("scroll",t),o.onScrollEnd!=null&&Ze("scrollend",t),o.onClick!=null&&(t.onclick=As),t=!0):t=!1,t||Ar(e)}function xm(e){for(Xt=e.return;Xt;)switch(Xt.tag){case 5:case 13:qn=!1;return;case 27:case 3:qn=!0;return;default:Xt=Xt.return}}function yi(e){if(e!==Xt)return!1;if(!tt)return xm(e),tt=!0,!1;var t=e.tag,r;if((r=t!==3&&t!==27)&&((r=t===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||Uf(e.type,e.memoizedProps)),r=!r),r&&St&&Ar(e),xm(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(r=e.data,r==="/$"){if(t===0){St=kn(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++;e=e.nextSibling}St=null}}else t===27?(t=St,Xa(e.type)?(e=$f,$f=null,St=e):St=t):St=Xt?kn(e.stateNode.nextSibling):null;return!0}function bi(){St=Xt=null,tt=!1}function wm(){var e=Or;return e!==null&&(en===null?en=e:en.push.apply(en,e),Or=null),e}function xi(e){Or===null?Or=[e]:Or.push(e)}var wc=F(null),Tr=null,da=null;function Da(e,t,r){K(wc,t._currentValue),t._currentValue=r}function ha(e){e._currentValue=wc.current,U(wc)}function Sc(e,t,r){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===r)break;e=e.return}}function Ec(e,t,r,o){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var d=c.dependencies;if(d!==null){var x=c.child;d=d.firstContext;e:for(;d!==null;){var E=d;d=c;for(var T=0;T<t.length;T++)if(E.context===t[T]){d.lanes|=r,E=d.alternate,E!==null&&(E.lanes|=r),Sc(d.return,r,e),o||(x=null);break e}d=E.next}}else if(c.tag===18){if(x=c.return,x===null)throw Error(i(341));x.lanes|=r,d=x.alternate,d!==null&&(d.lanes|=r),Sc(x,r,e),x=null}else x=c.child;if(x!==null)x.return=c;else for(x=c;x!==null;){if(x===e){x=null;break}if(c=x.sibling,c!==null){c.return=x.return,x=c;break}x=x.return}c=x}}function wi(e,t,r,o){e=null;for(var c=t,d=!1;c!==null;){if(!d){if((c.flags&524288)!==0)d=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var x=c.alternate;if(x===null)throw Error(i(387));if(x=x.memoizedProps,x!==null){var E=c.type;ln(c.pendingProps.value,x.value)||(e!==null?e.push(E):e=[E])}}else if(c===ye.current){if(x=c.alternate,x===null)throw Error(i(387));x.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Zi):e=[Zi])}c=c.return}e!==null&&Ec(t,e,r,o),t.flags|=262144}function Io(e){for(e=e.firstContext;e!==null;){if(!ln(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Mr(e){Tr=e,da=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function qt(e){return Sm(Tr,e)}function Jo(e,t){return Tr===null&&Mr(e),Sm(e,t)}function Sm(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},da===null){if(e===null)throw Error(i(308));da=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else da=da.next=t;return r}var k1=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(r,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(r){return r()})}},z1=n.unstable_scheduleCallback,U1=n.unstable_NormalPriority,Tt={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function _c(){return{controller:new k1,data:new Map,refCount:0}}function Si(e){e.refCount--,e.refCount===0&&z1(U1,function(){e.controller.abort()})}var Ei=null,Cc=0,ml=0,pl=null;function P1(e,t){if(Ei===null){var r=Ei=[];Cc=0,ml=jf(),pl={status:"pending",value:void 0,then:function(o){r.push(o)}}}return Cc++,t.then(Em,Em),t}function Em(){if(--Cc===0&&Ei!==null){pl!==null&&(pl.status="fulfilled");var e=Ei;Ei=null,ml=0,pl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function H1(e,t){var r=[],o={status:"pending",value:null,reason:null,then:function(c){r.push(c)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var c=0;c<r.length;c++)(0,r[c])(t)},function(c){for(o.status="rejected",o.reason=c,c=0;c<r.length;c++)(0,r[c])(void 0)}),o}var _m=A.S;A.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&P1(e,t),_m!==null&&_m(e,t)};var Dr=F(null);function Nc(){var e=Dr.current;return e!==null?e:ht.pooledCache}function Wo(e,t){t===null?K(Dr,Dr.current):K(Dr,t.pool)}function Cm(){var e=Nc();return e===null?null:{parent:Tt._currentValue,pool:e}}var _i=Error(i(460)),Nm=Error(i(474)),es=Error(i(542)),Rc={then:function(){}};function Rm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ts(){}function jm(e,t,r){switch(r=e[r],r===void 0?e.push(t):r!==t&&(t.then(ts,ts),t=r),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Am(e),e;default:if(typeof t.status=="string")t.then(ts,ts);else{if(e=ht,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(o){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=o}},function(o){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Am(e),e}throw Ci=t,_i}}var Ci=null;function Om(){if(Ci===null)throw Error(i(459));var e=Ci;return Ci=null,e}function Am(e){if(e===_i||e===es)throw Error(i(483))}var La=!1;function jc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Oc(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 ka(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function za(e,t,r){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(rt&2)!==0){var c=o.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),o.pending=t,t=Go(e),gm(e,null,r),t}return Ko(e,o,t,r),Go(e)}function Ni(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,wr(e,r)}}function Ac(e,t){var r=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,r===o)){var c=null,d=null;if(r=r.firstBaseUpdate,r!==null){do{var x={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};d===null?c=d=x:d=d.next=x,r=r.next}while(r!==null);d===null?c=d=t:d=d.next=t}else c=d=t;r={baseState:o.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:o.shared,callbacks:o.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}var Tc=!1;function Ri(){if(Tc){var e=pl;if(e!==null)throw e}}function ji(e,t,r,o){Tc=!1;var c=e.updateQueue;La=!1;var d=c.firstBaseUpdate,x=c.lastBaseUpdate,E=c.shared.pending;if(E!==null){c.shared.pending=null;var T=E,q=T.next;T.next=null,x===null?d=q:x.next=q,x=T;var ee=e.alternate;ee!==null&&(ee=ee.updateQueue,E=ee.lastBaseUpdate,E!==x&&(E===null?ee.firstBaseUpdate=q:E.next=q,ee.lastBaseUpdate=T))}if(d!==null){var se=c.baseState;x=0,ee=q=T=null,E=d;do{var G=E.lane&-536870913,X=G!==E.lane;if(X?(We&G)===G:(o&G)===G){G!==0&&G===ml&&(Tc=!0),ee!==null&&(ee=ee.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var ze=e,Me=E;G=t;var ut=r;switch(Me.tag){case 1:if(ze=Me.payload,typeof ze=="function"){se=ze.call(ut,se,G);break e}se=ze;break e;case 3:ze.flags=ze.flags&-65537|128;case 0:if(ze=Me.payload,G=typeof ze=="function"?ze.call(ut,se,G):ze,G==null)break e;se=v({},se,G);break e;case 2:La=!0}}G=E.callback,G!==null&&(e.flags|=64,X&&(e.flags|=8192),X=c.callbacks,X===null?c.callbacks=[G]:X.push(G))}else X={lane:G,tag:E.tag,payload:E.payload,callback:E.callback,next:null},ee===null?(q=ee=X,T=se):ee=ee.next=X,x|=G;if(E=E.next,E===null){if(E=c.shared.pending,E===null)break;X=E,E=X.next,X.next=null,c.lastBaseUpdate=X,c.shared.pending=null}}while(!0);ee===null&&(T=se),c.baseState=T,c.firstBaseUpdate=q,c.lastBaseUpdate=ee,d===null&&(c.shared.lanes=0),qa|=x,e.lanes=x,e.memoizedState=se}}function Tm(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function Mm(e,t){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)Tm(r[e],t)}var gl=F(null),ns=F(0);function Dm(e,t){e=xa,K(ns,e),K(gl,t),xa=e|t.baseLanes}function Mc(){K(ns,xa),K(gl,gl.current)}function Dc(){xa=ns.current,U(gl),U(ns)}var Ua=0,Ve=null,ot=null,jt=null,as=!1,vl=!1,Lr=!1,rs=0,Oi=0,yl=null,B1=0;function Ct(){throw Error(i(321))}function Lc(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!ln(e[r],t[r]))return!1;return!0}function kc(e,t,r,o,c,d){return Ua=d,Ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,A.H=e===null||e.memoizedState===null?gp:vp,Lr=!1,d=r(o,c),Lr=!1,vl&&(d=km(t,r,o,c)),Lm(e),d}function Lm(e){A.H=cs;var t=ot!==null&&ot.next!==null;if(Ua=0,jt=ot=Ve=null,as=!1,Oi=0,yl=null,t)throw Error(i(300));e===null||Lt||(e=e.dependencies,e!==null&&Io(e)&&(Lt=!0))}function km(e,t,r,o){Ve=e;var c=0;do{if(vl&&(yl=null),Oi=0,vl=!1,25<=c)throw Error(i(301));if(c+=1,jt=ot=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}A.H=G1,d=t(r,o)}while(vl);return d}function $1(){var e=A.H,t=e.useState()[0];return t=typeof t.then=="function"?Ai(t):t,e=e.useState()[0],(ot!==null?ot.memoizedState:null)!==e&&(Ve.flags|=1024),t}function zc(){var e=rs!==0;return rs=0,e}function Uc(e,t,r){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r}function Pc(e){if(as){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}as=!1}Ua=0,jt=ot=Ve=null,vl=!1,Oi=rs=0,yl=null}function Jt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jt===null?Ve.memoizedState=jt=e:jt=jt.next=e,jt}function Ot(){if(ot===null){var e=Ve.alternate;e=e!==null?e.memoizedState:null}else e=ot.next;var t=jt===null?Ve.memoizedState:jt.next;if(t!==null)jt=t,ot=e;else{if(e===null)throw Ve.alternate===null?Error(i(467)):Error(i(310));ot=e,e={memoizedState:ot.memoizedState,baseState:ot.baseState,baseQueue:ot.baseQueue,queue:ot.queue,next:null},jt===null?Ve.memoizedState=jt=e:jt=jt.next=e}return jt}function Hc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ai(e){var t=Oi;return Oi+=1,yl===null&&(yl=[]),e=jm(yl,e,t),t=Ve,(jt===null?t.memoizedState:jt.next)===null&&(t=t.alternate,A.H=t===null||t.memoizedState===null?gp:vp),e}function ls(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ai(e);if(e.$$typeof===k)return qt(e)}throw Error(i(438,String(e)))}function Bc(e){var t=null,r=Ve.updateQueue;if(r!==null&&(t=r.memoCache),t==null){var o=Ve.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),r===null&&(r=Hc(),Ve.updateQueue=r),r.memoCache=t,r=t.data[t.index],r===void 0)for(r=t.data[t.index]=Array(e),o=0;o<e;o++)r[o]=oe;return t.index++,r}function ma(e,t){return typeof t=="function"?t(e):t}function is(e){var t=Ot();return $c(t,ot,e)}function $c(e,t,r){var o=e.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=r;var c=e.baseQueue,d=o.pending;if(d!==null){if(c!==null){var x=c.next;c.next=d.next,d.next=x}t.baseQueue=c=d,o.pending=null}if(d=e.baseState,c===null)e.memoizedState=d;else{t=c.next;var E=x=null,T=null,q=t,ee=!1;do{var se=q.lane&-536870913;if(se!==q.lane?(We&se)===se:(Ua&se)===se){var G=q.revertLane;if(G===0)T!==null&&(T=T.next={lane:0,revertLane:0,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),se===ml&&(ee=!0);else if((Ua&G)===G){q=q.next,G===ml&&(ee=!0);continue}else se={lane:0,revertLane:q.revertLane,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},T===null?(E=T=se,x=d):T=T.next=se,Ve.lanes|=G,qa|=G;se=q.action,Lr&&r(d,se),d=q.hasEagerState?q.eagerState:r(d,se)}else G={lane:se,revertLane:q.revertLane,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},T===null?(E=T=G,x=d):T=T.next=G,Ve.lanes|=se,qa|=se;q=q.next}while(q!==null&&q!==t);if(T===null?x=d:T.next=E,!ln(d,e.memoizedState)&&(Lt=!0,ee&&(r=pl,r!==null)))throw r;e.memoizedState=d,e.baseState=x,e.baseQueue=T,o.lastRenderedState=d}return c===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Vc(e){var t=Ot(),r=t.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=e;var o=r.dispatch,c=r.pending,d=t.memoizedState;if(c!==null){r.pending=null;var x=c=c.next;do d=e(d,x.action),x=x.next;while(x!==c);ln(d,t.memoizedState)||(Lt=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),r.lastRenderedState=d}return[d,o]}function zm(e,t,r){var o=Ve,c=Ot(),d=tt;if(d){if(r===void 0)throw Error(i(407));r=r()}else r=t();var x=!ln((ot||c).memoizedState,r);x&&(c.memoizedState=r,Lt=!0),c=c.queue;var E=Hm.bind(null,o,c,e);if(Ti(2048,8,E,[e]),c.getSnapshot!==t||x||jt!==null&&jt.memoizedState.tag&1){if(o.flags|=2048,bl(9,os(),Pm.bind(null,o,c,r,t),null),ht===null)throw Error(i(349));d||(Ua&124)!==0||Um(o,t,r)}return r}function Um(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Ve.updateQueue,t===null?(t=Hc(),Ve.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function Pm(e,t,r,o){t.value=r,t.getSnapshot=o,Bm(t)&&$m(e)}function Hm(e,t,r){return r(function(){Bm(t)&&$m(e)})}function Bm(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!ln(e,r)}catch{return!0}}function $m(e){var t=cl(e,2);t!==null&&dn(t,e,2)}function Yc(e){var t=Jt();if(typeof e=="function"){var r=e;if(e=r(),Lr){Mn(!0);try{r()}finally{Mn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ma,lastRenderedState:e},t}function Vm(e,t,r,o){return e.baseState=r,$c(e,ot,typeof o=="function"?o:ma)}function V1(e,t,r,o,c){if(us(e))throw Error(i(485));if(e=t.action,e!==null){var d={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){d.listeners.push(x)}};A.T!==null?r(!0):d.isTransition=!1,o(d),r=t.pending,r===null?(d.next=t.pending=d,Ym(t,d)):(d.next=r.next,t.pending=r.next=d)}}function Ym(e,t){var r=t.action,o=t.payload,c=e.state;if(t.isTransition){var d=A.T,x={};A.T=x;try{var E=r(c,o),T=A.S;T!==null&&T(x,E),qm(e,t,E)}catch(q){qc(e,t,q)}finally{A.T=d}}else try{d=r(c,o),qm(e,t,d)}catch(q){qc(e,t,q)}}function qm(e,t,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(o){Fm(e,t,o)},function(o){return qc(e,t,o)}):Fm(e,t,r)}function Fm(e,t,r){t.status="fulfilled",t.value=r,Km(t),e.state=r,t=e.pending,t!==null&&(r=t.next,r===t?e.pending=null:(r=r.next,t.next=r,Ym(e,r)))}function qc(e,t,r){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=r,Km(t),t=t.next;while(t!==o)}e.action=null}function Km(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Gm(e,t){return t}function Xm(e,t){if(tt){var r=ht.formState;if(r!==null){e:{var o=Ve;if(tt){if(St){t:{for(var c=St,d=qn;c.nodeType!==8;){if(!d){c=null;break t}if(c=kn(c.nextSibling),c===null){c=null;break t}}d=c.data,c=d==="F!"||d==="F"?c:null}if(c){St=kn(c.nextSibling),o=c.data==="F!";break e}}Ar(o)}o=!1}o&&(t=r[0])}}return r=Jt(),r.memoizedState=r.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gm,lastRenderedState:t},r.queue=o,r=hp.bind(null,Ve,o),o.dispatch=r,o=Yc(!1),d=Qc.bind(null,Ve,!1,o.queue),o=Jt(),c={state:t,dispatch:null,action:e,pending:null},o.queue=c,r=V1.bind(null,Ve,c,d,r),c.dispatch=r,o.memoizedState=e,[t,r,!1]}function Qm(e){var t=Ot();return Zm(t,ot,e)}function Zm(e,t,r){if(t=$c(e,t,Gm)[0],e=is(ma)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var o=Ai(t)}catch(x){throw x===_i?es:x}else o=t;t=Ot();var c=t.queue,d=c.dispatch;return r!==t.memoizedState&&(Ve.flags|=2048,bl(9,os(),Y1.bind(null,c,r),null)),[o,d,e]}function Y1(e,t){e.action=t}function Im(e){var t=Ot(),r=ot;if(r!==null)return Zm(t,r,e);Ot(),t=t.memoizedState,r=Ot();var o=r.queue.dispatch;return r.memoizedState=e,[t,o,!1]}function bl(e,t,r,o){return e={tag:e,create:r,deps:o,inst:t,next:null},t=Ve.updateQueue,t===null&&(t=Hc(),Ve.updateQueue=t),r=t.lastEffect,r===null?t.lastEffect=e.next=e:(o=r.next,r.next=e,e.next=o,t.lastEffect=e),e}function os(){return{destroy:void 0,resource:void 0}}function Jm(){return Ot().memoizedState}function ss(e,t,r,o){var c=Jt();o=o===void 0?null:o,Ve.flags|=e,c.memoizedState=bl(1|t,os(),r,o)}function Ti(e,t,r,o){var c=Ot();o=o===void 0?null:o;var d=c.memoizedState.inst;ot!==null&&o!==null&&Lc(o,ot.memoizedState.deps)?c.memoizedState=bl(t,d,r,o):(Ve.flags|=e,c.memoizedState=bl(1|t,d,r,o))}function Wm(e,t){ss(8390656,8,e,t)}function ep(e,t){Ti(2048,8,e,t)}function tp(e,t){return Ti(4,2,e,t)}function np(e,t){return Ti(4,4,e,t)}function ap(e,t){if(typeof t=="function"){e=e();var r=t(e);return function(){typeof r=="function"?r():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function rp(e,t,r){r=r!=null?r.concat([e]):null,Ti(4,4,ap.bind(null,t,e),r)}function Fc(){}function lp(e,t){var r=Ot();t=t===void 0?null:t;var o=r.memoizedState;return t!==null&&Lc(t,o[1])?o[0]:(r.memoizedState=[e,t],e)}function ip(e,t){var r=Ot();t=t===void 0?null:t;var o=r.memoizedState;if(t!==null&&Lc(t,o[1]))return o[0];if(o=e(),Lr){Mn(!0);try{e()}finally{Mn(!1)}}return r.memoizedState=[o,t],o}function Kc(e,t,r){return r===void 0||(Ua&1073741824)!==0?e.memoizedState=t:(e.memoizedState=r,e=ug(),Ve.lanes|=e,qa|=e,r)}function op(e,t,r,o){return ln(r,t)?r:gl.current!==null?(e=Kc(e,r,o),ln(e,t)||(Lt=!0),e):(Ua&42)===0?(Lt=!0,e.memoizedState=r):(e=ug(),Ve.lanes|=e,qa|=e,t)}function sp(e,t,r,o,c){var d=Q.p;Q.p=d!==0&&8>d?d:8;var x=A.T,E={};A.T=E,Qc(e,!1,t,r);try{var T=c(),q=A.S;if(q!==null&&q(E,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var ee=H1(T,o);Mi(e,t,ee,fn(e))}else Mi(e,t,o,fn(e))}catch(se){Mi(e,t,{then:function(){},status:"rejected",reason:se},fn())}finally{Q.p=d,A.T=x}}function q1(){}function Gc(e,t,r,o){if(e.tag!==5)throw Error(i(476));var c=up(e).queue;sp(e,c,t,V,r===null?q1:function(){return cp(e),r(o)})}function up(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ma,lastRenderedState:V},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ma,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function cp(e){var t=up(e).next.queue;Mi(e,t,{},fn())}function Xc(){return qt(Zi)}function fp(){return Ot().memoizedState}function dp(){return Ot().memoizedState}function F1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=fn();e=ka(r);var o=za(t,e,r);o!==null&&(dn(o,t,r),Ni(o,t,r)),t={cache:_c()},e.payload=t;return}t=t.return}}function K1(e,t,r){var o=fn();r={lane:o,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null},us(e)?mp(t,r):(r=mc(e,t,r,o),r!==null&&(dn(r,e,o),pp(r,t,o)))}function hp(e,t,r){var o=fn();Mi(e,t,r,o)}function Mi(e,t,r,o){var c={lane:o,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null};if(us(e))mp(t,c);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var x=t.lastRenderedState,E=d(x,r);if(c.hasEagerState=!0,c.eagerState=E,ln(E,x))return Ko(e,t,c,0),ht===null&&Fo(),!1}catch{}finally{}if(r=mc(e,t,c,o),r!==null)return dn(r,e,o),pp(r,t,o),!0}return!1}function Qc(e,t,r,o){if(o={lane:2,revertLane:jf(),action:o,hasEagerState:!1,eagerState:null,next:null},us(e)){if(t)throw Error(i(479))}else t=mc(e,r,o,2),t!==null&&dn(t,e,2)}function us(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}function mp(e,t){vl=as=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function pp(e,t,r){if((r&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,wr(e,r)}}var cs={readContext:qt,use:ls,useCallback:Ct,useContext:Ct,useEffect:Ct,useImperativeHandle:Ct,useLayoutEffect:Ct,useInsertionEffect:Ct,useMemo:Ct,useReducer:Ct,useRef:Ct,useState:Ct,useDebugValue:Ct,useDeferredValue:Ct,useTransition:Ct,useSyncExternalStore:Ct,useId:Ct,useHostTransitionStatus:Ct,useFormState:Ct,useActionState:Ct,useOptimistic:Ct,useMemoCache:Ct,useCacheRefresh:Ct},gp={readContext:qt,use:ls,useCallback:function(e,t){return Jt().memoizedState=[e,t===void 0?null:t],e},useContext:qt,useEffect:Wm,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,ss(4194308,4,ap.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ss(4194308,4,e,t)},useInsertionEffect:function(e,t){ss(4,2,e,t)},useMemo:function(e,t){var r=Jt();t=t===void 0?null:t;var o=e();if(Lr){Mn(!0);try{e()}finally{Mn(!1)}}return r.memoizedState=[o,t],o},useReducer:function(e,t,r){var o=Jt();if(r!==void 0){var c=r(t);if(Lr){Mn(!0);try{r(t)}finally{Mn(!1)}}}else c=t;return o.memoizedState=o.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},o.queue=e,e=e.dispatch=K1.bind(null,Ve,e),[o.memoizedState,e]},useRef:function(e){var t=Jt();return e={current:e},t.memoizedState=e},useState:function(e){e=Yc(e);var t=e.queue,r=hp.bind(null,Ve,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:Fc,useDeferredValue:function(e,t){var r=Jt();return Kc(r,e,t)},useTransition:function(){var e=Yc(!1);return e=sp.bind(null,Ve,e.queue,!0,!1),Jt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var o=Ve,c=Jt();if(tt){if(r===void 0)throw Error(i(407));r=r()}else{if(r=t(),ht===null)throw Error(i(349));(We&124)!==0||Um(o,t,r)}c.memoizedState=r;var d={value:r,getSnapshot:t};return c.queue=d,Wm(Hm.bind(null,o,d,e),[e]),o.flags|=2048,bl(9,os(),Pm.bind(null,o,d,r,t),null),r},useId:function(){var e=Jt(),t=ht.identifierPrefix;if(tt){var r=fa,o=ca;r=(o&~(1<<32-Pt(o)-1)).toString(32)+r,t="«"+t+"R"+r,r=rs++,0<r&&(t+="H"+r.toString(32)),t+="»"}else r=B1++,t="«"+t+"r"+r.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Xc,useFormState:Xm,useActionState:Xm,useOptimistic:function(e){var t=Jt();t.memoizedState=t.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=r,t=Qc.bind(null,Ve,!0,r),r.dispatch=t,[e,t]},useMemoCache:Bc,useCacheRefresh:function(){return Jt().memoizedState=F1.bind(null,Ve)}},vp={readContext:qt,use:ls,useCallback:lp,useContext:qt,useEffect:ep,useImperativeHandle:rp,useInsertionEffect:tp,useLayoutEffect:np,useMemo:ip,useReducer:is,useRef:Jm,useState:function(){return is(ma)},useDebugValue:Fc,useDeferredValue:function(e,t){var r=Ot();return op(r,ot.memoizedState,e,t)},useTransition:function(){var e=is(ma)[0],t=Ot().memoizedState;return[typeof e=="boolean"?e:Ai(e),t]},useSyncExternalStore:zm,useId:fp,useHostTransitionStatus:Xc,useFormState:Qm,useActionState:Qm,useOptimistic:function(e,t){var r=Ot();return Vm(r,ot,e,t)},useMemoCache:Bc,useCacheRefresh:dp},G1={readContext:qt,use:ls,useCallback:lp,useContext:qt,useEffect:ep,useImperativeHandle:rp,useInsertionEffect:tp,useLayoutEffect:np,useMemo:ip,useReducer:Vc,useRef:Jm,useState:function(){return Vc(ma)},useDebugValue:Fc,useDeferredValue:function(e,t){var r=Ot();return ot===null?Kc(r,e,t):op(r,ot.memoizedState,e,t)},useTransition:function(){var e=Vc(ma)[0],t=Ot().memoizedState;return[typeof e=="boolean"?e:Ai(e),t]},useSyncExternalStore:zm,useId:fp,useHostTransitionStatus:Xc,useFormState:Im,useActionState:Im,useOptimistic:function(e,t){var r=Ot();return ot!==null?Vm(r,ot,e,t):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:Bc,useCacheRefresh:dp},xl=null,Di=0;function fs(e){var t=Di;return Di+=1,xl===null&&(xl=[]),jm(xl,e,t)}function Li(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ds(e,t){throw t.$$typeof===b?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function yp(e){var t=e._init;return t(e._payload)}function bp(e){function t(P,L){if(e){var Y=P.deletions;Y===null?(P.deletions=[L],P.flags|=16):Y.push(L)}}function r(P,L){if(!e)return null;for(;L!==null;)t(P,L),L=L.sibling;return null}function o(P){for(var L=new Map;P!==null;)P.key!==null?L.set(P.key,P):L.set(P.index,P),P=P.sibling;return L}function c(P,L){return P=ua(P,L),P.index=0,P.sibling=null,P}function d(P,L,Y){return P.index=Y,e?(Y=P.alternate,Y!==null?(Y=Y.index,Y<L?(P.flags|=67108866,L):Y):(P.flags|=67108866,L)):(P.flags|=1048576,L)}function x(P){return e&&P.alternate===null&&(P.flags|=67108866),P}function E(P,L,Y,re){return L===null||L.tag!==6?(L=gc(Y,P.mode,re),L.return=P,L):(L=c(L,Y),L.return=P,L)}function T(P,L,Y,re){var be=Y.type;return be===C?ee(P,L,Y.props.children,re,Y.key):L!==null&&(L.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===Z&&yp(be)===L.type)?(L=c(L,Y.props),Li(L,Y),L.return=P,L):(L=Xo(Y.type,Y.key,Y.props,null,P.mode,re),Li(L,Y),L.return=P,L)}function q(P,L,Y,re){return L===null||L.tag!==4||L.stateNode.containerInfo!==Y.containerInfo||L.stateNode.implementation!==Y.implementation?(L=vc(Y,P.mode,re),L.return=P,L):(L=c(L,Y.children||[]),L.return=P,L)}function ee(P,L,Y,re,be){return L===null||L.tag!==7?(L=Nr(Y,P.mode,re,be),L.return=P,L):(L=c(L,Y),L.return=P,L)}function se(P,L,Y){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=gc(""+L,P.mode,Y),L.return=P,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case w:return Y=Xo(L.type,L.key,L.props,null,P.mode,Y),Li(Y,L),Y.return=P,Y;case S:return L=vc(L,P.mode,Y),L.return=P,L;case Z:var re=L._init;return L=re(L._payload),se(P,L,Y)}if(ue(L)||J(L))return L=Nr(L,P.mode,Y,null),L.return=P,L;if(typeof L.then=="function")return se(P,fs(L),Y);if(L.$$typeof===k)return se(P,Jo(P,L),Y);ds(P,L)}return null}function G(P,L,Y,re){var be=L!==null?L.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return be!==null?null:E(P,L,""+Y,re);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case w:return Y.key===be?T(P,L,Y,re):null;case S:return Y.key===be?q(P,L,Y,re):null;case Z:return be=Y._init,Y=be(Y._payload),G(P,L,Y,re)}if(ue(Y)||J(Y))return be!==null?null:ee(P,L,Y,re,null);if(typeof Y.then=="function")return G(P,L,fs(Y),re);if(Y.$$typeof===k)return G(P,L,Jo(P,Y),re);ds(P,Y)}return null}function X(P,L,Y,re,be){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return P=P.get(Y)||null,E(L,P,""+re,be);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case w:return P=P.get(re.key===null?Y:re.key)||null,T(L,P,re,be);case S:return P=P.get(re.key===null?Y:re.key)||null,q(L,P,re,be);case Z:var Ke=re._init;return re=Ke(re._payload),X(P,L,Y,re,be)}if(ue(re)||J(re))return P=P.get(Y)||null,ee(L,P,re,be,null);if(typeof re.then=="function")return X(P,L,Y,fs(re),be);if(re.$$typeof===k)return X(P,L,Y,Jo(L,re),be);ds(L,re)}return null}function ze(P,L,Y,re){for(var be=null,Ke=null,Re=L,De=L=0,zt=null;Re!==null&&De<Y.length;De++){Re.index>De?(zt=Re,Re=null):zt=Re.sibling;var et=G(P,Re,Y[De],re);if(et===null){Re===null&&(Re=zt);break}e&&Re&&et.alternate===null&&t(P,Re),L=d(et,L,De),Ke===null?be=et:Ke.sibling=et,Ke=et,Re=zt}if(De===Y.length)return r(P,Re),tt&&jr(P,De),be;if(Re===null){for(;De<Y.length;De++)Re=se(P,Y[De],re),Re!==null&&(L=d(Re,L,De),Ke===null?be=Re:Ke.sibling=Re,Ke=Re);return tt&&jr(P,De),be}for(Re=o(Re);De<Y.length;De++)zt=X(Re,P,De,Y[De],re),zt!==null&&(e&&zt.alternate!==null&&Re.delete(zt.key===null?De:zt.key),L=d(zt,L,De),Ke===null?be=zt:Ke.sibling=zt,Ke=zt);return e&&Re.forEach(function(Wa){return t(P,Wa)}),tt&&jr(P,De),be}function Me(P,L,Y,re){if(Y==null)throw Error(i(151));for(var be=null,Ke=null,Re=L,De=L=0,zt=null,et=Y.next();Re!==null&&!et.done;De++,et=Y.next()){Re.index>De?(zt=Re,Re=null):zt=Re.sibling;var Wa=G(P,Re,et.value,re);if(Wa===null){Re===null&&(Re=zt);break}e&&Re&&Wa.alternate===null&&t(P,Re),L=d(Wa,L,De),Ke===null?be=Wa:Ke.sibling=Wa,Ke=Wa,Re=zt}if(et.done)return r(P,Re),tt&&jr(P,De),be;if(Re===null){for(;!et.done;De++,et=Y.next())et=se(P,et.value,re),et!==null&&(L=d(et,L,De),Ke===null?be=et:Ke.sibling=et,Ke=et);return tt&&jr(P,De),be}for(Re=o(Re);!et.done;De++,et=Y.next())et=X(Re,P,De,et.value,re),et!==null&&(e&&et.alternate!==null&&Re.delete(et.key===null?De:et.key),L=d(et,L,De),Ke===null?be=et:Ke.sibling=et,Ke=et);return e&&Re.forEach(function(Xw){return t(P,Xw)}),tt&&jr(P,De),be}function ut(P,L,Y,re){if(typeof Y=="object"&&Y!==null&&Y.type===C&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case w:e:{for(var be=Y.key;L!==null;){if(L.key===be){if(be=Y.type,be===C){if(L.tag===7){r(P,L.sibling),re=c(L,Y.props.children),re.return=P,P=re;break e}}else if(L.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===Z&&yp(be)===L.type){r(P,L.sibling),re=c(L,Y.props),Li(re,Y),re.return=P,P=re;break e}r(P,L);break}else t(P,L);L=L.sibling}Y.type===C?(re=Nr(Y.props.children,P.mode,re,Y.key),re.return=P,P=re):(re=Xo(Y.type,Y.key,Y.props,null,P.mode,re),Li(re,Y),re.return=P,P=re)}return x(P);case S:e:{for(be=Y.key;L!==null;){if(L.key===be)if(L.tag===4&&L.stateNode.containerInfo===Y.containerInfo&&L.stateNode.implementation===Y.implementation){r(P,L.sibling),re=c(L,Y.children||[]),re.return=P,P=re;break e}else{r(P,L);break}else t(P,L);L=L.sibling}re=vc(Y,P.mode,re),re.return=P,P=re}return x(P);case Z:return be=Y._init,Y=be(Y._payload),ut(P,L,Y,re)}if(ue(Y))return ze(P,L,Y,re);if(J(Y)){if(be=J(Y),typeof be!="function")throw Error(i(150));return Y=be.call(Y),Me(P,L,Y,re)}if(typeof Y.then=="function")return ut(P,L,fs(Y),re);if(Y.$$typeof===k)return ut(P,L,Jo(P,Y),re);ds(P,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,L!==null&&L.tag===6?(r(P,L.sibling),re=c(L,Y),re.return=P,P=re):(r(P,L),re=gc(Y,P.mode,re),re.return=P,P=re),x(P)):r(P,L)}return function(P,L,Y,re){try{Di=0;var be=ut(P,L,Y,re);return xl=null,be}catch(Re){if(Re===_i||Re===es)throw Re;var Ke=on(29,Re,null,P.mode);return Ke.lanes=re,Ke.return=P,Ke}finally{}}}var wl=bp(!0),xp=bp(!1),Nn=F(null),Fn=null;function Pa(e){var t=e.alternate;K(Mt,Mt.current&1),K(Nn,e),Fn===null&&(t===null||gl.current!==null||t.memoizedState!==null)&&(Fn=e)}function wp(e){if(e.tag===22){if(K(Mt,Mt.current),K(Nn,e),Fn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Fn=e)}}else Ha()}function Ha(){K(Mt,Mt.current),K(Nn,Nn.current)}function pa(e){U(Nn),Fn===e&&(Fn=null),U(Mt)}var Mt=F(0);function hs(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||Bf(r)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Zc(e,t,r,o){t=e.memoizedState,r=r(o,t),r=r==null?t:v({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Ic={enqueueSetState:function(e,t,r){e=e._reactInternals;var o=fn(),c=ka(o);c.payload=t,r!=null&&(c.callback=r),t=za(e,c,o),t!==null&&(dn(t,e,o),Ni(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var o=fn(),c=ka(o);c.tag=1,c.payload=t,r!=null&&(c.callback=r),t=za(e,c,o),t!==null&&(dn(t,e,o),Ni(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=fn(),o=ka(r);o.tag=2,t!=null&&(o.callback=t),t=za(e,o,r),t!==null&&(dn(t,e,r),Ni(t,e,r))}};function Sp(e,t,r,o,c,d,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,d,x):t.prototype&&t.prototype.isPureReactComponent?!gi(r,o)||!gi(c,d):!0}function Ep(e,t,r,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,o),t.state!==e&&Ic.enqueueReplaceState(t,t.state,null)}function kr(e,t){var r=t;if("ref"in t){r={};for(var o in t)o!=="ref"&&(r[o]=t[o])}if(e=e.defaultProps){r===t&&(r=v({},r));for(var c in e)r[c]===void 0&&(r[c]=e[c])}return r}var ms=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function _p(e){ms(e)}function Cp(e){console.error(e)}function Np(e){ms(e)}function ps(e,t){try{var r=e.onUncaughtError;r(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function Rp(e,t,r){try{var o=e.onCaughtError;o(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Jc(e,t,r){return r=ka(r),r.tag=3,r.payload={element:null},r.callback=function(){ps(e,t)},r}function jp(e){return e=ka(e),e.tag=3,e}function Op(e,t,r,o){var c=r.type.getDerivedStateFromError;if(typeof c=="function"){var d=o.value;e.payload=function(){return c(d)},e.callback=function(){Rp(t,r,o)}}var x=r.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){Rp(t,r,o),typeof c!="function"&&(Fa===null?Fa=new Set([this]):Fa.add(this));var E=o.stack;this.componentDidCatch(o.value,{componentStack:E!==null?E:""})})}function X1(e,t,r,o,c){if(r.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=r.alternate,t!==null&&wi(t,r,c,!0),r=Nn.current,r!==null){switch(r.tag){case 13:return Fn===null?Ef():r.alternate===null&&Et===0&&(Et=3),r.flags&=-257,r.flags|=65536,r.lanes=c,o===Rc?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([o]):t.add(o),Cf(e,o,c)),!1;case 22:return r.flags|=65536,o===Rc?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([o]):r.add(o)),Cf(e,o,c)),!1}throw Error(i(435,r.tag))}return Cf(e,o,c),Ef(),!1}if(tt)return t=Nn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,o!==xc&&(e=Error(i(422),{cause:o}),xi(Sn(e,r)))):(o!==xc&&(t=Error(i(423),{cause:o}),xi(Sn(t,r))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,o=Sn(o,r),c=Jc(e.stateNode,o,c),Ac(e,c),Et!==4&&(Et=2)),!1;var d=Error(i(520),{cause:o});if(d=Sn(d,r),$i===null?$i=[d]:$i.push(d),Et!==4&&(Et=2),t===null)return!0;o=Sn(o,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=c&-c,r.lanes|=e,e=Jc(r.stateNode,o,e),Ac(r,e),!1;case 1:if(t=r.type,d=r.stateNode,(r.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Fa===null||!Fa.has(d))))return r.flags|=65536,c&=-c,r.lanes|=c,c=jp(c),Op(c,e,r,o),Ac(r,c),!1}r=r.return}while(r!==null);return!1}var Ap=Error(i(461)),Lt=!1;function Ht(e,t,r,o){t.child=e===null?xp(t,null,r,o):wl(t,e.child,r,o)}function Tp(e,t,r,o,c){r=r.render;var d=t.ref;if("ref"in o){var x={};for(var E in o)E!=="ref"&&(x[E]=o[E])}else x=o;return Mr(t),o=kc(e,t,r,x,d,c),E=zc(),e!==null&&!Lt?(Uc(e,t,c),ga(e,t,c)):(tt&&E&&yc(t),t.flags|=1,Ht(e,t,o,c),t.child)}function Mp(e,t,r,o,c){if(e===null){var d=r.type;return typeof d=="function"&&!pc(d)&&d.defaultProps===void 0&&r.compare===null?(t.tag=15,t.type=d,Dp(e,t,d,o,c)):(e=Xo(r.type,null,o,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!of(e,c)){var x=d.memoizedProps;if(r=r.compare,r=r!==null?r:gi,r(x,o)&&e.ref===t.ref)return ga(e,t,c)}return t.flags|=1,e=ua(d,o),e.ref=t.ref,e.return=t,t.child=e}function Dp(e,t,r,o,c){if(e!==null){var d=e.memoizedProps;if(gi(d,o)&&e.ref===t.ref)if(Lt=!1,t.pendingProps=o=d,of(e,c))(e.flags&131072)!==0&&(Lt=!0);else return t.lanes=e.lanes,ga(e,t,c)}return Wc(e,t,r,o,c)}function Lp(e,t,r){var o=t.pendingProps,c=o.children,d=e!==null?e.memoizedState:null;if(o.mode==="hidden"){if((t.flags&128)!==0){if(o=d!==null?d.baseLanes|r:r,e!==null){for(c=t.child=e.child,d=0;c!==null;)d=d|c.lanes|c.childLanes,c=c.sibling;t.childLanes=d&~o}else t.childLanes=0,t.child=null;return kp(e,t,o,r)}if((r&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Wo(t,d!==null?d.cachePool:null),d!==null?Dm(t,d):Mc(),wp(t);else return t.lanes=t.childLanes=536870912,kp(e,t,d!==null?d.baseLanes|r:r,r)}else d!==null?(Wo(t,d.cachePool),Dm(t,d),Ha(),t.memoizedState=null):(e!==null&&Wo(t,null),Mc(),Ha());return Ht(e,t,c,r),t.child}function kp(e,t,r,o){var c=Nc();return c=c===null?null:{parent:Tt._currentValue,pool:c},t.memoizedState={baseLanes:r,cachePool:c},e!==null&&Wo(t,null),Mc(),wp(t),e!==null&&wi(e,t,o,!0),null}function gs(e,t){var r=t.ref;if(r===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(i(284));(e===null||e.ref!==r)&&(t.flags|=4194816)}}function Wc(e,t,r,o,c){return Mr(t),r=kc(e,t,r,o,void 0,c),o=zc(),e!==null&&!Lt?(Uc(e,t,c),ga(e,t,c)):(tt&&o&&yc(t),t.flags|=1,Ht(e,t,r,c),t.child)}function zp(e,t,r,o,c,d){return Mr(t),t.updateQueue=null,r=km(t,o,r,c),Lm(e),o=zc(),e!==null&&!Lt?(Uc(e,t,d),ga(e,t,d)):(tt&&o&&yc(t),t.flags|=1,Ht(e,t,r,d),t.child)}function Up(e,t,r,o,c){if(Mr(t),t.stateNode===null){var d=fl,x=r.contextType;typeof x=="object"&&x!==null&&(d=qt(x)),d=new r(o,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Ic,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=o,d.state=t.memoizedState,d.refs={},jc(t),x=r.contextType,d.context=typeof x=="object"&&x!==null?qt(x):fl,d.state=t.memoizedState,x=r.getDerivedStateFromProps,typeof x=="function"&&(Zc(t,r,x,o),d.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(x=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),x!==d.state&&Ic.enqueueReplaceState(d,d.state,null),ji(t,o,d,c),Ri(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),o=!0}else if(e===null){d=t.stateNode;var E=t.memoizedProps,T=kr(r,E);d.props=T;var q=d.context,ee=r.contextType;x=fl,typeof ee=="object"&&ee!==null&&(x=qt(ee));var se=r.getDerivedStateFromProps;ee=typeof se=="function"||typeof d.getSnapshotBeforeUpdate=="function",E=t.pendingProps!==E,ee||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(E||q!==x)&&Ep(t,d,o,x),La=!1;var G=t.memoizedState;d.state=G,ji(t,o,d,c),Ri(),q=t.memoizedState,E||G!==q||La?(typeof se=="function"&&(Zc(t,r,se,o),q=t.memoizedState),(T=La||Sp(t,r,T,o,G,q,x))?(ee||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=q),d.props=o,d.state=q,d.context=x,o=T):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{d=t.stateNode,Oc(e,t),x=t.memoizedProps,ee=kr(r,x),d.props=ee,se=t.pendingProps,G=d.context,q=r.contextType,T=fl,typeof q=="object"&&q!==null&&(T=qt(q)),E=r.getDerivedStateFromProps,(q=typeof E=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(x!==se||G!==T)&&Ep(t,d,o,T),La=!1,G=t.memoizedState,d.state=G,ji(t,o,d,c),Ri();var X=t.memoizedState;x!==se||G!==X||La||e!==null&&e.dependencies!==null&&Io(e.dependencies)?(typeof E=="function"&&(Zc(t,r,E,o),X=t.memoizedState),(ee=La||Sp(t,r,ee,o,G,X,T)||e!==null&&e.dependencies!==null&&Io(e.dependencies))?(q||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(o,X,T),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(o,X,T)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||x===e.memoizedProps&&G===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&G===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=X),d.props=o,d.state=X,d.context=T,o=ee):(typeof d.componentDidUpdate!="function"||x===e.memoizedProps&&G===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&G===e.memoizedState||(t.flags|=1024),o=!1)}return d=o,gs(e,t),o=(t.flags&128)!==0,d||o?(d=t.stateNode,r=o&&typeof r.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&o?(t.child=wl(t,e.child,null,c),t.child=wl(t,null,r,c)):Ht(e,t,r,c),t.memoizedState=d.state,e=t.child):e=ga(e,t,c),e}function Pp(e,t,r,o){return bi(),t.flags|=256,Ht(e,t,r,o),t.child}var ef={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function tf(e){return{baseLanes:e,cachePool:Cm()}}function nf(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=Rn),e}function Hp(e,t,r){var o=t.pendingProps,c=!1,d=(t.flags&128)!==0,x;if((x=d)||(x=e!==null&&e.memoizedState===null?!1:(Mt.current&2)!==0),x&&(c=!0,t.flags&=-129),x=(t.flags&32)!==0,t.flags&=-33,e===null){if(tt){if(c?Pa(t):Ha(),tt){var E=St,T;if(T=E){e:{for(T=E,E=qn;T.nodeType!==8;){if(!E){E=null;break e}if(T=kn(T.nextSibling),T===null){E=null;break e}}E=T}E!==null?(t.memoizedState={dehydrated:E,treeContext:Rr!==null?{id:ca,overflow:fa}:null,retryLane:536870912,hydrationErrors:null},T=on(18,null,null,0),T.stateNode=E,T.return=t,t.child=T,Xt=t,St=null,T=!0):T=!1}T||Ar(t)}if(E=t.memoizedState,E!==null&&(E=E.dehydrated,E!==null))return Bf(E)?t.lanes=32:t.lanes=536870912,null;pa(t)}return E=o.children,o=o.fallback,c?(Ha(),c=t.mode,E=vs({mode:"hidden",children:E},c),o=Nr(o,c,r,null),E.return=t,o.return=t,E.sibling=o,t.child=E,c=t.child,c.memoizedState=tf(r),c.childLanes=nf(e,x,r),t.memoizedState=ef,o):(Pa(t),af(t,E))}if(T=e.memoizedState,T!==null&&(E=T.dehydrated,E!==null)){if(d)t.flags&256?(Pa(t),t.flags&=-257,t=rf(e,t,r)):t.memoizedState!==null?(Ha(),t.child=e.child,t.flags|=128,t=null):(Ha(),c=o.fallback,E=t.mode,o=vs({mode:"visible",children:o.children},E),c=Nr(c,E,r,null),c.flags|=2,o.return=t,c.return=t,o.sibling=c,t.child=o,wl(t,e.child,null,r),o=t.child,o.memoizedState=tf(r),o.childLanes=nf(e,x,r),t.memoizedState=ef,t=c);else if(Pa(t),Bf(E)){if(x=E.nextSibling&&E.nextSibling.dataset,x)var q=x.dgst;x=q,o=Error(i(419)),o.stack="",o.digest=x,xi({value:o,source:null,stack:null}),t=rf(e,t,r)}else if(Lt||wi(e,t,r,!1),x=(r&e.childLanes)!==0,Lt||x){if(x=ht,x!==null&&(o=r&-r,o=(o&42)!==0?1:oi(o),o=(o&(x.suspendedLanes|r))!==0?0:o,o!==0&&o!==T.retryLane))throw T.retryLane=o,cl(e,o),dn(x,e,o),Ap;E.data==="$?"||Ef(),t=rf(e,t,r)}else E.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,St=kn(E.nextSibling),Xt=t,tt=!0,Or=null,qn=!1,e!==null&&(_n[Cn++]=ca,_n[Cn++]=fa,_n[Cn++]=Rr,ca=e.id,fa=e.overflow,Rr=t),t=af(t,o.children),t.flags|=4096);return t}return c?(Ha(),c=o.fallback,E=t.mode,T=e.child,q=T.sibling,o=ua(T,{mode:"hidden",children:o.children}),o.subtreeFlags=T.subtreeFlags&65011712,q!==null?c=ua(q,c):(c=Nr(c,E,r,null),c.flags|=2),c.return=t,o.return=t,o.sibling=c,t.child=o,o=c,c=t.child,E=e.child.memoizedState,E===null?E=tf(r):(T=E.cachePool,T!==null?(q=Tt._currentValue,T=T.parent!==q?{parent:q,pool:q}:T):T=Cm(),E={baseLanes:E.baseLanes|r,cachePool:T}),c.memoizedState=E,c.childLanes=nf(e,x,r),t.memoizedState=ef,o):(Pa(t),r=e.child,e=r.sibling,r=ua(r,{mode:"visible",children:o.children}),r.return=t,r.sibling=null,e!==null&&(x=t.deletions,x===null?(t.deletions=[e],t.flags|=16):x.push(e)),t.child=r,t.memoizedState=null,r)}function af(e,t){return t=vs({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function vs(e,t){return e=on(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function rf(e,t,r){return wl(t,e.child,null,r),e=af(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Bp(e,t,r){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Sc(e.return,t,r)}function lf(e,t,r,o,c){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:r,tailMode:c}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=o,d.tail=r,d.tailMode=c)}function $p(e,t,r){var o=t.pendingProps,c=o.revealOrder,d=o.tail;if(Ht(e,t,o.children,r),o=Mt.current,(o&2)!==0)o=o&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Bp(e,r,t);else if(e.tag===19)Bp(e,r,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}o&=1}switch(K(Mt,o),c){case"forwards":for(r=t.child,c=null;r!==null;)e=r.alternate,e!==null&&hs(e)===null&&(c=r),r=r.sibling;r=c,r===null?(c=t.child,t.child=null):(c=r.sibling,r.sibling=null),lf(t,!1,c,r,d);break;case"backwards":for(r=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&hs(e)===null){t.child=c;break}e=c.sibling,c.sibling=r,r=c,c=e}lf(t,!0,r,null,d);break;case"together":lf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ga(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),qa|=t.lanes,(r&t.childLanes)===0)if(e!==null){if(wi(e,t,r,!1),(r&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,r=ua(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=ua(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function of(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Io(e)))}function Q1(e,t,r){switch(t.tag){case 3:Le(t,t.stateNode.containerInfo),Da(t,Tt,e.memoizedState.cache),bi();break;case 27:case 5:Je(t);break;case 4:Le(t,t.stateNode.containerInfo);break;case 10:Da(t,t.type,t.memoizedProps.value);break;case 13:var o=t.memoizedState;if(o!==null)return o.dehydrated!==null?(Pa(t),t.flags|=128,null):(r&t.child.childLanes)!==0?Hp(e,t,r):(Pa(t),e=ga(e,t,r),e!==null?e.sibling:null);Pa(t);break;case 19:var c=(e.flags&128)!==0;if(o=(r&t.childLanes)!==0,o||(wi(e,t,r,!1),o=(r&t.childLanes)!==0),c){if(o)return $p(e,t,r);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),K(Mt,Mt.current),o)break;return null;case 22:case 23:return t.lanes=0,Lp(e,t,r);case 24:Da(t,Tt,e.memoizedState.cache)}return ga(e,t,r)}function Vp(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps)Lt=!0;else{if(!of(e,r)&&(t.flags&128)===0)return Lt=!1,Q1(e,t,r);Lt=(e.flags&131072)!==0}else Lt=!1,tt&&(t.flags&1048576)!==0&&ym(t,Zo,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var o=t.elementType,c=o._init;if(o=c(o._payload),t.type=o,typeof o=="function")pc(o)?(e=kr(o,e),t.tag=1,t=Up(null,t,o,e,r)):(t.tag=0,t=Wc(null,t,o,e,r));else{if(o!=null){if(c=o.$$typeof,c===H){t.tag=11,t=Tp(null,t,o,e,r);break e}else if(c===B){t.tag=14,t=Mp(null,t,o,e,r);break e}}throw t=W(o)||o,Error(i(306,t,""))}}return t;case 0:return Wc(e,t,t.type,t.pendingProps,r);case 1:return o=t.type,c=kr(o,t.pendingProps),Up(e,t,o,c,r);case 3:e:{if(Le(t,t.stateNode.containerInfo),e===null)throw Error(i(387));o=t.pendingProps;var d=t.memoizedState;c=d.element,Oc(e,t),ji(t,o,null,r);var x=t.memoizedState;if(o=x.cache,Da(t,Tt,o),o!==d.cache&&Ec(t,[Tt],r,!0),Ri(),o=x.element,d.isDehydrated)if(d={element:o,isDehydrated:!1,cache:x.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=Pp(e,t,o,r);break e}else if(o!==c){c=Sn(Error(i(424)),t),xi(c),t=Pp(e,t,o,r);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(St=kn(e.firstChild),Xt=t,tt=!0,Or=null,qn=!0,r=xp(t,null,o,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(bi(),o===c){t=ga(e,t,r);break e}Ht(e,t,o,r)}t=t.child}return t;case 26:return gs(e,t),e===null?(r=Kg(t.type,null,t.pendingProps,null))?t.memoizedState=r:tt||(r=t.type,e=t.pendingProps,o=Ts(ge.current).createElement(r),o[ce]=t,o[me]=e,$t(o,r,e),He(o),t.stateNode=o):t.memoizedState=Kg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Je(t),e===null&&tt&&(o=t.stateNode=Yg(t.type,t.pendingProps,ge.current),Xt=t,qn=!0,c=St,Xa(t.type)?($f=c,St=kn(o.firstChild)):St=c),Ht(e,t,t.pendingProps.children,r),gs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&tt&&((c=o=St)&&(o=Ew(o,t.type,t.pendingProps,qn),o!==null?(t.stateNode=o,Xt=t,St=kn(o.firstChild),qn=!1,c=!0):c=!1),c||Ar(t)),Je(t),c=t.type,d=t.pendingProps,x=e!==null?e.memoizedProps:null,o=d.children,Uf(c,d)?o=null:x!==null&&Uf(c,x)&&(t.flags|=32),t.memoizedState!==null&&(c=kc(e,t,$1,null,null,r),Zi._currentValue=c),gs(e,t),Ht(e,t,o,r),t.child;case 6:return e===null&&tt&&((e=r=St)&&(r=_w(r,t.pendingProps,qn),r!==null?(t.stateNode=r,Xt=t,St=null,e=!0):e=!1),e||Ar(t)),null;case 13:return Hp(e,t,r);case 4:return Le(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=wl(t,null,o,r):Ht(e,t,o,r),t.child;case 11:return Tp(e,t,t.type,t.pendingProps,r);case 7:return Ht(e,t,t.pendingProps,r),t.child;case 8:return Ht(e,t,t.pendingProps.children,r),t.child;case 12:return Ht(e,t,t.pendingProps.children,r),t.child;case 10:return o=t.pendingProps,Da(t,t.type,o.value),Ht(e,t,o.children,r),t.child;case 9:return c=t.type._context,o=t.pendingProps.children,Mr(t),c=qt(c),o=o(c),t.flags|=1,Ht(e,t,o,r),t.child;case 14:return Mp(e,t,t.type,t.pendingProps,r);case 15:return Dp(e,t,t.type,t.pendingProps,r);case 19:return $p(e,t,r);case 31:return o=t.pendingProps,r=t.mode,o={mode:o.mode,children:o.children},e===null?(r=vs(o,r),r.ref=t.ref,t.child=r,r.return=t,t=r):(r=ua(e.child,o),r.ref=t.ref,t.child=r,r.return=t,t=r),t;case 22:return Lp(e,t,r);case 24:return Mr(t),o=qt(Tt),e===null?(c=Nc(),c===null&&(c=ht,d=_c(),c.pooledCache=d,d.refCount++,d!==null&&(c.pooledCacheLanes|=r),c=d),t.memoizedState={parent:o,cache:c},jc(t),Da(t,Tt,c)):((e.lanes&r)!==0&&(Oc(e,t),ji(t,null,null,r),Ri()),c=e.memoizedState,d=t.memoizedState,c.parent!==o?(c={parent:o,cache:o},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),Da(t,Tt,o)):(o=d.cache,Da(t,Tt,o),o!==c.cache&&Ec(t,[Tt],r,!0))),Ht(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function va(e){e.flags|=4}function Yp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ig(t)){if(t=Nn.current,t!==null&&((We&4194048)===We?Fn!==null:(We&62914560)!==We&&(We&536870912)===0||t!==Fn))throw Ci=Rc,Nm;e.flags|=8192}}function ys(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Mo():536870912,e.lanes|=t,Cl|=t)}function ki(e,t){if(!tt)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function bt(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,o=0;if(t)for(var c=e.child;c!==null;)r|=c.lanes|c.childLanes,o|=c.subtreeFlags&65011712,o|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)r|=c.lanes|c.childLanes,o|=c.subtreeFlags,o|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=o,e.childLanes=r,t}function Z1(e,t,r){var o=t.pendingProps;switch(bc(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bt(t),null;case 1:return bt(t),null;case 3:return r=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),ha(Tt),qe(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(yi(t)?va(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,wm())),bt(t),null;case 26:return r=t.memoizedState,e===null?(va(t),r!==null?(bt(t),Yp(t,r)):(bt(t),t.flags&=-16777217)):r?r!==e.memoizedState?(va(t),bt(t),Yp(t,r)):(bt(t),t.flags&=-16777217):(e.memoizedProps!==o&&va(t),bt(t),t.flags&=-16777217),null;case 27:At(t),r=ge.current;var c=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==o&&va(t);else{if(!o){if(t.stateNode===null)throw Error(i(166));return bt(t),null}e=ae.current,yi(t)?bm(t):(e=Yg(c,o,r),t.stateNode=e,va(t))}return bt(t),null;case 5:if(At(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&va(t);else{if(!o){if(t.stateNode===null)throw Error(i(166));return bt(t),null}if(e=ae.current,yi(t))bm(t);else{switch(c=Ts(ge.current),e){case 1:e=c.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:e=c.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":e=c.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":e=c.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":e=c.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof o.is=="string"?c.createElement("select",{is:o.is}):c.createElement("select"),o.multiple?e.multiple=!0:o.size&&(e.size=o.size);break;default:e=typeof o.is=="string"?c.createElement(r,{is:o.is}):c.createElement(r)}}e[ce]=t,e[me]=o;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)e.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=e;e:switch($t(e,r,o),r){case"button":case"input":case"select":case"textarea":e=!!o.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&va(t)}}return bt(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&va(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error(i(166));if(e=ge.current,yi(t)){if(e=t.stateNode,r=t.memoizedProps,o=null,c=Xt,c!==null)switch(c.tag){case 27:case 5:o=c.memoizedProps}e[ce]=t,e=!!(e.nodeValue===r||o!==null&&o.suppressHydrationWarning===!0||zg(e.nodeValue,r)),e||Ar(t)}else e=Ts(e).createTextNode(o),e[ce]=t,t.stateNode=e}return bt(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=yi(t),o!==null&&o.dehydrated!==null){if(e===null){if(!c)throw Error(i(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(i(317));c[ce]=t}else bi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;bt(t),c=!1}else c=wm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(pa(t),t):(pa(t),null)}if(pa(t),(t.flags&128)!==0)return t.lanes=r,t;if(r=o!==null,e=e!==null&&e.memoizedState!==null,r){o=t.child,c=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(c=o.alternate.memoizedState.cachePool.pool);var d=null;o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),d!==c&&(o.flags|=2048)}return r!==e&&r&&(t.child.flags|=8192),ys(t,t.updateQueue),bt(t),null;case 4:return qe(),e===null&&Mf(t.stateNode.containerInfo),bt(t),null;case 10:return ha(t.type),bt(t),null;case 19:if(U(Mt),c=t.memoizedState,c===null)return bt(t),null;if(o=(t.flags&128)!==0,d=c.rendering,d===null)if(o)ki(c,!1);else{if(Et!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=hs(e),d!==null){for(t.flags|=128,ki(c,!1),e=d.updateQueue,t.updateQueue=e,ys(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)vm(r,e),r=r.sibling;return K(Mt,Mt.current&1|2),t.child}e=e.sibling}c.tail!==null&&he()>ws&&(t.flags|=128,o=!0,ki(c,!1),t.lanes=4194304)}else{if(!o)if(e=hs(d),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,ys(t,e),ki(c,!0),c.tail===null&&c.tailMode==="hidden"&&!d.alternate&&!tt)return bt(t),null}else 2*he()-c.renderingStartTime>ws&&r!==536870912&&(t.flags|=128,o=!0,ki(c,!1),t.lanes=4194304);c.isBackwards?(d.sibling=t.child,t.child=d):(e=c.last,e!==null?e.sibling=d:t.child=d,c.last=d)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=he(),t.sibling=null,e=Mt.current,K(Mt,o?e&1|2:e&1),t):(bt(t),null);case 22:case 23:return pa(t),Dc(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(r&536870912)!==0&&(t.flags&128)===0&&(bt(t),t.subtreeFlags&6&&(t.flags|=8192)):bt(t),r=t.updateQueue,r!==null&&ys(t,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==r&&(t.flags|=2048),e!==null&&U(Dr),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ha(Tt),bt(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function I1(e,t){switch(bc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ha(Tt),qe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return At(t),null;case 13:if(pa(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));bi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(Mt),null;case 4:return qe(),null;case 10:return ha(t.type),null;case 22:case 23:return pa(t),Dc(),e!==null&&U(Dr),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ha(Tt),null;case 25:return null;default:return null}}function qp(e,t){switch(bc(t),t.tag){case 3:ha(Tt),qe();break;case 26:case 27:case 5:At(t);break;case 4:qe();break;case 13:pa(t);break;case 19:U(Mt);break;case 10:ha(t.type);break;case 22:case 23:pa(t),Dc(),e!==null&&U(Dr);break;case 24:ha(Tt)}}function zi(e,t){try{var r=t.updateQueue,o=r!==null?r.lastEffect:null;if(o!==null){var c=o.next;r=c;do{if((r.tag&e)===e){o=void 0;var d=r.create,x=r.inst;o=d(),x.destroy=o}r=r.next}while(r!==c)}}catch(E){ct(t,t.return,E)}}function Ba(e,t,r){try{var o=t.updateQueue,c=o!==null?o.lastEffect:null;if(c!==null){var d=c.next;o=d;do{if((o.tag&e)===e){var x=o.inst,E=x.destroy;if(E!==void 0){x.destroy=void 0,c=t;var T=r,q=E;try{q()}catch(ee){ct(c,T,ee)}}}o=o.next}while(o!==d)}}catch(ee){ct(t,t.return,ee)}}function Fp(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;try{Mm(t,r)}catch(o){ct(e,e.return,o)}}}function Kp(e,t,r){r.props=kr(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(o){ct(e,t,o)}}function Ui(e,t){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof r=="function"?e.refCleanup=r(o):r.current=o}}catch(c){ct(e,t,c)}}function Kn(e,t){var r=e.ref,o=e.refCleanup;if(r!==null)if(typeof o=="function")try{o()}catch(c){ct(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(c){ct(e,t,c)}else r.current=null}function Gp(e){var t=e.type,r=e.memoizedProps,o=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&o.focus();break e;case"img":r.src?o.src=r.src:r.srcSet&&(o.srcset=r.srcSet)}}catch(c){ct(e,e.return,c)}}function sf(e,t,r){try{var o=e.stateNode;yw(o,e.type,r,t),o[me]=t}catch(c){ct(e,e.return,c)}}function Xp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Xa(e.type)||e.tag===4}function uf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Xp(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&&Xa(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 cf(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,t):(t=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,t.appendChild(e),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=As));else if(o!==4&&(o===27&&Xa(e.type)&&(r=e.stateNode,t=null),e=e.child,e!==null))for(cf(e,t,r),e=e.sibling;e!==null;)cf(e,t,r),e=e.sibling}function bs(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(o!==4&&(o===27&&Xa(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(bs(e,t,r),e=e.sibling;e!==null;)bs(e,t,r),e=e.sibling}function Qp(e){var t=e.stateNode,r=e.memoizedProps;try{for(var o=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);$t(t,o,r),t[ce]=e,t[me]=r}catch(d){ct(e,e.return,d)}}var ya=!1,Nt=!1,ff=!1,Zp=typeof WeakSet=="function"?WeakSet:Set,kt=null;function J1(e,t){if(e=e.containerInfo,kf=Us,e=om(e),sc(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var o=r.getSelection&&r.getSelection();if(o&&o.rangeCount!==0){r=o.anchorNode;var c=o.anchorOffset,d=o.focusNode;o=o.focusOffset;try{r.nodeType,d.nodeType}catch{r=null;break e}var x=0,E=-1,T=-1,q=0,ee=0,se=e,G=null;t:for(;;){for(var X;se!==r||c!==0&&se.nodeType!==3||(E=x+c),se!==d||o!==0&&se.nodeType!==3||(T=x+o),se.nodeType===3&&(x+=se.nodeValue.length),(X=se.firstChild)!==null;)G=se,se=X;for(;;){if(se===e)break t;if(G===r&&++q===c&&(E=x),G===d&&++ee===o&&(T=x),(X=se.nextSibling)!==null)break;se=G,G=se.parentNode}se=X}r=E===-1||T===-1?null:{start:E,end:T}}else r=null}r=r||{start:0,end:0}}else r=null;for(zf={focusedElem:e,selectionRange:r},Us=!1,kt=t;kt!==null;)if(t=kt,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,kt=e;else for(;kt!==null;){switch(t=kt,d=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,r=t,c=d.memoizedProps,d=d.memoizedState,o=r.stateNode;try{var ze=kr(r.type,c,r.elementType===r.type);e=o.getSnapshotBeforeUpdate(ze,d),o.__reactInternalSnapshotBeforeUpdate=e}catch(Me){ct(r,r.return,Me)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,r=e.nodeType,r===9)Hf(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Hf(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(i(163))}if(e=t.sibling,e!==null){e.return=t.return,kt=e;break}kt=t.return}}function Ip(e,t,r){var o=r.flags;switch(r.tag){case 0:case 11:case 15:$a(e,r),o&4&&zi(5,r);break;case 1:if($a(e,r),o&4)if(e=r.stateNode,t===null)try{e.componentDidMount()}catch(x){ct(r,r.return,x)}else{var c=kr(r.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(x){ct(r,r.return,x)}}o&64&&Fp(r),o&512&&Ui(r,r.return);break;case 3:if($a(e,r),o&64&&(e=r.updateQueue,e!==null)){if(t=null,r.child!==null)switch(r.child.tag){case 27:case 5:t=r.child.stateNode;break;case 1:t=r.child.stateNode}try{Mm(e,t)}catch(x){ct(r,r.return,x)}}break;case 27:t===null&&o&4&&Qp(r);case 26:case 5:$a(e,r),t===null&&o&4&&Gp(r),o&512&&Ui(r,r.return);break;case 12:$a(e,r);break;case 13:$a(e,r),o&4&&eg(e,r),o&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=ow.bind(null,r),Cw(e,r))));break;case 22:if(o=r.memoizedState!==null||ya,!o){t=t!==null&&t.memoizedState!==null||Nt,c=ya;var d=Nt;ya=o,(Nt=t)&&!d?Va(e,r,(r.subtreeFlags&8772)!==0):$a(e,r),ya=c,Nt=d}break;case 30:break;default:$a(e,r)}}function Jp(e){var t=e.alternate;t!==null&&(e.alternate=null,Jp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ne(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 gt=null,Wt=!1;function ba(e,t,r){for(r=r.child;r!==null;)Wp(e,t,r),r=r.sibling}function Wp(e,t,r){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(Zt,r)}catch{}switch(r.tag){case 26:Nt||Kn(r,t),ba(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:Nt||Kn(r,t);var o=gt,c=Wt;Xa(r.type)&&(gt=r.stateNode,Wt=!1),ba(e,t,r),Ki(r.stateNode),gt=o,Wt=c;break;case 5:Nt||Kn(r,t);case 6:if(o=gt,c=Wt,gt=null,ba(e,t,r),gt=o,Wt=c,gt!==null)if(Wt)try{(gt.nodeType===9?gt.body:gt.nodeName==="HTML"?gt.ownerDocument.body:gt).removeChild(r.stateNode)}catch(d){ct(r,t,d)}else try{gt.removeChild(r.stateNode)}catch(d){ct(r,t,d)}break;case 18:gt!==null&&(Wt?(e=gt,$g(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),eo(e)):$g(gt,r.stateNode));break;case 4:o=gt,c=Wt,gt=r.stateNode.containerInfo,Wt=!0,ba(e,t,r),gt=o,Wt=c;break;case 0:case 11:case 14:case 15:Nt||Ba(2,r,t),Nt||Ba(4,r,t),ba(e,t,r);break;case 1:Nt||(Kn(r,t),o=r.stateNode,typeof o.componentWillUnmount=="function"&&Kp(r,t,o)),ba(e,t,r);break;case 21:ba(e,t,r);break;case 22:Nt=(o=Nt)||r.memoizedState!==null,ba(e,t,r),Nt=o;break;default:ba(e,t,r)}}function eg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{eo(e)}catch(r){ct(t,t.return,r)}}function W1(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Zp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Zp),t;default:throw Error(i(435,e.tag))}}function df(e,t){var r=W1(e);t.forEach(function(o){var c=sw.bind(null,e,o);r.has(o)||(r.add(o),o.then(c,c))})}function sn(e,t){var r=t.deletions;if(r!==null)for(var o=0;o<r.length;o++){var c=r[o],d=e,x=t,E=x;e:for(;E!==null;){switch(E.tag){case 27:if(Xa(E.type)){gt=E.stateNode,Wt=!1;break e}break;case 5:gt=E.stateNode,Wt=!1;break e;case 3:case 4:gt=E.stateNode.containerInfo,Wt=!0;break e}E=E.return}if(gt===null)throw Error(i(160));Wp(d,x,c),gt=null,Wt=!1,d=c.alternate,d!==null&&(d.return=null),c.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)tg(t,e),t=t.sibling}var Ln=null;function tg(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:sn(t,e),un(e),o&4&&(Ba(3,e,e.return),zi(3,e),Ba(5,e,e.return));break;case 1:sn(t,e),un(e),o&512&&(Nt||r===null||Kn(r,r.return)),o&64&&ya&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?o:r.concat(o))));break;case 26:var c=Ln;if(sn(t,e),un(e),o&512&&(Nt||r===null||Kn(r,r.return)),o&4){var d=r!==null?r.memoizedState:null;if(o=e.memoizedState,r===null)if(o===null)if(e.stateNode===null){e:{o=e.type,r=e.memoizedProps,c=c.ownerDocument||c;t:switch(o){case"title":d=c.getElementsByTagName("title")[0],(!d||d[_e]||d[ce]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=c.createElement(o),c.head.insertBefore(d,c.querySelector("head > title"))),$t(d,o,r),d[ce]=e,He(d),o=d;break e;case"link":var x=Qg("link","href",c).get(o+(r.href||""));if(x){for(var E=0;E<x.length;E++)if(d=x[E],d.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&d.getAttribute("rel")===(r.rel==null?null:r.rel)&&d.getAttribute("title")===(r.title==null?null:r.title)&&d.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){x.splice(E,1);break t}}d=c.createElement(o),$t(d,o,r),c.head.appendChild(d);break;case"meta":if(x=Qg("meta","content",c).get(o+(r.content||""))){for(E=0;E<x.length;E++)if(d=x[E],d.getAttribute("content")===(r.content==null?null:""+r.content)&&d.getAttribute("name")===(r.name==null?null:r.name)&&d.getAttribute("property")===(r.property==null?null:r.property)&&d.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&d.getAttribute("charset")===(r.charSet==null?null:r.charSet)){x.splice(E,1);break t}}d=c.createElement(o),$t(d,o,r),c.head.appendChild(d);break;default:throw Error(i(468,o))}d[ce]=e,He(d),o=d}e.stateNode=o}else Zg(c,e.type,e.stateNode);else e.stateNode=Xg(c,o,e.memoizedProps);else d!==o?(d===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):d.count--,o===null?Zg(c,e.type,e.stateNode):Xg(c,o,e.memoizedProps)):o===null&&e.stateNode!==null&&sf(e,e.memoizedProps,r.memoizedProps)}break;case 27:sn(t,e),un(e),o&512&&(Nt||r===null||Kn(r,r.return)),r!==null&&o&4&&sf(e,e.memoizedProps,r.memoizedProps);break;case 5:if(sn(t,e),un(e),o&512&&(Nt||r===null||Kn(r,r.return)),e.flags&32){c=e.stateNode;try{al(c,"")}catch(X){ct(e,e.return,X)}}o&4&&e.stateNode!=null&&(c=e.memoizedProps,sf(e,c,r!==null?r.memoizedProps:c)),o&1024&&(ff=!0);break;case 6:if(sn(t,e),un(e),o&4){if(e.stateNode===null)throw Error(i(162));o=e.memoizedProps,r=e.stateNode;try{r.nodeValue=o}catch(X){ct(e,e.return,X)}}break;case 3:if(Ls=null,c=Ln,Ln=Ms(t.containerInfo),sn(t,e),Ln=c,un(e),o&4&&r!==null&&r.memoizedState.isDehydrated)try{eo(t.containerInfo)}catch(X){ct(e,e.return,X)}ff&&(ff=!1,ng(e));break;case 4:o=Ln,Ln=Ms(e.stateNode.containerInfo),sn(t,e),un(e),Ln=o;break;case 12:sn(t,e),un(e);break;case 13:sn(t,e),un(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(yf=he()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,df(e,o)));break;case 22:c=e.memoizedState!==null;var T=r!==null&&r.memoizedState!==null,q=ya,ee=Nt;if(ya=q||c,Nt=ee||T,sn(t,e),Nt=ee,ya=q,un(e),o&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(r===null||T||ya||Nt||zr(e)),r=null,t=e;;){if(t.tag===5||t.tag===26){if(r===null){T=r=t;try{if(d=T.stateNode,c)x=d.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{E=T.stateNode;var se=T.memoizedProps.style,G=se!=null&&se.hasOwnProperty("display")?se.display:null;E.style.display=G==null||typeof G=="boolean"?"":(""+G).trim()}}catch(X){ct(T,T.return,X)}}}else if(t.tag===6){if(r===null){T=t;try{T.stateNode.nodeValue=c?"":T.memoizedProps}catch(X){ct(T,T.return,X)}}}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;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}o&4&&(o=e.updateQueue,o!==null&&(r=o.retryQueue,r!==null&&(o.retryQueue=null,df(e,r))));break;case 19:sn(t,e),un(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,df(e,o)));break;case 30:break;case 21:break;default:sn(t,e),un(e)}}function un(e){var t=e.flags;if(t&2){try{for(var r,o=e.return;o!==null;){if(Xp(o)){r=o;break}o=o.return}if(r==null)throw Error(i(160));switch(r.tag){case 27:var c=r.stateNode,d=uf(e);bs(e,d,c);break;case 5:var x=r.stateNode;r.flags&32&&(al(x,""),r.flags&=-33);var E=uf(e);bs(e,E,x);break;case 3:case 4:var T=r.stateNode.containerInfo,q=uf(e);cf(e,q,T);break;default:throw Error(i(161))}}catch(ee){ct(e,e.return,ee)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ng(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ng(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function $a(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Ip(e,t.alternate,t),t=t.sibling}function zr(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ba(4,t,t.return),zr(t);break;case 1:Kn(t,t.return);var r=t.stateNode;typeof r.componentWillUnmount=="function"&&Kp(t,t.return,r),zr(t);break;case 27:Ki(t.stateNode);case 26:case 5:Kn(t,t.return),zr(t);break;case 22:t.memoizedState===null&&zr(t);break;case 30:zr(t);break;default:zr(t)}e=e.sibling}}function Va(e,t,r){for(r=r&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var o=t.alternate,c=e,d=t,x=d.flags;switch(d.tag){case 0:case 11:case 15:Va(c,d,r),zi(4,d);break;case 1:if(Va(c,d,r),o=d,c=o.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(q){ct(o,o.return,q)}if(o=d,c=o.updateQueue,c!==null){var E=o.stateNode;try{var T=c.shared.hiddenCallbacks;if(T!==null)for(c.shared.hiddenCallbacks=null,c=0;c<T.length;c++)Tm(T[c],E)}catch(q){ct(o,o.return,q)}}r&&x&64&&Fp(d),Ui(d,d.return);break;case 27:Qp(d);case 26:case 5:Va(c,d,r),r&&o===null&&x&4&&Gp(d),Ui(d,d.return);break;case 12:Va(c,d,r);break;case 13:Va(c,d,r),r&&x&4&&eg(c,d);break;case 22:d.memoizedState===null&&Va(c,d,r),Ui(d,d.return);break;case 30:break;default:Va(c,d,r)}t=t.sibling}}function hf(e,t){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&Si(r))}function mf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Si(e))}function Gn(e,t,r,o){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ag(e,t,r,o),t=t.sibling}function ag(e,t,r,o){var c=t.flags;switch(t.tag){case 0:case 11:case 15:Gn(e,t,r,o),c&2048&&zi(9,t);break;case 1:Gn(e,t,r,o);break;case 3:Gn(e,t,r,o),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Si(e)));break;case 12:if(c&2048){Gn(e,t,r,o),e=t.stateNode;try{var d=t.memoizedProps,x=d.id,E=d.onPostCommit;typeof E=="function"&&E(x,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){ct(t,t.return,T)}}else Gn(e,t,r,o);break;case 13:Gn(e,t,r,o);break;case 23:break;case 22:d=t.stateNode,x=t.alternate,t.memoizedState!==null?d._visibility&2?Gn(e,t,r,o):Pi(e,t):d._visibility&2?Gn(e,t,r,o):(d._visibility|=2,Sl(e,t,r,o,(t.subtreeFlags&10256)!==0)),c&2048&&hf(x,t);break;case 24:Gn(e,t,r,o),c&2048&&mf(t.alternate,t);break;default:Gn(e,t,r,o)}}function Sl(e,t,r,o,c){for(c=c&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var d=e,x=t,E=r,T=o,q=x.flags;switch(x.tag){case 0:case 11:case 15:Sl(d,x,E,T,c),zi(8,x);break;case 23:break;case 22:var ee=x.stateNode;x.memoizedState!==null?ee._visibility&2?Sl(d,x,E,T,c):Pi(d,x):(ee._visibility|=2,Sl(d,x,E,T,c)),c&&q&2048&&hf(x.alternate,x);break;case 24:Sl(d,x,E,T,c),c&&q&2048&&mf(x.alternate,x);break;default:Sl(d,x,E,T,c)}t=t.sibling}}function Pi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var r=e,o=t,c=o.flags;switch(o.tag){case 22:Pi(r,o),c&2048&&hf(o.alternate,o);break;case 24:Pi(r,o),c&2048&&mf(o.alternate,o);break;default:Pi(r,o)}t=t.sibling}}var Hi=8192;function El(e){if(e.subtreeFlags&Hi)for(e=e.child;e!==null;)rg(e),e=e.sibling}function rg(e){switch(e.tag){case 26:El(e),e.flags&Hi&&e.memoizedState!==null&&Pw(Ln,e.memoizedState,e.memoizedProps);break;case 5:El(e);break;case 3:case 4:var t=Ln;Ln=Ms(e.stateNode.containerInfo),El(e),Ln=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Hi,Hi=16777216,El(e),Hi=t):El(e));break;default:El(e)}}function lg(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 Bi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var o=t[r];kt=o,og(o,e)}lg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ig(e),e=e.sibling}function ig(e){switch(e.tag){case 0:case 11:case 15:Bi(e),e.flags&2048&&Ba(9,e,e.return);break;case 3:Bi(e);break;case 12:Bi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,xs(e)):Bi(e);break;default:Bi(e)}}function xs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var o=t[r];kt=o,og(o,e)}lg(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ba(8,t,t.return),xs(t);break;case 22:r=t.stateNode,r._visibility&2&&(r._visibility&=-3,xs(t));break;default:xs(t)}e=e.sibling}}function og(e,t){for(;kt!==null;){var r=kt;switch(r.tag){case 0:case 11:case 15:Ba(8,r,t);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var o=r.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Si(r.memoizedState.cache)}if(o=r.child,o!==null)o.return=r,kt=o;else e:for(r=e;kt!==null;){o=kt;var c=o.sibling,d=o.return;if(Jp(o),o===r){kt=null;break e}if(c!==null){c.return=d,kt=c;break e}kt=d}}}var ew={getCacheForType:function(e){var t=qt(Tt),r=t.data.get(e);return r===void 0&&(r=e(),t.data.set(e,r)),r}},tw=typeof WeakMap=="function"?WeakMap:Map,rt=0,ht=null,Qe=null,We=0,lt=0,cn=null,Ya=!1,_l=!1,pf=!1,xa=0,Et=0,qa=0,Ur=0,gf=0,Rn=0,Cl=0,$i=null,en=null,vf=!1,yf=0,ws=1/0,Ss=null,Fa=null,Bt=0,Ka=null,Nl=null,Rl=0,bf=0,xf=null,sg=null,Vi=0,wf=null;function fn(){if((rt&2)!==0&&We!==0)return We&-We;if(A.T!==null){var e=ml;return e!==0?e:jf()}return M()}function ug(){Rn===0&&(Rn=(We&536870912)===0||tt?Wr():536870912);var e=Nn.current;return e!==null&&(e.flags|=32),Rn}function dn(e,t,r){(e===ht&&(lt===2||lt===9)||e.cancelPendingCommit!==null)&&(jl(e,0),Ga(e,We,Rn,!1)),br(e,r),((rt&2)===0||e!==ht)&&(e===ht&&((rt&2)===0&&(Ur|=r),Et===4&&Ga(e,We,Rn,!1)),Xn(e))}function cg(e,t,r){if((rt&6)!==0)throw Error(i(327));var o=!r&&(t&124)===0&&(t&e.expiredLanes)===0||Vn(e,t),c=o?rw(e,t):_f(e,t,!0),d=o;do{if(c===0){_l&&!o&&Ga(e,t,0,!1);break}else{if(r=e.current.alternate,d&&!nw(r)){c=_f(e,t,!1),d=!1;continue}if(c===2){if(d=t,e.errorRecoveryDisabledLanes&d)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){t=x;e:{var E=e;c=$i;var T=E.current.memoizedState.isDehydrated;if(T&&(jl(E,x).flags|=256),x=_f(E,x,!1),x!==2){if(pf&&!T){E.errorRecoveryDisabledLanes|=d,Ur|=d,c=4;break e}d=en,en=c,d!==null&&(en===null?en=d:en.push.apply(en,d))}c=x}if(d=!1,c!==2)continue}}if(c===1){jl(e,0),Ga(e,t,0,!0);break}e:{switch(o=e,d=c,d){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Ga(o,t,Rn,!Ya);break e;case 2:en=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(c=yf+300-he(),10<c)){if(Ga(o,t,Rn,!Ya),yr(o,0,!0)!==0)break e;o.timeoutHandle=Hg(fg.bind(null,o,r,en,Ss,vf,t,Rn,Ur,Cl,Ya,d,2,-0,0),c);break e}fg(o,r,en,Ss,vf,t,Rn,Ur,Cl,Ya,d,0,-0,0)}}break}while(!0);Xn(e)}function fg(e,t,r,o,c,d,x,E,T,q,ee,se,G,X){if(e.timeoutHandle=-1,se=t.subtreeFlags,(se&8192||(se&16785408)===16785408)&&(Qi={stylesheets:null,count:0,unsuspend:Uw},rg(t),se=Hw(),se!==null)){e.cancelPendingCommit=se(yg.bind(null,e,t,d,r,o,c,x,E,T,ee,1,G,X)),Ga(e,d,x,!q);return}yg(e,t,d,r,o,c,x,E,T)}function nw(e){for(var t=e;;){var r=t.tag;if((r===0||r===11||r===15)&&t.flags&16384&&(r=t.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var o=0;o<r.length;o++){var c=r[o],d=c.getSnapshot;c=c.value;try{if(!ln(d(),c))return!1}catch{return!1}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 Ga(e,t,r,o){t&=~gf,t&=~Ur,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var c=t;0<c;){var d=31-Pt(c),x=1<<d;o[d]=-1,c&=~x}r!==0&&xr(e,r,t)}function Es(){return(rt&6)===0?(Yi(0),!1):!0}function Sf(){if(Qe!==null){if(lt===0)var e=Qe.return;else e=Qe,da=Tr=null,Pc(e),xl=null,Di=0,e=Qe;for(;e!==null;)qp(e.alternate,e),e=e.return;Qe=null}}function jl(e,t){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,xw(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),Sf(),ht=e,Qe=r=ua(e.current,null),We=t,lt=0,cn=null,Ya=!1,_l=Vn(e,t),pf=!1,Cl=Rn=gf=Ur=qa=Et=0,en=$i=null,vf=!1,(t&8)!==0&&(t|=t&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=t;0<o;){var c=31-Pt(o),d=1<<c;t|=e[c],o&=~d}return xa=t,Fo(),r}function dg(e,t){Ve=null,A.H=cs,t===_i||t===es?(t=Om(),lt=3):t===Nm?(t=Om(),lt=4):lt=t===Ap?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,cn=t,Qe===null&&(Et=1,ps(e,Sn(t,e.current)))}function hg(){var e=A.H;return A.H=cs,e===null?cs:e}function mg(){var e=A.A;return A.A=ew,e}function Ef(){Et=4,Ya||(We&4194048)!==We&&Nn.current!==null||(_l=!0),(qa&134217727)===0&&(Ur&134217727)===0||ht===null||Ga(ht,We,Rn,!1)}function _f(e,t,r){var o=rt;rt|=2;var c=hg(),d=mg();(ht!==e||We!==t)&&(Ss=null,jl(e,t)),t=!1;var x=Et;e:do try{if(lt!==0&&Qe!==null){var E=Qe,T=cn;switch(lt){case 8:Sf(),x=6;break e;case 3:case 2:case 9:case 6:Nn.current===null&&(t=!0);var q=lt;if(lt=0,cn=null,Ol(e,E,T,q),r&&_l){x=0;break e}break;default:q=lt,lt=0,cn=null,Ol(e,E,T,q)}}aw(),x=Et;break}catch(ee){dg(e,ee)}while(!0);return t&&e.shellSuspendCounter++,da=Tr=null,rt=o,A.H=c,A.A=d,Qe===null&&(ht=null,We=0,Fo()),x}function aw(){for(;Qe!==null;)pg(Qe)}function rw(e,t){var r=rt;rt|=2;var o=hg(),c=mg();ht!==e||We!==t?(Ss=null,ws=he()+500,jl(e,t)):_l=Vn(e,t);e:do try{if(lt!==0&&Qe!==null){t=Qe;var d=cn;t:switch(lt){case 1:lt=0,cn=null,Ol(e,t,d,1);break;case 2:case 9:if(Rm(d)){lt=0,cn=null,gg(t);break}t=function(){lt!==2&&lt!==9||ht!==e||(lt=7),Xn(e)},d.then(t,t);break e;case 3:lt=7;break e;case 4:lt=5;break e;case 7:Rm(d)?(lt=0,cn=null,gg(t)):(lt=0,cn=null,Ol(e,t,d,7));break;case 5:var x=null;switch(Qe.tag){case 26:x=Qe.memoizedState;case 5:case 27:var E=Qe;if(!x||Ig(x)){lt=0,cn=null;var T=E.sibling;if(T!==null)Qe=T;else{var q=E.return;q!==null?(Qe=q,_s(q)):Qe=null}break t}}lt=0,cn=null,Ol(e,t,d,5);break;case 6:lt=0,cn=null,Ol(e,t,d,6);break;case 8:Sf(),Et=6;break e;default:throw Error(i(462))}}lw();break}catch(ee){dg(e,ee)}while(!0);return da=Tr=null,A.H=o,A.A=c,rt=r,Qe!==null?0:(ht=null,We=0,Fo(),Et)}function lw(){for(;Qe!==null&&!fe();)pg(Qe)}function pg(e){var t=Vp(e.alternate,e,xa);e.memoizedProps=e.pendingProps,t===null?_s(e):Qe=t}function gg(e){var t=e,r=t.alternate;switch(t.tag){case 15:case 0:t=zp(r,t,t.pendingProps,t.type,void 0,We);break;case 11:t=zp(r,t,t.pendingProps,t.type.render,t.ref,We);break;case 5:Pc(t);default:qp(r,t),t=Qe=vm(t,xa),t=Vp(r,t,xa)}e.memoizedProps=e.pendingProps,t===null?_s(e):Qe=t}function Ol(e,t,r,o){da=Tr=null,Pc(t),xl=null,Di=0;var c=t.return;try{if(X1(e,c,t,r,We)){Et=1,ps(e,Sn(r,e.current)),Qe=null;return}}catch(d){if(c!==null)throw Qe=c,d;Et=1,ps(e,Sn(r,e.current)),Qe=null;return}t.flags&32768?(tt||o===1?e=!0:_l||(We&536870912)!==0?e=!1:(Ya=e=!0,(o===2||o===9||o===3||o===6)&&(o=Nn.current,o!==null&&o.tag===13&&(o.flags|=16384))),vg(t,e)):_s(t)}function _s(e){var t=e;do{if((t.flags&32768)!==0){vg(t,Ya);return}e=t.return;var r=Z1(t.alternate,t,xa);if(r!==null){Qe=r;return}if(t=t.sibling,t!==null){Qe=t;return}Qe=t=e}while(t!==null);Et===0&&(Et=5)}function vg(e,t){do{var r=I1(e.alternate,e);if(r!==null){r.flags&=32767,Qe=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!t&&(e=e.sibling,e!==null)){Qe=e;return}Qe=e=r}while(e!==null);Et=6,Qe=null}function yg(e,t,r,o,c,d,x,E,T){e.cancelPendingCommit=null;do Cs();while(Bt!==0);if((rt&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(d=t.lanes|t.childLanes,d|=hc,Do(e,r,d,x,E,T),e===ht&&(Qe=ht=null,We=0),Nl=t,Ka=e,Rl=r,bf=d,xf=c,sg=o,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,uw(nt,function(){return Eg(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=A.T,A.T=null,c=Q.p,Q.p=2,x=rt,rt|=4;try{J1(e,t,r)}finally{rt=x,Q.p=c,A.T=o}}Bt=1,bg(),xg(),wg()}}function bg(){if(Bt===1){Bt=0;var e=Ka,t=Nl,r=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||r){r=A.T,A.T=null;var o=Q.p;Q.p=2;var c=rt;rt|=4;try{tg(t,e);var d=zf,x=om(e.containerInfo),E=d.focusedElem,T=d.selectionRange;if(x!==E&&E&&E.ownerDocument&&im(E.ownerDocument.documentElement,E)){if(T!==null&&sc(E)){var q=T.start,ee=T.end;if(ee===void 0&&(ee=q),"selectionStart"in E)E.selectionStart=q,E.selectionEnd=Math.min(ee,E.value.length);else{var se=E.ownerDocument||document,G=se&&se.defaultView||window;if(G.getSelection){var X=G.getSelection(),ze=E.textContent.length,Me=Math.min(T.start,ze),ut=T.end===void 0?Me:Math.min(T.end,ze);!X.extend&&Me>ut&&(x=ut,ut=Me,Me=x);var P=lm(E,Me),L=lm(E,ut);if(P&&L&&(X.rangeCount!==1||X.anchorNode!==P.node||X.anchorOffset!==P.offset||X.focusNode!==L.node||X.focusOffset!==L.offset)){var Y=se.createRange();Y.setStart(P.node,P.offset),X.removeAllRanges(),Me>ut?(X.addRange(Y),X.extend(L.node,L.offset)):(Y.setEnd(L.node,L.offset),X.addRange(Y))}}}}for(se=[],X=E;X=X.parentNode;)X.nodeType===1&&se.push({element:X,left:X.scrollLeft,top:X.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<se.length;E++){var re=se[E];re.element.scrollLeft=re.left,re.element.scrollTop=re.top}}Us=!!kf,zf=kf=null}finally{rt=c,Q.p=o,A.T=r}}e.current=t,Bt=2}}function xg(){if(Bt===2){Bt=0;var e=Ka,t=Nl,r=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||r){r=A.T,A.T=null;var o=Q.p;Q.p=2;var c=rt;rt|=4;try{Ip(e,t.alternate,t)}finally{rt=c,Q.p=o,A.T=r}}Bt=3}}function wg(){if(Bt===4||Bt===3){Bt=0,pe();var e=Ka,t=Nl,r=Rl,o=sg;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Bt=5:(Bt=0,Nl=Ka=null,Sg(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(Fa=null),si(r),t=t.stateNode,vt&&typeof vt.onCommitFiberRoot=="function")try{vt.onCommitFiberRoot(Zt,t,void 0,(t.current.flags&128)===128)}catch{}if(o!==null){t=A.T,c=Q.p,Q.p=2,A.T=null;try{for(var d=e.onRecoverableError,x=0;x<o.length;x++){var E=o[x];d(E.value,{componentStack:E.stack})}}finally{A.T=t,Q.p=c}}(Rl&3)!==0&&Cs(),Xn(e),c=e.pendingLanes,(r&4194090)!==0&&(c&42)!==0?e===wf?Vi++:(Vi=0,wf=e):Vi=0,Yi(0)}}function Sg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Si(t)))}function Cs(e){return bg(),xg(),wg(),Eg()}function Eg(){if(Bt!==5)return!1;var e=Ka,t=bf;bf=0;var r=si(Rl),o=A.T,c=Q.p;try{Q.p=32>r?32:r,A.T=null,r=xf,xf=null;var d=Ka,x=Rl;if(Bt=0,Nl=Ka=null,Rl=0,(rt&6)!==0)throw Error(i(331));var E=rt;if(rt|=4,ig(d.current),ag(d,d.current,x,r),rt=E,Yi(0,!1),vt&&typeof vt.onPostCommitFiberRoot=="function")try{vt.onPostCommitFiberRoot(Zt,d)}catch{}return!0}finally{Q.p=c,A.T=o,Sg(e,t)}}function _g(e,t,r){t=Sn(r,t),t=Jc(e.stateNode,t,2),e=za(e,t,2),e!==null&&(br(e,2),Xn(e))}function ct(e,t,r){if(e.tag===3)_g(e,e,r);else for(;t!==null;){if(t.tag===3){_g(t,e,r);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Fa===null||!Fa.has(o))){e=Sn(r,e),r=jp(2),o=za(t,r,2),o!==null&&(Op(r,o,t,e),br(o,2),Xn(o));break}}t=t.return}}function Cf(e,t,r){var o=e.pingCache;if(o===null){o=e.pingCache=new tw;var c=new Set;o.set(t,c)}else c=o.get(t),c===void 0&&(c=new Set,o.set(t,c));c.has(r)||(pf=!0,c.add(r),e=iw.bind(null,e,t,r),t.then(e,e))}function iw(e,t,r){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,ht===e&&(We&r)===r&&(Et===4||Et===3&&(We&62914560)===We&&300>he()-yf?(rt&2)===0&&jl(e,0):gf|=r,Cl===We&&(Cl=0)),Xn(e)}function Cg(e,t){t===0&&(t=Mo()),e=cl(e,t),e!==null&&(br(e,t),Xn(e))}function ow(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Cg(e,r)}function sw(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,c=e.memoizedState;c!==null&&(r=c.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(i(314))}o!==null&&o.delete(t),Cg(e,r)}function uw(e,t){return an(e,t)}var Ns=null,Al=null,Nf=!1,Rs=!1,Rf=!1,Pr=0;function Xn(e){e!==Al&&e.next===null&&(Al===null?Ns=Al=e:Al=Al.next=e),Rs=!0,Nf||(Nf=!0,fw())}function Yi(e,t){if(!Rf&&Rs){Rf=!0;do for(var r=!1,o=Ns;o!==null;){if(e!==0){var c=o.pendingLanes;if(c===0)var d=0;else{var x=o.suspendedLanes,E=o.pingedLanes;d=(1<<31-Pt(42|e)+1)-1,d&=c&~(x&~E),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(r=!0,Og(o,d))}else d=We,d=yr(o,o===ht?d:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(d&3)===0||Vn(o,d)||(r=!0,Og(o,d));o=o.next}while(r);Rf=!1}}function cw(){Ng()}function Ng(){Rs=Nf=!1;var e=0;Pr!==0&&(bw()&&(e=Pr),Pr=0);for(var t=he(),r=null,o=Ns;o!==null;){var c=o.next,d=Rg(o,t);d===0?(o.next=null,r===null?Ns=c:r.next=c,c===null&&(Al=r)):(r=o,(e!==0||(d&3)!==0)&&(Rs=!0)),o=c}Yi(e)}function Rg(e,t){for(var r=e.suspendedLanes,o=e.pingedLanes,c=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var x=31-Pt(d),E=1<<x,T=c[x];T===-1?((E&r)===0||(E&o)!==0)&&(c[x]=To(E,t)):T<=t&&(e.expiredLanes|=E),d&=~E}if(t=ht,r=We,r=yr(e,e===t?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,r===0||e===t&&(lt===2||lt===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&ie(o),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||Vn(e,r)){if(t=r&-r,t===e.callbackPriority)return t;switch(o!==null&&ie(o),si(r)){case 2:case 8:r=Pe;break;case 32:r=nt;break;case 268435456:r=Bn;break;default:r=nt}return o=jg.bind(null,e),r=an(r,o),e.callbackPriority=t,e.callbackNode=r,t}return o!==null&&o!==null&&ie(o),e.callbackPriority=2,e.callbackNode=null,2}function jg(e,t){if(Bt!==0&&Bt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(Cs()&&e.callbackNode!==r)return null;var o=We;return o=yr(e,e===ht?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(cg(e,o,t),Rg(e,he()),e.callbackNode!=null&&e.callbackNode===r?jg.bind(null,e):null)}function Og(e,t){if(Cs())return null;cg(e,t,!0)}function fw(){ww(function(){(rt&6)!==0?an(ke,cw):Ng()})}function jf(){return Pr===0&&(Pr=Wr()),Pr}function Ag(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Po(""+e)}function Tg(e,t){var r=t.ownerDocument.createElement("input");return r.name=t.name,r.value=t.value,e.id&&r.setAttribute("form",e.id),t.parentNode.insertBefore(r,t),e=new FormData(e),r.parentNode.removeChild(r),e}function dw(e,t,r,o,c){if(t==="submit"&&r&&r.stateNode===c){var d=Ag((c[me]||null).action),x=o.submitter;x&&(t=(t=x[me]||null)?Ag(t.formAction):x.getAttribute("formAction"),t!==null&&(d=t,x=null));var E=new Vo("action","action",null,o,c);e.push({event:E,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Pr!==0){var T=x?Tg(c,x):new FormData(c);Gc(r,{pending:!0,data:T,method:c.method,action:d},null,T)}}else typeof d=="function"&&(E.preventDefault(),T=x?Tg(c,x):new FormData(c),Gc(r,{pending:!0,data:T,method:c.method,action:d},d,T))},currentTarget:c}]})}}for(var Of=0;Of<dc.length;Of++){var Af=dc[Of],hw=Af.toLowerCase(),mw=Af[0].toUpperCase()+Af.slice(1);Dn(hw,"on"+mw)}Dn(cm,"onAnimationEnd"),Dn(fm,"onAnimationIteration"),Dn(dm,"onAnimationStart"),Dn("dblclick","onDoubleClick"),Dn("focusin","onFocus"),Dn("focusout","onBlur"),Dn(T1,"onTransitionRun"),Dn(M1,"onTransitionStart"),Dn(D1,"onTransitionCancel"),Dn(hm,"onTransitionEnd"),Gt("onMouseEnter",["mouseout","mouseover"]),Gt("onMouseLeave",["mouseout","mouseover"]),Gt("onPointerEnter",["pointerout","pointerover"]),Gt("onPointerLeave",["pointerout","pointerover"]),rn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rn("onBeforeInput",["compositionend","keypress","textInput","paste"]),rn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qi="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(" "),pw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(qi));function Mg(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var o=e[r],c=o.event;o=o.listeners;e:{var d=void 0;if(t)for(var x=o.length-1;0<=x;x--){var E=o[x],T=E.instance,q=E.currentTarget;if(E=E.listener,T!==d&&c.isPropagationStopped())break e;d=E,c.currentTarget=q;try{d(c)}catch(ee){ms(ee)}c.currentTarget=null,d=T}else for(x=0;x<o.length;x++){if(E=o[x],T=E.instance,q=E.currentTarget,E=E.listener,T!==d&&c.isPropagationStopped())break e;d=E,c.currentTarget=q;try{d(c)}catch(ee){ms(ee)}c.currentTarget=null,d=T}}}}function Ze(e,t){var r=t[Ce];r===void 0&&(r=t[Ce]=new Set);var o=e+"__bubble";r.has(o)||(Dg(t,e,2,!1),r.add(o))}function Tf(e,t,r){var o=0;t&&(o|=4),Dg(r,e,o,t)}var js="_reactListening"+Math.random().toString(36).slice(2);function Mf(e){if(!e[js]){e[js]=!0,it.forEach(function(r){r!=="selectionchange"&&(pw.has(r)||Tf(r,!1,e),Tf(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[js]||(t[js]=!0,Tf("selectionchange",!1,t))}}function Dg(e,t,r,o){switch(av(t)){case 2:var c=Vw;break;case 8:c=Yw;break;default:c=Kf}r=c.bind(null,t,r,e),c=void 0,!Wu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),o?c!==void 0?e.addEventListener(t,r,{capture:!0,passive:c}):e.addEventListener(t,r,!0):c!==void 0?e.addEventListener(t,r,{passive:c}):e.addEventListener(t,r,!1)}function Df(e,t,r,o,c){var d=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var x=o.tag;if(x===3||x===4){var E=o.stateNode.containerInfo;if(E===c)break;if(x===4)for(x=o.return;x!==null;){var T=x.tag;if((T===3||T===4)&&x.stateNode.containerInfo===c)return;x=x.return}for(;E!==null;){if(x=$e(E),x===null)return;if(T=x.tag,T===5||T===6||T===26||T===27){o=d=x;continue e}E=E.parentNode}}o=o.return}Bh(function(){var q=d,ee=Iu(r),se=[];e:{var G=mm.get(e);if(G!==void 0){var X=Vo,ze=e;switch(e){case"keypress":if(Bo(r)===0)break e;case"keydown":case"keyup":X=u1;break;case"focusin":ze="focus",X=ac;break;case"focusout":ze="blur",X=ac;break;case"beforeblur":case"afterblur":X=ac;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":X=Yh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=Ix;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=d1;break;case cm:case fm:case dm:X=e1;break;case hm:X=m1;break;case"scroll":case"scrollend":X=Qx;break;case"wheel":X=g1;break;case"copy":case"cut":case"paste":X=n1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X=Fh;break;case"toggle":case"beforetoggle":X=y1}var Me=(t&4)!==0,ut=!Me&&(e==="scroll"||e==="scrollend"),P=Me?G!==null?G+"Capture":null:G;Me=[];for(var L=q,Y;L!==null;){var re=L;if(Y=re.stateNode,re=re.tag,re!==5&&re!==26&&re!==27||Y===null||P===null||(re=ui(L,P),re!=null&&Me.push(Fi(L,re,Y))),ut)break;L=L.return}0<Me.length&&(G=new X(G,ze,null,r,ee),se.push({event:G,listeners:Me}))}}if((t&7)===0){e:{if(G=e==="mouseover"||e==="pointerover",X=e==="mouseout"||e==="pointerout",G&&r!==Zu&&(ze=r.relatedTarget||r.fromElement)&&($e(ze)||ze[Se]))break e;if((X||G)&&(G=ee.window===ee?ee:(G=ee.ownerDocument)?G.defaultView||G.parentWindow:window,X?(ze=r.relatedTarget||r.toElement,X=q,ze=ze?$e(ze):null,ze!==null&&(ut=u(ze),Me=ze.tag,ze!==ut||Me!==5&&Me!==27&&Me!==6)&&(ze=null)):(X=null,ze=q),X!==ze)){if(Me=Yh,re="onMouseLeave",P="onMouseEnter",L="mouse",(e==="pointerout"||e==="pointerover")&&(Me=Fh,re="onPointerLeave",P="onPointerEnter",L="pointer"),ut=X==null?G:xt(X),Y=ze==null?G:xt(ze),G=new Me(re,L+"leave",X,r,ee),G.target=ut,G.relatedTarget=Y,re=null,$e(ee)===q&&(Me=new Me(P,L+"enter",ze,r,ee),Me.target=Y,Me.relatedTarget=ut,re=Me),ut=re,X&&ze)t:{for(Me=X,P=ze,L=0,Y=Me;Y;Y=Tl(Y))L++;for(Y=0,re=P;re;re=Tl(re))Y++;for(;0<L-Y;)Me=Tl(Me),L--;for(;0<Y-L;)P=Tl(P),Y--;for(;L--;){if(Me===P||P!==null&&Me===P.alternate)break t;Me=Tl(Me),P=Tl(P)}Me=null}else Me=null;X!==null&&Lg(se,G,X,Me,!1),ze!==null&&ut!==null&&Lg(se,ut,ze,Me,!0)}}e:{if(G=q?xt(q):window,X=G.nodeName&&G.nodeName.toLowerCase(),X==="select"||X==="input"&&G.type==="file")var be=Wh;else if(Ih(G))if(em)be=j1;else{be=N1;var Ke=C1}else X=G.nodeName,!X||X.toLowerCase()!=="input"||G.type!=="checkbox"&&G.type!=="radio"?q&&Qu(q.elementType)&&(be=Wh):be=R1;if(be&&(be=be(e,q))){Jh(se,be,r,ee);break e}Ke&&Ke(e,G,q),e==="focusout"&&q&&G.type==="number"&&q.memoizedProps.value!=null&&Xu(G,"number",G.value)}switch(Ke=q?xt(q):window,e){case"focusin":(Ih(Ke)||Ke.contentEditable==="true")&&(ol=Ke,uc=q,vi=null);break;case"focusout":vi=uc=ol=null;break;case"mousedown":cc=!0;break;case"contextmenu":case"mouseup":case"dragend":cc=!1,sm(se,r,ee);break;case"selectionchange":if(A1)break;case"keydown":case"keyup":sm(se,r,ee)}var Re;if(lc)e:{switch(e){case"compositionstart":var De="onCompositionStart";break e;case"compositionend":De="onCompositionEnd";break e;case"compositionupdate":De="onCompositionUpdate";break e}De=void 0}else il?Qh(e,r)&&(De="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(De="onCompositionStart");De&&(Kh&&r.locale!=="ko"&&(il||De!=="onCompositionStart"?De==="onCompositionEnd"&&il&&(Re=$h()):(Ma=ee,ec="value"in Ma?Ma.value:Ma.textContent,il=!0)),Ke=Os(q,De),0<Ke.length&&(De=new qh(De,e,null,r,ee),se.push({event:De,listeners:Ke}),Re?De.data=Re:(Re=Zh(r),Re!==null&&(De.data=Re)))),(Re=x1?w1(e,r):S1(e,r))&&(De=Os(q,"onBeforeInput"),0<De.length&&(Ke=new qh("onBeforeInput","beforeinput",null,r,ee),se.push({event:Ke,listeners:De}),Ke.data=Re)),dw(se,e,q,r,ee)}Mg(se,t)})}function Fi(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Os(e,t){for(var r=t+"Capture",o=[];e!==null;){var c=e,d=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||d===null||(c=ui(e,r),c!=null&&o.unshift(Fi(e,c,d)),c=ui(e,t),c!=null&&o.push(Fi(e,c,d))),e.tag===3)return o;e=e.return}return[]}function Tl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Lg(e,t,r,o,c){for(var d=t._reactName,x=[];r!==null&&r!==o;){var E=r,T=E.alternate,q=E.stateNode;if(E=E.tag,T!==null&&T===o)break;E!==5&&E!==26&&E!==27||q===null||(T=q,c?(q=ui(r,d),q!=null&&x.unshift(Fi(r,q,T))):c||(q=ui(r,d),q!=null&&x.push(Fi(r,q,T)))),r=r.return}x.length!==0&&e.push({event:t,listeners:x})}var gw=/\r\n?/g,vw=/\u0000|\uFFFD/g;function kg(e){return(typeof e=="string"?e:""+e).replace(gw,`
55
- `).replace(vw,"")}function zg(e,t){return t=kg(t),kg(e)===t}function As(){}function st(e,t,r,o,c,d){switch(r){case"children":typeof o=="string"?t==="body"||t==="textarea"&&o===""||al(e,o):(typeof o=="number"||typeof o=="bigint")&&t!=="body"&&al(e,""+o);break;case"className":oa(e,"class",o);break;case"tabIndex":oa(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":oa(e,r,o);break;case"style":Ph(e,o,d);break;case"data":if(t!=="object"){oa(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||r!=="href")){e.removeAttribute(r);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(r);break}o=Po(""+o),e.setAttribute(r,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(r,"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 d=="function"&&(r==="formAction"?(t!=="input"&&st(e,t,"name",c.name,c,null),st(e,t,"formEncType",c.formEncType,c,null),st(e,t,"formMethod",c.formMethod,c,null),st(e,t,"formTarget",c.formTarget,c,null)):(st(e,t,"encType",c.encType,c,null),st(e,t,"method",c.method,c,null),st(e,t,"target",c.target,c,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(r);break}o=Po(""+o),e.setAttribute(r,o);break;case"onClick":o!=null&&(e.onclick=As);break;case"onScroll":o!=null&&Ze("scroll",e);break;case"onScrollEnd":o!=null&&Ze("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(r=o.__html,r!=null){if(c.children!=null)throw Error(i(60));e.innerHTML=r}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}r=Po(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(r,""+o):e.removeAttribute(r);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":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":o===!0?e.setAttribute(r,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(r,o):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(r,o):e.removeAttribute(r);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(r):e.setAttribute(r,o);break;case"popover":Ze("beforetoggle",e),Ze("toggle",e),ia(e,"popover",o);break;case"xlinkActuate":Fe(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Fe(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Fe(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Fe(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Fe(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Fe(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Fe(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Fe(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Fe(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":ia(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=Gx.get(r)||r,ia(e,r,o))}}function Lf(e,t,r,o,c,d){switch(r){case"style":Ph(e,o,d);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(r=o.__html,r!=null){if(c.children!=null)throw Error(i(60));e.innerHTML=r}}break;case"children":typeof o=="string"?al(e,o):(typeof o=="number"||typeof o=="bigint")&&al(e,""+o);break;case"onScroll":o!=null&&Ze("scroll",e);break;case"onScrollEnd":o!=null&&Ze("scrollend",e);break;case"onClick":o!=null&&(e.onclick=As);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Yn.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(c=r.endsWith("Capture"),t=r.slice(2,c?r.length-7:void 0),d=e[me]||null,d=d!=null?d[r]:null,typeof d=="function"&&e.removeEventListener(t,d,c),typeof o=="function")){typeof d!="function"&&d!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(t,o,c);break e}r in e?e[r]=o:o===!0?e.setAttribute(r,""):ia(e,r,o)}}}function $t(e,t,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ze("error",e),Ze("load",e);var o=!1,c=!1,d;for(d in r)if(r.hasOwnProperty(d)){var x=r[d];if(x!=null)switch(d){case"src":o=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:st(e,t,d,x,r,null)}}c&&st(e,t,"srcSet",r.srcSet,r,null),o&&st(e,t,"src",r.src,r,null);return;case"input":Ze("invalid",e);var E=d=x=c=null,T=null,q=null;for(o in r)if(r.hasOwnProperty(o)){var ee=r[o];if(ee!=null)switch(o){case"name":c=ee;break;case"type":x=ee;break;case"checked":T=ee;break;case"defaultChecked":q=ee;break;case"value":d=ee;break;case"defaultValue":E=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(i(137,t));break;default:st(e,t,o,ee,r,null)}}Lh(e,d,E,T,q,x,c,!1),zo(e);return;case"select":Ze("invalid",e),o=x=d=null;for(c in r)if(r.hasOwnProperty(c)&&(E=r[c],E!=null))switch(c){case"value":d=E;break;case"defaultValue":x=E;break;case"multiple":o=E;default:st(e,t,c,E,r,null)}t=d,r=x,e.multiple=!!o,t!=null?nl(e,!!o,t,!1):r!=null&&nl(e,!!o,r,!0);return;case"textarea":Ze("invalid",e),d=c=o=null;for(x in r)if(r.hasOwnProperty(x)&&(E=r[x],E!=null))switch(x){case"value":o=E;break;case"defaultValue":c=E;break;case"children":d=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(i(91));break;default:st(e,t,x,E,r,null)}zh(e,o,c,d),zo(e);return;case"option":for(T in r)if(r.hasOwnProperty(T)&&(o=r[T],o!=null))switch(T){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:st(e,t,T,o,r,null)}return;case"dialog":Ze("beforetoggle",e),Ze("toggle",e),Ze("cancel",e),Ze("close",e);break;case"iframe":case"object":Ze("load",e);break;case"video":case"audio":for(o=0;o<qi.length;o++)Ze(qi[o],e);break;case"image":Ze("error",e),Ze("load",e);break;case"details":Ze("toggle",e);break;case"embed":case"source":case"link":Ze("error",e),Ze("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(q in r)if(r.hasOwnProperty(q)&&(o=r[q],o!=null))switch(q){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:st(e,t,q,o,r,null)}return;default:if(Qu(t)){for(ee in r)r.hasOwnProperty(ee)&&(o=r[ee],o!==void 0&&Lf(e,t,ee,o,r,void 0));return}}for(E in r)r.hasOwnProperty(E)&&(o=r[E],o!=null&&st(e,t,E,o,r,null))}function yw(e,t,r,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,d=null,x=null,E=null,T=null,q=null,ee=null;for(X in r){var se=r[X];if(r.hasOwnProperty(X)&&se!=null)switch(X){case"checked":break;case"value":break;case"defaultValue":T=se;default:o.hasOwnProperty(X)||st(e,t,X,null,o,se)}}for(var G in o){var X=o[G];if(se=r[G],o.hasOwnProperty(G)&&(X!=null||se!=null))switch(G){case"type":d=X;break;case"name":c=X;break;case"checked":q=X;break;case"defaultChecked":ee=X;break;case"value":x=X;break;case"defaultValue":E=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(i(137,t));break;default:X!==se&&st(e,t,G,X,o,se)}}Gu(e,x,E,T,q,ee,d,c);return;case"select":X=x=E=G=null;for(d in r)if(T=r[d],r.hasOwnProperty(d)&&T!=null)switch(d){case"value":break;case"multiple":X=T;default:o.hasOwnProperty(d)||st(e,t,d,null,o,T)}for(c in o)if(d=o[c],T=r[c],o.hasOwnProperty(c)&&(d!=null||T!=null))switch(c){case"value":G=d;break;case"defaultValue":E=d;break;case"multiple":x=d;default:d!==T&&st(e,t,c,d,o,T)}t=E,r=x,o=X,G!=null?nl(e,!!r,G,!1):!!o!=!!r&&(t!=null?nl(e,!!r,t,!0):nl(e,!!r,r?[]:"",!1));return;case"textarea":X=G=null;for(E in r)if(c=r[E],r.hasOwnProperty(E)&&c!=null&&!o.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:st(e,t,E,null,o,c)}for(x in o)if(c=o[x],d=r[x],o.hasOwnProperty(x)&&(c!=null||d!=null))switch(x){case"value":G=c;break;case"defaultValue":X=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(i(91));break;default:c!==d&&st(e,t,x,c,o,d)}kh(e,G,X);return;case"option":for(var ze in r)if(G=r[ze],r.hasOwnProperty(ze)&&G!=null&&!o.hasOwnProperty(ze))switch(ze){case"selected":e.selected=!1;break;default:st(e,t,ze,null,o,G)}for(T in o)if(G=o[T],X=r[T],o.hasOwnProperty(T)&&G!==X&&(G!=null||X!=null))switch(T){case"selected":e.selected=G&&typeof G!="function"&&typeof G!="symbol";break;default:st(e,t,T,G,o,X)}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 Me in r)G=r[Me],r.hasOwnProperty(Me)&&G!=null&&!o.hasOwnProperty(Me)&&st(e,t,Me,null,o,G);for(q in o)if(G=o[q],X=r[q],o.hasOwnProperty(q)&&G!==X&&(G!=null||X!=null))switch(q){case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(i(137,t));break;default:st(e,t,q,G,o,X)}return;default:if(Qu(t)){for(var ut in r)G=r[ut],r.hasOwnProperty(ut)&&G!==void 0&&!o.hasOwnProperty(ut)&&Lf(e,t,ut,void 0,o,G);for(ee in o)G=o[ee],X=r[ee],!o.hasOwnProperty(ee)||G===X||G===void 0&&X===void 0||Lf(e,t,ee,G,o,X);return}}for(var P in r)G=r[P],r.hasOwnProperty(P)&&G!=null&&!o.hasOwnProperty(P)&&st(e,t,P,null,o,G);for(se in o)G=o[se],X=r[se],!o.hasOwnProperty(se)||G===X||G==null&&X==null||st(e,t,se,G,o,X)}var kf=null,zf=null;function Ts(e){return e.nodeType===9?e:e.ownerDocument}function Ug(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 Pg(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 Uf(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 Pf=null;function bw(){var e=window.event;return e&&e.type==="popstate"?e===Pf?!1:(Pf=e,!0):(Pf=null,!1)}var Hg=typeof setTimeout=="function"?setTimeout:void 0,xw=typeof clearTimeout=="function"?clearTimeout:void 0,Bg=typeof Promise=="function"?Promise:void 0,ww=typeof queueMicrotask=="function"?queueMicrotask:typeof Bg<"u"?function(e){return Bg.resolve(null).then(e).catch(Sw)}:Hg;function Sw(e){setTimeout(function(){throw e})}function Xa(e){return e==="head"}function $g(e,t){var r=t,o=0,c=0;do{var d=r.nextSibling;if(e.removeChild(r),d&&d.nodeType===8)if(r=d.data,r==="/$"){if(0<o&&8>o){r=o;var x=e.ownerDocument;if(r&1&&Ki(x.documentElement),r&2&&Ki(x.body),r&4)for(r=x.head,Ki(r),x=r.firstChild;x;){var E=x.nextSibling,T=x.nodeName;x[_e]||T==="SCRIPT"||T==="STYLE"||T==="LINK"&&x.rel.toLowerCase()==="stylesheet"||r.removeChild(x),x=E}}if(c===0){e.removeChild(d),eo(t);return}c--}else r==="$"||r==="$?"||r==="$!"?c++:o=r.charCodeAt(0)-48;else o=0;r=d}while(r);eo(t)}function Hf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":Hf(r),Ne(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function Ew(e,t,r,o){for(;e.nodeType===1;){var c=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[_e])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=kn(e.nextSibling),e===null)break}return null}function _w(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=kn(e.nextSibling),e===null))return null;return e}function Bf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function Cw(e,t){var r=e.ownerDocument;if(e.data!=="$?"||r.readyState==="complete")t();else{var o=function(){t(),r.removeEventListener("DOMContentLoaded",o)};r.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function kn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var $f=null;function Vg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}function Yg(e,t,r){switch(t=Ts(r),e){case"html":if(e=t.documentElement,!e)throw Error(i(452));return e;case"head":if(e=t.head,!e)throw Error(i(453));return e;case"body":if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Ki(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ne(e)}var jn=new Map,qg=new Set;function Ms(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var wa=Q.d;Q.d={f:Nw,r:Rw,D:jw,C:Ow,L:Aw,m:Tw,X:Dw,S:Mw,M:Lw};function Nw(){var e=wa.f(),t=Es();return e||t}function Rw(e){var t=at(e);t!==null&&t.tag===5&&t.type==="form"?cp(t):wa.r(e)}var Ml=typeof document>"u"?null:document;function Fg(e,t,r){var o=Ml;if(o&&typeof t=="string"&&t){var c=wn(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof r=="string"&&(c+='[crossorigin="'+r+'"]'),qg.has(c)||(qg.add(c),e={rel:e,crossOrigin:r,href:t},o.querySelector(c)===null&&(t=o.createElement("link"),$t(t,"link",e),He(t),o.head.appendChild(t)))}}function jw(e){wa.D(e),Fg("dns-prefetch",e,null)}function Ow(e,t){wa.C(e,t),Fg("preconnect",e,t)}function Aw(e,t,r){wa.L(e,t,r);var o=Ml;if(o&&e&&t){var c='link[rel="preload"][as="'+wn(t)+'"]';t==="image"&&r&&r.imageSrcSet?(c+='[imagesrcset="'+wn(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(c+='[imagesizes="'+wn(r.imageSizes)+'"]')):c+='[href="'+wn(e)+'"]';var d=c;switch(t){case"style":d=Dl(e);break;case"script":d=Ll(e)}jn.has(d)||(e=v({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),jn.set(d,e),o.querySelector(c)!==null||t==="style"&&o.querySelector(Gi(d))||t==="script"&&o.querySelector(Xi(d))||(t=o.createElement("link"),$t(t,"link",e),He(t),o.head.appendChild(t)))}}function Tw(e,t){wa.m(e,t);var r=Ml;if(r&&e){var o=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+wn(o)+'"][href="'+wn(e)+'"]',d=c;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Ll(e)}if(!jn.has(d)&&(e=v({rel:"modulepreload",href:e},t),jn.set(d,e),r.querySelector(c)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(Xi(d)))return}o=r.createElement("link"),$t(o,"link",e),He(o),r.head.appendChild(o)}}}function Mw(e,t,r){wa.S(e,t,r);var o=Ml;if(o&&e){var c=wt(o).hoistableStyles,d=Dl(e);t=t||"default";var x=c.get(d);if(!x){var E={loading:0,preload:null};if(x=o.querySelector(Gi(d)))E.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},r),(r=jn.get(d))&&Vf(e,r);var T=x=o.createElement("link");He(T),$t(T,"link",e),T._p=new Promise(function(q,ee){T.onload=q,T.onerror=ee}),T.addEventListener("load",function(){E.loading|=1}),T.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Ds(x,t,o)}x={type:"stylesheet",instance:x,count:1,state:E},c.set(d,x)}}}function Dw(e,t){wa.X(e,t);var r=Ml;if(r&&e){var o=wt(r).hoistableScripts,c=Ll(e),d=o.get(c);d||(d=r.querySelector(Xi(c)),d||(e=v({src:e,async:!0},t),(t=jn.get(c))&&Yf(e,t),d=r.createElement("script"),He(d),$t(d,"link",e),r.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},o.set(c,d))}}function Lw(e,t){wa.M(e,t);var r=Ml;if(r&&e){var o=wt(r).hoistableScripts,c=Ll(e),d=o.get(c);d||(d=r.querySelector(Xi(c)),d||(e=v({src:e,async:!0,type:"module"},t),(t=jn.get(c))&&Yf(e,t),d=r.createElement("script"),He(d),$t(d,"link",e),r.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},o.set(c,d))}}function Kg(e,t,r,o){var c=(c=ge.current)?Ms(c):null;if(!c)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(t=Dl(r.href),r=wt(c).hoistableStyles,o=r.get(t),o||(o={type:"style",instance:null,count:0,state:null},r.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=Dl(r.href);var d=wt(c).hoistableStyles,x=d.get(e);if(x||(c=c.ownerDocument||c,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,x),(d=c.querySelector(Gi(e)))&&!d._p&&(x.instance=d,x.state.loading=5),jn.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},jn.set(e,r),d||kw(c,e,r,x.state))),t&&o===null)throw Error(i(528,""));return x}if(t&&o!==null)throw Error(i(529,""));return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ll(r),r=wt(c).hoistableScripts,o=r.get(t),o||(o={type:"script",instance:null,count:0,state:null},r.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Dl(e){return'href="'+wn(e)+'"'}function Gi(e){return'link[rel="stylesheet"]['+e+"]"}function Gg(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function kw(e,t,r,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=1:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2}),$t(t,"link",r),He(t),e.head.appendChild(t))}function Ll(e){return'[src="'+wn(e)+'"]'}function Xi(e){return"script[async]"+e}function Xg(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+wn(r.href)+'"]');if(o)return t.instance=o,He(o),o;var c=v({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),He(o),$t(o,"style",c),Ds(o,r.precedence,e),t.instance=o;case"stylesheet":c=Dl(r.href);var d=e.querySelector(Gi(c));if(d)return t.state.loading|=4,t.instance=d,He(d),d;o=Gg(r),(c=jn.get(c))&&Vf(o,c),d=(e.ownerDocument||e).createElement("link"),He(d);var x=d;return x._p=new Promise(function(E,T){x.onload=E,x.onerror=T}),$t(d,"link",o),t.state.loading|=4,Ds(d,r.precedence,e),t.instance=d;case"script":return d=Ll(r.src),(c=e.querySelector(Xi(d)))?(t.instance=c,He(c),c):(o=r,(c=jn.get(d))&&(o=v({},r),Yf(o,c)),e=e.ownerDocument||e,c=e.createElement("script"),He(c),$t(c,"link",o),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(o=t.instance,t.state.loading|=4,Ds(o,r.precedence,e));return t.instance}function Ds(e,t,r){for(var o=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=o.length?o[o.length-1]:null,d=c,x=0;x<o.length;x++){var E=o[x];if(E.dataset.precedence===t)d=E;else if(d!==c)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=r.nodeType===9?r.head:r,t.insertBefore(e,t.firstChild))}function Vf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Yf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ls=null;function Qg(e,t,r){if(Ls===null){var o=new Map,c=Ls=new Map;c.set(r,o)}else c=Ls,o=c.get(r),o||(o=new Map,c.set(r,o));if(o.has(e))return o;for(o.set(e,null),r=r.getElementsByTagName(e),c=0;c<r.length;c++){var d=r[c];if(!(d[_e]||d[ce]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var x=d.getAttribute(t)||"";x=e+x;var E=o.get(x);E?E.push(d):o.set(x,[d])}}return o}function Zg(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function zw(e,t,r){if(r===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Ig(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Qi=null;function Uw(){}function Pw(e,t,r){if(Qi===null)throw Error(i(475));var o=Qi;if(t.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var c=Dl(r.href),d=e.querySelector(Gi(c));if(d){e=d._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(o.count++,o=ks.bind(o),e.then(o,o)),t.state.loading|=4,t.instance=d,He(d);return}d=e.ownerDocument||e,r=Gg(r),(c=jn.get(c))&&Vf(r,c),d=d.createElement("link"),He(d);var x=d;x._p=new Promise(function(E,T){x.onload=E,x.onerror=T}),$t(d,"link",r),t.instance=d}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(o.count++,t=ks.bind(o),e.addEventListener("load",t),e.addEventListener("error",t))}}function Hw(){if(Qi===null)throw Error(i(475));var e=Qi;return e.stylesheets&&e.count===0&&qf(e,e.stylesheets),0<e.count?function(t){var r=setTimeout(function(){if(e.stylesheets&&qf(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(r)}}:null}function ks(){if(this.count--,this.count===0){if(this.stylesheets)qf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var zs=null;function qf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,zs=new Map,t.forEach(Bw,e),zs=null,ks.call(e))}function Bw(e,t){if(!(t.state.loading&4)){var r=zs.get(e);if(r)var o=r.get(null);else{r=new Map,zs.set(e,r);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<c.length;d++){var x=c[d];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(r.set(x.dataset.precedence,x),o=x)}o&&r.set(null,o)}c=t.instance,x=c.getAttribute("data-precedence"),d=r.get(x)||o,d===o&&r.set(null,c),r.set(x,c),this.count++,o=ks.bind(this),c.addEventListener("load",o),c.addEventListener("error",o),d?d.parentNode.insertBefore(c,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var Zi={$$typeof:k,Provider:null,Consumer:null,_currentValue:V,_currentValue2:V,_threadCount:0};function $w(e,t,r,o,c,d,x,E){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=el(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=el(0),this.hiddenUpdates=el(null),this.identifierPrefix=o,this.onUncaughtError=c,this.onCaughtError=d,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function Jg(e,t,r,o,c,d,x,E,T,q,ee,se){return e=new $w(e,t,r,x,E,T,q,se),t=1,d===!0&&(t|=24),d=on(3,null,null,t),e.current=d,d.stateNode=e,t=_c(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:o,isDehydrated:r,cache:t},jc(d),e}function Wg(e){return e?(e=fl,e):fl}function ev(e,t,r,o,c,d){c=Wg(c),o.context===null?o.context=c:o.pendingContext=c,o=ka(t),o.payload={element:r},d=d===void 0?null:d,d!==null&&(o.callback=d),r=za(e,o,t),r!==null&&(dn(r,e,t),Ni(r,e,t))}function tv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Ff(e,t){tv(e,t),(e=e.alternate)&&tv(e,t)}function nv(e){if(e.tag===13){var t=cl(e,67108864);t!==null&&dn(t,e,67108864),Ff(e,67108864)}}var Us=!0;function Vw(e,t,r,o){var c=A.T;A.T=null;var d=Q.p;try{Q.p=2,Kf(e,t,r,o)}finally{Q.p=d,A.T=c}}function Yw(e,t,r,o){var c=A.T;A.T=null;var d=Q.p;try{Q.p=8,Kf(e,t,r,o)}finally{Q.p=d,A.T=c}}function Kf(e,t,r,o){if(Us){var c=Gf(o);if(c===null)Df(e,t,o,Ps,r),rv(e,o);else if(Fw(c,e,t,r,o))o.stopPropagation();else if(rv(e,o),t&4&&-1<qw.indexOf(e)){for(;c!==null;){var d=at(c);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var x=ra(d.pendingLanes);if(x!==0){var E=d;for(E.pendingLanes|=2,E.entangledLanes|=2;x;){var T=1<<31-Pt(x);E.entanglements[1]|=T,x&=~T}Xn(d),(rt&6)===0&&(ws=he()+500,Yi(0))}}break;case 13:E=cl(d,2),E!==null&&dn(E,d,2),Es(),Ff(d,2)}if(d=Gf(o),d===null&&Df(e,t,o,Ps,r),d===c)break;c=d}c!==null&&o.stopPropagation()}else Df(e,t,o,null,r)}}function Gf(e){return e=Iu(e),Xf(e)}var Ps=null;function Xf(e){if(Ps=null,e=$e(e),e!==null){var t=u(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=f(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ps=e,null}function av(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(je()){case ke:return 2;case Pe:return 8;case nt:case Yt:return 32;case Bn:return 268435456;default:return 32}default:return 32}}var Qf=!1,Qa=null,Za=null,Ia=null,Ii=new Map,Ji=new Map,Ja=[],qw="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 rv(e,t){switch(e){case"focusin":case"focusout":Qa=null;break;case"dragenter":case"dragleave":Za=null;break;case"mouseover":case"mouseout":Ia=null;break;case"pointerover":case"pointerout":Ii.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ji.delete(t.pointerId)}}function Wi(e,t,r,o,c,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:r,eventSystemFlags:o,nativeEvent:d,targetContainers:[c]},t!==null&&(t=at(t),t!==null&&nv(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function Fw(e,t,r,o,c){switch(t){case"focusin":return Qa=Wi(Qa,e,t,r,o,c),!0;case"dragenter":return Za=Wi(Za,e,t,r,o,c),!0;case"mouseover":return Ia=Wi(Ia,e,t,r,o,c),!0;case"pointerover":var d=c.pointerId;return Ii.set(d,Wi(Ii.get(d)||null,e,t,r,o,c)),!0;case"gotpointercapture":return d=c.pointerId,Ji.set(d,Wi(Ji.get(d)||null,e,t,r,o,c)),!0}return!1}function lv(e){var t=$e(e.target);if(t!==null){var r=u(t);if(r!==null){if(t=r.tag,t===13){if(t=f(r),t!==null){e.blockedOn=t,$(e.priority,function(){if(r.tag===13){var o=fn();o=oi(o);var c=cl(r,o);c!==null&&dn(c,r,o),Ff(r,o)}});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Hs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Gf(e.nativeEvent);if(r===null){r=e.nativeEvent;var o=new r.constructor(r.type,r);Zu=o,r.target.dispatchEvent(o),Zu=null}else return t=at(r),t!==null&&nv(t),e.blockedOn=r,!1;t.shift()}return!0}function iv(e,t,r){Hs(e)&&r.delete(t)}function Kw(){Qf=!1,Qa!==null&&Hs(Qa)&&(Qa=null),Za!==null&&Hs(Za)&&(Za=null),Ia!==null&&Hs(Ia)&&(Ia=null),Ii.forEach(iv),Ji.forEach(iv)}function Bs(e,t){e.blockedOn===t&&(e.blockedOn=null,Qf||(Qf=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Kw)))}var $s=null;function ov(e){$s!==e&&($s=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){$s===e&&($s=null);for(var t=0;t<e.length;t+=3){var r=e[t],o=e[t+1],c=e[t+2];if(typeof o!="function"){if(Xf(o||r)===null)continue;break}var d=at(r);d!==null&&(e.splice(t,3),t-=3,Gc(d,{pending:!0,data:c,method:r.method,action:o},o,c))}}))}function eo(e){function t(T){return Bs(T,e)}Qa!==null&&Bs(Qa,e),Za!==null&&Bs(Za,e),Ia!==null&&Bs(Ia,e),Ii.forEach(t),Ji.forEach(t);for(var r=0;r<Ja.length;r++){var o=Ja[r];o.blockedOn===e&&(o.blockedOn=null)}for(;0<Ja.length&&(r=Ja[0],r.blockedOn===null);)lv(r),r.blockedOn===null&&Ja.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(o=0;o<r.length;o+=3){var c=r[o],d=r[o+1],x=c[me]||null;if(typeof d=="function")x||ov(r);else if(x){var E=null;if(d&&d.hasAttribute("formAction")){if(c=d,x=d[me]||null)E=x.formAction;else if(Xf(c)!==null)continue}else E=x.action;typeof E=="function"?r[o+1]=E:(r.splice(o,3),o-=3),ov(r)}}}function Zf(e){this._internalRoot=e}Vs.prototype.render=Zf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var r=t.current,o=fn();ev(r,o,e,t,null,null)},Vs.prototype.unmount=Zf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ev(e.current,2,null,e,null,null),Es(),t[Se]=null}};function Vs(e){this._internalRoot=e}Vs.prototype.unstable_scheduleHydration=function(e){if(e){var t=M();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Ja.length&&t!==0&&t<Ja[r].priority;r++);Ja.splice(r,0,e),r===0&&lv(e)}};var sv=a.version;if(sv!=="19.1.1")throw Error(i(527,sv,"19.1.1"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=p(t),e=e!==null?m(e):null,e=e===null?null:e.stateNode,e};var Gw={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ys=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ys.isDisabled&&Ys.supportsFiber)try{Zt=Ys.inject(Gw),vt=Ys}catch{}}return ao.createRoot=function(e,t){if(!s(e))throw Error(i(299));var r=!1,o="",c=_p,d=Cp,x=Np,E=null;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(x=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(E=t.unstable_transitionCallbacks)),t=Jg(e,1,!1,null,null,r,o,c,d,x,E,null),e[Se]=t.current,Mf(e),new Zf(t)},ao.hydrateRoot=function(e,t,r){if(!s(e))throw Error(i(299));var o=!1,c="",d=_p,x=Cp,E=Np,T=null,q=null;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(c=r.identifierPrefix),r.onUncaughtError!==void 0&&(d=r.onUncaughtError),r.onCaughtError!==void 0&&(x=r.onCaughtError),r.onRecoverableError!==void 0&&(E=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(T=r.unstable_transitionCallbacks),r.formState!==void 0&&(q=r.formState)),t=Jg(e,1,!0,t,r??null,o,c,d,x,E,T,q),t.context=Wg(null),r=t.current,o=fn(),o=oi(o),c=ka(o),c.callback=null,za(r,c,o),r=o,t.current.lanes=r,br(t,r),Xn(t),e[Se]=t.current,Mf(e),new Vs(t)},ao.version="19.1.1",ao}var Pv;function xE(){if(Pv)return ed.exports;Pv=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),ed.exports=bE(),ed.exports}var wE=xE();/**
54
+ `+r.stack}}function xn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Lh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gx(e){var t=Lh(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var u=r.get,d=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(x){o=""+x,d.call(this,x)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return o},setValue:function(x){o=""+x},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zo(e){e._valueTracker||(e._valueTracker=Gx(e))}function kh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),o="";return e&&(o=Lh(e)?e.checked?"true":"false":e.value),e=o,e!==r?(t.setValue(e),!0):!1}function Uo(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 Kx=/[\n"\\]/g;function wn(e){return e.replace(Kx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Kc(e,t,r,o,u,d,x,_){e.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.type=x:e.removeAttribute("type"),t!=null?x==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+xn(t)):e.value!==""+xn(t)&&(e.value=""+xn(t)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),t!=null?Xc(e,x,xn(t)):r!=null?Xc(e,x,xn(r)):o!=null&&e.removeAttribute("value"),u==null&&d!=null&&(e.defaultChecked=!!d),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?e.name=""+xn(_):e.removeAttribute("name")}function zh(e,t,r,o,u,d,x,_){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||r!=null){if(!(d!=="submit"&&d!=="reset"||t!=null))return;r=r!=null?""+xn(r):"",t=t!=null?""+xn(t):r,_||t===e.value||(e.value=t),e.defaultValue=t}o=o??u,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=_?e.checked:!!o,e.defaultChecked=!!o,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x)}function Xc(e,t,r){t==="number"&&Uo(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function al(e,t,r,o){if(e=e.options,t){t={};for(var u=0;u<r.length;u++)t["$"+r[u]]=!0;for(r=0;r<e.length;r++)u=t.hasOwnProperty("$"+e[r].value),e[r].selected!==u&&(e[r].selected=u),u&&o&&(e[r].defaultSelected=!0)}else{for(r=""+xn(r),t=null,u=0;u<e.length;u++){if(e[u].value===r){e[u].selected=!0,o&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Uh(e,t,r){if(t!=null&&(t=""+xn(t),t!==e.value&&(e.value=t),r==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=r!=null?""+xn(r):""}function Ph(e,t,r,o){if(t==null){if(o!=null){if(r!=null)throw Error(i(92));if(ee(o)){if(1<o.length)throw Error(i(93));o=o[0]}r=o}r==null&&(r=""),t=r}r=xn(t),e.defaultValue=r,o=e.textContent,o===r&&o!==""&&o!==null&&(e.value=o)}function rl(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Xx=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 Hh(e,t,r){var o=t.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,r):typeof r!="number"||r===0||Xx.has(t)?t==="float"?e.cssFloat=r:e[t]=(""+r).trim():e[t]=r+"px"}function Bh(e,t,r){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,r!=null){for(var o in r)!r.hasOwnProperty(o)||t!=null&&t.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var u in t)o=t[u],t.hasOwnProperty(u)&&r[u]!==o&&Hh(e,u,o)}else for(var d in t)t.hasOwnProperty(d)&&Hh(e,d,t[d])}function Qc(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 Qx=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"]]),Ix=/^[\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 Po(e){return Ix.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Ic=null;function Zc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ll=null,il=null;function $h(e){var t=at(e);if(t&&(e=t.stateNode)){var r=e[pe]||null;e:switch(e=t.stateNode,t.type){case"input":if(Kc(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+wn(""+t)+'"][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var u=o[pe]||null;if(!u)throw Error(i(90));Kc(o,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<r.length;t++)o=r[t],o.form===e.form&&kh(o)}break e;case"textarea":Uh(e,r.value,r.defaultValue);break e;case"select":t=r.value,t!=null&&al(e,!!r.multiple,t,!1)}}}var Jc=!1;function Vh(e,t,r){if(Jc)return e(t,r);Jc=!0;try{var o=e(t);return o}finally{if(Jc=!1,(ll!==null||il!==null)&&(_s(),ll&&(t=ll,e=il,il=ll=null,$h(t),e)))for(t=0;t<e.length;t++)$h(e[t])}}function ci(e,t){var r=e.stateNode;if(r===null)return null;var o=r[pe]||null;if(o===null)return null;r=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(i(231,t,typeof r));return r}var sa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wc=!1;if(sa)try{var ui={};Object.defineProperty(ui,"passive",{get:function(){Wc=!0}}),window.addEventListener("test",ui,ui),window.removeEventListener("test",ui,ui)}catch{Wc=!1}var Da=null,eu=null,Ho=null;function qh(){if(Ho)return Ho;var e,t=eu,r=t.length,o,u="value"in Da?Da.value:Da.textContent,d=u.length;for(e=0;e<r&&t[e]===u[e];e++);var x=r-e;for(o=1;o<=x&&t[r-o]===u[d-o];o++);return Ho=u.slice(e,1<o?1-o:void 0)}function Bo(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 $o(){return!0}function Fh(){return!1}function Zt(e){function t(r,o,u,d,x){this._reactName=r,this._targetInst=u,this.type=o,this.nativeEvent=d,this.target=x,this.currentTarget=null;for(var _ in e)e.hasOwnProperty(_)&&(r=e[_],this[_]=r?r(d):d[_]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?$o:Fh,this.isPropagationStopped=Fh,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=$o)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=$o)},persist:function(){},isPersistent:$o}),t}var Er={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vo=Zt(Er),fi=v({},Er,{view:0,detail:0}),Zx=Zt(fi),tu,nu,di,qo=v({},fi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ru,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!==di&&(di&&e.type==="mousemove"?(tu=e.screenX-di.screenX,nu=e.screenY-di.screenY):nu=tu=0,di=e),tu)},movementY:function(e){return"movementY"in e?e.movementY:nu}}),Yh=Zt(qo),Jx=v({},qo,{dataTransfer:0}),Wx=Zt(Jx),e1=v({},fi,{relatedTarget:0}),au=Zt(e1),t1=v({},Er,{animationName:0,elapsedTime:0,pseudoElement:0}),n1=Zt(t1),a1=v({},Er,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),r1=Zt(a1),l1=v({},Er,{data:0}),Gh=Zt(l1),i1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},o1={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"},s1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function c1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=s1[e])?!!t[e]:!1}function ru(){return c1}var u1=v({},fi,{key:function(e){if(e.key){var t=i1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Bo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?o1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ru,charCode:function(e){return e.type==="keypress"?Bo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Bo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),f1=Zt(u1),d1=v({},qo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Kh=Zt(d1),h1=v({},fi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ru}),m1=Zt(h1),p1=v({},Er,{propertyName:0,elapsedTime:0,pseudoElement:0}),g1=Zt(p1),v1=v({},qo,{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}),y1=Zt(v1),b1=v({},Er,{newState:0,oldState:0}),x1=Zt(b1),w1=[9,13,27,32],lu=sa&&"CompositionEvent"in window,hi=null;sa&&"documentMode"in document&&(hi=document.documentMode);var S1=sa&&"TextEvent"in window&&!hi,Xh=sa&&(!lu||hi&&8<hi&&11>=hi),Qh=" ",Ih=!1;function Zh(e,t){switch(e){case"keyup":return w1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ol=!1;function _1(e,t){switch(e){case"compositionend":return Jh(t);case"keypress":return t.which!==32?null:(Ih=!0,Qh);case"textInput":return e=t.data,e===Qh&&Ih?null:e;default:return null}}function E1(e,t){if(ol)return e==="compositionend"||!lu&&Zh(e,t)?(e=qh(),Ho=eu=Da=null,ol=!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 Xh&&t.locale!=="ko"?null:t.data;default:return null}}var C1={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 Wh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!C1[e.type]:t==="textarea"}function em(e,t,r,o){ll?il?il.push(o):il=[o]:ll=o,t=Os(t,"onChange"),0<t.length&&(r=new Vo("onChange","change",null,r,o),e.push({event:r,listeners:t}))}var mi=null,pi=null;function N1(e){Lg(e,0)}function Fo(e){var t=wt(e);if(kh(t))return e}function tm(e,t){if(e==="change")return t}var nm=!1;if(sa){var iu;if(sa){var ou="oninput"in document;if(!ou){var am=document.createElement("div");am.setAttribute("oninput","return;"),ou=typeof am.oninput=="function"}iu=ou}else iu=!1;nm=iu&&(!document.documentMode||9<document.documentMode)}function rm(){mi&&(mi.detachEvent("onpropertychange",lm),pi=mi=null)}function lm(e){if(e.propertyName==="value"&&Fo(pi)){var t=[];em(t,pi,e,Zc(e)),Vh(N1,t)}}function R1(e,t,r){e==="focusin"?(rm(),mi=t,pi=r,mi.attachEvent("onpropertychange",lm)):e==="focusout"&&rm()}function j1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Fo(pi)}function O1(e,t){if(e==="click")return Fo(t)}function A1(e,t){if(e==="input"||e==="change")return Fo(t)}function T1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ln=typeof Object.is=="function"?Object.is:T1;function gi(e,t){if(ln(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(o=0;o<r.length;o++){var u=r[o];if(!Ze.call(t,u)||!ln(e[u],t[u]))return!1}return!0}function im(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function om(e,t){var r=im(e);e=0;for(var o;r;){if(r.nodeType===3){if(o=e+r.textContent.length,e<=t&&o>=t)return{node:r,offset:t-e};e=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=im(r)}}function sm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?sm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function cm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Uo(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Uo(e.document)}return t}function su(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 M1=sa&&"documentMode"in document&&11>=document.documentMode,sl=null,cu=null,vi=null,uu=!1;function um(e,t,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;uu||sl==null||sl!==Uo(o)||(o=sl,"selectionStart"in o&&su(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),vi&&gi(vi,o)||(vi=o,o=Os(cu,"onSelect"),0<o.length&&(t=new Vo("onSelect","select",null,t,r),e.push({event:t,listeners:o}),t.target=sl)))}function Cr(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var cl={animationend:Cr("Animation","AnimationEnd"),animationiteration:Cr("Animation","AnimationIteration"),animationstart:Cr("Animation","AnimationStart"),transitionrun:Cr("Transition","TransitionRun"),transitionstart:Cr("Transition","TransitionStart"),transitioncancel:Cr("Transition","TransitionCancel"),transitionend:Cr("Transition","TransitionEnd")},fu={},fm={};sa&&(fm=document.createElement("div").style,"AnimationEvent"in window||(delete cl.animationend.animation,delete cl.animationiteration.animation,delete cl.animationstart.animation),"TransitionEvent"in window||delete cl.transitionend.transition);function Nr(e){if(fu[e])return fu[e];if(!cl[e])return e;var t=cl[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in fm)return fu[e]=t[r];return e}var dm=Nr("animationend"),hm=Nr("animationiteration"),mm=Nr("animationstart"),D1=Nr("transitionrun"),L1=Nr("transitionstart"),k1=Nr("transitioncancel"),pm=Nr("transitionend"),gm=new Map,du="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(" ");du.push("scrollEnd");function Dn(e,t){gm.set(e,t),rn(t,[e])}var vm=new WeakMap;function Sn(e,t){if(typeof e=="object"&&e!==null){var r=vm.get(e);return r!==void 0?r:(t={value:e,source:t,stack:ko(t)},vm.set(e,t),t)}return{value:e,source:t,stack:ko(t)}}var _n=[],ul=0,hu=0;function Yo(){for(var e=ul,t=hu=ul=0;t<e;){var r=_n[t];_n[t++]=null;var o=_n[t];_n[t++]=null;var u=_n[t];_n[t++]=null;var d=_n[t];if(_n[t++]=null,o!==null&&u!==null){var x=o.pending;x===null?u.next=u:(u.next=x.next,x.next=u),o.pending=u}d!==0&&ym(r,u,d)}}function Go(e,t,r,o){_n[ul++]=e,_n[ul++]=t,_n[ul++]=r,_n[ul++]=o,hu|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function mu(e,t,r,o){return Go(e,t,r,o),Ko(e)}function fl(e,t){return Go(e,null,null,t),Ko(e)}function ym(e,t,r){e.lanes|=r;var o=e.alternate;o!==null&&(o.lanes|=r);for(var u=!1,d=e.return;d!==null;)d.childLanes|=r,o=d.alternate,o!==null&&(o.childLanes|=r),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(u=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,u&&t!==null&&(u=31-Ht(r),e=d.hiddenUpdates,o=e[u],o===null?e[u]=[t]:o.push(t),t.lane=r|536870912),d):null}function Ko(e){if(50<Vi)throw Vi=0,wf=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var dl={};function z1(e,t,r,o){this.tag=e,this.key=r,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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function on(e,t,r,o){return new z1(e,t,r,o)}function pu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ca(e,t){var r=e.alternate;return r===null?(r=on(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function bm(e,t){e.flags&=65011714;var r=e.alternate;return r===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=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,t=r.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Xo(e,t,r,o,u,d){var x=0;if(o=e,typeof e=="function")pu(e)&&(x=1);else if(typeof e=="string")x=Pw(e,r,P.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case te:return e=on(31,r,t,u),e.elementType=te,e.lanes=d,e;case C:return Rr(r.children,u,d,t);case E:x=8,u|=24;break;case j:return e=on(12,r,t,u|2),e.elementType=j,e.lanes=d,e;case M:return e=on(13,r,t,u),e.elementType=M,e.lanes=d,e;case N:return e=on(19,r,t,u),e.elementType=N,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case R:case k:x=10;break e;case L:x=9;break e;case H:x=11;break e;case B:x=14;break e;case J:x=16,o=null;break e}x=29,r=Error(i(130,e===null?"null":typeof e,"")),o=null}return t=on(x,r,t,u),t.elementType=e,t.type=o,t.lanes=d,t}function Rr(e,t,r,o){return e=on(7,e,o,t),e.lanes=r,e}function gu(e,t,r){return e=on(6,e,null,t),e.lanes=r,e}function vu(e,t,r){return t=on(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var hl=[],ml=0,Qo=null,Io=0,En=[],Cn=0,jr=null,ua=1,fa="";function Or(e,t){hl[ml++]=Io,hl[ml++]=Qo,Qo=e,Io=t}function xm(e,t,r){En[Cn++]=ua,En[Cn++]=fa,En[Cn++]=jr,jr=e;var o=ua;e=fa;var u=32-Ht(o)-1;o&=~(1<<u),r+=1;var d=32-Ht(t)+u;if(30<d){var x=u-u%5;d=(o&(1<<x)-1).toString(32),o>>=x,u-=x,ua=1<<32-Ht(t)+u|r<<u|o,fa=d+e}else ua=1<<d|r<<u|o,fa=e}function yu(e){e.return!==null&&(Or(e,1),xm(e,1,0))}function bu(e){for(;e===Qo;)Qo=hl[--ml],hl[ml]=null,Io=hl[--ml],hl[ml]=null;for(;e===jr;)jr=En[--Cn],En[Cn]=null,fa=En[--Cn],En[Cn]=null,ua=En[--Cn],En[Cn]=null}var Qt=null,_t=null,tt=!1,Ar=null,Fn=!1,xu=Error(i(519));function Tr(e){var t=Error(i(418,""));throw xi(Sn(t,e)),xu}function wm(e){var t=e.stateNode,r=e.type,o=e.memoizedProps;switch(t[ce]=e,t[pe]=o,r){case"dialog":Ie("cancel",t),Ie("close",t);break;case"iframe":case"object":case"embed":Ie("load",t);break;case"video":case"audio":for(r=0;r<Fi.length;r++)Ie(Fi[r],t);break;case"source":Ie("error",t);break;case"img":case"image":case"link":Ie("error",t),Ie("load",t);break;case"details":Ie("toggle",t);break;case"input":Ie("invalid",t),zh(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0),zo(t);break;case"select":Ie("invalid",t);break;case"textarea":Ie("invalid",t),Ph(t,o.value,o.defaultValue,o.children),zo(t)}r=o.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||t.textContent===""+r||o.suppressHydrationWarning===!0||Pg(t.textContent,r)?(o.popover!=null&&(Ie("beforetoggle",t),Ie("toggle",t)),o.onScroll!=null&&Ie("scroll",t),o.onScrollEnd!=null&&Ie("scrollend",t),o.onClick!=null&&(t.onclick=As),t=!0):t=!1,t||Tr(e)}function Sm(e){for(Qt=e.return;Qt;)switch(Qt.tag){case 5:case 13:Fn=!1;return;case 27:case 3:Fn=!0;return;default:Qt=Qt.return}}function yi(e){if(e!==Qt)return!1;if(!tt)return Sm(e),tt=!0,!1;var t=e.tag,r;if((r=t!==3&&t!==27)&&((r=t===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||Uf(e.type,e.memoizedProps)),r=!r),r&&_t&&Tr(e),Sm(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(r=e.data,r==="/$"){if(t===0){_t=kn(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++;e=e.nextSibling}_t=null}}else t===27?(t=_t,Qa(e.type)?(e=$f,$f=null,_t=e):_t=t):_t=Qt?kn(e.stateNode.nextSibling):null;return!0}function bi(){_t=Qt=null,tt=!1}function _m(){var e=Ar;return e!==null&&(en===null?en=e:en.push.apply(en,e),Ar=null),e}function xi(e){Ar===null?Ar=[e]:Ar.push(e)}var wu=G(null),Mr=null,da=null;function La(e,t,r){K(wu,t._currentValue),t._currentValue=r}function ha(e){e._currentValue=wu.current,U(wu)}function Su(e,t,r){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===r)break;e=e.return}}function _u(e,t,r,o){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var d=u.dependencies;if(d!==null){var x=u.child;d=d.firstContext;e:for(;d!==null;){var _=d;d=u;for(var T=0;T<t.length;T++)if(_.context===t[T]){d.lanes|=r,_=d.alternate,_!==null&&(_.lanes|=r),Su(d.return,r,e),o||(x=null);break e}d=_.next}}else if(u.tag===18){if(x=u.return,x===null)throw Error(i(341));x.lanes|=r,d=x.alternate,d!==null&&(d.lanes|=r),Su(x,r,e),x=null}else x=u.child;if(x!==null)x.return=u;else for(x=u;x!==null;){if(x===e){x=null;break}if(u=x.sibling,u!==null){u.return=x.return,x=u;break}x=x.return}u=x}}function wi(e,t,r,o){e=null;for(var u=t,d=!1;u!==null;){if(!d){if((u.flags&524288)!==0)d=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var x=u.alternate;if(x===null)throw Error(i(387));if(x=x.memoizedProps,x!==null){var _=u.type;ln(u.pendingProps.value,x.value)||(e!==null?e.push(_):e=[_])}}else if(u===ve.current){if(x=u.alternate,x===null)throw Error(i(387));x.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Ii):e=[Ii])}u=u.return}e!==null&&_u(t,e,r,o),t.flags|=262144}function Zo(e){for(e=e.firstContext;e!==null;){if(!ln(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Dr(e){Mr=e,da=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Yt(e){return Em(Mr,e)}function Jo(e,t){return Mr===null&&Dr(e),Em(e,t)}function Em(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},da===null){if(e===null)throw Error(i(308));da=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else da=da.next=t;return r}var U1=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(r,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(r){return r()})}},P1=n.unstable_scheduleCallback,H1=n.unstable_NormalPriority,Mt={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Eu(){return{controller:new U1,data:new Map,refCount:0}}function Si(e){e.refCount--,e.refCount===0&&P1(H1,function(){e.controller.abort()})}var _i=null,Cu=0,pl=0,gl=null;function B1(e,t){if(_i===null){var r=_i=[];Cu=0,pl=jf(),gl={status:"pending",value:void 0,then:function(o){r.push(o)}}}return Cu++,t.then(Cm,Cm),t}function Cm(){if(--Cu===0&&_i!==null){gl!==null&&(gl.status="fulfilled");var e=_i;_i=null,pl=0,gl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function $1(e,t){var r=[],o={status:"pending",value:null,reason:null,then:function(u){r.push(u)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var u=0;u<r.length;u++)(0,r[u])(t)},function(u){for(o.status="rejected",o.reason=u,u=0;u<r.length;u++)(0,r[u])(void 0)}),o}var Nm=A.S;A.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&B1(e,t),Nm!==null&&Nm(e,t)};var Lr=G(null);function Nu(){var e=Lr.current;return e!==null?e:ht.pooledCache}function Wo(e,t){t===null?K(Lr,Lr.current):K(Lr,t.pool)}function Rm(){var e=Nu();return e===null?null:{parent:Mt._currentValue,pool:e}}var Ei=Error(i(460)),jm=Error(i(474)),es=Error(i(542)),Ru={then:function(){}};function Om(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ts(){}function Am(e,t,r){switch(r=e[r],r===void 0?e.push(t):r!==t&&(t.then(ts,ts),t=r),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Mm(e),e;default:if(typeof t.status=="string")t.then(ts,ts);else{if(e=ht,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(o){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=o}},function(o){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Mm(e),e}throw Ci=t,Ei}}var Ci=null;function Tm(){if(Ci===null)throw Error(i(459));var e=Ci;return Ci=null,e}function Mm(e){if(e===Ei||e===es)throw Error(i(483))}var ka=!1;function ju(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ou(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 za(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ua(e,t,r){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(rt&2)!==0){var u=o.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),o.pending=t,t=Ko(e),ym(e,null,r),t}return Go(e,o,t,r),Ko(e)}function Ni(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,Sr(e,r)}}function Au(e,t){var r=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,r===o)){var u=null,d=null;if(r=r.firstBaseUpdate,r!==null){do{var x={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};d===null?u=d=x:d=d.next=x,r=r.next}while(r!==null);d===null?u=d=t:d=d.next=t}else u=d=t;r={baseState:o.baseState,firstBaseUpdate:u,lastBaseUpdate:d,shared:o.shared,callbacks:o.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}var Tu=!1;function Ri(){if(Tu){var e=gl;if(e!==null)throw e}}function ji(e,t,r,o){Tu=!1;var u=e.updateQueue;ka=!1;var d=u.firstBaseUpdate,x=u.lastBaseUpdate,_=u.shared.pending;if(_!==null){u.shared.pending=null;var T=_,Y=T.next;T.next=null,x===null?d=Y:x.next=Y,x=T;var ne=e.alternate;ne!==null&&(ne=ne.updateQueue,_=ne.lastBaseUpdate,_!==x&&(_===null?ne.firstBaseUpdate=Y:_.next=Y,ne.lastBaseUpdate=T))}if(d!==null){var se=u.baseState;x=0,ne=Y=T=null,_=d;do{var I=_.lane&-536870913,Z=I!==_.lane;if(Z?(We&I)===I:(o&I)===I){I!==0&&I===pl&&(Tu=!0),ne!==null&&(ne=ne.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var ze=e,Me=_;I=t;var ct=r;switch(Me.tag){case 1:if(ze=Me.payload,typeof ze=="function"){se=ze.call(ct,se,I);break e}se=ze;break e;case 3:ze.flags=ze.flags&-65537|128;case 0:if(ze=Me.payload,I=typeof ze=="function"?ze.call(ct,se,I):ze,I==null)break e;se=v({},se,I);break e;case 2:ka=!0}}I=_.callback,I!==null&&(e.flags|=64,Z&&(e.flags|=8192),Z=u.callbacks,Z===null?u.callbacks=[I]:Z.push(I))}else Z={lane:I,tag:_.tag,payload:_.payload,callback:_.callback,next:null},ne===null?(Y=ne=Z,T=se):ne=ne.next=Z,x|=I;if(_=_.next,_===null){if(_=u.shared.pending,_===null)break;Z=_,_=Z.next,Z.next=null,u.lastBaseUpdate=Z,u.shared.pending=null}}while(!0);ne===null&&(T=se),u.baseState=T,u.firstBaseUpdate=Y,u.lastBaseUpdate=ne,d===null&&(u.shared.lanes=0),Ya|=x,e.lanes=x,e.memoizedState=se}}function Dm(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function Lm(e,t){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)Dm(r[e],t)}var vl=G(null),ns=G(0);function km(e,t){e=xa,K(ns,e),K(vl,t),xa=e|t.baseLanes}function Mu(){K(ns,xa),K(vl,vl.current)}function Du(){xa=ns.current,U(vl),U(ns)}var Pa=0,Ve=null,ot=null,Ot=null,as=!1,yl=!1,kr=!1,rs=0,Oi=0,bl=null,V1=0;function Nt(){throw Error(i(321))}function Lu(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!ln(e[r],t[r]))return!1;return!0}function ku(e,t,r,o,u,d){return Pa=d,Ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,A.H=e===null||e.memoizedState===null?yp:bp,kr=!1,d=r(o,u),kr=!1,yl&&(d=Um(t,r,o,u)),zm(e),d}function zm(e){A.H=us;var t=ot!==null&&ot.next!==null;if(Pa=0,Ot=ot=Ve=null,as=!1,Oi=0,bl=null,t)throw Error(i(300));e===null||kt||(e=e.dependencies,e!==null&&Zo(e)&&(kt=!0))}function Um(e,t,r,o){Ve=e;var u=0;do{if(yl&&(bl=null),Oi=0,yl=!1,25<=u)throw Error(i(301));if(u+=1,Ot=ot=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}A.H=Q1,d=t(r,o)}while(yl);return d}function q1(){var e=A.H,t=e.useState()[0];return t=typeof t.then=="function"?Ai(t):t,e=e.useState()[0],(ot!==null?ot.memoizedState:null)!==e&&(Ve.flags|=1024),t}function zu(){var e=rs!==0;return rs=0,e}function Uu(e,t,r){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r}function Pu(e){if(as){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}as=!1}Pa=0,Ot=ot=Ve=null,yl=!1,Oi=rs=0,bl=null}function Jt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ot===null?Ve.memoizedState=Ot=e:Ot=Ot.next=e,Ot}function At(){if(ot===null){var e=Ve.alternate;e=e!==null?e.memoizedState:null}else e=ot.next;var t=Ot===null?Ve.memoizedState:Ot.next;if(t!==null)Ot=t,ot=e;else{if(e===null)throw Ve.alternate===null?Error(i(467)):Error(i(310));ot=e,e={memoizedState:ot.memoizedState,baseState:ot.baseState,baseQueue:ot.baseQueue,queue:ot.queue,next:null},Ot===null?Ve.memoizedState=Ot=e:Ot=Ot.next=e}return Ot}function Hu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ai(e){var t=Oi;return Oi+=1,bl===null&&(bl=[]),e=Am(bl,e,t),t=Ve,(Ot===null?t.memoizedState:Ot.next)===null&&(t=t.alternate,A.H=t===null||t.memoizedState===null?yp:bp),e}function ls(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ai(e);if(e.$$typeof===k)return Yt(e)}throw Error(i(438,String(e)))}function Bu(e){var t=null,r=Ve.updateQueue;if(r!==null&&(t=r.memoCache),t==null){var o=Ve.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),r===null&&(r=Hu(),Ve.updateQueue=r),r.memoCache=t,r=t.data[t.index],r===void 0)for(r=t.data[t.index]=Array(e),o=0;o<e;o++)r[o]=ae;return t.index++,r}function ma(e,t){return typeof t=="function"?t(e):t}function is(e){var t=At();return $u(t,ot,e)}function $u(e,t,r){var o=e.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=r;var u=e.baseQueue,d=o.pending;if(d!==null){if(u!==null){var x=u.next;u.next=d.next,d.next=x}t.baseQueue=u=d,o.pending=null}if(d=e.baseState,u===null)e.memoizedState=d;else{t=u.next;var _=x=null,T=null,Y=t,ne=!1;do{var se=Y.lane&-536870913;if(se!==Y.lane?(We&se)===se:(Pa&se)===se){var I=Y.revertLane;if(I===0)T!==null&&(T=T.next={lane:0,revertLane:0,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null}),se===pl&&(ne=!0);else if((Pa&I)===I){Y=Y.next,I===pl&&(ne=!0);continue}else se={lane:0,revertLane:Y.revertLane,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},T===null?(_=T=se,x=d):T=T.next=se,Ve.lanes|=I,Ya|=I;se=Y.action,kr&&r(d,se),d=Y.hasEagerState?Y.eagerState:r(d,se)}else I={lane:se,revertLane:Y.revertLane,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},T===null?(_=T=I,x=d):T=T.next=I,Ve.lanes|=se,Ya|=se;Y=Y.next}while(Y!==null&&Y!==t);if(T===null?x=d:T.next=_,!ln(d,e.memoizedState)&&(kt=!0,ne&&(r=gl,r!==null)))throw r;e.memoizedState=d,e.baseState=x,e.baseQueue=T,o.lastRenderedState=d}return u===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Vu(e){var t=At(),r=t.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=e;var o=r.dispatch,u=r.pending,d=t.memoizedState;if(u!==null){r.pending=null;var x=u=u.next;do d=e(d,x.action),x=x.next;while(x!==u);ln(d,t.memoizedState)||(kt=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),r.lastRenderedState=d}return[d,o]}function Pm(e,t,r){var o=Ve,u=At(),d=tt;if(d){if(r===void 0)throw Error(i(407));r=r()}else r=t();var x=!ln((ot||u).memoizedState,r);x&&(u.memoizedState=r,kt=!0),u=u.queue;var _=$m.bind(null,o,u,e);if(Ti(2048,8,_,[e]),u.getSnapshot!==t||x||Ot!==null&&Ot.memoizedState.tag&1){if(o.flags|=2048,xl(9,os(),Bm.bind(null,o,u,r,t),null),ht===null)throw Error(i(349));d||(Pa&124)!==0||Hm(o,t,r)}return r}function Hm(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Ve.updateQueue,t===null?(t=Hu(),Ve.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function Bm(e,t,r,o){t.value=r,t.getSnapshot=o,Vm(t)&&qm(e)}function $m(e,t,r){return r(function(){Vm(t)&&qm(e)})}function Vm(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!ln(e,r)}catch{return!0}}function qm(e){var t=fl(e,2);t!==null&&dn(t,e,2)}function qu(e){var t=Jt();if(typeof e=="function"){var r=e;if(e=r(),kr){Mn(!0);try{r()}finally{Mn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ma,lastRenderedState:e},t}function Fm(e,t,r,o){return e.baseState=r,$u(e,ot,typeof o=="function"?o:ma)}function F1(e,t,r,o,u){if(cs(e))throw Error(i(485));if(e=t.action,e!==null){var d={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){d.listeners.push(x)}};A.T!==null?r(!0):d.isTransition=!1,o(d),r=t.pending,r===null?(d.next=t.pending=d,Ym(t,d)):(d.next=r.next,t.pending=r.next=d)}}function Ym(e,t){var r=t.action,o=t.payload,u=e.state;if(t.isTransition){var d=A.T,x={};A.T=x;try{var _=r(u,o),T=A.S;T!==null&&T(x,_),Gm(e,t,_)}catch(Y){Fu(e,t,Y)}finally{A.T=d}}else try{d=r(u,o),Gm(e,t,d)}catch(Y){Fu(e,t,Y)}}function Gm(e,t,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(o){Km(e,t,o)},function(o){return Fu(e,t,o)}):Km(e,t,r)}function Km(e,t,r){t.status="fulfilled",t.value=r,Xm(t),e.state=r,t=e.pending,t!==null&&(r=t.next,r===t?e.pending=null:(r=r.next,t.next=r,Ym(e,r)))}function Fu(e,t,r){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=r,Xm(t),t=t.next;while(t!==o)}e.action=null}function Xm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Qm(e,t){return t}function Im(e,t){if(tt){var r=ht.formState;if(r!==null){e:{var o=Ve;if(tt){if(_t){t:{for(var u=_t,d=Fn;u.nodeType!==8;){if(!d){u=null;break t}if(u=kn(u.nextSibling),u===null){u=null;break t}}d=u.data,u=d==="F!"||d==="F"?u:null}if(u){_t=kn(u.nextSibling),o=u.data==="F!";break e}}Tr(o)}o=!1}o&&(t=r[0])}}return r=Jt(),r.memoizedState=r.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qm,lastRenderedState:t},r.queue=o,r=pp.bind(null,Ve,o),o.dispatch=r,o=qu(!1),d=Qu.bind(null,Ve,!1,o.queue),o=Jt(),u={state:t,dispatch:null,action:e,pending:null},o.queue=u,r=F1.bind(null,Ve,u,d,r),u.dispatch=r,o.memoizedState=e,[t,r,!1]}function Zm(e){var t=At();return Jm(t,ot,e)}function Jm(e,t,r){if(t=$u(e,t,Qm)[0],e=is(ma)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var o=Ai(t)}catch(x){throw x===Ei?es:x}else o=t;t=At();var u=t.queue,d=u.dispatch;return r!==t.memoizedState&&(Ve.flags|=2048,xl(9,os(),Y1.bind(null,u,r),null)),[o,d,e]}function Y1(e,t){e.action=t}function Wm(e){var t=At(),r=ot;if(r!==null)return Jm(t,r,e);At(),t=t.memoizedState,r=At();var o=r.queue.dispatch;return r.memoizedState=e,[t,o,!1]}function xl(e,t,r,o){return e={tag:e,create:r,deps:o,inst:t,next:null},t=Ve.updateQueue,t===null&&(t=Hu(),Ve.updateQueue=t),r=t.lastEffect,r===null?t.lastEffect=e.next=e:(o=r.next,r.next=e,e.next=o,t.lastEffect=e),e}function os(){return{destroy:void 0,resource:void 0}}function ep(){return At().memoizedState}function ss(e,t,r,o){var u=Jt();o=o===void 0?null:o,Ve.flags|=e,u.memoizedState=xl(1|t,os(),r,o)}function Ti(e,t,r,o){var u=At();o=o===void 0?null:o;var d=u.memoizedState.inst;ot!==null&&o!==null&&Lu(o,ot.memoizedState.deps)?u.memoizedState=xl(t,d,r,o):(Ve.flags|=e,u.memoizedState=xl(1|t,d,r,o))}function tp(e,t){ss(8390656,8,e,t)}function np(e,t){Ti(2048,8,e,t)}function ap(e,t){return Ti(4,2,e,t)}function rp(e,t){return Ti(4,4,e,t)}function lp(e,t){if(typeof t=="function"){e=e();var r=t(e);return function(){typeof r=="function"?r():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ip(e,t,r){r=r!=null?r.concat([e]):null,Ti(4,4,lp.bind(null,t,e),r)}function Yu(){}function op(e,t){var r=At();t=t===void 0?null:t;var o=r.memoizedState;return t!==null&&Lu(t,o[1])?o[0]:(r.memoizedState=[e,t],e)}function sp(e,t){var r=At();t=t===void 0?null:t;var o=r.memoizedState;if(t!==null&&Lu(t,o[1]))return o[0];if(o=e(),kr){Mn(!0);try{e()}finally{Mn(!1)}}return r.memoizedState=[o,t],o}function Gu(e,t,r){return r===void 0||(Pa&1073741824)!==0?e.memoizedState=t:(e.memoizedState=r,e=fg(),Ve.lanes|=e,Ya|=e,r)}function cp(e,t,r,o){return ln(r,t)?r:vl.current!==null?(e=Gu(e,r,o),ln(e,t)||(kt=!0),e):(Pa&42)===0?(kt=!0,e.memoizedState=r):(e=fg(),Ve.lanes|=e,Ya|=e,t)}function up(e,t,r,o,u){var d=X.p;X.p=d!==0&&8>d?d:8;var x=A.T,_={};A.T=_,Qu(e,!1,t,r);try{var T=u(),Y=A.S;if(Y!==null&&Y(_,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var ne=$1(T,o);Mi(e,t,ne,fn(e))}else Mi(e,t,o,fn(e))}catch(se){Mi(e,t,{then:function(){},status:"rejected",reason:se},fn())}finally{X.p=d,A.T=x}}function G1(){}function Ku(e,t,r,o){if(e.tag!==5)throw Error(i(476));var u=fp(e).queue;up(e,u,t,V,r===null?G1:function(){return dp(e),r(o)})}function fp(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ma,lastRenderedState:V},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ma,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function dp(e){var t=fp(e).next.queue;Mi(e,t,{},fn())}function Xu(){return Yt(Ii)}function hp(){return At().memoizedState}function mp(){return At().memoizedState}function K1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=fn();e=za(r);var o=Ua(t,e,r);o!==null&&(dn(o,t,r),Ni(o,t,r)),t={cache:Eu()},e.payload=t;return}t=t.return}}function X1(e,t,r){var o=fn();r={lane:o,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null},cs(e)?gp(t,r):(r=mu(e,t,r,o),r!==null&&(dn(r,e,o),vp(r,t,o)))}function pp(e,t,r){var o=fn();Mi(e,t,r,o)}function Mi(e,t,r,o){var u={lane:o,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null};if(cs(e))gp(t,u);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var x=t.lastRenderedState,_=d(x,r);if(u.hasEagerState=!0,u.eagerState=_,ln(_,x))return Go(e,t,u,0),ht===null&&Yo(),!1}catch{}finally{}if(r=mu(e,t,u,o),r!==null)return dn(r,e,o),vp(r,t,o),!0}return!1}function Qu(e,t,r,o){if(o={lane:2,revertLane:jf(),action:o,hasEagerState:!1,eagerState:null,next:null},cs(e)){if(t)throw Error(i(479))}else t=mu(e,r,o,2),t!==null&&dn(t,e,2)}function cs(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}function gp(e,t){yl=as=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function vp(e,t,r){if((r&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,Sr(e,r)}}var us={readContext:Yt,use:ls,useCallback:Nt,useContext:Nt,useEffect:Nt,useImperativeHandle:Nt,useLayoutEffect:Nt,useInsertionEffect:Nt,useMemo:Nt,useReducer:Nt,useRef:Nt,useState:Nt,useDebugValue:Nt,useDeferredValue:Nt,useTransition:Nt,useSyncExternalStore:Nt,useId:Nt,useHostTransitionStatus:Nt,useFormState:Nt,useActionState:Nt,useOptimistic:Nt,useMemoCache:Nt,useCacheRefresh:Nt},yp={readContext:Yt,use:ls,useCallback:function(e,t){return Jt().memoizedState=[e,t===void 0?null:t],e},useContext:Yt,useEffect:tp,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,ss(4194308,4,lp.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ss(4194308,4,e,t)},useInsertionEffect:function(e,t){ss(4,2,e,t)},useMemo:function(e,t){var r=Jt();t=t===void 0?null:t;var o=e();if(kr){Mn(!0);try{e()}finally{Mn(!1)}}return r.memoizedState=[o,t],o},useReducer:function(e,t,r){var o=Jt();if(r!==void 0){var u=r(t);if(kr){Mn(!0);try{r(t)}finally{Mn(!1)}}}else u=t;return o.memoizedState=o.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},o.queue=e,e=e.dispatch=X1.bind(null,Ve,e),[o.memoizedState,e]},useRef:function(e){var t=Jt();return e={current:e},t.memoizedState=e},useState:function(e){e=qu(e);var t=e.queue,r=pp.bind(null,Ve,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:Yu,useDeferredValue:function(e,t){var r=Jt();return Gu(r,e,t)},useTransition:function(){var e=qu(!1);return e=up.bind(null,Ve,e.queue,!0,!1),Jt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var o=Ve,u=Jt();if(tt){if(r===void 0)throw Error(i(407));r=r()}else{if(r=t(),ht===null)throw Error(i(349));(We&124)!==0||Hm(o,t,r)}u.memoizedState=r;var d={value:r,getSnapshot:t};return u.queue=d,tp($m.bind(null,o,d,e),[e]),o.flags|=2048,xl(9,os(),Bm.bind(null,o,d,r,t),null),r},useId:function(){var e=Jt(),t=ht.identifierPrefix;if(tt){var r=fa,o=ua;r=(o&~(1<<32-Ht(o)-1)).toString(32)+r,t="«"+t+"R"+r,r=rs++,0<r&&(t+="H"+r.toString(32)),t+="»"}else r=V1++,t="«"+t+"r"+r.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Xu,useFormState:Im,useActionState:Im,useOptimistic:function(e){var t=Jt();t.memoizedState=t.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=r,t=Qu.bind(null,Ve,!0,r),r.dispatch=t,[e,t]},useMemoCache:Bu,useCacheRefresh:function(){return Jt().memoizedState=K1.bind(null,Ve)}},bp={readContext:Yt,use:ls,useCallback:op,useContext:Yt,useEffect:np,useImperativeHandle:ip,useInsertionEffect:ap,useLayoutEffect:rp,useMemo:sp,useReducer:is,useRef:ep,useState:function(){return is(ma)},useDebugValue:Yu,useDeferredValue:function(e,t){var r=At();return cp(r,ot.memoizedState,e,t)},useTransition:function(){var e=is(ma)[0],t=At().memoizedState;return[typeof e=="boolean"?e:Ai(e),t]},useSyncExternalStore:Pm,useId:hp,useHostTransitionStatus:Xu,useFormState:Zm,useActionState:Zm,useOptimistic:function(e,t){var r=At();return Fm(r,ot,e,t)},useMemoCache:Bu,useCacheRefresh:mp},Q1={readContext:Yt,use:ls,useCallback:op,useContext:Yt,useEffect:np,useImperativeHandle:ip,useInsertionEffect:ap,useLayoutEffect:rp,useMemo:sp,useReducer:Vu,useRef:ep,useState:function(){return Vu(ma)},useDebugValue:Yu,useDeferredValue:function(e,t){var r=At();return ot===null?Gu(r,e,t):cp(r,ot.memoizedState,e,t)},useTransition:function(){var e=Vu(ma)[0],t=At().memoizedState;return[typeof e=="boolean"?e:Ai(e),t]},useSyncExternalStore:Pm,useId:hp,useHostTransitionStatus:Xu,useFormState:Wm,useActionState:Wm,useOptimistic:function(e,t){var r=At();return ot!==null?Fm(r,ot,e,t):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:Bu,useCacheRefresh:mp},wl=null,Di=0;function fs(e){var t=Di;return Di+=1,wl===null&&(wl=[]),Am(wl,e,t)}function Li(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ds(e,t){throw t.$$typeof===b?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function xp(e){var t=e._init;return t(e._payload)}function wp(e){function t($,z){if(e){var F=$.deletions;F===null?($.deletions=[z],$.flags|=16):F.push(z)}}function r($,z){if(!e)return null;for(;z!==null;)t($,z),z=z.sibling;return null}function o($){for(var z=new Map;$!==null;)$.key!==null?z.set($.key,$):z.set($.index,$),$=$.sibling;return z}function u($,z){return $=ca($,z),$.index=0,$.sibling=null,$}function d($,z,F){return $.index=F,e?(F=$.alternate,F!==null?(F=F.index,F<z?($.flags|=67108866,z):F):($.flags|=67108866,z)):($.flags|=1048576,z)}function x($){return e&&$.alternate===null&&($.flags|=67108866),$}function _($,z,F,le){return z===null||z.tag!==6?(z=gu(F,$.mode,le),z.return=$,z):(z=u(z,F),z.return=$,z)}function T($,z,F,le){var be=F.type;return be===C?ne($,z,F.props.children,le,F.key):z!==null&&(z.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===J&&xp(be)===z.type)?(z=u(z,F.props),Li(z,F),z.return=$,z):(z=Xo(F.type,F.key,F.props,null,$.mode,le),Li(z,F),z.return=$,z)}function Y($,z,F,le){return z===null||z.tag!==4||z.stateNode.containerInfo!==F.containerInfo||z.stateNode.implementation!==F.implementation?(z=vu(F,$.mode,le),z.return=$,z):(z=u(z,F.children||[]),z.return=$,z)}function ne($,z,F,le,be){return z===null||z.tag!==7?(z=Rr(F,$.mode,le,be),z.return=$,z):(z=u(z,F),z.return=$,z)}function se($,z,F){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=gu(""+z,$.mode,F),z.return=$,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case w:return F=Xo(z.type,z.key,z.props,null,$.mode,F),Li(F,z),F.return=$,F;case S:return z=vu(z,$.mode,F),z.return=$,z;case J:var le=z._init;return z=le(z._payload),se($,z,F)}if(ee(z)||fe(z))return z=Rr(z,$.mode,F,null),z.return=$,z;if(typeof z.then=="function")return se($,fs(z),F);if(z.$$typeof===k)return se($,Jo($,z),F);ds($,z)}return null}function I($,z,F,le){var be=z!==null?z.key:null;if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return be!==null?null:_($,z,""+F,le);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case w:return F.key===be?T($,z,F,le):null;case S:return F.key===be?Y($,z,F,le):null;case J:return be=F._init,F=be(F._payload),I($,z,F,le)}if(ee(F)||fe(F))return be!==null?null:ne($,z,F,le,null);if(typeof F.then=="function")return I($,z,fs(F),le);if(F.$$typeof===k)return I($,z,Jo($,F),le);ds($,F)}return null}function Z($,z,F,le,be){if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return $=$.get(F)||null,_(z,$,""+le,be);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case w:return $=$.get(le.key===null?F:le.key)||null,T(z,$,le,be);case S:return $=$.get(le.key===null?F:le.key)||null,Y(z,$,le,be);case J:var Ge=le._init;return le=Ge(le._payload),Z($,z,F,le,be)}if(ee(le)||fe(le))return $=$.get(F)||null,ne(z,$,le,be,null);if(typeof le.then=="function")return Z($,z,F,fs(le),be);if(le.$$typeof===k)return Z($,z,F,Jo(z,le),be);ds(z,le)}return null}function ze($,z,F,le){for(var be=null,Ge=null,je=z,De=z=0,Ut=null;je!==null&&De<F.length;De++){je.index>De?(Ut=je,je=null):Ut=je.sibling;var et=I($,je,F[De],le);if(et===null){je===null&&(je=Ut);break}e&&je&&et.alternate===null&&t($,je),z=d(et,z,De),Ge===null?be=et:Ge.sibling=et,Ge=et,je=Ut}if(De===F.length)return r($,je),tt&&Or($,De),be;if(je===null){for(;De<F.length;De++)je=se($,F[De],le),je!==null&&(z=d(je,z,De),Ge===null?be=je:Ge.sibling=je,Ge=je);return tt&&Or($,De),be}for(je=o(je);De<F.length;De++)Ut=Z(je,$,De,F[De],le),Ut!==null&&(e&&Ut.alternate!==null&&je.delete(Ut.key===null?De:Ut.key),z=d(Ut,z,De),Ge===null?be=Ut:Ge.sibling=Ut,Ge=Ut);return e&&je.forEach(function(er){return t($,er)}),tt&&Or($,De),be}function Me($,z,F,le){if(F==null)throw Error(i(151));for(var be=null,Ge=null,je=z,De=z=0,Ut=null,et=F.next();je!==null&&!et.done;De++,et=F.next()){je.index>De?(Ut=je,je=null):Ut=je.sibling;var er=I($,je,et.value,le);if(er===null){je===null&&(je=Ut);break}e&&je&&er.alternate===null&&t($,je),z=d(er,z,De),Ge===null?be=er:Ge.sibling=er,Ge=er,je=Ut}if(et.done)return r($,je),tt&&Or($,De),be;if(je===null){for(;!et.done;De++,et=F.next())et=se($,et.value,le),et!==null&&(z=d(et,z,De),Ge===null?be=et:Ge.sibling=et,Ge=et);return tt&&Or($,De),be}for(je=o(je);!et.done;De++,et=F.next())et=Z(je,$,De,et.value,le),et!==null&&(e&&et.alternate!==null&&je.delete(et.key===null?De:et.key),z=d(et,z,De),Ge===null?be=et:Ge.sibling=et,Ge=et);return e&&je.forEach(function(Iw){return t($,Iw)}),tt&&Or($,De),be}function ct($,z,F,le){if(typeof F=="object"&&F!==null&&F.type===C&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case w:e:{for(var be=F.key;z!==null;){if(z.key===be){if(be=F.type,be===C){if(z.tag===7){r($,z.sibling),le=u(z,F.props.children),le.return=$,$=le;break e}}else if(z.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===J&&xp(be)===z.type){r($,z.sibling),le=u(z,F.props),Li(le,F),le.return=$,$=le;break e}r($,z);break}else t($,z);z=z.sibling}F.type===C?(le=Rr(F.props.children,$.mode,le,F.key),le.return=$,$=le):(le=Xo(F.type,F.key,F.props,null,$.mode,le),Li(le,F),le.return=$,$=le)}return x($);case S:e:{for(be=F.key;z!==null;){if(z.key===be)if(z.tag===4&&z.stateNode.containerInfo===F.containerInfo&&z.stateNode.implementation===F.implementation){r($,z.sibling),le=u(z,F.children||[]),le.return=$,$=le;break e}else{r($,z);break}else t($,z);z=z.sibling}le=vu(F,$.mode,le),le.return=$,$=le}return x($);case J:return be=F._init,F=be(F._payload),ct($,z,F,le)}if(ee(F))return ze($,z,F,le);if(fe(F)){if(be=fe(F),typeof be!="function")throw Error(i(150));return F=be.call(F),Me($,z,F,le)}if(typeof F.then=="function")return ct($,z,fs(F),le);if(F.$$typeof===k)return ct($,z,Jo($,F),le);ds($,F)}return typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint"?(F=""+F,z!==null&&z.tag===6?(r($,z.sibling),le=u(z,F),le.return=$,$=le):(r($,z),le=gu(F,$.mode,le),le.return=$,$=le),x($)):r($,z)}return function($,z,F,le){try{Di=0;var be=ct($,z,F,le);return wl=null,be}catch(je){if(je===Ei||je===es)throw je;var Ge=on(29,je,null,$.mode);return Ge.lanes=le,Ge.return=$,Ge}finally{}}}var Sl=wp(!0),Sp=wp(!1),Nn=G(null),Yn=null;function Ha(e){var t=e.alternate;K(Dt,Dt.current&1),K(Nn,e),Yn===null&&(t===null||vl.current!==null||t.memoizedState!==null)&&(Yn=e)}function _p(e){if(e.tag===22){if(K(Dt,Dt.current),K(Nn,e),Yn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Yn=e)}}else Ba()}function Ba(){K(Dt,Dt.current),K(Nn,Nn.current)}function pa(e){U(Nn),Yn===e&&(Yn=null),U(Dt)}var Dt=G(0);function hs(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||Bf(r)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Iu(e,t,r,o){t=e.memoizedState,r=r(o,t),r=r==null?t:v({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Zu={enqueueSetState:function(e,t,r){e=e._reactInternals;var o=fn(),u=za(o);u.payload=t,r!=null&&(u.callback=r),t=Ua(e,u,o),t!==null&&(dn(t,e,o),Ni(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var o=fn(),u=za(o);u.tag=1,u.payload=t,r!=null&&(u.callback=r),t=Ua(e,u,o),t!==null&&(dn(t,e,o),Ni(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=fn(),o=za(r);o.tag=2,t!=null&&(o.callback=t),t=Ua(e,o,r),t!==null&&(dn(t,e,r),Ni(t,e,r))}};function Ep(e,t,r,o,u,d,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,d,x):t.prototype&&t.prototype.isPureReactComponent?!gi(r,o)||!gi(u,d):!0}function Cp(e,t,r,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,o),t.state!==e&&Zu.enqueueReplaceState(t,t.state,null)}function zr(e,t){var r=t;if("ref"in t){r={};for(var o in t)o!=="ref"&&(r[o]=t[o])}if(e=e.defaultProps){r===t&&(r=v({},r));for(var u in e)r[u]===void 0&&(r[u]=e[u])}return r}var ms=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Np(e){ms(e)}function Rp(e){console.error(e)}function jp(e){ms(e)}function ps(e,t){try{var r=e.onUncaughtError;r(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function Op(e,t,r){try{var o=e.onCaughtError;o(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Ju(e,t,r){return r=za(r),r.tag=3,r.payload={element:null},r.callback=function(){ps(e,t)},r}function Ap(e){return e=za(e),e.tag=3,e}function Tp(e,t,r,o){var u=r.type.getDerivedStateFromError;if(typeof u=="function"){var d=o.value;e.payload=function(){return u(d)},e.callback=function(){Op(t,r,o)}}var x=r.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){Op(t,r,o),typeof u!="function"&&(Ga===null?Ga=new Set([this]):Ga.add(this));var _=o.stack;this.componentDidCatch(o.value,{componentStack:_!==null?_:""})})}function I1(e,t,r,o,u){if(r.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=r.alternate,t!==null&&wi(t,r,u,!0),r=Nn.current,r!==null){switch(r.tag){case 13:return Yn===null?_f():r.alternate===null&&Et===0&&(Et=3),r.flags&=-257,r.flags|=65536,r.lanes=u,o===Ru?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([o]):t.add(o),Cf(e,o,u)),!1;case 22:return r.flags|=65536,o===Ru?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([o]):r.add(o)),Cf(e,o,u)),!1}throw Error(i(435,r.tag))}return Cf(e,o,u),_f(),!1}if(tt)return t=Nn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,o!==xu&&(e=Error(i(422),{cause:o}),xi(Sn(e,r)))):(o!==xu&&(t=Error(i(423),{cause:o}),xi(Sn(t,r))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,o=Sn(o,r),u=Ju(e.stateNode,o,u),Au(e,u),Et!==4&&(Et=2)),!1;var d=Error(i(520),{cause:o});if(d=Sn(d,r),$i===null?$i=[d]:$i.push(d),Et!==4&&(Et=2),t===null)return!0;o=Sn(o,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=u&-u,r.lanes|=e,e=Ju(r.stateNode,o,e),Au(r,e),!1;case 1:if(t=r.type,d=r.stateNode,(r.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Ga===null||!Ga.has(d))))return r.flags|=65536,u&=-u,r.lanes|=u,u=Ap(u),Tp(u,e,r,o),Au(r,u),!1}r=r.return}while(r!==null);return!1}var Mp=Error(i(461)),kt=!1;function Bt(e,t,r,o){t.child=e===null?Sp(t,null,r,o):Sl(t,e.child,r,o)}function Dp(e,t,r,o,u){r=r.render;var d=t.ref;if("ref"in o){var x={};for(var _ in o)_!=="ref"&&(x[_]=o[_])}else x=o;return Dr(t),o=ku(e,t,r,x,d,u),_=zu(),e!==null&&!kt?(Uu(e,t,u),ga(e,t,u)):(tt&&_&&yu(t),t.flags|=1,Bt(e,t,o,u),t.child)}function Lp(e,t,r,o,u){if(e===null){var d=r.type;return typeof d=="function"&&!pu(d)&&d.defaultProps===void 0&&r.compare===null?(t.tag=15,t.type=d,kp(e,t,d,o,u)):(e=Xo(r.type,null,o,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!of(e,u)){var x=d.memoizedProps;if(r=r.compare,r=r!==null?r:gi,r(x,o)&&e.ref===t.ref)return ga(e,t,u)}return t.flags|=1,e=ca(d,o),e.ref=t.ref,e.return=t,t.child=e}function kp(e,t,r,o,u){if(e!==null){var d=e.memoizedProps;if(gi(d,o)&&e.ref===t.ref)if(kt=!1,t.pendingProps=o=d,of(e,u))(e.flags&131072)!==0&&(kt=!0);else return t.lanes=e.lanes,ga(e,t,u)}return Wu(e,t,r,o,u)}function zp(e,t,r){var o=t.pendingProps,u=o.children,d=e!==null?e.memoizedState:null;if(o.mode==="hidden"){if((t.flags&128)!==0){if(o=d!==null?d.baseLanes|r:r,e!==null){for(u=t.child=e.child,d=0;u!==null;)d=d|u.lanes|u.childLanes,u=u.sibling;t.childLanes=d&~o}else t.childLanes=0,t.child=null;return Up(e,t,o,r)}if((r&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Wo(t,d!==null?d.cachePool:null),d!==null?km(t,d):Mu(),_p(t);else return t.lanes=t.childLanes=536870912,Up(e,t,d!==null?d.baseLanes|r:r,r)}else d!==null?(Wo(t,d.cachePool),km(t,d),Ba(),t.memoizedState=null):(e!==null&&Wo(t,null),Mu(),Ba());return Bt(e,t,u,r),t.child}function Up(e,t,r,o){var u=Nu();return u=u===null?null:{parent:Mt._currentValue,pool:u},t.memoizedState={baseLanes:r,cachePool:u},e!==null&&Wo(t,null),Mu(),_p(t),e!==null&&wi(e,t,o,!0),null}function gs(e,t){var r=t.ref;if(r===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(i(284));(e===null||e.ref!==r)&&(t.flags|=4194816)}}function Wu(e,t,r,o,u){return Dr(t),r=ku(e,t,r,o,void 0,u),o=zu(),e!==null&&!kt?(Uu(e,t,u),ga(e,t,u)):(tt&&o&&yu(t),t.flags|=1,Bt(e,t,r,u),t.child)}function Pp(e,t,r,o,u,d){return Dr(t),t.updateQueue=null,r=Um(t,o,r,u),zm(e),o=zu(),e!==null&&!kt?(Uu(e,t,d),ga(e,t,d)):(tt&&o&&yu(t),t.flags|=1,Bt(e,t,r,d),t.child)}function Hp(e,t,r,o,u){if(Dr(t),t.stateNode===null){var d=dl,x=r.contextType;typeof x=="object"&&x!==null&&(d=Yt(x)),d=new r(o,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Zu,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=o,d.state=t.memoizedState,d.refs={},ju(t),x=r.contextType,d.context=typeof x=="object"&&x!==null?Yt(x):dl,d.state=t.memoizedState,x=r.getDerivedStateFromProps,typeof x=="function"&&(Iu(t,r,x,o),d.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(x=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),x!==d.state&&Zu.enqueueReplaceState(d,d.state,null),ji(t,o,d,u),Ri(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),o=!0}else if(e===null){d=t.stateNode;var _=t.memoizedProps,T=zr(r,_);d.props=T;var Y=d.context,ne=r.contextType;x=dl,typeof ne=="object"&&ne!==null&&(x=Yt(ne));var se=r.getDerivedStateFromProps;ne=typeof se=="function"||typeof d.getSnapshotBeforeUpdate=="function",_=t.pendingProps!==_,ne||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(_||Y!==x)&&Cp(t,d,o,x),ka=!1;var I=t.memoizedState;d.state=I,ji(t,o,d,u),Ri(),Y=t.memoizedState,_||I!==Y||ka?(typeof se=="function"&&(Iu(t,r,se,o),Y=t.memoizedState),(T=ka||Ep(t,r,T,o,I,Y,x))?(ne||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=Y),d.props=o,d.state=Y,d.context=x,o=T):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{d=t.stateNode,Ou(e,t),x=t.memoizedProps,ne=zr(r,x),d.props=ne,se=t.pendingProps,I=d.context,Y=r.contextType,T=dl,typeof Y=="object"&&Y!==null&&(T=Yt(Y)),_=r.getDerivedStateFromProps,(Y=typeof _=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(x!==se||I!==T)&&Cp(t,d,o,T),ka=!1,I=t.memoizedState,d.state=I,ji(t,o,d,u),Ri();var Z=t.memoizedState;x!==se||I!==Z||ka||e!==null&&e.dependencies!==null&&Zo(e.dependencies)?(typeof _=="function"&&(Iu(t,r,_,o),Z=t.memoizedState),(ne=ka||Ep(t,r,ne,o,I,Z,T)||e!==null&&e.dependencies!==null&&Zo(e.dependencies))?(Y||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(o,Z,T),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(o,Z,T)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||x===e.memoizedProps&&I===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&I===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=Z),d.props=o,d.state=Z,d.context=T,o=ne):(typeof d.componentDidUpdate!="function"||x===e.memoizedProps&&I===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&I===e.memoizedState||(t.flags|=1024),o=!1)}return d=o,gs(e,t),o=(t.flags&128)!==0,d||o?(d=t.stateNode,r=o&&typeof r.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&o?(t.child=Sl(t,e.child,null,u),t.child=Sl(t,null,r,u)):Bt(e,t,r,u),t.memoizedState=d.state,e=t.child):e=ga(e,t,u),e}function Bp(e,t,r,o){return bi(),t.flags|=256,Bt(e,t,r,o),t.child}var ef={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function tf(e){return{baseLanes:e,cachePool:Rm()}}function nf(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=Rn),e}function $p(e,t,r){var o=t.pendingProps,u=!1,d=(t.flags&128)!==0,x;if((x=d)||(x=e!==null&&e.memoizedState===null?!1:(Dt.current&2)!==0),x&&(u=!0,t.flags&=-129),x=(t.flags&32)!==0,t.flags&=-33,e===null){if(tt){if(u?Ha(t):Ba(),tt){var _=_t,T;if(T=_){e:{for(T=_,_=Fn;T.nodeType!==8;){if(!_){_=null;break e}if(T=kn(T.nextSibling),T===null){_=null;break e}}_=T}_!==null?(t.memoizedState={dehydrated:_,treeContext:jr!==null?{id:ua,overflow:fa}:null,retryLane:536870912,hydrationErrors:null},T=on(18,null,null,0),T.stateNode=_,T.return=t,t.child=T,Qt=t,_t=null,T=!0):T=!1}T||Tr(t)}if(_=t.memoizedState,_!==null&&(_=_.dehydrated,_!==null))return Bf(_)?t.lanes=32:t.lanes=536870912,null;pa(t)}return _=o.children,o=o.fallback,u?(Ba(),u=t.mode,_=vs({mode:"hidden",children:_},u),o=Rr(o,u,r,null),_.return=t,o.return=t,_.sibling=o,t.child=_,u=t.child,u.memoizedState=tf(r),u.childLanes=nf(e,x,r),t.memoizedState=ef,o):(Ha(t),af(t,_))}if(T=e.memoizedState,T!==null&&(_=T.dehydrated,_!==null)){if(d)t.flags&256?(Ha(t),t.flags&=-257,t=rf(e,t,r)):t.memoizedState!==null?(Ba(),t.child=e.child,t.flags|=128,t=null):(Ba(),u=o.fallback,_=t.mode,o=vs({mode:"visible",children:o.children},_),u=Rr(u,_,r,null),u.flags|=2,o.return=t,u.return=t,o.sibling=u,t.child=o,Sl(t,e.child,null,r),o=t.child,o.memoizedState=tf(r),o.childLanes=nf(e,x,r),t.memoizedState=ef,t=u);else if(Ha(t),Bf(_)){if(x=_.nextSibling&&_.nextSibling.dataset,x)var Y=x.dgst;x=Y,o=Error(i(419)),o.stack="",o.digest=x,xi({value:o,source:null,stack:null}),t=rf(e,t,r)}else if(kt||wi(e,t,r,!1),x=(r&e.childLanes)!==0,kt||x){if(x=ht,x!==null&&(o=r&-r,o=(o&42)!==0?1:oi(o),o=(o&(x.suspendedLanes|r))!==0?0:o,o!==0&&o!==T.retryLane))throw T.retryLane=o,fl(e,o),dn(x,e,o),Mp;_.data==="$?"||_f(),t=rf(e,t,r)}else _.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,_t=kn(_.nextSibling),Qt=t,tt=!0,Ar=null,Fn=!1,e!==null&&(En[Cn++]=ua,En[Cn++]=fa,En[Cn++]=jr,ua=e.id,fa=e.overflow,jr=t),t=af(t,o.children),t.flags|=4096);return t}return u?(Ba(),u=o.fallback,_=t.mode,T=e.child,Y=T.sibling,o=ca(T,{mode:"hidden",children:o.children}),o.subtreeFlags=T.subtreeFlags&65011712,Y!==null?u=ca(Y,u):(u=Rr(u,_,r,null),u.flags|=2),u.return=t,o.return=t,o.sibling=u,t.child=o,o=u,u=t.child,_=e.child.memoizedState,_===null?_=tf(r):(T=_.cachePool,T!==null?(Y=Mt._currentValue,T=T.parent!==Y?{parent:Y,pool:Y}:T):T=Rm(),_={baseLanes:_.baseLanes|r,cachePool:T}),u.memoizedState=_,u.childLanes=nf(e,x,r),t.memoizedState=ef,o):(Ha(t),r=e.child,e=r.sibling,r=ca(r,{mode:"visible",children:o.children}),r.return=t,r.sibling=null,e!==null&&(x=t.deletions,x===null?(t.deletions=[e],t.flags|=16):x.push(e)),t.child=r,t.memoizedState=null,r)}function af(e,t){return t=vs({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function vs(e,t){return e=on(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function rf(e,t,r){return Sl(t,e.child,null,r),e=af(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Vp(e,t,r){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Su(e.return,t,r)}function lf(e,t,r,o,u){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:r,tailMode:u}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=o,d.tail=r,d.tailMode=u)}function qp(e,t,r){var o=t.pendingProps,u=o.revealOrder,d=o.tail;if(Bt(e,t,o.children,r),o=Dt.current,(o&2)!==0)o=o&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Vp(e,r,t);else if(e.tag===19)Vp(e,r,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}o&=1}switch(K(Dt,o),u){case"forwards":for(r=t.child,u=null;r!==null;)e=r.alternate,e!==null&&hs(e)===null&&(u=r),r=r.sibling;r=u,r===null?(u=t.child,t.child=null):(u=r.sibling,r.sibling=null),lf(t,!1,u,r,d);break;case"backwards":for(r=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&hs(e)===null){t.child=u;break}e=u.sibling,u.sibling=r,r=u,u=e}lf(t,!0,r,null,d);break;case"together":lf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ga(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Ya|=t.lanes,(r&t.childLanes)===0)if(e!==null){if(wi(e,t,r,!1),(r&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,r=ca(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=ca(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function of(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Zo(e)))}function Z1(e,t,r){switch(t.tag){case 3:Le(t,t.stateNode.containerInfo),La(t,Mt,e.memoizedState.cache),bi();break;case 27:case 5:Je(t);break;case 4:Le(t,t.stateNode.containerInfo);break;case 10:La(t,t.type,t.memoizedProps.value);break;case 13:var o=t.memoizedState;if(o!==null)return o.dehydrated!==null?(Ha(t),t.flags|=128,null):(r&t.child.childLanes)!==0?$p(e,t,r):(Ha(t),e=ga(e,t,r),e!==null?e.sibling:null);Ha(t);break;case 19:var u=(e.flags&128)!==0;if(o=(r&t.childLanes)!==0,o||(wi(e,t,r,!1),o=(r&t.childLanes)!==0),u){if(o)return qp(e,t,r);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),K(Dt,Dt.current),o)break;return null;case 22:case 23:return t.lanes=0,zp(e,t,r);case 24:La(t,Mt,e.memoizedState.cache)}return ga(e,t,r)}function Fp(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps)kt=!0;else{if(!of(e,r)&&(t.flags&128)===0)return kt=!1,Z1(e,t,r);kt=(e.flags&131072)!==0}else kt=!1,tt&&(t.flags&1048576)!==0&&xm(t,Io,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var o=t.elementType,u=o._init;if(o=u(o._payload),t.type=o,typeof o=="function")pu(o)?(e=zr(o,e),t.tag=1,t=Hp(null,t,o,e,r)):(t.tag=0,t=Wu(null,t,o,e,r));else{if(o!=null){if(u=o.$$typeof,u===H){t.tag=11,t=Dp(null,t,o,e,r);break e}else if(u===B){t.tag=14,t=Lp(null,t,o,e,r);break e}}throw t=Q(o)||o,Error(i(306,t,""))}}return t;case 0:return Wu(e,t,t.type,t.pendingProps,r);case 1:return o=t.type,u=zr(o,t.pendingProps),Hp(e,t,o,u,r);case 3:e:{if(Le(t,t.stateNode.containerInfo),e===null)throw Error(i(387));o=t.pendingProps;var d=t.memoizedState;u=d.element,Ou(e,t),ji(t,o,null,r);var x=t.memoizedState;if(o=x.cache,La(t,Mt,o),o!==d.cache&&_u(t,[Mt],r,!0),Ri(),o=x.element,d.isDehydrated)if(d={element:o,isDehydrated:!1,cache:x.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=Bp(e,t,o,r);break e}else if(o!==u){u=Sn(Error(i(424)),t),xi(u),t=Bp(e,t,o,r);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(_t=kn(e.firstChild),Qt=t,tt=!0,Ar=null,Fn=!0,r=Sp(t,null,o,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(bi(),o===u){t=ga(e,t,r);break e}Bt(e,t,o,r)}t=t.child}return t;case 26:return gs(e,t),e===null?(r=Xg(t.type,null,t.pendingProps,null))?t.memoizedState=r:tt||(r=t.type,e=t.pendingProps,o=Ts(me.current).createElement(r),o[ce]=t,o[pe]=e,Vt(o,r,e),He(o),t.stateNode=o):t.memoizedState=Xg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Je(t),e===null&&tt&&(o=t.stateNode=Yg(t.type,t.pendingProps,me.current),Qt=t,Fn=!0,u=_t,Qa(t.type)?($f=u,_t=kn(o.firstChild)):_t=u),Bt(e,t,t.pendingProps.children,r),gs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&tt&&((u=o=_t)&&(o=Cw(o,t.type,t.pendingProps,Fn),o!==null?(t.stateNode=o,Qt=t,_t=kn(o.firstChild),Fn=!1,u=!0):u=!1),u||Tr(t)),Je(t),u=t.type,d=t.pendingProps,x=e!==null?e.memoizedProps:null,o=d.children,Uf(u,d)?o=null:x!==null&&Uf(u,x)&&(t.flags|=32),t.memoizedState!==null&&(u=ku(e,t,q1,null,null,r),Ii._currentValue=u),gs(e,t),Bt(e,t,o,r),t.child;case 6:return e===null&&tt&&((e=r=_t)&&(r=Nw(r,t.pendingProps,Fn),r!==null?(t.stateNode=r,Qt=t,_t=null,e=!0):e=!1),e||Tr(t)),null;case 13:return $p(e,t,r);case 4:return Le(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Sl(t,null,o,r):Bt(e,t,o,r),t.child;case 11:return Dp(e,t,t.type,t.pendingProps,r);case 7:return Bt(e,t,t.pendingProps,r),t.child;case 8:return Bt(e,t,t.pendingProps.children,r),t.child;case 12:return Bt(e,t,t.pendingProps.children,r),t.child;case 10:return o=t.pendingProps,La(t,t.type,o.value),Bt(e,t,o.children,r),t.child;case 9:return u=t.type._context,o=t.pendingProps.children,Dr(t),u=Yt(u),o=o(u),t.flags|=1,Bt(e,t,o,r),t.child;case 14:return Lp(e,t,t.type,t.pendingProps,r);case 15:return kp(e,t,t.type,t.pendingProps,r);case 19:return qp(e,t,r);case 31:return o=t.pendingProps,r=t.mode,o={mode:o.mode,children:o.children},e===null?(r=vs(o,r),r.ref=t.ref,t.child=r,r.return=t,t=r):(r=ca(e.child,o),r.ref=t.ref,t.child=r,r.return=t,t=r),t;case 22:return zp(e,t,r);case 24:return Dr(t),o=Yt(Mt),e===null?(u=Nu(),u===null&&(u=ht,d=Eu(),u.pooledCache=d,d.refCount++,d!==null&&(u.pooledCacheLanes|=r),u=d),t.memoizedState={parent:o,cache:u},ju(t),La(t,Mt,u)):((e.lanes&r)!==0&&(Ou(e,t),ji(t,null,null,r),Ri()),u=e.memoizedState,d=t.memoizedState,u.parent!==o?(u={parent:o,cache:o},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),La(t,Mt,o)):(o=d.cache,La(t,Mt,o),o!==u.cache&&_u(t,[Mt],r,!0))),Bt(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function va(e){e.flags|=4}function Yp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Wg(t)){if(t=Nn.current,t!==null&&((We&4194048)===We?Yn!==null:(We&62914560)!==We&&(We&536870912)===0||t!==Yn))throw Ci=Ru,jm;e.flags|=8192}}function ys(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Mo():536870912,e.lanes|=t,Nl|=t)}function ki(e,t){if(!tt)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function bt(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,o=0;if(t)for(var u=e.child;u!==null;)r|=u.lanes|u.childLanes,o|=u.subtreeFlags&65011712,o|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)r|=u.lanes|u.childLanes,o|=u.subtreeFlags,o|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=o,e.childLanes=r,t}function J1(e,t,r){var o=t.pendingProps;switch(bu(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bt(t),null;case 1:return bt(t),null;case 3:return r=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),ha(Mt),Fe(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(yi(t)?va(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,_m())),bt(t),null;case 26:return r=t.memoizedState,e===null?(va(t),r!==null?(bt(t),Yp(t,r)):(bt(t),t.flags&=-16777217)):r?r!==e.memoizedState?(va(t),bt(t),Yp(t,r)):(bt(t),t.flags&=-16777217):(e.memoizedProps!==o&&va(t),bt(t),t.flags&=-16777217),null;case 27:Tt(t),r=me.current;var u=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==o&&va(t);else{if(!o){if(t.stateNode===null)throw Error(i(166));return bt(t),null}e=P.current,yi(t)?wm(t):(e=Yg(u,o,r),t.stateNode=e,va(t))}return bt(t),null;case 5:if(Tt(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&va(t);else{if(!o){if(t.stateNode===null)throw Error(i(166));return bt(t),null}if(e=P.current,yi(t))wm(t);else{switch(u=Ts(me.current),e){case 1:e=u.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:e=u.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":e=u.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":e=u.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":e=u.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof o.is=="string"?u.createElement("select",{is:o.is}):u.createElement("select"),o.multiple?e.multiple=!0:o.size&&(e.size=o.size);break;default:e=typeof o.is=="string"?u.createElement(r,{is:o.is}):u.createElement(r)}}e[ce]=t,e[pe]=o;e:for(u=t.child;u!==null;){if(u.tag===5||u.tag===6)e.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)break e;for(;u.sibling===null;){if(u.return===null||u.return===t)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}t.stateNode=e;e:switch(Vt(e,r,o),r){case"button":case"input":case"select":case"textarea":e=!!o.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&va(t)}}return bt(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&va(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error(i(166));if(e=me.current,yi(t)){if(e=t.stateNode,r=t.memoizedProps,o=null,u=Qt,u!==null)switch(u.tag){case 27:case 5:o=u.memoizedProps}e[ce]=t,e=!!(e.nodeValue===r||o!==null&&o.suppressHydrationWarning===!0||Pg(e.nodeValue,r)),e||Tr(t)}else e=Ts(e).createTextNode(o),e[ce]=t,t.stateNode=e}return bt(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=yi(t),o!==null&&o.dehydrated!==null){if(e===null){if(!u)throw Error(i(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(i(317));u[ce]=t}else bi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;bt(t),u=!1}else u=_m(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(pa(t),t):(pa(t),null)}if(pa(t),(t.flags&128)!==0)return t.lanes=r,t;if(r=o!==null,e=e!==null&&e.memoizedState!==null,r){o=t.child,u=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(u=o.alternate.memoizedState.cachePool.pool);var d=null;o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),d!==u&&(o.flags|=2048)}return r!==e&&r&&(t.child.flags|=8192),ys(t,t.updateQueue),bt(t),null;case 4:return Fe(),e===null&&Mf(t.stateNode.containerInfo),bt(t),null;case 10:return ha(t.type),bt(t),null;case 19:if(U(Dt),u=t.memoizedState,u===null)return bt(t),null;if(o=(t.flags&128)!==0,d=u.rendering,d===null)if(o)ki(u,!1);else{if(Et!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=hs(e),d!==null){for(t.flags|=128,ki(u,!1),e=d.updateQueue,t.updateQueue=e,ys(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)bm(r,e),r=r.sibling;return K(Dt,Dt.current&1|2),t.child}e=e.sibling}u.tail!==null&&he()>ws&&(t.flags|=128,o=!0,ki(u,!1),t.lanes=4194304)}else{if(!o)if(e=hs(d),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,ys(t,e),ki(u,!0),u.tail===null&&u.tailMode==="hidden"&&!d.alternate&&!tt)return bt(t),null}else 2*he()-u.renderingStartTime>ws&&r!==536870912&&(t.flags|=128,o=!0,ki(u,!1),t.lanes=4194304);u.isBackwards?(d.sibling=t.child,t.child=d):(e=u.last,e!==null?e.sibling=d:t.child=d,u.last=d)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=he(),t.sibling=null,e=Dt.current,K(Dt,o?e&1|2:e&1),t):(bt(t),null);case 22:case 23:return pa(t),Du(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(r&536870912)!==0&&(t.flags&128)===0&&(bt(t),t.subtreeFlags&6&&(t.flags|=8192)):bt(t),r=t.updateQueue,r!==null&&ys(t,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==r&&(t.flags|=2048),e!==null&&U(Lr),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ha(Mt),bt(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function W1(e,t){switch(bu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ha(Mt),Fe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Tt(t),null;case 13:if(pa(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));bi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(Dt),null;case 4:return Fe(),null;case 10:return ha(t.type),null;case 22:case 23:return pa(t),Du(),e!==null&&U(Lr),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ha(Mt),null;case 25:return null;default:return null}}function Gp(e,t){switch(bu(t),t.tag){case 3:ha(Mt),Fe();break;case 26:case 27:case 5:Tt(t);break;case 4:Fe();break;case 13:pa(t);break;case 19:U(Dt);break;case 10:ha(t.type);break;case 22:case 23:pa(t),Du(),e!==null&&U(Lr);break;case 24:ha(Mt)}}function zi(e,t){try{var r=t.updateQueue,o=r!==null?r.lastEffect:null;if(o!==null){var u=o.next;r=u;do{if((r.tag&e)===e){o=void 0;var d=r.create,x=r.inst;o=d(),x.destroy=o}r=r.next}while(r!==u)}}catch(_){ut(t,t.return,_)}}function $a(e,t,r){try{var o=t.updateQueue,u=o!==null?o.lastEffect:null;if(u!==null){var d=u.next;o=d;do{if((o.tag&e)===e){var x=o.inst,_=x.destroy;if(_!==void 0){x.destroy=void 0,u=t;var T=r,Y=_;try{Y()}catch(ne){ut(u,T,ne)}}}o=o.next}while(o!==d)}}catch(ne){ut(t,t.return,ne)}}function Kp(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;try{Lm(t,r)}catch(o){ut(e,e.return,o)}}}function Xp(e,t,r){r.props=zr(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(o){ut(e,t,o)}}function Ui(e,t){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof r=="function"?e.refCleanup=r(o):r.current=o}}catch(u){ut(e,t,u)}}function Gn(e,t){var r=e.ref,o=e.refCleanup;if(r!==null)if(typeof o=="function")try{o()}catch(u){ut(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(u){ut(e,t,u)}else r.current=null}function Qp(e){var t=e.type,r=e.memoizedProps,o=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&o.focus();break e;case"img":r.src?o.src=r.src:r.srcSet&&(o.srcset=r.srcSet)}}catch(u){ut(e,e.return,u)}}function sf(e,t,r){try{var o=e.stateNode;xw(o,e.type,r,t),o[pe]=t}catch(u){ut(e,e.return,u)}}function Ip(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qa(e.type)||e.tag===4}function cf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ip(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&&Qa(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 uf(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,t):(t=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,t.appendChild(e),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=As));else if(o!==4&&(o===27&&Qa(e.type)&&(r=e.stateNode,t=null),e=e.child,e!==null))for(uf(e,t,r),e=e.sibling;e!==null;)uf(e,t,r),e=e.sibling}function bs(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(o!==4&&(o===27&&Qa(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(bs(e,t,r),e=e.sibling;e!==null;)bs(e,t,r),e=e.sibling}function Zp(e){var t=e.stateNode,r=e.memoizedProps;try{for(var o=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);Vt(t,o,r),t[ce]=e,t[pe]=r}catch(d){ut(e,e.return,d)}}var ya=!1,Rt=!1,ff=!1,Jp=typeof WeakSet=="function"?WeakSet:Set,zt=null;function ew(e,t){if(e=e.containerInfo,kf=Us,e=cm(e),su(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var o=r.getSelection&&r.getSelection();if(o&&o.rangeCount!==0){r=o.anchorNode;var u=o.anchorOffset,d=o.focusNode;o=o.focusOffset;try{r.nodeType,d.nodeType}catch{r=null;break e}var x=0,_=-1,T=-1,Y=0,ne=0,se=e,I=null;t:for(;;){for(var Z;se!==r||u!==0&&se.nodeType!==3||(_=x+u),se!==d||o!==0&&se.nodeType!==3||(T=x+o),se.nodeType===3&&(x+=se.nodeValue.length),(Z=se.firstChild)!==null;)I=se,se=Z;for(;;){if(se===e)break t;if(I===r&&++Y===u&&(_=x),I===d&&++ne===o&&(T=x),(Z=se.nextSibling)!==null)break;se=I,I=se.parentNode}se=Z}r=_===-1||T===-1?null:{start:_,end:T}}else r=null}r=r||{start:0,end:0}}else r=null;for(zf={focusedElem:e,selectionRange:r},Us=!1,zt=t;zt!==null;)if(t=zt,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,zt=e;else for(;zt!==null;){switch(t=zt,d=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,r=t,u=d.memoizedProps,d=d.memoizedState,o=r.stateNode;try{var ze=zr(r.type,u,r.elementType===r.type);e=o.getSnapshotBeforeUpdate(ze,d),o.__reactInternalSnapshotBeforeUpdate=e}catch(Me){ut(r,r.return,Me)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,r=e.nodeType,r===9)Hf(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Hf(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(i(163))}if(e=t.sibling,e!==null){e.return=t.return,zt=e;break}zt=t.return}}function Wp(e,t,r){var o=r.flags;switch(r.tag){case 0:case 11:case 15:Va(e,r),o&4&&zi(5,r);break;case 1:if(Va(e,r),o&4)if(e=r.stateNode,t===null)try{e.componentDidMount()}catch(x){ut(r,r.return,x)}else{var u=zr(r.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(x){ut(r,r.return,x)}}o&64&&Kp(r),o&512&&Ui(r,r.return);break;case 3:if(Va(e,r),o&64&&(e=r.updateQueue,e!==null)){if(t=null,r.child!==null)switch(r.child.tag){case 27:case 5:t=r.child.stateNode;break;case 1:t=r.child.stateNode}try{Lm(e,t)}catch(x){ut(r,r.return,x)}}break;case 27:t===null&&o&4&&Zp(r);case 26:case 5:Va(e,r),t===null&&o&4&&Qp(r),o&512&&Ui(r,r.return);break;case 12:Va(e,r);break;case 13:Va(e,r),o&4&&ng(e,r),o&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=cw.bind(null,r),Rw(e,r))));break;case 22:if(o=r.memoizedState!==null||ya,!o){t=t!==null&&t.memoizedState!==null||Rt,u=ya;var d=Rt;ya=o,(Rt=t)&&!d?qa(e,r,(r.subtreeFlags&8772)!==0):Va(e,r),ya=u,Rt=d}break;case 30:break;default:Va(e,r)}}function eg(e){var t=e.alternate;t!==null&&(e.alternate=null,eg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Re(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 gt=null,Wt=!1;function ba(e,t,r){for(r=r.child;r!==null;)tg(e,t,r),r=r.sibling}function tg(e,t,r){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(It,r)}catch{}switch(r.tag){case 26:Rt||Gn(r,t),ba(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:Rt||Gn(r,t);var o=gt,u=Wt;Qa(r.type)&&(gt=r.stateNode,Wt=!1),ba(e,t,r),Gi(r.stateNode),gt=o,Wt=u;break;case 5:Rt||Gn(r,t);case 6:if(o=gt,u=Wt,gt=null,ba(e,t,r),gt=o,Wt=u,gt!==null)if(Wt)try{(gt.nodeType===9?gt.body:gt.nodeName==="HTML"?gt.ownerDocument.body:gt).removeChild(r.stateNode)}catch(d){ut(r,t,d)}else try{gt.removeChild(r.stateNode)}catch(d){ut(r,t,d)}break;case 18:gt!==null&&(Wt?(e=gt,qg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),eo(e)):qg(gt,r.stateNode));break;case 4:o=gt,u=Wt,gt=r.stateNode.containerInfo,Wt=!0,ba(e,t,r),gt=o,Wt=u;break;case 0:case 11:case 14:case 15:Rt||$a(2,r,t),Rt||$a(4,r,t),ba(e,t,r);break;case 1:Rt||(Gn(r,t),o=r.stateNode,typeof o.componentWillUnmount=="function"&&Xp(r,t,o)),ba(e,t,r);break;case 21:ba(e,t,r);break;case 22:Rt=(o=Rt)||r.memoizedState!==null,ba(e,t,r),Rt=o;break;default:ba(e,t,r)}}function ng(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{eo(e)}catch(r){ut(t,t.return,r)}}function tw(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Jp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Jp),t;default:throw Error(i(435,e.tag))}}function df(e,t){var r=tw(e);t.forEach(function(o){var u=uw.bind(null,e,o);r.has(o)||(r.add(o),o.then(u,u))})}function sn(e,t){var r=t.deletions;if(r!==null)for(var o=0;o<r.length;o++){var u=r[o],d=e,x=t,_=x;e:for(;_!==null;){switch(_.tag){case 27:if(Qa(_.type)){gt=_.stateNode,Wt=!1;break e}break;case 5:gt=_.stateNode,Wt=!1;break e;case 3:case 4:gt=_.stateNode.containerInfo,Wt=!0;break e}_=_.return}if(gt===null)throw Error(i(160));tg(d,x,u),gt=null,Wt=!1,d=u.alternate,d!==null&&(d.return=null),u.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)ag(t,e),t=t.sibling}var Ln=null;function ag(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:sn(t,e),cn(e),o&4&&($a(3,e,e.return),zi(3,e),$a(5,e,e.return));break;case 1:sn(t,e),cn(e),o&512&&(Rt||r===null||Gn(r,r.return)),o&64&&ya&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?o:r.concat(o))));break;case 26:var u=Ln;if(sn(t,e),cn(e),o&512&&(Rt||r===null||Gn(r,r.return)),o&4){var d=r!==null?r.memoizedState:null;if(o=e.memoizedState,r===null)if(o===null)if(e.stateNode===null){e:{o=e.type,r=e.memoizedProps,u=u.ownerDocument||u;t:switch(o){case"title":d=u.getElementsByTagName("title")[0],(!d||d[Ee]||d[ce]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=u.createElement(o),u.head.insertBefore(d,u.querySelector("head > title"))),Vt(d,o,r),d[ce]=e,He(d),o=d;break e;case"link":var x=Zg("link","href",u).get(o+(r.href||""));if(x){for(var _=0;_<x.length;_++)if(d=x[_],d.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&d.getAttribute("rel")===(r.rel==null?null:r.rel)&&d.getAttribute("title")===(r.title==null?null:r.title)&&d.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){x.splice(_,1);break t}}d=u.createElement(o),Vt(d,o,r),u.head.appendChild(d);break;case"meta":if(x=Zg("meta","content",u).get(o+(r.content||""))){for(_=0;_<x.length;_++)if(d=x[_],d.getAttribute("content")===(r.content==null?null:""+r.content)&&d.getAttribute("name")===(r.name==null?null:r.name)&&d.getAttribute("property")===(r.property==null?null:r.property)&&d.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&d.getAttribute("charset")===(r.charSet==null?null:r.charSet)){x.splice(_,1);break t}}d=u.createElement(o),Vt(d,o,r),u.head.appendChild(d);break;default:throw Error(i(468,o))}d[ce]=e,He(d),o=d}e.stateNode=o}else Jg(u,e.type,e.stateNode);else e.stateNode=Ig(u,o,e.memoizedProps);else d!==o?(d===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):d.count--,o===null?Jg(u,e.type,e.stateNode):Ig(u,o,e.memoizedProps)):o===null&&e.stateNode!==null&&sf(e,e.memoizedProps,r.memoizedProps)}break;case 27:sn(t,e),cn(e),o&512&&(Rt||r===null||Gn(r,r.return)),r!==null&&o&4&&sf(e,e.memoizedProps,r.memoizedProps);break;case 5:if(sn(t,e),cn(e),o&512&&(Rt||r===null||Gn(r,r.return)),e.flags&32){u=e.stateNode;try{rl(u,"")}catch(Z){ut(e,e.return,Z)}}o&4&&e.stateNode!=null&&(u=e.memoizedProps,sf(e,u,r!==null?r.memoizedProps:u)),o&1024&&(ff=!0);break;case 6:if(sn(t,e),cn(e),o&4){if(e.stateNode===null)throw Error(i(162));o=e.memoizedProps,r=e.stateNode;try{r.nodeValue=o}catch(Z){ut(e,e.return,Z)}}break;case 3:if(Ls=null,u=Ln,Ln=Ms(t.containerInfo),sn(t,e),Ln=u,cn(e),o&4&&r!==null&&r.memoizedState.isDehydrated)try{eo(t.containerInfo)}catch(Z){ut(e,e.return,Z)}ff&&(ff=!1,rg(e));break;case 4:o=Ln,Ln=Ms(e.stateNode.containerInfo),sn(t,e),cn(e),Ln=o;break;case 12:sn(t,e),cn(e);break;case 13:sn(t,e),cn(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(yf=he()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,df(e,o)));break;case 22:u=e.memoizedState!==null;var T=r!==null&&r.memoizedState!==null,Y=ya,ne=Rt;if(ya=Y||u,Rt=ne||T,sn(t,e),Rt=ne,ya=Y,cn(e),o&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(r===null||T||ya||Rt||Ur(e)),r=null,t=e;;){if(t.tag===5||t.tag===26){if(r===null){T=r=t;try{if(d=T.stateNode,u)x=d.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{_=T.stateNode;var se=T.memoizedProps.style,I=se!=null&&se.hasOwnProperty("display")?se.display:null;_.style.display=I==null||typeof I=="boolean"?"":(""+I).trim()}}catch(Z){ut(T,T.return,Z)}}}else if(t.tag===6){if(r===null){T=t;try{T.stateNode.nodeValue=u?"":T.memoizedProps}catch(Z){ut(T,T.return,Z)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}o&4&&(o=e.updateQueue,o!==null&&(r=o.retryQueue,r!==null&&(o.retryQueue=null,df(e,r))));break;case 19:sn(t,e),cn(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,df(e,o)));break;case 30:break;case 21:break;default:sn(t,e),cn(e)}}function cn(e){var t=e.flags;if(t&2){try{for(var r,o=e.return;o!==null;){if(Ip(o)){r=o;break}o=o.return}if(r==null)throw Error(i(160));switch(r.tag){case 27:var u=r.stateNode,d=cf(e);bs(e,d,u);break;case 5:var x=r.stateNode;r.flags&32&&(rl(x,""),r.flags&=-33);var _=cf(e);bs(e,_,x);break;case 3:case 4:var T=r.stateNode.containerInfo,Y=cf(e);uf(e,Y,T);break;default:throw Error(i(161))}}catch(ne){ut(e,e.return,ne)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function rg(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;rg(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Va(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Wp(e,t.alternate,t),t=t.sibling}function Ur(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:$a(4,t,t.return),Ur(t);break;case 1:Gn(t,t.return);var r=t.stateNode;typeof r.componentWillUnmount=="function"&&Xp(t,t.return,r),Ur(t);break;case 27:Gi(t.stateNode);case 26:case 5:Gn(t,t.return),Ur(t);break;case 22:t.memoizedState===null&&Ur(t);break;case 30:Ur(t);break;default:Ur(t)}e=e.sibling}}function qa(e,t,r){for(r=r&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var o=t.alternate,u=e,d=t,x=d.flags;switch(d.tag){case 0:case 11:case 15:qa(u,d,r),zi(4,d);break;case 1:if(qa(u,d,r),o=d,u=o.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(Y){ut(o,o.return,Y)}if(o=d,u=o.updateQueue,u!==null){var _=o.stateNode;try{var T=u.shared.hiddenCallbacks;if(T!==null)for(u.shared.hiddenCallbacks=null,u=0;u<T.length;u++)Dm(T[u],_)}catch(Y){ut(o,o.return,Y)}}r&&x&64&&Kp(d),Ui(d,d.return);break;case 27:Zp(d);case 26:case 5:qa(u,d,r),r&&o===null&&x&4&&Qp(d),Ui(d,d.return);break;case 12:qa(u,d,r);break;case 13:qa(u,d,r),r&&x&4&&ng(u,d);break;case 22:d.memoizedState===null&&qa(u,d,r),Ui(d,d.return);break;case 30:break;default:qa(u,d,r)}t=t.sibling}}function hf(e,t){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&Si(r))}function mf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Si(e))}function Kn(e,t,r,o){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)lg(e,t,r,o),t=t.sibling}function lg(e,t,r,o){var u=t.flags;switch(t.tag){case 0:case 11:case 15:Kn(e,t,r,o),u&2048&&zi(9,t);break;case 1:Kn(e,t,r,o);break;case 3:Kn(e,t,r,o),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Si(e)));break;case 12:if(u&2048){Kn(e,t,r,o),e=t.stateNode;try{var d=t.memoizedProps,x=d.id,_=d.onPostCommit;typeof _=="function"&&_(x,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){ut(t,t.return,T)}}else Kn(e,t,r,o);break;case 13:Kn(e,t,r,o);break;case 23:break;case 22:d=t.stateNode,x=t.alternate,t.memoizedState!==null?d._visibility&2?Kn(e,t,r,o):Pi(e,t):d._visibility&2?Kn(e,t,r,o):(d._visibility|=2,_l(e,t,r,o,(t.subtreeFlags&10256)!==0)),u&2048&&hf(x,t);break;case 24:Kn(e,t,r,o),u&2048&&mf(t.alternate,t);break;default:Kn(e,t,r,o)}}function _l(e,t,r,o,u){for(u=u&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var d=e,x=t,_=r,T=o,Y=x.flags;switch(x.tag){case 0:case 11:case 15:_l(d,x,_,T,u),zi(8,x);break;case 23:break;case 22:var ne=x.stateNode;x.memoizedState!==null?ne._visibility&2?_l(d,x,_,T,u):Pi(d,x):(ne._visibility|=2,_l(d,x,_,T,u)),u&&Y&2048&&hf(x.alternate,x);break;case 24:_l(d,x,_,T,u),u&&Y&2048&&mf(x.alternate,x);break;default:_l(d,x,_,T,u)}t=t.sibling}}function Pi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var r=e,o=t,u=o.flags;switch(o.tag){case 22:Pi(r,o),u&2048&&hf(o.alternate,o);break;case 24:Pi(r,o),u&2048&&mf(o.alternate,o);break;default:Pi(r,o)}t=t.sibling}}var Hi=8192;function El(e){if(e.subtreeFlags&Hi)for(e=e.child;e!==null;)ig(e),e=e.sibling}function ig(e){switch(e.tag){case 26:El(e),e.flags&Hi&&e.memoizedState!==null&&Bw(Ln,e.memoizedState,e.memoizedProps);break;case 5:El(e);break;case 3:case 4:var t=Ln;Ln=Ms(e.stateNode.containerInfo),El(e),Ln=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Hi,Hi=16777216,El(e),Hi=t):El(e));break;default:El(e)}}function og(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 Bi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var o=t[r];zt=o,cg(o,e)}og(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)sg(e),e=e.sibling}function sg(e){switch(e.tag){case 0:case 11:case 15:Bi(e),e.flags&2048&&$a(9,e,e.return);break;case 3:Bi(e);break;case 12:Bi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,xs(e)):Bi(e);break;default:Bi(e)}}function xs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var o=t[r];zt=o,cg(o,e)}og(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:$a(8,t,t.return),xs(t);break;case 22:r=t.stateNode,r._visibility&2&&(r._visibility&=-3,xs(t));break;default:xs(t)}e=e.sibling}}function cg(e,t){for(;zt!==null;){var r=zt;switch(r.tag){case 0:case 11:case 15:$a(8,r,t);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var o=r.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Si(r.memoizedState.cache)}if(o=r.child,o!==null)o.return=r,zt=o;else e:for(r=e;zt!==null;){o=zt;var u=o.sibling,d=o.return;if(eg(o),o===r){zt=null;break e}if(u!==null){u.return=d,zt=u;break e}zt=d}}}var nw={getCacheForType:function(e){var t=Yt(Mt),r=t.data.get(e);return r===void 0&&(r=e(),t.data.set(e,r)),r}},aw=typeof WeakMap=="function"?WeakMap:Map,rt=0,ht=null,Qe=null,We=0,lt=0,un=null,Fa=!1,Cl=!1,pf=!1,xa=0,Et=0,Ya=0,Pr=0,gf=0,Rn=0,Nl=0,$i=null,en=null,vf=!1,yf=0,ws=1/0,Ss=null,Ga=null,$t=0,Ka=null,Rl=null,jl=0,bf=0,xf=null,ug=null,Vi=0,wf=null;function fn(){if((rt&2)!==0&&We!==0)return We&-We;if(A.T!==null){var e=pl;return e!==0?e:jf()}return D()}function fg(){Rn===0&&(Rn=(We&536870912)===0||tt?el():536870912);var e=Nn.current;return e!==null&&(e.flags|=32),Rn}function dn(e,t,r){(e===ht&&(lt===2||lt===9)||e.cancelPendingCommit!==null)&&(Ol(e,0),Xa(e,We,Rn,!1)),xr(e,r),((rt&2)===0||e!==ht)&&(e===ht&&((rt&2)===0&&(Pr|=r),Et===4&&Xa(e,We,Rn,!1)),Xn(e))}function dg(e,t,r){if((rt&6)!==0)throw Error(i(327));var o=!r&&(t&124)===0&&(t&e.expiredLanes)===0||Vn(e,t),u=o?iw(e,t):Ef(e,t,!0),d=o;do{if(u===0){Cl&&!o&&Xa(e,t,0,!1);break}else{if(r=e.current.alternate,d&&!rw(r)){u=Ef(e,t,!1),d=!1;continue}if(u===2){if(d=t,e.errorRecoveryDisabledLanes&d)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){t=x;e:{var _=e;u=$i;var T=_.current.memoizedState.isDehydrated;if(T&&(Ol(_,x).flags|=256),x=Ef(_,x,!1),x!==2){if(pf&&!T){_.errorRecoveryDisabledLanes|=d,Pr|=d,u=4;break e}d=en,en=u,d!==null&&(en===null?en=d:en.push.apply(en,d))}u=x}if(d=!1,u!==2)continue}}if(u===1){Ol(e,0),Xa(e,t,0,!0);break}e:{switch(o=e,d=u,d){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Xa(o,t,Rn,!Fa);break e;case 2:en=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(u=yf+300-he(),10<u)){if(Xa(o,t,Rn,!Fa),br(o,0,!0)!==0)break e;o.timeoutHandle=$g(hg.bind(null,o,r,en,Ss,vf,t,Rn,Pr,Nl,Fa,d,2,-0,0),u);break e}hg(o,r,en,Ss,vf,t,Rn,Pr,Nl,Fa,d,0,-0,0)}}break}while(!0);Xn(e)}function hg(e,t,r,o,u,d,x,_,T,Y,ne,se,I,Z){if(e.timeoutHandle=-1,se=t.subtreeFlags,(se&8192||(se&16785408)===16785408)&&(Qi={stylesheets:null,count:0,unsuspend:Hw},ig(t),se=$w(),se!==null)){e.cancelPendingCommit=se(xg.bind(null,e,t,d,r,o,u,x,_,T,ne,1,I,Z)),Xa(e,d,x,!Y);return}xg(e,t,d,r,o,u,x,_,T)}function rw(e){for(var t=e;;){var r=t.tag;if((r===0||r===11||r===15)&&t.flags&16384&&(r=t.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var o=0;o<r.length;o++){var u=r[o],d=u.getSnapshot;u=u.value;try{if(!ln(d(),u))return!1}catch{return!1}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 Xa(e,t,r,o){t&=~gf,t&=~Pr,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var u=t;0<u;){var d=31-Ht(u),x=1<<d;o[d]=-1,u&=~x}r!==0&&wr(e,r,t)}function _s(){return(rt&6)===0?(qi(0),!1):!0}function Sf(){if(Qe!==null){if(lt===0)var e=Qe.return;else e=Qe,da=Mr=null,Pu(e),wl=null,Di=0,e=Qe;for(;e!==null;)Gp(e.alternate,e),e=e.return;Qe=null}}function Ol(e,t){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,Sw(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),Sf(),ht=e,Qe=r=ca(e.current,null),We=t,lt=0,un=null,Fa=!1,Cl=Vn(e,t),pf=!1,Nl=Rn=gf=Pr=Ya=Et=0,en=$i=null,vf=!1,(t&8)!==0&&(t|=t&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=t;0<o;){var u=31-Ht(o),d=1<<u;t|=e[u],o&=~d}return xa=t,Yo(),r}function mg(e,t){Ve=null,A.H=us,t===Ei||t===es?(t=Tm(),lt=3):t===jm?(t=Tm(),lt=4):lt=t===Mp?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,un=t,Qe===null&&(Et=1,ps(e,Sn(t,e.current)))}function pg(){var e=A.H;return A.H=us,e===null?us:e}function gg(){var e=A.A;return A.A=nw,e}function _f(){Et=4,Fa||(We&4194048)!==We&&Nn.current!==null||(Cl=!0),(Ya&134217727)===0&&(Pr&134217727)===0||ht===null||Xa(ht,We,Rn,!1)}function Ef(e,t,r){var o=rt;rt|=2;var u=pg(),d=gg();(ht!==e||We!==t)&&(Ss=null,Ol(e,t)),t=!1;var x=Et;e:do try{if(lt!==0&&Qe!==null){var _=Qe,T=un;switch(lt){case 8:Sf(),x=6;break e;case 3:case 2:case 9:case 6:Nn.current===null&&(t=!0);var Y=lt;if(lt=0,un=null,Al(e,_,T,Y),r&&Cl){x=0;break e}break;default:Y=lt,lt=0,un=null,Al(e,_,T,Y)}}lw(),x=Et;break}catch(ne){mg(e,ne)}while(!0);return t&&e.shellSuspendCounter++,da=Mr=null,rt=o,A.H=u,A.A=d,Qe===null&&(ht=null,We=0,Yo()),x}function lw(){for(;Qe!==null;)vg(Qe)}function iw(e,t){var r=rt;rt|=2;var o=pg(),u=gg();ht!==e||We!==t?(Ss=null,ws=he()+500,Ol(e,t)):Cl=Vn(e,t);e:do try{if(lt!==0&&Qe!==null){t=Qe;var d=un;t:switch(lt){case 1:lt=0,un=null,Al(e,t,d,1);break;case 2:case 9:if(Om(d)){lt=0,un=null,yg(t);break}t=function(){lt!==2&&lt!==9||ht!==e||(lt=7),Xn(e)},d.then(t,t);break e;case 3:lt=7;break e;case 4:lt=5;break e;case 7:Om(d)?(lt=0,un=null,yg(t)):(lt=0,un=null,Al(e,t,d,7));break;case 5:var x=null;switch(Qe.tag){case 26:x=Qe.memoizedState;case 5:case 27:var _=Qe;if(!x||Wg(x)){lt=0,un=null;var T=_.sibling;if(T!==null)Qe=T;else{var Y=_.return;Y!==null?(Qe=Y,Es(Y)):Qe=null}break t}}lt=0,un=null,Al(e,t,d,5);break;case 6:lt=0,un=null,Al(e,t,d,6);break;case 8:Sf(),Et=6;break e;default:throw Error(i(462))}}ow();break}catch(ne){mg(e,ne)}while(!0);return da=Mr=null,A.H=o,A.A=u,rt=r,Qe!==null?0:(ht=null,We=0,Yo(),Et)}function ow(){for(;Qe!==null&&!ue();)vg(Qe)}function vg(e){var t=Fp(e.alternate,e,xa);e.memoizedProps=e.pendingProps,t===null?Es(e):Qe=t}function yg(e){var t=e,r=t.alternate;switch(t.tag){case 15:case 0:t=Pp(r,t,t.pendingProps,t.type,void 0,We);break;case 11:t=Pp(r,t,t.pendingProps,t.type.render,t.ref,We);break;case 5:Pu(t);default:Gp(r,t),t=Qe=bm(t,xa),t=Fp(r,t,xa)}e.memoizedProps=e.pendingProps,t===null?Es(e):Qe=t}function Al(e,t,r,o){da=Mr=null,Pu(t),wl=null,Di=0;var u=t.return;try{if(I1(e,u,t,r,We)){Et=1,ps(e,Sn(r,e.current)),Qe=null;return}}catch(d){if(u!==null)throw Qe=u,d;Et=1,ps(e,Sn(r,e.current)),Qe=null;return}t.flags&32768?(tt||o===1?e=!0:Cl||(We&536870912)!==0?e=!1:(Fa=e=!0,(o===2||o===9||o===3||o===6)&&(o=Nn.current,o!==null&&o.tag===13&&(o.flags|=16384))),bg(t,e)):Es(t)}function Es(e){var t=e;do{if((t.flags&32768)!==0){bg(t,Fa);return}e=t.return;var r=J1(t.alternate,t,xa);if(r!==null){Qe=r;return}if(t=t.sibling,t!==null){Qe=t;return}Qe=t=e}while(t!==null);Et===0&&(Et=5)}function bg(e,t){do{var r=W1(e.alternate,e);if(r!==null){r.flags&=32767,Qe=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!t&&(e=e.sibling,e!==null)){Qe=e;return}Qe=e=r}while(e!==null);Et=6,Qe=null}function xg(e,t,r,o,u,d,x,_,T){e.cancelPendingCommit=null;do Cs();while($t!==0);if((rt&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(d=t.lanes|t.childLanes,d|=hu,Do(e,r,d,x,_,T),e===ht&&(Qe=ht=null,We=0),Rl=t,Ka=e,jl=r,bf=d,xf=u,ug=o,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,fw(nt,function(){return Cg(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=A.T,A.T=null,u=X.p,X.p=2,x=rt,rt|=4;try{ew(e,t,r)}finally{rt=x,X.p=u,A.T=o}}$t=1,wg(),Sg(),_g()}}function wg(){if($t===1){$t=0;var e=Ka,t=Rl,r=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||r){r=A.T,A.T=null;var o=X.p;X.p=2;var u=rt;rt|=4;try{ag(t,e);var d=zf,x=cm(e.containerInfo),_=d.focusedElem,T=d.selectionRange;if(x!==_&&_&&_.ownerDocument&&sm(_.ownerDocument.documentElement,_)){if(T!==null&&su(_)){var Y=T.start,ne=T.end;if(ne===void 0&&(ne=Y),"selectionStart"in _)_.selectionStart=Y,_.selectionEnd=Math.min(ne,_.value.length);else{var se=_.ownerDocument||document,I=se&&se.defaultView||window;if(I.getSelection){var Z=I.getSelection(),ze=_.textContent.length,Me=Math.min(T.start,ze),ct=T.end===void 0?Me:Math.min(T.end,ze);!Z.extend&&Me>ct&&(x=ct,ct=Me,Me=x);var $=om(_,Me),z=om(_,ct);if($&&z&&(Z.rangeCount!==1||Z.anchorNode!==$.node||Z.anchorOffset!==$.offset||Z.focusNode!==z.node||Z.focusOffset!==z.offset)){var F=se.createRange();F.setStart($.node,$.offset),Z.removeAllRanges(),Me>ct?(Z.addRange(F),Z.extend(z.node,z.offset)):(F.setEnd(z.node,z.offset),Z.addRange(F))}}}}for(se=[],Z=_;Z=Z.parentNode;)Z.nodeType===1&&se.push({element:Z,left:Z.scrollLeft,top:Z.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<se.length;_++){var le=se[_];le.element.scrollLeft=le.left,le.element.scrollTop=le.top}}Us=!!kf,zf=kf=null}finally{rt=u,X.p=o,A.T=r}}e.current=t,$t=2}}function Sg(){if($t===2){$t=0;var e=Ka,t=Rl,r=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||r){r=A.T,A.T=null;var o=X.p;X.p=2;var u=rt;rt|=4;try{Wp(e,t.alternate,t)}finally{rt=u,X.p=o,A.T=r}}$t=3}}function _g(){if($t===4||$t===3){$t=0,ge();var e=Ka,t=Rl,r=jl,o=ug;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?$t=5:($t=0,Rl=Ka=null,Eg(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Ga=null),si(r),t=t.stateNode,vt&&typeof vt.onCommitFiberRoot=="function")try{vt.onCommitFiberRoot(It,t,void 0,(t.current.flags&128)===128)}catch{}if(o!==null){t=A.T,u=X.p,X.p=2,A.T=null;try{for(var d=e.onRecoverableError,x=0;x<o.length;x++){var _=o[x];d(_.value,{componentStack:_.stack})}}finally{A.T=t,X.p=u}}(jl&3)!==0&&Cs(),Xn(e),u=e.pendingLanes,(r&4194090)!==0&&(u&42)!==0?e===wf?Vi++:(Vi=0,wf=e):Vi=0,qi(0)}}function Eg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Si(t)))}function Cs(e){return wg(),Sg(),_g(),Cg()}function Cg(){if($t!==5)return!1;var e=Ka,t=bf;bf=0;var r=si(jl),o=A.T,u=X.p;try{X.p=32>r?32:r,A.T=null,r=xf,xf=null;var d=Ka,x=jl;if($t=0,Rl=Ka=null,jl=0,(rt&6)!==0)throw Error(i(331));var _=rt;if(rt|=4,sg(d.current),lg(d,d.current,x,r),rt=_,qi(0,!1),vt&&typeof vt.onPostCommitFiberRoot=="function")try{vt.onPostCommitFiberRoot(It,d)}catch{}return!0}finally{X.p=u,A.T=o,Eg(e,t)}}function Ng(e,t,r){t=Sn(r,t),t=Ju(e.stateNode,t,2),e=Ua(e,t,2),e!==null&&(xr(e,2),Xn(e))}function ut(e,t,r){if(e.tag===3)Ng(e,e,r);else for(;t!==null;){if(t.tag===3){Ng(t,e,r);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Ga===null||!Ga.has(o))){e=Sn(r,e),r=Ap(2),o=Ua(t,r,2),o!==null&&(Tp(r,o,t,e),xr(o,2),Xn(o));break}}t=t.return}}function Cf(e,t,r){var o=e.pingCache;if(o===null){o=e.pingCache=new aw;var u=new Set;o.set(t,u)}else u=o.get(t),u===void 0&&(u=new Set,o.set(t,u));u.has(r)||(pf=!0,u.add(r),e=sw.bind(null,e,t,r),t.then(e,e))}function sw(e,t,r){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,ht===e&&(We&r)===r&&(Et===4||Et===3&&(We&62914560)===We&&300>he()-yf?(rt&2)===0&&Ol(e,0):gf|=r,Nl===We&&(Nl=0)),Xn(e)}function Rg(e,t){t===0&&(t=Mo()),e=fl(e,t),e!==null&&(xr(e,t),Xn(e))}function cw(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Rg(e,r)}function uw(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,u=e.memoizedState;u!==null&&(r=u.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(i(314))}o!==null&&o.delete(t),Rg(e,r)}function fw(e,t){return an(e,t)}var Ns=null,Tl=null,Nf=!1,Rs=!1,Rf=!1,Hr=0;function Xn(e){e!==Tl&&e.next===null&&(Tl===null?Ns=Tl=e:Tl=Tl.next=e),Rs=!0,Nf||(Nf=!0,hw())}function qi(e,t){if(!Rf&&Rs){Rf=!0;do for(var r=!1,o=Ns;o!==null;){if(e!==0){var u=o.pendingLanes;if(u===0)var d=0;else{var x=o.suspendedLanes,_=o.pingedLanes;d=(1<<31-Ht(42|e)+1)-1,d&=u&~(x&~_),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(r=!0,Tg(o,d))}else d=We,d=br(o,o===ht?d:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(d&3)===0||Vn(o,d)||(r=!0,Tg(o,d));o=o.next}while(r);Rf=!1}}function dw(){jg()}function jg(){Rs=Nf=!1;var e=0;Hr!==0&&(ww()&&(e=Hr),Hr=0);for(var t=he(),r=null,o=Ns;o!==null;){var u=o.next,d=Og(o,t);d===0?(o.next=null,r===null?Ns=u:r.next=u,u===null&&(Tl=r)):(r=o,(e!==0||(d&3)!==0)&&(Rs=!0)),o=u}qi(e)}function Og(e,t){for(var r=e.suspendedLanes,o=e.pingedLanes,u=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var x=31-Ht(d),_=1<<x,T=u[x];T===-1?((_&r)===0||(_&o)!==0)&&(u[x]=To(_,t)):T<=t&&(e.expiredLanes|=_),d&=~_}if(t=ht,r=We,r=br(e,e===t?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,r===0||e===t&&(lt===2||lt===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&ie(o),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||Vn(e,r)){if(t=r&-r,t===e.callbackPriority)return t;switch(o!==null&&ie(o),si(r)){case 2:case 8:r=Pe;break;case 32:r=nt;break;case 268435456:r=Bn;break;default:r=nt}return o=Ag.bind(null,e),r=an(r,o),e.callbackPriority=t,e.callbackNode=r,t}return o!==null&&o!==null&&ie(o),e.callbackPriority=2,e.callbackNode=null,2}function Ag(e,t){if($t!==0&&$t!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(Cs()&&e.callbackNode!==r)return null;var o=We;return o=br(e,e===ht?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(dg(e,o,t),Og(e,he()),e.callbackNode!=null&&e.callbackNode===r?Ag.bind(null,e):null)}function Tg(e,t){if(Cs())return null;dg(e,t,!0)}function hw(){_w(function(){(rt&6)!==0?an(ke,dw):jg()})}function jf(){return Hr===0&&(Hr=el()),Hr}function Mg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Po(""+e)}function Dg(e,t){var r=t.ownerDocument.createElement("input");return r.name=t.name,r.value=t.value,e.id&&r.setAttribute("form",e.id),t.parentNode.insertBefore(r,t),e=new FormData(e),r.parentNode.removeChild(r),e}function mw(e,t,r,o,u){if(t==="submit"&&r&&r.stateNode===u){var d=Mg((u[pe]||null).action),x=o.submitter;x&&(t=(t=x[pe]||null)?Mg(t.formAction):x.getAttribute("formAction"),t!==null&&(d=t,x=null));var _=new Vo("action","action",null,o,u);e.push({event:_,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Hr!==0){var T=x?Dg(u,x):new FormData(u);Ku(r,{pending:!0,data:T,method:u.method,action:d},null,T)}}else typeof d=="function"&&(_.preventDefault(),T=x?Dg(u,x):new FormData(u),Ku(r,{pending:!0,data:T,method:u.method,action:d},d,T))},currentTarget:u}]})}}for(var Of=0;Of<du.length;Of++){var Af=du[Of],pw=Af.toLowerCase(),gw=Af[0].toUpperCase()+Af.slice(1);Dn(pw,"on"+gw)}Dn(dm,"onAnimationEnd"),Dn(hm,"onAnimationIteration"),Dn(mm,"onAnimationStart"),Dn("dblclick","onDoubleClick"),Dn("focusin","onFocus"),Dn("focusout","onBlur"),Dn(D1,"onTransitionRun"),Dn(L1,"onTransitionStart"),Dn(k1,"onTransitionCancel"),Dn(pm,"onTransitionEnd"),Xt("onMouseEnter",["mouseout","mouseover"]),Xt("onMouseLeave",["mouseout","mouseover"]),Xt("onPointerEnter",["pointerout","pointerover"]),Xt("onPointerLeave",["pointerout","pointerover"]),rn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rn("onBeforeInput",["compositionend","keypress","textInput","paste"]),rn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fi="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(" "),vw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fi));function Lg(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var o=e[r],u=o.event;o=o.listeners;e:{var d=void 0;if(t)for(var x=o.length-1;0<=x;x--){var _=o[x],T=_.instance,Y=_.currentTarget;if(_=_.listener,T!==d&&u.isPropagationStopped())break e;d=_,u.currentTarget=Y;try{d(u)}catch(ne){ms(ne)}u.currentTarget=null,d=T}else for(x=0;x<o.length;x++){if(_=o[x],T=_.instance,Y=_.currentTarget,_=_.listener,T!==d&&u.isPropagationStopped())break e;d=_,u.currentTarget=Y;try{d(u)}catch(ne){ms(ne)}u.currentTarget=null,d=T}}}}function Ie(e,t){var r=t[Ne];r===void 0&&(r=t[Ne]=new Set);var o=e+"__bubble";r.has(o)||(kg(t,e,2,!1),r.add(o))}function Tf(e,t,r){var o=0;t&&(o|=4),kg(r,e,o,t)}var js="_reactListening"+Math.random().toString(36).slice(2);function Mf(e){if(!e[js]){e[js]=!0,it.forEach(function(r){r!=="selectionchange"&&(vw.has(r)||Tf(r,!1,e),Tf(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[js]||(t[js]=!0,Tf("selectionchange",!1,t))}}function kg(e,t,r,o){switch(lv(t)){case 2:var u=Fw;break;case 8:u=Yw;break;default:u=Gf}r=u.bind(null,t,r,e),u=void 0,!Wc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),o?u!==void 0?e.addEventListener(t,r,{capture:!0,passive:u}):e.addEventListener(t,r,!0):u!==void 0?e.addEventListener(t,r,{passive:u}):e.addEventListener(t,r,!1)}function Df(e,t,r,o,u){var d=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var x=o.tag;if(x===3||x===4){var _=o.stateNode.containerInfo;if(_===u)break;if(x===4)for(x=o.return;x!==null;){var T=x.tag;if((T===3||T===4)&&x.stateNode.containerInfo===u)return;x=x.return}for(;_!==null;){if(x=$e(_),x===null)return;if(T=x.tag,T===5||T===6||T===26||T===27){o=d=x;continue e}_=_.parentNode}}o=o.return}Vh(function(){var Y=d,ne=Zc(r),se=[];e:{var I=gm.get(e);if(I!==void 0){var Z=Vo,ze=e;switch(e){case"keypress":if(Bo(r)===0)break e;case"keydown":case"keyup":Z=f1;break;case"focusin":ze="focus",Z=au;break;case"focusout":ze="blur",Z=au;break;case"beforeblur":case"afterblur":Z=au;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Z=Yh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z=Wx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z=m1;break;case dm:case hm:case mm:Z=n1;break;case pm:Z=g1;break;case"scroll":case"scrollend":Z=Zx;break;case"wheel":Z=y1;break;case"copy":case"cut":case"paste":Z=r1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z=Kh;break;case"toggle":case"beforetoggle":Z=x1}var Me=(t&4)!==0,ct=!Me&&(e==="scroll"||e==="scrollend"),$=Me?I!==null?I+"Capture":null:I;Me=[];for(var z=Y,F;z!==null;){var le=z;if(F=le.stateNode,le=le.tag,le!==5&&le!==26&&le!==27||F===null||$===null||(le=ci(z,$),le!=null&&Me.push(Yi(z,le,F))),ct)break;z=z.return}0<Me.length&&(I=new Z(I,ze,null,r,ne),se.push({event:I,listeners:Me}))}}if((t&7)===0){e:{if(I=e==="mouseover"||e==="pointerover",Z=e==="mouseout"||e==="pointerout",I&&r!==Ic&&(ze=r.relatedTarget||r.fromElement)&&($e(ze)||ze[Se]))break e;if((Z||I)&&(I=ne.window===ne?ne:(I=ne.ownerDocument)?I.defaultView||I.parentWindow:window,Z?(ze=r.relatedTarget||r.toElement,Z=Y,ze=ze?$e(ze):null,ze!==null&&(ct=c(ze),Me=ze.tag,ze!==ct||Me!==5&&Me!==27&&Me!==6)&&(ze=null)):(Z=null,ze=Y),Z!==ze)){if(Me=Yh,le="onMouseLeave",$="onMouseEnter",z="mouse",(e==="pointerout"||e==="pointerover")&&(Me=Kh,le="onPointerLeave",$="onPointerEnter",z="pointer"),ct=Z==null?I:wt(Z),F=ze==null?I:wt(ze),I=new Me(le,z+"leave",Z,r,ne),I.target=ct,I.relatedTarget=F,le=null,$e(ne)===Y&&(Me=new Me($,z+"enter",ze,r,ne),Me.target=F,Me.relatedTarget=ct,le=Me),ct=le,Z&&ze)t:{for(Me=Z,$=ze,z=0,F=Me;F;F=Ml(F))z++;for(F=0,le=$;le;le=Ml(le))F++;for(;0<z-F;)Me=Ml(Me),z--;for(;0<F-z;)$=Ml($),F--;for(;z--;){if(Me===$||$!==null&&Me===$.alternate)break t;Me=Ml(Me),$=Ml($)}Me=null}else Me=null;Z!==null&&zg(se,I,Z,Me,!1),ze!==null&&ct!==null&&zg(se,ct,ze,Me,!0)}}e:{if(I=Y?wt(Y):window,Z=I.nodeName&&I.nodeName.toLowerCase(),Z==="select"||Z==="input"&&I.type==="file")var be=tm;else if(Wh(I))if(nm)be=A1;else{be=j1;var Ge=R1}else Z=I.nodeName,!Z||Z.toLowerCase()!=="input"||I.type!=="checkbox"&&I.type!=="radio"?Y&&Qc(Y.elementType)&&(be=tm):be=O1;if(be&&(be=be(e,Y))){em(se,be,r,ne);break e}Ge&&Ge(e,I,Y),e==="focusout"&&Y&&I.type==="number"&&Y.memoizedProps.value!=null&&Xc(I,"number",I.value)}switch(Ge=Y?wt(Y):window,e){case"focusin":(Wh(Ge)||Ge.contentEditable==="true")&&(sl=Ge,cu=Y,vi=null);break;case"focusout":vi=cu=sl=null;break;case"mousedown":uu=!0;break;case"contextmenu":case"mouseup":case"dragend":uu=!1,um(se,r,ne);break;case"selectionchange":if(M1)break;case"keydown":case"keyup":um(se,r,ne)}var je;if(lu)e:{switch(e){case"compositionstart":var De="onCompositionStart";break e;case"compositionend":De="onCompositionEnd";break e;case"compositionupdate":De="onCompositionUpdate";break e}De=void 0}else ol?Zh(e,r)&&(De="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(De="onCompositionStart");De&&(Xh&&r.locale!=="ko"&&(ol||De!=="onCompositionStart"?De==="onCompositionEnd"&&ol&&(je=qh()):(Da=ne,eu="value"in Da?Da.value:Da.textContent,ol=!0)),Ge=Os(Y,De),0<Ge.length&&(De=new Gh(De,e,null,r,ne),se.push({event:De,listeners:Ge}),je?De.data=je:(je=Jh(r),je!==null&&(De.data=je)))),(je=S1?_1(e,r):E1(e,r))&&(De=Os(Y,"onBeforeInput"),0<De.length&&(Ge=new Gh("onBeforeInput","beforeinput",null,r,ne),se.push({event:Ge,listeners:De}),Ge.data=je)),mw(se,e,Y,r,ne)}Lg(se,t)})}function Yi(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Os(e,t){for(var r=t+"Capture",o=[];e!==null;){var u=e,d=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||d===null||(u=ci(e,r),u!=null&&o.unshift(Yi(e,u,d)),u=ci(e,t),u!=null&&o.push(Yi(e,u,d))),e.tag===3)return o;e=e.return}return[]}function Ml(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function zg(e,t,r,o,u){for(var d=t._reactName,x=[];r!==null&&r!==o;){var _=r,T=_.alternate,Y=_.stateNode;if(_=_.tag,T!==null&&T===o)break;_!==5&&_!==26&&_!==27||Y===null||(T=Y,u?(Y=ci(r,d),Y!=null&&x.unshift(Yi(r,Y,T))):u||(Y=ci(r,d),Y!=null&&x.push(Yi(r,Y,T)))),r=r.return}x.length!==0&&e.push({event:t,listeners:x})}var yw=/\r\n?/g,bw=/\u0000|\uFFFD/g;function Ug(e){return(typeof e=="string"?e:""+e).replace(yw,`
55
+ `).replace(bw,"")}function Pg(e,t){return t=Ug(t),Ug(e)===t}function As(){}function st(e,t,r,o,u,d){switch(r){case"children":typeof o=="string"?t==="body"||t==="textarea"&&o===""||rl(e,o):(typeof o=="number"||typeof o=="bigint")&&t!=="body"&&rl(e,""+o);break;case"className":oa(e,"class",o);break;case"tabIndex":oa(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":oa(e,r,o);break;case"style":Bh(e,o,d);break;case"data":if(t!=="object"){oa(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||r!=="href")){e.removeAttribute(r);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(r);break}o=Po(""+o),e.setAttribute(r,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(r,"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 d=="function"&&(r==="formAction"?(t!=="input"&&st(e,t,"name",u.name,u,null),st(e,t,"formEncType",u.formEncType,u,null),st(e,t,"formMethod",u.formMethod,u,null),st(e,t,"formTarget",u.formTarget,u,null)):(st(e,t,"encType",u.encType,u,null),st(e,t,"method",u.method,u,null),st(e,t,"target",u.target,u,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(r);break}o=Po(""+o),e.setAttribute(r,o);break;case"onClick":o!=null&&(e.onclick=As);break;case"onScroll":o!=null&&Ie("scroll",e);break;case"onScrollEnd":o!=null&&Ie("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(r=o.__html,r!=null){if(u.children!=null)throw Error(i(60));e.innerHTML=r}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}r=Po(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(r,""+o):e.removeAttribute(r);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":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":o===!0?e.setAttribute(r,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(r,o):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(r,o):e.removeAttribute(r);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(r):e.setAttribute(r,o);break;case"popover":Ie("beforetoggle",e),Ie("toggle",e),ia(e,"popover",o);break;case"xlinkActuate":Ye(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Ye(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Ye(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Ye(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Ye(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Ye(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Ye(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Ye(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Ye(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":ia(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=Qx.get(r)||r,ia(e,r,o))}}function Lf(e,t,r,o,u,d){switch(r){case"style":Bh(e,o,d);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(r=o.__html,r!=null){if(u.children!=null)throw Error(i(60));e.innerHTML=r}}break;case"children":typeof o=="string"?rl(e,o):(typeof o=="number"||typeof o=="bigint")&&rl(e,""+o);break;case"onScroll":o!=null&&Ie("scroll",e);break;case"onScrollEnd":o!=null&&Ie("scrollend",e);break;case"onClick":o!=null&&(e.onclick=As);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!qn.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(u=r.endsWith("Capture"),t=r.slice(2,u?r.length-7:void 0),d=e[pe]||null,d=d!=null?d[r]:null,typeof d=="function"&&e.removeEventListener(t,d,u),typeof o=="function")){typeof d!="function"&&d!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(t,o,u);break e}r in e?e[r]=o:o===!0?e.setAttribute(r,""):ia(e,r,o)}}}function Vt(e,t,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ie("error",e),Ie("load",e);var o=!1,u=!1,d;for(d in r)if(r.hasOwnProperty(d)){var x=r[d];if(x!=null)switch(d){case"src":o=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:st(e,t,d,x,r,null)}}u&&st(e,t,"srcSet",r.srcSet,r,null),o&&st(e,t,"src",r.src,r,null);return;case"input":Ie("invalid",e);var _=d=x=u=null,T=null,Y=null;for(o in r)if(r.hasOwnProperty(o)){var ne=r[o];if(ne!=null)switch(o){case"name":u=ne;break;case"type":x=ne;break;case"checked":T=ne;break;case"defaultChecked":Y=ne;break;case"value":d=ne;break;case"defaultValue":_=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(i(137,t));break;default:st(e,t,o,ne,r,null)}}zh(e,d,_,T,Y,x,u,!1),zo(e);return;case"select":Ie("invalid",e),o=x=d=null;for(u in r)if(r.hasOwnProperty(u)&&(_=r[u],_!=null))switch(u){case"value":d=_;break;case"defaultValue":x=_;break;case"multiple":o=_;default:st(e,t,u,_,r,null)}t=d,r=x,e.multiple=!!o,t!=null?al(e,!!o,t,!1):r!=null&&al(e,!!o,r,!0);return;case"textarea":Ie("invalid",e),d=u=o=null;for(x in r)if(r.hasOwnProperty(x)&&(_=r[x],_!=null))switch(x){case"value":o=_;break;case"defaultValue":u=_;break;case"children":d=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(i(91));break;default:st(e,t,x,_,r,null)}Ph(e,o,u,d),zo(e);return;case"option":for(T in r)if(r.hasOwnProperty(T)&&(o=r[T],o!=null))switch(T){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:st(e,t,T,o,r,null)}return;case"dialog":Ie("beforetoggle",e),Ie("toggle",e),Ie("cancel",e),Ie("close",e);break;case"iframe":case"object":Ie("load",e);break;case"video":case"audio":for(o=0;o<Fi.length;o++)Ie(Fi[o],e);break;case"image":Ie("error",e),Ie("load",e);break;case"details":Ie("toggle",e);break;case"embed":case"source":case"link":Ie("error",e),Ie("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(Y in r)if(r.hasOwnProperty(Y)&&(o=r[Y],o!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:st(e,t,Y,o,r,null)}return;default:if(Qc(t)){for(ne in r)r.hasOwnProperty(ne)&&(o=r[ne],o!==void 0&&Lf(e,t,ne,o,r,void 0));return}}for(_ in r)r.hasOwnProperty(_)&&(o=r[_],o!=null&&st(e,t,_,o,r,null))}function xw(e,t,r,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,d=null,x=null,_=null,T=null,Y=null,ne=null;for(Z in r){var se=r[Z];if(r.hasOwnProperty(Z)&&se!=null)switch(Z){case"checked":break;case"value":break;case"defaultValue":T=se;default:o.hasOwnProperty(Z)||st(e,t,Z,null,o,se)}}for(var I in o){var Z=o[I];if(se=r[I],o.hasOwnProperty(I)&&(Z!=null||se!=null))switch(I){case"type":d=Z;break;case"name":u=Z;break;case"checked":Y=Z;break;case"defaultChecked":ne=Z;break;case"value":x=Z;break;case"defaultValue":_=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(i(137,t));break;default:Z!==se&&st(e,t,I,Z,o,se)}}Kc(e,x,_,T,Y,ne,d,u);return;case"select":Z=x=_=I=null;for(d in r)if(T=r[d],r.hasOwnProperty(d)&&T!=null)switch(d){case"value":break;case"multiple":Z=T;default:o.hasOwnProperty(d)||st(e,t,d,null,o,T)}for(u in o)if(d=o[u],T=r[u],o.hasOwnProperty(u)&&(d!=null||T!=null))switch(u){case"value":I=d;break;case"defaultValue":_=d;break;case"multiple":x=d;default:d!==T&&st(e,t,u,d,o,T)}t=_,r=x,o=Z,I!=null?al(e,!!r,I,!1):!!o!=!!r&&(t!=null?al(e,!!r,t,!0):al(e,!!r,r?[]:"",!1));return;case"textarea":Z=I=null;for(_ in r)if(u=r[_],r.hasOwnProperty(_)&&u!=null&&!o.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:st(e,t,_,null,o,u)}for(x in o)if(u=o[x],d=r[x],o.hasOwnProperty(x)&&(u!=null||d!=null))switch(x){case"value":I=u;break;case"defaultValue":Z=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(i(91));break;default:u!==d&&st(e,t,x,u,o,d)}Uh(e,I,Z);return;case"option":for(var ze in r)if(I=r[ze],r.hasOwnProperty(ze)&&I!=null&&!o.hasOwnProperty(ze))switch(ze){case"selected":e.selected=!1;break;default:st(e,t,ze,null,o,I)}for(T in o)if(I=o[T],Z=r[T],o.hasOwnProperty(T)&&I!==Z&&(I!=null||Z!=null))switch(T){case"selected":e.selected=I&&typeof I!="function"&&typeof I!="symbol";break;default:st(e,t,T,I,o,Z)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Me in r)I=r[Me],r.hasOwnProperty(Me)&&I!=null&&!o.hasOwnProperty(Me)&&st(e,t,Me,null,o,I);for(Y in o)if(I=o[Y],Z=r[Y],o.hasOwnProperty(Y)&&I!==Z&&(I!=null||Z!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(i(137,t));break;default:st(e,t,Y,I,o,Z)}return;default:if(Qc(t)){for(var ct in r)I=r[ct],r.hasOwnProperty(ct)&&I!==void 0&&!o.hasOwnProperty(ct)&&Lf(e,t,ct,void 0,o,I);for(ne in o)I=o[ne],Z=r[ne],!o.hasOwnProperty(ne)||I===Z||I===void 0&&Z===void 0||Lf(e,t,ne,I,o,Z);return}}for(var $ in r)I=r[$],r.hasOwnProperty($)&&I!=null&&!o.hasOwnProperty($)&&st(e,t,$,null,o,I);for(se in o)I=o[se],Z=r[se],!o.hasOwnProperty(se)||I===Z||I==null&&Z==null||st(e,t,se,I,o,Z)}var kf=null,zf=null;function Ts(e){return e.nodeType===9?e:e.ownerDocument}function Hg(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 Bg(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 Uf(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 Pf=null;function ww(){var e=window.event;return e&&e.type==="popstate"?e===Pf?!1:(Pf=e,!0):(Pf=null,!1)}var $g=typeof setTimeout=="function"?setTimeout:void 0,Sw=typeof clearTimeout=="function"?clearTimeout:void 0,Vg=typeof Promise=="function"?Promise:void 0,_w=typeof queueMicrotask=="function"?queueMicrotask:typeof Vg<"u"?function(e){return Vg.resolve(null).then(e).catch(Ew)}:$g;function Ew(e){setTimeout(function(){throw e})}function Qa(e){return e==="head"}function qg(e,t){var r=t,o=0,u=0;do{var d=r.nextSibling;if(e.removeChild(r),d&&d.nodeType===8)if(r=d.data,r==="/$"){if(0<o&&8>o){r=o;var x=e.ownerDocument;if(r&1&&Gi(x.documentElement),r&2&&Gi(x.body),r&4)for(r=x.head,Gi(r),x=r.firstChild;x;){var _=x.nextSibling,T=x.nodeName;x[Ee]||T==="SCRIPT"||T==="STYLE"||T==="LINK"&&x.rel.toLowerCase()==="stylesheet"||r.removeChild(x),x=_}}if(u===0){e.removeChild(d),eo(t);return}u--}else r==="$"||r==="$?"||r==="$!"?u++:o=r.charCodeAt(0)-48;else o=0;r=d}while(r);eo(t)}function Hf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":Hf(r),Re(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function Cw(e,t,r,o){for(;e.nodeType===1;){var u=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[Ee])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=kn(e.nextSibling),e===null)break}return null}function Nw(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=kn(e.nextSibling),e===null))return null;return e}function Bf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function Rw(e,t){var r=e.ownerDocument;if(e.data!=="$?"||r.readyState==="complete")t();else{var o=function(){t(),r.removeEventListener("DOMContentLoaded",o)};r.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function kn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var $f=null;function Fg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}function Yg(e,t,r){switch(t=Ts(r),e){case"html":if(e=t.documentElement,!e)throw Error(i(452));return e;case"head":if(e=t.head,!e)throw Error(i(453));return e;case"body":if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Gi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Re(e)}var jn=new Map,Gg=new Set;function Ms(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var wa=X.d;X.d={f:jw,r:Ow,D:Aw,C:Tw,L:Mw,m:Dw,X:kw,S:Lw,M:zw};function jw(){var e=wa.f(),t=_s();return e||t}function Ow(e){var t=at(e);t!==null&&t.tag===5&&t.type==="form"?dp(t):wa.r(e)}var Dl=typeof document>"u"?null:document;function Kg(e,t,r){var o=Dl;if(o&&typeof t=="string"&&t){var u=wn(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof r=="string"&&(u+='[crossorigin="'+r+'"]'),Gg.has(u)||(Gg.add(u),e={rel:e,crossOrigin:r,href:t},o.querySelector(u)===null&&(t=o.createElement("link"),Vt(t,"link",e),He(t),o.head.appendChild(t)))}}function Aw(e){wa.D(e),Kg("dns-prefetch",e,null)}function Tw(e,t){wa.C(e,t),Kg("preconnect",e,t)}function Mw(e,t,r){wa.L(e,t,r);var o=Dl;if(o&&e&&t){var u='link[rel="preload"][as="'+wn(t)+'"]';t==="image"&&r&&r.imageSrcSet?(u+='[imagesrcset="'+wn(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(u+='[imagesizes="'+wn(r.imageSizes)+'"]')):u+='[href="'+wn(e)+'"]';var d=u;switch(t){case"style":d=Ll(e);break;case"script":d=kl(e)}jn.has(d)||(e=v({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),jn.set(d,e),o.querySelector(u)!==null||t==="style"&&o.querySelector(Ki(d))||t==="script"&&o.querySelector(Xi(d))||(t=o.createElement("link"),Vt(t,"link",e),He(t),o.head.appendChild(t)))}}function Dw(e,t){wa.m(e,t);var r=Dl;if(r&&e){var o=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+wn(o)+'"][href="'+wn(e)+'"]',d=u;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=kl(e)}if(!jn.has(d)&&(e=v({rel:"modulepreload",href:e},t),jn.set(d,e),r.querySelector(u)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(Xi(d)))return}o=r.createElement("link"),Vt(o,"link",e),He(o),r.head.appendChild(o)}}}function Lw(e,t,r){wa.S(e,t,r);var o=Dl;if(o&&e){var u=St(o).hoistableStyles,d=Ll(e);t=t||"default";var x=u.get(d);if(!x){var _={loading:0,preload:null};if(x=o.querySelector(Ki(d)))_.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},r),(r=jn.get(d))&&Vf(e,r);var T=x=o.createElement("link");He(T),Vt(T,"link",e),T._p=new Promise(function(Y,ne){T.onload=Y,T.onerror=ne}),T.addEventListener("load",function(){_.loading|=1}),T.addEventListener("error",function(){_.loading|=2}),_.loading|=4,Ds(x,t,o)}x={type:"stylesheet",instance:x,count:1,state:_},u.set(d,x)}}}function kw(e,t){wa.X(e,t);var r=Dl;if(r&&e){var o=St(r).hoistableScripts,u=kl(e),d=o.get(u);d||(d=r.querySelector(Xi(u)),d||(e=v({src:e,async:!0},t),(t=jn.get(u))&&qf(e,t),d=r.createElement("script"),He(d),Vt(d,"link",e),r.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},o.set(u,d))}}function zw(e,t){wa.M(e,t);var r=Dl;if(r&&e){var o=St(r).hoistableScripts,u=kl(e),d=o.get(u);d||(d=r.querySelector(Xi(u)),d||(e=v({src:e,async:!0,type:"module"},t),(t=jn.get(u))&&qf(e,t),d=r.createElement("script"),He(d),Vt(d,"link",e),r.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},o.set(u,d))}}function Xg(e,t,r,o){var u=(u=me.current)?Ms(u):null;if(!u)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(t=Ll(r.href),r=St(u).hoistableStyles,o=r.get(t),o||(o={type:"style",instance:null,count:0,state:null},r.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=Ll(r.href);var d=St(u).hoistableStyles,x=d.get(e);if(x||(u=u.ownerDocument||u,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,x),(d=u.querySelector(Ki(e)))&&!d._p&&(x.instance=d,x.state.loading=5),jn.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},jn.set(e,r),d||Uw(u,e,r,x.state))),t&&o===null)throw Error(i(528,""));return x}if(t&&o!==null)throw Error(i(529,""));return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=kl(r),r=St(u).hoistableScripts,o=r.get(t),o||(o={type:"script",instance:null,count:0,state:null},r.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Ll(e){return'href="'+wn(e)+'"'}function Ki(e){return'link[rel="stylesheet"]['+e+"]"}function Qg(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function Uw(e,t,r,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=1:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2}),Vt(t,"link",r),He(t),e.head.appendChild(t))}function kl(e){return'[src="'+wn(e)+'"]'}function Xi(e){return"script[async]"+e}function Ig(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+wn(r.href)+'"]');if(o)return t.instance=o,He(o),o;var u=v({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),He(o),Vt(o,"style",u),Ds(o,r.precedence,e),t.instance=o;case"stylesheet":u=Ll(r.href);var d=e.querySelector(Ki(u));if(d)return t.state.loading|=4,t.instance=d,He(d),d;o=Qg(r),(u=jn.get(u))&&Vf(o,u),d=(e.ownerDocument||e).createElement("link"),He(d);var x=d;return x._p=new Promise(function(_,T){x.onload=_,x.onerror=T}),Vt(d,"link",o),t.state.loading|=4,Ds(d,r.precedence,e),t.instance=d;case"script":return d=kl(r.src),(u=e.querySelector(Xi(d)))?(t.instance=u,He(u),u):(o=r,(u=jn.get(d))&&(o=v({},r),qf(o,u)),e=e.ownerDocument||e,u=e.createElement("script"),He(u),Vt(u,"link",o),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(o=t.instance,t.state.loading|=4,Ds(o,r.precedence,e));return t.instance}function Ds(e,t,r){for(var o=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=o.length?o[o.length-1]:null,d=u,x=0;x<o.length;x++){var _=o[x];if(_.dataset.precedence===t)d=_;else if(d!==u)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=r.nodeType===9?r.head:r,t.insertBefore(e,t.firstChild))}function Vf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function qf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ls=null;function Zg(e,t,r){if(Ls===null){var o=new Map,u=Ls=new Map;u.set(r,o)}else u=Ls,o=u.get(r),o||(o=new Map,u.set(r,o));if(o.has(e))return o;for(o.set(e,null),r=r.getElementsByTagName(e),u=0;u<r.length;u++){var d=r[u];if(!(d[Ee]||d[ce]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var x=d.getAttribute(t)||"";x=e+x;var _=o.get(x);_?_.push(d):o.set(x,[d])}}return o}function Jg(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function Pw(e,t,r){if(r===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Wg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Qi=null;function Hw(){}function Bw(e,t,r){if(Qi===null)throw Error(i(475));var o=Qi;if(t.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var u=Ll(r.href),d=e.querySelector(Ki(u));if(d){e=d._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(o.count++,o=ks.bind(o),e.then(o,o)),t.state.loading|=4,t.instance=d,He(d);return}d=e.ownerDocument||e,r=Qg(r),(u=jn.get(u))&&Vf(r,u),d=d.createElement("link"),He(d);var x=d;x._p=new Promise(function(_,T){x.onload=_,x.onerror=T}),Vt(d,"link",r),t.instance=d}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(o.count++,t=ks.bind(o),e.addEventListener("load",t),e.addEventListener("error",t))}}function $w(){if(Qi===null)throw Error(i(475));var e=Qi;return e.stylesheets&&e.count===0&&Ff(e,e.stylesheets),0<e.count?function(t){var r=setTimeout(function(){if(e.stylesheets&&Ff(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(r)}}:null}function ks(){if(this.count--,this.count===0){if(this.stylesheets)Ff(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var zs=null;function Ff(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,zs=new Map,t.forEach(Vw,e),zs=null,ks.call(e))}function Vw(e,t){if(!(t.state.loading&4)){var r=zs.get(e);if(r)var o=r.get(null);else{r=new Map,zs.set(e,r);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<u.length;d++){var x=u[d];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(r.set(x.dataset.precedence,x),o=x)}o&&r.set(null,o)}u=t.instance,x=u.getAttribute("data-precedence"),d=r.get(x)||o,d===o&&r.set(null,u),r.set(x,u),this.count++,o=ks.bind(this),u.addEventListener("load",o),u.addEventListener("error",o),d?d.parentNode.insertBefore(u,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var Ii={$$typeof:k,Provider:null,Consumer:null,_currentValue:V,_currentValue2:V,_threadCount:0};function qw(e,t,r,o,u,d,x,_){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=tl(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tl(0),this.hiddenUpdates=tl(null),this.identifierPrefix=o,this.onUncaughtError=u,this.onCaughtError=d,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function ev(e,t,r,o,u,d,x,_,T,Y,ne,se){return e=new qw(e,t,r,x,_,T,Y,se),t=1,d===!0&&(t|=24),d=on(3,null,null,t),e.current=d,d.stateNode=e,t=Eu(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:o,isDehydrated:r,cache:t},ju(d),e}function tv(e){return e?(e=dl,e):dl}function nv(e,t,r,o,u,d){u=tv(u),o.context===null?o.context=u:o.pendingContext=u,o=za(t),o.payload={element:r},d=d===void 0?null:d,d!==null&&(o.callback=d),r=Ua(e,o,t),r!==null&&(dn(r,e,t),Ni(r,e,t))}function av(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Yf(e,t){av(e,t),(e=e.alternate)&&av(e,t)}function rv(e){if(e.tag===13){var t=fl(e,67108864);t!==null&&dn(t,e,67108864),Yf(e,67108864)}}var Us=!0;function Fw(e,t,r,o){var u=A.T;A.T=null;var d=X.p;try{X.p=2,Gf(e,t,r,o)}finally{X.p=d,A.T=u}}function Yw(e,t,r,o){var u=A.T;A.T=null;var d=X.p;try{X.p=8,Gf(e,t,r,o)}finally{X.p=d,A.T=u}}function Gf(e,t,r,o){if(Us){var u=Kf(o);if(u===null)Df(e,t,o,Ps,r),iv(e,o);else if(Kw(u,e,t,r,o))o.stopPropagation();else if(iv(e,o),t&4&&-1<Gw.indexOf(e)){for(;u!==null;){var d=at(u);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var x=ra(d.pendingLanes);if(x!==0){var _=d;for(_.pendingLanes|=2,_.entangledLanes|=2;x;){var T=1<<31-Ht(x);_.entanglements[1]|=T,x&=~T}Xn(d),(rt&6)===0&&(ws=he()+500,qi(0))}}break;case 13:_=fl(d,2),_!==null&&dn(_,d,2),_s(),Yf(d,2)}if(d=Kf(o),d===null&&Df(e,t,o,Ps,r),d===u)break;u=d}u!==null&&o.stopPropagation()}else Df(e,t,o,null,r)}}function Kf(e){return e=Zc(e),Xf(e)}var Ps=null;function Xf(e){if(Ps=null,e=$e(e),e!==null){var t=c(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=f(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ps=e,null}function lv(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(Oe()){case ke:return 2;case Pe:return 8;case nt:case Ft:return 32;case Bn:return 268435456;default:return 32}default:return 32}}var Qf=!1,Ia=null,Za=null,Ja=null,Zi=new Map,Ji=new Map,Wa=[],Gw="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 iv(e,t){switch(e){case"focusin":case"focusout":Ia=null;break;case"dragenter":case"dragleave":Za=null;break;case"mouseover":case"mouseout":Ja=null;break;case"pointerover":case"pointerout":Zi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ji.delete(t.pointerId)}}function Wi(e,t,r,o,u,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:r,eventSystemFlags:o,nativeEvent:d,targetContainers:[u]},t!==null&&(t=at(t),t!==null&&rv(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function Kw(e,t,r,o,u){switch(t){case"focusin":return Ia=Wi(Ia,e,t,r,o,u),!0;case"dragenter":return Za=Wi(Za,e,t,r,o,u),!0;case"mouseover":return Ja=Wi(Ja,e,t,r,o,u),!0;case"pointerover":var d=u.pointerId;return Zi.set(d,Wi(Zi.get(d)||null,e,t,r,o,u)),!0;case"gotpointercapture":return d=u.pointerId,Ji.set(d,Wi(Ji.get(d)||null,e,t,r,o,u)),!0}return!1}function ov(e){var t=$e(e.target);if(t!==null){var r=c(t);if(r!==null){if(t=r.tag,t===13){if(t=f(r),t!==null){e.blockedOn=t,q(e.priority,function(){if(r.tag===13){var o=fn();o=oi(o);var u=fl(r,o);u!==null&&dn(u,r,o),Yf(r,o)}});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Hs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Kf(e.nativeEvent);if(r===null){r=e.nativeEvent;var o=new r.constructor(r.type,r);Ic=o,r.target.dispatchEvent(o),Ic=null}else return t=at(r),t!==null&&rv(t),e.blockedOn=r,!1;t.shift()}return!0}function sv(e,t,r){Hs(e)&&r.delete(t)}function Xw(){Qf=!1,Ia!==null&&Hs(Ia)&&(Ia=null),Za!==null&&Hs(Za)&&(Za=null),Ja!==null&&Hs(Ja)&&(Ja=null),Zi.forEach(sv),Ji.forEach(sv)}function Bs(e,t){e.blockedOn===t&&(e.blockedOn=null,Qf||(Qf=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Xw)))}var $s=null;function cv(e){$s!==e&&($s=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){$s===e&&($s=null);for(var t=0;t<e.length;t+=3){var r=e[t],o=e[t+1],u=e[t+2];if(typeof o!="function"){if(Xf(o||r)===null)continue;break}var d=at(r);d!==null&&(e.splice(t,3),t-=3,Ku(d,{pending:!0,data:u,method:r.method,action:o},o,u))}}))}function eo(e){function t(T){return Bs(T,e)}Ia!==null&&Bs(Ia,e),Za!==null&&Bs(Za,e),Ja!==null&&Bs(Ja,e),Zi.forEach(t),Ji.forEach(t);for(var r=0;r<Wa.length;r++){var o=Wa[r];o.blockedOn===e&&(o.blockedOn=null)}for(;0<Wa.length&&(r=Wa[0],r.blockedOn===null);)ov(r),r.blockedOn===null&&Wa.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(o=0;o<r.length;o+=3){var u=r[o],d=r[o+1],x=u[pe]||null;if(typeof d=="function")x||cv(r);else if(x){var _=null;if(d&&d.hasAttribute("formAction")){if(u=d,x=d[pe]||null)_=x.formAction;else if(Xf(u)!==null)continue}else _=x.action;typeof _=="function"?r[o+1]=_:(r.splice(o,3),o-=3),cv(r)}}}function If(e){this._internalRoot=e}Vs.prototype.render=If.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var r=t.current,o=fn();nv(r,o,e,t,null,null)},Vs.prototype.unmount=If.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;nv(e.current,2,null,e,null,null),_s(),t[Se]=null}};function Vs(e){this._internalRoot=e}Vs.prototype.unstable_scheduleHydration=function(e){if(e){var t=D();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Wa.length&&t!==0&&t<Wa[r].priority;r++);Wa.splice(r,0,e),r===0&&ov(e)}};var uv=a.version;if(uv!=="19.1.1")throw Error(i(527,uv,"19.1.1"));X.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=p(t),e=e!==null?m(e):null,e=e===null?null:e.stateNode,e};var Qw={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var qs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!qs.isDisabled&&qs.supportsFiber)try{It=qs.inject(Qw),vt=qs}catch{}}return ao.createRoot=function(e,t){if(!s(e))throw Error(i(299));var r=!1,o="",u=Np,d=Rp,x=jp,_=null;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(x=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(_=t.unstable_transitionCallbacks)),t=ev(e,1,!1,null,null,r,o,u,d,x,_,null),e[Se]=t.current,Mf(e),new If(t)},ao.hydrateRoot=function(e,t,r){if(!s(e))throw Error(i(299));var o=!1,u="",d=Np,x=Rp,_=jp,T=null,Y=null;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(u=r.identifierPrefix),r.onUncaughtError!==void 0&&(d=r.onUncaughtError),r.onCaughtError!==void 0&&(x=r.onCaughtError),r.onRecoverableError!==void 0&&(_=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(T=r.unstable_transitionCallbacks),r.formState!==void 0&&(Y=r.formState)),t=ev(e,1,!0,t,r??null,o,u,d,x,_,T,Y),t.context=tv(null),r=t.current,o=fn(),o=oi(o),u=za(o),u.callback=null,Ua(r,u,o),r=o,t.current.lanes=r,xr(t,r),Xn(t),e[Se]=t.current,Mf(e),new Vs(t)},ao.version="19.1.1",ao}var Bv;function E_(){if(Bv)return ed.exports;Bv=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),ed.exports=__(),ed.exports}var C_=E_();/**
56
56
  * react-router v7.7.1
57
57
  *
58
58
  * Copyright (c) Remix Software Inc.
@@ -61,20 +61,20 @@ Error generating stack: `+r.message+`
61
61
  * LICENSE.md file in the root directory of this source tree.
62
62
  *
63
63
  * @license MIT
64
- */var l0=n=>{throw TypeError(n)},SE=(n,a,l)=>a.has(n)||l0("Cannot "+l),rd=(n,a,l)=>(SE(n,a,"read from private field"),l?l.call(n):a.get(n)),EE=(n,a,l)=>a.has(n)?l0("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(n):a.set(n,l);function _E(n={}){let{initialEntries:a=["/"],initialIndex:l,v5Compat:i=!1}=n,s;s=a.map((S,C)=>v(S,typeof S=="string"?null:S.state,C===0?"default":void 0));let u=p(l??s.length-1),f="POP",h=null;function p(S){return Math.min(Math.max(S,0),s.length-1)}function m(){return s[u]}function v(S,C=null,_){let j=Td(s?m().pathname:"/",S,C,_);return _t(j.pathname.charAt(0)==="/",`relative pathnames are not supported in memory history: ${JSON.stringify(S)}`),j}function b(S){return typeof S=="string"?S:lr(S)}return{get index(){return u},get action(){return f},get location(){return m()},createHref:b,createURL(S){return new URL(b(S),"http://localhost")},encodeLocation(S){let C=typeof S=="string"?Oa(S):S;return{pathname:C.pathname||"",search:C.search||"",hash:C.hash||""}},push(S,C){f="PUSH";let _=v(S,C);u+=1,s.splice(u,s.length,_),i&&h&&h({action:f,location:_,delta:1})},replace(S,C){f="REPLACE";let _=v(S,C);s[u]=_,i&&h&&h({action:f,location:_,delta:0})},go(S){f="POP";let C=p(u+S),_=s[C];u=C,h&&h({action:f,location:_,delta:S})},listen(S){return h=S,()=>{h=null}}}}function Xe(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function _t(n,a){if(!n){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function CE(){return Math.random().toString(36).substring(2,10)}function Td(n,a,l=null,i){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof a=="string"?Oa(a):a,state:l,key:a&&a.key||i||CE()}}function lr({pathname:n="/",search:a="",hash:l=""}){return a&&a!=="?"&&(n+=a.charAt(0)==="?"?a:"?"+a),l&&l!=="#"&&(n+=l.charAt(0)==="#"?l:"#"+l),n}function Oa(n){let a={};if(n){let l=n.indexOf("#");l>=0&&(a.hash=n.substring(l),n=n.substring(0,l));let i=n.indexOf("?");i>=0&&(a.search=n.substring(i),n=n.substring(0,i)),n&&(a.pathname=n)}return a}function NE(n,a=!1){let l="http://localhost";typeof window<"u"&&(l=window.location.origin!=="null"?window.location.origin:window.location.href),Xe(l,"No window.location.(origin|href) available to create URL");let i=typeof n=="string"?n:lr(n);return i=i.replace(/ $/,"%20"),!a&&i.startsWith("//")&&(i=l+i),new URL(i,l)}var uo,Hv=class{constructor(n){if(EE(this,uo,new Map),n)for(let[a,l]of n)this.set(a,l)}get(n){if(rd(this,uo).has(n))return rd(this,uo).get(n);if(n.defaultValue!==void 0)return n.defaultValue;throw new Error("No value found for context")}set(n,a){rd(this,uo).set(n,a)}};uo=new WeakMap;var RE=new Set(["lazy","caseSensitive","path","id","index","children"]);function jE(n){return RE.has(n)}var OE=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function AE(n){return OE.has(n)}function TE(n){return n.index===!0}function vo(n,a,l=[],i={},s=!1){return n.map((u,f)=>{let h=[...l,String(f)],p=typeof u.id=="string"?u.id:h.join("-");if(Xe(u.index!==!0||!u.children,"Cannot specify children on an index route"),Xe(s||!i[p],`Found a route id collision on id "${p}". Route id's must be globally unique within Data Router usages`),TE(u)){let m={...u,...a(u),id:p};return i[p]=m,m}else{let m={...u,...a(u),id:p,children:void 0};return i[p]=m,u.children&&(m.children=vo(u.children,a,h,i,s)),m}})}function ar(n,a,l="/"){return ru(n,a,l,!1)}function ru(n,a,l,i){let s=typeof a=="string"?Oa(a):a,u=Tn(s.pathname||"/",l);if(u==null)return null;let f=i0(n);DE(f);let h=null;for(let p=0;h==null&&p<f.length;++p){let m=qE(u);h=VE(f[p],m,i)}return h}function ME(n,a){let{route:l,pathname:i,params:s}=n;return{id:l.id,pathname:i,params:s,data:a[l.id],handle:l.handle}}function i0(n,a=[],l=[],i=""){let s=(u,f,h)=>{let p={relativePath:h===void 0?u.path||"":h,caseSensitive:u.caseSensitive===!0,childrenIndex:f,route:u};p.relativePath.startsWith("/")&&(Xe(p.relativePath.startsWith(i),`Absolute route path "${p.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(i.length));let m=Jn([i,p.relativePath]),v=l.concat(p);u.children&&u.children.length>0&&(Xe(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),i0(u.children,a,v,m)),!(u.path==null&&!u.index)&&a.push({path:m,score:BE(m,u.index),routesMeta:v})};return n.forEach((u,f)=>{if(u.path===""||!u.path?.includes("?"))s(u,f);else for(let h of o0(u.path))s(u,f,h)}),a}function o0(n){let a=n.split("/");if(a.length===0)return[];let[l,...i]=a,s=l.endsWith("?"),u=l.replace(/\?$/,"");if(i.length===0)return s?[u,""]:[u];let f=o0(i.join("/")),h=[];return h.push(...f.map(p=>p===""?u:[u,p].join("/"))),s&&h.push(...f),h.map(p=>n.startsWith("/")&&p===""?"/":p)}function DE(n){n.sort((a,l)=>a.score!==l.score?l.score-a.score:$E(a.routesMeta.map(i=>i.childrenIndex),l.routesMeta.map(i=>i.childrenIndex)))}var LE=/^:[\w-]+$/,kE=3,zE=2,UE=1,PE=10,HE=-2,Bv=n=>n==="*";function BE(n,a){let l=n.split("/"),i=l.length;return l.some(Bv)&&(i+=HE),a&&(i+=zE),l.filter(s=>!Bv(s)).reduce((s,u)=>s+(LE.test(u)?kE:u===""?UE:PE),i)}function $E(n,a){return n.length===a.length&&n.slice(0,-1).every((i,s)=>i===a[s])?n[n.length-1]-a[a.length-1]:0}function VE(n,a,l=!1){let{routesMeta:i}=n,s={},u="/",f=[];for(let h=0;h<i.length;++h){let p=i[h],m=h===i.length-1,v=u==="/"?a:a.slice(u.length)||"/",b=mu({path:p.relativePath,caseSensitive:p.caseSensitive,end:m},v),w=p.route;if(!b&&m&&l&&!i[i.length-1].route.index&&(b=mu({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},v)),!b)return null;Object.assign(s,b.params),f.push({params:s,pathname:Jn([u,b.pathname]),pathnameBase:XE(Jn([u,b.pathnameBase])),route:w}),b.pathnameBase!=="/"&&(u=Jn([u,b.pathnameBase]))}return f}function mu(n,a){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[l,i]=YE(n.path,n.caseSensitive,n.end),s=a.match(l);if(!s)return null;let u=s[0],f=u.replace(/(.)\/+$/,"$1"),h=s.slice(1);return{params:i.reduce((m,{paramName:v,isOptional:b},w)=>{if(v==="*"){let C=h[w]||"";f=u.slice(0,u.length-C.length).replace(/(.)\/+$/,"$1")}const S=h[w];return b&&!S?m[v]=void 0:m[v]=(S||"").replace(/%2F/g,"/"),m},{}),pathname:u,pathnameBase:f,pattern:n}}function YE(n,a=!1,l=!0){_t(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let i=[],s="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,h,p)=>(i.push({paramName:h,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(i.push({paramName:"*"}),s+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?s+="\\/*$":n!==""&&n!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,a?void 0:"i"),i]}function qE(n){try{return n.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return _t(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),n}}function Tn(n,a){if(a==="/")return n;if(!n.toLowerCase().startsWith(a.toLowerCase()))return null;let l=a.endsWith("/")?a.length-1:a.length,i=n.charAt(l);return i&&i!=="/"?null:n.slice(l)||"/"}function FE({basename:n,pathname:a}){return a==="/"?n:Jn([n,a])}function KE(n,a="/"){let{pathname:l,search:i="",hash:s=""}=typeof n=="string"?Oa(n):n;return{pathname:l?l.startsWith("/")?l:GE(l,a):a,search:QE(i),hash:ZE(s)}}function GE(n,a){let l=a.replace(/\/+$/,"").split("/");return n.split("/").forEach(s=>{s===".."?l.length>1&&l.pop():s!=="."&&l.push(s)}),l.length>1?l.join("/"):"/"}function ld(n,a,l,i){return`Cannot include a '${n}' character in a manually specified \`to.${a}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${l}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function s0(n){return n.filter((a,l)=>l===0||a.route.path&&a.route.path.length>0)}function _u(n){let a=s0(n);return a.map((l,i)=>i===a.length-1?l.pathname:l.pathnameBase)}function Cu(n,a,l,i=!1){let s;typeof n=="string"?s=Oa(n):(s={...n},Xe(!s.pathname||!s.pathname.includes("?"),ld("?","pathname","search",s)),Xe(!s.pathname||!s.pathname.includes("#"),ld("#","pathname","hash",s)),Xe(!s.search||!s.search.includes("#"),ld("#","search","hash",s)));let u=n===""||s.pathname==="",f=u?"/":s.pathname,h;if(f==null)h=l;else{let b=a.length-1;if(!i&&f.startsWith("..")){let w=f.split("/");for(;w[0]==="..";)w.shift(),b-=1;s.pathname=w.join("/")}h=b>=0?a[b]:"/"}let p=KE(s,h),m=f&&f!=="/"&&f.endsWith("/"),v=(u||f===".")&&l.endsWith("/");return!p.pathname.endsWith("/")&&(m||v)&&(p.pathname+="/"),p}var Jn=n=>n.join("/").replace(/\/\/+/g,"/"),XE=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),QE=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,ZE=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,Md=class{constructor(n,a,l,i=!1){this.status=n,this.statusText=a||"",this.internal=i,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function yo(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var u0=["POST","PUT","PATCH","DELETE"],IE=new Set(u0),JE=["GET",...u0],WE=new Set(JE),e_=new Set([301,302,303,307,308]),t_=new Set([307,308]),id={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},n_={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ro={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},a_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,eh=n=>a_.test(n),r_=n=>({hasErrorBoundary:!!n.hasErrorBoundary}),c0="remix-router-transitions",f0=Symbol("ResetLoaderData");function l_(n){const a=n.window?n.window:typeof window<"u"?window:void 0,l=typeof a<"u"&&typeof a.document<"u"&&typeof a.document.createElement<"u";Xe(n.routes.length>0,"You must provide a non-empty routes array to createRouter");let i=n.hydrationRouteProperties||[],s=n.mapRouteProperties||r_,u={},f=vo(n.routes,s,void 0,u),h,p=n.basename||"/",m=n.dataStrategy||c_,v={unstable_middleware:!1,...n.future},b=null,w=new Set,S=null,C=null,_=null,j=n.hydrationData!=null,N=ar(f,n.history.location,p),z=!1,k=null,H;if(N==null&&!n.patchRoutesOnNavigation){let M=On(404,{pathname:n.history.location.pathname}),{matches:$,route:I}=Jv(f);H=!0,N=$,k={[I.id]:M}}else if(N&&!n.hydrationData&&xr(N,f,n.history.location.pathname).active&&(N=null),N)if(N.some(M=>M.route.lazy))H=!1;else if(!N.some(M=>M.route.loader))H=!0;else{let M=n.hydrationData?n.hydrationData.loaderData:null,$=n.hydrationData?n.hydrationData.errors:null;if($){let I=N.findIndex(ce=>$[ce.route.id]!==void 0);H=N.slice(0,I+1).every(ce=>!Ld(ce.route,M,$))}else H=N.every(I=>!Ld(I.route,M,$))}else{H=!1,N=[];let M=xr(null,f,n.history.location.pathname);M.active&&M.matches&&(z=!0,N=M.matches)}let D,R={historyAction:n.history.action,location:n.history.location,matches:N,initialized:H,navigation:id,restoreScrollPosition:n.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:n.hydrationData&&n.hydrationData.loaderData||{},actionData:n.hydrationData&&n.hydrationData.actionData||null,errors:n.hydrationData&&n.hydrationData.errors||k,fetchers:new Map,blockers:new Map},B="POP",Z=!1,ne,oe=!1,le=new Map,J=null,te=!1,W=!1,ue=new Set,A=new Map,Q=0,V=-1,ve=new Map,O=new Set,F=new Map,U=new Map,K=new Set,ae=new Map,de,ge=null;function ye(){if(b=n.history.listen(({action:M,location:$,delta:I})=>{if(de){de(),de=void 0;return}_t(ae.size===0||I!=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 ce=To({currentLocation:R.location,nextLocation:$,historyAction:M});if(ce&&I!=null){let me=new Promise(Se=>{de=Se});n.history.go(I*-1),Vn(ce,{state:"blocked",location:$,proceed(){Vn(ce,{state:"proceeding",proceed:void 0,reset:void 0,location:$}),me.then(()=>n.history.go(I))},reset(){let Se=new Map(R.blockers);Se.set(ce,ro),Je({blockers:Se})}});return}return ie(M,$)}),l){w_(a,le);let M=()=>S_(a,le);a.addEventListener("pagehide",M),J=()=>a.removeEventListener("pagehide",M)}return R.initialized||ie("POP",R.location,{initialHydration:!0}),D}function Le(){b&&b(),J&&J(),w.clear(),ne&&ne.abort(),R.fetchers.forEach((M,$)=>Pt($)),R.blockers.forEach((M,$)=>yr($))}function qe(M){return w.add(M),()=>w.delete(M)}function Je(M,$={}){M.matches&&(M.matches=M.matches.map(me=>{let Se=u[me.route.id],Ce=me.route;return Ce.element!==Se.element||Ce.errorElement!==Se.errorElement||Ce.hydrateFallbackElement!==Se.hydrateFallbackElement?{...me,route:Se}:me})),R={...R,...M};let I=[],ce=[];R.fetchers.forEach((me,Se)=>{me.state==="idle"&&(K.has(Se)?I.push(Se):ce.push(Se))}),K.forEach(me=>{!R.fetchers.has(me)&&!A.has(me)&&I.push(me)}),[...w].forEach(me=>me(R,{deletedFetchers:I,viewTransitionOpts:$.viewTransitionOpts,flushSync:$.flushSync===!0})),I.forEach(me=>Pt(me)),ce.forEach(me=>R.fetchers.delete(me))}function At(M,$,{flushSync:I}={}){let ce=R.actionData!=null&&R.navigation.formMethod!=null&&tn(R.navigation.formMethod)&&R.navigation.state==="loading"&&M.state?._isRedirect!==!0,me;$.actionData?Object.keys($.actionData).length>0?me=$.actionData:me=null:ce?me=R.actionData:me=null;let Se=$.loaderData?Zv(R.loaderData,$.loaderData,$.matches||[],$.errors):R.loaderData,Ce=R.blockers;Ce.size>0&&(Ce=new Map(Ce),Ce.forEach((_e,Ne)=>Ce.set(Ne,ro)));let Ee=te?!1:Do(M,$.matches||R.matches),Oe=Z===!0||R.navigation.formMethod!=null&&tn(R.navigation.formMethod)&&M.state?._isRedirect!==!0;h&&(f=h,h=void 0),te||B==="POP"||(B==="PUSH"?n.history.push(M,M.state):B==="REPLACE"&&n.history.replace(M,M.state));let Te;if(B==="POP"){let _e=le.get(R.location.pathname);_e&&_e.has(M.pathname)?Te={currentLocation:R.location,nextLocation:M}:le.has(M.pathname)&&(Te={currentLocation:M,nextLocation:R.location})}else if(oe){let _e=le.get(R.location.pathname);_e?_e.add(M.pathname):(_e=new Set([M.pathname]),le.set(R.location.pathname,_e)),Te={currentLocation:R.location,nextLocation:M}}Je({...$,actionData:me,loaderData:Se,historyAction:B,location:M,initialized:!0,navigation:id,revalidation:"idle",restoreScrollPosition:Ee,preventScrollReset:Oe,blockers:Ce},{viewTransitionOpts:Te,flushSync:I===!0}),B="POP",Z=!1,oe=!1,te=!1,W=!1,ge?.resolve(),ge=null}async function Ie(M,$){if(typeof M=="number"){n.history.go(M);return}let I=Dd(R.location,R.matches,p,M,$?.fromRouteId,$?.relative),{path:ce,submission:me,error:Se}=$v(!1,I,$),Ce=R.location,Ee=Td(R.location,ce,$&&$.state);Ee={...Ee,...n.history.encodeLocation(Ee)};let Oe=$&&$.replace!=null?$.replace:void 0,Te="PUSH";Oe===!0?Te="REPLACE":Oe===!1||me!=null&&tn(me.formMethod)&&me.formAction===R.location.pathname+R.location.search&&(Te="REPLACE");let _e=$&&"preventScrollReset"in $?$.preventScrollReset===!0:void 0,Ne=($&&$.flushSync)===!0,$e=To({currentLocation:Ce,nextLocation:Ee,historyAction:Te});if($e){Vn($e,{state:"blocked",location:Ee,proceed(){Vn($e,{state:"proceeding",proceed:void 0,reset:void 0,location:Ee}),Ie(M,$)},reset(){let at=new Map(R.blockers);at.set($e,ro),Je({blockers:at})}});return}await ie(Te,Ee,{submission:me,pendingError:Se,preventScrollReset:_e,replace:$&&$.replace,enableViewTransition:$&&$.viewTransition,flushSync:Ne})}function an(){ge||(ge=E_()),ii(),Je({revalidation:"loading"});let M=ge.promise;return R.navigation.state==="submitting"?M:R.navigation.state==="idle"?(ie(R.historyAction,R.location,{startUninterruptedRevalidation:!0}),M):(ie(B||R.historyAction,R.navigation.location,{overrideNavigation:R.navigation,enableViewTransition:oe===!0}),M)}async function ie(M,$,I){ne&&ne.abort(),ne=null,B=M,te=(I&&I.startUninterruptedRevalidation)===!0,br(R.location,R.matches),Z=(I&&I.preventScrollReset)===!0,oe=(I&&I.enableViewTransition)===!0;let ce=h||f,me=I&&I.overrideNavigation,Se=I?.initialHydration&&R.matches&&R.matches.length>0&&!z?R.matches:ar(ce,$,p),Ce=(I&&I.flushSync)===!0;if(Se&&R.initialized&&!W&&g_(R.location,$)&&!(I&&I.submission&&tn(I.submission.formMethod))){At($,{matches:Se},{flushSync:Ce});return}let Ee=xr(Se,ce,$.pathname);if(Ee.active&&Ee.matches&&(Se=Ee.matches),!Se){let{error:wt,notFoundMatches:He,route:it}=Wr($.pathname);At($,{matches:He,loaderData:{},errors:{[it.id]:wt}},{flushSync:Ce});return}ne=new AbortController;let Oe=Vl(n.history,$,ne.signal,I&&I.submission),Te=new Hv(n.unstable_getContext?await n.unstable_getContext():void 0),_e;if(I&&I.pendingError)_e=[Br(Se).route.id,{type:"error",error:I.pendingError}];else if(I&&I.submission&&tn(I.submission.formMethod)){let wt=await fe(Oe,$,I.submission,Se,Te,Ee.active,I&&I.initialHydration===!0,{replace:I.replace,flushSync:Ce});if(wt.shortCircuited)return;if(wt.pendingActionResult){let[He,it]=wt.pendingActionResult;if(hn(it)&&yo(it.error)&&it.error.status===404){ne=null,At($,{matches:wt.matches,loaderData:{},errors:{[He]:it.error}});return}}Se=wt.matches||Se,_e=wt.pendingActionResult,me=od($,I.submission),Ce=!1,Ee.active=!1,Oe=Vl(n.history,Oe.url,Oe.signal)}let{shortCircuited:Ne,matches:$e,loaderData:at,errors:xt}=await pe(Oe,$,Se,Te,Ee.active,me,I&&I.submission,I&&I.fetcherSubmission,I&&I.replace,I&&I.initialHydration===!0,Ce,_e);Ne||(ne=null,At($,{matches:$e||Se,...Iv(_e),loaderData:at,errors:xt}))}async function fe(M,$,I,ce,me,Se,Ce,Ee={}){ii();let Oe=b_($,I);if(Je({navigation:Oe},{flushSync:Ee.flushSync===!0}),Se){let Ne=await wr(ce,$.pathname,M.signal);if(Ne.type==="aborted")return{shortCircuited:!0};if(Ne.type==="error"){let $e=Br(Ne.partialMatches).route.id;return{matches:Ne.partialMatches,pendingActionResult:[$e,{type:"error",error:Ne.error}]}}else if(Ne.matches)ce=Ne.matches;else{let{notFoundMatches:$e,error:at,route:xt}=Wr($.pathname);return{matches:$e,pendingActionResult:[xt.id,{type:"error",error:at}]}}}let Te,_e=lu(ce,$);if(!_e.route.action&&!_e.route.lazy)Te={type:"error",error:On(405,{method:M.method,pathname:$.pathname,routeId:_e.route.id})};else{let Ne=Kl(s,u,M,ce,_e,Ce?[]:i,me),$e=await Bn(M,Ne,me,null);if(Te=$e[_e.route.id],!Te){for(let at of ce)if($e[at.route.id]){Te=$e[at.route.id];break}}if(M.signal.aborted)return{shortCircuited:!0}}if(Vr(Te)){let Ne;return Ee&&Ee.replace!=null?Ne=Ee.replace:Ne=Gv(Te.response.headers.get("Location"),new URL(M.url),p)===R.location.pathname+R.location.search,await Yt(M,Te,!0,{submission:I,replace:Ne}),{shortCircuited:!0}}if(hn(Te)){let Ne=Br(ce,_e.route.id);return(Ee&&Ee.replace)!==!0&&(B="PUSH"),{matches:ce,pendingActionResult:[Ne.route.id,Te,_e.route.id]}}return{matches:ce,pendingActionResult:[_e.route.id,Te]}}async function pe(M,$,I,ce,me,Se,Ce,Ee,Oe,Te,_e,Ne){let $e=Se||od($,Ce),at=Ce||Ee||ey($e),xt=!te&&!Te;if(me){if(xt){let Rt=he(Ne);Je({navigation:$e,...Rt!==void 0?{actionData:Rt}:{}},{flushSync:_e})}let Fe=await wr(I,$.pathname,M.signal);if(Fe.type==="aborted")return{shortCircuited:!0};if(Fe.type==="error"){let Rt=Br(Fe.partialMatches).route.id;return{matches:Fe.partialMatches,loaderData:{},errors:{[Rt]:Fe.error}}}else if(Fe.matches)I=Fe.matches;else{let{error:Rt,notFoundMatches:Sr,route:bn}=Wr($.pathname);return{matches:Sr,loaderData:{},errors:{[bn.id]:Rt}}}}let wt=h||f,{dsMatches:He,revalidatingFetchers:it}=Vv(M,ce,s,u,n.history,R,I,at,$,Te?[]:i,Te===!0,W,ue,K,F,O,wt,p,n.patchRoutesOnNavigation!=null,Ne);if(V=++Q,!n.dataStrategy&&!He.some(Fe=>Fe.shouldLoad)&&it.length===0){let Fe=gr();return At($,{matches:I,loaderData:{},errors:Ne&&hn(Ne[1])?{[Ne[0]]:Ne[1].error}:null,...Iv(Ne),...Fe?{fetchers:new Map(R.fetchers)}:{}},{flushSync:_e}),{shortCircuited:!0}}if(xt){let Fe={};if(!me){Fe.navigation=$e;let Rt=he(Ne);Rt!==void 0&&(Fe.actionData=Rt)}it.length>0&&(Fe.fetchers=je(it)),Je(Fe,{flushSync:_e})}it.forEach(Fe=>{$n(Fe.key),Fe.controller&&A.set(Fe.key,Fe.controller)});let Yn=()=>it.forEach(Fe=>$n(Fe.key));ne&&ne.signal.addEventListener("abort",Yn);let{loaderResults:rn,fetcherResults:Gt}=await Oo(He,it,M,ce);if(M.signal.aborted)return{shortCircuited:!0};ne&&ne.signal.removeEventListener("abort",Yn),it.forEach(Fe=>A.delete(Fe.key));let yn=Fs(rn);if(yn)return await Yt(M,yn.result,!0,{replace:Oe}),{shortCircuited:!0};if(yn=Fs(Gt),yn)return O.add(yn.key),await Yt(M,yn.result,!0,{replace:Oe}),{shortCircuited:!0};let{loaderData:tl,errors:Aa}=Qv(R,I,rn,Ne,it,Gt);Te&&R.errors&&(Aa={...R.errors,...Aa});let la=gr(),ia=vr(V),oa=la||ia||it.length>0;return{matches:I,loaderData:tl,errors:Aa,...oa?{fetchers:new Map(R.fetchers)}:{}}}function he(M){if(M&&!hn(M[1]))return{[M[0]]:M[1].data};if(R.actionData)return Object.keys(R.actionData).length===0?null:R.actionData}function je(M){return M.forEach($=>{let I=R.fetchers.get($.key),ce=lo(void 0,I?I.data:void 0);R.fetchers.set($.key,ce)}),new Map(R.fetchers)}async function ke(M,$,I,ce){$n(M);let me=(ce&&ce.flushSync)===!0,Se=h||f,Ce=Dd(R.location,R.matches,p,I,$,ce?.relative),Ee=ar(Se,Ce,p),Oe=xr(Ee,Se,Ce);if(Oe.active&&Oe.matches&&(Ee=Oe.matches),!Ee){vt(M,$,On(404,{pathname:Ce}),{flushSync:me});return}let{path:Te,submission:_e,error:Ne}=$v(!0,Ce,ce);if(Ne){vt(M,$,Ne,{flushSync:me});return}let $e=new Hv(n.unstable_getContext?await n.unstable_getContext():void 0),at=(ce&&ce.preventScrollReset)===!0;if(_e&&tn(_e.formMethod)){await Pe(M,$,Te,Ee,$e,Oe.active,me,at,_e);return}F.set(M,{routeId:$,path:Te}),await nt(M,$,Te,Ee,$e,Oe.active,me,at,_e)}async function Pe(M,$,I,ce,me,Se,Ce,Ee,Oe){ii(),F.delete(M);let Te=R.fetchers.get(M);Zt(M,x_(Oe,Te),{flushSync:Ce});let _e=new AbortController,Ne=Vl(n.history,I,_e.signal,Oe);if(Se){let yt=await wr(ce,new URL(Ne.url).pathname,Ne.signal,M);if(yt.type==="aborted")return;if(yt.type==="error"){vt(M,$,yt.error,{flushSync:Ce});return}else if(yt.matches)ce=yt.matches;else{vt(M,$,On(404,{pathname:I}),{flushSync:Ce});return}}let $e=lu(ce,I);if(!$e.route.action&&!$e.route.lazy){let yt=On(405,{method:Oe.formMethod,pathname:I,routeId:$});vt(M,$,yt,{flushSync:Ce});return}A.set(M,_e);let at=Q,xt=Kl(s,u,Ne,ce,$e,i,me),He=(await Bn(Ne,xt,me,M))[$e.route.id];if(Ne.signal.aborted){A.get(M)===_e&&A.delete(M);return}if(K.has(M)){if(Vr(He)||hn(He)){Zt(M,tr(void 0));return}}else{if(Vr(He))if(A.delete(M),V>at){Zt(M,tr(void 0));return}else return O.add(M),Zt(M,lo(Oe)),Yt(Ne,He,!1,{fetcherSubmission:Oe,preventScrollReset:Ee});if(hn(He)){vt(M,$,He.error);return}}let it=R.navigation.location||R.location,Yn=Vl(n.history,it,_e.signal),rn=h||f,Gt=R.navigation.state!=="idle"?ar(rn,R.navigation.location,p):R.matches;Xe(Gt,"Didn't find any matches after fetcher action");let yn=++Q;ve.set(M,yn);let tl=lo(Oe,He.data);R.fetchers.set(M,tl);let{dsMatches:Aa,revalidatingFetchers:la}=Vv(Yn,me,s,u,n.history,R,Gt,Oe,it,i,!1,W,ue,K,F,O,rn,p,n.patchRoutesOnNavigation!=null,[$e.route.id,He]);la.filter(yt=>yt.key!==M).forEach(yt=>{let Ta=yt.key,Lo=R.fetchers.get(Ta),ko=lo(void 0,Lo?Lo.data:void 0);R.fetchers.set(Ta,ko),$n(Ta),yt.controller&&A.set(Ta,yt.controller)}),Je({fetchers:new Map(R.fetchers)});let ia=()=>la.forEach(yt=>$n(yt.key));_e.signal.addEventListener("abort",ia);let{loaderResults:oa,fetcherResults:Fe}=await Oo(Aa,la,Yn,me);if(_e.signal.aborted)return;if(_e.signal.removeEventListener("abort",ia),ve.delete(M),A.delete(M),la.forEach(yt=>A.delete(yt.key)),R.fetchers.has(M)){let yt=tr(He.data);R.fetchers.set(M,yt)}let Rt=Fs(oa);if(Rt)return Yt(Yn,Rt.result,!1,{preventScrollReset:Ee});if(Rt=Fs(Fe),Rt)return O.add(Rt.key),Yt(Yn,Rt.result,!1,{preventScrollReset:Ee});let{loaderData:Sr,errors:bn}=Qv(R,Gt,oa,void 0,la,Fe);vr(yn),R.navigation.state==="loading"&&yn>V?(Xe(B,"Expected pending action"),ne&&ne.abort(),At(R.navigation.location,{matches:Gt,loaderData:Sr,errors:bn,fetchers:new Map(R.fetchers)})):(Je({errors:bn,loaderData:Zv(R.loaderData,Sr,Gt,bn),fetchers:new Map(R.fetchers)}),W=!1)}async function nt(M,$,I,ce,me,Se,Ce,Ee,Oe){let Te=R.fetchers.get(M);Zt(M,lo(Oe,Te?Te.data:void 0),{flushSync:Ce});let _e=new AbortController,Ne=Vl(n.history,I,_e.signal);if(Se){let it=await wr(ce,new URL(Ne.url).pathname,Ne.signal,M);if(it.type==="aborted")return;if(it.type==="error"){vt(M,$,it.error,{flushSync:Ce});return}else if(it.matches)ce=it.matches;else{vt(M,$,On(404,{pathname:I}),{flushSync:Ce});return}}let $e=lu(ce,I);A.set(M,_e);let at=Q,xt=Kl(s,u,Ne,ce,$e,i,me),He=(await Bn(Ne,xt,me,M))[$e.route.id];if(A.get(M)===_e&&A.delete(M),!Ne.signal.aborted){if(K.has(M)){Zt(M,tr(void 0));return}if(Vr(He))if(V>at){Zt(M,tr(void 0));return}else{O.add(M),await Yt(Ne,He,!1,{preventScrollReset:Ee});return}if(hn(He)){vt(M,$,He.error);return}Zt(M,tr(He.data))}}async function Yt(M,$,I,{submission:ce,fetcherSubmission:me,preventScrollReset:Se,replace:Ce}={}){$.response.headers.has("X-Remix-Revalidate")&&(W=!0);let Ee=$.response.headers.get("Location");Xe(Ee,"Expected a Location header on the redirect Response"),Ee=Gv(Ee,new URL(M.url),p);let Oe=Td(R.location,Ee,{_isRedirect:!0});if(l){let xt=!1;if($.response.headers.has("X-Remix-Reload-Document"))xt=!0;else if(eh(Ee)){const wt=NE(Ee,!0);xt=wt.origin!==a.location.origin||Tn(wt.pathname,p)==null}if(xt){Ce?a.location.replace(Ee):a.location.assign(Ee);return}}ne=null;let Te=Ce===!0||$.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:_e,formAction:Ne,formEncType:$e}=R.navigation;!ce&&!me&&_e&&Ne&&$e&&(ce=ey(R.navigation));let at=ce||me;if(t_.has($.response.status)&&at&&tn(at.formMethod))await ie(Te,Oe,{submission:{...at,formAction:Ee},preventScrollReset:Se||Z,enableViewTransition:I?oe:void 0});else{let xt=od(Oe,ce);await ie(Te,Oe,{overrideNavigation:xt,fetcherSubmission:me,preventScrollReset:Se||Z,enableViewTransition:I?oe:void 0})}}async function Bn(M,$,I,ce){let me,Se={};try{me=await f_(m,M,$,ce,I,!1)}catch(Ce){return $.filter(Ee=>Ee.shouldLoad).forEach(Ee=>{Se[Ee.route.id]={type:"error",error:Ce}}),Se}if(M.signal.aborted)return Se;for(let[Ce,Ee]of Object.entries(me))if(v_(Ee)){let Oe=Ee.result;Se[Ce]={type:"redirect",response:m_(Oe,M,Ce,$,p)}}else Se[Ce]=await h_(Ee);return Se}async function Oo(M,$,I,ce){let me=Bn(I,M,ce,null),Se=Promise.all($.map(async Oe=>{if(Oe.matches&&Oe.match&&Oe.request&&Oe.controller){let _e=(await Bn(Oe.request,Oe.matches,ce,Oe.key))[Oe.match.route.id];return{[Oe.key]:_e}}else return Promise.resolve({[Oe.key]:{type:"error",error:On(404,{pathname:Oe.path})}})})),Ce=await me,Ee=(await Se).reduce((Oe,Te)=>Object.assign(Oe,Te),{});return{loaderResults:Ce,fetcherResults:Ee}}function ii(){W=!0,F.forEach((M,$)=>{A.has($)&&ue.add($),$n($)})}function Zt(M,$,I={}){R.fetchers.set(M,$),Je({fetchers:new Map(R.fetchers)},{flushSync:(I&&I.flushSync)===!0})}function vt(M,$,I,ce={}){let me=Br(R.matches,$);Pt(M),Je({errors:{[me.route.id]:I},fetchers:new Map(R.fetchers)},{flushSync:(ce&&ce.flushSync)===!0})}function Mn(M){return U.set(M,(U.get(M)||0)+1),K.has(M)&&K.delete(M),R.fetchers.get(M)||n_}function Pt(M){let $=R.fetchers.get(M);A.has(M)&&!($&&$.state==="loading"&&ve.has(M))&&$n(M),F.delete(M),ve.delete(M),O.delete(M),K.delete(M),ue.delete(M),R.fetchers.delete(M)}function Ku(M){let $=(U.get(M)||0)-1;$<=0?(U.delete(M),K.add(M)):U.set(M,$),Je({fetchers:new Map(R.fetchers)})}function $n(M){let $=A.get(M);$&&($.abort(),A.delete(M))}function Ao(M){for(let $ of M){let I=Mn($),ce=tr(I.data);R.fetchers.set($,ce)}}function gr(){let M=[],$=!1;for(let I of O){let ce=R.fetchers.get(I);Xe(ce,`Expected fetcher: ${I}`),ce.state==="loading"&&(O.delete(I),M.push(I),$=!0)}return Ao(M),$}function vr(M){let $=[];for(let[I,ce]of ve)if(ce<M){let me=R.fetchers.get(I);Xe(me,`Expected fetcher: ${I}`),me.state==="loading"&&($n(I),ve.delete(I),$.push(I))}return Ao($),$.length>0}function ra(M,$){let I=R.blockers.get(M)||ro;return ae.get(M)!==$&&ae.set(M,$),I}function yr(M){R.blockers.delete(M),ae.delete(M)}function Vn(M,$){let I=R.blockers.get(M)||ro;Xe(I.state==="unblocked"&&$.state==="blocked"||I.state==="blocked"&&$.state==="blocked"||I.state==="blocked"&&$.state==="proceeding"||I.state==="blocked"&&$.state==="unblocked"||I.state==="proceeding"&&$.state==="unblocked",`Invalid blocker state transition: ${I.state} -> ${$.state}`);let ce=new Map(R.blockers);ce.set(M,$),Je({blockers:ce})}function To({currentLocation:M,nextLocation:$,historyAction:I}){if(ae.size===0)return;ae.size>1&&_t(!1,"A router only supports one blocker at a time");let ce=Array.from(ae.entries()),[me,Se]=ce[ce.length-1],Ce=R.blockers.get(me);if(!(Ce&&Ce.state==="proceeding")&&Se({currentLocation:M,nextLocation:$,historyAction:I}))return me}function Wr(M){let $=On(404,{pathname:M}),I=h||f,{matches:ce,route:me}=Jv(I);return{notFoundMatches:ce,route:me,error:$}}function Mo(M,$,I){if(S=M,_=$,C=I||null,!j&&R.navigation===id){j=!0;let ce=Do(R.location,R.matches);ce!=null&&Je({restoreScrollPosition:ce})}return()=>{S=null,_=null,C=null}}function el(M,$){return C&&C(M,$.map(ce=>ME(ce,R.loaderData)))||M.key}function br(M,$){if(S&&_){let I=el(M,$);S[I]=_()}}function Do(M,$){if(S){let I=el(M,$),ce=S[I];if(typeof ce=="number")return ce}return null}function xr(M,$,I){if(n.patchRoutesOnNavigation)if(M){if(Object.keys(M[0].params).length>0)return{active:!0,matches:ru($,I,p,!0)}}else return{active:!0,matches:ru($,I,p,!0)||[]};return{active:!1,matches:null}}async function wr(M,$,I,ce){if(!n.patchRoutesOnNavigation)return{type:"success",matches:M};let me=M;for(;;){let Se=h==null,Ce=h||f,Ee=u;try{await n.patchRoutesOnNavigation({signal:I,path:$,matches:me,fetcherKey:ce,patch:(_e,Ne)=>{I.aborted||Yv(_e,Ne,Ce,Ee,s,!1)}})}catch(_e){return{type:"error",error:_e,partialMatches:me}}finally{Se&&!I.aborted&&(f=[...f])}if(I.aborted)return{type:"aborted"};let Oe=ar(Ce,$,p);if(Oe)return{type:"success",matches:Oe};let Te=ru(Ce,$,p,!0);if(!Te||me.length===Te.length&&me.every((_e,Ne)=>_e.route.id===Te[Ne].route.id))return{type:"success",matches:null};me=Te}}function oi(M){u={},h=vo(M,s,void 0,u)}function si(M,$,I=!1){let ce=h==null;Yv(M,$,h||f,u,s,I),ce&&(f=[...f],Je({}))}return D={get basename(){return p},get future(){return v},get state(){return R},get routes(){return f},get window(){return a},initialize:ye,subscribe:qe,enableScrollRestoration:Mo,navigate:Ie,fetch:ke,revalidate:an,createHref:M=>n.history.createHref(M),encodeLocation:M=>n.history.encodeLocation(M),getFetcher:Mn,deleteFetcher:Ku,dispose:Le,getBlocker:ra,deleteBlocker:yr,patchRoutes:si,_internalFetchControllers:A,_internalSetRoutes:oi,_internalSetStateDoNotUseOrYouWillBreakYourApp(M){Je(M)}},D}function i_(n){return n!=null&&("formData"in n&&n.formData!=null||"body"in n&&n.body!==void 0)}function Dd(n,a,l,i,s,u){let f,h;if(s){f=[];for(let m of a)if(f.push(m),m.route.id===s){h=m;break}}else f=a,h=a[a.length-1];let p=Cu(i||".",_u(f),Tn(n.pathname,l)||n.pathname,u==="path");if(i==null&&(p.search=n.search,p.hash=n.hash),(i==null||i===""||i===".")&&h){let m=th(p.search);if(h.route.index&&!m)p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index";else if(!h.route.index&&m){let v=new URLSearchParams(p.search),b=v.getAll("index");v.delete("index"),b.filter(S=>S).forEach(S=>v.append("index",S));let w=v.toString();p.search=w?`?${w}`:""}}return l!=="/"&&(p.pathname=FE({basename:l,pathname:p.pathname})),lr(p)}function $v(n,a,l){if(!l||!i_(l))return{path:a};if(l.formMethod&&!y_(l.formMethod))return{path:a,error:On(405,{method:l.formMethod})};let i=()=>({path:a,error:On(400,{type:"invalid-body"})}),u=(l.formMethod||"get").toUpperCase(),f=v0(a);if(l.body!==void 0){if(l.formEncType==="text/plain"){if(!tn(u))return i();let b=typeof l.body=="string"?l.body:l.body instanceof FormData||l.body instanceof URLSearchParams?Array.from(l.body.entries()).reduce((w,[S,C])=>`${w}${S}=${C}
65
- `,""):String(l.body);return{path:a,submission:{formMethod:u,formAction:f,formEncType:l.formEncType,formData:void 0,json:void 0,text:b}}}else if(l.formEncType==="application/json"){if(!tn(u))return i();try{let b=typeof l.body=="string"?JSON.parse(l.body):l.body;return{path:a,submission:{formMethod:u,formAction:f,formEncType:l.formEncType,formData:void 0,json:b,text:void 0}}}catch{return i()}}}Xe(typeof FormData=="function","FormData is not available in this environment");let h,p;if(l.formData)h=zd(l.formData),p=l.formData;else if(l.body instanceof FormData)h=zd(l.body),p=l.body;else if(l.body instanceof URLSearchParams)h=l.body,p=Xv(h);else if(l.body==null)h=new URLSearchParams,p=new FormData;else try{h=new URLSearchParams(l.body),p=Xv(h)}catch{return i()}let m={formMethod:u,formAction:f,formEncType:l&&l.formEncType||"application/x-www-form-urlencoded",formData:p,json:void 0,text:void 0};if(tn(m.formMethod))return{path:a,submission:m};let v=Oa(a);return n&&v.search&&th(v.search)&&h.append("index",""),v.search=`?${h}`,{path:lr(v),submission:m}}function Vv(n,a,l,i,s,u,f,h,p,m,v,b,w,S,C,_,j,N,z,k){let H=k?hn(k[1])?k[1].error:k[1].data:void 0,D=s.createURL(u.location),R=s.createURL(p),B;if(v&&u.errors){let te=Object.keys(u.errors)[0];B=f.findIndex(W=>W.route.id===te)}else if(k&&hn(k[1])){let te=k[0];B=f.findIndex(W=>W.route.id===te)-1}let Z=k?k[1].statusCode:void 0,ne=Z&&Z>=400,oe={currentUrl:D,currentParams:u.matches[0]?.params||{},nextUrl:R,nextParams:f[0].params,...h,actionResult:H,actionStatus:Z},le=f.map((te,W)=>{let{route:ue}=te,A=null;if(B!=null&&W>B?A=!1:ue.lazy?A=!0:ue.loader==null?A=!1:v?A=Ld(ue,u.loaderData,u.errors):o_(u.loaderData,u.matches[W],te)&&(A=!0),A!==null)return kd(l,i,n,te,m,a,A);let Q=ne?!1:b||D.pathname+D.search===R.pathname+R.search||D.search!==R.search||s_(u.matches[W],te),V={...oe,defaultShouldRevalidate:Q},ve=pu(te,V);return kd(l,i,n,te,m,a,ve,V)}),J=[];return C.forEach((te,W)=>{if(v||!f.some(U=>U.route.id===te.routeId)||S.has(W))return;let ue=u.fetchers.get(W),A=ue&&ue.state!=="idle"&&ue.data===void 0,Q=ar(j,te.path,N);if(!Q){if(z&&A)return;J.push({key:W,routeId:te.routeId,path:te.path,matches:null,match:null,request:null,controller:null});return}if(_.has(W))return;let V=lu(Q,te.path),ve=new AbortController,O=Vl(s,te.path,ve.signal),F=null;if(w.has(W))w.delete(W),F=Kl(l,i,O,Q,V,m,a);else if(A)b&&(F=Kl(l,i,O,Q,V,m,a));else{let U={...oe,defaultShouldRevalidate:ne?!1:b};pu(V,U)&&(F=Kl(l,i,O,Q,V,m,a,U))}F&&J.push({key:W,routeId:te.routeId,path:te.path,matches:F,match:V,request:O,controller:ve})}),{dsMatches:le,revalidatingFetchers:J}}function Ld(n,a,l){if(n.lazy)return!0;if(!n.loader)return!1;let i=a!=null&&n.id in a,s=l!=null&&l[n.id]!==void 0;return!i&&s?!1:typeof n.loader=="function"&&n.loader.hydrate===!0?!0:!i&&!s}function o_(n,a,l){let i=!a||l.route.id!==a.route.id,s=!n.hasOwnProperty(l.route.id);return i||s}function s_(n,a){let l=n.route.path;return n.pathname!==a.pathname||l!=null&&l.endsWith("*")&&n.params["*"]!==a.params["*"]}function pu(n,a){if(n.route.shouldRevalidate){let l=n.route.shouldRevalidate(a);if(typeof l=="boolean")return l}return a.defaultShouldRevalidate}function Yv(n,a,l,i,s,u){let f;if(n){let m=i[n];Xe(m,`No route found to patch children into: routeId = ${n}`),m.children||(m.children=[]),f=m.children}else f=l;let h=[],p=[];if(a.forEach(m=>{let v=f.find(b=>d0(m,b));v?p.push({existingRoute:v,newRoute:m}):h.push(m)}),h.length>0){let m=vo(h,s,[n||"_","patch",String(f?.length||"0")],i);f.push(...m)}if(u&&p.length>0)for(let m=0;m<p.length;m++){let{existingRoute:v,newRoute:b}=p[m],w=v,[S]=vo([b],s,[],{},!0);Object.assign(w,{element:S.element?S.element:w.element,errorElement:S.errorElement?S.errorElement:w.errorElement,hydrateFallbackElement:S.hydrateFallbackElement?S.hydrateFallbackElement:w.hydrateFallbackElement})}}function d0(n,a){return"id"in n&&"id"in a&&n.id===a.id?!0:n.index===a.index&&n.path===a.path&&n.caseSensitive===a.caseSensitive?(!n.children||n.children.length===0)&&(!a.children||a.children.length===0)?!0:n.children.every((l,i)=>a.children?.some(s=>d0(l,s))):!1}var qv=new WeakMap,h0=({key:n,route:a,manifest:l,mapRouteProperties:i})=>{let s=l[a.id];if(Xe(s,"No route found in manifest"),!s.lazy||typeof s.lazy!="object")return;let u=s.lazy[n];if(!u)return;let f=qv.get(s);f||(f={},qv.set(s,f));let h=f[n];if(h)return h;let p=(async()=>{let m=jE(n),b=s[n]!==void 0&&n!=="hasErrorBoundary";if(m)_t(!m,"Route property "+n+" is not a supported lazy route property. This property will be ignored."),f[n]=Promise.resolve();else if(b)_t(!1,`Route "${s.id}" has a static property "${n}" defined. The lazy property will be ignored.`);else{let w=await u();w!=null&&(Object.assign(s,{[n]:w}),Object.assign(s,i(s)))}typeof s.lazy=="object"&&(s.lazy[n]=void 0,Object.values(s.lazy).every(w=>w===void 0)&&(s.lazy=void 0))})();return f[n]=p,p},Fv=new WeakMap;function u_(n,a,l,i,s){let u=l[n.id];if(Xe(u,"No route found in manifest"),!n.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof n.lazy=="function"){let v=Fv.get(u);if(v)return{lazyRoutePromise:v,lazyHandlerPromise:v};let b=(async()=>{Xe(typeof n.lazy=="function","No lazy route function found");let w=await n.lazy(),S={};for(let C in w){let _=w[C];if(_===void 0)continue;let j=AE(C),z=u[C]!==void 0&&C!=="hasErrorBoundary";j?_t(!j,"Route property "+C+" is not a supported property to be returned from a lazy route function. This property will be ignored."):z?_t(!z,`Route "${u.id}" has a static property "${C}" defined but its lazy function is also returning a value for this property. The lazy route property "${C}" will be ignored.`):S[C]=_}Object.assign(u,S),Object.assign(u,{...i(u),lazy:void 0})})();return Fv.set(u,b),b.catch(()=>{}),{lazyRoutePromise:b,lazyHandlerPromise:b}}let f=Object.keys(n.lazy),h=[],p;for(let v of f){if(s&&s.includes(v))continue;let b=h0({key:v,route:n,manifest:l,mapRouteProperties:i});b&&(h.push(b),v===a&&(p=b))}let m=h.length>0?Promise.all(h).then(()=>{}):void 0;return m?.catch(()=>{}),p?.catch(()=>{}),{lazyRoutePromise:m,lazyHandlerPromise:p}}async function Kv(n){let a=n.matches.filter(s=>s.shouldLoad),l={};return(await Promise.all(a.map(s=>s.resolve()))).forEach((s,u)=>{l[a[u].route.id]=s}),l}async function c_(n){return n.matches.some(a=>a.route.unstable_middleware)?m0(n,!1,()=>Kv(n),(a,l)=>({[l]:{type:"error",result:a}})):Kv(n)}async function m0(n,a,l,i){let{matches:s,request:u,params:f,context:h}=n,p={handlerResult:void 0};try{let m=s.flatMap(b=>b.route.unstable_middleware?b.route.unstable_middleware.map(w=>[b.route.id,w]):[]),v=await p0({request:u,params:f,context:h},m,a,p,l);return a?v:p.handlerResult}catch(m){if(!p.middlewareError)throw m;let v=await i(p.middlewareError.error,p.middlewareError.routeId);return p.handlerResult?Object.assign(p.handlerResult,v):v}}async function p0(n,a,l,i,s,u=0){let{request:f}=n;if(f.signal.aborted)throw f.signal.reason?f.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${f.method} ${f.url}`);let h=a[u];if(!h)return i.handlerResult=await s(),i.handlerResult;let[p,m]=h,v=!1,b,w=async()=>{if(v)throw new Error("You may only call `next()` once per middleware");v=!0,await p0(n,a,l,i,s,u+1)};try{let S=await m({request:n.request,params:n.params,context:n.context},w);return v?S===void 0?b:S:w()}catch(S){throw i.middlewareError?i.middlewareError.error!==S&&(i.middlewareError={routeId:p,error:S}):i.middlewareError={routeId:p,error:S},S}}function g0(n,a,l,i,s){let u=h0({key:"unstable_middleware",route:i.route,manifest:a,mapRouteProperties:n}),f=u_(i.route,tn(l.method)?"action":"loader",a,n,s);return{middleware:u,route:f.lazyRoutePromise,handler:f.lazyHandlerPromise}}function kd(n,a,l,i,s,u,f,h=null){let p=!1,m=g0(n,a,l,i,s);return{...i,_lazyPromises:m,shouldLoad:f,unstable_shouldRevalidateArgs:h,unstable_shouldCallHandler(v){return p=!0,h?typeof v=="boolean"?pu(i,{...h,defaultShouldRevalidate:v}):pu(i,h):f},resolve(v){return p||f||v&&!tn(l.method)&&(i.route.lazy||i.route.loader)?d_({request:l,match:i,lazyHandlerPromise:m?.handler,lazyRoutePromise:m?.route,handlerOverride:v,scopedContext:u}):Promise.resolve({type:"data",result:void 0})}}}function Kl(n,a,l,i,s,u,f,h=null){return i.map(p=>p.route.id!==s.route.id?{...p,shouldLoad:!1,unstable_shouldRevalidateArgs:h,unstable_shouldCallHandler:()=>!1,_lazyPromises:g0(n,a,l,p,u),resolve:()=>Promise.resolve({type:"data",result:void 0})}:kd(n,a,l,p,u,f,!0,h))}async function f_(n,a,l,i,s,u){l.some(m=>m._lazyPromises?.middleware)&&await Promise.all(l.map(m=>m._lazyPromises?.middleware));let f={request:a,params:l[0].params,context:s,matches:l},p=await n({...f,fetcherKey:i,unstable_runClientMiddleware:m=>{let v=f;return m0(v,!1,()=>m({...v,fetcherKey:i,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}),(b,w)=>({[w]:{type:"error",result:b}}))}});try{await Promise.all(l.flatMap(m=>[m._lazyPromises?.handler,m._lazyPromises?.route]))}catch{}return p}async function d_({request:n,match:a,lazyHandlerPromise:l,lazyRoutePromise:i,handlerOverride:s,scopedContext:u}){let f,h,p=tn(n.method),m=p?"action":"loader",v=b=>{let w,S=new Promise((j,N)=>w=N);h=()=>w(),n.signal.addEventListener("abort",h);let C=j=>typeof b!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${m}" [routeId: ${a.route.id}]`)):b({request:n,params:a.params,context:u},...j!==void 0?[j]:[]),_=(async()=>{try{return{type:"data",result:await(s?s(N=>C(N)):C())}}catch(j){return{type:"error",result:j}}})();return Promise.race([_,S])};try{let b=p?a.route.action:a.route.loader;if(l||i)if(b){let w,[S]=await Promise.all([v(b).catch(C=>{w=C}),l,i]);if(w!==void 0)throw w;f=S}else{await l;let w=p?a.route.action:a.route.loader;if(w)[f]=await Promise.all([v(w),i]);else if(m==="action"){let S=new URL(n.url),C=S.pathname+S.search;throw On(405,{method:n.method,pathname:C,routeId:a.route.id})}else return{type:"data",result:void 0}}else if(b)f=await v(b);else{let w=new URL(n.url),S=w.pathname+w.search;throw On(404,{pathname:S})}}catch(b){return{type:"error",result:b}}finally{h&&n.signal.removeEventListener("abort",h)}return f}async function h_(n){let{result:a,type:l}=n;if(y0(a)){let i;try{let s=a.headers.get("Content-Type");s&&/\bapplication\/json\b/.test(s)?a.body==null?i=null:i=await a.json():i=await a.text()}catch(s){return{type:"error",error:s}}return l==="error"?{type:"error",error:new Md(a.status,a.statusText,i),statusCode:a.status,headers:a.headers}:{type:"data",data:i,statusCode:a.status,headers:a.headers}}return l==="error"?Wv(a)?a.data instanceof Error?{type:"error",error:a.data,statusCode:a.init?.status,headers:a.init?.headers?new Headers(a.init.headers):void 0}:{type:"error",error:new Md(a.init?.status||500,void 0,a.data),statusCode:yo(a)?a.status:void 0,headers:a.init?.headers?new Headers(a.init.headers):void 0}:{type:"error",error:a,statusCode:yo(a)?a.status:void 0}:Wv(a)?{type:"data",data:a.data,statusCode:a.init?.status,headers:a.init?.headers?new Headers(a.init.headers):void 0}:{type:"data",data:a}}function m_(n,a,l,i,s){let u=n.headers.get("Location");if(Xe(u,"Redirects returned/thrown from loaders/actions must have a Location header"),!eh(u)){let f=i.slice(0,i.findIndex(h=>h.route.id===l)+1);u=Dd(new URL(a.url),f,s,u),n.headers.set("Location",u)}return n}function Gv(n,a,l){if(eh(n)){let i=n,s=i.startsWith("//")?new URL(a.protocol+i):new URL(i),u=Tn(s.pathname,l)!=null;if(s.origin===a.origin&&u)return s.pathname+s.search+s.hash}return n}function Vl(n,a,l,i){let s=n.createURL(v0(a)).toString(),u={signal:l};if(i&&tn(i.formMethod)){let{formMethod:f,formEncType:h}=i;u.method=f.toUpperCase(),h==="application/json"?(u.headers=new Headers({"Content-Type":h}),u.body=JSON.stringify(i.json)):h==="text/plain"?u.body=i.text:h==="application/x-www-form-urlencoded"&&i.formData?u.body=zd(i.formData):u.body=i.formData}return new Request(s,u)}function zd(n){let a=new URLSearchParams;for(let[l,i]of n.entries())a.append(l,typeof i=="string"?i:i.name);return a}function Xv(n){let a=new FormData;for(let[l,i]of n.entries())a.append(l,i);return a}function p_(n,a,l,i=!1,s=!1){let u={},f=null,h,p=!1,m={},v=l&&hn(l[1])?l[1].error:void 0;return n.forEach(b=>{if(!(b.route.id in a))return;let w=b.route.id,S=a[w];if(Xe(!Vr(S),"Cannot handle redirect results in processLoaderData"),hn(S)){let C=S.error;if(v!==void 0&&(C=v,v=void 0),f=f||{},s)f[w]=C;else{let _=Br(n,w);f[_.route.id]==null&&(f[_.route.id]=C)}i||(u[w]=f0),p||(p=!0,h=yo(S.error)?S.error.status:500),S.headers&&(m[w]=S.headers)}else u[w]=S.data,S.statusCode&&S.statusCode!==200&&!p&&(h=S.statusCode),S.headers&&(m[w]=S.headers)}),v!==void 0&&l&&(f={[l[0]]:v},l[2]&&(u[l[2]]=void 0)),{loaderData:u,errors:f,statusCode:h||200,loaderHeaders:m}}function Qv(n,a,l,i,s,u){let{loaderData:f,errors:h}=p_(a,l,i);return s.filter(p=>!p.matches||p.matches.some(m=>m.shouldLoad)).forEach(p=>{let{key:m,match:v,controller:b}=p,w=u[m];if(Xe(w,"Did not find corresponding fetcher result"),!(b&&b.signal.aborted))if(hn(w)){let S=Br(n.matches,v?.route.id);h&&h[S.route.id]||(h={...h,[S.route.id]:w.error}),n.fetchers.delete(m)}else if(Vr(w))Xe(!1,"Unhandled fetcher revalidation redirect");else{let S=tr(w.data);n.fetchers.set(m,S)}}),{loaderData:f,errors:h}}function Zv(n,a,l,i){let s=Object.entries(a).filter(([,u])=>u!==f0).reduce((u,[f,h])=>(u[f]=h,u),{});for(let u of l){let f=u.route.id;if(!a.hasOwnProperty(f)&&n.hasOwnProperty(f)&&u.route.loader&&(s[f]=n[f]),i&&i.hasOwnProperty(f))break}return s}function Iv(n){return n?hn(n[1])?{actionData:{}}:{actionData:{[n[0]]:n[1].data}}:{}}function Br(n,a){return(a?n.slice(0,n.findIndex(i=>i.route.id===a)+1):[...n]).reverse().find(i=>i.route.hasErrorBoundary===!0)||n[0]}function Jv(n){let a=n.length===1?n[0]:n.find(l=>l.index||!l.path||l.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:a}],route:a}}function On(n,{pathname:a,routeId:l,method:i,type:s,message:u}={}){let f="Unknown Server Error",h="Unknown @remix-run/router error";return n===400?(f="Bad Request",i&&a&&l?h=`You made a ${i} request to "${a}" but did not provide a \`loader\` for route "${l}", so there is no way to handle the request.`:s==="invalid-body"&&(h="Unable to encode submission body")):n===403?(f="Forbidden",h=`Route "${l}" does not match URL "${a}"`):n===404?(f="Not Found",h=`No route matches URL "${a}"`):n===405&&(f="Method Not Allowed",i&&a&&l?h=`You made a ${i.toUpperCase()} request to "${a}" but did not provide an \`action\` for route "${l}", so there is no way to handle the request.`:i&&(h=`Invalid request method "${i.toUpperCase()}"`)),new Md(n||500,f,new Error(h),!0)}function Fs(n){let a=Object.entries(n);for(let l=a.length-1;l>=0;l--){let[i,s]=a[l];if(Vr(s))return{key:i,result:s}}}function v0(n){let a=typeof n=="string"?Oa(n):n;return lr({...a,hash:""})}function g_(n,a){return n.pathname!==a.pathname||n.search!==a.search?!1:n.hash===""?a.hash!=="":n.hash===a.hash?!0:a.hash!==""}function v_(n){return y0(n.result)&&e_.has(n.result.status)}function hn(n){return n.type==="error"}function Vr(n){return(n&&n.type)==="redirect"}function Wv(n){return typeof n=="object"&&n!=null&&"type"in n&&"data"in n&&"init"in n&&n.type==="DataWithResponseInit"}function y0(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.headers=="object"&&typeof n.body<"u"}function y_(n){return WE.has(n.toUpperCase())}function tn(n){return IE.has(n.toUpperCase())}function th(n){return new URLSearchParams(n).getAll("index").some(a=>a==="")}function lu(n,a){let l=typeof a=="string"?Oa(a).search:a.search;if(n[n.length-1].route.index&&th(l||""))return n[n.length-1];let i=s0(n);return i[i.length-1]}function ey(n){let{formMethod:a,formAction:l,formEncType:i,text:s,formData:u,json:f}=n;if(!(!a||!l||!i)){if(s!=null)return{formMethod:a,formAction:l,formEncType:i,formData:void 0,json:void 0,text:s};if(u!=null)return{formMethod:a,formAction:l,formEncType:i,formData:u,json:void 0,text:void 0};if(f!==void 0)return{formMethod:a,formAction:l,formEncType:i,formData:void 0,json:f,text:void 0}}}function od(n,a){return a?{state:"loading",location:n,formMethod:a.formMethod,formAction:a.formAction,formEncType:a.formEncType,formData:a.formData,json:a.json,text:a.text}:{state:"loading",location:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function b_(n,a){return{state:"submitting",location:n,formMethod:a.formMethod,formAction:a.formAction,formEncType:a.formEncType,formData:a.formData,json:a.json,text:a.text}}function lo(n,a){return n?{state:"loading",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:a}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:a}}function x_(n,a){return{state:"submitting",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:a?a.data:void 0}}function tr(n){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function w_(n,a){try{let l=n.sessionStorage.getItem(c0);if(l){let i=JSON.parse(l);for(let[s,u]of Object.entries(i||{}))u&&Array.isArray(u)&&a.set(s,new Set(u||[]))}}catch{}}function S_(n,a){if(a.size>0){let l={};for(let[i,s]of a)l[i]=[...s];try{n.sessionStorage.setItem(c0,JSON.stringify(l))}catch(i){_t(!1,`Failed to save applied view transitions in sessionStorage (${i}).`)}}}function E_(){let n,a,l=new Promise((i,s)=>{n=async u=>{i(u);try{await l}catch{}},a=async u=>{s(u);try{await l}catch{}}});return{promise:l,resolve:n,reject:a}}var Ir=y.createContext(null);Ir.displayName="DataRouter";var Eo=y.createContext(null);Eo.displayName="DataRouterState";y.createContext(!1);var nh=y.createContext({isTransitioning:!1});nh.displayName="ViewTransition";var b0=y.createContext(new Map);b0.displayName="Fetchers";var __=y.createContext(null);__.displayName="Await";var Pn=y.createContext(null);Pn.displayName="Navigation";var Nu=y.createContext(null);Nu.displayName="Location";var na=y.createContext({outlet:null,matches:[],isDataRoute:!1});na.displayName="Route";var ah=y.createContext(null);ah.displayName="RouteError";function C_(n,{relative:a}={}){Xe(Wl(),"useHref() may be used only in the context of a <Router> component.");let{basename:l,navigator:i}=y.useContext(Pn),{hash:s,pathname:u,search:f}=_o(n,{relative:a}),h=u;return l!=="/"&&(h=u==="/"?l:Jn([l,u])),i.createHref({pathname:h,search:f,hash:s})}function Wl(){return y.useContext(Nu)!=null}function mr(){return Xe(Wl(),"useLocation() may be used only in the context of a <Router> component."),y.useContext(Nu).location}var x0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function w0(n){y.useContext(Pn).static||y.useLayoutEffect(n)}function Ru(){let{isDataRoute:n}=y.useContext(na);return n?P_():N_()}function N_(){Xe(Wl(),"useNavigate() may be used only in the context of a <Router> component.");let n=y.useContext(Ir),{basename:a,navigator:l}=y.useContext(Pn),{matches:i}=y.useContext(na),{pathname:s}=mr(),u=JSON.stringify(_u(i)),f=y.useRef(!1);return w0(()=>{f.current=!0}),y.useCallback((p,m={})=>{if(_t(f.current,x0),!f.current)return;if(typeof p=="number"){l.go(p);return}let v=Cu(p,JSON.parse(u),s,m.relative==="path");n==null&&a!=="/"&&(v.pathname=v.pathname==="/"?a:Jn([a,v.pathname])),(m.replace?l.replace:l.push)(v,m.state,m)},[a,l,u,s,n])}y.createContext(null);function _o(n,{relative:a}={}){let{matches:l}=y.useContext(na),{pathname:i}=mr(),s=JSON.stringify(_u(l));return y.useMemo(()=>Cu(n,JSON.parse(s),i,a==="path"),[n,s,i,a])}function R_(n,a,l,i){Xe(Wl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=y.useContext(Pn),{matches:u}=y.useContext(na),f=u[u.length-1],h=f?f.params:{},p=f?f.pathname:"/",m=f?f.pathnameBase:"/",v=f&&f.route;{let N=v&&v.path||"";S0(p,!v||N.endsWith("*")||N.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${N}">) 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.
64
+ */var o0=n=>{throw TypeError(n)},N_=(n,a,l)=>a.has(n)||o0("Cannot "+l),rd=(n,a,l)=>(N_(n,a,"read from private field"),l?l.call(n):a.get(n)),R_=(n,a,l)=>a.has(n)?o0("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(n):a.set(n,l);function j_(n={}){let{initialEntries:a=["/"],initialIndex:l,v5Compat:i=!1}=n,s;s=a.map((S,C)=>v(S,typeof S=="string"?null:S.state,C===0?"default":void 0));let c=p(l??s.length-1),f="POP",h=null;function p(S){return Math.min(Math.max(S,0),s.length-1)}function m(){return s[c]}function v(S,C=null,E){let j=Md(s?m().pathname:"/",S,C,E);return Ct(j.pathname.charAt(0)==="/",`relative pathnames are not supported in memory history: ${JSON.stringify(S)}`),j}function b(S){return typeof S=="string"?S:ir(S)}return{get index(){return c},get action(){return f},get location(){return m()},createHref:b,createURL(S){return new URL(b(S),"http://localhost")},encodeLocation(S){let C=typeof S=="string"?Aa(S):S;return{pathname:C.pathname||"",search:C.search||"",hash:C.hash||""}},push(S,C){f="PUSH";let E=v(S,C);c+=1,s.splice(c,s.length,E),i&&h&&h({action:f,location:E,delta:1})},replace(S,C){f="REPLACE";let E=v(S,C);s[c]=E,i&&h&&h({action:f,location:E,delta:0})},go(S){f="POP";let C=p(c+S),E=s[C];c=C,h&&h({action:f,location:E,delta:S})},listen(S){return h=S,()=>{h=null}}}}function Xe(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function Ct(n,a){if(!n){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function O_(){return Math.random().toString(36).substring(2,10)}function Md(n,a,l=null,i){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof a=="string"?Aa(a):a,state:l,key:a&&a.key||i||O_()}}function ir({pathname:n="/",search:a="",hash:l=""}){return a&&a!=="?"&&(n+=a.charAt(0)==="?"?a:"?"+a),l&&l!=="#"&&(n+=l.charAt(0)==="#"?l:"#"+l),n}function Aa(n){let a={};if(n){let l=n.indexOf("#");l>=0&&(a.hash=n.substring(l),n=n.substring(0,l));let i=n.indexOf("?");i>=0&&(a.search=n.substring(i),n=n.substring(0,i)),n&&(a.pathname=n)}return a}function A_(n,a=!1){let l="http://localhost";typeof window<"u"&&(l=window.location.origin!=="null"?window.location.origin:window.location.href),Xe(l,"No window.location.(origin|href) available to create URL");let i=typeof n=="string"?n:ir(n);return i=i.replace(/ $/,"%20"),!a&&i.startsWith("//")&&(i=l+i),new URL(i,l)}var co,$v=class{constructor(n){if(R_(this,co,new Map),n)for(let[a,l]of n)this.set(a,l)}get(n){if(rd(this,co).has(n))return rd(this,co).get(n);if(n.defaultValue!==void 0)return n.defaultValue;throw new Error("No value found for context")}set(n,a){rd(this,co).set(n,a)}};co=new WeakMap;var T_=new Set(["lazy","caseSensitive","path","id","index","children"]);function M_(n){return T_.has(n)}var D_=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function L_(n){return D_.has(n)}function k_(n){return n.index===!0}function vo(n,a,l=[],i={},s=!1){return n.map((c,f)=>{let h=[...l,String(f)],p=typeof c.id=="string"?c.id:h.join("-");if(Xe(c.index!==!0||!c.children,"Cannot specify children on an index route"),Xe(s||!i[p],`Found a route id collision on id "${p}". Route id's must be globally unique within Data Router usages`),k_(c)){let m={...c,...a(c),id:p};return i[p]=m,m}else{let m={...c,...a(c),id:p,children:void 0};return i[p]=m,c.children&&(m.children=vo(c.children,a,h,i,s)),m}})}function rr(n,a,l="/"){return rc(n,a,l,!1)}function rc(n,a,l,i){let s=typeof a=="string"?Aa(a):a,c=Tn(s.pathname||"/",l);if(c==null)return null;let f=s0(n);U_(f);let h=null;for(let p=0;h==null&&p<f.length;++p){let m=X_(c);h=G_(f[p],m,i)}return h}function z_(n,a){let{route:l,pathname:i,params:s}=n;return{id:l.id,pathname:i,params:s,data:a[l.id],handle:l.handle}}function s0(n,a=[],l=[],i=""){let s=(c,f,h)=>{let p={relativePath:h===void 0?c.path||"":h,caseSensitive:c.caseSensitive===!0,childrenIndex:f,route:c};p.relativePath.startsWith("/")&&(Xe(p.relativePath.startsWith(i),`Absolute route path "${p.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(i.length));let m=Jn([i,p.relativePath]),v=l.concat(p);c.children&&c.children.length>0&&(Xe(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),s0(c.children,a,v,m)),!(c.path==null&&!c.index)&&a.push({path:m,score:F_(m,c.index),routesMeta:v})};return n.forEach((c,f)=>{if(c.path===""||!c.path?.includes("?"))s(c,f);else for(let h of c0(c.path))s(c,f,h)}),a}function c0(n){let a=n.split("/");if(a.length===0)return[];let[l,...i]=a,s=l.endsWith("?"),c=l.replace(/\?$/,"");if(i.length===0)return s?[c,""]:[c];let f=c0(i.join("/")),h=[];return h.push(...f.map(p=>p===""?c:[c,p].join("/"))),s&&h.push(...f),h.map(p=>n.startsWith("/")&&p===""?"/":p)}function U_(n){n.sort((a,l)=>a.score!==l.score?l.score-a.score:Y_(a.routesMeta.map(i=>i.childrenIndex),l.routesMeta.map(i=>i.childrenIndex)))}var P_=/^:[\w-]+$/,H_=3,B_=2,$_=1,V_=10,q_=-2,Vv=n=>n==="*";function F_(n,a){let l=n.split("/"),i=l.length;return l.some(Vv)&&(i+=q_),a&&(i+=B_),l.filter(s=>!Vv(s)).reduce((s,c)=>s+(P_.test(c)?H_:c===""?$_:V_),i)}function Y_(n,a){return n.length===a.length&&n.slice(0,-1).every((i,s)=>i===a[s])?n[n.length-1]-a[a.length-1]:0}function G_(n,a,l=!1){let{routesMeta:i}=n,s={},c="/",f=[];for(let h=0;h<i.length;++h){let p=i[h],m=h===i.length-1,v=c==="/"?a:a.slice(c.length)||"/",b=mc({path:p.relativePath,caseSensitive:p.caseSensitive,end:m},v),w=p.route;if(!b&&m&&l&&!i[i.length-1].route.index&&(b=mc({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},v)),!b)return null;Object.assign(s,b.params),f.push({params:s,pathname:Jn([c,b.pathname]),pathnameBase:J_(Jn([c,b.pathnameBase])),route:w}),b.pathnameBase!=="/"&&(c=Jn([c,b.pathnameBase]))}return f}function mc(n,a){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[l,i]=K_(n.path,n.caseSensitive,n.end),s=a.match(l);if(!s)return null;let c=s[0],f=c.replace(/(.)\/+$/,"$1"),h=s.slice(1);return{params:i.reduce((m,{paramName:v,isOptional:b},w)=>{if(v==="*"){let C=h[w]||"";f=c.slice(0,c.length-C.length).replace(/(.)\/+$/,"$1")}const S=h[w];return b&&!S?m[v]=void 0:m[v]=(S||"").replace(/%2F/g,"/"),m},{}),pathname:c,pathnameBase:f,pattern:n}}function K_(n,a=!1,l=!0){Ct(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let i=[],s="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,h,p)=>(i.push({paramName:h,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(i.push({paramName:"*"}),s+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?s+="\\/*$":n!==""&&n!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,a?void 0:"i"),i]}function X_(n){try{return n.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return Ct(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),n}}function Tn(n,a){if(a==="/")return n;if(!n.toLowerCase().startsWith(a.toLowerCase()))return null;let l=a.endsWith("/")?a.length-1:a.length,i=n.charAt(l);return i&&i!=="/"?null:n.slice(l)||"/"}function Q_({basename:n,pathname:a}){return a==="/"?n:Jn([n,a])}function I_(n,a="/"){let{pathname:l,search:i="",hash:s=""}=typeof n=="string"?Aa(n):n;return{pathname:l?l.startsWith("/")?l:Z_(l,a):a,search:W_(i),hash:eE(s)}}function Z_(n,a){let l=a.replace(/\/+$/,"").split("/");return n.split("/").forEach(s=>{s===".."?l.length>1&&l.pop():s!=="."&&l.push(s)}),l.length>1?l.join("/"):"/"}function ld(n,a,l,i){return`Cannot include a '${n}' character in a manually specified \`to.${a}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${l}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function u0(n){return n.filter((a,l)=>l===0||a.route.path&&a.route.path.length>0)}function Ec(n){let a=u0(n);return a.map((l,i)=>i===a.length-1?l.pathname:l.pathnameBase)}function Cc(n,a,l,i=!1){let s;typeof n=="string"?s=Aa(n):(s={...n},Xe(!s.pathname||!s.pathname.includes("?"),ld("?","pathname","search",s)),Xe(!s.pathname||!s.pathname.includes("#"),ld("#","pathname","hash",s)),Xe(!s.search||!s.search.includes("#"),ld("#","search","hash",s)));let c=n===""||s.pathname==="",f=c?"/":s.pathname,h;if(f==null)h=l;else{let b=a.length-1;if(!i&&f.startsWith("..")){let w=f.split("/");for(;w[0]==="..";)w.shift(),b-=1;s.pathname=w.join("/")}h=b>=0?a[b]:"/"}let p=I_(s,h),m=f&&f!=="/"&&f.endsWith("/"),v=(c||f===".")&&l.endsWith("/");return!p.pathname.endsWith("/")&&(m||v)&&(p.pathname+="/"),p}var Jn=n=>n.join("/").replace(/\/\/+/g,"/"),J_=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),W_=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,eE=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,Dd=class{constructor(n,a,l,i=!1){this.status=n,this.statusText=a||"",this.internal=i,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function yo(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var f0=["POST","PUT","PATCH","DELETE"],tE=new Set(f0),nE=["GET",...f0],aE=new Set(nE),rE=new Set([301,302,303,307,308]),lE=new Set([307,308]),id={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},iE={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ro={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},oE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,th=n=>oE.test(n),sE=n=>({hasErrorBoundary:!!n.hasErrorBoundary}),d0="remix-router-transitions",h0=Symbol("ResetLoaderData");function cE(n){const a=n.window?n.window:typeof window<"u"?window:void 0,l=typeof a<"u"&&typeof a.document<"u"&&typeof a.document.createElement<"u";Xe(n.routes.length>0,"You must provide a non-empty routes array to createRouter");let i=n.hydrationRouteProperties||[],s=n.mapRouteProperties||sE,c={},f=vo(n.routes,s,void 0,c),h,p=n.basename||"/",m=n.dataStrategy||mE,v={unstable_middleware:!1,...n.future},b=null,w=new Set,S=null,C=null,E=null,j=n.hydrationData!=null,R=rr(f,n.history.location,p),L=!1,k=null,H;if(R==null&&!n.patchRoutesOnNavigation){let D=On(404,{pathname:n.history.location.pathname}),{matches:q,route:W}=ey(f);H=!0,R=q,k={[W.id]:D}}else if(R&&!n.hydrationData&&wr(R,f,n.history.location.pathname).active&&(R=null),R)if(R.some(D=>D.route.lazy))H=!1;else if(!R.some(D=>D.route.loader))H=!0;else{let D=n.hydrationData?n.hydrationData.loaderData:null,q=n.hydrationData?n.hydrationData.errors:null;if(q){let W=R.findIndex(ce=>q[ce.route.id]!==void 0);H=R.slice(0,W+1).every(ce=>!kd(ce.route,D,q))}else H=R.every(W=>!kd(W.route,D,q))}else{H=!1,R=[];let D=wr(null,f,n.history.location.pathname);D.active&&D.matches&&(L=!0,R=D.matches)}let M,N={historyAction:n.history.action,location:n.history.location,matches:R,initialized:H,navigation:id,restoreScrollPosition:n.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:n.hydrationData&&n.hydrationData.loaderData||{},actionData:n.hydrationData&&n.hydrationData.actionData||null,errors:n.hydrationData&&n.hydrationData.errors||k,fetchers:new Map,blockers:new Map},B="POP",J=!1,te,ae=!1,re=new Map,fe=null,de=!1,Q=!1,ee=new Set,A=new Map,X=0,V=-1,ye=new Map,O=new Set,G=new Map,U=new Map,K=new Set,P=new Map,oe,me=null;function ve(){if(b=n.history.listen(({action:D,location:q,delta:W})=>{if(oe){oe(),oe=void 0;return}Ct(P.size===0||W!=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 ce=To({currentLocation:N.location,nextLocation:q,historyAction:D});if(ce&&W!=null){let pe=new Promise(Se=>{oe=Se});n.history.go(W*-1),Vn(ce,{state:"blocked",location:q,proceed(){Vn(ce,{state:"proceeding",proceed:void 0,reset:void 0,location:q}),pe.then(()=>n.history.go(W))},reset(){let Se=new Map(N.blockers);Se.set(ce,ro),Je({blockers:Se})}});return}return ie(D,q)}),l){CE(a,re);let D=()=>NE(a,re);a.addEventListener("pagehide",D),fe=()=>a.removeEventListener("pagehide",D)}return N.initialized||ie("POP",N.location,{initialHydration:!0}),M}function Le(){b&&b(),fe&&fe(),w.clear(),te&&te.abort(),N.fetchers.forEach((D,q)=>Ht(q)),N.blockers.forEach((D,q)=>br(q))}function Fe(D){return w.add(D),()=>w.delete(D)}function Je(D,q={}){D.matches&&(D.matches=D.matches.map(pe=>{let Se=c[pe.route.id],Ne=pe.route;return Ne.element!==Se.element||Ne.errorElement!==Se.errorElement||Ne.hydrateFallbackElement!==Se.hydrateFallbackElement?{...pe,route:Se}:pe})),N={...N,...D};let W=[],ce=[];N.fetchers.forEach((pe,Se)=>{pe.state==="idle"&&(K.has(Se)?W.push(Se):ce.push(Se))}),K.forEach(pe=>{!N.fetchers.has(pe)&&!A.has(pe)&&W.push(pe)}),[...w].forEach(pe=>pe(N,{deletedFetchers:W,viewTransitionOpts:q.viewTransitionOpts,flushSync:q.flushSync===!0})),W.forEach(pe=>Ht(pe)),ce.forEach(pe=>N.fetchers.delete(pe))}function Tt(D,q,{flushSync:W}={}){let ce=N.actionData!=null&&N.navigation.formMethod!=null&&tn(N.navigation.formMethod)&&N.navigation.state==="loading"&&D.state?._isRedirect!==!0,pe;q.actionData?Object.keys(q.actionData).length>0?pe=q.actionData:pe=null:ce?pe=N.actionData:pe=null;let Se=q.loaderData?Jv(N.loaderData,q.loaderData,q.matches||[],q.errors):N.loaderData,Ne=N.blockers;Ne.size>0&&(Ne=new Map(Ne),Ne.forEach((Ee,Re)=>Ne.set(Re,ro)));let _e=de?!1:Do(D,q.matches||N.matches),Ae=J===!0||N.navigation.formMethod!=null&&tn(N.navigation.formMethod)&&D.state?._isRedirect!==!0;h&&(f=h,h=void 0),de||B==="POP"||(B==="PUSH"?n.history.push(D,D.state):B==="REPLACE"&&n.history.replace(D,D.state));let Te;if(B==="POP"){let Ee=re.get(N.location.pathname);Ee&&Ee.has(D.pathname)?Te={currentLocation:N.location,nextLocation:D}:re.has(D.pathname)&&(Te={currentLocation:D,nextLocation:N.location})}else if(ae){let Ee=re.get(N.location.pathname);Ee?Ee.add(D.pathname):(Ee=new Set([D.pathname]),re.set(N.location.pathname,Ee)),Te={currentLocation:N.location,nextLocation:D}}Je({...q,actionData:pe,loaderData:Se,historyAction:B,location:D,initialized:!0,navigation:id,revalidation:"idle",restoreScrollPosition:_e,preventScrollReset:Ae,blockers:Ne},{viewTransitionOpts:Te,flushSync:W===!0}),B="POP",J=!1,ae=!1,de=!1,Q=!1,me?.resolve(),me=null}async function Ze(D,q){if(typeof D=="number"){n.history.go(D);return}let W=Ld(N.location,N.matches,p,D,q?.fromRouteId,q?.relative),{path:ce,submission:pe,error:Se}=qv(!1,W,q),Ne=N.location,_e=Md(N.location,ce,q&&q.state);_e={..._e,...n.history.encodeLocation(_e)};let Ae=q&&q.replace!=null?q.replace:void 0,Te="PUSH";Ae===!0?Te="REPLACE":Ae===!1||pe!=null&&tn(pe.formMethod)&&pe.formAction===N.location.pathname+N.location.search&&(Te="REPLACE");let Ee=q&&"preventScrollReset"in q?q.preventScrollReset===!0:void 0,Re=(q&&q.flushSync)===!0,$e=To({currentLocation:Ne,nextLocation:_e,historyAction:Te});if($e){Vn($e,{state:"blocked",location:_e,proceed(){Vn($e,{state:"proceeding",proceed:void 0,reset:void 0,location:_e}),Ze(D,q)},reset(){let at=new Map(N.blockers);at.set($e,ro),Je({blockers:at})}});return}await ie(Te,_e,{submission:pe,pendingError:Se,preventScrollReset:Ee,replace:q&&q.replace,enableViewTransition:q&&q.viewTransition,flushSync:Re})}function an(){me||(me=RE()),ii(),Je({revalidation:"loading"});let D=me.promise;return N.navigation.state==="submitting"?D:N.navigation.state==="idle"?(ie(N.historyAction,N.location,{startUninterruptedRevalidation:!0}),D):(ie(B||N.historyAction,N.navigation.location,{overrideNavigation:N.navigation,enableViewTransition:ae===!0}),D)}async function ie(D,q,W){te&&te.abort(),te=null,B=D,de=(W&&W.startUninterruptedRevalidation)===!0,xr(N.location,N.matches),J=(W&&W.preventScrollReset)===!0,ae=(W&&W.enableViewTransition)===!0;let ce=h||f,pe=W&&W.overrideNavigation,Se=W?.initialHydration&&N.matches&&N.matches.length>0&&!L?N.matches:rr(ce,q,p),Ne=(W&&W.flushSync)===!0;if(Se&&N.initialized&&!Q&&xE(N.location,q)&&!(W&&W.submission&&tn(W.submission.formMethod))){Tt(q,{matches:Se},{flushSync:Ne});return}let _e=wr(Se,ce,q.pathname);if(_e.active&&_e.matches&&(Se=_e.matches),!Se){let{error:St,notFoundMatches:He,route:it}=el(q.pathname);Tt(q,{matches:He,loaderData:{},errors:{[it.id]:St}},{flushSync:Ne});return}te=new AbortController;let Ae=ql(n.history,q,te.signal,W&&W.submission),Te=new $v(n.unstable_getContext?await n.unstable_getContext():void 0),Ee;if(W&&W.pendingError)Ee=[$r(Se).route.id,{type:"error",error:W.pendingError}];else if(W&&W.submission&&tn(W.submission.formMethod)){let St=await ue(Ae,q,W.submission,Se,Te,_e.active,W&&W.initialHydration===!0,{replace:W.replace,flushSync:Ne});if(St.shortCircuited)return;if(St.pendingActionResult){let[He,it]=St.pendingActionResult;if(hn(it)&&yo(it.error)&&it.error.status===404){te=null,Tt(q,{matches:St.matches,loaderData:{},errors:{[He]:it.error}});return}}Se=St.matches||Se,Ee=St.pendingActionResult,pe=od(q,W.submission),Ne=!1,_e.active=!1,Ae=ql(n.history,Ae.url,Ae.signal)}let{shortCircuited:Re,matches:$e,loaderData:at,errors:wt}=await ge(Ae,q,Se,Te,_e.active,pe,W&&W.submission,W&&W.fetcherSubmission,W&&W.replace,W&&W.initialHydration===!0,Ne,Ee);Re||(te=null,Tt(q,{matches:$e||Se,...Wv(Ee),loaderData:at,errors:wt}))}async function ue(D,q,W,ce,pe,Se,Ne,_e={}){ii();let Ae=_E(q,W);if(Je({navigation:Ae},{flushSync:_e.flushSync===!0}),Se){let Re=await Sr(ce,q.pathname,D.signal);if(Re.type==="aborted")return{shortCircuited:!0};if(Re.type==="error"){let $e=$r(Re.partialMatches).route.id;return{matches:Re.partialMatches,pendingActionResult:[$e,{type:"error",error:Re.error}]}}else if(Re.matches)ce=Re.matches;else{let{notFoundMatches:$e,error:at,route:wt}=el(q.pathname);return{matches:$e,pendingActionResult:[wt.id,{type:"error",error:at}]}}}let Te,Ee=lc(ce,q);if(!Ee.route.action&&!Ee.route.lazy)Te={type:"error",error:On(405,{method:D.method,pathname:q.pathname,routeId:Ee.route.id})};else{let Re=Kl(s,c,D,ce,Ee,Ne?[]:i,pe),$e=await Bn(D,Re,pe,null);if(Te=$e[Ee.route.id],!Te){for(let at of ce)if($e[at.route.id]){Te=$e[at.route.id];break}}if(D.signal.aborted)return{shortCircuited:!0}}if(qr(Te)){let Re;return _e&&_e.replace!=null?Re=_e.replace:Re=Qv(Te.response.headers.get("Location"),new URL(D.url),p)===N.location.pathname+N.location.search,await Ft(D,Te,!0,{submission:W,replace:Re}),{shortCircuited:!0}}if(hn(Te)){let Re=$r(ce,Ee.route.id);return(_e&&_e.replace)!==!0&&(B="PUSH"),{matches:ce,pendingActionResult:[Re.route.id,Te,Ee.route.id]}}return{matches:ce,pendingActionResult:[Ee.route.id,Te]}}async function ge(D,q,W,ce,pe,Se,Ne,_e,Ae,Te,Ee,Re){let $e=Se||od(q,Ne),at=Ne||_e||ny($e),wt=!de&&!Te;if(pe){if(wt){let jt=he(Re);Je({navigation:$e,...jt!==void 0?{actionData:jt}:{}},{flushSync:Ee})}let Ye=await Sr(W,q.pathname,D.signal);if(Ye.type==="aborted")return{shortCircuited:!0};if(Ye.type==="error"){let jt=$r(Ye.partialMatches).route.id;return{matches:Ye.partialMatches,loaderData:{},errors:{[jt]:Ye.error}}}else if(Ye.matches)W=Ye.matches;else{let{error:jt,notFoundMatches:_r,route:bn}=el(q.pathname);return{matches:_r,loaderData:{},errors:{[bn.id]:jt}}}}let St=h||f,{dsMatches:He,revalidatingFetchers:it}=Fv(D,ce,s,c,n.history,N,W,at,q,Te?[]:i,Te===!0,Q,ee,K,G,O,St,p,n.patchRoutesOnNavigation!=null,Re);if(V=++X,!n.dataStrategy&&!He.some(Ye=>Ye.shouldLoad)&&it.length===0){let Ye=vr();return Tt(q,{matches:W,loaderData:{},errors:Re&&hn(Re[1])?{[Re[0]]:Re[1].error}:null,...Wv(Re),...Ye?{fetchers:new Map(N.fetchers)}:{}},{flushSync:Ee}),{shortCircuited:!0}}if(wt){let Ye={};if(!pe){Ye.navigation=$e;let jt=he(Re);jt!==void 0&&(Ye.actionData=jt)}it.length>0&&(Ye.fetchers=Oe(it)),Je(Ye,{flushSync:Ee})}it.forEach(Ye=>{$n(Ye.key),Ye.controller&&A.set(Ye.key,Ye.controller)});let qn=()=>it.forEach(Ye=>$n(Ye.key));te&&te.signal.addEventListener("abort",qn);let{loaderResults:rn,fetcherResults:Xt}=await Oo(He,it,D,ce);if(D.signal.aborted)return{shortCircuited:!0};te&&te.signal.removeEventListener("abort",qn),it.forEach(Ye=>A.delete(Ye.key));let yn=Ys(rn);if(yn)return await Ft(D,yn.result,!0,{replace:Ae}),{shortCircuited:!0};if(yn=Ys(Xt),yn)return O.add(yn.key),await Ft(D,yn.result,!0,{replace:Ae}),{shortCircuited:!0};let{loaderData:nl,errors:Ta}=Zv(N,W,rn,Re,it,Xt);Te&&N.errors&&(Ta={...N.errors,...Ta});let la=vr(),ia=yr(V),oa=la||ia||it.length>0;return{matches:W,loaderData:nl,errors:Ta,...oa?{fetchers:new Map(N.fetchers)}:{}}}function he(D){if(D&&!hn(D[1]))return{[D[0]]:D[1].data};if(N.actionData)return Object.keys(N.actionData).length===0?null:N.actionData}function Oe(D){return D.forEach(q=>{let W=N.fetchers.get(q.key),ce=lo(void 0,W?W.data:void 0);N.fetchers.set(q.key,ce)}),new Map(N.fetchers)}async function ke(D,q,W,ce){$n(D);let pe=(ce&&ce.flushSync)===!0,Se=h||f,Ne=Ld(N.location,N.matches,p,W,q,ce?.relative),_e=rr(Se,Ne,p),Ae=wr(_e,Se,Ne);if(Ae.active&&Ae.matches&&(_e=Ae.matches),!_e){vt(D,q,On(404,{pathname:Ne}),{flushSync:pe});return}let{path:Te,submission:Ee,error:Re}=qv(!0,Ne,ce);if(Re){vt(D,q,Re,{flushSync:pe});return}let $e=new $v(n.unstable_getContext?await n.unstable_getContext():void 0),at=(ce&&ce.preventScrollReset)===!0;if(Ee&&tn(Ee.formMethod)){await Pe(D,q,Te,_e,$e,Ae.active,pe,at,Ee);return}G.set(D,{routeId:q,path:Te}),await nt(D,q,Te,_e,$e,Ae.active,pe,at,Ee)}async function Pe(D,q,W,ce,pe,Se,Ne,_e,Ae){ii(),G.delete(D);let Te=N.fetchers.get(D);It(D,EE(Ae,Te),{flushSync:Ne});let Ee=new AbortController,Re=ql(n.history,W,Ee.signal,Ae);if(Se){let yt=await Sr(ce,new URL(Re.url).pathname,Re.signal,D);if(yt.type==="aborted")return;if(yt.type==="error"){vt(D,q,yt.error,{flushSync:Ne});return}else if(yt.matches)ce=yt.matches;else{vt(D,q,On(404,{pathname:W}),{flushSync:Ne});return}}let $e=lc(ce,W);if(!$e.route.action&&!$e.route.lazy){let yt=On(405,{method:Ae.formMethod,pathname:W,routeId:q});vt(D,q,yt,{flushSync:Ne});return}A.set(D,Ee);let at=X,wt=Kl(s,c,Re,ce,$e,i,pe),He=(await Bn(Re,wt,pe,D))[$e.route.id];if(Re.signal.aborted){A.get(D)===Ee&&A.delete(D);return}if(K.has(D)){if(qr(He)||hn(He)){It(D,nr(void 0));return}}else{if(qr(He))if(A.delete(D),V>at){It(D,nr(void 0));return}else return O.add(D),It(D,lo(Ae)),Ft(Re,He,!1,{fetcherSubmission:Ae,preventScrollReset:_e});if(hn(He)){vt(D,q,He.error);return}}let it=N.navigation.location||N.location,qn=ql(n.history,it,Ee.signal),rn=h||f,Xt=N.navigation.state!=="idle"?rr(rn,N.navigation.location,p):N.matches;Xe(Xt,"Didn't find any matches after fetcher action");let yn=++X;ye.set(D,yn);let nl=lo(Ae,He.data);N.fetchers.set(D,nl);let{dsMatches:Ta,revalidatingFetchers:la}=Fv(qn,pe,s,c,n.history,N,Xt,Ae,it,i,!1,Q,ee,K,G,O,rn,p,n.patchRoutesOnNavigation!=null,[$e.route.id,He]);la.filter(yt=>yt.key!==D).forEach(yt=>{let Ma=yt.key,Lo=N.fetchers.get(Ma),ko=lo(void 0,Lo?Lo.data:void 0);N.fetchers.set(Ma,ko),$n(Ma),yt.controller&&A.set(Ma,yt.controller)}),Je({fetchers:new Map(N.fetchers)});let ia=()=>la.forEach(yt=>$n(yt.key));Ee.signal.addEventListener("abort",ia);let{loaderResults:oa,fetcherResults:Ye}=await Oo(Ta,la,qn,pe);if(Ee.signal.aborted)return;if(Ee.signal.removeEventListener("abort",ia),ye.delete(D),A.delete(D),la.forEach(yt=>A.delete(yt.key)),N.fetchers.has(D)){let yt=nr(He.data);N.fetchers.set(D,yt)}let jt=Ys(oa);if(jt)return Ft(qn,jt.result,!1,{preventScrollReset:_e});if(jt=Ys(Ye),jt)return O.add(jt.key),Ft(qn,jt.result,!1,{preventScrollReset:_e});let{loaderData:_r,errors:bn}=Zv(N,Xt,oa,void 0,la,Ye);yr(yn),N.navigation.state==="loading"&&yn>V?(Xe(B,"Expected pending action"),te&&te.abort(),Tt(N.navigation.location,{matches:Xt,loaderData:_r,errors:bn,fetchers:new Map(N.fetchers)})):(Je({errors:bn,loaderData:Jv(N.loaderData,_r,Xt,bn),fetchers:new Map(N.fetchers)}),Q=!1)}async function nt(D,q,W,ce,pe,Se,Ne,_e,Ae){let Te=N.fetchers.get(D);It(D,lo(Ae,Te?Te.data:void 0),{flushSync:Ne});let Ee=new AbortController,Re=ql(n.history,W,Ee.signal);if(Se){let it=await Sr(ce,new URL(Re.url).pathname,Re.signal,D);if(it.type==="aborted")return;if(it.type==="error"){vt(D,q,it.error,{flushSync:Ne});return}else if(it.matches)ce=it.matches;else{vt(D,q,On(404,{pathname:W}),{flushSync:Ne});return}}let $e=lc(ce,W);A.set(D,Ee);let at=X,wt=Kl(s,c,Re,ce,$e,i,pe),He=(await Bn(Re,wt,pe,D))[$e.route.id];if(A.get(D)===Ee&&A.delete(D),!Re.signal.aborted){if(K.has(D)){It(D,nr(void 0));return}if(qr(He))if(V>at){It(D,nr(void 0));return}else{O.add(D),await Ft(Re,He,!1,{preventScrollReset:_e});return}if(hn(He)){vt(D,q,He.error);return}It(D,nr(He.data))}}async function Ft(D,q,W,{submission:ce,fetcherSubmission:pe,preventScrollReset:Se,replace:Ne}={}){q.response.headers.has("X-Remix-Revalidate")&&(Q=!0);let _e=q.response.headers.get("Location");Xe(_e,"Expected a Location header on the redirect Response"),_e=Qv(_e,new URL(D.url),p);let Ae=Md(N.location,_e,{_isRedirect:!0});if(l){let wt=!1;if(q.response.headers.has("X-Remix-Reload-Document"))wt=!0;else if(th(_e)){const St=A_(_e,!0);wt=St.origin!==a.location.origin||Tn(St.pathname,p)==null}if(wt){Ne?a.location.replace(_e):a.location.assign(_e);return}}te=null;let Te=Ne===!0||q.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Ee,formAction:Re,formEncType:$e}=N.navigation;!ce&&!pe&&Ee&&Re&&$e&&(ce=ny(N.navigation));let at=ce||pe;if(lE.has(q.response.status)&&at&&tn(at.formMethod))await ie(Te,Ae,{submission:{...at,formAction:_e},preventScrollReset:Se||J,enableViewTransition:W?ae:void 0});else{let wt=od(Ae,ce);await ie(Te,Ae,{overrideNavigation:wt,fetcherSubmission:pe,preventScrollReset:Se||J,enableViewTransition:W?ae:void 0})}}async function Bn(D,q,W,ce){let pe,Se={};try{pe=await pE(m,D,q,ce,W,!1)}catch(Ne){return q.filter(_e=>_e.shouldLoad).forEach(_e=>{Se[_e.route.id]={type:"error",error:Ne}}),Se}if(D.signal.aborted)return Se;for(let[Ne,_e]of Object.entries(pe))if(wE(_e)){let Ae=_e.result;Se[Ne]={type:"redirect",response:yE(Ae,D,Ne,q,p)}}else Se[Ne]=await vE(_e);return Se}async function Oo(D,q,W,ce){let pe=Bn(W,D,ce,null),Se=Promise.all(q.map(async Ae=>{if(Ae.matches&&Ae.match&&Ae.request&&Ae.controller){let Ee=(await Bn(Ae.request,Ae.matches,ce,Ae.key))[Ae.match.route.id];return{[Ae.key]:Ee}}else return Promise.resolve({[Ae.key]:{type:"error",error:On(404,{pathname:Ae.path})}})})),Ne=await pe,_e=(await Se).reduce((Ae,Te)=>Object.assign(Ae,Te),{});return{loaderResults:Ne,fetcherResults:_e}}function ii(){Q=!0,G.forEach((D,q)=>{A.has(q)&&ee.add(q),$n(q)})}function It(D,q,W={}){N.fetchers.set(D,q),Je({fetchers:new Map(N.fetchers)},{flushSync:(W&&W.flushSync)===!0})}function vt(D,q,W,ce={}){let pe=$r(N.matches,q);Ht(D),Je({errors:{[pe.route.id]:W},fetchers:new Map(N.fetchers)},{flushSync:(ce&&ce.flushSync)===!0})}function Mn(D){return U.set(D,(U.get(D)||0)+1),K.has(D)&&K.delete(D),N.fetchers.get(D)||iE}function Ht(D){let q=N.fetchers.get(D);A.has(D)&&!(q&&q.state==="loading"&&ye.has(D))&&$n(D),G.delete(D),ye.delete(D),O.delete(D),K.delete(D),ee.delete(D),N.fetchers.delete(D)}function Gc(D){let q=(U.get(D)||0)-1;q<=0?(U.delete(D),K.add(D)):U.set(D,q),Je({fetchers:new Map(N.fetchers)})}function $n(D){let q=A.get(D);q&&(q.abort(),A.delete(D))}function Ao(D){for(let q of D){let W=Mn(q),ce=nr(W.data);N.fetchers.set(q,ce)}}function vr(){let D=[],q=!1;for(let W of O){let ce=N.fetchers.get(W);Xe(ce,`Expected fetcher: ${W}`),ce.state==="loading"&&(O.delete(W),D.push(W),q=!0)}return Ao(D),q}function yr(D){let q=[];for(let[W,ce]of ye)if(ce<D){let pe=N.fetchers.get(W);Xe(pe,`Expected fetcher: ${W}`),pe.state==="loading"&&($n(W),ye.delete(W),q.push(W))}return Ao(q),q.length>0}function ra(D,q){let W=N.blockers.get(D)||ro;return P.get(D)!==q&&P.set(D,q),W}function br(D){N.blockers.delete(D),P.delete(D)}function Vn(D,q){let W=N.blockers.get(D)||ro;Xe(W.state==="unblocked"&&q.state==="blocked"||W.state==="blocked"&&q.state==="blocked"||W.state==="blocked"&&q.state==="proceeding"||W.state==="blocked"&&q.state==="unblocked"||W.state==="proceeding"&&q.state==="unblocked",`Invalid blocker state transition: ${W.state} -> ${q.state}`);let ce=new Map(N.blockers);ce.set(D,q),Je({blockers:ce})}function To({currentLocation:D,nextLocation:q,historyAction:W}){if(P.size===0)return;P.size>1&&Ct(!1,"A router only supports one blocker at a time");let ce=Array.from(P.entries()),[pe,Se]=ce[ce.length-1],Ne=N.blockers.get(pe);if(!(Ne&&Ne.state==="proceeding")&&Se({currentLocation:D,nextLocation:q,historyAction:W}))return pe}function el(D){let q=On(404,{pathname:D}),W=h||f,{matches:ce,route:pe}=ey(W);return{notFoundMatches:ce,route:pe,error:q}}function Mo(D,q,W){if(S=D,E=q,C=W||null,!j&&N.navigation===id){j=!0;let ce=Do(N.location,N.matches);ce!=null&&Je({restoreScrollPosition:ce})}return()=>{S=null,E=null,C=null}}function tl(D,q){return C&&C(D,q.map(ce=>z_(ce,N.loaderData)))||D.key}function xr(D,q){if(S&&E){let W=tl(D,q);S[W]=E()}}function Do(D,q){if(S){let W=tl(D,q),ce=S[W];if(typeof ce=="number")return ce}return null}function wr(D,q,W){if(n.patchRoutesOnNavigation)if(D){if(Object.keys(D[0].params).length>0)return{active:!0,matches:rc(q,W,p,!0)}}else return{active:!0,matches:rc(q,W,p,!0)||[]};return{active:!1,matches:null}}async function Sr(D,q,W,ce){if(!n.patchRoutesOnNavigation)return{type:"success",matches:D};let pe=D;for(;;){let Se=h==null,Ne=h||f,_e=c;try{await n.patchRoutesOnNavigation({signal:W,path:q,matches:pe,fetcherKey:ce,patch:(Ee,Re)=>{W.aborted||Yv(Ee,Re,Ne,_e,s,!1)}})}catch(Ee){return{type:"error",error:Ee,partialMatches:pe}}finally{Se&&!W.aborted&&(f=[...f])}if(W.aborted)return{type:"aborted"};let Ae=rr(Ne,q,p);if(Ae)return{type:"success",matches:Ae};let Te=rc(Ne,q,p,!0);if(!Te||pe.length===Te.length&&pe.every((Ee,Re)=>Ee.route.id===Te[Re].route.id))return{type:"success",matches:null};pe=Te}}function oi(D){c={},h=vo(D,s,void 0,c)}function si(D,q,W=!1){let ce=h==null;Yv(D,q,h||f,c,s,W),ce&&(f=[...f],Je({}))}return M={get basename(){return p},get future(){return v},get state(){return N},get routes(){return f},get window(){return a},initialize:ve,subscribe:Fe,enableScrollRestoration:Mo,navigate:Ze,fetch:ke,revalidate:an,createHref:D=>n.history.createHref(D),encodeLocation:D=>n.history.encodeLocation(D),getFetcher:Mn,deleteFetcher:Gc,dispose:Le,getBlocker:ra,deleteBlocker:br,patchRoutes:si,_internalFetchControllers:A,_internalSetRoutes:oi,_internalSetStateDoNotUseOrYouWillBreakYourApp(D){Je(D)}},M}function uE(n){return n!=null&&("formData"in n&&n.formData!=null||"body"in n&&n.body!==void 0)}function Ld(n,a,l,i,s,c){let f,h;if(s){f=[];for(let m of a)if(f.push(m),m.route.id===s){h=m;break}}else f=a,h=a[a.length-1];let p=Cc(i||".",Ec(f),Tn(n.pathname,l)||n.pathname,c==="path");if(i==null&&(p.search=n.search,p.hash=n.hash),(i==null||i===""||i===".")&&h){let m=nh(p.search);if(h.route.index&&!m)p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index";else if(!h.route.index&&m){let v=new URLSearchParams(p.search),b=v.getAll("index");v.delete("index"),b.filter(S=>S).forEach(S=>v.append("index",S));let w=v.toString();p.search=w?`?${w}`:""}}return l!=="/"&&(p.pathname=Q_({basename:l,pathname:p.pathname})),ir(p)}function qv(n,a,l){if(!l||!uE(l))return{path:a};if(l.formMethod&&!SE(l.formMethod))return{path:a,error:On(405,{method:l.formMethod})};let i=()=>({path:a,error:On(400,{type:"invalid-body"})}),c=(l.formMethod||"get").toUpperCase(),f=b0(a);if(l.body!==void 0){if(l.formEncType==="text/plain"){if(!tn(c))return i();let b=typeof l.body=="string"?l.body:l.body instanceof FormData||l.body instanceof URLSearchParams?Array.from(l.body.entries()).reduce((w,[S,C])=>`${w}${S}=${C}
65
+ `,""):String(l.body);return{path:a,submission:{formMethod:c,formAction:f,formEncType:l.formEncType,formData:void 0,json:void 0,text:b}}}else if(l.formEncType==="application/json"){if(!tn(c))return i();try{let b=typeof l.body=="string"?JSON.parse(l.body):l.body;return{path:a,submission:{formMethod:c,formAction:f,formEncType:l.formEncType,formData:void 0,json:b,text:void 0}}}catch{return i()}}}Xe(typeof FormData=="function","FormData is not available in this environment");let h,p;if(l.formData)h=Ud(l.formData),p=l.formData;else if(l.body instanceof FormData)h=Ud(l.body),p=l.body;else if(l.body instanceof URLSearchParams)h=l.body,p=Iv(h);else if(l.body==null)h=new URLSearchParams,p=new FormData;else try{h=new URLSearchParams(l.body),p=Iv(h)}catch{return i()}let m={formMethod:c,formAction:f,formEncType:l&&l.formEncType||"application/x-www-form-urlencoded",formData:p,json:void 0,text:void 0};if(tn(m.formMethod))return{path:a,submission:m};let v=Aa(a);return n&&v.search&&nh(v.search)&&h.append("index",""),v.search=`?${h}`,{path:ir(v),submission:m}}function Fv(n,a,l,i,s,c,f,h,p,m,v,b,w,S,C,E,j,R,L,k){let H=k?hn(k[1])?k[1].error:k[1].data:void 0,M=s.createURL(c.location),N=s.createURL(p),B;if(v&&c.errors){let de=Object.keys(c.errors)[0];B=f.findIndex(Q=>Q.route.id===de)}else if(k&&hn(k[1])){let de=k[0];B=f.findIndex(Q=>Q.route.id===de)-1}let J=k?k[1].statusCode:void 0,te=J&&J>=400,ae={currentUrl:M,currentParams:c.matches[0]?.params||{},nextUrl:N,nextParams:f[0].params,...h,actionResult:H,actionStatus:J},re=f.map((de,Q)=>{let{route:ee}=de,A=null;if(B!=null&&Q>B?A=!1:ee.lazy?A=!0:ee.loader==null?A=!1:v?A=kd(ee,c.loaderData,c.errors):fE(c.loaderData,c.matches[Q],de)&&(A=!0),A!==null)return zd(l,i,n,de,m,a,A);let X=te?!1:b||M.pathname+M.search===N.pathname+N.search||M.search!==N.search||dE(c.matches[Q],de),V={...ae,defaultShouldRevalidate:X},ye=pc(de,V);return zd(l,i,n,de,m,a,ye,V)}),fe=[];return C.forEach((de,Q)=>{if(v||!f.some(U=>U.route.id===de.routeId)||S.has(Q))return;let ee=c.fetchers.get(Q),A=ee&&ee.state!=="idle"&&ee.data===void 0,X=rr(j,de.path,R);if(!X){if(L&&A)return;fe.push({key:Q,routeId:de.routeId,path:de.path,matches:null,match:null,request:null,controller:null});return}if(E.has(Q))return;let V=lc(X,de.path),ye=new AbortController,O=ql(s,de.path,ye.signal),G=null;if(w.has(Q))w.delete(Q),G=Kl(l,i,O,X,V,m,a);else if(A)b&&(G=Kl(l,i,O,X,V,m,a));else{let U={...ae,defaultShouldRevalidate:te?!1:b};pc(V,U)&&(G=Kl(l,i,O,X,V,m,a,U))}G&&fe.push({key:Q,routeId:de.routeId,path:de.path,matches:G,match:V,request:O,controller:ye})}),{dsMatches:re,revalidatingFetchers:fe}}function kd(n,a,l){if(n.lazy)return!0;if(!n.loader)return!1;let i=a!=null&&n.id in a,s=l!=null&&l[n.id]!==void 0;return!i&&s?!1:typeof n.loader=="function"&&n.loader.hydrate===!0?!0:!i&&!s}function fE(n,a,l){let i=!a||l.route.id!==a.route.id,s=!n.hasOwnProperty(l.route.id);return i||s}function dE(n,a){let l=n.route.path;return n.pathname!==a.pathname||l!=null&&l.endsWith("*")&&n.params["*"]!==a.params["*"]}function pc(n,a){if(n.route.shouldRevalidate){let l=n.route.shouldRevalidate(a);if(typeof l=="boolean")return l}return a.defaultShouldRevalidate}function Yv(n,a,l,i,s,c){let f;if(n){let m=i[n];Xe(m,`No route found to patch children into: routeId = ${n}`),m.children||(m.children=[]),f=m.children}else f=l;let h=[],p=[];if(a.forEach(m=>{let v=f.find(b=>m0(m,b));v?p.push({existingRoute:v,newRoute:m}):h.push(m)}),h.length>0){let m=vo(h,s,[n||"_","patch",String(f?.length||"0")],i);f.push(...m)}if(c&&p.length>0)for(let m=0;m<p.length;m++){let{existingRoute:v,newRoute:b}=p[m],w=v,[S]=vo([b],s,[],{},!0);Object.assign(w,{element:S.element?S.element:w.element,errorElement:S.errorElement?S.errorElement:w.errorElement,hydrateFallbackElement:S.hydrateFallbackElement?S.hydrateFallbackElement:w.hydrateFallbackElement})}}function m0(n,a){return"id"in n&&"id"in a&&n.id===a.id?!0:n.index===a.index&&n.path===a.path&&n.caseSensitive===a.caseSensitive?(!n.children||n.children.length===0)&&(!a.children||a.children.length===0)?!0:n.children.every((l,i)=>a.children?.some(s=>m0(l,s))):!1}var Gv=new WeakMap,p0=({key:n,route:a,manifest:l,mapRouteProperties:i})=>{let s=l[a.id];if(Xe(s,"No route found in manifest"),!s.lazy||typeof s.lazy!="object")return;let c=s.lazy[n];if(!c)return;let f=Gv.get(s);f||(f={},Gv.set(s,f));let h=f[n];if(h)return h;let p=(async()=>{let m=M_(n),b=s[n]!==void 0&&n!=="hasErrorBoundary";if(m)Ct(!m,"Route property "+n+" is not a supported lazy route property. This property will be ignored."),f[n]=Promise.resolve();else if(b)Ct(!1,`Route "${s.id}" has a static property "${n}" defined. The lazy property will be ignored.`);else{let w=await c();w!=null&&(Object.assign(s,{[n]:w}),Object.assign(s,i(s)))}typeof s.lazy=="object"&&(s.lazy[n]=void 0,Object.values(s.lazy).every(w=>w===void 0)&&(s.lazy=void 0))})();return f[n]=p,p},Kv=new WeakMap;function hE(n,a,l,i,s){let c=l[n.id];if(Xe(c,"No route found in manifest"),!n.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof n.lazy=="function"){let v=Kv.get(c);if(v)return{lazyRoutePromise:v,lazyHandlerPromise:v};let b=(async()=>{Xe(typeof n.lazy=="function","No lazy route function found");let w=await n.lazy(),S={};for(let C in w){let E=w[C];if(E===void 0)continue;let j=L_(C),L=c[C]!==void 0&&C!=="hasErrorBoundary";j?Ct(!j,"Route property "+C+" is not a supported property to be returned from a lazy route function. This property will be ignored."):L?Ct(!L,`Route "${c.id}" has a static property "${C}" defined but its lazy function is also returning a value for this property. The lazy route property "${C}" will be ignored.`):S[C]=E}Object.assign(c,S),Object.assign(c,{...i(c),lazy:void 0})})();return Kv.set(c,b),b.catch(()=>{}),{lazyRoutePromise:b,lazyHandlerPromise:b}}let f=Object.keys(n.lazy),h=[],p;for(let v of f){if(s&&s.includes(v))continue;let b=p0({key:v,route:n,manifest:l,mapRouteProperties:i});b&&(h.push(b),v===a&&(p=b))}let m=h.length>0?Promise.all(h).then(()=>{}):void 0;return m?.catch(()=>{}),p?.catch(()=>{}),{lazyRoutePromise:m,lazyHandlerPromise:p}}async function Xv(n){let a=n.matches.filter(s=>s.shouldLoad),l={};return(await Promise.all(a.map(s=>s.resolve()))).forEach((s,c)=>{l[a[c].route.id]=s}),l}async function mE(n){return n.matches.some(a=>a.route.unstable_middleware)?g0(n,!1,()=>Xv(n),(a,l)=>({[l]:{type:"error",result:a}})):Xv(n)}async function g0(n,a,l,i){let{matches:s,request:c,params:f,context:h}=n,p={handlerResult:void 0};try{let m=s.flatMap(b=>b.route.unstable_middleware?b.route.unstable_middleware.map(w=>[b.route.id,w]):[]),v=await v0({request:c,params:f,context:h},m,a,p,l);return a?v:p.handlerResult}catch(m){if(!p.middlewareError)throw m;let v=await i(p.middlewareError.error,p.middlewareError.routeId);return p.handlerResult?Object.assign(p.handlerResult,v):v}}async function v0(n,a,l,i,s,c=0){let{request:f}=n;if(f.signal.aborted)throw f.signal.reason?f.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${f.method} ${f.url}`);let h=a[c];if(!h)return i.handlerResult=await s(),i.handlerResult;let[p,m]=h,v=!1,b,w=async()=>{if(v)throw new Error("You may only call `next()` once per middleware");v=!0,await v0(n,a,l,i,s,c+1)};try{let S=await m({request:n.request,params:n.params,context:n.context},w);return v?S===void 0?b:S:w()}catch(S){throw i.middlewareError?i.middlewareError.error!==S&&(i.middlewareError={routeId:p,error:S}):i.middlewareError={routeId:p,error:S},S}}function y0(n,a,l,i,s){let c=p0({key:"unstable_middleware",route:i.route,manifest:a,mapRouteProperties:n}),f=hE(i.route,tn(l.method)?"action":"loader",a,n,s);return{middleware:c,route:f.lazyRoutePromise,handler:f.lazyHandlerPromise}}function zd(n,a,l,i,s,c,f,h=null){let p=!1,m=y0(n,a,l,i,s);return{...i,_lazyPromises:m,shouldLoad:f,unstable_shouldRevalidateArgs:h,unstable_shouldCallHandler(v){return p=!0,h?typeof v=="boolean"?pc(i,{...h,defaultShouldRevalidate:v}):pc(i,h):f},resolve(v){return p||f||v&&!tn(l.method)&&(i.route.lazy||i.route.loader)?gE({request:l,match:i,lazyHandlerPromise:m?.handler,lazyRoutePromise:m?.route,handlerOverride:v,scopedContext:c}):Promise.resolve({type:"data",result:void 0})}}}function Kl(n,a,l,i,s,c,f,h=null){return i.map(p=>p.route.id!==s.route.id?{...p,shouldLoad:!1,unstable_shouldRevalidateArgs:h,unstable_shouldCallHandler:()=>!1,_lazyPromises:y0(n,a,l,p,c),resolve:()=>Promise.resolve({type:"data",result:void 0})}:zd(n,a,l,p,c,f,!0,h))}async function pE(n,a,l,i,s,c){l.some(m=>m._lazyPromises?.middleware)&&await Promise.all(l.map(m=>m._lazyPromises?.middleware));let f={request:a,params:l[0].params,context:s,matches:l},p=await n({...f,fetcherKey:i,unstable_runClientMiddleware:m=>{let v=f;return g0(v,!1,()=>m({...v,fetcherKey:i,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}),(b,w)=>({[w]:{type:"error",result:b}}))}});try{await Promise.all(l.flatMap(m=>[m._lazyPromises?.handler,m._lazyPromises?.route]))}catch{}return p}async function gE({request:n,match:a,lazyHandlerPromise:l,lazyRoutePromise:i,handlerOverride:s,scopedContext:c}){let f,h,p=tn(n.method),m=p?"action":"loader",v=b=>{let w,S=new Promise((j,R)=>w=R);h=()=>w(),n.signal.addEventListener("abort",h);let C=j=>typeof b!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${m}" [routeId: ${a.route.id}]`)):b({request:n,params:a.params,context:c},...j!==void 0?[j]:[]),E=(async()=>{try{return{type:"data",result:await(s?s(R=>C(R)):C())}}catch(j){return{type:"error",result:j}}})();return Promise.race([E,S])};try{let b=p?a.route.action:a.route.loader;if(l||i)if(b){let w,[S]=await Promise.all([v(b).catch(C=>{w=C}),l,i]);if(w!==void 0)throw w;f=S}else{await l;let w=p?a.route.action:a.route.loader;if(w)[f]=await Promise.all([v(w),i]);else if(m==="action"){let S=new URL(n.url),C=S.pathname+S.search;throw On(405,{method:n.method,pathname:C,routeId:a.route.id})}else return{type:"data",result:void 0}}else if(b)f=await v(b);else{let w=new URL(n.url),S=w.pathname+w.search;throw On(404,{pathname:S})}}catch(b){return{type:"error",result:b}}finally{h&&n.signal.removeEventListener("abort",h)}return f}async function vE(n){let{result:a,type:l}=n;if(x0(a)){let i;try{let s=a.headers.get("Content-Type");s&&/\bapplication\/json\b/.test(s)?a.body==null?i=null:i=await a.json():i=await a.text()}catch(s){return{type:"error",error:s}}return l==="error"?{type:"error",error:new Dd(a.status,a.statusText,i),statusCode:a.status,headers:a.headers}:{type:"data",data:i,statusCode:a.status,headers:a.headers}}return l==="error"?ty(a)?a.data instanceof Error?{type:"error",error:a.data,statusCode:a.init?.status,headers:a.init?.headers?new Headers(a.init.headers):void 0}:{type:"error",error:new Dd(a.init?.status||500,void 0,a.data),statusCode:yo(a)?a.status:void 0,headers:a.init?.headers?new Headers(a.init.headers):void 0}:{type:"error",error:a,statusCode:yo(a)?a.status:void 0}:ty(a)?{type:"data",data:a.data,statusCode:a.init?.status,headers:a.init?.headers?new Headers(a.init.headers):void 0}:{type:"data",data:a}}function yE(n,a,l,i,s){let c=n.headers.get("Location");if(Xe(c,"Redirects returned/thrown from loaders/actions must have a Location header"),!th(c)){let f=i.slice(0,i.findIndex(h=>h.route.id===l)+1);c=Ld(new URL(a.url),f,s,c),n.headers.set("Location",c)}return n}function Qv(n,a,l){if(th(n)){let i=n,s=i.startsWith("//")?new URL(a.protocol+i):new URL(i),c=Tn(s.pathname,l)!=null;if(s.origin===a.origin&&c)return s.pathname+s.search+s.hash}return n}function ql(n,a,l,i){let s=n.createURL(b0(a)).toString(),c={signal:l};if(i&&tn(i.formMethod)){let{formMethod:f,formEncType:h}=i;c.method=f.toUpperCase(),h==="application/json"?(c.headers=new Headers({"Content-Type":h}),c.body=JSON.stringify(i.json)):h==="text/plain"?c.body=i.text:h==="application/x-www-form-urlencoded"&&i.formData?c.body=Ud(i.formData):c.body=i.formData}return new Request(s,c)}function Ud(n){let a=new URLSearchParams;for(let[l,i]of n.entries())a.append(l,typeof i=="string"?i:i.name);return a}function Iv(n){let a=new FormData;for(let[l,i]of n.entries())a.append(l,i);return a}function bE(n,a,l,i=!1,s=!1){let c={},f=null,h,p=!1,m={},v=l&&hn(l[1])?l[1].error:void 0;return n.forEach(b=>{if(!(b.route.id in a))return;let w=b.route.id,S=a[w];if(Xe(!qr(S),"Cannot handle redirect results in processLoaderData"),hn(S)){let C=S.error;if(v!==void 0&&(C=v,v=void 0),f=f||{},s)f[w]=C;else{let E=$r(n,w);f[E.route.id]==null&&(f[E.route.id]=C)}i||(c[w]=h0),p||(p=!0,h=yo(S.error)?S.error.status:500),S.headers&&(m[w]=S.headers)}else c[w]=S.data,S.statusCode&&S.statusCode!==200&&!p&&(h=S.statusCode),S.headers&&(m[w]=S.headers)}),v!==void 0&&l&&(f={[l[0]]:v},l[2]&&(c[l[2]]=void 0)),{loaderData:c,errors:f,statusCode:h||200,loaderHeaders:m}}function Zv(n,a,l,i,s,c){let{loaderData:f,errors:h}=bE(a,l,i);return s.filter(p=>!p.matches||p.matches.some(m=>m.shouldLoad)).forEach(p=>{let{key:m,match:v,controller:b}=p,w=c[m];if(Xe(w,"Did not find corresponding fetcher result"),!(b&&b.signal.aborted))if(hn(w)){let S=$r(n.matches,v?.route.id);h&&h[S.route.id]||(h={...h,[S.route.id]:w.error}),n.fetchers.delete(m)}else if(qr(w))Xe(!1,"Unhandled fetcher revalidation redirect");else{let S=nr(w.data);n.fetchers.set(m,S)}}),{loaderData:f,errors:h}}function Jv(n,a,l,i){let s=Object.entries(a).filter(([,c])=>c!==h0).reduce((c,[f,h])=>(c[f]=h,c),{});for(let c of l){let f=c.route.id;if(!a.hasOwnProperty(f)&&n.hasOwnProperty(f)&&c.route.loader&&(s[f]=n[f]),i&&i.hasOwnProperty(f))break}return s}function Wv(n){return n?hn(n[1])?{actionData:{}}:{actionData:{[n[0]]:n[1].data}}:{}}function $r(n,a){return(a?n.slice(0,n.findIndex(i=>i.route.id===a)+1):[...n]).reverse().find(i=>i.route.hasErrorBoundary===!0)||n[0]}function ey(n){let a=n.length===1?n[0]:n.find(l=>l.index||!l.path||l.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:a}],route:a}}function On(n,{pathname:a,routeId:l,method:i,type:s,message:c}={}){let f="Unknown Server Error",h="Unknown @remix-run/router error";return n===400?(f="Bad Request",i&&a&&l?h=`You made a ${i} request to "${a}" but did not provide a \`loader\` for route "${l}", so there is no way to handle the request.`:s==="invalid-body"&&(h="Unable to encode submission body")):n===403?(f="Forbidden",h=`Route "${l}" does not match URL "${a}"`):n===404?(f="Not Found",h=`No route matches URL "${a}"`):n===405&&(f="Method Not Allowed",i&&a&&l?h=`You made a ${i.toUpperCase()} request to "${a}" but did not provide an \`action\` for route "${l}", so there is no way to handle the request.`:i&&(h=`Invalid request method "${i.toUpperCase()}"`)),new Dd(n||500,f,new Error(h),!0)}function Ys(n){let a=Object.entries(n);for(let l=a.length-1;l>=0;l--){let[i,s]=a[l];if(qr(s))return{key:i,result:s}}}function b0(n){let a=typeof n=="string"?Aa(n):n;return ir({...a,hash:""})}function xE(n,a){return n.pathname!==a.pathname||n.search!==a.search?!1:n.hash===""?a.hash!=="":n.hash===a.hash?!0:a.hash!==""}function wE(n){return x0(n.result)&&rE.has(n.result.status)}function hn(n){return n.type==="error"}function qr(n){return(n&&n.type)==="redirect"}function ty(n){return typeof n=="object"&&n!=null&&"type"in n&&"data"in n&&"init"in n&&n.type==="DataWithResponseInit"}function x0(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.headers=="object"&&typeof n.body<"u"}function SE(n){return aE.has(n.toUpperCase())}function tn(n){return tE.has(n.toUpperCase())}function nh(n){return new URLSearchParams(n).getAll("index").some(a=>a==="")}function lc(n,a){let l=typeof a=="string"?Aa(a).search:a.search;if(n[n.length-1].route.index&&nh(l||""))return n[n.length-1];let i=u0(n);return i[i.length-1]}function ny(n){let{formMethod:a,formAction:l,formEncType:i,text:s,formData:c,json:f}=n;if(!(!a||!l||!i)){if(s!=null)return{formMethod:a,formAction:l,formEncType:i,formData:void 0,json:void 0,text:s};if(c!=null)return{formMethod:a,formAction:l,formEncType:i,formData:c,json:void 0,text:void 0};if(f!==void 0)return{formMethod:a,formAction:l,formEncType:i,formData:void 0,json:f,text:void 0}}}function od(n,a){return a?{state:"loading",location:n,formMethod:a.formMethod,formAction:a.formAction,formEncType:a.formEncType,formData:a.formData,json:a.json,text:a.text}:{state:"loading",location:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function _E(n,a){return{state:"submitting",location:n,formMethod:a.formMethod,formAction:a.formAction,formEncType:a.formEncType,formData:a.formData,json:a.json,text:a.text}}function lo(n,a){return n?{state:"loading",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:a}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:a}}function EE(n,a){return{state:"submitting",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:a?a.data:void 0}}function nr(n){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function CE(n,a){try{let l=n.sessionStorage.getItem(d0);if(l){let i=JSON.parse(l);for(let[s,c]of Object.entries(i||{}))c&&Array.isArray(c)&&a.set(s,new Set(c||[]))}}catch{}}function NE(n,a){if(a.size>0){let l={};for(let[i,s]of a)l[i]=[...s];try{n.sessionStorage.setItem(d0,JSON.stringify(l))}catch(i){Ct(!1,`Failed to save applied view transitions in sessionStorage (${i}).`)}}}function RE(){let n,a,l=new Promise((i,s)=>{n=async c=>{i(c);try{await l}catch{}},a=async c=>{s(c);try{await l}catch{}}});return{promise:l,resolve:n,reject:a}}var Jr=y.createContext(null);Jr.displayName="DataRouter";var _o=y.createContext(null);_o.displayName="DataRouterState";y.createContext(!1);var ah=y.createContext({isTransitioning:!1});ah.displayName="ViewTransition";var w0=y.createContext(new Map);w0.displayName="Fetchers";var jE=y.createContext(null);jE.displayName="Await";var Pn=y.createContext(null);Pn.displayName="Navigation";var Nc=y.createContext(null);Nc.displayName="Location";var na=y.createContext({outlet:null,matches:[],isDataRoute:!1});na.displayName="Route";var rh=y.createContext(null);rh.displayName="RouteError";function OE(n,{relative:a}={}){Xe(Wl(),"useHref() may be used only in the context of a <Router> component.");let{basename:l,navigator:i}=y.useContext(Pn),{hash:s,pathname:c,search:f}=Eo(n,{relative:a}),h=c;return l!=="/"&&(h=c==="/"?l:Jn([l,c])),i.createHref({pathname:h,search:f,hash:s})}function Wl(){return y.useContext(Nc)!=null}function pr(){return Xe(Wl(),"useLocation() may be used only in the context of a <Router> component."),y.useContext(Nc).location}var S0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function _0(n){y.useContext(Pn).static||y.useLayoutEffect(n)}function Rc(){let{isDataRoute:n}=y.useContext(na);return n?VE():AE()}function AE(){Xe(Wl(),"useNavigate() may be used only in the context of a <Router> component.");let n=y.useContext(Jr),{basename:a,navigator:l}=y.useContext(Pn),{matches:i}=y.useContext(na),{pathname:s}=pr(),c=JSON.stringify(Ec(i)),f=y.useRef(!1);return _0(()=>{f.current=!0}),y.useCallback((p,m={})=>{if(Ct(f.current,S0),!f.current)return;if(typeof p=="number"){l.go(p);return}let v=Cc(p,JSON.parse(c),s,m.relative==="path");n==null&&a!=="/"&&(v.pathname=v.pathname==="/"?a:Jn([a,v.pathname])),(m.replace?l.replace:l.push)(v,m.state,m)},[a,l,c,s,n])}y.createContext(null);function Eo(n,{relative:a}={}){let{matches:l}=y.useContext(na),{pathname:i}=pr(),s=JSON.stringify(Ec(l));return y.useMemo(()=>Cc(n,JSON.parse(s),i,a==="path"),[n,s,i,a])}function TE(n,a,l,i){Xe(Wl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=y.useContext(Pn),{matches:c}=y.useContext(na),f=c[c.length-1],h=f?f.params:{},p=f?f.pathname:"/",m=f?f.pathnameBase:"/",v=f&&f.route;{let R=v&&v.path||"";E0(p,!v||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${R}">) 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.
66
66
 
67
- Please change the parent <Route path="${N}"> to <Route path="${N==="/"?"*":`${N}/*`}">.`)}let b=mr(),w;w=b;let S=w.pathname||"/",C=S;if(m!=="/"){let N=m.replace(/^\//,"").split("/");C="/"+S.replace(/^\//,"").split("/").slice(N.length).join("/")}let _=ar(n,{pathname:C});return _t(v||_!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),_t(_==null||_[_.length-1].route.element!==void 0||_[_.length-1].route.Component!==void 0||_[_.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.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.`),M_(_&&_.map(N=>Object.assign({},N,{params:Object.assign({},h,N.params),pathname:Jn([m,s.encodeLocation?s.encodeLocation(N.pathname).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?m:Jn([m,s.encodeLocation?s.encodeLocation(N.pathnameBase).pathname:N.pathnameBase])})),u,l,i)}function j_(){let n=U_(),a=yo(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),l=n instanceof Error?n.stack:null,i="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:i},u={padding:"2px 4px",backgroundColor:i},f=null;return console.error("Error handled by React Router default ErrorBoundary:",n),f=y.createElement(y.Fragment,null,y.createElement("p",null,"💿 Hey developer 👋"),y.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",y.createElement("code",{style:u},"ErrorBoundary")," or"," ",y.createElement("code",{style:u},"errorElement")," prop on your route.")),y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},a),l?y.createElement("pre",{style:s},l):null,f)}var O_=y.createElement(j_,null),A_=class extends y.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,a){return a.location!==n.location||a.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:a.error,location:a.location,revalidation:n.revalidation||a.revalidation}}componentDidCatch(n,a){console.error("React Router caught the following error during render",n,a)}render(){return this.state.error!==void 0?y.createElement(na.Provider,{value:this.props.routeContext},y.createElement(ah.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function T_({routeContext:n,match:a,children:l}){let i=y.useContext(Ir);return i&&i.static&&i.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=a.route.id),y.createElement(na.Provider,{value:n},l)}function M_(n,a=[],l=null,i=null){if(n==null){if(!l)return null;if(l.errors)n=l.matches;else if(a.length===0&&!l.initialized&&l.matches.length>0)n=l.matches;else return null}let s=n,u=l?.errors;if(u!=null){let p=s.findIndex(m=>m.route.id&&u?.[m.route.id]!==void 0);Xe(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),s=s.slice(0,Math.min(s.length,p+1))}let f=!1,h=-1;if(l)for(let p=0;p<s.length;p++){let m=s[p];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(h=p),m.route.id){let{loaderData:v,errors:b}=l,w=m.route.loader&&!v.hasOwnProperty(m.route.id)&&(!b||b[m.route.id]===void 0);if(m.route.lazy||w){f=!0,h>=0?s=s.slice(0,h+1):s=[s[0]];break}}}return s.reduceRight((p,m,v)=>{let b,w=!1,S=null,C=null;l&&(b=u&&m.route.id?u[m.route.id]:void 0,S=m.route.errorElement||O_,f&&(h<0&&v===0?(S0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,C=null):h===v&&(w=!0,C=m.route.hydrateFallbackElement||null)));let _=a.concat(s.slice(0,v+1)),j=()=>{let N;return b?N=S:w?N=C:m.route.Component?N=y.createElement(m.route.Component,null):m.route.element?N=m.route.element:N=p,y.createElement(T_,{match:m,routeContext:{outlet:p,matches:_,isDataRoute:l!=null},children:N})};return l&&(m.route.ErrorBoundary||m.route.errorElement||v===0)?y.createElement(A_,{location:l.location,revalidation:l.revalidation,component:S,error:b,children:j(),routeContext:{outlet:null,matches:_,isDataRoute:!0}}):j()},null)}function rh(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function D_(n){let a=y.useContext(Ir);return Xe(a,rh(n)),a}function L_(n){let a=y.useContext(Eo);return Xe(a,rh(n)),a}function k_(n){let a=y.useContext(na);return Xe(a,rh(n)),a}function lh(n){let a=k_(n),l=a.matches[a.matches.length-1];return Xe(l.route.id,`${n} can only be used on routes that contain a unique "id"`),l.route.id}function z_(){return lh("useRouteId")}function U_(){let n=y.useContext(ah),a=L_("useRouteError"),l=lh("useRouteError");return n!==void 0?n:a.errors?.[l]}function P_(){let{router:n}=D_("useNavigate"),a=lh("useNavigate"),l=y.useRef(!1);return w0(()=>{l.current=!0}),y.useCallback(async(s,u={})=>{_t(l.current,x0),l.current&&(typeof s=="number"?n.navigate(s):await n.navigate(s,{fromRouteId:a,...u}))},[n,a])}var ty={};function S0(n,a,l){!a&&!ty[n]&&(ty[n]=!0,_t(!1,l))}var ny={};function ay(n,a){!n&&!ny[a]&&(ny[a]=!0,console.warn(a))}function H_(n){let a={hasErrorBoundary:n.hasErrorBoundary||n.ErrorBoundary!=null||n.errorElement!=null};return n.Component&&(n.element&&_t(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(a,{element:y.createElement(n.Component),Component:void 0})),n.HydrateFallback&&(n.hydrateFallbackElement&&_t(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(a,{hydrateFallbackElement:y.createElement(n.HydrateFallback),HydrateFallback:void 0})),n.ErrorBoundary&&(n.errorElement&&_t(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(a,{errorElement:y.createElement(n.ErrorBoundary),ErrorBoundary:void 0})),a}var B_=["HydrateFallback","hydrateFallbackElement"];function $_(n,a){return l_({basename:a?.basename,unstable_getContext:a?.unstable_getContext,future:a?.future,history:_E({initialEntries:a?.initialEntries,initialIndex:a?.initialIndex}),hydrationData:a?.hydrationData,routes:n,hydrationRouteProperties:B_,mapRouteProperties:H_,dataStrategy:a?.dataStrategy,patchRoutesOnNavigation:a?.patchRoutesOnNavigation}).initialize()}var V_=class{constructor(){this.status="pending",this.promise=new Promise((n,a)=>{this.resolve=l=>{this.status==="pending"&&(this.status="resolved",n(l))},this.reject=l=>{this.status==="pending"&&(this.status="rejected",a(l))}})}};function Y_({router:n,flushSync:a}){let[l,i]=y.useState(n.state),[s,u]=y.useState(),[f,h]=y.useState({isTransitioning:!1}),[p,m]=y.useState(),[v,b]=y.useState(),[w,S]=y.useState(),C=y.useRef(new Map),_=y.useCallback((k,{deletedFetchers:H,flushSync:D,viewTransitionOpts:R})=>{k.fetchers.forEach((Z,ne)=>{Z.data!==void 0&&C.current.set(ne,Z.data)}),H.forEach(Z=>C.current.delete(Z)),ay(D===!1||a!=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 B=n.window!=null&&n.window.document!=null&&typeof n.window.document.startViewTransition=="function";if(ay(R==null||B,"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."),!R||!B){a&&D?a(()=>i(k)):y.startTransition(()=>i(k));return}if(a&&D){a(()=>{v&&(p&&p.resolve(),v.skipTransition()),h({isTransitioning:!0,flushSync:!0,currentLocation:R.currentLocation,nextLocation:R.nextLocation})});let Z=n.window.document.startViewTransition(()=>{a(()=>i(k))});Z.finished.finally(()=>{a(()=>{m(void 0),b(void 0),u(void 0),h({isTransitioning:!1})})}),a(()=>b(Z));return}v?(p&&p.resolve(),v.skipTransition(),S({state:k,currentLocation:R.currentLocation,nextLocation:R.nextLocation})):(u(k),h({isTransitioning:!0,flushSync:!1,currentLocation:R.currentLocation,nextLocation:R.nextLocation}))},[n.window,a,v,p]);y.useLayoutEffect(()=>n.subscribe(_),[n,_]),y.useEffect(()=>{f.isTransitioning&&!f.flushSync&&m(new V_)},[f]),y.useEffect(()=>{if(p&&s&&n.window){let k=s,H=p.promise,D=n.window.document.startViewTransition(async()=>{y.startTransition(()=>i(k)),await H});D.finished.finally(()=>{m(void 0),b(void 0),u(void 0),h({isTransitioning:!1})}),b(D)}},[s,p,n.window]),y.useEffect(()=>{p&&s&&l.location.key===s.location.key&&p.resolve()},[p,v,l.location,s]),y.useEffect(()=>{!f.isTransitioning&&w&&(u(w.state),h({isTransitioning:!0,flushSync:!1,currentLocation:w.currentLocation,nextLocation:w.nextLocation}),S(void 0))},[f.isTransitioning,w]);let j=y.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:k=>n.navigate(k),push:(k,H,D)=>n.navigate(k,{state:H,preventScrollReset:D?.preventScrollReset}),replace:(k,H,D)=>n.navigate(k,{replace:!0,state:H,preventScrollReset:D?.preventScrollReset})}),[n]),N=n.basename||"/",z=y.useMemo(()=>({router:n,navigator:j,static:!1,basename:N}),[n,j,N]);return y.createElement(y.Fragment,null,y.createElement(Ir.Provider,{value:z},y.createElement(Eo.Provider,{value:l},y.createElement(b0.Provider,{value:C.current},y.createElement(nh.Provider,{value:f},y.createElement(G_,{basename:N,location:l.location,navigationType:l.historyAction,navigator:j},y.createElement(q_,{routes:n.routes,future:n.future,state:l})))))),null)}var q_=y.memo(F_);function F_({routes:n,future:a,state:l}){return R_(n,void 0,l,a)}function K_({to:n,replace:a,state:l,relative:i}){Xe(Wl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=y.useContext(Pn);_t(!s,"<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:u}=y.useContext(na),{pathname:f}=mr(),h=Ru(),p=Cu(n,_u(u),f,i==="path"),m=JSON.stringify(p);return y.useEffect(()=>{h(JSON.parse(m),{replace:a,state:l,relative:i})},[h,m,i,a,l]),null}function G_({basename:n="/",children:a=null,location:l,navigationType:i="POP",navigator:s,static:u=!1}){Xe(!Wl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=n.replace(/^\/*/,"/"),h=y.useMemo(()=>({basename:f,navigator:s,static:u,future:{}}),[f,s,u]);typeof l=="string"&&(l=Oa(l));let{pathname:p="/",search:m="",hash:v="",state:b=null,key:w="default"}=l,S=y.useMemo(()=>{let C=Tn(p,f);return C==null?null:{location:{pathname:C,search:m,hash:v,state:b,key:w},navigationType:i}},[f,p,m,v,b,w,i]);return _t(S!=null,`<Router basename="${f}"> is not able to match the URL "${p}${m}${v}" because it does not start with the basename, so the <Router> won't render anything.`),S==null?null:y.createElement(Pn.Provider,{value:h},y.createElement(Nu.Provider,{children:a,value:S}))}var iu="get",ou="application/x-www-form-urlencoded";function ju(n){return n!=null&&typeof n.tagName=="string"}function X_(n){return ju(n)&&n.tagName.toLowerCase()==="button"}function Q_(n){return ju(n)&&n.tagName.toLowerCase()==="form"}function Z_(n){return ju(n)&&n.tagName.toLowerCase()==="input"}function I_(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function J_(n,a){return n.button===0&&(!a||a==="_self")&&!I_(n)}var Ks=null;function W_(){if(Ks===null)try{new FormData(document.createElement("form"),0),Ks=!1}catch{Ks=!0}return Ks}var e2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function sd(n){return n!=null&&!e2.has(n)?(_t(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ou}"`),null):n}function t2(n,a){let l,i,s,u,f;if(Q_(n)){let h=n.getAttribute("action");i=h?Tn(h,a):null,l=n.getAttribute("method")||iu,s=sd(n.getAttribute("enctype"))||ou,u=new FormData(n)}else if(X_(n)||Z_(n)&&(n.type==="submit"||n.type==="image")){let h=n.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=n.getAttribute("formaction")||h.getAttribute("action");if(i=p?Tn(p,a):null,l=n.getAttribute("formmethod")||h.getAttribute("method")||iu,s=sd(n.getAttribute("formenctype"))||sd(h.getAttribute("enctype"))||ou,u=new FormData(h,n),!W_()){let{name:m,type:v,value:b}=n;if(v==="image"){let w=m?`${m}.`:"";u.append(`${w}x`,"0"),u.append(`${w}y`,"0")}else m&&u.append(m,b)}}else{if(ju(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');l=iu,i=null,s=ou,f=n}return u&&s==="text/plain"&&(f=u,u=void 0),{action:i,method:l.toLowerCase(),encType:s,formData:u,body:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ih(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function n2(n,a,l){let i=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return i.pathname==="/"?i.pathname=`_root.${l}`:a&&Tn(i.pathname,a)==="/"?i.pathname=`${a.replace(/\/$/,"")}/_root.${l}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${l}`,i}async function a2(n,a){if(n.id in a)return a[n.id];try{let l=await import(n.module);return a[n.id]=l,l}catch(l){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(l),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function r2(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function l2(n,a,l){let i=await Promise.all(n.map(async s=>{let u=a.routes[s.route.id];if(u){let f=await a2(u,l);return f.links?f.links():[]}return[]}));return u2(i.flat(1).filter(r2).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function ry(n,a,l,i,s,u){let f=(p,m)=>l[m]?p.route.id!==l[m].route.id:!0,h=(p,m)=>l[m].pathname!==p.pathname||l[m].route.path?.endsWith("*")&&l[m].params["*"]!==p.params["*"];return u==="assets"?a.filter((p,m)=>f(p,m)||h(p,m)):u==="data"?a.filter((p,m)=>{let v=i.routes[p.route.id];if(!v||!v.hasLoader)return!1;if(f(p,m)||h(p,m))return!0;if(p.route.shouldRevalidate){let b=p.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:l[0]?.params||{},nextUrl:new URL(n,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function i2(n,a,{includeHydrateFallback:l}={}){return o2(n.map(i=>{let s=a.routes[i.route.id];if(!s)return[];let u=[s.module];return s.clientActionModule&&(u=u.concat(s.clientActionModule)),s.clientLoaderModule&&(u=u.concat(s.clientLoaderModule)),l&&s.hydrateFallbackModule&&(u=u.concat(s.hydrateFallbackModule)),s.imports&&(u=u.concat(s.imports)),u}).flat(1))}function o2(n){return[...new Set(n)]}function s2(n){let a={},l=Object.keys(n).sort();for(let i of l)a[i]=n[i];return a}function u2(n,a){let l=new Set;return new Set(a),n.reduce((i,s)=>{let u=JSON.stringify(s2(s));return l.has(u)||(l.add(u),i.push({key:u,link:s})),i},[])}function E0(){let n=y.useContext(Ir);return ih(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function c2(){let n=y.useContext(Eo);return ih(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var oh=y.createContext(void 0);oh.displayName="FrameworkContext";function _0(){let n=y.useContext(oh);return ih(n,"You must render this element inside a <HydratedRouter> element"),n}function f2(n,a){let l=y.useContext(oh),[i,s]=y.useState(!1),[u,f]=y.useState(!1),{onFocus:h,onBlur:p,onMouseEnter:m,onMouseLeave:v,onTouchStart:b}=a,w=y.useRef(null);y.useEffect(()=>{if(n==="render"&&f(!0),n==="viewport"){let _=N=>{N.forEach(z=>{f(z.isIntersecting)})},j=new IntersectionObserver(_,{threshold:.5});return w.current&&j.observe(w.current),()=>{j.disconnect()}}},[n]),y.useEffect(()=>{if(i){let _=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(_)}}},[i]);let S=()=>{s(!0)},C=()=>{s(!1),f(!1)};return l?n!=="intent"?[u,w,{}]:[u,w,{onFocus:io(h,S),onBlur:io(p,C),onMouseEnter:io(m,S),onMouseLeave:io(v,C),onTouchStart:io(b,S)}]:[!1,w,{}]}function io(n,a){return l=>{n&&n(l),l.defaultPrevented||a(l)}}function d2({page:n,...a}){let{router:l}=E0(),i=y.useMemo(()=>ar(l.routes,n,l.basename),[l.routes,n,l.basename]);return i?y.createElement(m2,{page:n,matches:i,...a}):null}function h2(n){let{manifest:a,routeModules:l}=_0(),[i,s]=y.useState([]);return y.useEffect(()=>{let u=!1;return l2(n,a,l).then(f=>{u||s(f)}),()=>{u=!0}},[n,a,l]),i}function m2({page:n,matches:a,...l}){let i=mr(),{manifest:s,routeModules:u}=_0(),{basename:f}=E0(),{loaderData:h,matches:p}=c2(),m=y.useMemo(()=>ry(n,a,p,s,i,"data"),[n,a,p,s,i]),v=y.useMemo(()=>ry(n,a,p,s,i,"assets"),[n,a,p,s,i]),b=y.useMemo(()=>{if(n===i.pathname+i.search+i.hash)return[];let C=new Set,_=!1;if(a.forEach(N=>{let z=s.routes[N.route.id];!z||!z.hasLoader||(!m.some(k=>k.route.id===N.route.id)&&N.route.id in h&&u[N.route.id]?.shouldRevalidate||z.hasClientLoader?_=!0:C.add(N.route.id))}),C.size===0)return[];let j=n2(n,f,"data");return _&&C.size>0&&j.searchParams.set("_routes",a.filter(N=>C.has(N.route.id)).map(N=>N.route.id).join(",")),[j.pathname+j.search]},[f,h,i,s,m,a,n,u]),w=y.useMemo(()=>i2(v,s),[v,s]),S=h2(v);return y.createElement(y.Fragment,null,b.map(C=>y.createElement("link",{key:C,rel:"prefetch",as:"fetch",href:C,...l})),w.map(C=>y.createElement("link",{key:C,rel:"modulepreload",href:C,...l})),S.map(({key:C,link:_})=>y.createElement("link",{key:C,..._})))}function p2(...n){return a=>{n.forEach(l=>{typeof l=="function"?l(a):l!=null&&(l.current=a)})}}var C0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{C0&&(window.__reactRouterVersion="7.7.1")}catch{}var N0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,R0=y.forwardRef(function({onClick:a,discover:l="render",prefetch:i="none",relative:s,reloadDocument:u,replace:f,state:h,target:p,to:m,preventScrollReset:v,viewTransition:b,...w},S){let{basename:C}=y.useContext(Pn),_=typeof m=="string"&&N0.test(m),j,N=!1;if(typeof m=="string"&&_&&(j=m,C0))try{let ne=new URL(window.location.href),oe=m.startsWith("//")?new URL(ne.protocol+m):new URL(m),le=Tn(oe.pathname,C);oe.origin===ne.origin&&le!=null?m=le+oe.search+oe.hash:N=!0}catch{_t(!1,`<Link to="${m}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let z=C_(m,{relative:s}),[k,H,D]=f2(i,w),R=b2(m,{replace:f,state:h,target:p,preventScrollReset:v,relative:s,viewTransition:b});function B(ne){a&&a(ne),ne.defaultPrevented||R(ne)}let Z=y.createElement("a",{...w,...D,href:j||z,onClick:N||u?a:B,ref:p2(S,H),target:p,"data-discover":!_&&l==="render"?"true":void 0});return k&&!_?y.createElement(y.Fragment,null,Z,y.createElement(d2,{page:z})):Z});R0.displayName="Link";var g2=y.forwardRef(function({"aria-current":a="page",caseSensitive:l=!1,className:i="",end:s=!1,style:u,to:f,viewTransition:h,children:p,...m},v){let b=_o(f,{relative:m.relative}),w=mr(),S=y.useContext(Eo),{navigator:C,basename:_}=y.useContext(Pn),j=S!=null&&_2(b)&&h===!0,N=C.encodeLocation?C.encodeLocation(b).pathname:b.pathname,z=w.pathname,k=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;l||(z=z.toLowerCase(),k=k?k.toLowerCase():null,N=N.toLowerCase()),k&&_&&(k=Tn(k,_)||k);const H=N!=="/"&&N.endsWith("/")?N.length-1:N.length;let D=z===N||!s&&z.startsWith(N)&&z.charAt(H)==="/",R=k!=null&&(k===N||!s&&k.startsWith(N)&&k.charAt(N.length)==="/"),B={isActive:D,isPending:R,isTransitioning:j},Z=D?a:void 0,ne;typeof i=="function"?ne=i(B):ne=[i,D?"active":null,R?"pending":null,j?"transitioning":null].filter(Boolean).join(" ");let oe=typeof u=="function"?u(B):u;return y.createElement(R0,{...m,"aria-current":Z,className:ne,ref:v,style:oe,to:f,viewTransition:h},typeof p=="function"?p(B):p)});g2.displayName="NavLink";var v2=y.forwardRef(({discover:n="render",fetcherKey:a,navigate:l,reloadDocument:i,replace:s,state:u,method:f=iu,action:h,onSubmit:p,relative:m,preventScrollReset:v,viewTransition:b,...w},S)=>{let C=S2(),_=E2(h,{relative:m}),j=f.toLowerCase()==="get"?"get":"post",N=typeof h=="string"&&N0.test(h),z=k=>{if(p&&p(k),k.defaultPrevented)return;k.preventDefault();let H=k.nativeEvent.submitter,D=H?.getAttribute("formmethod")||f;C(H||k.currentTarget,{fetcherKey:a,method:D,navigate:l,replace:s,state:u,relative:m,preventScrollReset:v,viewTransition:b})};return y.createElement("form",{ref:S,method:j,action:_,onSubmit:i?p:z,...w,"data-discover":!N&&n==="render"?"true":void 0})});v2.displayName="Form";function y2(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function j0(n){let a=y.useContext(Ir);return Xe(a,y2(n)),a}function b2(n,{target:a,replace:l,state:i,preventScrollReset:s,relative:u,viewTransition:f}={}){let h=Ru(),p=mr(),m=_o(n,{relative:u});return y.useCallback(v=>{if(J_(v,a)){v.preventDefault();let b=l!==void 0?l:lr(p)===lr(m);h(n,{replace:b,state:i,preventScrollReset:s,relative:u,viewTransition:f})}},[p,h,m,l,i,a,n,s,u,f])}var x2=0,w2=()=>`__${String(++x2)}__`;function S2(){let{router:n}=j0("useSubmit"),{basename:a}=y.useContext(Pn),l=z_();return y.useCallback(async(i,s={})=>{let{action:u,method:f,encType:h,formData:p,body:m}=t2(i,a);if(s.navigate===!1){let v=s.fetcherKey||w2();await n.fetch(v,l,s.action||u,{preventScrollReset:s.preventScrollReset,formData:p,body:m,formMethod:s.method||f,formEncType:s.encType||h,flushSync:s.flushSync})}else await n.navigate(s.action||u,{preventScrollReset:s.preventScrollReset,formData:p,body:m,formMethod:s.method||f,formEncType:s.encType||h,replace:s.replace,state:s.state,fromRouteId:l,flushSync:s.flushSync,viewTransition:s.viewTransition})},[n,a,l])}function E2(n,{relative:a}={}){let{basename:l}=y.useContext(Pn),i=y.useContext(na);Xe(i,"useFormAction must be used inside a RouteContext");let[s]=i.matches.slice(-1),u={..._o(n||".",{relative:a})},f=mr();if(n==null){u.search=f.search;let h=new URLSearchParams(u.search),p=h.getAll("index");if(p.some(v=>v==="")){h.delete("index"),p.filter(b=>b).forEach(b=>h.append("index",b));let v=h.toString();u.search=v?`?${v}`:""}}return(!n||n===".")&&s.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),l!=="/"&&(u.pathname=u.pathname==="/"?l:Jn([l,u.pathname])),lr(u)}function _2(n,{relative:a}={}){let l=y.useContext(nh);Xe(l!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=j0("useViewTransitionState"),s=_o(n,{relative:a});if(!l.isTransitioning)return!1;let u=Tn(l.currentLocation.pathname,i)||l.currentLocation.pathname,f=Tn(l.nextLocation.pathname,i)||l.nextLocation.pathname;return mu(s.pathname,f)!=null||mu(s.pathname,u)!=null}var Ou=r0();const C2=Xy(Ou);function N2(n){return y.createElement(Y_,{flushSync:Ou.flushSync,...n})}function nn(n,a,{checkForDefaultPrevented:l=!0}={}){return function(s){if(n?.(s),l===!1||!s.defaultPrevented)return a?.(s)}}function ly(n,a){if(typeof n=="function")return n(a);n!=null&&(n.current=a)}function qr(...n){return a=>{let l=!1;const i=n.map(s=>{const u=ly(s,a);return!l&&typeof u=="function"&&(l=!0),u});if(l)return()=>{for(let s=0;s<i.length;s++){const u=i[s];typeof u=="function"?u():ly(n[s],null)}}}}function vn(...n){return y.useCallback(qr(...n),n)}function R2(n,a){const l=y.createContext(a),i=u=>{const{children:f,...h}=u,p=y.useMemo(()=>h,Object.values(h));return g.jsx(l.Provider,{value:p,children:f})};i.displayName=n+"Provider";function s(u){const f=y.useContext(l);if(f)return f;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${n}\``)}return[i,s]}function Au(n,a=[]){let l=[];function i(u,f){const h=y.createContext(f),p=l.length;l=[...l,f];const m=b=>{const{scope:w,children:S,...C}=b,_=w?.[n]?.[p]||h,j=y.useMemo(()=>C,Object.values(C));return g.jsx(_.Provider,{value:j,children:S})};m.displayName=u+"Provider";function v(b,w){const S=w?.[n]?.[p]||h,C=y.useContext(S);if(C)return C;if(f!==void 0)return f;throw new Error(`\`${b}\` must be used within \`${u}\``)}return[m,v]}const s=()=>{const u=l.map(f=>y.createContext(f));return function(h){const p=h?.[n]||u;return y.useMemo(()=>({[`__scope${n}`]:{...h,[n]:p}}),[h,p])}};return s.scopeName=n,[i,j2(s,...a)]}function j2(...n){const a=n[0];if(n.length===1)return a;const l=()=>{const i=n.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(u){const f=i.reduce((h,{useScope:p,scopeName:m})=>{const b=p(u)[`__scope${m}`];return{...h,...b}},{});return y.useMemo(()=>({[`__scope${a.scopeName}`]:f}),[f])}};return l.scopeName=a.scopeName,l}var ir=globalThis?.document?y.useLayoutEffect:()=>{},O2=Iy[" useId ".trim().toString()]||(()=>{}),A2=0;function Wn(n){const[a,l]=y.useState(O2());return ir(()=>{l(i=>i??String(A2++))},[n]),n||(a?`radix-${a}`:"")}var T2=Iy[" useInsertionEffect ".trim().toString()]||ir;function sh({prop:n,defaultProp:a,onChange:l=()=>{},caller:i}){const[s,u,f]=M2({defaultProp:a,onChange:l}),h=n!==void 0,p=h?n:s;{const v=y.useRef(n!==void 0);y.useEffect(()=>{const b=v.current;b!==h&&console.warn(`${i} is changing from ${b?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),v.current=h},[h,i])}const m=y.useCallback(v=>{if(h){const b=D2(v)?v(n):v;b!==n&&f.current?.(b)}else u(v)},[h,n,u,f]);return[p,m]}function M2({defaultProp:n,onChange:a}){const[l,i]=y.useState(n),s=y.useRef(l),u=y.useRef(a);return T2(()=>{u.current=a},[a]),y.useEffect(()=>{s.current!==l&&(u.current?.(l),s.current=l)},[l,s]),[l,i,u]}function D2(n){return typeof n=="function"}function Tu(n){const a=k2(n),l=y.forwardRef((i,s)=>{const{children:u,...f}=i,h=y.Children.toArray(u),p=h.find(U2);if(p){const m=p.props.children,v=h.map(b=>b===p?y.Children.count(m)>1?y.Children.only(null):y.isValidElement(m)?m.props.children:null:b);return g.jsx(a,{...f,ref:s,children:y.isValidElement(m)?y.cloneElement(m,void 0,v):null})}return g.jsx(a,{...f,ref:s,children:u})});return l.displayName=`${n}.Slot`,l}var L2=Tu("Slot");function k2(n){const a=y.forwardRef((l,i)=>{const{children:s,...u}=l;if(y.isValidElement(s)){const f=H2(s),h=P2(u,s.props);return s.type!==y.Fragment&&(h.ref=i?qr(i,f):f),y.cloneElement(s,h)}return y.Children.count(s)>1?y.Children.only(null):null});return a.displayName=`${n}.SlotClone`,a}var z2=Symbol("radix.slottable");function U2(n){return y.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===z2}function P2(n,a){const l={...a};for(const i in a){const s=n[i],u=a[i];/^on[A-Z]/.test(i)?s&&u?l[i]=(...h)=>{const p=u(...h);return s(...h),p}:s&&(l[i]=s):i==="style"?l[i]={...s,...u}:i==="className"&&(l[i]=[s,u].filter(Boolean).join(" "))}return{...n,...l}}function H2(n){let a=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,l=a&&"isReactWarning"in a&&a.isReactWarning;return l?n.ref:(a=Object.getOwnPropertyDescriptor(n,"ref")?.get,l=a&&"isReactWarning"in a&&a.isReactWarning,l?n.props.ref:n.props.ref||n.ref)}var B2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pt=B2.reduce((n,a)=>{const l=Tu(`Primitive.${a}`),i=y.forwardRef((s,u)=>{const{asChild:f,...h}=s,p=f?l:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(p,{...h,ref:u})});return i.displayName=`Primitive.${a}`,{...n,[a]:i}},{});function $2(n,a){n&&Ou.flushSync(()=>n.dispatchEvent(a))}function Zl(n){const a=y.useRef(n);return y.useEffect(()=>{a.current=n}),y.useMemo(()=>(...l)=>a.current?.(...l),[])}function V2(n,a=globalThis?.document){const l=Zl(n);y.useEffect(()=>{const i=s=>{s.key==="Escape"&&l(s)};return a.addEventListener("keydown",i,{capture:!0}),()=>a.removeEventListener("keydown",i,{capture:!0})},[l,a])}var Y2="DismissableLayer",Ud="dismissableLayer.update",q2="dismissableLayer.pointerDownOutside",F2="dismissableLayer.focusOutside",iy,O0=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),uh=y.forwardRef((n,a)=>{const{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:u,onInteractOutside:f,onDismiss:h,...p}=n,m=y.useContext(O0),[v,b]=y.useState(null),w=v?.ownerDocument??globalThis?.document,[,S]=y.useState({}),C=vn(a,B=>b(B)),_=Array.from(m.layers),[j]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),N=_.indexOf(j),z=v?_.indexOf(v):-1,k=m.layersWithOutsidePointerEventsDisabled.size>0,H=z>=N,D=X2(B=>{const Z=B.target,ne=[...m.branches].some(oe=>oe.contains(Z));!H||ne||(s?.(B),f?.(B),B.defaultPrevented||h?.())},w),R=Q2(B=>{const Z=B.target;[...m.branches].some(oe=>oe.contains(Z))||(u?.(B),f?.(B),B.defaultPrevented||h?.())},w);return V2(B=>{z===m.layers.size-1&&(i?.(B),!B.defaultPrevented&&h&&(B.preventDefault(),h()))},w),y.useEffect(()=>{if(v)return l&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(iy=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(v)),m.layers.add(v),oy(),()=>{l&&m.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=iy)}},[v,w,l,m]),y.useEffect(()=>()=>{v&&(m.layers.delete(v),m.layersWithOutsidePointerEventsDisabled.delete(v),oy())},[v,m]),y.useEffect(()=>{const B=()=>S({});return document.addEventListener(Ud,B),()=>document.removeEventListener(Ud,B)},[]),g.jsx(pt.div,{...p,ref:C,style:{pointerEvents:k?H?"auto":"none":void 0,...n.style},onFocusCapture:nn(n.onFocusCapture,R.onFocusCapture),onBlurCapture:nn(n.onBlurCapture,R.onBlurCapture),onPointerDownCapture:nn(n.onPointerDownCapture,D.onPointerDownCapture)})});uh.displayName=Y2;var K2="DismissableLayerBranch",G2=y.forwardRef((n,a)=>{const l=y.useContext(O0),i=y.useRef(null),s=vn(a,i);return y.useEffect(()=>{const u=i.current;if(u)return l.branches.add(u),()=>{l.branches.delete(u)}},[l.branches]),g.jsx(pt.div,{...n,ref:s})});G2.displayName=K2;function X2(n,a=globalThis?.document){const l=Zl(n),i=y.useRef(!1),s=y.useRef(()=>{});return y.useEffect(()=>{const u=h=>{if(h.target&&!i.current){let p=function(){A0(q2,l,m,{discrete:!0})};const m={originalEvent:h};h.pointerType==="touch"?(a.removeEventListener("click",s.current),s.current=p,a.addEventListener("click",s.current,{once:!0})):p()}else a.removeEventListener("click",s.current);i.current=!1},f=window.setTimeout(()=>{a.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(f),a.removeEventListener("pointerdown",u),a.removeEventListener("click",s.current)}},[a,l]),{onPointerDownCapture:()=>i.current=!0}}function Q2(n,a=globalThis?.document){const l=Zl(n),i=y.useRef(!1);return y.useEffect(()=>{const s=u=>{u.target&&!i.current&&A0(F2,l,{originalEvent:u},{discrete:!1})};return a.addEventListener("focusin",s),()=>a.removeEventListener("focusin",s)},[a,l]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function oy(){const n=new CustomEvent(Ud);document.dispatchEvent(n)}function A0(n,a,l,{discrete:i}){const s=l.originalEvent.target,u=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:l});a&&s.addEventListener(n,a,{once:!0}),i?$2(s,u):s.dispatchEvent(u)}var ud="focusScope.autoFocusOnMount",cd="focusScope.autoFocusOnUnmount",sy={bubbles:!1,cancelable:!0},Z2="FocusScope",ch=y.forwardRef((n,a)=>{const{loop:l=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:u,...f}=n,[h,p]=y.useState(null),m=Zl(s),v=Zl(u),b=y.useRef(null),w=vn(a,_=>p(_)),S=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(i){let _=function(k){if(S.paused||!h)return;const H=k.target;h.contains(H)?b.current=H:nr(b.current,{select:!0})},j=function(k){if(S.paused||!h)return;const H=k.relatedTarget;H!==null&&(h.contains(H)||nr(b.current,{select:!0}))},N=function(k){if(document.activeElement===document.body)for(const D of k)D.removedNodes.length>0&&nr(h)};document.addEventListener("focusin",_),document.addEventListener("focusout",j);const z=new MutationObserver(N);return h&&z.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",_),document.removeEventListener("focusout",j),z.disconnect()}}},[i,h,S.paused]),y.useEffect(()=>{if(h){cy.add(S);const _=document.activeElement;if(!h.contains(_)){const N=new CustomEvent(ud,sy);h.addEventListener(ud,m),h.dispatchEvent(N),N.defaultPrevented||(I2(nC(T0(h)),{select:!0}),document.activeElement===_&&nr(h))}return()=>{h.removeEventListener(ud,m),setTimeout(()=>{const N=new CustomEvent(cd,sy);h.addEventListener(cd,v),h.dispatchEvent(N),N.defaultPrevented||nr(_??document.body,{select:!0}),h.removeEventListener(cd,v),cy.remove(S)},0)}}},[h,m,v,S]);const C=y.useCallback(_=>{if(!l&&!i||S.paused)return;const j=_.key==="Tab"&&!_.altKey&&!_.ctrlKey&&!_.metaKey,N=document.activeElement;if(j&&N){const z=_.currentTarget,[k,H]=J2(z);k&&H?!_.shiftKey&&N===H?(_.preventDefault(),l&&nr(k,{select:!0})):_.shiftKey&&N===k&&(_.preventDefault(),l&&nr(H,{select:!0})):N===z&&_.preventDefault()}},[l,i,S.paused]);return g.jsx(pt.div,{tabIndex:-1,...f,ref:w,onKeyDown:C})});ch.displayName=Z2;function I2(n,{select:a=!1}={}){const l=document.activeElement;for(const i of n)if(nr(i,{select:a}),document.activeElement!==l)return}function J2(n){const a=T0(n),l=uy(a,n),i=uy(a.reverse(),n);return[l,i]}function T0(n){const a=[],l=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;l.nextNode();)a.push(l.currentNode);return a}function uy(n,a){for(const l of n)if(!W2(l,{upTo:a}))return l}function W2(n,{upTo:a}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(a!==void 0&&n===a)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function eC(n){return n instanceof HTMLInputElement&&"select"in n}function nr(n,{select:a=!1}={}){if(n&&n.focus){const l=document.activeElement;n.focus({preventScroll:!0}),n!==l&&eC(n)&&a&&n.select()}}var cy=tC();function tC(){let n=[];return{add(a){const l=n[0];a!==l&&l?.pause(),n=fy(n,a),n.unshift(a)},remove(a){n=fy(n,a),n[0]?.resume()}}}function fy(n,a){const l=[...n],i=l.indexOf(a);return i!==-1&&l.splice(i,1),l}function nC(n){return n.filter(a=>a.tagName!=="A")}var aC="Portal",fh=y.forwardRef((n,a)=>{const{container:l,...i}=n,[s,u]=y.useState(!1);ir(()=>u(!0),[]);const f=l||s&&globalThis?.document?.body;return f?C2.createPortal(g.jsx(pt.div,{...i,ref:a}),f):null});fh.displayName=aC;function rC(n,a){return y.useReducer((l,i)=>a[l][i]??l,n)}var ei=n=>{const{present:a,children:l}=n,i=lC(a),s=typeof l=="function"?l({present:i.isPresent}):y.Children.only(l),u=vn(i.ref,iC(s));return typeof l=="function"||i.isPresent?y.cloneElement(s,{ref:u}):null};ei.displayName="Presence";function lC(n){const[a,l]=y.useState(),i=y.useRef(null),s=y.useRef(n),u=y.useRef("none"),f=n?"mounted":"unmounted",[h,p]=rC(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const m=Gs(i.current);u.current=h==="mounted"?m:"none"},[h]),ir(()=>{const m=i.current,v=s.current;if(v!==n){const w=u.current,S=Gs(m);n?p("MOUNT"):S==="none"||m?.display==="none"?p("UNMOUNT"):p(v&&w!==S?"ANIMATION_OUT":"UNMOUNT"),s.current=n}},[n,p]),ir(()=>{if(a){let m;const v=a.ownerDocument.defaultView??window,b=S=>{const _=Gs(i.current).includes(S.animationName);if(S.target===a&&_&&(p("ANIMATION_END"),!s.current)){const j=a.style.animationFillMode;a.style.animationFillMode="forwards",m=v.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=j)})}},w=S=>{S.target===a&&(u.current=Gs(i.current))};return a.addEventListener("animationstart",w),a.addEventListener("animationcancel",b),a.addEventListener("animationend",b),()=>{v.clearTimeout(m),a.removeEventListener("animationstart",w),a.removeEventListener("animationcancel",b),a.removeEventListener("animationend",b)}}else p("ANIMATION_END")},[a,p]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:y.useCallback(m=>{i.current=m?getComputedStyle(m):null,l(m)},[])}}function Gs(n){return n?.animationName||"none"}function iC(n){let a=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,l=a&&"isReactWarning"in a&&a.isReactWarning;return l?n.ref:(a=Object.getOwnPropertyDescriptor(n,"ref")?.get,l=a&&"isReactWarning"in a&&a.isReactWarning,l?n.props.ref:n.props.ref||n.ref)}var fd=0;function M0(){y.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??dy()),document.body.insertAdjacentElement("beforeend",n[1]??dy()),fd++,()=>{fd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),fd--}},[])}function dy(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var Qn=function(){return Qn=Object.assign||function(a){for(var l,i=1,s=arguments.length;i<s;i++){l=arguments[i];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(a[u]=l[u])}return a},Qn.apply(this,arguments)};function D0(n,a){var l={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&a.indexOf(i)<0&&(l[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(n);s<i.length;s++)a.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(n,i[s])&&(l[i[s]]=n[i[s]]);return l}function oC(n,a,l){if(l||arguments.length===2)for(var i=0,s=a.length,u;i<s;i++)(u||!(i in a))&&(u||(u=Array.prototype.slice.call(a,0,i)),u[i]=a[i]);return n.concat(u||Array.prototype.slice.call(a))}var su="right-scroll-bar-position",uu="width-before-scroll-bar",sC="with-scroll-bars-hidden",uC="--removed-body-scroll-bar-size";function dd(n,a){return typeof n=="function"?n(a):n&&(n.current=a),n}function cC(n,a){var l=y.useState(function(){return{value:n,callback:a,facade:{get current(){return l.value},set current(i){var s=l.value;s!==i&&(l.value=i,l.callback(i,s))}}}})[0];return l.callback=a,l.facade}var fC=typeof window<"u"?y.useLayoutEffect:y.useEffect,hy=new WeakMap;function dC(n,a){var l=cC(null,function(i){return n.forEach(function(s){return dd(s,i)})});return fC(function(){var i=hy.get(l);if(i){var s=new Set(i),u=new Set(n),f=l.current;s.forEach(function(h){u.has(h)||dd(h,null)}),u.forEach(function(h){s.has(h)||dd(h,f)})}hy.set(l,n)},[n]),l}function hC(n){return n}function mC(n,a){a===void 0&&(a=hC);var l=[],i=!1,s={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return l.length?l[l.length-1]:n},useMedium:function(u){var f=a(u,i);return l.push(f),function(){l=l.filter(function(h){return h!==f})}},assignSyncMedium:function(u){for(i=!0;l.length;){var f=l;l=[],f.forEach(u)}l={push:function(h){return u(h)},filter:function(){return l}}},assignMedium:function(u){i=!0;var f=[];if(l.length){var h=l;l=[],h.forEach(u),f=l}var p=function(){var v=f;f=[],v.forEach(u)},m=function(){return Promise.resolve().then(p)};m(),l={push:function(v){f.push(v),m()},filter:function(v){return f=f.filter(v),l}}}};return s}function pC(n){n===void 0&&(n={});var a=mC(null);return a.options=Qn({async:!0,ssr:!1},n),a}var L0=function(n){var a=n.sideCar,l=D0(n,["sideCar"]);if(!a)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=a.read();if(!i)throw new Error("Sidecar medium not found");return y.createElement(i,Qn({},l))};L0.isSideCarExport=!0;function gC(n,a){return n.useMedium(a),L0}var k0=pC(),hd=function(){},Mu=y.forwardRef(function(n,a){var l=y.useRef(null),i=y.useState({onScrollCapture:hd,onWheelCapture:hd,onTouchMoveCapture:hd}),s=i[0],u=i[1],f=n.forwardProps,h=n.children,p=n.className,m=n.removeScrollBar,v=n.enabled,b=n.shards,w=n.sideCar,S=n.noRelative,C=n.noIsolation,_=n.inert,j=n.allowPinchZoom,N=n.as,z=N===void 0?"div":N,k=n.gapMode,H=D0(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),D=w,R=dC([l,a]),B=Qn(Qn({},H),s);return y.createElement(y.Fragment,null,v&&y.createElement(D,{sideCar:k0,removeScrollBar:m,shards:b,noRelative:S,noIsolation:C,inert:_,setCallbacks:u,allowPinchZoom:!!j,lockRef:l,gapMode:k}),f?y.cloneElement(y.Children.only(h),Qn(Qn({},B),{ref:R})):y.createElement(z,Qn({},B,{className:p,ref:R}),h))});Mu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Mu.classNames={fullWidth:uu,zeroRight:su};var vC=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function yC(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var a=vC();return a&&n.setAttribute("nonce",a),n}function bC(n,a){n.styleSheet?n.styleSheet.cssText=a:n.appendChild(document.createTextNode(a))}function xC(n){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(n)}var wC=function(){var n=0,a=null;return{add:function(l){n==0&&(a=yC())&&(bC(a,l),xC(a)),n++},remove:function(){n--,!n&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},SC=function(){var n=wC();return function(a,l){y.useEffect(function(){return n.add(a),function(){n.remove()}},[a&&l])}},z0=function(){var n=SC(),a=function(l){var i=l.styles,s=l.dynamic;return n(i,s),null};return a},EC={left:0,top:0,right:0,gap:0},md=function(n){return parseInt(n||"",10)||0},_C=function(n){var a=window.getComputedStyle(document.body),l=a[n==="padding"?"paddingLeft":"marginLeft"],i=a[n==="padding"?"paddingTop":"marginTop"],s=a[n==="padding"?"paddingRight":"marginRight"];return[md(l),md(i),md(s)]},CC=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return EC;var a=_C(n),l=document.documentElement.clientWidth,i=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,i-l+a[2]-a[0])}},NC=z0(),Gl="data-scroll-locked",RC=function(n,a,l,i){var s=n.left,u=n.top,f=n.right,h=n.gap;return l===void 0&&(l="margin"),`
68
- .`.concat(sC,` {
67
+ Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let b=pr(),w;w=b;let S=w.pathname||"/",C=S;if(m!=="/"){let R=m.replace(/^\//,"").split("/");C="/"+S.replace(/^\//,"").split("/").slice(R.length).join("/")}let E=rr(n,{pathname:C});return Ct(v||E!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),Ct(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.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.`),zE(E&&E.map(R=>Object.assign({},R,{params:Object.assign({},h,R.params),pathname:Jn([m,s.encodeLocation?s.encodeLocation(R.pathname).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?m:Jn([m,s.encodeLocation?s.encodeLocation(R.pathnameBase).pathname:R.pathnameBase])})),c,l,i)}function ME(){let n=$E(),a=yo(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),l=n instanceof Error?n.stack:null,i="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:i},c={padding:"2px 4px",backgroundColor:i},f=null;return console.error("Error handled by React Router default ErrorBoundary:",n),f=y.createElement(y.Fragment,null,y.createElement("p",null,"💿 Hey developer 👋"),y.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",y.createElement("code",{style:c},"ErrorBoundary")," or"," ",y.createElement("code",{style:c},"errorElement")," prop on your route.")),y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},a),l?y.createElement("pre",{style:s},l):null,f)}var DE=y.createElement(ME,null),LE=class extends y.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,a){return a.location!==n.location||a.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:a.error,location:a.location,revalidation:n.revalidation||a.revalidation}}componentDidCatch(n,a){console.error("React Router caught the following error during render",n,a)}render(){return this.state.error!==void 0?y.createElement(na.Provider,{value:this.props.routeContext},y.createElement(rh.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function kE({routeContext:n,match:a,children:l}){let i=y.useContext(Jr);return i&&i.static&&i.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=a.route.id),y.createElement(na.Provider,{value:n},l)}function zE(n,a=[],l=null,i=null){if(n==null){if(!l)return null;if(l.errors)n=l.matches;else if(a.length===0&&!l.initialized&&l.matches.length>0)n=l.matches;else return null}let s=n,c=l?.errors;if(c!=null){let p=s.findIndex(m=>m.route.id&&c?.[m.route.id]!==void 0);Xe(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),s=s.slice(0,Math.min(s.length,p+1))}let f=!1,h=-1;if(l)for(let p=0;p<s.length;p++){let m=s[p];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(h=p),m.route.id){let{loaderData:v,errors:b}=l,w=m.route.loader&&!v.hasOwnProperty(m.route.id)&&(!b||b[m.route.id]===void 0);if(m.route.lazy||w){f=!0,h>=0?s=s.slice(0,h+1):s=[s[0]];break}}}return s.reduceRight((p,m,v)=>{let b,w=!1,S=null,C=null;l&&(b=c&&m.route.id?c[m.route.id]:void 0,S=m.route.errorElement||DE,f&&(h<0&&v===0?(E0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,C=null):h===v&&(w=!0,C=m.route.hydrateFallbackElement||null)));let E=a.concat(s.slice(0,v+1)),j=()=>{let R;return b?R=S:w?R=C:m.route.Component?R=y.createElement(m.route.Component,null):m.route.element?R=m.route.element:R=p,y.createElement(kE,{match:m,routeContext:{outlet:p,matches:E,isDataRoute:l!=null},children:R})};return l&&(m.route.ErrorBoundary||m.route.errorElement||v===0)?y.createElement(LE,{location:l.location,revalidation:l.revalidation,component:S,error:b,children:j(),routeContext:{outlet:null,matches:E,isDataRoute:!0}}):j()},null)}function lh(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function UE(n){let a=y.useContext(Jr);return Xe(a,lh(n)),a}function PE(n){let a=y.useContext(_o);return Xe(a,lh(n)),a}function HE(n){let a=y.useContext(na);return Xe(a,lh(n)),a}function ih(n){let a=HE(n),l=a.matches[a.matches.length-1];return Xe(l.route.id,`${n} can only be used on routes that contain a unique "id"`),l.route.id}function BE(){return ih("useRouteId")}function $E(){let n=y.useContext(rh),a=PE("useRouteError"),l=ih("useRouteError");return n!==void 0?n:a.errors?.[l]}function VE(){let{router:n}=UE("useNavigate"),a=ih("useNavigate"),l=y.useRef(!1);return _0(()=>{l.current=!0}),y.useCallback(async(s,c={})=>{Ct(l.current,S0),l.current&&(typeof s=="number"?n.navigate(s):await n.navigate(s,{fromRouteId:a,...c}))},[n,a])}var ay={};function E0(n,a,l){!a&&!ay[n]&&(ay[n]=!0,Ct(!1,l))}var ry={};function ly(n,a){!n&&!ry[a]&&(ry[a]=!0,console.warn(a))}function qE(n){let a={hasErrorBoundary:n.hasErrorBoundary||n.ErrorBoundary!=null||n.errorElement!=null};return n.Component&&(n.element&&Ct(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(a,{element:y.createElement(n.Component),Component:void 0})),n.HydrateFallback&&(n.hydrateFallbackElement&&Ct(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(a,{hydrateFallbackElement:y.createElement(n.HydrateFallback),HydrateFallback:void 0})),n.ErrorBoundary&&(n.errorElement&&Ct(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(a,{errorElement:y.createElement(n.ErrorBoundary),ErrorBoundary:void 0})),a}var FE=["HydrateFallback","hydrateFallbackElement"];function YE(n,a){return cE({basename:a?.basename,unstable_getContext:a?.unstable_getContext,future:a?.future,history:j_({initialEntries:a?.initialEntries,initialIndex:a?.initialIndex}),hydrationData:a?.hydrationData,routes:n,hydrationRouteProperties:FE,mapRouteProperties:qE,dataStrategy:a?.dataStrategy,patchRoutesOnNavigation:a?.patchRoutesOnNavigation}).initialize()}var GE=class{constructor(){this.status="pending",this.promise=new Promise((n,a)=>{this.resolve=l=>{this.status==="pending"&&(this.status="resolved",n(l))},this.reject=l=>{this.status==="pending"&&(this.status="rejected",a(l))}})}};function KE({router:n,flushSync:a}){let[l,i]=y.useState(n.state),[s,c]=y.useState(),[f,h]=y.useState({isTransitioning:!1}),[p,m]=y.useState(),[v,b]=y.useState(),[w,S]=y.useState(),C=y.useRef(new Map),E=y.useCallback((k,{deletedFetchers:H,flushSync:M,viewTransitionOpts:N})=>{k.fetchers.forEach((J,te)=>{J.data!==void 0&&C.current.set(te,J.data)}),H.forEach(J=>C.current.delete(J)),ly(M===!1||a!=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 B=n.window!=null&&n.window.document!=null&&typeof n.window.document.startViewTransition=="function";if(ly(N==null||B,"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."),!N||!B){a&&M?a(()=>i(k)):y.startTransition(()=>i(k));return}if(a&&M){a(()=>{v&&(p&&p.resolve(),v.skipTransition()),h({isTransitioning:!0,flushSync:!0,currentLocation:N.currentLocation,nextLocation:N.nextLocation})});let J=n.window.document.startViewTransition(()=>{a(()=>i(k))});J.finished.finally(()=>{a(()=>{m(void 0),b(void 0),c(void 0),h({isTransitioning:!1})})}),a(()=>b(J));return}v?(p&&p.resolve(),v.skipTransition(),S({state:k,currentLocation:N.currentLocation,nextLocation:N.nextLocation})):(c(k),h({isTransitioning:!0,flushSync:!1,currentLocation:N.currentLocation,nextLocation:N.nextLocation}))},[n.window,a,v,p]);y.useLayoutEffect(()=>n.subscribe(E),[n,E]),y.useEffect(()=>{f.isTransitioning&&!f.flushSync&&m(new GE)},[f]),y.useEffect(()=>{if(p&&s&&n.window){let k=s,H=p.promise,M=n.window.document.startViewTransition(async()=>{y.startTransition(()=>i(k)),await H});M.finished.finally(()=>{m(void 0),b(void 0),c(void 0),h({isTransitioning:!1})}),b(M)}},[s,p,n.window]),y.useEffect(()=>{p&&s&&l.location.key===s.location.key&&p.resolve()},[p,v,l.location,s]),y.useEffect(()=>{!f.isTransitioning&&w&&(c(w.state),h({isTransitioning:!0,flushSync:!1,currentLocation:w.currentLocation,nextLocation:w.nextLocation}),S(void 0))},[f.isTransitioning,w]);let j=y.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:k=>n.navigate(k),push:(k,H,M)=>n.navigate(k,{state:H,preventScrollReset:M?.preventScrollReset}),replace:(k,H,M)=>n.navigate(k,{replace:!0,state:H,preventScrollReset:M?.preventScrollReset})}),[n]),R=n.basename||"/",L=y.useMemo(()=>({router:n,navigator:j,static:!1,basename:R}),[n,j,R]);return y.createElement(y.Fragment,null,y.createElement(Jr.Provider,{value:L},y.createElement(_o.Provider,{value:l},y.createElement(w0.Provider,{value:C.current},y.createElement(ah.Provider,{value:f},y.createElement(ZE,{basename:R,location:l.location,navigationType:l.historyAction,navigator:j},y.createElement(XE,{routes:n.routes,future:n.future,state:l})))))),null)}var XE=y.memo(QE);function QE({routes:n,future:a,state:l}){return TE(n,void 0,l,a)}function IE({to:n,replace:a,state:l,relative:i}){Xe(Wl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=y.useContext(Pn);Ct(!s,"<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:c}=y.useContext(na),{pathname:f}=pr(),h=Rc(),p=Cc(n,Ec(c),f,i==="path"),m=JSON.stringify(p);return y.useEffect(()=>{h(JSON.parse(m),{replace:a,state:l,relative:i})},[h,m,i,a,l]),null}function ZE({basename:n="/",children:a=null,location:l,navigationType:i="POP",navigator:s,static:c=!1}){Xe(!Wl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=n.replace(/^\/*/,"/"),h=y.useMemo(()=>({basename:f,navigator:s,static:c,future:{}}),[f,s,c]);typeof l=="string"&&(l=Aa(l));let{pathname:p="/",search:m="",hash:v="",state:b=null,key:w="default"}=l,S=y.useMemo(()=>{let C=Tn(p,f);return C==null?null:{location:{pathname:C,search:m,hash:v,state:b,key:w},navigationType:i}},[f,p,m,v,b,w,i]);return Ct(S!=null,`<Router basename="${f}"> is not able to match the URL "${p}${m}${v}" because it does not start with the basename, so the <Router> won't render anything.`),S==null?null:y.createElement(Pn.Provider,{value:h},y.createElement(Nc.Provider,{children:a,value:S}))}var ic="get",oc="application/x-www-form-urlencoded";function jc(n){return n!=null&&typeof n.tagName=="string"}function JE(n){return jc(n)&&n.tagName.toLowerCase()==="button"}function WE(n){return jc(n)&&n.tagName.toLowerCase()==="form"}function e2(n){return jc(n)&&n.tagName.toLowerCase()==="input"}function t2(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function n2(n,a){return n.button===0&&(!a||a==="_self")&&!t2(n)}var Gs=null;function a2(){if(Gs===null)try{new FormData(document.createElement("form"),0),Gs=!1}catch{Gs=!0}return Gs}var r2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function sd(n){return n!=null&&!r2.has(n)?(Ct(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${oc}"`),null):n}function l2(n,a){let l,i,s,c,f;if(WE(n)){let h=n.getAttribute("action");i=h?Tn(h,a):null,l=n.getAttribute("method")||ic,s=sd(n.getAttribute("enctype"))||oc,c=new FormData(n)}else if(JE(n)||e2(n)&&(n.type==="submit"||n.type==="image")){let h=n.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=n.getAttribute("formaction")||h.getAttribute("action");if(i=p?Tn(p,a):null,l=n.getAttribute("formmethod")||h.getAttribute("method")||ic,s=sd(n.getAttribute("formenctype"))||sd(h.getAttribute("enctype"))||oc,c=new FormData(h,n),!a2()){let{name:m,type:v,value:b}=n;if(v==="image"){let w=m?`${m}.`:"";c.append(`${w}x`,"0"),c.append(`${w}y`,"0")}else m&&c.append(m,b)}}else{if(jc(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');l=ic,i=null,s=oc,f=n}return c&&s==="text/plain"&&(f=c,c=void 0),{action:i,method:l.toLowerCase(),encType:s,formData:c,body:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function oh(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function i2(n,a,l){let i=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return i.pathname==="/"?i.pathname=`_root.${l}`:a&&Tn(i.pathname,a)==="/"?i.pathname=`${a.replace(/\/$/,"")}/_root.${l}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${l}`,i}async function o2(n,a){if(n.id in a)return a[n.id];try{let l=await import(n.module);return a[n.id]=l,l}catch(l){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(l),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function s2(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function c2(n,a,l){let i=await Promise.all(n.map(async s=>{let c=a.routes[s.route.id];if(c){let f=await o2(c,l);return f.links?f.links():[]}return[]}));return h2(i.flat(1).filter(s2).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function iy(n,a,l,i,s,c){let f=(p,m)=>l[m]?p.route.id!==l[m].route.id:!0,h=(p,m)=>l[m].pathname!==p.pathname||l[m].route.path?.endsWith("*")&&l[m].params["*"]!==p.params["*"];return c==="assets"?a.filter((p,m)=>f(p,m)||h(p,m)):c==="data"?a.filter((p,m)=>{let v=i.routes[p.route.id];if(!v||!v.hasLoader)return!1;if(f(p,m)||h(p,m))return!0;if(p.route.shouldRevalidate){let b=p.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:l[0]?.params||{},nextUrl:new URL(n,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function u2(n,a,{includeHydrateFallback:l}={}){return f2(n.map(i=>{let s=a.routes[i.route.id];if(!s)return[];let c=[s.module];return s.clientActionModule&&(c=c.concat(s.clientActionModule)),s.clientLoaderModule&&(c=c.concat(s.clientLoaderModule)),l&&s.hydrateFallbackModule&&(c=c.concat(s.hydrateFallbackModule)),s.imports&&(c=c.concat(s.imports)),c}).flat(1))}function f2(n){return[...new Set(n)]}function d2(n){let a={},l=Object.keys(n).sort();for(let i of l)a[i]=n[i];return a}function h2(n,a){let l=new Set;return new Set(a),n.reduce((i,s)=>{let c=JSON.stringify(d2(s));return l.has(c)||(l.add(c),i.push({key:c,link:s})),i},[])}function C0(){let n=y.useContext(Jr);return oh(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function m2(){let n=y.useContext(_o);return oh(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var sh=y.createContext(void 0);sh.displayName="FrameworkContext";function N0(){let n=y.useContext(sh);return oh(n,"You must render this element inside a <HydratedRouter> element"),n}function p2(n,a){let l=y.useContext(sh),[i,s]=y.useState(!1),[c,f]=y.useState(!1),{onFocus:h,onBlur:p,onMouseEnter:m,onMouseLeave:v,onTouchStart:b}=a,w=y.useRef(null);y.useEffect(()=>{if(n==="render"&&f(!0),n==="viewport"){let E=R=>{R.forEach(L=>{f(L.isIntersecting)})},j=new IntersectionObserver(E,{threshold:.5});return w.current&&j.observe(w.current),()=>{j.disconnect()}}},[n]),y.useEffect(()=>{if(i){let E=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(E)}}},[i]);let S=()=>{s(!0)},C=()=>{s(!1),f(!1)};return l?n!=="intent"?[c,w,{}]:[c,w,{onFocus:io(h,S),onBlur:io(p,C),onMouseEnter:io(m,S),onMouseLeave:io(v,C),onTouchStart:io(b,S)}]:[!1,w,{}]}function io(n,a){return l=>{n&&n(l),l.defaultPrevented||a(l)}}function g2({page:n,...a}){let{router:l}=C0(),i=y.useMemo(()=>rr(l.routes,n,l.basename),[l.routes,n,l.basename]);return i?y.createElement(y2,{page:n,matches:i,...a}):null}function v2(n){let{manifest:a,routeModules:l}=N0(),[i,s]=y.useState([]);return y.useEffect(()=>{let c=!1;return c2(n,a,l).then(f=>{c||s(f)}),()=>{c=!0}},[n,a,l]),i}function y2({page:n,matches:a,...l}){let i=pr(),{manifest:s,routeModules:c}=N0(),{basename:f}=C0(),{loaderData:h,matches:p}=m2(),m=y.useMemo(()=>iy(n,a,p,s,i,"data"),[n,a,p,s,i]),v=y.useMemo(()=>iy(n,a,p,s,i,"assets"),[n,a,p,s,i]),b=y.useMemo(()=>{if(n===i.pathname+i.search+i.hash)return[];let C=new Set,E=!1;if(a.forEach(R=>{let L=s.routes[R.route.id];!L||!L.hasLoader||(!m.some(k=>k.route.id===R.route.id)&&R.route.id in h&&c[R.route.id]?.shouldRevalidate||L.hasClientLoader?E=!0:C.add(R.route.id))}),C.size===0)return[];let j=i2(n,f,"data");return E&&C.size>0&&j.searchParams.set("_routes",a.filter(R=>C.has(R.route.id)).map(R=>R.route.id).join(",")),[j.pathname+j.search]},[f,h,i,s,m,a,n,c]),w=y.useMemo(()=>u2(v,s),[v,s]),S=v2(v);return y.createElement(y.Fragment,null,b.map(C=>y.createElement("link",{key:C,rel:"prefetch",as:"fetch",href:C,...l})),w.map(C=>y.createElement("link",{key:C,rel:"modulepreload",href:C,...l})),S.map(({key:C,link:E})=>y.createElement("link",{key:C,...E})))}function b2(...n){return a=>{n.forEach(l=>{typeof l=="function"?l(a):l!=null&&(l.current=a)})}}var R0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{R0&&(window.__reactRouterVersion="7.7.1")}catch{}var j0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,O0=y.forwardRef(function({onClick:a,discover:l="render",prefetch:i="none",relative:s,reloadDocument:c,replace:f,state:h,target:p,to:m,preventScrollReset:v,viewTransition:b,...w},S){let{basename:C}=y.useContext(Pn),E=typeof m=="string"&&j0.test(m),j,R=!1;if(typeof m=="string"&&E&&(j=m,R0))try{let te=new URL(window.location.href),ae=m.startsWith("//")?new URL(te.protocol+m):new URL(m),re=Tn(ae.pathname,C);ae.origin===te.origin&&re!=null?m=re+ae.search+ae.hash:R=!0}catch{Ct(!1,`<Link to="${m}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let L=OE(m,{relative:s}),[k,H,M]=p2(i,w),N=_2(m,{replace:f,state:h,target:p,preventScrollReset:v,relative:s,viewTransition:b});function B(te){a&&a(te),te.defaultPrevented||N(te)}let J=y.createElement("a",{...w,...M,href:j||L,onClick:R||c?a:B,ref:b2(S,H),target:p,"data-discover":!E&&l==="render"?"true":void 0});return k&&!E?y.createElement(y.Fragment,null,J,y.createElement(g2,{page:L})):J});O0.displayName="Link";var x2=y.forwardRef(function({"aria-current":a="page",caseSensitive:l=!1,className:i="",end:s=!1,style:c,to:f,viewTransition:h,children:p,...m},v){let b=Eo(f,{relative:m.relative}),w=pr(),S=y.useContext(_o),{navigator:C,basename:E}=y.useContext(Pn),j=S!=null&&j2(b)&&h===!0,R=C.encodeLocation?C.encodeLocation(b).pathname:b.pathname,L=w.pathname,k=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;l||(L=L.toLowerCase(),k=k?k.toLowerCase():null,R=R.toLowerCase()),k&&E&&(k=Tn(k,E)||k);const H=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let M=L===R||!s&&L.startsWith(R)&&L.charAt(H)==="/",N=k!=null&&(k===R||!s&&k.startsWith(R)&&k.charAt(R.length)==="/"),B={isActive:M,isPending:N,isTransitioning:j},J=M?a:void 0,te;typeof i=="function"?te=i(B):te=[i,M?"active":null,N?"pending":null,j?"transitioning":null].filter(Boolean).join(" ");let ae=typeof c=="function"?c(B):c;return y.createElement(O0,{...m,"aria-current":J,className:te,ref:v,style:ae,to:f,viewTransition:h},typeof p=="function"?p(B):p)});x2.displayName="NavLink";var w2=y.forwardRef(({discover:n="render",fetcherKey:a,navigate:l,reloadDocument:i,replace:s,state:c,method:f=ic,action:h,onSubmit:p,relative:m,preventScrollReset:v,viewTransition:b,...w},S)=>{let C=N2(),E=R2(h,{relative:m}),j=f.toLowerCase()==="get"?"get":"post",R=typeof h=="string"&&j0.test(h),L=k=>{if(p&&p(k),k.defaultPrevented)return;k.preventDefault();let H=k.nativeEvent.submitter,M=H?.getAttribute("formmethod")||f;C(H||k.currentTarget,{fetcherKey:a,method:M,navigate:l,replace:s,state:c,relative:m,preventScrollReset:v,viewTransition:b})};return y.createElement("form",{ref:S,method:j,action:E,onSubmit:i?p:L,...w,"data-discover":!R&&n==="render"?"true":void 0})});w2.displayName="Form";function S2(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function A0(n){let a=y.useContext(Jr);return Xe(a,S2(n)),a}function _2(n,{target:a,replace:l,state:i,preventScrollReset:s,relative:c,viewTransition:f}={}){let h=Rc(),p=pr(),m=Eo(n,{relative:c});return y.useCallback(v=>{if(n2(v,a)){v.preventDefault();let b=l!==void 0?l:ir(p)===ir(m);h(n,{replace:b,state:i,preventScrollReset:s,relative:c,viewTransition:f})}},[p,h,m,l,i,a,n,s,c,f])}var E2=0,C2=()=>`__${String(++E2)}__`;function N2(){let{router:n}=A0("useSubmit"),{basename:a}=y.useContext(Pn),l=BE();return y.useCallback(async(i,s={})=>{let{action:c,method:f,encType:h,formData:p,body:m}=l2(i,a);if(s.navigate===!1){let v=s.fetcherKey||C2();await n.fetch(v,l,s.action||c,{preventScrollReset:s.preventScrollReset,formData:p,body:m,formMethod:s.method||f,formEncType:s.encType||h,flushSync:s.flushSync})}else await n.navigate(s.action||c,{preventScrollReset:s.preventScrollReset,formData:p,body:m,formMethod:s.method||f,formEncType:s.encType||h,replace:s.replace,state:s.state,fromRouteId:l,flushSync:s.flushSync,viewTransition:s.viewTransition})},[n,a,l])}function R2(n,{relative:a}={}){let{basename:l}=y.useContext(Pn),i=y.useContext(na);Xe(i,"useFormAction must be used inside a RouteContext");let[s]=i.matches.slice(-1),c={...Eo(n||".",{relative:a})},f=pr();if(n==null){c.search=f.search;let h=new URLSearchParams(c.search),p=h.getAll("index");if(p.some(v=>v==="")){h.delete("index"),p.filter(b=>b).forEach(b=>h.append("index",b));let v=h.toString();c.search=v?`?${v}`:""}}return(!n||n===".")&&s.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),l!=="/"&&(c.pathname=c.pathname==="/"?l:Jn([l,c.pathname])),ir(c)}function j2(n,{relative:a}={}){let l=y.useContext(ah);Xe(l!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=A0("useViewTransitionState"),s=Eo(n,{relative:a});if(!l.isTransitioning)return!1;let c=Tn(l.currentLocation.pathname,i)||l.currentLocation.pathname,f=Tn(l.nextLocation.pathname,i)||l.nextLocation.pathname;return mc(s.pathname,f)!=null||mc(s.pathname,c)!=null}var Oc=i0();const O2=Iy(Oc);function A2(n){return y.createElement(KE,{flushSync:Oc.flushSync,...n})}function nn(n,a,{checkForDefaultPrevented:l=!0}={}){return function(s){if(n?.(s),l===!1||!s.defaultPrevented)return a?.(s)}}function oy(n,a){if(typeof n=="function")return n(a);n!=null&&(n.current=a)}function Gr(...n){return a=>{let l=!1;const i=n.map(s=>{const c=oy(s,a);return!l&&typeof c=="function"&&(l=!0),c});if(l)return()=>{for(let s=0;s<i.length;s++){const c=i[s];typeof c=="function"?c():oy(n[s],null)}}}}function vn(...n){return y.useCallback(Gr(...n),n)}function T2(n,a){const l=y.createContext(a),i=c=>{const{children:f,...h}=c,p=y.useMemo(()=>h,Object.values(h));return g.jsx(l.Provider,{value:p,children:f})};i.displayName=n+"Provider";function s(c){const f=y.useContext(l);if(f)return f;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${n}\``)}return[i,s]}function Ac(n,a=[]){let l=[];function i(c,f){const h=y.createContext(f),p=l.length;l=[...l,f];const m=b=>{const{scope:w,children:S,...C}=b,E=w?.[n]?.[p]||h,j=y.useMemo(()=>C,Object.values(C));return g.jsx(E.Provider,{value:j,children:S})};m.displayName=c+"Provider";function v(b,w){const S=w?.[n]?.[p]||h,C=y.useContext(S);if(C)return C;if(f!==void 0)return f;throw new Error(`\`${b}\` must be used within \`${c}\``)}return[m,v]}const s=()=>{const c=l.map(f=>y.createContext(f));return function(h){const p=h?.[n]||c;return y.useMemo(()=>({[`__scope${n}`]:{...h,[n]:p}}),[h,p])}};return s.scopeName=n,[i,M2(s,...a)]}function M2(...n){const a=n[0];if(n.length===1)return a;const l=()=>{const i=n.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(c){const f=i.reduce((h,{useScope:p,scopeName:m})=>{const b=p(c)[`__scope${m}`];return{...h,...b}},{});return y.useMemo(()=>({[`__scope${a.scopeName}`]:f}),[f])}};return l.scopeName=a.scopeName,l}var or=globalThis?.document?y.useLayoutEffect:()=>{},D2=Wy[" useId ".trim().toString()]||(()=>{}),L2=0;function Wn(n){const[a,l]=y.useState(D2());return or(()=>{l(i=>i??String(L2++))},[n]),n||(a?`radix-${a}`:"")}var k2=Wy[" useInsertionEffect ".trim().toString()]||or;function ch({prop:n,defaultProp:a,onChange:l=()=>{},caller:i}){const[s,c,f]=z2({defaultProp:a,onChange:l}),h=n!==void 0,p=h?n:s;{const v=y.useRef(n!==void 0);y.useEffect(()=>{const b=v.current;b!==h&&console.warn(`${i} is changing from ${b?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),v.current=h},[h,i])}const m=y.useCallback(v=>{if(h){const b=U2(v)?v(n):v;b!==n&&f.current?.(b)}else c(v)},[h,n,c,f]);return[p,m]}function z2({defaultProp:n,onChange:a}){const[l,i]=y.useState(n),s=y.useRef(l),c=y.useRef(a);return k2(()=>{c.current=a},[a]),y.useEffect(()=>{s.current!==l&&(c.current?.(l),s.current=l)},[l,s]),[l,i,c]}function U2(n){return typeof n=="function"}function Tc(n){const a=H2(n),l=y.forwardRef((i,s)=>{const{children:c,...f}=i,h=y.Children.toArray(c),p=h.find($2);if(p){const m=p.props.children,v=h.map(b=>b===p?y.Children.count(m)>1?y.Children.only(null):y.isValidElement(m)?m.props.children:null:b);return g.jsx(a,{...f,ref:s,children:y.isValidElement(m)?y.cloneElement(m,void 0,v):null})}return g.jsx(a,{...f,ref:s,children:c})});return l.displayName=`${n}.Slot`,l}var P2=Tc("Slot");function H2(n){const a=y.forwardRef((l,i)=>{const{children:s,...c}=l;if(y.isValidElement(s)){const f=q2(s),h=V2(c,s.props);return s.type!==y.Fragment&&(h.ref=i?Gr(i,f):f),y.cloneElement(s,h)}return y.Children.count(s)>1?y.Children.only(null):null});return a.displayName=`${n}.SlotClone`,a}var B2=Symbol("radix.slottable");function $2(n){return y.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===B2}function V2(n,a){const l={...a};for(const i in a){const s=n[i],c=a[i];/^on[A-Z]/.test(i)?s&&c?l[i]=(...h)=>{const p=c(...h);return s(...h),p}:s&&(l[i]=s):i==="style"?l[i]={...s,...c}:i==="className"&&(l[i]=[s,c].filter(Boolean).join(" "))}return{...n,...l}}function q2(n){let a=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,l=a&&"isReactWarning"in a&&a.isReactWarning;return l?n.ref:(a=Object.getOwnPropertyDescriptor(n,"ref")?.get,l=a&&"isReactWarning"in a&&a.isReactWarning,l?n.props.ref:n.props.ref||n.ref)}var F2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pt=F2.reduce((n,a)=>{const l=Tc(`Primitive.${a}`),i=y.forwardRef((s,c)=>{const{asChild:f,...h}=s,p=f?l:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(p,{...h,ref:c})});return i.displayName=`Primitive.${a}`,{...n,[a]:i}},{});function Y2(n,a){n&&Oc.flushSync(()=>n.dispatchEvent(a))}function Il(n){const a=y.useRef(n);return y.useEffect(()=>{a.current=n}),y.useMemo(()=>(...l)=>a.current?.(...l),[])}function G2(n,a=globalThis?.document){const l=Il(n);y.useEffect(()=>{const i=s=>{s.key==="Escape"&&l(s)};return a.addEventListener("keydown",i,{capture:!0}),()=>a.removeEventListener("keydown",i,{capture:!0})},[l,a])}var K2="DismissableLayer",Pd="dismissableLayer.update",X2="dismissableLayer.pointerDownOutside",Q2="dismissableLayer.focusOutside",sy,T0=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),uh=y.forwardRef((n,a)=>{const{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:f,onDismiss:h,...p}=n,m=y.useContext(T0),[v,b]=y.useState(null),w=v?.ownerDocument??globalThis?.document,[,S]=y.useState({}),C=vn(a,B=>b(B)),E=Array.from(m.layers),[j]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),R=E.indexOf(j),L=v?E.indexOf(v):-1,k=m.layersWithOutsidePointerEventsDisabled.size>0,H=L>=R,M=J2(B=>{const J=B.target,te=[...m.branches].some(ae=>ae.contains(J));!H||te||(s?.(B),f?.(B),B.defaultPrevented||h?.())},w),N=W2(B=>{const J=B.target;[...m.branches].some(ae=>ae.contains(J))||(c?.(B),f?.(B),B.defaultPrevented||h?.())},w);return G2(B=>{L===m.layers.size-1&&(i?.(B),!B.defaultPrevented&&h&&(B.preventDefault(),h()))},w),y.useEffect(()=>{if(v)return l&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(sy=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(v)),m.layers.add(v),cy(),()=>{l&&m.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=sy)}},[v,w,l,m]),y.useEffect(()=>()=>{v&&(m.layers.delete(v),m.layersWithOutsidePointerEventsDisabled.delete(v),cy())},[v,m]),y.useEffect(()=>{const B=()=>S({});return document.addEventListener(Pd,B),()=>document.removeEventListener(Pd,B)},[]),g.jsx(pt.div,{...p,ref:C,style:{pointerEvents:k?H?"auto":"none":void 0,...n.style},onFocusCapture:nn(n.onFocusCapture,N.onFocusCapture),onBlurCapture:nn(n.onBlurCapture,N.onBlurCapture),onPointerDownCapture:nn(n.onPointerDownCapture,M.onPointerDownCapture)})});uh.displayName=K2;var I2="DismissableLayerBranch",Z2=y.forwardRef((n,a)=>{const l=y.useContext(T0),i=y.useRef(null),s=vn(a,i);return y.useEffect(()=>{const c=i.current;if(c)return l.branches.add(c),()=>{l.branches.delete(c)}},[l.branches]),g.jsx(pt.div,{...n,ref:s})});Z2.displayName=I2;function J2(n,a=globalThis?.document){const l=Il(n),i=y.useRef(!1),s=y.useRef(()=>{});return y.useEffect(()=>{const c=h=>{if(h.target&&!i.current){let p=function(){M0(X2,l,m,{discrete:!0})};const m={originalEvent:h};h.pointerType==="touch"?(a.removeEventListener("click",s.current),s.current=p,a.addEventListener("click",s.current,{once:!0})):p()}else a.removeEventListener("click",s.current);i.current=!1},f=window.setTimeout(()=>{a.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(f),a.removeEventListener("pointerdown",c),a.removeEventListener("click",s.current)}},[a,l]),{onPointerDownCapture:()=>i.current=!0}}function W2(n,a=globalThis?.document){const l=Il(n),i=y.useRef(!1);return y.useEffect(()=>{const s=c=>{c.target&&!i.current&&M0(Q2,l,{originalEvent:c},{discrete:!1})};return a.addEventListener("focusin",s),()=>a.removeEventListener("focusin",s)},[a,l]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function cy(){const n=new CustomEvent(Pd);document.dispatchEvent(n)}function M0(n,a,l,{discrete:i}){const s=l.originalEvent.target,c=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:l});a&&s.addEventListener(n,a,{once:!0}),i?Y2(s,c):s.dispatchEvent(c)}var cd="focusScope.autoFocusOnMount",ud="focusScope.autoFocusOnUnmount",uy={bubbles:!1,cancelable:!0},eC="FocusScope",fh=y.forwardRef((n,a)=>{const{loop:l=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:c,...f}=n,[h,p]=y.useState(null),m=Il(s),v=Il(c),b=y.useRef(null),w=vn(a,E=>p(E)),S=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(i){let E=function(k){if(S.paused||!h)return;const H=k.target;h.contains(H)?b.current=H:ar(b.current,{select:!0})},j=function(k){if(S.paused||!h)return;const H=k.relatedTarget;H!==null&&(h.contains(H)||ar(b.current,{select:!0}))},R=function(k){if(document.activeElement===document.body)for(const M of k)M.removedNodes.length>0&&ar(h)};document.addEventListener("focusin",E),document.addEventListener("focusout",j);const L=new MutationObserver(R);return h&&L.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",j),L.disconnect()}}},[i,h,S.paused]),y.useEffect(()=>{if(h){dy.add(S);const E=document.activeElement;if(!h.contains(E)){const R=new CustomEvent(cd,uy);h.addEventListener(cd,m),h.dispatchEvent(R),R.defaultPrevented||(tC(iC(D0(h)),{select:!0}),document.activeElement===E&&ar(h))}return()=>{h.removeEventListener(cd,m),setTimeout(()=>{const R=new CustomEvent(ud,uy);h.addEventListener(ud,v),h.dispatchEvent(R),R.defaultPrevented||ar(E??document.body,{select:!0}),h.removeEventListener(ud,v),dy.remove(S)},0)}}},[h,m,v,S]);const C=y.useCallback(E=>{if(!l&&!i||S.paused)return;const j=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,R=document.activeElement;if(j&&R){const L=E.currentTarget,[k,H]=nC(L);k&&H?!E.shiftKey&&R===H?(E.preventDefault(),l&&ar(k,{select:!0})):E.shiftKey&&R===k&&(E.preventDefault(),l&&ar(H,{select:!0})):R===L&&E.preventDefault()}},[l,i,S.paused]);return g.jsx(pt.div,{tabIndex:-1,...f,ref:w,onKeyDown:C})});fh.displayName=eC;function tC(n,{select:a=!1}={}){const l=document.activeElement;for(const i of n)if(ar(i,{select:a}),document.activeElement!==l)return}function nC(n){const a=D0(n),l=fy(a,n),i=fy(a.reverse(),n);return[l,i]}function D0(n){const a=[],l=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;l.nextNode();)a.push(l.currentNode);return a}function fy(n,a){for(const l of n)if(!aC(l,{upTo:a}))return l}function aC(n,{upTo:a}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(a!==void 0&&n===a)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function rC(n){return n instanceof HTMLInputElement&&"select"in n}function ar(n,{select:a=!1}={}){if(n&&n.focus){const l=document.activeElement;n.focus({preventScroll:!0}),n!==l&&rC(n)&&a&&n.select()}}var dy=lC();function lC(){let n=[];return{add(a){const l=n[0];a!==l&&l?.pause(),n=hy(n,a),n.unshift(a)},remove(a){n=hy(n,a),n[0]?.resume()}}}function hy(n,a){const l=[...n],i=l.indexOf(a);return i!==-1&&l.splice(i,1),l}function iC(n){return n.filter(a=>a.tagName!=="A")}var oC="Portal",dh=y.forwardRef((n,a)=>{const{container:l,...i}=n,[s,c]=y.useState(!1);or(()=>c(!0),[]);const f=l||s&&globalThis?.document?.body;return f?O2.createPortal(g.jsx(pt.div,{...i,ref:a}),f):null});dh.displayName=oC;function sC(n,a){return y.useReducer((l,i)=>a[l][i]??l,n)}var ei=n=>{const{present:a,children:l}=n,i=cC(a),s=typeof l=="function"?l({present:i.isPresent}):y.Children.only(l),c=vn(i.ref,uC(s));return typeof l=="function"||i.isPresent?y.cloneElement(s,{ref:c}):null};ei.displayName="Presence";function cC(n){const[a,l]=y.useState(),i=y.useRef(null),s=y.useRef(n),c=y.useRef("none"),f=n?"mounted":"unmounted",[h,p]=sC(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const m=Ks(i.current);c.current=h==="mounted"?m:"none"},[h]),or(()=>{const m=i.current,v=s.current;if(v!==n){const w=c.current,S=Ks(m);n?p("MOUNT"):S==="none"||m?.display==="none"?p("UNMOUNT"):p(v&&w!==S?"ANIMATION_OUT":"UNMOUNT"),s.current=n}},[n,p]),or(()=>{if(a){let m;const v=a.ownerDocument.defaultView??window,b=S=>{const E=Ks(i.current).includes(S.animationName);if(S.target===a&&E&&(p("ANIMATION_END"),!s.current)){const j=a.style.animationFillMode;a.style.animationFillMode="forwards",m=v.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=j)})}},w=S=>{S.target===a&&(c.current=Ks(i.current))};return a.addEventListener("animationstart",w),a.addEventListener("animationcancel",b),a.addEventListener("animationend",b),()=>{v.clearTimeout(m),a.removeEventListener("animationstart",w),a.removeEventListener("animationcancel",b),a.removeEventListener("animationend",b)}}else p("ANIMATION_END")},[a,p]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:y.useCallback(m=>{i.current=m?getComputedStyle(m):null,l(m)},[])}}function Ks(n){return n?.animationName||"none"}function uC(n){let a=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,l=a&&"isReactWarning"in a&&a.isReactWarning;return l?n.ref:(a=Object.getOwnPropertyDescriptor(n,"ref")?.get,l=a&&"isReactWarning"in a&&a.isReactWarning,l?n.props.ref:n.props.ref||n.ref)}var fd=0;function L0(){y.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??my()),document.body.insertAdjacentElement("beforeend",n[1]??my()),fd++,()=>{fd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),fd--}},[])}function my(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var Qn=function(){return Qn=Object.assign||function(a){for(var l,i=1,s=arguments.length;i<s;i++){l=arguments[i];for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(a[c]=l[c])}return a},Qn.apply(this,arguments)};function k0(n,a){var l={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&a.indexOf(i)<0&&(l[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(n);s<i.length;s++)a.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(n,i[s])&&(l[i[s]]=n[i[s]]);return l}function fC(n,a,l){if(l||arguments.length===2)for(var i=0,s=a.length,c;i<s;i++)(c||!(i in a))&&(c||(c=Array.prototype.slice.call(a,0,i)),c[i]=a[i]);return n.concat(c||Array.prototype.slice.call(a))}var sc="right-scroll-bar-position",cc="width-before-scroll-bar",dC="with-scroll-bars-hidden",hC="--removed-body-scroll-bar-size";function dd(n,a){return typeof n=="function"?n(a):n&&(n.current=a),n}function mC(n,a){var l=y.useState(function(){return{value:n,callback:a,facade:{get current(){return l.value},set current(i){var s=l.value;s!==i&&(l.value=i,l.callback(i,s))}}}})[0];return l.callback=a,l.facade}var pC=typeof window<"u"?y.useLayoutEffect:y.useEffect,py=new WeakMap;function gC(n,a){var l=mC(null,function(i){return n.forEach(function(s){return dd(s,i)})});return pC(function(){var i=py.get(l);if(i){var s=new Set(i),c=new Set(n),f=l.current;s.forEach(function(h){c.has(h)||dd(h,null)}),c.forEach(function(h){s.has(h)||dd(h,f)})}py.set(l,n)},[n]),l}function vC(n){return n}function yC(n,a){a===void 0&&(a=vC);var l=[],i=!1,s={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return l.length?l[l.length-1]:n},useMedium:function(c){var f=a(c,i);return l.push(f),function(){l=l.filter(function(h){return h!==f})}},assignSyncMedium:function(c){for(i=!0;l.length;){var f=l;l=[],f.forEach(c)}l={push:function(h){return c(h)},filter:function(){return l}}},assignMedium:function(c){i=!0;var f=[];if(l.length){var h=l;l=[],h.forEach(c),f=l}var p=function(){var v=f;f=[],v.forEach(c)},m=function(){return Promise.resolve().then(p)};m(),l={push:function(v){f.push(v),m()},filter:function(v){return f=f.filter(v),l}}}};return s}function bC(n){n===void 0&&(n={});var a=yC(null);return a.options=Qn({async:!0,ssr:!1},n),a}var z0=function(n){var a=n.sideCar,l=k0(n,["sideCar"]);if(!a)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=a.read();if(!i)throw new Error("Sidecar medium not found");return y.createElement(i,Qn({},l))};z0.isSideCarExport=!0;function xC(n,a){return n.useMedium(a),z0}var U0=bC(),hd=function(){},Mc=y.forwardRef(function(n,a){var l=y.useRef(null),i=y.useState({onScrollCapture:hd,onWheelCapture:hd,onTouchMoveCapture:hd}),s=i[0],c=i[1],f=n.forwardProps,h=n.children,p=n.className,m=n.removeScrollBar,v=n.enabled,b=n.shards,w=n.sideCar,S=n.noRelative,C=n.noIsolation,E=n.inert,j=n.allowPinchZoom,R=n.as,L=R===void 0?"div":R,k=n.gapMode,H=k0(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),M=w,N=gC([l,a]),B=Qn(Qn({},H),s);return y.createElement(y.Fragment,null,v&&y.createElement(M,{sideCar:U0,removeScrollBar:m,shards:b,noRelative:S,noIsolation:C,inert:E,setCallbacks:c,allowPinchZoom:!!j,lockRef:l,gapMode:k}),f?y.cloneElement(y.Children.only(h),Qn(Qn({},B),{ref:N})):y.createElement(L,Qn({},B,{className:p,ref:N}),h))});Mc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Mc.classNames={fullWidth:cc,zeroRight:sc};var wC=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function SC(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var a=wC();return a&&n.setAttribute("nonce",a),n}function _C(n,a){n.styleSheet?n.styleSheet.cssText=a:n.appendChild(document.createTextNode(a))}function EC(n){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(n)}var CC=function(){var n=0,a=null;return{add:function(l){n==0&&(a=SC())&&(_C(a,l),EC(a)),n++},remove:function(){n--,!n&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},NC=function(){var n=CC();return function(a,l){y.useEffect(function(){return n.add(a),function(){n.remove()}},[a&&l])}},P0=function(){var n=NC(),a=function(l){var i=l.styles,s=l.dynamic;return n(i,s),null};return a},RC={left:0,top:0,right:0,gap:0},md=function(n){return parseInt(n||"",10)||0},jC=function(n){var a=window.getComputedStyle(document.body),l=a[n==="padding"?"paddingLeft":"marginLeft"],i=a[n==="padding"?"paddingTop":"marginTop"],s=a[n==="padding"?"paddingRight":"marginRight"];return[md(l),md(i),md(s)]},OC=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return RC;var a=jC(n),l=document.documentElement.clientWidth,i=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,i-l+a[2]-a[0])}},AC=P0(),Xl="data-scroll-locked",TC=function(n,a,l,i){var s=n.left,c=n.top,f=n.right,h=n.gap;return l===void 0&&(l="margin"),`
68
+ .`.concat(dC,` {
69
69
  overflow: hidden `).concat(i,`;
70
70
  padding-right: `).concat(h,"px ").concat(i,`;
71
71
  }
72
- body[`).concat(Gl,`] {
72
+ body[`).concat(Xl,`] {
73
73
  overflow: hidden `).concat(i,`;
74
74
  overscroll-behavior: contain;
75
75
  `).concat([a&&"position: relative ".concat(i,";"),l==="margin"&&`
76
76
  padding-left: `.concat(s,`px;
77
- padding-top: `).concat(u,`px;
77
+ padding-top: `).concat(c,`px;
78
78
  padding-right: `).concat(f,`px;
79
79
  margin-left:0;
80
80
  margin-top:0;
@@ -82,143 +82,168 @@ Please change the parent <Route path="${N}"> to <Route path="${N==="/"?"*":`${N}
82
82
  `),l==="padding"&&"padding-right: ".concat(h,"px ").concat(i,";")].filter(Boolean).join(""),`
83
83
  }
84
84
 
85
- .`).concat(su,` {
85
+ .`).concat(sc,` {
86
86
  right: `).concat(h,"px ").concat(i,`;
87
87
  }
88
88
 
89
- .`).concat(uu,` {
89
+ .`).concat(cc,` {
90
90
  margin-right: `).concat(h,"px ").concat(i,`;
91
91
  }
92
92
 
93
- .`).concat(su," .").concat(su,` {
93
+ .`).concat(sc," .").concat(sc,` {
94
94
  right: 0 `).concat(i,`;
95
95
  }
96
96
 
97
- .`).concat(uu," .").concat(uu,` {
97
+ .`).concat(cc," .").concat(cc,` {
98
98
  margin-right: 0 `).concat(i,`;
99
99
  }
100
100
 
101
- body[`).concat(Gl,`] {
102
- `).concat(uC,": ").concat(h,`px;
101
+ body[`).concat(Xl,`] {
102
+ `).concat(hC,": ").concat(h,`px;
103
103
  }
104
- `)},my=function(){var n=parseInt(document.body.getAttribute(Gl)||"0",10);return isFinite(n)?n:0},jC=function(){y.useEffect(function(){return document.body.setAttribute(Gl,(my()+1).toString()),function(){var n=my()-1;n<=0?document.body.removeAttribute(Gl):document.body.setAttribute(Gl,n.toString())}},[])},OC=function(n){var a=n.noRelative,l=n.noImportant,i=n.gapMode,s=i===void 0?"margin":i;jC();var u=y.useMemo(function(){return CC(s)},[s]);return y.createElement(NC,{styles:RC(u,!a,s,l?"":"!important")})},Pd=!1;if(typeof window<"u")try{var Xs=Object.defineProperty({},"passive",{get:function(){return Pd=!0,!0}});window.addEventListener("test",Xs,Xs),window.removeEventListener("test",Xs,Xs)}catch{Pd=!1}var Pl=Pd?{passive:!1}:!1,AC=function(n){return n.tagName==="TEXTAREA"},U0=function(n,a){if(!(n instanceof Element))return!1;var l=window.getComputedStyle(n);return l[a]!=="hidden"&&!(l.overflowY===l.overflowX&&!AC(n)&&l[a]==="visible")},TC=function(n){return U0(n,"overflowY")},MC=function(n){return U0(n,"overflowX")},py=function(n,a){var l=a.ownerDocument,i=a;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=P0(n,i);if(s){var u=H0(n,i),f=u[1],h=u[2];if(f>h)return!0}i=i.parentNode}while(i&&i!==l.body);return!1},DC=function(n){var a=n.scrollTop,l=n.scrollHeight,i=n.clientHeight;return[a,l,i]},LC=function(n){var a=n.scrollLeft,l=n.scrollWidth,i=n.clientWidth;return[a,l,i]},P0=function(n,a){return n==="v"?TC(a):MC(a)},H0=function(n,a){return n==="v"?DC(a):LC(a)},kC=function(n,a){return n==="h"&&a==="rtl"?-1:1},zC=function(n,a,l,i,s){var u=kC(n,window.getComputedStyle(a).direction),f=u*i,h=l.target,p=a.contains(h),m=!1,v=f>0,b=0,w=0;do{if(!h)break;var S=H0(n,h),C=S[0],_=S[1],j=S[2],N=_-j-u*C;(C||N)&&P0(n,h)&&(b+=N,w+=C);var z=h.parentNode;h=z&&z.nodeType===Node.DOCUMENT_FRAGMENT_NODE?z.host:z}while(!p&&h!==document.body||p&&(a.contains(h)||a===h));return(v&&Math.abs(b)<1||!v&&Math.abs(w)<1)&&(m=!0),m},Qs=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},gy=function(n){return[n.deltaX,n.deltaY]},vy=function(n){return n&&"current"in n?n.current:n},UC=function(n,a){return n[0]===a[0]&&n[1]===a[1]},PC=function(n){return`
104
+ `)},gy=function(){var n=parseInt(document.body.getAttribute(Xl)||"0",10);return isFinite(n)?n:0},MC=function(){y.useEffect(function(){return document.body.setAttribute(Xl,(gy()+1).toString()),function(){var n=gy()-1;n<=0?document.body.removeAttribute(Xl):document.body.setAttribute(Xl,n.toString())}},[])},DC=function(n){var a=n.noRelative,l=n.noImportant,i=n.gapMode,s=i===void 0?"margin":i;MC();var c=y.useMemo(function(){return OC(s)},[s]);return y.createElement(AC,{styles:TC(c,!a,s,l?"":"!important")})},Hd=!1;if(typeof window<"u")try{var Xs=Object.defineProperty({},"passive",{get:function(){return Hd=!0,!0}});window.addEventListener("test",Xs,Xs),window.removeEventListener("test",Xs,Xs)}catch{Hd=!1}var Hl=Hd?{passive:!1}:!1,LC=function(n){return n.tagName==="TEXTAREA"},H0=function(n,a){if(!(n instanceof Element))return!1;var l=window.getComputedStyle(n);return l[a]!=="hidden"&&!(l.overflowY===l.overflowX&&!LC(n)&&l[a]==="visible")},kC=function(n){return H0(n,"overflowY")},zC=function(n){return H0(n,"overflowX")},vy=function(n,a){var l=a.ownerDocument,i=a;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=B0(n,i);if(s){var c=$0(n,i),f=c[1],h=c[2];if(f>h)return!0}i=i.parentNode}while(i&&i!==l.body);return!1},UC=function(n){var a=n.scrollTop,l=n.scrollHeight,i=n.clientHeight;return[a,l,i]},PC=function(n){var a=n.scrollLeft,l=n.scrollWidth,i=n.clientWidth;return[a,l,i]},B0=function(n,a){return n==="v"?kC(a):zC(a)},$0=function(n,a){return n==="v"?UC(a):PC(a)},HC=function(n,a){return n==="h"&&a==="rtl"?-1:1},BC=function(n,a,l,i,s){var c=HC(n,window.getComputedStyle(a).direction),f=c*i,h=l.target,p=a.contains(h),m=!1,v=f>0,b=0,w=0;do{if(!h)break;var S=$0(n,h),C=S[0],E=S[1],j=S[2],R=E-j-c*C;(C||R)&&B0(n,h)&&(b+=R,w+=C);var L=h.parentNode;h=L&&L.nodeType===Node.DOCUMENT_FRAGMENT_NODE?L.host:L}while(!p&&h!==document.body||p&&(a.contains(h)||a===h));return(v&&Math.abs(b)<1||!v&&Math.abs(w)<1)&&(m=!0),m},Qs=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},yy=function(n){return[n.deltaX,n.deltaY]},by=function(n){return n&&"current"in n?n.current:n},$C=function(n,a){return n[0]===a[0]&&n[1]===a[1]},VC=function(n){return`
105
105
  .block-interactivity-`.concat(n,` {pointer-events: none;}
106
106
  .allow-interactivity-`).concat(n,` {pointer-events: all;}
107
- `)},HC=0,Hl=[];function BC(n){var a=y.useRef([]),l=y.useRef([0,0]),i=y.useRef(),s=y.useState(HC++)[0],u=y.useState(z0)[0],f=y.useRef(n);y.useEffect(function(){f.current=n},[n]),y.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(s));var _=oC([n.lockRef.current],(n.shards||[]).map(vy),!0).filter(Boolean);return _.forEach(function(j){return j.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),_.forEach(function(j){return j.classList.remove("allow-interactivity-".concat(s))})}}},[n.inert,n.lockRef.current,n.shards]);var h=y.useCallback(function(_,j){if("touches"in _&&_.touches.length===2||_.type==="wheel"&&_.ctrlKey)return!f.current.allowPinchZoom;var N=Qs(_),z=l.current,k="deltaX"in _?_.deltaX:z[0]-N[0],H="deltaY"in _?_.deltaY:z[1]-N[1],D,R=_.target,B=Math.abs(k)>Math.abs(H)?"h":"v";if("touches"in _&&B==="h"&&R.type==="range")return!1;var Z=py(B,R);if(!Z)return!0;if(Z?D=B:(D=B==="v"?"h":"v",Z=py(B,R)),!Z)return!1;if(!i.current&&"changedTouches"in _&&(k||H)&&(i.current=D),!D)return!0;var ne=i.current||D;return zC(ne,j,_,ne==="h"?k:H)},[]),p=y.useCallback(function(_){var j=_;if(!(!Hl.length||Hl[Hl.length-1]!==u)){var N="deltaY"in j?gy(j):Qs(j),z=a.current.filter(function(D){return D.name===j.type&&(D.target===j.target||j.target===D.shadowParent)&&UC(D.delta,N)})[0];if(z&&z.should){j.cancelable&&j.preventDefault();return}if(!z){var k=(f.current.shards||[]).map(vy).filter(Boolean).filter(function(D){return D.contains(j.target)}),H=k.length>0?h(j,k[0]):!f.current.noIsolation;H&&j.cancelable&&j.preventDefault()}}},[]),m=y.useCallback(function(_,j,N,z){var k={name:_,delta:j,target:N,should:z,shadowParent:$C(N)};a.current.push(k),setTimeout(function(){a.current=a.current.filter(function(H){return H!==k})},1)},[]),v=y.useCallback(function(_){l.current=Qs(_),i.current=void 0},[]),b=y.useCallback(function(_){m(_.type,gy(_),_.target,h(_,n.lockRef.current))},[]),w=y.useCallback(function(_){m(_.type,Qs(_),_.target,h(_,n.lockRef.current))},[]);y.useEffect(function(){return Hl.push(u),n.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:w}),document.addEventListener("wheel",p,Pl),document.addEventListener("touchmove",p,Pl),document.addEventListener("touchstart",v,Pl),function(){Hl=Hl.filter(function(_){return _!==u}),document.removeEventListener("wheel",p,Pl),document.removeEventListener("touchmove",p,Pl),document.removeEventListener("touchstart",v,Pl)}},[]);var S=n.removeScrollBar,C=n.inert;return y.createElement(y.Fragment,null,C?y.createElement(u,{styles:PC(s)}):null,S?y.createElement(OC,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function $C(n){for(var a=null;n!==null;)n instanceof ShadowRoot&&(a=n.host,n=n.host),n=n.parentNode;return a}const VC=gC(k0,BC);var dh=y.forwardRef(function(n,a){return y.createElement(Mu,Qn({},n,{ref:a,sideCar:VC}))});dh.classNames=Mu.classNames;var YC=function(n){if(typeof document>"u")return null;var a=Array.isArray(n)?n[0]:n;return a.ownerDocument.body},Bl=new WeakMap,Zs=new WeakMap,Is={},pd=0,B0=function(n){return n&&(n.host||B0(n.parentNode))},qC=function(n,a){return a.map(function(l){if(n.contains(l))return l;var i=B0(l);return i&&n.contains(i)?i:(console.error("aria-hidden",l,"in not contained inside",n,". Doing nothing"),null)}).filter(function(l){return!!l})},FC=function(n,a,l,i){var s=qC(a,Array.isArray(n)?n:[n]);Is[l]||(Is[l]=new WeakMap);var u=Is[l],f=[],h=new Set,p=new Set(s),m=function(b){!b||h.has(b)||(h.add(b),m(b.parentNode))};s.forEach(m);var v=function(b){!b||p.has(b)||Array.prototype.forEach.call(b.children,function(w){if(h.has(w))v(w);else try{var S=w.getAttribute(i),C=S!==null&&S!=="false",_=(Bl.get(w)||0)+1,j=(u.get(w)||0)+1;Bl.set(w,_),u.set(w,j),f.push(w),_===1&&C&&Zs.set(w,!0),j===1&&w.setAttribute(l,"true"),C||w.setAttribute(i,"true")}catch(N){console.error("aria-hidden: cannot operate on ",w,N)}})};return v(a),h.clear(),pd++,function(){f.forEach(function(b){var w=Bl.get(b)-1,S=u.get(b)-1;Bl.set(b,w),u.set(b,S),w||(Zs.has(b)||b.removeAttribute(i),Zs.delete(b)),S||b.removeAttribute(l)}),pd--,pd||(Bl=new WeakMap,Bl=new WeakMap,Zs=new WeakMap,Is={})}},$0=function(n,a,l){l===void 0&&(l="data-aria-hidden");var i=Array.from(Array.isArray(n)?n:[n]),s=YC(n);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),FC(i,s,l,"aria-hidden")):function(){return null}},Du="Dialog",[V0,ET]=Au(Du),[KC,Hn]=V0(Du),Y0=n=>{const{__scopeDialog:a,children:l,open:i,defaultOpen:s,onOpenChange:u,modal:f=!0}=n,h=y.useRef(null),p=y.useRef(null),[m,v]=sh({prop:i,defaultProp:s??!1,onChange:u,caller:Du});return g.jsx(KC,{scope:a,triggerRef:h,contentRef:p,contentId:Wn(),titleId:Wn(),descriptionId:Wn(),open:m,onOpenChange:v,onOpenToggle:y.useCallback(()=>v(b=>!b),[v]),modal:f,children:l})};Y0.displayName=Du;var q0="DialogTrigger",GC=y.forwardRef((n,a)=>{const{__scopeDialog:l,...i}=n,s=Hn(q0,l),u=vn(a,s.triggerRef);return g.jsx(pt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":ph(s.open),...i,ref:u,onClick:nn(n.onClick,s.onOpenToggle)})});GC.displayName=q0;var hh="DialogPortal",[XC,F0]=V0(hh,{forceMount:void 0}),K0=n=>{const{__scopeDialog:a,forceMount:l,children:i,container:s}=n,u=Hn(hh,a);return g.jsx(XC,{scope:a,forceMount:l,children:y.Children.map(i,f=>g.jsx(ei,{present:l||u.open,children:g.jsx(fh,{asChild:!0,container:s,children:f})}))})};K0.displayName=hh;var gu="DialogOverlay",G0=y.forwardRef((n,a)=>{const l=F0(gu,n.__scopeDialog),{forceMount:i=l.forceMount,...s}=n,u=Hn(gu,n.__scopeDialog);return u.modal?g.jsx(ei,{present:i||u.open,children:g.jsx(ZC,{...s,ref:a})}):null});G0.displayName=gu;var QC=Tu("DialogOverlay.RemoveScroll"),ZC=y.forwardRef((n,a)=>{const{__scopeDialog:l,...i}=n,s=Hn(gu,l);return g.jsx(dh,{as:QC,allowPinchZoom:!0,shards:[s.contentRef],children:g.jsx(pt.div,{"data-state":ph(s.open),...i,ref:a,style:{pointerEvents:"auto",...i.style}})})}),Fr="DialogContent",X0=y.forwardRef((n,a)=>{const l=F0(Fr,n.__scopeDialog),{forceMount:i=l.forceMount,...s}=n,u=Hn(Fr,n.__scopeDialog);return g.jsx(ei,{present:i||u.open,children:u.modal?g.jsx(IC,{...s,ref:a}):g.jsx(JC,{...s,ref:a})})});X0.displayName=Fr;var IC=y.forwardRef((n,a)=>{const l=Hn(Fr,n.__scopeDialog),i=y.useRef(null),s=vn(a,l.contentRef,i);return y.useEffect(()=>{const u=i.current;if(u)return $0(u)},[]),g.jsx(Q0,{...n,ref:s,trapFocus:l.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:nn(n.onCloseAutoFocus,u=>{u.preventDefault(),l.triggerRef.current?.focus()}),onPointerDownOutside:nn(n.onPointerDownOutside,u=>{const f=u.detail.originalEvent,h=f.button===0&&f.ctrlKey===!0;(f.button===2||h)&&u.preventDefault()}),onFocusOutside:nn(n.onFocusOutside,u=>u.preventDefault())})}),JC=y.forwardRef((n,a)=>{const l=Hn(Fr,n.__scopeDialog),i=y.useRef(!1),s=y.useRef(!1);return g.jsx(Q0,{...n,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{n.onCloseAutoFocus?.(u),u.defaultPrevented||(i.current||l.triggerRef.current?.focus(),u.preventDefault()),i.current=!1,s.current=!1},onInteractOutside:u=>{n.onInteractOutside?.(u),u.defaultPrevented||(i.current=!0,u.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const f=u.target;l.triggerRef.current?.contains(f)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&s.current&&u.preventDefault()}})}),Q0=y.forwardRef((n,a)=>{const{__scopeDialog:l,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:u,...f}=n,h=Hn(Fr,l),p=y.useRef(null),m=vn(a,p);return M0(),g.jsxs(g.Fragment,{children:[g.jsx(ch,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:u,children:g.jsx(uh,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":ph(h.open),...f,ref:m,onDismiss:()=>h.onOpenChange(!1)})}),g.jsxs(g.Fragment,{children:[g.jsx(WC,{titleId:h.titleId}),g.jsx(tN,{contentRef:p,descriptionId:h.descriptionId})]})]})}),mh="DialogTitle",Z0=y.forwardRef((n,a)=>{const{__scopeDialog:l,...i}=n,s=Hn(mh,l);return g.jsx(pt.h2,{id:s.titleId,...i,ref:a})});Z0.displayName=mh;var I0="DialogDescription",J0=y.forwardRef((n,a)=>{const{__scopeDialog:l,...i}=n,s=Hn(I0,l);return g.jsx(pt.p,{id:s.descriptionId,...i,ref:a})});J0.displayName=I0;var W0="DialogClose",eb=y.forwardRef((n,a)=>{const{__scopeDialog:l,...i}=n,s=Hn(W0,l);return g.jsx(pt.button,{type:"button",...i,ref:a,onClick:nn(n.onClick,()=>s.onOpenChange(!1))})});eb.displayName=W0;function ph(n){return n?"open":"closed"}var tb="DialogTitleWarning",[_T,nb]=R2(tb,{contentName:Fr,titleName:mh,docsSlug:"dialog"}),WC=({titleId:n})=>{const a=nb(tb),l=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users.
107
+ `)},qC=0,Bl=[];function FC(n){var a=y.useRef([]),l=y.useRef([0,0]),i=y.useRef(),s=y.useState(qC++)[0],c=y.useState(P0)[0],f=y.useRef(n);y.useEffect(function(){f.current=n},[n]),y.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(s));var E=fC([n.lockRef.current],(n.shards||[]).map(by),!0).filter(Boolean);return E.forEach(function(j){return j.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),E.forEach(function(j){return j.classList.remove("allow-interactivity-".concat(s))})}}},[n.inert,n.lockRef.current,n.shards]);var h=y.useCallback(function(E,j){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!f.current.allowPinchZoom;var R=Qs(E),L=l.current,k="deltaX"in E?E.deltaX:L[0]-R[0],H="deltaY"in E?E.deltaY:L[1]-R[1],M,N=E.target,B=Math.abs(k)>Math.abs(H)?"h":"v";if("touches"in E&&B==="h"&&N.type==="range")return!1;var J=vy(B,N);if(!J)return!0;if(J?M=B:(M=B==="v"?"h":"v",J=vy(B,N)),!J)return!1;if(!i.current&&"changedTouches"in E&&(k||H)&&(i.current=M),!M)return!0;var te=i.current||M;return BC(te,j,E,te==="h"?k:H)},[]),p=y.useCallback(function(E){var j=E;if(!(!Bl.length||Bl[Bl.length-1]!==c)){var R="deltaY"in j?yy(j):Qs(j),L=a.current.filter(function(M){return M.name===j.type&&(M.target===j.target||j.target===M.shadowParent)&&$C(M.delta,R)})[0];if(L&&L.should){j.cancelable&&j.preventDefault();return}if(!L){var k=(f.current.shards||[]).map(by).filter(Boolean).filter(function(M){return M.contains(j.target)}),H=k.length>0?h(j,k[0]):!f.current.noIsolation;H&&j.cancelable&&j.preventDefault()}}},[]),m=y.useCallback(function(E,j,R,L){var k={name:E,delta:j,target:R,should:L,shadowParent:YC(R)};a.current.push(k),setTimeout(function(){a.current=a.current.filter(function(H){return H!==k})},1)},[]),v=y.useCallback(function(E){l.current=Qs(E),i.current=void 0},[]),b=y.useCallback(function(E){m(E.type,yy(E),E.target,h(E,n.lockRef.current))},[]),w=y.useCallback(function(E){m(E.type,Qs(E),E.target,h(E,n.lockRef.current))},[]);y.useEffect(function(){return Bl.push(c),n.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:w}),document.addEventListener("wheel",p,Hl),document.addEventListener("touchmove",p,Hl),document.addEventListener("touchstart",v,Hl),function(){Bl=Bl.filter(function(E){return E!==c}),document.removeEventListener("wheel",p,Hl),document.removeEventListener("touchmove",p,Hl),document.removeEventListener("touchstart",v,Hl)}},[]);var S=n.removeScrollBar,C=n.inert;return y.createElement(y.Fragment,null,C?y.createElement(c,{styles:VC(s)}):null,S?y.createElement(DC,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function YC(n){for(var a=null;n!==null;)n instanceof ShadowRoot&&(a=n.host,n=n.host),n=n.parentNode;return a}const GC=xC(U0,FC);var hh=y.forwardRef(function(n,a){return y.createElement(Mc,Qn({},n,{ref:a,sideCar:GC}))});hh.classNames=Mc.classNames;var KC=function(n){if(typeof document>"u")return null;var a=Array.isArray(n)?n[0]:n;return a.ownerDocument.body},$l=new WeakMap,Is=new WeakMap,Zs={},pd=0,V0=function(n){return n&&(n.host||V0(n.parentNode))},XC=function(n,a){return a.map(function(l){if(n.contains(l))return l;var i=V0(l);return i&&n.contains(i)?i:(console.error("aria-hidden",l,"in not contained inside",n,". Doing nothing"),null)}).filter(function(l){return!!l})},QC=function(n,a,l,i){var s=XC(a,Array.isArray(n)?n:[n]);Zs[l]||(Zs[l]=new WeakMap);var c=Zs[l],f=[],h=new Set,p=new Set(s),m=function(b){!b||h.has(b)||(h.add(b),m(b.parentNode))};s.forEach(m);var v=function(b){!b||p.has(b)||Array.prototype.forEach.call(b.children,function(w){if(h.has(w))v(w);else try{var S=w.getAttribute(i),C=S!==null&&S!=="false",E=($l.get(w)||0)+1,j=(c.get(w)||0)+1;$l.set(w,E),c.set(w,j),f.push(w),E===1&&C&&Is.set(w,!0),j===1&&w.setAttribute(l,"true"),C||w.setAttribute(i,"true")}catch(R){console.error("aria-hidden: cannot operate on ",w,R)}})};return v(a),h.clear(),pd++,function(){f.forEach(function(b){var w=$l.get(b)-1,S=c.get(b)-1;$l.set(b,w),c.set(b,S),w||(Is.has(b)||b.removeAttribute(i),Is.delete(b)),S||b.removeAttribute(l)}),pd--,pd||($l=new WeakMap,$l=new WeakMap,Is=new WeakMap,Zs={})}},q0=function(n,a,l){l===void 0&&(l="data-aria-hidden");var i=Array.from(Array.isArray(n)?n:[n]),s=KC(n);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),QC(i,s,l,"aria-hidden")):function(){return null}},Dc="Dialog",[F0,zT]=Ac(Dc),[IC,Hn]=F0(Dc),Y0=n=>{const{__scopeDialog:a,children:l,open:i,defaultOpen:s,onOpenChange:c,modal:f=!0}=n,h=y.useRef(null),p=y.useRef(null),[m,v]=ch({prop:i,defaultProp:s??!1,onChange:c,caller:Dc});return g.jsx(IC,{scope:a,triggerRef:h,contentRef:p,contentId:Wn(),titleId:Wn(),descriptionId:Wn(),open:m,onOpenChange:v,onOpenToggle:y.useCallback(()=>v(b=>!b),[v]),modal:f,children:l})};Y0.displayName=Dc;var G0="DialogTrigger",ZC=y.forwardRef((n,a)=>{const{__scopeDialog:l,...i}=n,s=Hn(G0,l),c=vn(a,s.triggerRef);return g.jsx(pt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":gh(s.open),...i,ref:c,onClick:nn(n.onClick,s.onOpenToggle)})});ZC.displayName=G0;var mh="DialogPortal",[JC,K0]=F0(mh,{forceMount:void 0}),X0=n=>{const{__scopeDialog:a,forceMount:l,children:i,container:s}=n,c=Hn(mh,a);return g.jsx(JC,{scope:a,forceMount:l,children:y.Children.map(i,f=>g.jsx(ei,{present:l||c.open,children:g.jsx(dh,{asChild:!0,container:s,children:f})}))})};X0.displayName=mh;var gc="DialogOverlay",Q0=y.forwardRef((n,a)=>{const l=K0(gc,n.__scopeDialog),{forceMount:i=l.forceMount,...s}=n,c=Hn(gc,n.__scopeDialog);return c.modal?g.jsx(ei,{present:i||c.open,children:g.jsx(eN,{...s,ref:a})}):null});Q0.displayName=gc;var WC=Tc("DialogOverlay.RemoveScroll"),eN=y.forwardRef((n,a)=>{const{__scopeDialog:l,...i}=n,s=Hn(gc,l);return g.jsx(hh,{as:WC,allowPinchZoom:!0,shards:[s.contentRef],children:g.jsx(pt.div,{"data-state":gh(s.open),...i,ref:a,style:{pointerEvents:"auto",...i.style}})})}),Kr="DialogContent",I0=y.forwardRef((n,a)=>{const l=K0(Kr,n.__scopeDialog),{forceMount:i=l.forceMount,...s}=n,c=Hn(Kr,n.__scopeDialog);return g.jsx(ei,{present:i||c.open,children:c.modal?g.jsx(tN,{...s,ref:a}):g.jsx(nN,{...s,ref:a})})});I0.displayName=Kr;var tN=y.forwardRef((n,a)=>{const l=Hn(Kr,n.__scopeDialog),i=y.useRef(null),s=vn(a,l.contentRef,i);return y.useEffect(()=>{const c=i.current;if(c)return q0(c)},[]),g.jsx(Z0,{...n,ref:s,trapFocus:l.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:nn(n.onCloseAutoFocus,c=>{c.preventDefault(),l.triggerRef.current?.focus()}),onPointerDownOutside:nn(n.onPointerDownOutside,c=>{const f=c.detail.originalEvent,h=f.button===0&&f.ctrlKey===!0;(f.button===2||h)&&c.preventDefault()}),onFocusOutside:nn(n.onFocusOutside,c=>c.preventDefault())})}),nN=y.forwardRef((n,a)=>{const l=Hn(Kr,n.__scopeDialog),i=y.useRef(!1),s=y.useRef(!1);return g.jsx(Z0,{...n,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{n.onCloseAutoFocus?.(c),c.defaultPrevented||(i.current||l.triggerRef.current?.focus(),c.preventDefault()),i.current=!1,s.current=!1},onInteractOutside:c=>{n.onInteractOutside?.(c),c.defaultPrevented||(i.current=!0,c.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const f=c.target;l.triggerRef.current?.contains(f)&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&s.current&&c.preventDefault()}})}),Z0=y.forwardRef((n,a)=>{const{__scopeDialog:l,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:c,...f}=n,h=Hn(Kr,l),p=y.useRef(null),m=vn(a,p);return L0(),g.jsxs(g.Fragment,{children:[g.jsx(fh,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:c,children:g.jsx(uh,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":gh(h.open),...f,ref:m,onDismiss:()=>h.onOpenChange(!1)})}),g.jsxs(g.Fragment,{children:[g.jsx(aN,{titleId:h.titleId}),g.jsx(lN,{contentRef:p,descriptionId:h.descriptionId})]})]})}),ph="DialogTitle",J0=y.forwardRef((n,a)=>{const{__scopeDialog:l,...i}=n,s=Hn(ph,l);return g.jsx(pt.h2,{id:s.titleId,...i,ref:a})});J0.displayName=ph;var W0="DialogDescription",eb=y.forwardRef((n,a)=>{const{__scopeDialog:l,...i}=n,s=Hn(W0,l);return g.jsx(pt.p,{id:s.descriptionId,...i,ref:a})});eb.displayName=W0;var tb="DialogClose",nb=y.forwardRef((n,a)=>{const{__scopeDialog:l,...i}=n,s=Hn(tb,l);return g.jsx(pt.button,{type:"button",...i,ref:a,onClick:nn(n.onClick,()=>s.onOpenChange(!1))})});nb.displayName=tb;function gh(n){return n?"open":"closed"}var ab="DialogTitleWarning",[UT,rb]=T2(ab,{contentName:Kr,titleName:ph,docsSlug:"dialog"}),aN=({titleId:n})=>{const a=rb(ab),l=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users.
108
108
 
109
109
  If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component.
110
110
 
111
- For more information, see https://radix-ui.com/primitives/docs/components/${a.docsSlug}`;return y.useEffect(()=>{n&&(document.getElementById(n)||console.error(l))},[l,n]),null},eN="DialogDescriptionWarning",tN=({contentRef:n,descriptionId:a})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${nb(eN).contentName}}.`;return y.useEffect(()=>{const s=n.current?.getAttribute("aria-describedby");a&&s&&(document.getElementById(a)||console.warn(i))},[i,n,a]),null},ab=Y0,rb=K0,gh=G0,vh=X0,lb=Z0,ib=J0,nN=eb;/**
111
+ For more information, see https://radix-ui.com/primitives/docs/components/${a.docsSlug}`;return y.useEffect(()=>{n&&(document.getElementById(n)||console.error(l))},[l,n]),null},rN="DialogDescriptionWarning",lN=({contentRef:n,descriptionId:a})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${rb(rN).contentName}}.`;return y.useEffect(()=>{const s=n.current?.getAttribute("aria-describedby");a&&s&&(document.getElementById(a)||console.warn(i))},[i,n,a]),null},lb=Y0,ib=X0,vh=Q0,yh=I0,ob=J0,sb=eb,iN=nb;/**
112
112
  * @license lucide-react v0.525.0 - ISC
113
113
  *
114
114
  * This source code is licensed under the ISC license.
115
115
  * See the LICENSE file in the root directory of this source tree.
116
- */const aN=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),rN=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,l,i)=>i?i.toUpperCase():l.toLowerCase()),yy=n=>{const a=rN(n);return a.charAt(0).toUpperCase()+a.slice(1)},ob=(...n)=>n.filter((a,l,i)=>!!a&&a.trim()!==""&&i.indexOf(a)===l).join(" ").trim(),lN=n=>{for(const a in n)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
116
+ */const oN=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),sN=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,l,i)=>i?i.toUpperCase():l.toLowerCase()),xy=n=>{const a=sN(n);return a.charAt(0).toUpperCase()+a.slice(1)},cb=(...n)=>n.filter((a,l,i)=>!!a&&a.trim()!==""&&i.indexOf(a)===l).join(" ").trim(),cN=n=>{for(const a in n)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
117
117
  * @license lucide-react v0.525.0 - ISC
118
118
  *
119
119
  * This source code is licensed under the ISC license.
120
120
  * See the LICENSE file in the root directory of this source tree.
121
- */var iN={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"};/**
121
+ */var uN={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"};/**
122
122
  * @license lucide-react v0.525.0 - ISC
123
123
  *
124
124
  * This source code is licensed under the ISC license.
125
125
  * See the LICENSE file in the root directory of this source tree.
126
- */const oN=y.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:l=2,absoluteStrokeWidth:i,className:s="",children:u,iconNode:f,...h},p)=>y.createElement("svg",{ref:p,...iN,width:a,height:a,stroke:n,strokeWidth:i?Number(l)*24/Number(a):l,className:ob("lucide",s),...!u&&!lN(h)&&{"aria-hidden":"true"},...h},[...f.map(([m,v])=>y.createElement(m,v)),...Array.isArray(u)?u:[u]]));/**
126
+ */const fN=y.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:l=2,absoluteStrokeWidth:i,className:s="",children:c,iconNode:f,...h},p)=>y.createElement("svg",{ref:p,...uN,width:a,height:a,stroke:n,strokeWidth:i?Number(l)*24/Number(a):l,className:cb("lucide",s),...!c&&!cN(h)&&{"aria-hidden":"true"},...h},[...f.map(([m,v])=>y.createElement(m,v)),...Array.isArray(c)?c:[c]]));/**
127
127
  * @license lucide-react v0.525.0 - ISC
128
128
  *
129
129
  * This source code is licensed under the ISC license.
130
130
  * See the LICENSE file in the root directory of this source tree.
131
- */const Ut=(n,a)=>{const l=y.forwardRef(({className:i,...s},u)=>y.createElement(oN,{ref:u,iconNode:a,className:ob(`lucide-${aN(yy(n))}`,`lucide-${n}`,i),...s}));return l.displayName=yy(n),l};/**
131
+ */const xt=(n,a)=>{const l=y.forwardRef(({className:i,...s},c)=>y.createElement(fN,{ref:c,iconNode:a,className:cb(`lucide-${oN(xy(n))}`,`lucide-${n}`,i),...s}));return l.displayName=xy(n),l};/**
132
132
  * @license lucide-react v0.525.0 - ISC
133
133
  *
134
134
  * This source code is licensed under the ISC license.
135
135
  * See the LICENSE file in the root directory of this source tree.
136
- */const sN=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],sb=Ut("check",sN);/**
136
+ */const dN=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],hN=xt("arrow-left",dN);/**
137
137
  * @license lucide-react v0.525.0 - ISC
138
138
  *
139
139
  * This source code is licensed under the ISC license.
140
140
  * See the LICENSE file in the root directory of this source tree.
141
- */const uN=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],ub=Ut("chevrons-up-down",uN);/**
141
+ */const mN=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ub=xt("check",mN);/**
142
142
  * @license lucide-react v0.525.0 - ISC
143
143
  *
144
144
  * This source code is licensed under the ISC license.
145
145
  * See the LICENSE file in the root directory of this source tree.
146
- */const cN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],fN=Ut("circle-alert",cN);/**
146
+ */const pN=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],fb=xt("chevrons-up-down",pN);/**
147
147
  * @license lucide-react v0.525.0 - ISC
148
148
  *
149
149
  * This source code is licensed under the ISC license.
150
150
  * See the LICENSE file in the root directory of this source tree.
151
- */const dN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]],hN=Ut("circle-arrow-up",dN);/**
151
+ */const gN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],vN=xt("circle-alert",gN);/**
152
152
  * @license lucide-react v0.525.0 - ISC
153
153
  *
154
154
  * This source code is licensed under the ISC license.
155
155
  * See the LICENSE file in the root directory of this source tree.
156
- */const mN=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],pN=Ut("circle-check-big",mN);/**
156
+ */const yN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]],bN=xt("circle-arrow-up",yN);/**
157
157
  * @license lucide-react v0.525.0 - ISC
158
158
  *
159
159
  * This source code is licensed under the ISC license.
160
160
  * See the LICENSE file in the root directory of this source tree.
161
- */const gN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],cb=Ut("circle-x",gN);/**
161
+ */const xN=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],wN=xt("circle-check-big",xN);/**
162
162
  * @license lucide-react v0.525.0 - ISC
163
163
  *
164
164
  * This source code is licensed under the ISC license.
165
165
  * See the LICENSE file in the root directory of this source tree.
166
- */const vN=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],yN=Ut("eye-off",vN);/**
166
+ */const SN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],db=xt("circle-x",SN);/**
167
167
  * @license lucide-react v0.525.0 - ISC
168
168
  *
169
169
  * This source code is licensed under the ISC license.
170
170
  * See the LICENSE file in the root directory of this source tree.
171
- */const bN=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],xN=Ut("eye",bN);/**
171
+ */const _N=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],EN=xt("download",_N);/**
172
172
  * @license lucide-react v0.525.0 - ISC
173
173
  *
174
174
  * This source code is licensed under the ISC license.
175
175
  * See the LICENSE file in the root directory of this source tree.
176
- */const wN=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],SN=Ut("file-json",wN);/**
176
+ */const CN=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],NN=xt("eye-off",CN);/**
177
177
  * @license lucide-react v0.525.0 - ISC
178
178
  *
179
179
  * This source code is licensed under the ISC license.
180
180
  * See the LICENSE file in the root directory of this source tree.
181
- */const EN=[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]],_N=Ut("languages",EN);/**
181
+ */const RN=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],jN=xt("eye",RN);/**
182
182
  * @license lucide-react v0.525.0 - ISC
183
183
  *
184
184
  * This source code is licensed under the ISC license.
185
185
  * See the LICENSE file in the root directory of this source tree.
186
- */const CN=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],vu=Ut("pencil",CN);/**
186
+ */const ON=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],AN=xt("file-json",ON);/**
187
187
  * @license lucide-react v0.525.0 - ISC
188
188
  *
189
189
  * This source code is licensed under the ISC license.
190
190
  * See the LICENSE file in the root directory of this source tree.
191
- */const NN=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Hd=Ut("plus",NN);/**
191
+ */const TN=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],MN=xt("file-text",TN);/**
192
192
  * @license lucide-react v0.525.0 - ISC
193
193
  *
194
194
  * This source code is licensed under the ISC license.
195
195
  * See the LICENSE file in the root directory of this source tree.
196
- */const RN=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],fb=Ut("refresh-cw",RN);/**
196
+ */const DN=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],gd=xt("file",DN);/**
197
197
  * @license lucide-react v0.525.0 - ISC
198
198
  *
199
199
  * This source code is licensed under the ISC license.
200
200
  * See the LICENSE file in the root directory of this source tree.
201
- */const jN=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],db=Ut("save",jN);/**
201
+ */const LN=[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]],kN=xt("languages",LN);/**
202
202
  * @license lucide-react v0.525.0 - ISC
203
203
  *
204
204
  * This source code is licensed under the ISC license.
205
205
  * See the LICENSE file in the root directory of this source tree.
206
- */const ON=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],hb=Ut("search",ON);/**
206
+ */const zN=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],UN=xt("layers",zN);/**
207
207
  * @license lucide-react v0.525.0 - ISC
208
208
  *
209
209
  * This source code is licensed under the ISC license.
210
210
  * See the LICENSE file in the root directory of this source tree.
211
- */const AN=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],TN=Ut("settings",AN);/**
211
+ */const PN=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],vc=xt("pencil",PN);/**
212
212
  * @license lucide-react v0.525.0 - ISC
213
213
  *
214
214
  * This source code is licensed under the ISC license.
215
215
  * See the LICENSE file in the root directory of this source tree.
216
- */const MN=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],Kr=Ut("trash-2",MN);/**
216
+ */const HN=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Bd=xt("plus",HN);/**
217
217
  * @license lucide-react v0.525.0 - ISC
218
218
  *
219
219
  * This source code is licensed under the ISC license.
220
220
  * See the LICENSE file in the root directory of this source tree.
221
- */const DN=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Xl=Ut("x",DN);function mb(n){var a,l,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var s=n.length;for(a=0;a<s;a++)n[a]&&(l=mb(n[a]))&&(i&&(i+=" "),i+=l)}else for(l in n)n[l]&&(i&&(i+=" "),i+=l);return i}function pb(){for(var n,a,l=0,i="",s=arguments.length;l<s;l++)(n=arguments[l])&&(a=mb(n))&&(i&&(i+=" "),i+=a);return i}const yh="-",LN=n=>{const a=zN(n),{conflictingClassGroups:l,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:f=>{const h=f.split(yh);return h[0]===""&&h.length!==1&&h.shift(),gb(h,a)||kN(f)},getConflictingClassGroupIds:(f,h)=>{const p=l[f]||[];return h&&i[f]?[...p,...i[f]]:p}}},gb=(n,a)=>{if(n.length===0)return a.classGroupId;const l=n[0],i=a.nextPart.get(l),s=i?gb(n.slice(1),i):void 0;if(s)return s;if(a.validators.length===0)return;const u=n.join(yh);return a.validators.find(({validator:f})=>f(u))?.classGroupId},by=/^\[(.+)\]$/,kN=n=>{if(by.test(n)){const a=by.exec(n)[1],l=a?.substring(0,a.indexOf(":"));if(l)return"arbitrary.."+l}},zN=n=>{const{theme:a,classGroups:l}=n,i={nextPart:new Map,validators:[]};for(const s in l)Bd(l[s],i,s,a);return i},Bd=(n,a,l,i)=>{n.forEach(s=>{if(typeof s=="string"){const u=s===""?a:xy(a,s);u.classGroupId=l;return}if(typeof s=="function"){if(UN(s)){Bd(s(i),a,l,i);return}a.validators.push({validator:s,classGroupId:l});return}Object.entries(s).forEach(([u,f])=>{Bd(f,xy(a,u),l,i)})})},xy=(n,a)=>{let l=n;return a.split(yh).forEach(i=>{l.nextPart.has(i)||l.nextPart.set(i,{nextPart:new Map,validators:[]}),l=l.nextPart.get(i)}),l},UN=n=>n.isThemeGetter,PN=n=>{if(n<1)return{get:()=>{},set:()=>{}};let a=0,l=new Map,i=new Map;const s=(u,f)=>{l.set(u,f),a++,a>n&&(a=0,i=l,l=new Map)};return{get(u){let f=l.get(u);if(f!==void 0)return f;if((f=i.get(u))!==void 0)return s(u,f),f},set(u,f){l.has(u)?l.set(u,f):s(u,f)}}},$d="!",Vd=":",HN=Vd.length,BN=n=>{const{prefix:a,experimentalParseClassName:l}=n;let i=s=>{const u=[];let f=0,h=0,p=0,m;for(let C=0;C<s.length;C++){let _=s[C];if(f===0&&h===0){if(_===Vd){u.push(s.slice(p,C)),p=C+HN;continue}if(_==="/"){m=C;continue}}_==="["?f++:_==="]"?f--:_==="("?h++:_===")"&&h--}const v=u.length===0?s:s.substring(p),b=$N(v),w=b!==v,S=m&&m>p?m-p:void 0;return{modifiers:u,hasImportantModifier:w,baseClassName:b,maybePostfixModifierPosition:S}};if(a){const s=a+Vd,u=i;i=f=>f.startsWith(s)?u(f.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:f,maybePostfixModifierPosition:void 0}}if(l){const s=i;i=u=>l({className:u,parseClassName:s})}return i},$N=n=>n.endsWith($d)?n.substring(0,n.length-1):n.startsWith($d)?n.substring(1):n,VN=n=>{const a=Object.fromEntries(n.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const s=[];let u=[];return i.forEach(f=>{f[0]==="["||a[f]?(s.push(...u.sort(),f),u=[]):u.push(f)}),s.push(...u.sort()),s}},YN=n=>({cache:PN(n.cacheSize),parseClassName:BN(n),sortModifiers:VN(n),...LN(n)}),qN=/\s+/,FN=(n,a)=>{const{parseClassName:l,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:u}=a,f=[],h=n.trim().split(qN);let p="";for(let m=h.length-1;m>=0;m-=1){const v=h[m],{isExternal:b,modifiers:w,hasImportantModifier:S,baseClassName:C,maybePostfixModifierPosition:_}=l(v);if(b){p=v+(p.length>0?" "+p:p);continue}let j=!!_,N=i(j?C.substring(0,_):C);if(!N){if(!j){p=v+(p.length>0?" "+p:p);continue}if(N=i(C),!N){p=v+(p.length>0?" "+p:p);continue}j=!1}const z=u(w).join(":"),k=S?z+$d:z,H=k+N;if(f.includes(H))continue;f.push(H);const D=s(N,j);for(let R=0;R<D.length;++R){const B=D[R];f.push(k+B)}p=v+(p.length>0?" "+p:p)}return p};function KN(){let n=0,a,l,i="";for(;n<arguments.length;)(a=arguments[n++])&&(l=vb(a))&&(i&&(i+=" "),i+=l);return i}const vb=n=>{if(typeof n=="string")return n;let a,l="";for(let i=0;i<n.length;i++)n[i]&&(a=vb(n[i]))&&(l&&(l+=" "),l+=a);return l};function GN(n,...a){let l,i,s,u=f;function f(p){const m=a.reduce((v,b)=>b(v),n());return l=YN(m),i=l.cache.get,s=l.cache.set,u=h,h(p)}function h(p){const m=i(p);if(m)return m;const v=FN(p,l);return s(p,v),v}return function(){return u(KN.apply(null,arguments))}}const Dt=n=>{const a=l=>l[n]||[];return a.isThemeGetter=!0,a},yb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,bb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,XN=/^\d+\/\d+$/,QN=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ZN=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,IN=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,JN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,WN=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$l=n=>XN.test(n),Ye=n=>!!n&&!Number.isNaN(Number(n)),er=n=>!!n&&Number.isInteger(Number(n)),gd=n=>n.endsWith("%")&&Ye(n.slice(0,-1)),Sa=n=>QN.test(n),eR=()=>!0,tR=n=>ZN.test(n)&&!IN.test(n),xb=()=>!1,nR=n=>JN.test(n),aR=n=>WN.test(n),rR=n=>!xe(n)&&!we(n),lR=n=>ti(n,Eb,xb),xe=n=>yb.test(n),Hr=n=>ti(n,_b,tR),vd=n=>ti(n,cR,Ye),wy=n=>ti(n,wb,xb),iR=n=>ti(n,Sb,aR),Js=n=>ti(n,Cb,nR),we=n=>bb.test(n),oo=n=>ni(n,_b),oR=n=>ni(n,fR),Sy=n=>ni(n,wb),sR=n=>ni(n,Eb),uR=n=>ni(n,Sb),Ws=n=>ni(n,Cb,!0),ti=(n,a,l)=>{const i=yb.exec(n);return i?i[1]?a(i[1]):l(i[2]):!1},ni=(n,a,l=!1)=>{const i=bb.exec(n);return i?i[1]?a(i[1]):l:!1},wb=n=>n==="position"||n==="percentage",Sb=n=>n==="image"||n==="url",Eb=n=>n==="length"||n==="size"||n==="bg-size",_b=n=>n==="length",cR=n=>n==="number",fR=n=>n==="family-name",Cb=n=>n==="shadow",dR=()=>{const n=Dt("color"),a=Dt("font"),l=Dt("text"),i=Dt("font-weight"),s=Dt("tracking"),u=Dt("leading"),f=Dt("breakpoint"),h=Dt("container"),p=Dt("spacing"),m=Dt("radius"),v=Dt("shadow"),b=Dt("inset-shadow"),w=Dt("text-shadow"),S=Dt("drop-shadow"),C=Dt("blur"),_=Dt("perspective"),j=Dt("aspect"),N=Dt("ease"),z=Dt("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],D=()=>[...H(),we,xe],R=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],Z=()=>[we,xe,p],ne=()=>[$l,"full","auto",...Z()],oe=()=>[er,"none","subgrid",we,xe],le=()=>["auto",{span:["full",er,we,xe]},er,we,xe],J=()=>[er,"auto",we,xe],te=()=>["auto","min","max","fr",we,xe],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ue=()=>["start","end","center","stretch","center-safe","end-safe"],A=()=>["auto",...Z()],Q=()=>[$l,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...Z()],V=()=>[n,we,xe],ve=()=>[...H(),Sy,wy,{position:[we,xe]}],O=()=>["no-repeat",{repeat:["","x","y","space","round"]}],F=()=>["auto","cover","contain",sR,lR,{size:[we,xe]}],U=()=>[gd,oo,Hr],K=()=>["","none","full",m,we,xe],ae=()=>["",Ye,oo,Hr],de=()=>["solid","dashed","dotted","double"],ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ye=()=>[Ye,gd,Sy,wy],Le=()=>["","none",C,we,xe],qe=()=>["none",Ye,we,xe],Je=()=>["none",Ye,we,xe],At=()=>[Ye,we,xe],Ie=()=>[$l,"full",...Z()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Sa],breakpoint:[Sa],color:[eR],container:[Sa],"drop-shadow":[Sa],ease:["in","out","in-out"],font:[rR],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Sa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Sa],shadow:[Sa],spacing:["px",Ye],text:[Sa],"text-shadow":[Sa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",$l,xe,we,j]}],container:["container"],columns:[{columns:[Ye,xe,we,h]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:D()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ne()}],"inset-x":[{"inset-x":ne()}],"inset-y":[{"inset-y":ne()}],start:[{start:ne()}],end:[{end:ne()}],top:[{top:ne()}],right:[{right:ne()}],bottom:[{bottom:ne()}],left:[{left:ne()}],visibility:["visible","invisible","collapse"],z:[{z:[er,"auto",we,xe]}],basis:[{basis:[$l,"full","auto",h,...Z()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ye,$l,"auto","initial","none",xe]}],grow:[{grow:["",Ye,we,xe]}],shrink:[{shrink:["",Ye,we,xe]}],order:[{order:[er,"first","last","none",we,xe]}],"grid-cols":[{"grid-cols":oe()}],"col-start-end":[{col:le()}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":oe()}],"row-start-end":[{row:le()}],"row-start":[{"row-start":J()}],"row-end":[{"row-end":J()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:Z()}],"gap-x":[{"gap-x":Z()}],"gap-y":[{"gap-y":Z()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...ue(),"normal"]}],"justify-self":[{"justify-self":["auto",...ue()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...ue(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ue(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...ue(),"baseline"]}],"place-self":[{"place-self":["auto",...ue()]}],p:[{p:Z()}],px:[{px:Z()}],py:[{py:Z()}],ps:[{ps:Z()}],pe:[{pe:Z()}],pt:[{pt:Z()}],pr:[{pr:Z()}],pb:[{pb:Z()}],pl:[{pl:Z()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":Z()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":Z()}],"space-y-reverse":["space-y-reverse"],size:[{size:Q()}],w:[{w:[h,"screen",...Q()]}],"min-w":[{"min-w":[h,"screen","none",...Q()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[f]},...Q()]}],h:[{h:["screen","lh",...Q()]}],"min-h":[{"min-h":["screen","lh","none",...Q()]}],"max-h":[{"max-h":["screen","lh",...Q()]}],"font-size":[{text:["base",l,oo,Hr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,we,vd]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",gd,xe]}],"font-family":[{font:[oR,xe,a]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,we,xe]}],"line-clamp":[{"line-clamp":[Ye,"none",we,vd]}],leading:[{leading:[u,...Z()]}],"list-image":[{"list-image":["none",we,xe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",we,xe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:V()}],"text-color":[{text:V()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ye,"from-font","auto",we,Hr]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[Ye,"auto",we,xe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we,xe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",we,xe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ve()}],"bg-repeat":[{bg:O()}],"bg-size":[{bg:F()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},er,we,xe],radial:["",we,xe],conic:[er,we,xe]},uR,iR]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:U()}],"gradient-via-pos":[{via:U()}],"gradient-to-pos":[{to:U()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],rounded:[{rounded:K()}],"rounded-s":[{"rounded-s":K()}],"rounded-e":[{"rounded-e":K()}],"rounded-t":[{"rounded-t":K()}],"rounded-r":[{"rounded-r":K()}],"rounded-b":[{"rounded-b":K()}],"rounded-l":[{"rounded-l":K()}],"rounded-ss":[{"rounded-ss":K()}],"rounded-se":[{"rounded-se":K()}],"rounded-ee":[{"rounded-ee":K()}],"rounded-es":[{"rounded-es":K()}],"rounded-tl":[{"rounded-tl":K()}],"rounded-tr":[{"rounded-tr":K()}],"rounded-br":[{"rounded-br":K()}],"rounded-bl":[{"rounded-bl":K()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...de(),"hidden","none"]}],"divide-style":[{divide:[...de(),"hidden","none"]}],"border-color":[{border:V()}],"border-color-x":[{"border-x":V()}],"border-color-y":[{"border-y":V()}],"border-color-s":[{"border-s":V()}],"border-color-e":[{"border-e":V()}],"border-color-t":[{"border-t":V()}],"border-color-r":[{"border-r":V()}],"border-color-b":[{"border-b":V()}],"border-color-l":[{"border-l":V()}],"divide-color":[{divide:V()}],"outline-style":[{outline:[...de(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ye,we,xe]}],"outline-w":[{outline:["",Ye,oo,Hr]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",v,Ws,Js]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",b,Ws,Js]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[Ye,Hr]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",w,Ws,Js]}],"text-shadow-color":[{"text-shadow":V()}],opacity:[{opacity:[Ye,we,xe]}],"mix-blend":[{"mix-blend":[...ge(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ge()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ye]}],"mask-image-linear-from-pos":[{"mask-linear-from":ye()}],"mask-image-linear-to-pos":[{"mask-linear-to":ye()}],"mask-image-linear-from-color":[{"mask-linear-from":V()}],"mask-image-linear-to-color":[{"mask-linear-to":V()}],"mask-image-t-from-pos":[{"mask-t-from":ye()}],"mask-image-t-to-pos":[{"mask-t-to":ye()}],"mask-image-t-from-color":[{"mask-t-from":V()}],"mask-image-t-to-color":[{"mask-t-to":V()}],"mask-image-r-from-pos":[{"mask-r-from":ye()}],"mask-image-r-to-pos":[{"mask-r-to":ye()}],"mask-image-r-from-color":[{"mask-r-from":V()}],"mask-image-r-to-color":[{"mask-r-to":V()}],"mask-image-b-from-pos":[{"mask-b-from":ye()}],"mask-image-b-to-pos":[{"mask-b-to":ye()}],"mask-image-b-from-color":[{"mask-b-from":V()}],"mask-image-b-to-color":[{"mask-b-to":V()}],"mask-image-l-from-pos":[{"mask-l-from":ye()}],"mask-image-l-to-pos":[{"mask-l-to":ye()}],"mask-image-l-from-color":[{"mask-l-from":V()}],"mask-image-l-to-color":[{"mask-l-to":V()}],"mask-image-x-from-pos":[{"mask-x-from":ye()}],"mask-image-x-to-pos":[{"mask-x-to":ye()}],"mask-image-x-from-color":[{"mask-x-from":V()}],"mask-image-x-to-color":[{"mask-x-to":V()}],"mask-image-y-from-pos":[{"mask-y-from":ye()}],"mask-image-y-to-pos":[{"mask-y-to":ye()}],"mask-image-y-from-color":[{"mask-y-from":V()}],"mask-image-y-to-color":[{"mask-y-to":V()}],"mask-image-radial":[{"mask-radial":[we,xe]}],"mask-image-radial-from-pos":[{"mask-radial-from":ye()}],"mask-image-radial-to-pos":[{"mask-radial-to":ye()}],"mask-image-radial-from-color":[{"mask-radial-from":V()}],"mask-image-radial-to-color":[{"mask-radial-to":V()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":H()}],"mask-image-conic-pos":[{"mask-conic":[Ye]}],"mask-image-conic-from-pos":[{"mask-conic-from":ye()}],"mask-image-conic-to-pos":[{"mask-conic-to":ye()}],"mask-image-conic-from-color":[{"mask-conic-from":V()}],"mask-image-conic-to-color":[{"mask-conic-to":V()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ve()}],"mask-repeat":[{mask:O()}],"mask-size":[{mask:F()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",we,xe]}],filter:[{filter:["","none",we,xe]}],blur:[{blur:Le()}],brightness:[{brightness:[Ye,we,xe]}],contrast:[{contrast:[Ye,we,xe]}],"drop-shadow":[{"drop-shadow":["","none",S,Ws,Js]}],"drop-shadow-color":[{"drop-shadow":V()}],grayscale:[{grayscale:["",Ye,we,xe]}],"hue-rotate":[{"hue-rotate":[Ye,we,xe]}],invert:[{invert:["",Ye,we,xe]}],saturate:[{saturate:[Ye,we,xe]}],sepia:[{sepia:["",Ye,we,xe]}],"backdrop-filter":[{"backdrop-filter":["","none",we,xe]}],"backdrop-blur":[{"backdrop-blur":Le()}],"backdrop-brightness":[{"backdrop-brightness":[Ye,we,xe]}],"backdrop-contrast":[{"backdrop-contrast":[Ye,we,xe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ye,we,xe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ye,we,xe]}],"backdrop-invert":[{"backdrop-invert":["",Ye,we,xe]}],"backdrop-opacity":[{"backdrop-opacity":[Ye,we,xe]}],"backdrop-saturate":[{"backdrop-saturate":[Ye,we,xe]}],"backdrop-sepia":[{"backdrop-sepia":["",Ye,we,xe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":Z()}],"border-spacing-x":[{"border-spacing-x":Z()}],"border-spacing-y":[{"border-spacing-y":Z()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",we,xe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ye,"initial",we,xe]}],ease:[{ease:["linear","initial",N,we,xe]}],delay:[{delay:[Ye,we,xe]}],animate:[{animate:["none",z,we,xe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,we,xe]}],"perspective-origin":[{"perspective-origin":D()}],rotate:[{rotate:qe()}],"rotate-x":[{"rotate-x":qe()}],"rotate-y":[{"rotate-y":qe()}],"rotate-z":[{"rotate-z":qe()}],scale:[{scale:Je()}],"scale-x":[{"scale-x":Je()}],"scale-y":[{"scale-y":Je()}],"scale-z":[{"scale-z":Je()}],"scale-3d":["scale-3d"],skew:[{skew:At()}],"skew-x":[{"skew-x":At()}],"skew-y":[{"skew-y":At()}],transform:[{transform:[we,xe,"","none","gpu","cpu"]}],"transform-origin":[{origin:D()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ie()}],"translate-x":[{"translate-x":Ie()}],"translate-y":[{"translate-y":Ie()}],"translate-z":[{"translate-z":Ie()}],"translate-none":["translate-none"],accent:[{accent:V()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:V()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",we,xe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Z()}],"scroll-mx":[{"scroll-mx":Z()}],"scroll-my":[{"scroll-my":Z()}],"scroll-ms":[{"scroll-ms":Z()}],"scroll-me":[{"scroll-me":Z()}],"scroll-mt":[{"scroll-mt":Z()}],"scroll-mr":[{"scroll-mr":Z()}],"scroll-mb":[{"scroll-mb":Z()}],"scroll-ml":[{"scroll-ml":Z()}],"scroll-p":[{"scroll-p":Z()}],"scroll-px":[{"scroll-px":Z()}],"scroll-py":[{"scroll-py":Z()}],"scroll-ps":[{"scroll-ps":Z()}],"scroll-pe":[{"scroll-pe":Z()}],"scroll-pt":[{"scroll-pt":Z()}],"scroll-pr":[{"scroll-pr":Z()}],"scroll-pb":[{"scroll-pb":Z()}],"scroll-pl":[{"scroll-pl":Z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",we,xe]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[Ye,oo,Hr,vd]}],stroke:[{stroke:["none",...V()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},hR=GN(dR);function dt(...n){return hR(pb(n))}const Gr=ab,mR=rb,Nb=y.forwardRef(({className:n,...a},l)=>g.jsx(gh,{ref:l,className:dt("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...a}));Nb.displayName=gh.displayName;const or=y.forwardRef(({className:n,children:a,...l},i)=>g.jsxs(mR,{children:[g.jsx(Nb,{}),g.jsxs(vh,{ref:i,className:dt("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-300 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg animate-scale-in",n),...l,children:[a,g.jsxs(nN,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground transition-all-ease hover:scale-110",children:[g.jsx(Xl,{className:"h-4 w-4"}),g.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));or.displayName=vh.displayName;const sr=({className:n,...a})=>g.jsx("div",{className:dt("flex flex-col space-y-1.5 text-center sm:text-left",n),...a});sr.displayName="DialogHeader";const Xr=({className:n,...a})=>g.jsx("div",{className:dt("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...a});Xr.displayName="DialogFooter";const ur=y.forwardRef(({className:n,...a},l)=>g.jsx(lb,{ref:l,className:dt("text-lg font-semibold leading-none tracking-tight",n),...a}));ur.displayName=lb.displayName;const Lu=y.forwardRef(({className:n,...a},l)=>g.jsx(ib,{ref:l,className:dt("text-sm text-muted-foreground",n),...a}));Lu.displayName=ib.displayName;const Ey=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,_y=pb,bh=(n,a)=>l=>{var i;if(a?.variants==null)return _y(n,l?.class,l?.className);const{variants:s,defaultVariants:u}=a,f=Object.keys(s).map(m=>{const v=l?.[m],b=u?.[m];if(v===null)return null;const w=Ey(v)||Ey(b);return s[m][w]}),h=l&&Object.entries(l).reduce((m,v)=>{let[b,w]=v;return w===void 0||(m[b]=w),m},{}),p=a==null||(i=a.compoundVariants)===null||i===void 0?void 0:i.reduce((m,v)=>{let{class:b,className:w,...S}=v;return Object.entries(S).every(C=>{let[_,j]=C;return Array.isArray(j)?j.includes({...u,...h}[_]):{...u,...h}[_]===j})?[...m,b,w]:m},[]);return _y(n,f,p,l?.class,l?.className)},pR=bh("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"border border-destructive/50 text-destructive hover:bg-destructive hover:text-destructive-foreground",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Ae=y.forwardRef(({className:n,variant:a,size:l,asChild:i=!1,...s},u)=>{const f=i?L2:"button";return g.jsx(f,{className:dt(pR({variant:a,size:l,className:n})),ref:u,...s})});Ae.displayName="Button";const ft=y.forwardRef(({className:n,type:a,...l},i)=>{const s=a==="number",[u,f]=y.useState(l.value?.toString()||"");y.useEffect(()=>{l.value!==void 0&&f(l.value.toString())},[l.value]);const h=b=>{const w=b.target.value;s?(w===""||/^\d+$/.test(w))&&(f(w),l.onChange&&w!==""&&l.onChange(b)):(f(w),l.onChange&&l.onChange(b))},p=b=>{if(s&&u===""){const w=l.placeholder||"1";if(f(w),l.onChange){const S={...b,target:{...b.target,value:w}};l.onChange(S)}}l.onBlur&&l.onBlur(b)},m=s?"text":a,v=s?u:l.value;return g.jsx("input",{...l,type:m,value:v,onChange:h,onBlur:p,className:dt("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n),ref:i})});ft.displayName="Input";var gR="Label",Rb=y.forwardRef((n,a)=>g.jsx(pt.label,{...n,ref:a,onMouseDown:l=>{l.target.closest("button, input, select, textarea")||(n.onMouseDown?.(l),!l.defaultPrevented&&l.detail>1&&l.preventDefault())}}));Rb.displayName=gR;var jb=Rb;const vR=bh("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ge=y.forwardRef(({className:n,...a},l)=>g.jsx(jb,{ref:l,className:dt(vR(),n),...a}));Ge.displayName=jb.displayName;function yR(n){const a=y.useRef({value:n,previous:n});return y.useMemo(()=>(a.current.value!==n&&(a.current.previous=a.current.value,a.current.value=n),a.current.previous),[n])}function Ob(n){const[a,l]=y.useState(void 0);return ir(()=>{if(n){l({width:n.offsetWidth,height:n.offsetHeight});const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const u=s[0];let f,h;if("borderBoxSize"in u){const p=u.borderBoxSize,m=Array.isArray(p)?p[0]:p;f=m.inlineSize,h=m.blockSize}else f=n.offsetWidth,h=n.offsetHeight;l({width:f,height:h})});return i.observe(n,{box:"border-box"}),()=>i.unobserve(n)}else l(void 0)},[n]),a}var ku="Switch",[bR,CT]=Au(ku),[xR,wR]=bR(ku),Ab=y.forwardRef((n,a)=>{const{__scopeSwitch:l,name:i,checked:s,defaultChecked:u,required:f,disabled:h,value:p="on",onCheckedChange:m,form:v,...b}=n,[w,S]=y.useState(null),C=vn(a,k=>S(k)),_=y.useRef(!1),j=w?v||!!w.closest("form"):!0,[N,z]=sh({prop:s,defaultProp:u??!1,onChange:m,caller:ku});return g.jsxs(xR,{scope:l,checked:N,disabled:h,children:[g.jsx(pt.button,{type:"button",role:"switch","aria-checked":N,"aria-required":f,"data-state":Lb(N),"data-disabled":h?"":void 0,disabled:h,value:p,...b,ref:C,onClick:nn(n.onClick,k=>{z(H=>!H),j&&(_.current=k.isPropagationStopped(),_.current||k.stopPropagation())})}),j&&g.jsx(Db,{control:w,bubbles:!_.current,name:i,value:p,checked:N,required:f,disabled:h,form:v,style:{transform:"translateX(-100%)"}})]})});Ab.displayName=ku;var Tb="SwitchThumb",Mb=y.forwardRef((n,a)=>{const{__scopeSwitch:l,...i}=n,s=wR(Tb,l);return g.jsx(pt.span,{"data-state":Lb(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:a})});Mb.displayName=Tb;var SR="SwitchBubbleInput",Db=y.forwardRef(({__scopeSwitch:n,control:a,checked:l,bubbles:i=!0,...s},u)=>{const f=y.useRef(null),h=vn(f,u),p=yR(l),m=Ob(a);return y.useEffect(()=>{const v=f.current;if(!v)return;const b=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(b,"checked").set;if(p!==l&&S){const C=new Event("click",{bubbles:i});S.call(v,l),v.dispatchEvent(C)}},[p,l,i]),g.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:l,...s,tabIndex:-1,ref:h,style:{...s.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Db.displayName=SR;function Lb(n){return n?"checked":"unchecked"}var kb=Ab,ER=Mb;const Yd=y.forwardRef(({className:n,...a},l)=>g.jsx(kb,{className:dt("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-all-ease focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",n),...a,ref:l,children:g.jsx(ER,{className:dt("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0 transition-all-ease")})}));Yd.displayName=kb.displayName;var Cy=1,_R=.9,CR=.8,NR=.17,yd=.1,bd=.999,RR=.9999,jR=.99,OR=/[\\\/_+.#"@\[\(\{&]/,AR=/[\\\/_+.#"@\[\(\{&]/g,TR=/[\s-]/,zb=/[\s-]/g;function qd(n,a,l,i,s,u,f){if(u===a.length)return s===n.length?Cy:jR;var h=`${s},${u}`;if(f[h]!==void 0)return f[h];for(var p=i.charAt(u),m=l.indexOf(p,s),v=0,b,w,S,C;m>=0;)b=qd(n,a,l,i,m+1,u+1,f),b>v&&(m===s?b*=Cy:OR.test(n.charAt(m-1))?(b*=CR,S=n.slice(s,m-1).match(AR),S&&s>0&&(b*=Math.pow(bd,S.length))):TR.test(n.charAt(m-1))?(b*=_R,C=n.slice(s,m-1).match(zb),C&&s>0&&(b*=Math.pow(bd,C.length))):(b*=NR,s>0&&(b*=Math.pow(bd,m-s))),n.charAt(m)!==a.charAt(u)&&(b*=RR)),(b<yd&&l.charAt(m-1)===i.charAt(u+1)||i.charAt(u+1)===i.charAt(u)&&l.charAt(m-1)!==i.charAt(u))&&(w=qd(n,a,l,i,m+1,u+2,f),w*yd>b&&(b=w*yd)),b>v&&(v=b),m=l.indexOf(p,m+1);return f[h]=v,v}function Ny(n){return n.toLowerCase().replace(zb," ")}function MR(n,a,l){return n=l&&l.length>0?`${n+" "+l.join(" ")}`:n,qd(n,a,Ny(n),Ny(a),0,0,{})}var so='[cmdk-group=""]',xd='[cmdk-group-items=""]',DR='[cmdk-group-heading=""]',Ub='[cmdk-item=""]',Ry=`${Ub}:not([aria-disabled="true"])`,Fd="cmdk-item-select",Yl="data-value",LR=(n,a,l)=>MR(n,a,l),Pb=y.createContext(void 0),Co=()=>y.useContext(Pb),Hb=y.createContext(void 0),xh=()=>y.useContext(Hb),Bb=y.createContext(void 0),$b=y.forwardRef((n,a)=>{let l=ql(()=>{var U,K;return{search:"",value:(K=(U=n.value)!=null?U:n.defaultValue)!=null?K:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),i=ql(()=>new Set),s=ql(()=>new Map),u=ql(()=>new Map),f=ql(()=>new Set),h=Vb(n),{label:p,children:m,value:v,onValueChange:b,filter:w,shouldFilter:S,loop:C,disablePointerSelection:_=!1,vimBindings:j=!0,...N}=n,z=Wn(),k=Wn(),H=Wn(),D=y.useRef(null),R=FR();Qr(()=>{if(v!==void 0){let U=v.trim();l.current.value=U,B.emit()}},[v]),Qr(()=>{R(6,te)},[]);let B=y.useMemo(()=>({subscribe:U=>(f.current.add(U),()=>f.current.delete(U)),snapshot:()=>l.current,setState:(U,K,ae)=>{var de,ge,ye,Le;if(!Object.is(l.current[U],K)){if(l.current[U]=K,U==="search")J(),oe(),R(1,le);else if(U==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let qe=document.getElementById(H);qe?qe.focus():(de=document.getElementById(z))==null||de.focus()}if(R(7,()=>{var qe;l.current.selectedItemId=(qe=W())==null?void 0:qe.id,B.emit()}),ae||R(5,te),((ge=h.current)==null?void 0:ge.value)!==void 0){let qe=K??"";(Le=(ye=h.current).onValueChange)==null||Le.call(ye,qe);return}}B.emit()}},emit:()=>{f.current.forEach(U=>U())}}),[]),Z=y.useMemo(()=>({value:(U,K,ae)=>{var de;K!==((de=u.current.get(U))==null?void 0:de.value)&&(u.current.set(U,{value:K,keywords:ae}),l.current.filtered.items.set(U,ne(K,ae)),R(2,()=>{oe(),B.emit()}))},item:(U,K)=>(i.current.add(U),K&&(s.current.has(K)?s.current.get(K).add(U):s.current.set(K,new Set([U]))),R(3,()=>{J(),oe(),l.current.value||le(),B.emit()}),()=>{u.current.delete(U),i.current.delete(U),l.current.filtered.items.delete(U);let ae=W();R(4,()=>{J(),ae?.getAttribute("id")===U&&le(),B.emit()})}),group:U=>(s.current.has(U)||s.current.set(U,new Set),()=>{u.current.delete(U),s.current.delete(U)}),filter:()=>h.current.shouldFilter,label:p||n["aria-label"],getDisablePointerSelection:()=>h.current.disablePointerSelection,listId:z,inputId:H,labelId:k,listInnerRef:D}),[]);function ne(U,K){var ae,de;let ge=(de=(ae=h.current)==null?void 0:ae.filter)!=null?de:LR;return U?ge(U,l.current.search,K):0}function oe(){if(!l.current.search||h.current.shouldFilter===!1)return;let U=l.current.filtered.items,K=[];l.current.filtered.groups.forEach(de=>{let ge=s.current.get(de),ye=0;ge.forEach(Le=>{let qe=U.get(Le);ye=Math.max(qe,ye)}),K.push([de,ye])});let ae=D.current;ue().sort((de,ge)=>{var ye,Le;let qe=de.getAttribute("id"),Je=ge.getAttribute("id");return((ye=U.get(Je))!=null?ye:0)-((Le=U.get(qe))!=null?Le:0)}).forEach(de=>{let ge=de.closest(xd);ge?ge.appendChild(de.parentElement===ge?de:de.closest(`${xd} > *`)):ae.appendChild(de.parentElement===ae?de:de.closest(`${xd} > *`))}),K.sort((de,ge)=>ge[1]-de[1]).forEach(de=>{var ge;let ye=(ge=D.current)==null?void 0:ge.querySelector(`${so}[${Yl}="${encodeURIComponent(de[0])}"]`);ye?.parentElement.appendChild(ye)})}function le(){let U=ue().find(ae=>ae.getAttribute("aria-disabled")!=="true"),K=U?.getAttribute(Yl);B.setState("value",K||void 0)}function J(){var U,K,ae,de;if(!l.current.search||h.current.shouldFilter===!1){l.current.filtered.count=i.current.size;return}l.current.filtered.groups=new Set;let ge=0;for(let ye of i.current){let Le=(K=(U=u.current.get(ye))==null?void 0:U.value)!=null?K:"",qe=(de=(ae=u.current.get(ye))==null?void 0:ae.keywords)!=null?de:[],Je=ne(Le,qe);l.current.filtered.items.set(ye,Je),Je>0&&ge++}for(let[ye,Le]of s.current)for(let qe of Le)if(l.current.filtered.items.get(qe)>0){l.current.filtered.groups.add(ye);break}l.current.filtered.count=ge}function te(){var U,K,ae;let de=W();de&&(((U=de.parentElement)==null?void 0:U.firstChild)===de&&((ae=(K=de.closest(so))==null?void 0:K.querySelector(DR))==null||ae.scrollIntoView({block:"nearest"})),de.scrollIntoView({block:"nearest"}))}function W(){var U;return(U=D.current)==null?void 0:U.querySelector(`${Ub}[aria-selected="true"]`)}function ue(){var U;return Array.from(((U=D.current)==null?void 0:U.querySelectorAll(Ry))||[])}function A(U){let K=ue()[U];K&&B.setState("value",K.getAttribute(Yl))}function Q(U){var K;let ae=W(),de=ue(),ge=de.findIndex(Le=>Le===ae),ye=de[ge+U];(K=h.current)!=null&&K.loop&&(ye=ge+U<0?de[de.length-1]:ge+U===de.length?de[0]:de[ge+U]),ye&&B.setState("value",ye.getAttribute(Yl))}function V(U){let K=W(),ae=K?.closest(so),de;for(;ae&&!de;)ae=U>0?YR(ae,so):qR(ae,so),de=ae?.querySelector(Ry);de?B.setState("value",de.getAttribute(Yl)):Q(U)}let ve=()=>A(ue().length-1),O=U=>{U.preventDefault(),U.metaKey?ve():U.altKey?V(1):Q(1)},F=U=>{U.preventDefault(),U.metaKey?A(0):U.altKey?V(-1):Q(-1)};return y.createElement(pt.div,{ref:a,tabIndex:-1,...N,"cmdk-root":"",onKeyDown:U=>{var K;(K=N.onKeyDown)==null||K.call(N,U);let ae=U.nativeEvent.isComposing||U.keyCode===229;if(!(U.defaultPrevented||ae))switch(U.key){case"n":case"j":{j&&U.ctrlKey&&O(U);break}case"ArrowDown":{O(U);break}case"p":case"k":{j&&U.ctrlKey&&F(U);break}case"ArrowUp":{F(U);break}case"Home":{U.preventDefault(),A(0);break}case"End":{U.preventDefault(),ve();break}case"Enter":{U.preventDefault();let de=W();if(de){let ge=new Event(Fd);de.dispatchEvent(ge)}}}}},y.createElement("label",{"cmdk-label":"",htmlFor:Z.inputId,id:Z.labelId,style:GR},p),zu(n,U=>y.createElement(Hb.Provider,{value:B},y.createElement(Pb.Provider,{value:Z},U))))}),kR=y.forwardRef((n,a)=>{var l,i;let s=Wn(),u=y.useRef(null),f=y.useContext(Bb),h=Co(),p=Vb(n),m=(i=(l=p.current)==null?void 0:l.forceMount)!=null?i:f?.forceMount;Qr(()=>{if(!m)return h.item(s,f?.id)},[m]);let v=Yb(s,u,[n.value,n.children,u],n.keywords),b=xh(),w=cr(R=>R.value&&R.value===v.current),S=cr(R=>m||h.filter()===!1?!0:R.search?R.filtered.items.get(s)>0:!0);y.useEffect(()=>{let R=u.current;if(!(!R||n.disabled))return R.addEventListener(Fd,C),()=>R.removeEventListener(Fd,C)},[S,n.onSelect,n.disabled]);function C(){var R,B;_(),(B=(R=p.current).onSelect)==null||B.call(R,v.current)}function _(){b.setState("value",v.current,!0)}if(!S)return null;let{disabled:j,value:N,onSelect:z,forceMount:k,keywords:H,...D}=n;return y.createElement(pt.div,{ref:qr(u,a),...D,id:s,"cmdk-item":"",role:"option","aria-disabled":!!j,"aria-selected":!!w,"data-disabled":!!j,"data-selected":!!w,onPointerMove:j||h.getDisablePointerSelection()?void 0:_,onClick:j?void 0:C},n.children)}),zR=y.forwardRef((n,a)=>{let{heading:l,children:i,forceMount:s,...u}=n,f=Wn(),h=y.useRef(null),p=y.useRef(null),m=Wn(),v=Co(),b=cr(S=>s||v.filter()===!1?!0:S.search?S.filtered.groups.has(f):!0);Qr(()=>v.group(f),[]),Yb(f,h,[n.value,n.heading,p]);let w=y.useMemo(()=>({id:f,forceMount:s}),[s]);return y.createElement(pt.div,{ref:qr(h,a),...u,"cmdk-group":"",role:"presentation",hidden:b?void 0:!0},l&&y.createElement("div",{ref:p,"cmdk-group-heading":"","aria-hidden":!0,id:m},l),zu(n,S=>y.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":l?m:void 0},y.createElement(Bb.Provider,{value:w},S))))}),UR=y.forwardRef((n,a)=>{let{alwaysRender:l,...i}=n,s=y.useRef(null),u=cr(f=>!f.search);return!l&&!u?null:y.createElement(pt.div,{ref:qr(s,a),...i,"cmdk-separator":"",role:"separator"})}),PR=y.forwardRef((n,a)=>{let{onValueChange:l,...i}=n,s=n.value!=null,u=xh(),f=cr(m=>m.search),h=cr(m=>m.selectedItemId),p=Co();return y.useEffect(()=>{n.value!=null&&u.setState("search",n.value)},[n.value]),y.createElement(pt.input,{ref:a,...i,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":p.listId,"aria-labelledby":p.labelId,"aria-activedescendant":h,id:p.inputId,type:"text",value:s?n.value:f,onChange:m=>{s||u.setState("search",m.target.value),l?.(m.target.value)}})}),HR=y.forwardRef((n,a)=>{let{children:l,label:i="Suggestions",...s}=n,u=y.useRef(null),f=y.useRef(null),h=cr(m=>m.selectedItemId),p=Co();return y.useEffect(()=>{if(f.current&&u.current){let m=f.current,v=u.current,b,w=new ResizeObserver(()=>{b=requestAnimationFrame(()=>{let S=m.offsetHeight;v.style.setProperty("--cmdk-list-height",S.toFixed(1)+"px")})});return w.observe(m),()=>{cancelAnimationFrame(b),w.unobserve(m)}}},[]),y.createElement(pt.div,{ref:qr(u,a),...s,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":h,"aria-label":i,id:p.listId},zu(n,m=>y.createElement("div",{ref:qr(f,p.listInnerRef),"cmdk-list-sizer":""},m)))}),BR=y.forwardRef((n,a)=>{let{open:l,onOpenChange:i,overlayClassName:s,contentClassName:u,container:f,...h}=n;return y.createElement(ab,{open:l,onOpenChange:i},y.createElement(rb,{container:f},y.createElement(gh,{"cmdk-overlay":"",className:s}),y.createElement(vh,{"aria-label":n.label,"cmdk-dialog":"",className:u},y.createElement($b,{ref:a,...h}))))}),$R=y.forwardRef((n,a)=>cr(l=>l.filtered.count===0)?y.createElement(pt.div,{ref:a,...n,"cmdk-empty":"",role:"presentation"}):null),VR=y.forwardRef((n,a)=>{let{progress:l,children:i,label:s="Loading...",...u}=n;return y.createElement(pt.div,{ref:a,...u,"cmdk-loading":"",role:"progressbar","aria-valuenow":l,"aria-valuemin":0,"aria-valuemax":100,"aria-label":s},zu(n,f=>y.createElement("div",{"aria-hidden":!0},f)))}),ai=Object.assign($b,{List:HR,Item:kR,Input:PR,Group:zR,Separator:UR,Dialog:BR,Empty:$R,Loading:VR});function YR(n,a){let l=n.nextElementSibling;for(;l;){if(l.matches(a))return l;l=l.nextElementSibling}}function qR(n,a){let l=n.previousElementSibling;for(;l;){if(l.matches(a))return l;l=l.previousElementSibling}}function Vb(n){let a=y.useRef(n);return Qr(()=>{a.current=n}),a}var Qr=typeof window>"u"?y.useEffect:y.useLayoutEffect;function ql(n){let a=y.useRef();return a.current===void 0&&(a.current=n()),a}function cr(n){let a=xh(),l=()=>n(a.snapshot());return y.useSyncExternalStore(a.subscribe,l,l)}function Yb(n,a,l,i=[]){let s=y.useRef(),u=Co();return Qr(()=>{var f;let h=(()=>{var m;for(let v of l){if(typeof v=="string")return v.trim();if(typeof v=="object"&&"current"in v)return v.current?(m=v.current.textContent)==null?void 0:m.trim():s.current}})(),p=i.map(m=>m.trim());u.value(n,h,p),(f=a.current)==null||f.setAttribute(Yl,h),s.current=h}),s}var FR=()=>{let[n,a]=y.useState(),l=ql(()=>new Map);return Qr(()=>{l.current.forEach(i=>i()),l.current=new Map},[n]),(i,s)=>{l.current.set(i,s),a({})}};function KR(n){let a=n.type;return typeof a=="function"?a(n.props):"render"in a?a.render(n.props):n}function zu({asChild:n,children:a},l){return n&&y.isValidElement(a)?y.cloneElement(KR(a),{ref:a.ref},l(a.props.children)):l(a)}var GR={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function qb({className:n,...a}){return g.jsx(ai,{"data-slot":"command",className:dt("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",n),...a})}function Fb({className:n,...a}){return g.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[g.jsx(hb,{className:"size-4 shrink-0 opacity-50"}),g.jsx(ai.Input,{"data-slot":"command-input",className:dt("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",n),...a})]})}function Kb({className:n,...a}){return g.jsx(ai.List,{"data-slot":"command-list",className:dt("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",n),...a})}function Gb({...n}){return g.jsx(ai.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...n})}function Xb({className:n,...a}){return g.jsx(ai.Group,{"data-slot":"command-group",className:dt("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",n),...a})}function Qb({className:n,...a}){return g.jsx(ai.Item,{"data-slot":"command-item",className:dt("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),...a})}const XR=["top","right","bottom","left"],fr=Math.min,pn=Math.max,yu=Math.round,eu=Math.floor,ea=n=>({x:n,y:n}),QR={left:"right",right:"left",bottom:"top",top:"bottom"},ZR={start:"end",end:"start"};function Kd(n,a,l){return pn(n,fr(a,l))}function Ea(n,a){return typeof n=="function"?n(a):n}function _a(n){return n.split("-")[0]}function ri(n){return n.split("-")[1]}function wh(n){return n==="x"?"y":"x"}function Sh(n){return n==="y"?"height":"width"}const IR=new Set(["top","bottom"]);function In(n){return IR.has(_a(n))?"y":"x"}function Eh(n){return wh(In(n))}function JR(n,a,l){l===void 0&&(l=!1);const i=ri(n),s=Eh(n),u=Sh(s);let f=s==="x"?i===(l?"end":"start")?"right":"left":i==="start"?"bottom":"top";return a.reference[u]>a.floating[u]&&(f=bu(f)),[f,bu(f)]}function WR(n){const a=bu(n);return[Gd(n),a,Gd(a)]}function Gd(n){return n.replace(/start|end/g,a=>ZR[a])}const jy=["left","right"],Oy=["right","left"],ej=["top","bottom"],tj=["bottom","top"];function nj(n,a,l){switch(n){case"top":case"bottom":return l?a?Oy:jy:a?jy:Oy;case"left":case"right":return a?ej:tj;default:return[]}}function aj(n,a,l,i){const s=ri(n);let u=nj(_a(n),l==="start",i);return s&&(u=u.map(f=>f+"-"+s),a&&(u=u.concat(u.map(Gd)))),u}function bu(n){return n.replace(/left|right|bottom|top/g,a=>QR[a])}function rj(n){return{top:0,right:0,bottom:0,left:0,...n}}function Zb(n){return typeof n!="number"?rj(n):{top:n,right:n,bottom:n,left:n}}function xu(n){const{x:a,y:l,width:i,height:s}=n;return{width:i,height:s,top:l,left:a,right:a+i,bottom:l+s,x:a,y:l}}function Ay(n,a,l){let{reference:i,floating:s}=n;const u=In(a),f=Eh(a),h=Sh(f),p=_a(a),m=u==="y",v=i.x+i.width/2-s.width/2,b=i.y+i.height/2-s.height/2,w=i[h]/2-s[h]/2;let S;switch(p){case"top":S={x:v,y:i.y-s.height};break;case"bottom":S={x:v,y:i.y+i.height};break;case"right":S={x:i.x+i.width,y:b};break;case"left":S={x:i.x-s.width,y:b};break;default:S={x:i.x,y:i.y}}switch(ri(a)){case"start":S[f]-=w*(l&&m?-1:1);break;case"end":S[f]+=w*(l&&m?-1:1);break}return S}const lj=async(n,a,l)=>{const{placement:i="bottom",strategy:s="absolute",middleware:u=[],platform:f}=l,h=u.filter(Boolean),p=await(f.isRTL==null?void 0:f.isRTL(a));let m=await f.getElementRects({reference:n,floating:a,strategy:s}),{x:v,y:b}=Ay(m,i,p),w=i,S={},C=0;for(let _=0;_<h.length;_++){const{name:j,fn:N}=h[_],{x:z,y:k,data:H,reset:D}=await N({x:v,y:b,initialPlacement:i,placement:w,strategy:s,middlewareData:S,rects:m,platform:f,elements:{reference:n,floating:a}});v=z??v,b=k??b,S={...S,[j]:{...S[j],...H}},D&&C<=50&&(C++,typeof D=="object"&&(D.placement&&(w=D.placement),D.rects&&(m=D.rects===!0?await f.getElementRects({reference:n,floating:a,strategy:s}):D.rects),{x:v,y:b}=Ay(m,w,p)),_=-1)}return{x:v,y:b,placement:w,strategy:s,middlewareData:S}};async function bo(n,a){var l;a===void 0&&(a={});const{x:i,y:s,platform:u,rects:f,elements:h,strategy:p}=n,{boundary:m="clippingAncestors",rootBoundary:v="viewport",elementContext:b="floating",altBoundary:w=!1,padding:S=0}=Ea(a,n),C=Zb(S),j=h[w?b==="floating"?"reference":"floating":b],N=xu(await u.getClippingRect({element:(l=await(u.isElement==null?void 0:u.isElement(j)))==null||l?j:j.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(h.floating)),boundary:m,rootBoundary:v,strategy:p})),z=b==="floating"?{x:i,y:s,width:f.floating.width,height:f.floating.height}:f.reference,k=await(u.getOffsetParent==null?void 0:u.getOffsetParent(h.floating)),H=await(u.isElement==null?void 0:u.isElement(k))?await(u.getScale==null?void 0:u.getScale(k))||{x:1,y:1}:{x:1,y:1},D=xu(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:z,offsetParent:k,strategy:p}):z);return{top:(N.top-D.top+C.top)/H.y,bottom:(D.bottom-N.bottom+C.bottom)/H.y,left:(N.left-D.left+C.left)/H.x,right:(D.right-N.right+C.right)/H.x}}const ij=n=>({name:"arrow",options:n,async fn(a){const{x:l,y:i,placement:s,rects:u,platform:f,elements:h,middlewareData:p}=a,{element:m,padding:v=0}=Ea(n,a)||{};if(m==null)return{};const b=Zb(v),w={x:l,y:i},S=Eh(s),C=Sh(S),_=await f.getDimensions(m),j=S==="y",N=j?"top":"left",z=j?"bottom":"right",k=j?"clientHeight":"clientWidth",H=u.reference[C]+u.reference[S]-w[S]-u.floating[C],D=w[S]-u.reference[S],R=await(f.getOffsetParent==null?void 0:f.getOffsetParent(m));let B=R?R[k]:0;(!B||!await(f.isElement==null?void 0:f.isElement(R)))&&(B=h.floating[k]||u.floating[C]);const Z=H/2-D/2,ne=B/2-_[C]/2-1,oe=fr(b[N],ne),le=fr(b[z],ne),J=oe,te=B-_[C]-le,W=B/2-_[C]/2+Z,ue=Kd(J,W,te),A=!p.arrow&&ri(s)!=null&&W!==ue&&u.reference[C]/2-(W<J?oe:le)-_[C]/2<0,Q=A?W<J?W-J:W-te:0;return{[S]:w[S]+Q,data:{[S]:ue,centerOffset:W-ue-Q,...A&&{alignmentOffset:Q}},reset:A}}}),oj=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(a){var l,i;const{placement:s,middlewareData:u,rects:f,initialPlacement:h,platform:p,elements:m}=a,{mainAxis:v=!0,crossAxis:b=!0,fallbackPlacements:w,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:_=!0,...j}=Ea(n,a);if((l=u.arrow)!=null&&l.alignmentOffset)return{};const N=_a(s),z=In(h),k=_a(h)===h,H=await(p.isRTL==null?void 0:p.isRTL(m.floating)),D=w||(k||!_?[bu(h)]:WR(h)),R=C!=="none";!w&&R&&D.push(...aj(h,_,C,H));const B=[h,...D],Z=await bo(a,j),ne=[];let oe=((i=u.flip)==null?void 0:i.overflows)||[];if(v&&ne.push(Z[N]),b){const W=JR(s,f,H);ne.push(Z[W[0]],Z[W[1]])}if(oe=[...oe,{placement:s,overflows:ne}],!ne.every(W=>W<=0)){var le,J;const W=(((le=u.flip)==null?void 0:le.index)||0)+1,ue=B[W];if(ue&&(!(b==="alignment"?z!==In(ue):!1)||oe.every(V=>V.overflows[0]>0&&In(V.placement)===z)))return{data:{index:W,overflows:oe},reset:{placement:ue}};let A=(J=oe.filter(Q=>Q.overflows[0]<=0).sort((Q,V)=>Q.overflows[1]-V.overflows[1])[0])==null?void 0:J.placement;if(!A)switch(S){case"bestFit":{var te;const Q=(te=oe.filter(V=>{if(R){const ve=In(V.placement);return ve===z||ve==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(ve=>ve>0).reduce((ve,O)=>ve+O,0)]).sort((V,ve)=>V[1]-ve[1])[0])==null?void 0:te[0];Q&&(A=Q);break}case"initialPlacement":A=h;break}if(s!==A)return{reset:{placement:A}}}return{}}}};function Ty(n,a){return{top:n.top-a.height,right:n.right-a.width,bottom:n.bottom-a.height,left:n.left-a.width}}function My(n){return XR.some(a=>n[a]>=0)}const sj=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(a){const{rects:l}=a,{strategy:i="referenceHidden",...s}=Ea(n,a);switch(i){case"referenceHidden":{const u=await bo(a,{...s,elementContext:"reference"}),f=Ty(u,l.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:My(f)}}}case"escaped":{const u=await bo(a,{...s,altBoundary:!0}),f=Ty(u,l.floating);return{data:{escapedOffsets:f,escaped:My(f)}}}default:return{}}}}},Ib=new Set(["left","top"]);async function uj(n,a){const{placement:l,platform:i,elements:s}=n,u=await(i.isRTL==null?void 0:i.isRTL(s.floating)),f=_a(l),h=ri(l),p=In(l)==="y",m=Ib.has(f)?-1:1,v=u&&p?-1:1,b=Ea(a,n);let{mainAxis:w,crossAxis:S,alignmentAxis:C}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return h&&typeof C=="number"&&(S=h==="end"?C*-1:C),p?{x:S*v,y:w*m}:{x:w*m,y:S*v}}const cj=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(a){var l,i;const{x:s,y:u,placement:f,middlewareData:h}=a,p=await uj(a,n);return f===((l=h.offset)==null?void 0:l.placement)&&(i=h.arrow)!=null&&i.alignmentOffset?{}:{x:s+p.x,y:u+p.y,data:{...p,placement:f}}}}},fj=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(a){const{x:l,y:i,placement:s}=a,{mainAxis:u=!0,crossAxis:f=!1,limiter:h={fn:j=>{let{x:N,y:z}=j;return{x:N,y:z}}},...p}=Ea(n,a),m={x:l,y:i},v=await bo(a,p),b=In(_a(s)),w=wh(b);let S=m[w],C=m[b];if(u){const j=w==="y"?"top":"left",N=w==="y"?"bottom":"right",z=S+v[j],k=S-v[N];S=Kd(z,S,k)}if(f){const j=b==="y"?"top":"left",N=b==="y"?"bottom":"right",z=C+v[j],k=C-v[N];C=Kd(z,C,k)}const _=h.fn({...a,[w]:S,[b]:C});return{..._,data:{x:_.x-l,y:_.y-i,enabled:{[w]:u,[b]:f}}}}}},dj=function(n){return n===void 0&&(n={}),{options:n,fn(a){const{x:l,y:i,placement:s,rects:u,middlewareData:f}=a,{offset:h=0,mainAxis:p=!0,crossAxis:m=!0}=Ea(n,a),v={x:l,y:i},b=In(s),w=wh(b);let S=v[w],C=v[b];const _=Ea(h,a),j=typeof _=="number"?{mainAxis:_,crossAxis:0}:{mainAxis:0,crossAxis:0,..._};if(p){const k=w==="y"?"height":"width",H=u.reference[w]-u.floating[k]+j.mainAxis,D=u.reference[w]+u.reference[k]-j.mainAxis;S<H?S=H:S>D&&(S=D)}if(m){var N,z;const k=w==="y"?"width":"height",H=Ib.has(_a(s)),D=u.reference[b]-u.floating[k]+(H&&((N=f.offset)==null?void 0:N[b])||0)+(H?0:j.crossAxis),R=u.reference[b]+u.reference[k]+(H?0:((z=f.offset)==null?void 0:z[b])||0)-(H?j.crossAxis:0);C<D?C=D:C>R&&(C=R)}return{[w]:S,[b]:C}}}},hj=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(a){var l,i;const{placement:s,rects:u,platform:f,elements:h}=a,{apply:p=()=>{},...m}=Ea(n,a),v=await bo(a,m),b=_a(s),w=ri(s),S=In(s)==="y",{width:C,height:_}=u.floating;let j,N;b==="top"||b==="bottom"?(j=b,N=w===(await(f.isRTL==null?void 0:f.isRTL(h.floating))?"start":"end")?"left":"right"):(N=b,j=w==="end"?"top":"bottom");const z=_-v.top-v.bottom,k=C-v.left-v.right,H=fr(_-v[j],z),D=fr(C-v[N],k),R=!a.middlewareData.shift;let B=H,Z=D;if((l=a.middlewareData.shift)!=null&&l.enabled.x&&(Z=k),(i=a.middlewareData.shift)!=null&&i.enabled.y&&(B=z),R&&!w){const oe=pn(v.left,0),le=pn(v.right,0),J=pn(v.top,0),te=pn(v.bottom,0);S?Z=C-2*(oe!==0||le!==0?oe+le:pn(v.left,v.right)):B=_-2*(J!==0||te!==0?J+te:pn(v.top,v.bottom))}await p({...a,availableWidth:Z,availableHeight:B});const ne=await f.getDimensions(h.floating);return C!==ne.width||_!==ne.height?{reset:{rects:!0}}:{}}}};function Uu(){return typeof window<"u"}function li(n){return Jb(n)?(n.nodeName||"").toLowerCase():"#document"}function gn(n){var a;return(n==null||(a=n.ownerDocument)==null?void 0:a.defaultView)||window}function aa(n){var a;return(a=(Jb(n)?n.ownerDocument:n.document)||window.document)==null?void 0:a.documentElement}function Jb(n){return Uu()?n instanceof Node||n instanceof gn(n).Node:!1}function zn(n){return Uu()?n instanceof Element||n instanceof gn(n).Element:!1}function ta(n){return Uu()?n instanceof HTMLElement||n instanceof gn(n).HTMLElement:!1}function Dy(n){return!Uu()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof gn(n).ShadowRoot}const mj=new Set(["inline","contents"]);function No(n){const{overflow:a,overflowX:l,overflowY:i,display:s}=Un(n);return/auto|scroll|overlay|hidden|clip/.test(a+i+l)&&!mj.has(s)}const pj=new Set(["table","td","th"]);function gj(n){return pj.has(li(n))}const vj=[":popover-open",":modal"];function Pu(n){return vj.some(a=>{try{return n.matches(a)}catch{return!1}})}const yj=["transform","translate","scale","rotate","perspective"],bj=["transform","translate","scale","rotate","perspective","filter"],xj=["paint","layout","strict","content"];function _h(n){const a=Ch(),l=zn(n)?Un(n):n;return yj.some(i=>l[i]?l[i]!=="none":!1)||(l.containerType?l.containerType!=="normal":!1)||!a&&(l.backdropFilter?l.backdropFilter!=="none":!1)||!a&&(l.filter?l.filter!=="none":!1)||bj.some(i=>(l.willChange||"").includes(i))||xj.some(i=>(l.contain||"").includes(i))}function wj(n){let a=dr(n);for(;ta(a)&&!Il(a);){if(_h(a))return a;if(Pu(a))return null;a=dr(a)}return null}function Ch(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Sj=new Set(["html","body","#document"]);function Il(n){return Sj.has(li(n))}function Un(n){return gn(n).getComputedStyle(n)}function Hu(n){return zn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function dr(n){if(li(n)==="html")return n;const a=n.assignedSlot||n.parentNode||Dy(n)&&n.host||aa(n);return Dy(a)?a.host:a}function Wb(n){const a=dr(n);return Il(a)?n.ownerDocument?n.ownerDocument.body:n.body:ta(a)&&No(a)?a:Wb(a)}function xo(n,a,l){var i;a===void 0&&(a=[]),l===void 0&&(l=!0);const s=Wb(n),u=s===((i=n.ownerDocument)==null?void 0:i.body),f=gn(s);if(u){const h=Xd(f);return a.concat(f,f.visualViewport||[],No(s)?s:[],h&&l?xo(h):[])}return a.concat(s,xo(s,[],l))}function Xd(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function ex(n){const a=Un(n);let l=parseFloat(a.width)||0,i=parseFloat(a.height)||0;const s=ta(n),u=s?n.offsetWidth:l,f=s?n.offsetHeight:i,h=yu(l)!==u||yu(i)!==f;return h&&(l=u,i=f),{width:l,height:i,$:h}}function Nh(n){return zn(n)?n:n.contextElement}function Ql(n){const a=Nh(n);if(!ta(a))return ea(1);const l=a.getBoundingClientRect(),{width:i,height:s,$:u}=ex(a);let f=(u?yu(l.width):l.width)/i,h=(u?yu(l.height):l.height)/s;return(!f||!Number.isFinite(f))&&(f=1),(!h||!Number.isFinite(h))&&(h=1),{x:f,y:h}}const Ej=ea(0);function tx(n){const a=gn(n);return!Ch()||!a.visualViewport?Ej:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function _j(n,a,l){return a===void 0&&(a=!1),!l||a&&l!==gn(n)?!1:a}function Zr(n,a,l,i){a===void 0&&(a=!1),l===void 0&&(l=!1);const s=n.getBoundingClientRect(),u=Nh(n);let f=ea(1);a&&(i?zn(i)&&(f=Ql(i)):f=Ql(n));const h=_j(u,l,i)?tx(u):ea(0);let p=(s.left+h.x)/f.x,m=(s.top+h.y)/f.y,v=s.width/f.x,b=s.height/f.y;if(u){const w=gn(u),S=i&&zn(i)?gn(i):i;let C=w,_=Xd(C);for(;_&&i&&S!==C;){const j=Ql(_),N=_.getBoundingClientRect(),z=Un(_),k=N.left+(_.clientLeft+parseFloat(z.paddingLeft))*j.x,H=N.top+(_.clientTop+parseFloat(z.paddingTop))*j.y;p*=j.x,m*=j.y,v*=j.x,b*=j.y,p+=k,m+=H,C=gn(_),_=Xd(C)}}return xu({width:v,height:b,x:p,y:m})}function Rh(n,a){const l=Hu(n).scrollLeft;return a?a.left+l:Zr(aa(n)).left+l}function nx(n,a,l){l===void 0&&(l=!1);const i=n.getBoundingClientRect(),s=i.left+a.scrollLeft-(l?0:Rh(n,i)),u=i.top+a.scrollTop;return{x:s,y:u}}function Cj(n){let{elements:a,rect:l,offsetParent:i,strategy:s}=n;const u=s==="fixed",f=aa(i),h=a?Pu(a.floating):!1;if(i===f||h&&u)return l;let p={scrollLeft:0,scrollTop:0},m=ea(1);const v=ea(0),b=ta(i);if((b||!b&&!u)&&((li(i)!=="body"||No(f))&&(p=Hu(i)),ta(i))){const S=Zr(i);m=Ql(i),v.x=S.x+i.clientLeft,v.y=S.y+i.clientTop}const w=f&&!b&&!u?nx(f,p,!0):ea(0);return{width:l.width*m.x,height:l.height*m.y,x:l.x*m.x-p.scrollLeft*m.x+v.x+w.x,y:l.y*m.y-p.scrollTop*m.y+v.y+w.y}}function Nj(n){return Array.from(n.getClientRects())}function Rj(n){const a=aa(n),l=Hu(n),i=n.ownerDocument.body,s=pn(a.scrollWidth,a.clientWidth,i.scrollWidth,i.clientWidth),u=pn(a.scrollHeight,a.clientHeight,i.scrollHeight,i.clientHeight);let f=-l.scrollLeft+Rh(n);const h=-l.scrollTop;return Un(i).direction==="rtl"&&(f+=pn(a.clientWidth,i.clientWidth)-s),{width:s,height:u,x:f,y:h}}function jj(n,a){const l=gn(n),i=aa(n),s=l.visualViewport;let u=i.clientWidth,f=i.clientHeight,h=0,p=0;if(s){u=s.width,f=s.height;const m=Ch();(!m||m&&a==="fixed")&&(h=s.offsetLeft,p=s.offsetTop)}return{width:u,height:f,x:h,y:p}}const Oj=new Set(["absolute","fixed"]);function Aj(n,a){const l=Zr(n,!0,a==="fixed"),i=l.top+n.clientTop,s=l.left+n.clientLeft,u=ta(n)?Ql(n):ea(1),f=n.clientWidth*u.x,h=n.clientHeight*u.y,p=s*u.x,m=i*u.y;return{width:f,height:h,x:p,y:m}}function Ly(n,a,l){let i;if(a==="viewport")i=jj(n,l);else if(a==="document")i=Rj(aa(n));else if(zn(a))i=Aj(a,l);else{const s=tx(n);i={x:a.x-s.x,y:a.y-s.y,width:a.width,height:a.height}}return xu(i)}function ax(n,a){const l=dr(n);return l===a||!zn(l)||Il(l)?!1:Un(l).position==="fixed"||ax(l,a)}function Tj(n,a){const l=a.get(n);if(l)return l;let i=xo(n,[],!1).filter(h=>zn(h)&&li(h)!=="body"),s=null;const u=Un(n).position==="fixed";let f=u?dr(n):n;for(;zn(f)&&!Il(f);){const h=Un(f),p=_h(f);!p&&h.position==="fixed"&&(s=null),(u?!p&&!s:!p&&h.position==="static"&&!!s&&Oj.has(s.position)||No(f)&&!p&&ax(n,f))?i=i.filter(v=>v!==f):s=h,f=dr(f)}return a.set(n,i),i}function Mj(n){let{element:a,boundary:l,rootBoundary:i,strategy:s}=n;const f=[...l==="clippingAncestors"?Pu(a)?[]:Tj(a,this._c):[].concat(l),i],h=f[0],p=f.reduce((m,v)=>{const b=Ly(a,v,s);return m.top=pn(b.top,m.top),m.right=fr(b.right,m.right),m.bottom=fr(b.bottom,m.bottom),m.left=pn(b.left,m.left),m},Ly(a,h,s));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function Dj(n){const{width:a,height:l}=ex(n);return{width:a,height:l}}function Lj(n,a,l){const i=ta(a),s=aa(a),u=l==="fixed",f=Zr(n,!0,u,a);let h={scrollLeft:0,scrollTop:0};const p=ea(0);function m(){p.x=Rh(s)}if(i||!i&&!u)if((li(a)!=="body"||No(s))&&(h=Hu(a)),i){const S=Zr(a,!0,u,a);p.x=S.x+a.clientLeft,p.y=S.y+a.clientTop}else s&&m();u&&!i&&s&&m();const v=s&&!i&&!u?nx(s,h):ea(0),b=f.left+h.scrollLeft-p.x-v.x,w=f.top+h.scrollTop-p.y-v.y;return{x:b,y:w,width:f.width,height:f.height}}function wd(n){return Un(n).position==="static"}function ky(n,a){if(!ta(n)||Un(n).position==="fixed")return null;if(a)return a(n);let l=n.offsetParent;return aa(n)===l&&(l=l.ownerDocument.body),l}function rx(n,a){const l=gn(n);if(Pu(n))return l;if(!ta(n)){let s=dr(n);for(;s&&!Il(s);){if(zn(s)&&!wd(s))return s;s=dr(s)}return l}let i=ky(n,a);for(;i&&gj(i)&&wd(i);)i=ky(i,a);return i&&Il(i)&&wd(i)&&!_h(i)?l:i||wj(n)||l}const kj=async function(n){const a=this.getOffsetParent||rx,l=this.getDimensions,i=await l(n.floating);return{reference:Lj(n.reference,await a(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function zj(n){return Un(n).direction==="rtl"}const Uj={convertOffsetParentRelativeRectToViewportRelativeRect:Cj,getDocumentElement:aa,getClippingRect:Mj,getOffsetParent:rx,getElementRects:kj,getClientRects:Nj,getDimensions:Dj,getScale:Ql,isElement:zn,isRTL:zj};function lx(n,a){return n.x===a.x&&n.y===a.y&&n.width===a.width&&n.height===a.height}function Pj(n,a){let l=null,i;const s=aa(n);function u(){var h;clearTimeout(i),(h=l)==null||h.disconnect(),l=null}function f(h,p){h===void 0&&(h=!1),p===void 0&&(p=1),u();const m=n.getBoundingClientRect(),{left:v,top:b,width:w,height:S}=m;if(h||a(),!w||!S)return;const C=eu(b),_=eu(s.clientWidth-(v+w)),j=eu(s.clientHeight-(b+S)),N=eu(v),k={rootMargin:-C+"px "+-_+"px "+-j+"px "+-N+"px",threshold:pn(0,fr(1,p))||1};let H=!0;function D(R){const B=R[0].intersectionRatio;if(B!==p){if(!H)return f();B?f(!1,B):i=setTimeout(()=>{f(!1,1e-7)},1e3)}B===1&&!lx(m,n.getBoundingClientRect())&&f(),H=!1}try{l=new IntersectionObserver(D,{...k,root:s.ownerDocument})}catch{l=new IntersectionObserver(D,k)}l.observe(n)}return f(!0),u}function Hj(n,a,l,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:u=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:p=!1}=i,m=Nh(n),v=s||u?[...m?xo(m):[],...xo(a)]:[];v.forEach(N=>{s&&N.addEventListener("scroll",l,{passive:!0}),u&&N.addEventListener("resize",l)});const b=m&&h?Pj(m,l):null;let w=-1,S=null;f&&(S=new ResizeObserver(N=>{let[z]=N;z&&z.target===m&&S&&(S.unobserve(a),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var k;(k=S)==null||k.observe(a)})),l()}),m&&!p&&S.observe(m),S.observe(a));let C,_=p?Zr(n):null;p&&j();function j(){const N=Zr(n);_&&!lx(_,N)&&l(),_=N,C=requestAnimationFrame(j)}return l(),()=>{var N;v.forEach(z=>{s&&z.removeEventListener("scroll",l),u&&z.removeEventListener("resize",l)}),b?.(),(N=S)==null||N.disconnect(),S=null,p&&cancelAnimationFrame(C)}}const Bj=cj,$j=fj,Vj=oj,Yj=hj,qj=sj,zy=ij,Fj=dj,Kj=(n,a,l)=>{const i=new Map,s={platform:Uj,...l},u={...s.platform,_c:i};return lj(n,a,{...s,platform:u})};var Gj=typeof document<"u",Xj=function(){},cu=Gj?y.useLayoutEffect:Xj;function wu(n,a){if(n===a)return!0;if(typeof n!=typeof a)return!1;if(typeof n=="function"&&n.toString()===a.toString())return!0;let l,i,s;if(n&&a&&typeof n=="object"){if(Array.isArray(n)){if(l=n.length,l!==a.length)return!1;for(i=l;i--!==0;)if(!wu(n[i],a[i]))return!1;return!0}if(s=Object.keys(n),l=s.length,l!==Object.keys(a).length)return!1;for(i=l;i--!==0;)if(!{}.hasOwnProperty.call(a,s[i]))return!1;for(i=l;i--!==0;){const u=s[i];if(!(u==="_owner"&&n.$$typeof)&&!wu(n[u],a[u]))return!1}return!0}return n!==n&&a!==a}function ix(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Uy(n,a){const l=ix(n);return Math.round(a*l)/l}function Sd(n){const a=y.useRef(n);return cu(()=>{a.current=n}),a}function Qj(n){n===void 0&&(n={});const{placement:a="bottom",strategy:l="absolute",middleware:i=[],platform:s,elements:{reference:u,floating:f}={},transform:h=!0,whileElementsMounted:p,open:m}=n,[v,b]=y.useState({x:0,y:0,strategy:l,placement:a,middlewareData:{},isPositioned:!1}),[w,S]=y.useState(i);wu(w,i)||S(i);const[C,_]=y.useState(null),[j,N]=y.useState(null),z=y.useCallback(V=>{V!==R.current&&(R.current=V,_(V))},[]),k=y.useCallback(V=>{V!==B.current&&(B.current=V,N(V))},[]),H=u||C,D=f||j,R=y.useRef(null),B=y.useRef(null),Z=y.useRef(v),ne=p!=null,oe=Sd(p),le=Sd(s),J=Sd(m),te=y.useCallback(()=>{if(!R.current||!B.current)return;const V={placement:a,strategy:l,middleware:w};le.current&&(V.platform=le.current),Kj(R.current,B.current,V).then(ve=>{const O={...ve,isPositioned:J.current!==!1};W.current&&!wu(Z.current,O)&&(Z.current=O,Ou.flushSync(()=>{b(O)}))})},[w,a,l,le,J]);cu(()=>{m===!1&&Z.current.isPositioned&&(Z.current.isPositioned=!1,b(V=>({...V,isPositioned:!1})))},[m]);const W=y.useRef(!1);cu(()=>(W.current=!0,()=>{W.current=!1}),[]),cu(()=>{if(H&&(R.current=H),D&&(B.current=D),H&&D){if(oe.current)return oe.current(H,D,te);te()}},[H,D,te,oe,ne]);const ue=y.useMemo(()=>({reference:R,floating:B,setReference:z,setFloating:k}),[z,k]),A=y.useMemo(()=>({reference:H,floating:D}),[H,D]),Q=y.useMemo(()=>{const V={position:l,left:0,top:0};if(!A.floating)return V;const ve=Uy(A.floating,v.x),O=Uy(A.floating,v.y);return h?{...V,transform:"translate("+ve+"px, "+O+"px)",...ix(A.floating)>=1.5&&{willChange:"transform"}}:{position:l,left:ve,top:O}},[l,h,A.floating,v.x,v.y]);return y.useMemo(()=>({...v,update:te,refs:ue,elements:A,floatingStyles:Q}),[v,te,ue,A,Q])}const Zj=n=>{function a(l){return{}.hasOwnProperty.call(l,"current")}return{name:"arrow",options:n,fn(l){const{element:i,padding:s}=typeof n=="function"?n(l):n;return i&&a(i)?i.current!=null?zy({element:i.current,padding:s}).fn(l):{}:i?zy({element:i,padding:s}).fn(l):{}}}},Ij=(n,a)=>({...Bj(n),options:[n,a]}),Jj=(n,a)=>({...$j(n),options:[n,a]}),Wj=(n,a)=>({...Fj(n),options:[n,a]}),eO=(n,a)=>({...Vj(n),options:[n,a]}),tO=(n,a)=>({...Yj(n),options:[n,a]}),nO=(n,a)=>({...qj(n),options:[n,a]}),aO=(n,a)=>({...Zj(n),options:[n,a]});var rO="Arrow",ox=y.forwardRef((n,a)=>{const{children:l,width:i=10,height:s=5,...u}=n;return g.jsx(pt.svg,{...u,ref:a,width:i,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?l:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});ox.displayName=rO;var lO=ox,jh="Popper",[sx,ux]=Au(jh),[iO,cx]=sx(jh),fx=n=>{const{__scopePopper:a,children:l}=n,[i,s]=y.useState(null);return g.jsx(iO,{scope:a,anchor:i,onAnchorChange:s,children:l})};fx.displayName=jh;var dx="PopperAnchor",hx=y.forwardRef((n,a)=>{const{__scopePopper:l,virtualRef:i,...s}=n,u=cx(dx,l),f=y.useRef(null),h=vn(a,f);return y.useEffect(()=>{u.onAnchorChange(i?.current||f.current)}),i?null:g.jsx(pt.div,{...s,ref:h})});hx.displayName=dx;var Oh="PopperContent",[oO,sO]=sx(Oh),mx=y.forwardRef((n,a)=>{const{__scopePopper:l,side:i="bottom",sideOffset:s=0,align:u="center",alignOffset:f=0,arrowPadding:h=0,avoidCollisions:p=!0,collisionBoundary:m=[],collisionPadding:v=0,sticky:b="partial",hideWhenDetached:w=!1,updatePositionStrategy:S="optimized",onPlaced:C,..._}=n,j=cx(Oh,l),[N,z]=y.useState(null),k=vn(a,ye=>z(ye)),[H,D]=y.useState(null),R=Ob(H),B=R?.width??0,Z=R?.height??0,ne=i+(u!=="center"?"-"+u:""),oe=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},le=Array.isArray(m)?m:[m],J=le.length>0,te={padding:oe,boundary:le.filter(cO),altBoundary:J},{refs:W,floatingStyles:ue,placement:A,isPositioned:Q,middlewareData:V}=Qj({strategy:"fixed",placement:ne,whileElementsMounted:(...ye)=>Hj(...ye,{animationFrame:S==="always"}),elements:{reference:j.anchor},middleware:[Ij({mainAxis:s+Z,alignmentAxis:f}),p&&Jj({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?Wj():void 0,...te}),p&&eO({...te}),tO({...te,apply:({elements:ye,rects:Le,availableWidth:qe,availableHeight:Je})=>{const{width:At,height:Ie}=Le.reference,an=ye.floating.style;an.setProperty("--radix-popper-available-width",`${qe}px`),an.setProperty("--radix-popper-available-height",`${Je}px`),an.setProperty("--radix-popper-anchor-width",`${At}px`),an.setProperty("--radix-popper-anchor-height",`${Ie}px`)}}),H&&aO({element:H,padding:h}),fO({arrowWidth:B,arrowHeight:Z}),w&&nO({strategy:"referenceHidden",...te})]}),[ve,O]=vx(A),F=Zl(C);ir(()=>{Q&&F?.()},[Q,F]);const U=V.arrow?.x,K=V.arrow?.y,ae=V.arrow?.centerOffset!==0,[de,ge]=y.useState();return ir(()=>{N&&ge(window.getComputedStyle(N).zIndex)},[N]),g.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...ue,transform:Q?ue.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[V.transformOrigin?.x,V.transformOrigin?.y].join(" "),...V.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:g.jsx(oO,{scope:l,placedSide:ve,onArrowChange:D,arrowX:U,arrowY:K,shouldHideArrow:ae,children:g.jsx(pt.div,{"data-side":ve,"data-align":O,..._,ref:k,style:{..._.style,animation:Q?void 0:"none"}})})})});mx.displayName=Oh;var px="PopperArrow",uO={top:"bottom",right:"left",bottom:"top",left:"right"},gx=y.forwardRef(function(a,l){const{__scopePopper:i,...s}=a,u=sO(px,i),f=uO[u.placedSide];return g.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[f]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:g.jsx(lO,{...s,ref:l,style:{...s.style,display:"block"}})})});gx.displayName=px;function cO(n){return n!==null}var fO=n=>({name:"transformOrigin",options:n,fn(a){const{placement:l,rects:i,middlewareData:s}=a,f=s.arrow?.centerOffset!==0,h=f?0:n.arrowWidth,p=f?0:n.arrowHeight,[m,v]=vx(l),b={start:"0%",center:"50%",end:"100%"}[v],w=(s.arrow?.x??0)+h/2,S=(s.arrow?.y??0)+p/2;let C="",_="";return m==="bottom"?(C=f?b:`${w}px`,_=`${-p}px`):m==="top"?(C=f?b:`${w}px`,_=`${i.floating.height+p}px`):m==="right"?(C=`${-p}px`,_=f?b:`${S}px`):m==="left"&&(C=`${i.floating.width+p}px`,_=f?b:`${S}px`),{data:{x:C,y:_}}}});function vx(n){const[a,l="center"]=n.split("-");return[a,l]}var dO=fx,yx=hx,hO=mx,mO=gx,Bu="Popover",[bx,NT]=Au(Bu,[ux]),Ro=ux(),[pO,pr]=bx(Bu),xx=n=>{const{__scopePopover:a,children:l,open:i,defaultOpen:s,onOpenChange:u,modal:f=!1}=n,h=Ro(a),p=y.useRef(null),[m,v]=y.useState(!1),[b,w]=sh({prop:i,defaultProp:s??!1,onChange:u,caller:Bu});return g.jsx(dO,{...h,children:g.jsx(pO,{scope:a,contentId:Wn(),triggerRef:p,open:b,onOpenChange:w,onOpenToggle:y.useCallback(()=>w(S=>!S),[w]),hasCustomAnchor:m,onCustomAnchorAdd:y.useCallback(()=>v(!0),[]),onCustomAnchorRemove:y.useCallback(()=>v(!1),[]),modal:f,children:l})})};xx.displayName=Bu;var wx="PopoverAnchor",gO=y.forwardRef((n,a)=>{const{__scopePopover:l,...i}=n,s=pr(wx,l),u=Ro(l),{onCustomAnchorAdd:f,onCustomAnchorRemove:h}=s;return y.useEffect(()=>(f(),()=>h()),[f,h]),g.jsx(yx,{...u,...i,ref:a})});gO.displayName=wx;var Sx="PopoverTrigger",Ex=y.forwardRef((n,a)=>{const{__scopePopover:l,...i}=n,s=pr(Sx,l),u=Ro(l),f=vn(a,s.triggerRef),h=g.jsx(pt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":jx(s.open),...i,ref:f,onClick:nn(n.onClick,s.onOpenToggle)});return s.hasCustomAnchor?h:g.jsx(yx,{asChild:!0,...u,children:h})});Ex.displayName=Sx;var Ah="PopoverPortal",[vO,yO]=bx(Ah,{forceMount:void 0}),_x=n=>{const{__scopePopover:a,forceMount:l,children:i,container:s}=n,u=pr(Ah,a);return g.jsx(vO,{scope:a,forceMount:l,children:g.jsx(ei,{present:l||u.open,children:g.jsx(fh,{asChild:!0,container:s,children:i})})})};_x.displayName=Ah;var Jl="PopoverContent",Cx=y.forwardRef((n,a)=>{const l=yO(Jl,n.__scopePopover),{forceMount:i=l.forceMount,...s}=n,u=pr(Jl,n.__scopePopover);return g.jsx(ei,{present:i||u.open,children:u.modal?g.jsx(xO,{...s,ref:a}):g.jsx(wO,{...s,ref:a})})});Cx.displayName=Jl;var bO=Tu("PopoverContent.RemoveScroll"),xO=y.forwardRef((n,a)=>{const l=pr(Jl,n.__scopePopover),i=y.useRef(null),s=vn(a,i),u=y.useRef(!1);return y.useEffect(()=>{const f=i.current;if(f)return $0(f)},[]),g.jsx(dh,{as:bO,allowPinchZoom:!0,children:g.jsx(Nx,{...n,ref:s,trapFocus:l.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:nn(n.onCloseAutoFocus,f=>{f.preventDefault(),u.current||l.triggerRef.current?.focus()}),onPointerDownOutside:nn(n.onPointerDownOutside,f=>{const h=f.detail.originalEvent,p=h.button===0&&h.ctrlKey===!0,m=h.button===2||p;u.current=m},{checkForDefaultPrevented:!1}),onFocusOutside:nn(n.onFocusOutside,f=>f.preventDefault(),{checkForDefaultPrevented:!1})})})}),wO=y.forwardRef((n,a)=>{const l=pr(Jl,n.__scopePopover),i=y.useRef(!1),s=y.useRef(!1);return g.jsx(Nx,{...n,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{n.onCloseAutoFocus?.(u),u.defaultPrevented||(i.current||l.triggerRef.current?.focus(),u.preventDefault()),i.current=!1,s.current=!1},onInteractOutside:u=>{n.onInteractOutside?.(u),u.defaultPrevented||(i.current=!0,u.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const f=u.target;l.triggerRef.current?.contains(f)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&s.current&&u.preventDefault()}})}),Nx=y.forwardRef((n,a)=>{const{__scopePopover:l,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:u,disableOutsidePointerEvents:f,onEscapeKeyDown:h,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:v,...b}=n,w=pr(Jl,l),S=Ro(l);return M0(),g.jsx(ch,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:u,children:g.jsx(uh,{asChild:!0,disableOutsidePointerEvents:f,onInteractOutside:v,onEscapeKeyDown:h,onPointerDownOutside:p,onFocusOutside:m,onDismiss:()=>w.onOpenChange(!1),children:g.jsx(hO,{"data-state":jx(w.open),role:"dialog",id:w.contentId,...S,...b,ref:a,style:{...b.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Rx="PopoverClose",SO=y.forwardRef((n,a)=>{const{__scopePopover:l,...i}=n,s=pr(Rx,l);return g.jsx(pt.button,{type:"button",...i,ref:a,onClick:nn(n.onClick,()=>s.onOpenChange(!1))})});SO.displayName=Rx;var EO="PopoverArrow",_O=y.forwardRef((n,a)=>{const{__scopePopover:l,...i}=n,s=Ro(l);return g.jsx(mO,{...s,...i,ref:a})});_O.displayName=EO;function jx(n){return n?"open":"closed"}var CO=xx,NO=Ex,RO=_x,jO=Cx;function $u({...n}){return g.jsx(CO,{"data-slot":"popover",...n})}function Vu({...n}){return g.jsx(NO,{"data-slot":"popover-trigger",...n})}function Yu({className:n,align:a="center",sideOffset:l=4,...i}){return g.jsx(RO,{children:g.jsx(jO,{"data-slot":"popover-content",align:a,sideOffset:l,className:dt("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden animate-fade-in",n),...i})})}function An({options:n,value:a,onChange:l,placeholder:i="Select an option...",searchPlaceholder:s="Search...",emptyPlaceholder:u="No options found."}){const[f,h]=y.useState(!1),p=n.find(m=>m.value===a);return g.jsxs($u,{open:f,onOpenChange:h,children:[g.jsx(Vu,{asChild:!0,children:g.jsxs(Ae,{variant:"outline",role:"combobox","aria-expanded":f,className:"w-full justify-between transition-all-ease hover:scale-[1.02] active:scale-[0.98]",children:[p?p.label:i,g.jsx(ub,{className:"ml-2 h-4 w-4 shrink-0 opacity-50 transition-transform duration-200 group-data-[state=open]:rotate-180"})]})}),g.jsx(Yu,{className:"w-[--radix-popover-trigger-width] p-0 animate-fade-in",children:g.jsxs(qb,{children:[g.jsx(Fb,{placeholder:s}),g.jsxs(Kb,{children:[g.jsx(Gb,{children:u}),g.jsx(Xb,{children:n.map(m=>g.jsxs(Qb,{value:m.value,onSelect:v=>{l(v===a?"":v),h(!1)},className:"transition-all-ease hover:bg-accent hover:text-accent-foreground",children:[g.jsx(sb,{className:dt("mr-2 h-4 w-4 transition-opacity",a===m.value?"opacity-100":"opacity-0")}),m.label]},m.value))})]})]})})]})}class OO{baseUrl;apiKey;tempApiKey;constructor(a="/api",l=""){this.baseUrl=a,this.apiKey=l||localStorage.getItem("apiKey")||"",this.tempApiKey=new URLSearchParams(window.location.search).get("tempApiKey")}setBaseUrl(a){this.baseUrl=a}setApiKey(a){this.apiKey=a,a?localStorage.setItem("apiKey",a):localStorage.removeItem("apiKey")}setTempApiKey(a){this.tempApiKey=a}createHeaders(a="application/json"){const l={Accept:"application/json"};return this.tempApiKey?l["X-Temp-API-Key"]=this.tempApiKey:this.apiKey&&(l["X-API-Key"]=this.apiKey),a&&(l["Content-Type"]=a),l}async apiFetch(a,l={}){const i=`${this.baseUrl}${a}`,s={...l,headers:{...this.createHeaders(),...l.headers}};try{const u=await fetch(i,s);if(u.status===401)return localStorage.removeItem("apiKey"),window.dispatchEvent(new CustomEvent("unauthorized")),new Promise(()=>{});if(!u.ok)throw new Error(`API request failed: ${u.status} ${u.statusText}`);if(u.status===204)return{};const f=await u.text();return f?JSON.parse(f):{}}catch(u){throw console.error("API request error:",u),u}}async get(a){return this.apiFetch(a,{method:"GET"})}async post(a,l){return this.apiFetch(a,{method:"POST",body:JSON.stringify(l)})}async put(a,l){return this.apiFetch(a,{method:"PUT",body:JSON.stringify(l)})}async delete(a){return this.apiFetch(a,{method:"DELETE"})}async getConfig(){return this.get("/config")}async updateConfig(a){return this.post("/config",a)}async getProviders(){return this.get("/api/providers")}async addProvider(a){return this.post("/api/providers",a)}async updateProvider(a,l){return this.post(`/api/providers/${a}`,l)}async deleteProvider(a){return this.delete(`/api/providers/${a}`)}async getTransformers(){return this.get("/api/transformers")}async addTransformer(a){return this.post("/api/transformers",a)}async updateTransformer(a,l){return this.post(`/api/transformers/${a}`,l)}async deleteTransformer(a){return this.delete(`/api/transformers/${a}`)}async getConfigNew(){return this.get("/config")}async saveConfig(a){return this.post("/config",a)}async restartService(){return this.post("/restart",{})}async checkForUpdates(){return this.get("/update/check")}async performUpdate(){return this.post("/api/update/perform",{})}}const Qt=new OO,Ox=y.createContext(void 0);function Jr(){const n=y.useContext(Ox);if(n===void 0)throw new Error("useConfig must be used within a ConfigProvider");return n}function AO({children:n}){const[a,l]=y.useState(null),[i,s]=y.useState(null),[u,f]=y.useState(!1),[h,p]=y.useState(localStorage.getItem("apiKey"));return y.useEffect(()=>{const m=()=>{p(localStorage.getItem("apiKey"))};return window.addEventListener("storage",m),()=>{window.removeEventListener("storage",m)}},[]),y.useEffect(()=>{(async()=>{f(!1),l(null),s(null)})()},[h]),y.useEffect(()=>{(async()=>{if(!u){f(!0);try{const v=await Qt.getConfig(),b={LOG:typeof v.LOG=="boolean"?v.LOG:!1,LOG_LEVEL:typeof v.LOG_LEVEL=="string"?v.LOG_LEVEL:"debug",CLAUDE_PATH:typeof v.CLAUDE_PATH=="string"?v.CLAUDE_PATH:"",HOST:typeof v.HOST=="string"?v.HOST:"127.0.0.1",PORT:typeof v.PORT=="number"?v.PORT:3456,APIKEY:typeof v.APIKEY=="string"?v.APIKEY:"",API_TIMEOUT_MS:typeof v.API_TIMEOUT_MS=="string"?v.API_TIMEOUT_MS:"600000",PROXY_URL:typeof v.PROXY_URL=="string"?v.PROXY_URL:"",transformers:Array.isArray(v.transformers)?v.transformers:[],Providers:Array.isArray(v.Providers)?v.Providers:[],StatusLine:v.StatusLine&&typeof v.StatusLine=="object"?{enabled:typeof v.StatusLine.enabled=="boolean"?v.StatusLine.enabled:!1,currentStyle:typeof v.StatusLine.currentStyle=="string"?v.StatusLine.currentStyle:"default",default:v.StatusLine.default&&typeof v.StatusLine.default=="object"&&Array.isArray(v.StatusLine.default.modules)?v.StatusLine.default:{modules:[]},powerline:v.StatusLine.powerline&&typeof v.StatusLine.powerline=="object"&&Array.isArray(v.StatusLine.powerline.modules)?v.StatusLine.powerline:{modules:[]}}:{enabled:!1,currentStyle:"default",default:{modules:[]},powerline:{modules:[]}},Router:v.Router&&typeof v.Router=="object"?{default:typeof v.Router.default=="string"?v.Router.default:"",background:typeof v.Router.background=="string"?v.Router.background:"",think:typeof v.Router.think=="string"?v.Router.think:"",longContext:typeof v.Router.longContext=="string"?v.Router.longContext:"",longContextThreshold:typeof v.Router.longContextThreshold=="number"?v.Router.longContextThreshold:6e4,webSearch:typeof v.Router.webSearch=="string"?v.Router.webSearch:"",image:typeof v.Router.image=="string"?v.Router.image:""}:{default:"",background:"",think:"",longContext:"",longContextThreshold:6e4,webSearch:"",image:""},CUSTOM_ROUTER_PATH:typeof v.CUSTOM_ROUTER_PATH=="string"?v.CUSTOM_ROUTER_PATH:""};l(b)}catch(v){console.error("Failed to fetch config:",v),v.message!=="Unauthorized"&&(l({LOG:!1,LOG_LEVEL:"debug",CLAUDE_PATH:"",HOST:"127.0.0.1",PORT:3456,APIKEY:"",API_TIMEOUT_MS:"600000",PROXY_URL:"",transformers:[],Providers:[],StatusLine:void 0,Router:{default:"",background:"",think:"",longContext:"",longContextThreshold:6e4,webSearch:"",image:""},CUSTOM_ROUTER_PATH:""}),s(v))}}})()},[u,h]),g.jsx(Ox.Provider,{value:{config:a,setConfig:l,error:i},children:n})}function qu(){return(qu=Object.assign||function(n){for(var a=1;a<arguments.length;a++){var l=arguments[a];for(var i in l)Object.prototype.hasOwnProperty.call(l,i)&&(n[i]=l[i])}return n}).apply(this,arguments)}function Ax(n,a){if(n==null)return{};var l,i,s={},u=Object.keys(n);for(i=0;i<u.length;i++)a.indexOf(l=u[i])>=0||(s[l]=n[l]);return s}function Qd(n){var a=y.useRef(n),l=y.useRef(function(i){a.current&&a.current(i)});return a.current=n,l.current}var wo=function(n,a,l){return a===void 0&&(a=0),l===void 0&&(l=1),n>l?l:n<a?a:n},ho=function(n){return"touches"in n},Zd=function(n){return n&&n.ownerDocument.defaultView||self},Py=function(n,a,l){var i=n.getBoundingClientRect(),s=ho(a)?function(u,f){for(var h=0;h<u.length;h++)if(u[h].identifier===f)return u[h];return u[0]}(a.touches,l):a;return{left:wo((s.pageX-(i.left+Zd(n).pageXOffset))/i.width),top:wo((s.pageY-(i.top+Zd(n).pageYOffset))/i.height)}},Hy=function(n){!ho(n)&&n.preventDefault()},Tx=mt.memo(function(n){var a=n.onMove,l=n.onKey,i=Ax(n,["onMove","onKey"]),s=y.useRef(null),u=Qd(a),f=Qd(l),h=y.useRef(null),p=y.useRef(!1),m=y.useMemo(function(){var S=function(j){Hy(j),(ho(j)?j.touches.length>0:j.buttons>0)&&s.current?u(Py(s.current,j,h.current)):_(!1)},C=function(){return _(!1)};function _(j){var N=p.current,z=Zd(s.current),k=j?z.addEventListener:z.removeEventListener;k(N?"touchmove":"mousemove",S),k(N?"touchend":"mouseup",C)}return[function(j){var N=j.nativeEvent,z=s.current;if(z&&(Hy(N),!function(H,D){return D&&!ho(H)}(N,p.current)&&z)){if(ho(N)){p.current=!0;var k=N.changedTouches||[];k.length&&(h.current=k[0].identifier)}z.focus(),u(Py(z,N,h.current)),_(!0)}},function(j){var N=j.which||j.keyCode;N<37||N>40||(j.preventDefault(),f({left:N===39?.05:N===37?-.05:0,top:N===40?.05:N===38?-.05:0}))},_]},[f,u]),v=m[0],b=m[1],w=m[2];return y.useEffect(function(){return w},[w]),mt.createElement("div",qu({},i,{onTouchStart:v,onMouseDown:v,className:"react-colorful__interactive",ref:s,onKeyDown:b,tabIndex:0,role:"slider"}))}),Th=function(n){return n.filter(Boolean).join(" ")},Mx=function(n){var a=n.color,l=n.left,i=n.top,s=i===void 0?.5:i,u=Th(["react-colorful__pointer",n.className]);return mt.createElement("div",{className:u,style:{top:100*s+"%",left:100*l+"%"}},mt.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:a}}))},Vt=function(n,a,l){return a===void 0&&(a=0),l===void 0&&(l=Math.pow(10,a)),Math.round(l*n)/l},TO=function(n){return zO(Id(n))},Id=function(n){return n[0]==="#"&&(n=n.substring(1)),n.length<6?{r:parseInt(n[0]+n[0],16),g:parseInt(n[1]+n[1],16),b:parseInt(n[2]+n[2],16),a:n.length===4?Vt(parseInt(n[3]+n[3],16)/255,2):1}:{r:parseInt(n.substring(0,2),16),g:parseInt(n.substring(2,4),16),b:parseInt(n.substring(4,6),16),a:n.length===8?Vt(parseInt(n.substring(6,8),16)/255,2):1}},MO=function(n){return kO(LO(n))},DO=function(n){var a=n.s,l=n.v,i=n.a,s=(200-a)*l/100;return{h:Vt(n.h),s:Vt(s>0&&s<200?a*l/100/(s<=100?s:200-s)*100:0),l:Vt(s/2),a:Vt(i,2)}},Jd=function(n){var a=DO(n);return"hsl("+a.h+", "+a.s+"%, "+a.l+"%)"},LO=function(n){var a=n.h,l=n.s,i=n.v,s=n.a;a=a/360*6,l/=100,i/=100;var u=Math.floor(a),f=i*(1-l),h=i*(1-(a-u)*l),p=i*(1-(1-a+u)*l),m=u%6;return{r:Vt(255*[i,h,f,f,p,i][m]),g:Vt(255*[p,i,i,h,f,f][m]),b:Vt(255*[f,f,p,i,i,h][m]),a:Vt(s,2)}},tu=function(n){var a=n.toString(16);return a.length<2?"0"+a:a},kO=function(n){var a=n.r,l=n.g,i=n.b,s=n.a,u=s<1?tu(Vt(255*s)):"";return"#"+tu(a)+tu(l)+tu(i)+u},zO=function(n){var a=n.r,l=n.g,i=n.b,s=n.a,u=Math.max(a,l,i),f=u-Math.min(a,l,i),h=f?u===a?(l-i)/f:u===l?2+(i-a)/f:4+(a-l)/f:0;return{h:Vt(60*(h<0?h+6:h)),s:Vt(u?f/u*100:0),v:Vt(u/255*100),a:s}},UO=mt.memo(function(n){var a=n.hue,l=n.onChange,i=Th(["react-colorful__hue",n.className]);return mt.createElement("div",{className:i},mt.createElement(Tx,{onMove:function(s){l({h:360*s.left})},onKey:function(s){l({h:wo(a+360*s.left,0,360)})},"aria-label":"Hue","aria-valuenow":Vt(a),"aria-valuemax":"360","aria-valuemin":"0"},mt.createElement(Mx,{className:"react-colorful__hue-pointer",left:a/360,color:Jd({h:a,s:100,v:100,a:1})})))}),PO=mt.memo(function(n){var a=n.hsva,l=n.onChange,i={backgroundColor:Jd({h:a.h,s:100,v:100,a:1})};return mt.createElement("div",{className:"react-colorful__saturation",style:i},mt.createElement(Tx,{onMove:function(s){l({s:100*s.left,v:100-100*s.top})},onKey:function(s){l({s:wo(a.s+100*s.left,0,100),v:wo(a.v-100*s.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Vt(a.s)+"%, Brightness "+Vt(a.v)+"%"},mt.createElement(Mx,{className:"react-colorful__saturation-pointer",top:1-a.v/100,left:a.s/100,color:Jd(a)})))}),Dx=function(n,a){if(n===a)return!0;for(var l in n)if(n[l]!==a[l])return!1;return!0},HO=function(n,a){return n.toLowerCase()===a.toLowerCase()||Dx(Id(n),Id(a))};function BO(n,a,l){var i=Qd(l),s=y.useState(function(){return n.toHsva(a)}),u=s[0],f=s[1],h=y.useRef({color:a,hsva:u});y.useEffect(function(){if(!n.equal(a,h.current.color)){var m=n.toHsva(a);h.current={hsva:m,color:a},f(m)}},[a,n]),y.useEffect(function(){var m;Dx(u,h.current.hsva)||n.equal(m=n.fromHsva(u),h.current.color)||(h.current={hsva:u,color:m},i(m))},[u,n,i]);var p=y.useCallback(function(m){f(function(v){return Object.assign({},v,m)})},[]);return[u,p]}var $O=typeof window<"u"?y.useLayoutEffect:y.useEffect,VO=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},By=new Map,YO=function(n){$O(function(){var a=n.current?n.current.ownerDocument:document;if(a!==void 0&&!By.has(a)){var l=a.createElement("style");l.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,By.set(a,l);var i=VO();i&&l.setAttribute("nonce",i),a.head.appendChild(l)}},[])},qO=function(n){var a=n.className,l=n.colorModel,i=n.color,s=i===void 0?l.defaultColor:i,u=n.onChange,f=Ax(n,["className","colorModel","color","onChange"]),h=y.useRef(null);YO(h);var p=BO(l,s,u),m=p[0],v=p[1],b=Th(["react-colorful",a]);return mt.createElement("div",qu({},f,{ref:h,className:b}),mt.createElement(PO,{hsva:m,onChange:v}),mt.createElement(UO,{hue:m.h,onChange:v,className:"react-colorful__last-control"}))},FO={defaultColor:"000",toHsva:TO,fromHsva:function(n){return MO({h:n.h,s:n.s,v:n.v,a:1})},equal:HO},KO=function(n){return mt.createElement(qO,qu({},n,{colorModel:FO}))};const GO=n=>n.startsWith("#")?n:"#000000";function $y({value:n="",onChange:a,placeholder:l="选择颜色...",showPreview:i=!0}){const[s,u]=y.useState(!1),[f,h]=y.useState("");y.useEffect(()=>{n.startsWith("#")?h(n):h("")},[n]);const p=b=>{a(b)},m=b=>{const w=b.target.value;h(w),/^#[0-9A-F]{6}$/i.test(w)&&p(w)},v=GO(n);return g.jsx("div",{className:"space-y-2",children:g.jsxs($u,{open:s,onOpenChange:u,children:[g.jsx(Vu,{asChild:!0,children:g.jsx(Ae,{variant:"outline",className:dt("w-full justify-start text-left font-normal h-10 transition-all hover:scale-[1.02] active:scale-[0.98]",!n&&"text-muted-foreground"),children:g.jsxs("div",{className:"flex items-center gap-2 w-full",children:[i&&g.jsx("div",{className:"h-5 w-5 rounded border shadow-sm",style:{backgroundColor:v}}),g.jsx("span",{className:"truncate flex-1",children:n||l}),g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[g.jsx("path",{d:"m7 15 5 5 5-5"}),g.jsx("path",{d:"m7 9 5-5 5 5"})]})]})})}),g.jsx(Yu,{className:"w-72 p-3",align:"start",children:g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("h4",{className:"text-sm font-semibold",children:"颜色选择器"}),g.jsx(Ae,{variant:"ghost",size:"sm",className:"h-6 px-2 text-xs",onClick:()=>p(""),children:"清除"})]}),g.jsxs("div",{className:"flex items-center gap-2 p-2 rounded-md bg-secondary",children:[g.jsx("div",{className:"h-8 w-8 rounded border shadow-sm",style:{backgroundColor:v}}),g.jsxs("div",{className:"flex-1 min-w-0",children:[g.jsx("div",{className:"text-sm font-medium truncate",children:n||"未选择颜色"}),n&&n.startsWith("#")&&g.jsx("div",{className:"text-xs text-muted-foreground font-mono",children:n.toUpperCase()})]})]}),g.jsx("div",{className:"rounded-md overflow-hidden border",children:g.jsx(KO,{color:v,onChange:p,className:"w-full"})}),g.jsxs("div",{className:"space-y-2",children:[g.jsx("label",{className:"text-sm font-medium",children:"自定义颜色"}),g.jsxs("div",{className:"flex gap-2",children:[g.jsx(ft,{type:"text",value:f,onChange:m,placeholder:"#RRGGBB",className:"font-mono flex-1"}),g.jsx(Ae,{size:"sm",onClick:()=>{f&&/^#[0-9A-F]{6}$/i.test(f)&&(p(f),u(!1))},disabled:!f||!/^#[0-9A-F]{6}$/i.test(f),children:"应用"})]}),g.jsx("p",{className:"text-xs text-muted-foreground",children:"输入十六进制颜色值 (例如: #FF0000)"})]})]})})]})})}const XO=bh("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function $r({className:n,variant:a,...l}){return g.jsx("div",{className:dt(XO({variant:a}),n),...l})}function QO(){return{enabled:!1,currentStyle:"default",default:{modules:[{type:"workDir",icon:"󰉋",text:"{{workDirName}}",color:"bright_blue"},{type:"gitBranch",icon:"",text:"{{gitBranch}}",color:"bright_magenta"},{type:"model",icon:"󰚩",text:"{{model}}",color:"bright_cyan"},{type:"usage",icon:"↑",text:"{{inputTokens}}",color:"bright_green"},{type:"usage",icon:"↓",text:"{{outputTokens}}",color:"bright_yellow"}]},powerline:{modules:[{type:"workDir",icon:"󰉋",text:"{{workDirName}}",color:"white",background:"bg_bright_blue"},{type:"gitBranch",icon:"",text:"{{gitBranch}}",color:"white",background:"bg_bright_magenta"},{type:"model",icon:"󰚩",text:"{{model}}",color:"white",background:"bg_bright_cyan"},{type:"usage",icon:"↑",text:"{{inputTokens}}",color:"white",background:"bg_bright_green"},{type:"usage",icon:"↓",text:"{{outputTokens}}",color:"white",background:"bg_bright_yellow"}]}}}const ZO={type:"workDir",icon:"󰉋",text:"{{workDirName}}",color:"bright_blue"},IO=[{label:"Hack Nerd Font Mono",value:"Hack Nerd Font Mono"},{label:"FiraCode Nerd Font Mono",value:"FiraCode Nerd Font Mono"},{label:"JetBrainsMono Nerd Font Mono",value:"JetBrainsMono Nerd Font Mono"},{label:"Monaspace Nerd Font Mono",value:"Monaspace Nerd Font Mono"},{label:"UbuntuMono Nerd Font",value:"UbuntuMono Nerd Font"}],JO=[{label:"workDir",value:"workDir"},{label:"gitBranch",value:"gitBranch"},{label:"model",value:"model"},{label:"usage",value:"usage"},{label:"script",value:"script"}],Ed={black:"text-black",red:"text-red-600",green:"text-green-600",yellow:"text-yellow-500",blue:"text-blue-500",magenta:"text-purple-500",cyan:"text-cyan-500",white:"text-white",bright_black:"text-gray-500",bright_red:"text-red-400",bright_green:"text-green-400",bright_yellow:"text-yellow-300",bright_blue:"text-blue-300",bright_magenta:"text-purple-300",bright_cyan:"text-cyan-300",bright_white:"text-white",bg_black:"bg-black",bg_red:"bg-red-600",bg_green:"bg-green-600",bg_yellow:"bg-yellow-500",bg_blue:"bg-blue-500",bg_magenta:"bg-purple-500",bg_cyan:"bg-cyan-500",bg_white:"bg-white",bg_bright_black:"bg-gray-800",bg_bright_red:"bg-red-400",bg_bright_green:"bg-green-400",bg_bright_yellow:"bg-yellow-300",bg_bright_blue:"bg-blue-300",bg_bright_magenta:"bg-purple-300",bg_bright_cyan:"bg-cyan-300",bg_bright_white:"bg-gray-100",bg_bright_orange:"bg-orange-400",bg_bright_purple:"bg-purple-400"},WO=mt.memo(({value:n,onChange:a,fontFamily:l,t:i})=>{const[s,u]=y.useState(!1),[f,h]=y.useState(n),[p,m]=y.useState([]),[v,b]=y.useState([]),[w,S]=y.useState(!1),C=mt.useRef(null),_=y.useCallback(async()=>{if(!(p.length>0)){S(!0);try{const R=await(await fetch("https://www.nerdfonts.com/assets/css/combo.css")).text(),B=/\.nf-([a-zA-Z0-9_-]+):before\s*\{\s*content:\s*"\\([0-9a-fA-F]+)";?\s*\}/g,Z=[];let ne;for(;(ne=B.exec(R))!==null;){const oe=`nf-${ne[1]}`,le=ne[2],J=String.fromCharCode(parseInt(le,16));Z.push({className:oe,unicode:le,char:J})}m(Z),b(Z.slice(0,200))}catch(D){console.error("Failed to load icons:",D),m([]),b([])}finally{S(!1)}}},[p.length]);y.useEffect(()=>{if(f.trim()===""){b(p.slice(0,100));return}const D=f.toLowerCase();let R=p;if(D.length===1||/[\u{2000}-\u{2FFFF}]/u.test(f)){const B=p.find(Z=>Z.char===f);B?R=[B]:R=p.filter(Z=>Z.char===f)}else R=p.filter(B=>{const Z=B.className.toLowerCase(),ne=Z.replace(/[_-]/g,""),oe=D.replace(/[_-]/g,"");return Z.includes(D)||ne.includes(oe)||D.split(" ").every(le=>Z.includes(le)||ne.includes(le))});b(R.slice(0,120))},[f,p]);const j=D=>{const R=D.target.value;h(R),a(R),u(!0),p.length===0&&_()},N=D=>{const R=D.clipboardData.getData("text");R&&R.length===1&&setTimeout(()=>{u(!0)},10)},z=D=>{h(D),a(D),u(!1),C.current?.focus()},k=()=>{u(!0),p.length===0&&_()},H=()=>{setTimeout(()=>u(!1),200)};return g.jsxs("div",{className:"relative",children:[g.jsx("div",{className:"relative",children:g.jsx(ft,{ref:C,value:f,onChange:j,onFocus:k,onBlur:H,onPaste:N,placeholder:i("statusline.icon_placeholder"),style:{fontFamily:l+", monospace"},className:"text-lg pr-2"})}),s&&g.jsx("div",{className:"absolute z-50 mt-1 w-full max-h-72 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg",children:w?g.jsx("div",{className:"flex items-center justify-center p-8",children:g.jsxs("svg",{className:"animate-spin h-6 w-6 text-primary",viewBox:"0 0 24 24",children:[g.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none",opacity:"0.1"}),g.jsx("path",{fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}):g.jsx(g.Fragment,{children:g.jsxs("div",{className:"grid grid-cols-5 gap-2 p-2 max-h-72 overflow-y-auto",children:[v.map(D=>g.jsx("div",{className:"flex items-center justify-center p-3 text-2xl cursor-pointer hover:bg-secondary rounded transition-colors",onClick:()=>z(D.char),onMouseDown:R=>R.preventDefault(),title:`${D.char} - ${D.className}`,style:{fontFamily:l+", monospace"},children:D.char},D.className)),v.length===0&&g.jsxs("div",{className:"col-span-5 flex flex-col items-center justify-center p-8 text-muted-foreground",children:[g.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"mb-2",children:[g.jsx("circle",{cx:"11",cy:"11",r:"8"}),g.jsx("path",{d:"m21 21-4.35-4.35"})]}),g.jsx("div",{className:"text-sm",children:f?`${i("statusline.no_icons_found")} "${f}"`:i("statusline.no_icons_available")})]})]})})})]})});function eA(n,a){return n.replace(/\{\{(\w+)\}\}/g,(l,i)=>a[i]||l)}function tA(n,a=!1){const l={workDirName:"project",gitBranch:"main",model:"Claude Sonnet 4",inputTokens:"1.2k",outputTokens:"2.5k"},i=eA(n.text,l),s=n.icon||"";if(!i&&n.type!=="usage")return null;const u=p=>/^#[0-9A-F]{6}$/i.test(p);if(a){let p={},m="",v="";n.background&&(u(n.background)?(p={backgroundColor:n.background},v=n.background):(m=Ed[n.background]||"",v=n.background));let b={},w="";return n.color?u(n.color)?b={color:n.color}:w=Ed[n.color]||"text-white":w="text-white",g.jsxs("div",{className:`powerline-module px-4 ${m} ${w}`,style:{...p,...b},children:[g.jsxs("div",{className:"powerline-module-content",children:[s&&g.jsx("span",{children:s}),g.jsx("span",{children:i})]}),g.jsx("div",{className:"powerline-separator","data-current-bg":v})]})}let f={},h="";return n.color&&(u(n.color)?f={color:n.color}:h=Ed[n.color]||""),g.jsxs(g.Fragment,{children:[s&&g.jsx("span",{style:f,className:h,children:s}),g.jsx("span",{style:f,className:h,children:i})]})}function nA({isOpen:n,onOpenChange:a}){const{t:l}=hr(),{config:i,setConfig:s}=Jr(),[u,f]=y.useState(i?.StatusLine||QO()),[h,p]=y.useState(i?.StatusLine?.fontFamily||"Hack Nerd Font Mono"),[m,v]=y.useState(null),[b,w]=y.useState(new Set);y.useEffect(()=>{const le=document.createElement("style");return le.innerHTML=`
221
+ */const BN=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],bh=xt("refresh-cw",BN);/**
222
+ * @license lucide-react v0.525.0 - ISC
223
+ *
224
+ * This source code is licensed under the ISC license.
225
+ * See the LICENSE file in the root directory of this source tree.
226
+ */const $N=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],hb=xt("save",$N);/**
227
+ * @license lucide-react v0.525.0 - ISC
228
+ *
229
+ * This source code is licensed under the ISC license.
230
+ * See the LICENSE file in the root directory of this source tree.
231
+ */const VN=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],mb=xt("search",VN);/**
232
+ * @license lucide-react v0.525.0 - ISC
233
+ *
234
+ * This source code is licensed under the ISC license.
235
+ * See the LICENSE file in the root directory of this source tree.
236
+ */const qN=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],FN=xt("settings",qN);/**
237
+ * @license lucide-react v0.525.0 - ISC
238
+ *
239
+ * This source code is licensed under the ISC license.
240
+ * See the LICENSE file in the root directory of this source tree.
241
+ */const YN=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],sr=xt("trash-2",YN);/**
242
+ * @license lucide-react v0.525.0 - ISC
243
+ *
244
+ * This source code is licensed under the ISC license.
245
+ * See the LICENSE file in the root directory of this source tree.
246
+ */const GN=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Yr=xt("x",GN);function pb(n){var a,l,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var s=n.length;for(a=0;a<s;a++)n[a]&&(l=pb(n[a]))&&(i&&(i+=" "),i+=l)}else for(l in n)n[l]&&(i&&(i+=" "),i+=l);return i}function gb(){for(var n,a,l=0,i="",s=arguments.length;l<s;l++)(n=arguments[l])&&(a=pb(n))&&(i&&(i+=" "),i+=a);return i}const xh="-",KN=n=>{const a=QN(n),{conflictingClassGroups:l,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:f=>{const h=f.split(xh);return h[0]===""&&h.length!==1&&h.shift(),vb(h,a)||XN(f)},getConflictingClassGroupIds:(f,h)=>{const p=l[f]||[];return h&&i[f]?[...p,...i[f]]:p}}},vb=(n,a)=>{if(n.length===0)return a.classGroupId;const l=n[0],i=a.nextPart.get(l),s=i?vb(n.slice(1),i):void 0;if(s)return s;if(a.validators.length===0)return;const c=n.join(xh);return a.validators.find(({validator:f})=>f(c))?.classGroupId},wy=/^\[(.+)\]$/,XN=n=>{if(wy.test(n)){const a=wy.exec(n)[1],l=a?.substring(0,a.indexOf(":"));if(l)return"arbitrary.."+l}},QN=n=>{const{theme:a,classGroups:l}=n,i={nextPart:new Map,validators:[]};for(const s in l)$d(l[s],i,s,a);return i},$d=(n,a,l,i)=>{n.forEach(s=>{if(typeof s=="string"){const c=s===""?a:Sy(a,s);c.classGroupId=l;return}if(typeof s=="function"){if(IN(s)){$d(s(i),a,l,i);return}a.validators.push({validator:s,classGroupId:l});return}Object.entries(s).forEach(([c,f])=>{$d(f,Sy(a,c),l,i)})})},Sy=(n,a)=>{let l=n;return a.split(xh).forEach(i=>{l.nextPart.has(i)||l.nextPart.set(i,{nextPart:new Map,validators:[]}),l=l.nextPart.get(i)}),l},IN=n=>n.isThemeGetter,ZN=n=>{if(n<1)return{get:()=>{},set:()=>{}};let a=0,l=new Map,i=new Map;const s=(c,f)=>{l.set(c,f),a++,a>n&&(a=0,i=l,l=new Map)};return{get(c){let f=l.get(c);if(f!==void 0)return f;if((f=i.get(c))!==void 0)return s(c,f),f},set(c,f){l.has(c)?l.set(c,f):s(c,f)}}},Vd="!",qd=":",JN=qd.length,WN=n=>{const{prefix:a,experimentalParseClassName:l}=n;let i=s=>{const c=[];let f=0,h=0,p=0,m;for(let C=0;C<s.length;C++){let E=s[C];if(f===0&&h===0){if(E===qd){c.push(s.slice(p,C)),p=C+JN;continue}if(E==="/"){m=C;continue}}E==="["?f++:E==="]"?f--:E==="("?h++:E===")"&&h--}const v=c.length===0?s:s.substring(p),b=eR(v),w=b!==v,S=m&&m>p?m-p:void 0;return{modifiers:c,hasImportantModifier:w,baseClassName:b,maybePostfixModifierPosition:S}};if(a){const s=a+qd,c=i;i=f=>f.startsWith(s)?c(f.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:f,maybePostfixModifierPosition:void 0}}if(l){const s=i;i=c=>l({className:c,parseClassName:s})}return i},eR=n=>n.endsWith(Vd)?n.substring(0,n.length-1):n.startsWith(Vd)?n.substring(1):n,tR=n=>{const a=Object.fromEntries(n.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const s=[];let c=[];return i.forEach(f=>{f[0]==="["||a[f]?(s.push(...c.sort(),f),c=[]):c.push(f)}),s.push(...c.sort()),s}},nR=n=>({cache:ZN(n.cacheSize),parseClassName:WN(n),sortModifiers:tR(n),...KN(n)}),aR=/\s+/,rR=(n,a)=>{const{parseClassName:l,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:c}=a,f=[],h=n.trim().split(aR);let p="";for(let m=h.length-1;m>=0;m-=1){const v=h[m],{isExternal:b,modifiers:w,hasImportantModifier:S,baseClassName:C,maybePostfixModifierPosition:E}=l(v);if(b){p=v+(p.length>0?" "+p:p);continue}let j=!!E,R=i(j?C.substring(0,E):C);if(!R){if(!j){p=v+(p.length>0?" "+p:p);continue}if(R=i(C),!R){p=v+(p.length>0?" "+p:p);continue}j=!1}const L=c(w).join(":"),k=S?L+Vd:L,H=k+R;if(f.includes(H))continue;f.push(H);const M=s(R,j);for(let N=0;N<M.length;++N){const B=M[N];f.push(k+B)}p=v+(p.length>0?" "+p:p)}return p};function lR(){let n=0,a,l,i="";for(;n<arguments.length;)(a=arguments[n++])&&(l=yb(a))&&(i&&(i+=" "),i+=l);return i}const yb=n=>{if(typeof n=="string")return n;let a,l="";for(let i=0;i<n.length;i++)n[i]&&(a=yb(n[i]))&&(l&&(l+=" "),l+=a);return l};function iR(n,...a){let l,i,s,c=f;function f(p){const m=a.reduce((v,b)=>b(v),n());return l=nR(m),i=l.cache.get,s=l.cache.set,c=h,h(p)}function h(p){const m=i(p);if(m)return m;const v=rR(p,l);return s(p,v),v}return function(){return c(lR.apply(null,arguments))}}const Lt=n=>{const a=l=>l[n]||[];return a.isThemeGetter=!0,a},bb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,xb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,oR=/^\d+\/\d+$/,sR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,cR=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,uR=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,fR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,dR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Vl=n=>oR.test(n),qe=n=>!!n&&!Number.isNaN(Number(n)),tr=n=>!!n&&Number.isInteger(Number(n)),vd=n=>n.endsWith("%")&&qe(n.slice(0,-1)),Sa=n=>sR.test(n),hR=()=>!0,mR=n=>cR.test(n)&&!uR.test(n),wb=()=>!1,pR=n=>fR.test(n),gR=n=>dR.test(n),vR=n=>!xe(n)&&!we(n),yR=n=>ti(n,Eb,wb),xe=n=>bb.test(n),Br=n=>ti(n,Cb,mR),yd=n=>ti(n,_R,qe),_y=n=>ti(n,Sb,wb),bR=n=>ti(n,_b,gR),Js=n=>ti(n,Nb,pR),we=n=>xb.test(n),oo=n=>ni(n,Cb),xR=n=>ni(n,ER),Ey=n=>ni(n,Sb),wR=n=>ni(n,Eb),SR=n=>ni(n,_b),Ws=n=>ni(n,Nb,!0),ti=(n,a,l)=>{const i=bb.exec(n);return i?i[1]?a(i[1]):l(i[2]):!1},ni=(n,a,l=!1)=>{const i=xb.exec(n);return i?i[1]?a(i[1]):l:!1},Sb=n=>n==="position"||n==="percentage",_b=n=>n==="image"||n==="url",Eb=n=>n==="length"||n==="size"||n==="bg-size",Cb=n=>n==="length",_R=n=>n==="number",ER=n=>n==="family-name",Nb=n=>n==="shadow",CR=()=>{const n=Lt("color"),a=Lt("font"),l=Lt("text"),i=Lt("font-weight"),s=Lt("tracking"),c=Lt("leading"),f=Lt("breakpoint"),h=Lt("container"),p=Lt("spacing"),m=Lt("radius"),v=Lt("shadow"),b=Lt("inset-shadow"),w=Lt("text-shadow"),S=Lt("drop-shadow"),C=Lt("blur"),E=Lt("perspective"),j=Lt("aspect"),R=Lt("ease"),L=Lt("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],M=()=>[...H(),we,xe],N=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],J=()=>[we,xe,p],te=()=>[Vl,"full","auto",...J()],ae=()=>[tr,"none","subgrid",we,xe],re=()=>["auto",{span:["full",tr,we,xe]},tr,we,xe],fe=()=>[tr,"auto",we,xe],de=()=>["auto","min","max","fr",we,xe],Q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ee=()=>["start","end","center","stretch","center-safe","end-safe"],A=()=>["auto",...J()],X=()=>[Vl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...J()],V=()=>[n,we,xe],ye=()=>[...H(),Ey,_y,{position:[we,xe]}],O=()=>["no-repeat",{repeat:["","x","y","space","round"]}],G=()=>["auto","cover","contain",wR,yR,{size:[we,xe]}],U=()=>[vd,oo,Br],K=()=>["","none","full",m,we,xe],P=()=>["",qe,oo,Br],oe=()=>["solid","dashed","dotted","double"],me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>[qe,vd,Ey,_y],Le=()=>["","none",C,we,xe],Fe=()=>["none",qe,we,xe],Je=()=>["none",qe,we,xe],Tt=()=>[qe,we,xe],Ze=()=>[Vl,"full",...J()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Sa],breakpoint:[Sa],color:[hR],container:[Sa],"drop-shadow":[Sa],ease:["in","out","in-out"],font:[vR],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Sa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Sa],shadow:[Sa],spacing:["px",qe],text:[Sa],"text-shadow":[Sa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Vl,xe,we,j]}],container:["container"],columns:[{columns:[qe,xe,we,h]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:M()}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:te()}],"inset-x":[{"inset-x":te()}],"inset-y":[{"inset-y":te()}],start:[{start:te()}],end:[{end:te()}],top:[{top:te()}],right:[{right:te()}],bottom:[{bottom:te()}],left:[{left:te()}],visibility:["visible","invisible","collapse"],z:[{z:[tr,"auto",we,xe]}],basis:[{basis:[Vl,"full","auto",h,...J()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[qe,Vl,"auto","initial","none",xe]}],grow:[{grow:["",qe,we,xe]}],shrink:[{shrink:["",qe,we,xe]}],order:[{order:[tr,"first","last","none",we,xe]}],"grid-cols":[{"grid-cols":ae()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":fe()}],"col-end":[{"col-end":fe()}],"grid-rows":[{"grid-rows":ae()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":fe()}],"row-end":[{"row-end":fe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":de()}],"auto-rows":[{"auto-rows":de()}],gap:[{gap:J()}],"gap-x":[{"gap-x":J()}],"gap-y":[{"gap-y":J()}],"justify-content":[{justify:[...Q(),"normal"]}],"justify-items":[{"justify-items":[...ee(),"normal"]}],"justify-self":[{"justify-self":["auto",...ee()]}],"align-content":[{content:["normal",...Q()]}],"align-items":[{items:[...ee(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ee(),{baseline:["","last"]}]}],"place-content":[{"place-content":Q()}],"place-items":[{"place-items":[...ee(),"baseline"]}],"place-self":[{"place-self":["auto",...ee()]}],p:[{p:J()}],px:[{px:J()}],py:[{py:J()}],ps:[{ps:J()}],pe:[{pe:J()}],pt:[{pt:J()}],pr:[{pr:J()}],pb:[{pb:J()}],pl:[{pl:J()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":J()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":J()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],w:[{w:[h,"screen",...X()]}],"min-w":[{"min-w":[h,"screen","none",...X()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[f]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",l,oo,Br]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,we,yd]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vd,xe]}],"font-family":[{font:[xR,xe,a]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,we,xe]}],"line-clamp":[{"line-clamp":[qe,"none",we,yd]}],leading:[{leading:[c,...J()]}],"list-image":[{"list-image":["none",we,xe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",we,xe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:V()}],"text-color":[{text:V()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[qe,"from-font","auto",we,Br]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[qe,"auto",we,xe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:J()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we,xe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",we,xe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ye()}],"bg-repeat":[{bg:O()}],"bg-size":[{bg:G()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},tr,we,xe],radial:["",we,xe],conic:[tr,we,xe]},SR,bR]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:U()}],"gradient-via-pos":[{via:U()}],"gradient-to-pos":[{to:U()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],rounded:[{rounded:K()}],"rounded-s":[{"rounded-s":K()}],"rounded-e":[{"rounded-e":K()}],"rounded-t":[{"rounded-t":K()}],"rounded-r":[{"rounded-r":K()}],"rounded-b":[{"rounded-b":K()}],"rounded-l":[{"rounded-l":K()}],"rounded-ss":[{"rounded-ss":K()}],"rounded-se":[{"rounded-se":K()}],"rounded-ee":[{"rounded-ee":K()}],"rounded-es":[{"rounded-es":K()}],"rounded-tl":[{"rounded-tl":K()}],"rounded-tr":[{"rounded-tr":K()}],"rounded-br":[{"rounded-br":K()}],"rounded-bl":[{"rounded-bl":K()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":P()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...oe(),"hidden","none"]}],"divide-style":[{divide:[...oe(),"hidden","none"]}],"border-color":[{border:V()}],"border-color-x":[{"border-x":V()}],"border-color-y":[{"border-y":V()}],"border-color-s":[{"border-s":V()}],"border-color-e":[{"border-e":V()}],"border-color-t":[{"border-t":V()}],"border-color-r":[{"border-r":V()}],"border-color-b":[{"border-b":V()}],"border-color-l":[{"border-l":V()}],"divide-color":[{divide:V()}],"outline-style":[{outline:[...oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[qe,we,xe]}],"outline-w":[{outline:["",qe,oo,Br]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",v,Ws,Js]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",b,Ws,Js]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[qe,Br]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",w,Ws,Js]}],"text-shadow-color":[{"text-shadow":V()}],opacity:[{opacity:[qe,we,xe]}],"mix-blend":[{"mix-blend":[...me(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":me()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[qe]}],"mask-image-linear-from-pos":[{"mask-linear-from":ve()}],"mask-image-linear-to-pos":[{"mask-linear-to":ve()}],"mask-image-linear-from-color":[{"mask-linear-from":V()}],"mask-image-linear-to-color":[{"mask-linear-to":V()}],"mask-image-t-from-pos":[{"mask-t-from":ve()}],"mask-image-t-to-pos":[{"mask-t-to":ve()}],"mask-image-t-from-color":[{"mask-t-from":V()}],"mask-image-t-to-color":[{"mask-t-to":V()}],"mask-image-r-from-pos":[{"mask-r-from":ve()}],"mask-image-r-to-pos":[{"mask-r-to":ve()}],"mask-image-r-from-color":[{"mask-r-from":V()}],"mask-image-r-to-color":[{"mask-r-to":V()}],"mask-image-b-from-pos":[{"mask-b-from":ve()}],"mask-image-b-to-pos":[{"mask-b-to":ve()}],"mask-image-b-from-color":[{"mask-b-from":V()}],"mask-image-b-to-color":[{"mask-b-to":V()}],"mask-image-l-from-pos":[{"mask-l-from":ve()}],"mask-image-l-to-pos":[{"mask-l-to":ve()}],"mask-image-l-from-color":[{"mask-l-from":V()}],"mask-image-l-to-color":[{"mask-l-to":V()}],"mask-image-x-from-pos":[{"mask-x-from":ve()}],"mask-image-x-to-pos":[{"mask-x-to":ve()}],"mask-image-x-from-color":[{"mask-x-from":V()}],"mask-image-x-to-color":[{"mask-x-to":V()}],"mask-image-y-from-pos":[{"mask-y-from":ve()}],"mask-image-y-to-pos":[{"mask-y-to":ve()}],"mask-image-y-from-color":[{"mask-y-from":V()}],"mask-image-y-to-color":[{"mask-y-to":V()}],"mask-image-radial":[{"mask-radial":[we,xe]}],"mask-image-radial-from-pos":[{"mask-radial-from":ve()}],"mask-image-radial-to-pos":[{"mask-radial-to":ve()}],"mask-image-radial-from-color":[{"mask-radial-from":V()}],"mask-image-radial-to-color":[{"mask-radial-to":V()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":H()}],"mask-image-conic-pos":[{"mask-conic":[qe]}],"mask-image-conic-from-pos":[{"mask-conic-from":ve()}],"mask-image-conic-to-pos":[{"mask-conic-to":ve()}],"mask-image-conic-from-color":[{"mask-conic-from":V()}],"mask-image-conic-to-color":[{"mask-conic-to":V()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ye()}],"mask-repeat":[{mask:O()}],"mask-size":[{mask:G()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",we,xe]}],filter:[{filter:["","none",we,xe]}],blur:[{blur:Le()}],brightness:[{brightness:[qe,we,xe]}],contrast:[{contrast:[qe,we,xe]}],"drop-shadow":[{"drop-shadow":["","none",S,Ws,Js]}],"drop-shadow-color":[{"drop-shadow":V()}],grayscale:[{grayscale:["",qe,we,xe]}],"hue-rotate":[{"hue-rotate":[qe,we,xe]}],invert:[{invert:["",qe,we,xe]}],saturate:[{saturate:[qe,we,xe]}],sepia:[{sepia:["",qe,we,xe]}],"backdrop-filter":[{"backdrop-filter":["","none",we,xe]}],"backdrop-blur":[{"backdrop-blur":Le()}],"backdrop-brightness":[{"backdrop-brightness":[qe,we,xe]}],"backdrop-contrast":[{"backdrop-contrast":[qe,we,xe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",qe,we,xe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[qe,we,xe]}],"backdrop-invert":[{"backdrop-invert":["",qe,we,xe]}],"backdrop-opacity":[{"backdrop-opacity":[qe,we,xe]}],"backdrop-saturate":[{"backdrop-saturate":[qe,we,xe]}],"backdrop-sepia":[{"backdrop-sepia":["",qe,we,xe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":J()}],"border-spacing-x":[{"border-spacing-x":J()}],"border-spacing-y":[{"border-spacing-y":J()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",we,xe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[qe,"initial",we,xe]}],ease:[{ease:["linear","initial",R,we,xe]}],delay:[{delay:[qe,we,xe]}],animate:[{animate:["none",L,we,xe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,we,xe]}],"perspective-origin":[{"perspective-origin":M()}],rotate:[{rotate:Fe()}],"rotate-x":[{"rotate-x":Fe()}],"rotate-y":[{"rotate-y":Fe()}],"rotate-z":[{"rotate-z":Fe()}],scale:[{scale:Je()}],"scale-x":[{"scale-x":Je()}],"scale-y":[{"scale-y":Je()}],"scale-z":[{"scale-z":Je()}],"scale-3d":["scale-3d"],skew:[{skew:Tt()}],"skew-x":[{"skew-x":Tt()}],"skew-y":[{"skew-y":Tt()}],transform:[{transform:[we,xe,"","none","gpu","cpu"]}],"transform-origin":[{origin:M()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ze()}],"translate-x":[{"translate-x":Ze()}],"translate-y":[{"translate-y":Ze()}],"translate-z":[{"translate-z":Ze()}],"translate-none":["translate-none"],accent:[{accent:V()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:V()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",we,xe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":J()}],"scroll-mx":[{"scroll-mx":J()}],"scroll-my":[{"scroll-my":J()}],"scroll-ms":[{"scroll-ms":J()}],"scroll-me":[{"scroll-me":J()}],"scroll-mt":[{"scroll-mt":J()}],"scroll-mr":[{"scroll-mr":J()}],"scroll-mb":[{"scroll-mb":J()}],"scroll-ml":[{"scroll-ml":J()}],"scroll-p":[{"scroll-p":J()}],"scroll-px":[{"scroll-px":J()}],"scroll-py":[{"scroll-py":J()}],"scroll-ps":[{"scroll-ps":J()}],"scroll-pe":[{"scroll-pe":J()}],"scroll-pt":[{"scroll-pt":J()}],"scroll-pr":[{"scroll-pr":J()}],"scroll-pb":[{"scroll-pb":J()}],"scroll-pl":[{"scroll-pl":J()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",we,xe]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[qe,oo,Br,yd]}],stroke:[{stroke:["none",...V()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},NR=iR(CR);function dt(...n){return NR(gb(n))}const Xr=lb,RR=ib,Rb=y.forwardRef(({className:n,...a},l)=>g.jsx(vh,{ref:l,className:dt("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...a}));Rb.displayName=vh.displayName;const cr=y.forwardRef(({className:n,children:a,...l},i)=>g.jsxs(RR,{children:[g.jsx(Rb,{}),g.jsxs(yh,{ref:i,className:dt("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-300 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg animate-scale-in",n),...l,children:[a,g.jsxs(iN,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground transition-all-ease hover:scale-110",children:[g.jsx(Yr,{className:"h-4 w-4"}),g.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));cr.displayName=yh.displayName;const ur=({className:n,...a})=>g.jsx("div",{className:dt("flex flex-col space-y-1.5 text-center sm:text-left",n),...a});ur.displayName="DialogHeader";const Qr=({className:n,...a})=>g.jsx("div",{className:dt("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...a});Qr.displayName="DialogFooter";const fr=y.forwardRef(({className:n,...a},l)=>g.jsx(ob,{ref:l,className:dt("text-lg font-semibold leading-none tracking-tight",n),...a}));fr.displayName=ob.displayName;const Lc=y.forwardRef(({className:n,...a},l)=>g.jsx(sb,{ref:l,className:dt("text-sm text-muted-foreground",n),...a}));Lc.displayName=sb.displayName;const Cy=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,Ny=gb,wh=(n,a)=>l=>{var i;if(a?.variants==null)return Ny(n,l?.class,l?.className);const{variants:s,defaultVariants:c}=a,f=Object.keys(s).map(m=>{const v=l?.[m],b=c?.[m];if(v===null)return null;const w=Cy(v)||Cy(b);return s[m][w]}),h=l&&Object.entries(l).reduce((m,v)=>{let[b,w]=v;return w===void 0||(m[b]=w),m},{}),p=a==null||(i=a.compoundVariants)===null||i===void 0?void 0:i.reduce((m,v)=>{let{class:b,className:w,...S}=v;return Object.entries(S).every(C=>{let[E,j]=C;return Array.isArray(j)?j.includes({...c,...h}[E]):{...c,...h}[E]===j})?[...m,b,w]:m},[]);return Ny(n,f,p,l?.class,l?.className)},jR=wh("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"border border-destructive/50 text-destructive hover:bg-destructive hover:text-destructive-foreground",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Ce=y.forwardRef(({className:n,variant:a,size:l,asChild:i=!1,...s},c)=>{const f=i?P2:"button";return g.jsx(f,{className:dt(jR({variant:a,size:l,className:n})),ref:c,...s})});Ce.displayName="Button";const ft=y.forwardRef(({className:n,type:a,...l},i)=>{const s=a==="number",[c,f]=y.useState(l.value?.toString()||"");y.useEffect(()=>{l.value!==void 0&&f(l.value.toString())},[l.value]);const h=b=>{const w=b.target.value;s?(w===""||/^\d+$/.test(w))&&(f(w),l.onChange&&w!==""&&l.onChange(b)):(f(w),l.onChange&&l.onChange(b))},p=b=>{if(s&&c===""){const w=l.placeholder||"1";if(f(w),l.onChange){const S={...b,target:{...b.target,value:w}};l.onChange(S)}}l.onBlur&&l.onBlur(b)},m=s?"text":a,v=s?c:l.value;return g.jsx("input",{...l,type:m,value:v,onChange:h,onBlur:p,className:dt("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n),ref:i})});ft.displayName="Input";var OR="Label",jb=y.forwardRef((n,a)=>g.jsx(pt.label,{...n,ref:a,onMouseDown:l=>{l.target.closest("button, input, select, textarea")||(n.onMouseDown?.(l),!l.defaultPrevented&&l.detail>1&&l.preventDefault())}}));jb.displayName=OR;var Ob=jb;const AR=wh("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ke=y.forwardRef(({className:n,...a},l)=>g.jsx(Ob,{ref:l,className:dt(AR(),n),...a}));Ke.displayName=Ob.displayName;function TR(n){const a=y.useRef({value:n,previous:n});return y.useMemo(()=>(a.current.value!==n&&(a.current.previous=a.current.value,a.current.value=n),a.current.previous),[n])}function Ab(n){const[a,l]=y.useState(void 0);return or(()=>{if(n){l({width:n.offsetWidth,height:n.offsetHeight});const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const c=s[0];let f,h;if("borderBoxSize"in c){const p=c.borderBoxSize,m=Array.isArray(p)?p[0]:p;f=m.inlineSize,h=m.blockSize}else f=n.offsetWidth,h=n.offsetHeight;l({width:f,height:h})});return i.observe(n,{box:"border-box"}),()=>i.unobserve(n)}else l(void 0)},[n]),a}var kc="Switch",[MR,PT]=Ac(kc),[DR,LR]=MR(kc),Tb=y.forwardRef((n,a)=>{const{__scopeSwitch:l,name:i,checked:s,defaultChecked:c,required:f,disabled:h,value:p="on",onCheckedChange:m,form:v,...b}=n,[w,S]=y.useState(null),C=vn(a,k=>S(k)),E=y.useRef(!1),j=w?v||!!w.closest("form"):!0,[R,L]=ch({prop:s,defaultProp:c??!1,onChange:m,caller:kc});return g.jsxs(DR,{scope:l,checked:R,disabled:h,children:[g.jsx(pt.button,{type:"button",role:"switch","aria-checked":R,"aria-required":f,"data-state":kb(R),"data-disabled":h?"":void 0,disabled:h,value:p,...b,ref:C,onClick:nn(n.onClick,k=>{L(H=>!H),j&&(E.current=k.isPropagationStopped(),E.current||k.stopPropagation())})}),j&&g.jsx(Lb,{control:w,bubbles:!E.current,name:i,value:p,checked:R,required:f,disabled:h,form:v,style:{transform:"translateX(-100%)"}})]})});Tb.displayName=kc;var Mb="SwitchThumb",Db=y.forwardRef((n,a)=>{const{__scopeSwitch:l,...i}=n,s=LR(Mb,l);return g.jsx(pt.span,{"data-state":kb(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:a})});Db.displayName=Mb;var kR="SwitchBubbleInput",Lb=y.forwardRef(({__scopeSwitch:n,control:a,checked:l,bubbles:i=!0,...s},c)=>{const f=y.useRef(null),h=vn(f,c),p=TR(l),m=Ab(a);return y.useEffect(()=>{const v=f.current;if(!v)return;const b=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(b,"checked").set;if(p!==l&&S){const C=new Event("click",{bubbles:i});S.call(v,l),v.dispatchEvent(C)}},[p,l,i]),g.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:l,...s,tabIndex:-1,ref:h,style:{...s.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Lb.displayName=kR;function kb(n){return n?"checked":"unchecked"}var zb=Tb,zR=Db;const Fd=y.forwardRef(({className:n,...a},l)=>g.jsx(zb,{className:dt("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-all-ease focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",n),...a,ref:l,children:g.jsx(zR,{className:dt("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0 transition-all-ease")})}));Fd.displayName=zb.displayName;var Ry=1,UR=.9,PR=.8,HR=.17,bd=.1,xd=.999,BR=.9999,$R=.99,VR=/[\\\/_+.#"@\[\(\{&]/,qR=/[\\\/_+.#"@\[\(\{&]/g,FR=/[\s-]/,Ub=/[\s-]/g;function Yd(n,a,l,i,s,c,f){if(c===a.length)return s===n.length?Ry:$R;var h=`${s},${c}`;if(f[h]!==void 0)return f[h];for(var p=i.charAt(c),m=l.indexOf(p,s),v=0,b,w,S,C;m>=0;)b=Yd(n,a,l,i,m+1,c+1,f),b>v&&(m===s?b*=Ry:VR.test(n.charAt(m-1))?(b*=PR,S=n.slice(s,m-1).match(qR),S&&s>0&&(b*=Math.pow(xd,S.length))):FR.test(n.charAt(m-1))?(b*=UR,C=n.slice(s,m-1).match(Ub),C&&s>0&&(b*=Math.pow(xd,C.length))):(b*=HR,s>0&&(b*=Math.pow(xd,m-s))),n.charAt(m)!==a.charAt(c)&&(b*=BR)),(b<bd&&l.charAt(m-1)===i.charAt(c+1)||i.charAt(c+1)===i.charAt(c)&&l.charAt(m-1)!==i.charAt(c))&&(w=Yd(n,a,l,i,m+1,c+2,f),w*bd>b&&(b=w*bd)),b>v&&(v=b),m=l.indexOf(p,m+1);return f[h]=v,v}function jy(n){return n.toLowerCase().replace(Ub," ")}function YR(n,a,l){return n=l&&l.length>0?`${n+" "+l.join(" ")}`:n,Yd(n,a,jy(n),jy(a),0,0,{})}var so='[cmdk-group=""]',wd='[cmdk-group-items=""]',GR='[cmdk-group-heading=""]',Pb='[cmdk-item=""]',Oy=`${Pb}:not([aria-disabled="true"])`,Gd="cmdk-item-select",Fl="data-value",KR=(n,a,l)=>YR(n,a,l),Hb=y.createContext(void 0),Co=()=>y.useContext(Hb),Bb=y.createContext(void 0),Sh=()=>y.useContext(Bb),$b=y.createContext(void 0),Vb=y.forwardRef((n,a)=>{let l=Yl(()=>{var U,K;return{search:"",value:(K=(U=n.value)!=null?U:n.defaultValue)!=null?K:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),i=Yl(()=>new Set),s=Yl(()=>new Map),c=Yl(()=>new Map),f=Yl(()=>new Set),h=qb(n),{label:p,children:m,value:v,onValueChange:b,filter:w,shouldFilter:S,loop:C,disablePointerSelection:E=!1,vimBindings:j=!0,...R}=n,L=Wn(),k=Wn(),H=Wn(),M=y.useRef(null),N=rj();Ir(()=>{if(v!==void 0){let U=v.trim();l.current.value=U,B.emit()}},[v]),Ir(()=>{N(6,de)},[]);let B=y.useMemo(()=>({subscribe:U=>(f.current.add(U),()=>f.current.delete(U)),snapshot:()=>l.current,setState:(U,K,P)=>{var oe,me,ve,Le;if(!Object.is(l.current[U],K)){if(l.current[U]=K,U==="search")fe(),ae(),N(1,re);else if(U==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let Fe=document.getElementById(H);Fe?Fe.focus():(oe=document.getElementById(L))==null||oe.focus()}if(N(7,()=>{var Fe;l.current.selectedItemId=(Fe=Q())==null?void 0:Fe.id,B.emit()}),P||N(5,de),((me=h.current)==null?void 0:me.value)!==void 0){let Fe=K??"";(Le=(ve=h.current).onValueChange)==null||Le.call(ve,Fe);return}}B.emit()}},emit:()=>{f.current.forEach(U=>U())}}),[]),J=y.useMemo(()=>({value:(U,K,P)=>{var oe;K!==((oe=c.current.get(U))==null?void 0:oe.value)&&(c.current.set(U,{value:K,keywords:P}),l.current.filtered.items.set(U,te(K,P)),N(2,()=>{ae(),B.emit()}))},item:(U,K)=>(i.current.add(U),K&&(s.current.has(K)?s.current.get(K).add(U):s.current.set(K,new Set([U]))),N(3,()=>{fe(),ae(),l.current.value||re(),B.emit()}),()=>{c.current.delete(U),i.current.delete(U),l.current.filtered.items.delete(U);let P=Q();N(4,()=>{fe(),P?.getAttribute("id")===U&&re(),B.emit()})}),group:U=>(s.current.has(U)||s.current.set(U,new Set),()=>{c.current.delete(U),s.current.delete(U)}),filter:()=>h.current.shouldFilter,label:p||n["aria-label"],getDisablePointerSelection:()=>h.current.disablePointerSelection,listId:L,inputId:H,labelId:k,listInnerRef:M}),[]);function te(U,K){var P,oe;let me=(oe=(P=h.current)==null?void 0:P.filter)!=null?oe:KR;return U?me(U,l.current.search,K):0}function ae(){if(!l.current.search||h.current.shouldFilter===!1)return;let U=l.current.filtered.items,K=[];l.current.filtered.groups.forEach(oe=>{let me=s.current.get(oe),ve=0;me.forEach(Le=>{let Fe=U.get(Le);ve=Math.max(Fe,ve)}),K.push([oe,ve])});let P=M.current;ee().sort((oe,me)=>{var ve,Le;let Fe=oe.getAttribute("id"),Je=me.getAttribute("id");return((ve=U.get(Je))!=null?ve:0)-((Le=U.get(Fe))!=null?Le:0)}).forEach(oe=>{let me=oe.closest(wd);me?me.appendChild(oe.parentElement===me?oe:oe.closest(`${wd} > *`)):P.appendChild(oe.parentElement===P?oe:oe.closest(`${wd} > *`))}),K.sort((oe,me)=>me[1]-oe[1]).forEach(oe=>{var me;let ve=(me=M.current)==null?void 0:me.querySelector(`${so}[${Fl}="${encodeURIComponent(oe[0])}"]`);ve?.parentElement.appendChild(ve)})}function re(){let U=ee().find(P=>P.getAttribute("aria-disabled")!=="true"),K=U?.getAttribute(Fl);B.setState("value",K||void 0)}function fe(){var U,K,P,oe;if(!l.current.search||h.current.shouldFilter===!1){l.current.filtered.count=i.current.size;return}l.current.filtered.groups=new Set;let me=0;for(let ve of i.current){let Le=(K=(U=c.current.get(ve))==null?void 0:U.value)!=null?K:"",Fe=(oe=(P=c.current.get(ve))==null?void 0:P.keywords)!=null?oe:[],Je=te(Le,Fe);l.current.filtered.items.set(ve,Je),Je>0&&me++}for(let[ve,Le]of s.current)for(let Fe of Le)if(l.current.filtered.items.get(Fe)>0){l.current.filtered.groups.add(ve);break}l.current.filtered.count=me}function de(){var U,K,P;let oe=Q();oe&&(((U=oe.parentElement)==null?void 0:U.firstChild)===oe&&((P=(K=oe.closest(so))==null?void 0:K.querySelector(GR))==null||P.scrollIntoView({block:"nearest"})),oe.scrollIntoView({block:"nearest"}))}function Q(){var U;return(U=M.current)==null?void 0:U.querySelector(`${Pb}[aria-selected="true"]`)}function ee(){var U;return Array.from(((U=M.current)==null?void 0:U.querySelectorAll(Oy))||[])}function A(U){let K=ee()[U];K&&B.setState("value",K.getAttribute(Fl))}function X(U){var K;let P=Q(),oe=ee(),me=oe.findIndex(Le=>Le===P),ve=oe[me+U];(K=h.current)!=null&&K.loop&&(ve=me+U<0?oe[oe.length-1]:me+U===oe.length?oe[0]:oe[me+U]),ve&&B.setState("value",ve.getAttribute(Fl))}function V(U){let K=Q(),P=K?.closest(so),oe;for(;P&&!oe;)P=U>0?nj(P,so):aj(P,so),oe=P?.querySelector(Oy);oe?B.setState("value",oe.getAttribute(Fl)):X(U)}let ye=()=>A(ee().length-1),O=U=>{U.preventDefault(),U.metaKey?ye():U.altKey?V(1):X(1)},G=U=>{U.preventDefault(),U.metaKey?A(0):U.altKey?V(-1):X(-1)};return y.createElement(pt.div,{ref:a,tabIndex:-1,...R,"cmdk-root":"",onKeyDown:U=>{var K;(K=R.onKeyDown)==null||K.call(R,U);let P=U.nativeEvent.isComposing||U.keyCode===229;if(!(U.defaultPrevented||P))switch(U.key){case"n":case"j":{j&&U.ctrlKey&&O(U);break}case"ArrowDown":{O(U);break}case"p":case"k":{j&&U.ctrlKey&&G(U);break}case"ArrowUp":{G(U);break}case"Home":{U.preventDefault(),A(0);break}case"End":{U.preventDefault(),ye();break}case"Enter":{U.preventDefault();let oe=Q();if(oe){let me=new Event(Gd);oe.dispatchEvent(me)}}}}},y.createElement("label",{"cmdk-label":"",htmlFor:J.inputId,id:J.labelId,style:ij},p),zc(n,U=>y.createElement(Bb.Provider,{value:B},y.createElement(Hb.Provider,{value:J},U))))}),XR=y.forwardRef((n,a)=>{var l,i;let s=Wn(),c=y.useRef(null),f=y.useContext($b),h=Co(),p=qb(n),m=(i=(l=p.current)==null?void 0:l.forceMount)!=null?i:f?.forceMount;Ir(()=>{if(!m)return h.item(s,f?.id)},[m]);let v=Fb(s,c,[n.value,n.children,c],n.keywords),b=Sh(),w=dr(N=>N.value&&N.value===v.current),S=dr(N=>m||h.filter()===!1?!0:N.search?N.filtered.items.get(s)>0:!0);y.useEffect(()=>{let N=c.current;if(!(!N||n.disabled))return N.addEventListener(Gd,C),()=>N.removeEventListener(Gd,C)},[S,n.onSelect,n.disabled]);function C(){var N,B;E(),(B=(N=p.current).onSelect)==null||B.call(N,v.current)}function E(){b.setState("value",v.current,!0)}if(!S)return null;let{disabled:j,value:R,onSelect:L,forceMount:k,keywords:H,...M}=n;return y.createElement(pt.div,{ref:Gr(c,a),...M,id:s,"cmdk-item":"",role:"option","aria-disabled":!!j,"aria-selected":!!w,"data-disabled":!!j,"data-selected":!!w,onPointerMove:j||h.getDisablePointerSelection()?void 0:E,onClick:j?void 0:C},n.children)}),QR=y.forwardRef((n,a)=>{let{heading:l,children:i,forceMount:s,...c}=n,f=Wn(),h=y.useRef(null),p=y.useRef(null),m=Wn(),v=Co(),b=dr(S=>s||v.filter()===!1?!0:S.search?S.filtered.groups.has(f):!0);Ir(()=>v.group(f),[]),Fb(f,h,[n.value,n.heading,p]);let w=y.useMemo(()=>({id:f,forceMount:s}),[s]);return y.createElement(pt.div,{ref:Gr(h,a),...c,"cmdk-group":"",role:"presentation",hidden:b?void 0:!0},l&&y.createElement("div",{ref:p,"cmdk-group-heading":"","aria-hidden":!0,id:m},l),zc(n,S=>y.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":l?m:void 0},y.createElement($b.Provider,{value:w},S))))}),IR=y.forwardRef((n,a)=>{let{alwaysRender:l,...i}=n,s=y.useRef(null),c=dr(f=>!f.search);return!l&&!c?null:y.createElement(pt.div,{ref:Gr(s,a),...i,"cmdk-separator":"",role:"separator"})}),ZR=y.forwardRef((n,a)=>{let{onValueChange:l,...i}=n,s=n.value!=null,c=Sh(),f=dr(m=>m.search),h=dr(m=>m.selectedItemId),p=Co();return y.useEffect(()=>{n.value!=null&&c.setState("search",n.value)},[n.value]),y.createElement(pt.input,{ref:a,...i,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":p.listId,"aria-labelledby":p.labelId,"aria-activedescendant":h,id:p.inputId,type:"text",value:s?n.value:f,onChange:m=>{s||c.setState("search",m.target.value),l?.(m.target.value)}})}),JR=y.forwardRef((n,a)=>{let{children:l,label:i="Suggestions",...s}=n,c=y.useRef(null),f=y.useRef(null),h=dr(m=>m.selectedItemId),p=Co();return y.useEffect(()=>{if(f.current&&c.current){let m=f.current,v=c.current,b,w=new ResizeObserver(()=>{b=requestAnimationFrame(()=>{let S=m.offsetHeight;v.style.setProperty("--cmdk-list-height",S.toFixed(1)+"px")})});return w.observe(m),()=>{cancelAnimationFrame(b),w.unobserve(m)}}},[]),y.createElement(pt.div,{ref:Gr(c,a),...s,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":h,"aria-label":i,id:p.listId},zc(n,m=>y.createElement("div",{ref:Gr(f,p.listInnerRef),"cmdk-list-sizer":""},m)))}),WR=y.forwardRef((n,a)=>{let{open:l,onOpenChange:i,overlayClassName:s,contentClassName:c,container:f,...h}=n;return y.createElement(lb,{open:l,onOpenChange:i},y.createElement(ib,{container:f},y.createElement(vh,{"cmdk-overlay":"",className:s}),y.createElement(yh,{"aria-label":n.label,"cmdk-dialog":"",className:c},y.createElement(Vb,{ref:a,...h}))))}),ej=y.forwardRef((n,a)=>dr(l=>l.filtered.count===0)?y.createElement(pt.div,{ref:a,...n,"cmdk-empty":"",role:"presentation"}):null),tj=y.forwardRef((n,a)=>{let{progress:l,children:i,label:s="Loading...",...c}=n;return y.createElement(pt.div,{ref:a,...c,"cmdk-loading":"",role:"progressbar","aria-valuenow":l,"aria-valuemin":0,"aria-valuemax":100,"aria-label":s},zc(n,f=>y.createElement("div",{"aria-hidden":!0},f)))}),ai=Object.assign(Vb,{List:JR,Item:XR,Input:ZR,Group:QR,Separator:IR,Dialog:WR,Empty:ej,Loading:tj});function nj(n,a){let l=n.nextElementSibling;for(;l;){if(l.matches(a))return l;l=l.nextElementSibling}}function aj(n,a){let l=n.previousElementSibling;for(;l;){if(l.matches(a))return l;l=l.previousElementSibling}}function qb(n){let a=y.useRef(n);return Ir(()=>{a.current=n}),a}var Ir=typeof window>"u"?y.useEffect:y.useLayoutEffect;function Yl(n){let a=y.useRef();return a.current===void 0&&(a.current=n()),a}function dr(n){let a=Sh(),l=()=>n(a.snapshot());return y.useSyncExternalStore(a.subscribe,l,l)}function Fb(n,a,l,i=[]){let s=y.useRef(),c=Co();return Ir(()=>{var f;let h=(()=>{var m;for(let v of l){if(typeof v=="string")return v.trim();if(typeof v=="object"&&"current"in v)return v.current?(m=v.current.textContent)==null?void 0:m.trim():s.current}})(),p=i.map(m=>m.trim());c.value(n,h,p),(f=a.current)==null||f.setAttribute(Fl,h),s.current=h}),s}var rj=()=>{let[n,a]=y.useState(),l=Yl(()=>new Map);return Ir(()=>{l.current.forEach(i=>i()),l.current=new Map},[n]),(i,s)=>{l.current.set(i,s),a({})}};function lj(n){let a=n.type;return typeof a=="function"?a(n.props):"render"in a?a.render(n.props):n}function zc({asChild:n,children:a},l){return n&&y.isValidElement(a)?y.cloneElement(lj(a),{ref:a.ref},l(a.props.children)):l(a)}var ij={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Yb({className:n,...a}){return g.jsx(ai,{"data-slot":"command",className:dt("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",n),...a})}function Gb({className:n,...a}){return g.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[g.jsx(mb,{className:"size-4 shrink-0 opacity-50"}),g.jsx(ai.Input,{"data-slot":"command-input",className:dt("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",n),...a})]})}function Kb({className:n,...a}){return g.jsx(ai.List,{"data-slot":"command-list",className:dt("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",n),...a})}function Xb({...n}){return g.jsx(ai.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...n})}function Qb({className:n,...a}){return g.jsx(ai.Group,{"data-slot":"command-group",className:dt("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",n),...a})}function Ib({className:n,...a}){return g.jsx(ai.Item,{"data-slot":"command-item",className:dt("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),...a})}const oj=["top","right","bottom","left"],hr=Math.min,pn=Math.max,yc=Math.round,ec=Math.floor,ea=n=>({x:n,y:n}),sj={left:"right",right:"left",bottom:"top",top:"bottom"},cj={start:"end",end:"start"};function Kd(n,a,l){return pn(n,hr(a,l))}function _a(n,a){return typeof n=="function"?n(a):n}function Ea(n){return n.split("-")[0]}function ri(n){return n.split("-")[1]}function _h(n){return n==="x"?"y":"x"}function Eh(n){return n==="y"?"height":"width"}const uj=new Set(["top","bottom"]);function Zn(n){return uj.has(Ea(n))?"y":"x"}function Ch(n){return _h(Zn(n))}function fj(n,a,l){l===void 0&&(l=!1);const i=ri(n),s=Ch(n),c=Eh(s);let f=s==="x"?i===(l?"end":"start")?"right":"left":i==="start"?"bottom":"top";return a.reference[c]>a.floating[c]&&(f=bc(f)),[f,bc(f)]}function dj(n){const a=bc(n);return[Xd(n),a,Xd(a)]}function Xd(n){return n.replace(/start|end/g,a=>cj[a])}const Ay=["left","right"],Ty=["right","left"],hj=["top","bottom"],mj=["bottom","top"];function pj(n,a,l){switch(n){case"top":case"bottom":return l?a?Ty:Ay:a?Ay:Ty;case"left":case"right":return a?hj:mj;default:return[]}}function gj(n,a,l,i){const s=ri(n);let c=pj(Ea(n),l==="start",i);return s&&(c=c.map(f=>f+"-"+s),a&&(c=c.concat(c.map(Xd)))),c}function bc(n){return n.replace(/left|right|bottom|top/g,a=>sj[a])}function vj(n){return{top:0,right:0,bottom:0,left:0,...n}}function Zb(n){return typeof n!="number"?vj(n):{top:n,right:n,bottom:n,left:n}}function xc(n){const{x:a,y:l,width:i,height:s}=n;return{width:i,height:s,top:l,left:a,right:a+i,bottom:l+s,x:a,y:l}}function My(n,a,l){let{reference:i,floating:s}=n;const c=Zn(a),f=Ch(a),h=Eh(f),p=Ea(a),m=c==="y",v=i.x+i.width/2-s.width/2,b=i.y+i.height/2-s.height/2,w=i[h]/2-s[h]/2;let S;switch(p){case"top":S={x:v,y:i.y-s.height};break;case"bottom":S={x:v,y:i.y+i.height};break;case"right":S={x:i.x+i.width,y:b};break;case"left":S={x:i.x-s.width,y:b};break;default:S={x:i.x,y:i.y}}switch(ri(a)){case"start":S[f]-=w*(l&&m?-1:1);break;case"end":S[f]+=w*(l&&m?-1:1);break}return S}const yj=async(n,a,l)=>{const{placement:i="bottom",strategy:s="absolute",middleware:c=[],platform:f}=l,h=c.filter(Boolean),p=await(f.isRTL==null?void 0:f.isRTL(a));let m=await f.getElementRects({reference:n,floating:a,strategy:s}),{x:v,y:b}=My(m,i,p),w=i,S={},C=0;for(let E=0;E<h.length;E++){const{name:j,fn:R}=h[E],{x:L,y:k,data:H,reset:M}=await R({x:v,y:b,initialPlacement:i,placement:w,strategy:s,middlewareData:S,rects:m,platform:f,elements:{reference:n,floating:a}});v=L??v,b=k??b,S={...S,[j]:{...S[j],...H}},M&&C<=50&&(C++,typeof M=="object"&&(M.placement&&(w=M.placement),M.rects&&(m=M.rects===!0?await f.getElementRects({reference:n,floating:a,strategy:s}):M.rects),{x:v,y:b}=My(m,w,p)),E=-1)}return{x:v,y:b,placement:w,strategy:s,middlewareData:S}};async function bo(n,a){var l;a===void 0&&(a={});const{x:i,y:s,platform:c,rects:f,elements:h,strategy:p}=n,{boundary:m="clippingAncestors",rootBoundary:v="viewport",elementContext:b="floating",altBoundary:w=!1,padding:S=0}=_a(a,n),C=Zb(S),j=h[w?b==="floating"?"reference":"floating":b],R=xc(await c.getClippingRect({element:(l=await(c.isElement==null?void 0:c.isElement(j)))==null||l?j:j.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(h.floating)),boundary:m,rootBoundary:v,strategy:p})),L=b==="floating"?{x:i,y:s,width:f.floating.width,height:f.floating.height}:f.reference,k=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h.floating)),H=await(c.isElement==null?void 0:c.isElement(k))?await(c.getScale==null?void 0:c.getScale(k))||{x:1,y:1}:{x:1,y:1},M=xc(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:L,offsetParent:k,strategy:p}):L);return{top:(R.top-M.top+C.top)/H.y,bottom:(M.bottom-R.bottom+C.bottom)/H.y,left:(R.left-M.left+C.left)/H.x,right:(M.right-R.right+C.right)/H.x}}const bj=n=>({name:"arrow",options:n,async fn(a){const{x:l,y:i,placement:s,rects:c,platform:f,elements:h,middlewareData:p}=a,{element:m,padding:v=0}=_a(n,a)||{};if(m==null)return{};const b=Zb(v),w={x:l,y:i},S=Ch(s),C=Eh(S),E=await f.getDimensions(m),j=S==="y",R=j?"top":"left",L=j?"bottom":"right",k=j?"clientHeight":"clientWidth",H=c.reference[C]+c.reference[S]-w[S]-c.floating[C],M=w[S]-c.reference[S],N=await(f.getOffsetParent==null?void 0:f.getOffsetParent(m));let B=N?N[k]:0;(!B||!await(f.isElement==null?void 0:f.isElement(N)))&&(B=h.floating[k]||c.floating[C]);const J=H/2-M/2,te=B/2-E[C]/2-1,ae=hr(b[R],te),re=hr(b[L],te),fe=ae,de=B-E[C]-re,Q=B/2-E[C]/2+J,ee=Kd(fe,Q,de),A=!p.arrow&&ri(s)!=null&&Q!==ee&&c.reference[C]/2-(Q<fe?ae:re)-E[C]/2<0,X=A?Q<fe?Q-fe:Q-de:0;return{[S]:w[S]+X,data:{[S]:ee,centerOffset:Q-ee-X,...A&&{alignmentOffset:X}},reset:A}}}),xj=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(a){var l,i;const{placement:s,middlewareData:c,rects:f,initialPlacement:h,platform:p,elements:m}=a,{mainAxis:v=!0,crossAxis:b=!0,fallbackPlacements:w,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:E=!0,...j}=_a(n,a);if((l=c.arrow)!=null&&l.alignmentOffset)return{};const R=Ea(s),L=Zn(h),k=Ea(h)===h,H=await(p.isRTL==null?void 0:p.isRTL(m.floating)),M=w||(k||!E?[bc(h)]:dj(h)),N=C!=="none";!w&&N&&M.push(...gj(h,E,C,H));const B=[h,...M],J=await bo(a,j),te=[];let ae=((i=c.flip)==null?void 0:i.overflows)||[];if(v&&te.push(J[R]),b){const Q=fj(s,f,H);te.push(J[Q[0]],J[Q[1]])}if(ae=[...ae,{placement:s,overflows:te}],!te.every(Q=>Q<=0)){var re,fe;const Q=(((re=c.flip)==null?void 0:re.index)||0)+1,ee=B[Q];if(ee&&(!(b==="alignment"?L!==Zn(ee):!1)||ae.every(V=>V.overflows[0]>0&&Zn(V.placement)===L)))return{data:{index:Q,overflows:ae},reset:{placement:ee}};let A=(fe=ae.filter(X=>X.overflows[0]<=0).sort((X,V)=>X.overflows[1]-V.overflows[1])[0])==null?void 0:fe.placement;if(!A)switch(S){case"bestFit":{var de;const X=(de=ae.filter(V=>{if(N){const ye=Zn(V.placement);return ye===L||ye==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(ye=>ye>0).reduce((ye,O)=>ye+O,0)]).sort((V,ye)=>V[1]-ye[1])[0])==null?void 0:de[0];X&&(A=X);break}case"initialPlacement":A=h;break}if(s!==A)return{reset:{placement:A}}}return{}}}};function Dy(n,a){return{top:n.top-a.height,right:n.right-a.width,bottom:n.bottom-a.height,left:n.left-a.width}}function Ly(n){return oj.some(a=>n[a]>=0)}const wj=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(a){const{rects:l}=a,{strategy:i="referenceHidden",...s}=_a(n,a);switch(i){case"referenceHidden":{const c=await bo(a,{...s,elementContext:"reference"}),f=Dy(c,l.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:Ly(f)}}}case"escaped":{const c=await bo(a,{...s,altBoundary:!0}),f=Dy(c,l.floating);return{data:{escapedOffsets:f,escaped:Ly(f)}}}default:return{}}}}},Jb=new Set(["left","top"]);async function Sj(n,a){const{placement:l,platform:i,elements:s}=n,c=await(i.isRTL==null?void 0:i.isRTL(s.floating)),f=Ea(l),h=ri(l),p=Zn(l)==="y",m=Jb.has(f)?-1:1,v=c&&p?-1:1,b=_a(a,n);let{mainAxis:w,crossAxis:S,alignmentAxis:C}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return h&&typeof C=="number"&&(S=h==="end"?C*-1:C),p?{x:S*v,y:w*m}:{x:w*m,y:S*v}}const _j=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(a){var l,i;const{x:s,y:c,placement:f,middlewareData:h}=a,p=await Sj(a,n);return f===((l=h.offset)==null?void 0:l.placement)&&(i=h.arrow)!=null&&i.alignmentOffset?{}:{x:s+p.x,y:c+p.y,data:{...p,placement:f}}}}},Ej=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(a){const{x:l,y:i,placement:s}=a,{mainAxis:c=!0,crossAxis:f=!1,limiter:h={fn:j=>{let{x:R,y:L}=j;return{x:R,y:L}}},...p}=_a(n,a),m={x:l,y:i},v=await bo(a,p),b=Zn(Ea(s)),w=_h(b);let S=m[w],C=m[b];if(c){const j=w==="y"?"top":"left",R=w==="y"?"bottom":"right",L=S+v[j],k=S-v[R];S=Kd(L,S,k)}if(f){const j=b==="y"?"top":"left",R=b==="y"?"bottom":"right",L=C+v[j],k=C-v[R];C=Kd(L,C,k)}const E=h.fn({...a,[w]:S,[b]:C});return{...E,data:{x:E.x-l,y:E.y-i,enabled:{[w]:c,[b]:f}}}}}},Cj=function(n){return n===void 0&&(n={}),{options:n,fn(a){const{x:l,y:i,placement:s,rects:c,middlewareData:f}=a,{offset:h=0,mainAxis:p=!0,crossAxis:m=!0}=_a(n,a),v={x:l,y:i},b=Zn(s),w=_h(b);let S=v[w],C=v[b];const E=_a(h,a),j=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(p){const k=w==="y"?"height":"width",H=c.reference[w]-c.floating[k]+j.mainAxis,M=c.reference[w]+c.reference[k]-j.mainAxis;S<H?S=H:S>M&&(S=M)}if(m){var R,L;const k=w==="y"?"width":"height",H=Jb.has(Ea(s)),M=c.reference[b]-c.floating[k]+(H&&((R=f.offset)==null?void 0:R[b])||0)+(H?0:j.crossAxis),N=c.reference[b]+c.reference[k]+(H?0:((L=f.offset)==null?void 0:L[b])||0)-(H?j.crossAxis:0);C<M?C=M:C>N&&(C=N)}return{[w]:S,[b]:C}}}},Nj=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(a){var l,i;const{placement:s,rects:c,platform:f,elements:h}=a,{apply:p=()=>{},...m}=_a(n,a),v=await bo(a,m),b=Ea(s),w=ri(s),S=Zn(s)==="y",{width:C,height:E}=c.floating;let j,R;b==="top"||b==="bottom"?(j=b,R=w===(await(f.isRTL==null?void 0:f.isRTL(h.floating))?"start":"end")?"left":"right"):(R=b,j=w==="end"?"top":"bottom");const L=E-v.top-v.bottom,k=C-v.left-v.right,H=hr(E-v[j],L),M=hr(C-v[R],k),N=!a.middlewareData.shift;let B=H,J=M;if((l=a.middlewareData.shift)!=null&&l.enabled.x&&(J=k),(i=a.middlewareData.shift)!=null&&i.enabled.y&&(B=L),N&&!w){const ae=pn(v.left,0),re=pn(v.right,0),fe=pn(v.top,0),de=pn(v.bottom,0);S?J=C-2*(ae!==0||re!==0?ae+re:pn(v.left,v.right)):B=E-2*(fe!==0||de!==0?fe+de:pn(v.top,v.bottom))}await p({...a,availableWidth:J,availableHeight:B});const te=await f.getDimensions(h.floating);return C!==te.width||E!==te.height?{reset:{rects:!0}}:{}}}};function Uc(){return typeof window<"u"}function li(n){return Wb(n)?(n.nodeName||"").toLowerCase():"#document"}function gn(n){var a;return(n==null||(a=n.ownerDocument)==null?void 0:a.defaultView)||window}function aa(n){var a;return(a=(Wb(n)?n.ownerDocument:n.document)||window.document)==null?void 0:a.documentElement}function Wb(n){return Uc()?n instanceof Node||n instanceof gn(n).Node:!1}function zn(n){return Uc()?n instanceof Element||n instanceof gn(n).Element:!1}function ta(n){return Uc()?n instanceof HTMLElement||n instanceof gn(n).HTMLElement:!1}function ky(n){return!Uc()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof gn(n).ShadowRoot}const Rj=new Set(["inline","contents"]);function No(n){const{overflow:a,overflowX:l,overflowY:i,display:s}=Un(n);return/auto|scroll|overlay|hidden|clip/.test(a+i+l)&&!Rj.has(s)}const jj=new Set(["table","td","th"]);function Oj(n){return jj.has(li(n))}const Aj=[":popover-open",":modal"];function Pc(n){return Aj.some(a=>{try{return n.matches(a)}catch{return!1}})}const Tj=["transform","translate","scale","rotate","perspective"],Mj=["transform","translate","scale","rotate","perspective","filter"],Dj=["paint","layout","strict","content"];function Nh(n){const a=Rh(),l=zn(n)?Un(n):n;return Tj.some(i=>l[i]?l[i]!=="none":!1)||(l.containerType?l.containerType!=="normal":!1)||!a&&(l.backdropFilter?l.backdropFilter!=="none":!1)||!a&&(l.filter?l.filter!=="none":!1)||Mj.some(i=>(l.willChange||"").includes(i))||Dj.some(i=>(l.contain||"").includes(i))}function Lj(n){let a=mr(n);for(;ta(a)&&!Zl(a);){if(Nh(a))return a;if(Pc(a))return null;a=mr(a)}return null}function Rh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const kj=new Set(["html","body","#document"]);function Zl(n){return kj.has(li(n))}function Un(n){return gn(n).getComputedStyle(n)}function Hc(n){return zn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function mr(n){if(li(n)==="html")return n;const a=n.assignedSlot||n.parentNode||ky(n)&&n.host||aa(n);return ky(a)?a.host:a}function ex(n){const a=mr(n);return Zl(a)?n.ownerDocument?n.ownerDocument.body:n.body:ta(a)&&No(a)?a:ex(a)}function xo(n,a,l){var i;a===void 0&&(a=[]),l===void 0&&(l=!0);const s=ex(n),c=s===((i=n.ownerDocument)==null?void 0:i.body),f=gn(s);if(c){const h=Qd(f);return a.concat(f,f.visualViewport||[],No(s)?s:[],h&&l?xo(h):[])}return a.concat(s,xo(s,[],l))}function Qd(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function tx(n){const a=Un(n);let l=parseFloat(a.width)||0,i=parseFloat(a.height)||0;const s=ta(n),c=s?n.offsetWidth:l,f=s?n.offsetHeight:i,h=yc(l)!==c||yc(i)!==f;return h&&(l=c,i=f),{width:l,height:i,$:h}}function jh(n){return zn(n)?n:n.contextElement}function Ql(n){const a=jh(n);if(!ta(a))return ea(1);const l=a.getBoundingClientRect(),{width:i,height:s,$:c}=tx(a);let f=(c?yc(l.width):l.width)/i,h=(c?yc(l.height):l.height)/s;return(!f||!Number.isFinite(f))&&(f=1),(!h||!Number.isFinite(h))&&(h=1),{x:f,y:h}}const zj=ea(0);function nx(n){const a=gn(n);return!Rh()||!a.visualViewport?zj:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function Uj(n,a,l){return a===void 0&&(a=!1),!l||a&&l!==gn(n)?!1:a}function Zr(n,a,l,i){a===void 0&&(a=!1),l===void 0&&(l=!1);const s=n.getBoundingClientRect(),c=jh(n);let f=ea(1);a&&(i?zn(i)&&(f=Ql(i)):f=Ql(n));const h=Uj(c,l,i)?nx(c):ea(0);let p=(s.left+h.x)/f.x,m=(s.top+h.y)/f.y,v=s.width/f.x,b=s.height/f.y;if(c){const w=gn(c),S=i&&zn(i)?gn(i):i;let C=w,E=Qd(C);for(;E&&i&&S!==C;){const j=Ql(E),R=E.getBoundingClientRect(),L=Un(E),k=R.left+(E.clientLeft+parseFloat(L.paddingLeft))*j.x,H=R.top+(E.clientTop+parseFloat(L.paddingTop))*j.y;p*=j.x,m*=j.y,v*=j.x,b*=j.y,p+=k,m+=H,C=gn(E),E=Qd(C)}}return xc({width:v,height:b,x:p,y:m})}function Oh(n,a){const l=Hc(n).scrollLeft;return a?a.left+l:Zr(aa(n)).left+l}function ax(n,a,l){l===void 0&&(l=!1);const i=n.getBoundingClientRect(),s=i.left+a.scrollLeft-(l?0:Oh(n,i)),c=i.top+a.scrollTop;return{x:s,y:c}}function Pj(n){let{elements:a,rect:l,offsetParent:i,strategy:s}=n;const c=s==="fixed",f=aa(i),h=a?Pc(a.floating):!1;if(i===f||h&&c)return l;let p={scrollLeft:0,scrollTop:0},m=ea(1);const v=ea(0),b=ta(i);if((b||!b&&!c)&&((li(i)!=="body"||No(f))&&(p=Hc(i)),ta(i))){const S=Zr(i);m=Ql(i),v.x=S.x+i.clientLeft,v.y=S.y+i.clientTop}const w=f&&!b&&!c?ax(f,p,!0):ea(0);return{width:l.width*m.x,height:l.height*m.y,x:l.x*m.x-p.scrollLeft*m.x+v.x+w.x,y:l.y*m.y-p.scrollTop*m.y+v.y+w.y}}function Hj(n){return Array.from(n.getClientRects())}function Bj(n){const a=aa(n),l=Hc(n),i=n.ownerDocument.body,s=pn(a.scrollWidth,a.clientWidth,i.scrollWidth,i.clientWidth),c=pn(a.scrollHeight,a.clientHeight,i.scrollHeight,i.clientHeight);let f=-l.scrollLeft+Oh(n);const h=-l.scrollTop;return Un(i).direction==="rtl"&&(f+=pn(a.clientWidth,i.clientWidth)-s),{width:s,height:c,x:f,y:h}}function $j(n,a){const l=gn(n),i=aa(n),s=l.visualViewport;let c=i.clientWidth,f=i.clientHeight,h=0,p=0;if(s){c=s.width,f=s.height;const m=Rh();(!m||m&&a==="fixed")&&(h=s.offsetLeft,p=s.offsetTop)}return{width:c,height:f,x:h,y:p}}const Vj=new Set(["absolute","fixed"]);function qj(n,a){const l=Zr(n,!0,a==="fixed"),i=l.top+n.clientTop,s=l.left+n.clientLeft,c=ta(n)?Ql(n):ea(1),f=n.clientWidth*c.x,h=n.clientHeight*c.y,p=s*c.x,m=i*c.y;return{width:f,height:h,x:p,y:m}}function zy(n,a,l){let i;if(a==="viewport")i=$j(n,l);else if(a==="document")i=Bj(aa(n));else if(zn(a))i=qj(a,l);else{const s=nx(n);i={x:a.x-s.x,y:a.y-s.y,width:a.width,height:a.height}}return xc(i)}function rx(n,a){const l=mr(n);return l===a||!zn(l)||Zl(l)?!1:Un(l).position==="fixed"||rx(l,a)}function Fj(n,a){const l=a.get(n);if(l)return l;let i=xo(n,[],!1).filter(h=>zn(h)&&li(h)!=="body"),s=null;const c=Un(n).position==="fixed";let f=c?mr(n):n;for(;zn(f)&&!Zl(f);){const h=Un(f),p=Nh(f);!p&&h.position==="fixed"&&(s=null),(c?!p&&!s:!p&&h.position==="static"&&!!s&&Vj.has(s.position)||No(f)&&!p&&rx(n,f))?i=i.filter(v=>v!==f):s=h,f=mr(f)}return a.set(n,i),i}function Yj(n){let{element:a,boundary:l,rootBoundary:i,strategy:s}=n;const f=[...l==="clippingAncestors"?Pc(a)?[]:Fj(a,this._c):[].concat(l),i],h=f[0],p=f.reduce((m,v)=>{const b=zy(a,v,s);return m.top=pn(b.top,m.top),m.right=hr(b.right,m.right),m.bottom=hr(b.bottom,m.bottom),m.left=pn(b.left,m.left),m},zy(a,h,s));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function Gj(n){const{width:a,height:l}=tx(n);return{width:a,height:l}}function Kj(n,a,l){const i=ta(a),s=aa(a),c=l==="fixed",f=Zr(n,!0,c,a);let h={scrollLeft:0,scrollTop:0};const p=ea(0);function m(){p.x=Oh(s)}if(i||!i&&!c)if((li(a)!=="body"||No(s))&&(h=Hc(a)),i){const S=Zr(a,!0,c,a);p.x=S.x+a.clientLeft,p.y=S.y+a.clientTop}else s&&m();c&&!i&&s&&m();const v=s&&!i&&!c?ax(s,h):ea(0),b=f.left+h.scrollLeft-p.x-v.x,w=f.top+h.scrollTop-p.y-v.y;return{x:b,y:w,width:f.width,height:f.height}}function Sd(n){return Un(n).position==="static"}function Uy(n,a){if(!ta(n)||Un(n).position==="fixed")return null;if(a)return a(n);let l=n.offsetParent;return aa(n)===l&&(l=l.ownerDocument.body),l}function lx(n,a){const l=gn(n);if(Pc(n))return l;if(!ta(n)){let s=mr(n);for(;s&&!Zl(s);){if(zn(s)&&!Sd(s))return s;s=mr(s)}return l}let i=Uy(n,a);for(;i&&Oj(i)&&Sd(i);)i=Uy(i,a);return i&&Zl(i)&&Sd(i)&&!Nh(i)?l:i||Lj(n)||l}const Xj=async function(n){const a=this.getOffsetParent||lx,l=this.getDimensions,i=await l(n.floating);return{reference:Kj(n.reference,await a(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Qj(n){return Un(n).direction==="rtl"}const Ij={convertOffsetParentRelativeRectToViewportRelativeRect:Pj,getDocumentElement:aa,getClippingRect:Yj,getOffsetParent:lx,getElementRects:Xj,getClientRects:Hj,getDimensions:Gj,getScale:Ql,isElement:zn,isRTL:Qj};function ix(n,a){return n.x===a.x&&n.y===a.y&&n.width===a.width&&n.height===a.height}function Zj(n,a){let l=null,i;const s=aa(n);function c(){var h;clearTimeout(i),(h=l)==null||h.disconnect(),l=null}function f(h,p){h===void 0&&(h=!1),p===void 0&&(p=1),c();const m=n.getBoundingClientRect(),{left:v,top:b,width:w,height:S}=m;if(h||a(),!w||!S)return;const C=ec(b),E=ec(s.clientWidth-(v+w)),j=ec(s.clientHeight-(b+S)),R=ec(v),k={rootMargin:-C+"px "+-E+"px "+-j+"px "+-R+"px",threshold:pn(0,hr(1,p))||1};let H=!0;function M(N){const B=N[0].intersectionRatio;if(B!==p){if(!H)return f();B?f(!1,B):i=setTimeout(()=>{f(!1,1e-7)},1e3)}B===1&&!ix(m,n.getBoundingClientRect())&&f(),H=!1}try{l=new IntersectionObserver(M,{...k,root:s.ownerDocument})}catch{l=new IntersectionObserver(M,k)}l.observe(n)}return f(!0),c}function Jj(n,a,l,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:p=!1}=i,m=jh(n),v=s||c?[...m?xo(m):[],...xo(a)]:[];v.forEach(R=>{s&&R.addEventListener("scroll",l,{passive:!0}),c&&R.addEventListener("resize",l)});const b=m&&h?Zj(m,l):null;let w=-1,S=null;f&&(S=new ResizeObserver(R=>{let[L]=R;L&&L.target===m&&S&&(S.unobserve(a),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var k;(k=S)==null||k.observe(a)})),l()}),m&&!p&&S.observe(m),S.observe(a));let C,E=p?Zr(n):null;p&&j();function j(){const R=Zr(n);E&&!ix(E,R)&&l(),E=R,C=requestAnimationFrame(j)}return l(),()=>{var R;v.forEach(L=>{s&&L.removeEventListener("scroll",l),c&&L.removeEventListener("resize",l)}),b?.(),(R=S)==null||R.disconnect(),S=null,p&&cancelAnimationFrame(C)}}const Wj=_j,eO=Ej,tO=xj,nO=Nj,aO=wj,Py=bj,rO=Cj,lO=(n,a,l)=>{const i=new Map,s={platform:Ij,...l},c={...s.platform,_c:i};return yj(n,a,{...s,platform:c})};var iO=typeof document<"u",oO=function(){},uc=iO?y.useLayoutEffect:oO;function wc(n,a){if(n===a)return!0;if(typeof n!=typeof a)return!1;if(typeof n=="function"&&n.toString()===a.toString())return!0;let l,i,s;if(n&&a&&typeof n=="object"){if(Array.isArray(n)){if(l=n.length,l!==a.length)return!1;for(i=l;i--!==0;)if(!wc(n[i],a[i]))return!1;return!0}if(s=Object.keys(n),l=s.length,l!==Object.keys(a).length)return!1;for(i=l;i--!==0;)if(!{}.hasOwnProperty.call(a,s[i]))return!1;for(i=l;i--!==0;){const c=s[i];if(!(c==="_owner"&&n.$$typeof)&&!wc(n[c],a[c]))return!1}return!0}return n!==n&&a!==a}function ox(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Hy(n,a){const l=ox(n);return Math.round(a*l)/l}function _d(n){const a=y.useRef(n);return uc(()=>{a.current=n}),a}function sO(n){n===void 0&&(n={});const{placement:a="bottom",strategy:l="absolute",middleware:i=[],platform:s,elements:{reference:c,floating:f}={},transform:h=!0,whileElementsMounted:p,open:m}=n,[v,b]=y.useState({x:0,y:0,strategy:l,placement:a,middlewareData:{},isPositioned:!1}),[w,S]=y.useState(i);wc(w,i)||S(i);const[C,E]=y.useState(null),[j,R]=y.useState(null),L=y.useCallback(V=>{V!==N.current&&(N.current=V,E(V))},[]),k=y.useCallback(V=>{V!==B.current&&(B.current=V,R(V))},[]),H=c||C,M=f||j,N=y.useRef(null),B=y.useRef(null),J=y.useRef(v),te=p!=null,ae=_d(p),re=_d(s),fe=_d(m),de=y.useCallback(()=>{if(!N.current||!B.current)return;const V={placement:a,strategy:l,middleware:w};re.current&&(V.platform=re.current),lO(N.current,B.current,V).then(ye=>{const O={...ye,isPositioned:fe.current!==!1};Q.current&&!wc(J.current,O)&&(J.current=O,Oc.flushSync(()=>{b(O)}))})},[w,a,l,re,fe]);uc(()=>{m===!1&&J.current.isPositioned&&(J.current.isPositioned=!1,b(V=>({...V,isPositioned:!1})))},[m]);const Q=y.useRef(!1);uc(()=>(Q.current=!0,()=>{Q.current=!1}),[]),uc(()=>{if(H&&(N.current=H),M&&(B.current=M),H&&M){if(ae.current)return ae.current(H,M,de);de()}},[H,M,de,ae,te]);const ee=y.useMemo(()=>({reference:N,floating:B,setReference:L,setFloating:k}),[L,k]),A=y.useMemo(()=>({reference:H,floating:M}),[H,M]),X=y.useMemo(()=>{const V={position:l,left:0,top:0};if(!A.floating)return V;const ye=Hy(A.floating,v.x),O=Hy(A.floating,v.y);return h?{...V,transform:"translate("+ye+"px, "+O+"px)",...ox(A.floating)>=1.5&&{willChange:"transform"}}:{position:l,left:ye,top:O}},[l,h,A.floating,v.x,v.y]);return y.useMemo(()=>({...v,update:de,refs:ee,elements:A,floatingStyles:X}),[v,de,ee,A,X])}const cO=n=>{function a(l){return{}.hasOwnProperty.call(l,"current")}return{name:"arrow",options:n,fn(l){const{element:i,padding:s}=typeof n=="function"?n(l):n;return i&&a(i)?i.current!=null?Py({element:i.current,padding:s}).fn(l):{}:i?Py({element:i,padding:s}).fn(l):{}}}},uO=(n,a)=>({...Wj(n),options:[n,a]}),fO=(n,a)=>({...eO(n),options:[n,a]}),dO=(n,a)=>({...rO(n),options:[n,a]}),hO=(n,a)=>({...tO(n),options:[n,a]}),mO=(n,a)=>({...nO(n),options:[n,a]}),pO=(n,a)=>({...aO(n),options:[n,a]}),gO=(n,a)=>({...cO(n),options:[n,a]});var vO="Arrow",sx=y.forwardRef((n,a)=>{const{children:l,width:i=10,height:s=5,...c}=n;return g.jsx(pt.svg,{...c,ref:a,width:i,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?l:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});sx.displayName=vO;var yO=sx,Ah="Popper",[cx,ux]=Ac(Ah),[bO,fx]=cx(Ah),dx=n=>{const{__scopePopper:a,children:l}=n,[i,s]=y.useState(null);return g.jsx(bO,{scope:a,anchor:i,onAnchorChange:s,children:l})};dx.displayName=Ah;var hx="PopperAnchor",mx=y.forwardRef((n,a)=>{const{__scopePopper:l,virtualRef:i,...s}=n,c=fx(hx,l),f=y.useRef(null),h=vn(a,f);return y.useEffect(()=>{c.onAnchorChange(i?.current||f.current)}),i?null:g.jsx(pt.div,{...s,ref:h})});mx.displayName=hx;var Th="PopperContent",[xO,wO]=cx(Th),px=y.forwardRef((n,a)=>{const{__scopePopper:l,side:i="bottom",sideOffset:s=0,align:c="center",alignOffset:f=0,arrowPadding:h=0,avoidCollisions:p=!0,collisionBoundary:m=[],collisionPadding:v=0,sticky:b="partial",hideWhenDetached:w=!1,updatePositionStrategy:S="optimized",onPlaced:C,...E}=n,j=fx(Th,l),[R,L]=y.useState(null),k=vn(a,ve=>L(ve)),[H,M]=y.useState(null),N=Ab(H),B=N?.width??0,J=N?.height??0,te=i+(c!=="center"?"-"+c:""),ae=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},re=Array.isArray(m)?m:[m],fe=re.length>0,de={padding:ae,boundary:re.filter(_O),altBoundary:fe},{refs:Q,floatingStyles:ee,placement:A,isPositioned:X,middlewareData:V}=sO({strategy:"fixed",placement:te,whileElementsMounted:(...ve)=>Jj(...ve,{animationFrame:S==="always"}),elements:{reference:j.anchor},middleware:[uO({mainAxis:s+J,alignmentAxis:f}),p&&fO({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?dO():void 0,...de}),p&&hO({...de}),mO({...de,apply:({elements:ve,rects:Le,availableWidth:Fe,availableHeight:Je})=>{const{width:Tt,height:Ze}=Le.reference,an=ve.floating.style;an.setProperty("--radix-popper-available-width",`${Fe}px`),an.setProperty("--radix-popper-available-height",`${Je}px`),an.setProperty("--radix-popper-anchor-width",`${Tt}px`),an.setProperty("--radix-popper-anchor-height",`${Ze}px`)}}),H&&gO({element:H,padding:h}),EO({arrowWidth:B,arrowHeight:J}),w&&pO({strategy:"referenceHidden",...de})]}),[ye,O]=yx(A),G=Il(C);or(()=>{X&&G?.()},[X,G]);const U=V.arrow?.x,K=V.arrow?.y,P=V.arrow?.centerOffset!==0,[oe,me]=y.useState();return or(()=>{R&&me(window.getComputedStyle(R).zIndex)},[R]),g.jsx("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:{...ee,transform:X?ee.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[V.transformOrigin?.x,V.transformOrigin?.y].join(" "),...V.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:g.jsx(xO,{scope:l,placedSide:ye,onArrowChange:M,arrowX:U,arrowY:K,shouldHideArrow:P,children:g.jsx(pt.div,{"data-side":ye,"data-align":O,...E,ref:k,style:{...E.style,animation:X?void 0:"none"}})})})});px.displayName=Th;var gx="PopperArrow",SO={top:"bottom",right:"left",bottom:"top",left:"right"},vx=y.forwardRef(function(a,l){const{__scopePopper:i,...s}=a,c=wO(gx,i),f=SO[c.placedSide];return g.jsx("span",{ref:c.onArrowChange,style:{position:"absolute",left:c.arrowX,top:c.arrowY,[f]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[c.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[c.placedSide],visibility:c.shouldHideArrow?"hidden":void 0},children:g.jsx(yO,{...s,ref:l,style:{...s.style,display:"block"}})})});vx.displayName=gx;function _O(n){return n!==null}var EO=n=>({name:"transformOrigin",options:n,fn(a){const{placement:l,rects:i,middlewareData:s}=a,f=s.arrow?.centerOffset!==0,h=f?0:n.arrowWidth,p=f?0:n.arrowHeight,[m,v]=yx(l),b={start:"0%",center:"50%",end:"100%"}[v],w=(s.arrow?.x??0)+h/2,S=(s.arrow?.y??0)+p/2;let C="",E="";return m==="bottom"?(C=f?b:`${w}px`,E=`${-p}px`):m==="top"?(C=f?b:`${w}px`,E=`${i.floating.height+p}px`):m==="right"?(C=`${-p}px`,E=f?b:`${S}px`):m==="left"&&(C=`${i.floating.width+p}px`,E=f?b:`${S}px`),{data:{x:C,y:E}}}});function yx(n){const[a,l="center"]=n.split("-");return[a,l]}var CO=dx,bx=mx,NO=px,RO=vx,Bc="Popover",[xx,HT]=Ac(Bc,[ux]),Ro=ux(),[jO,gr]=xx(Bc),wx=n=>{const{__scopePopover:a,children:l,open:i,defaultOpen:s,onOpenChange:c,modal:f=!1}=n,h=Ro(a),p=y.useRef(null),[m,v]=y.useState(!1),[b,w]=ch({prop:i,defaultProp:s??!1,onChange:c,caller:Bc});return g.jsx(CO,{...h,children:g.jsx(jO,{scope:a,contentId:Wn(),triggerRef:p,open:b,onOpenChange:w,onOpenToggle:y.useCallback(()=>w(S=>!S),[w]),hasCustomAnchor:m,onCustomAnchorAdd:y.useCallback(()=>v(!0),[]),onCustomAnchorRemove:y.useCallback(()=>v(!1),[]),modal:f,children:l})})};wx.displayName=Bc;var Sx="PopoverAnchor",OO=y.forwardRef((n,a)=>{const{__scopePopover:l,...i}=n,s=gr(Sx,l),c=Ro(l),{onCustomAnchorAdd:f,onCustomAnchorRemove:h}=s;return y.useEffect(()=>(f(),()=>h()),[f,h]),g.jsx(bx,{...c,...i,ref:a})});OO.displayName=Sx;var _x="PopoverTrigger",Ex=y.forwardRef((n,a)=>{const{__scopePopover:l,...i}=n,s=gr(_x,l),c=Ro(l),f=vn(a,s.triggerRef),h=g.jsx(pt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Ox(s.open),...i,ref:f,onClick:nn(n.onClick,s.onOpenToggle)});return s.hasCustomAnchor?h:g.jsx(bx,{asChild:!0,...c,children:h})});Ex.displayName=_x;var Mh="PopoverPortal",[AO,TO]=xx(Mh,{forceMount:void 0}),Cx=n=>{const{__scopePopover:a,forceMount:l,children:i,container:s}=n,c=gr(Mh,a);return g.jsx(AO,{scope:a,forceMount:l,children:g.jsx(ei,{present:l||c.open,children:g.jsx(dh,{asChild:!0,container:s,children:i})})})};Cx.displayName=Mh;var Jl="PopoverContent",Nx=y.forwardRef((n,a)=>{const l=TO(Jl,n.__scopePopover),{forceMount:i=l.forceMount,...s}=n,c=gr(Jl,n.__scopePopover);return g.jsx(ei,{present:i||c.open,children:c.modal?g.jsx(DO,{...s,ref:a}):g.jsx(LO,{...s,ref:a})})});Nx.displayName=Jl;var MO=Tc("PopoverContent.RemoveScroll"),DO=y.forwardRef((n,a)=>{const l=gr(Jl,n.__scopePopover),i=y.useRef(null),s=vn(a,i),c=y.useRef(!1);return y.useEffect(()=>{const f=i.current;if(f)return q0(f)},[]),g.jsx(hh,{as:MO,allowPinchZoom:!0,children:g.jsx(Rx,{...n,ref:s,trapFocus:l.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:nn(n.onCloseAutoFocus,f=>{f.preventDefault(),c.current||l.triggerRef.current?.focus()}),onPointerDownOutside:nn(n.onPointerDownOutside,f=>{const h=f.detail.originalEvent,p=h.button===0&&h.ctrlKey===!0,m=h.button===2||p;c.current=m},{checkForDefaultPrevented:!1}),onFocusOutside:nn(n.onFocusOutside,f=>f.preventDefault(),{checkForDefaultPrevented:!1})})})}),LO=y.forwardRef((n,a)=>{const l=gr(Jl,n.__scopePopover),i=y.useRef(!1),s=y.useRef(!1);return g.jsx(Rx,{...n,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{n.onCloseAutoFocus?.(c),c.defaultPrevented||(i.current||l.triggerRef.current?.focus(),c.preventDefault()),i.current=!1,s.current=!1},onInteractOutside:c=>{n.onInteractOutside?.(c),c.defaultPrevented||(i.current=!0,c.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const f=c.target;l.triggerRef.current?.contains(f)&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&s.current&&c.preventDefault()}})}),Rx=y.forwardRef((n,a)=>{const{__scopePopover:l,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:c,disableOutsidePointerEvents:f,onEscapeKeyDown:h,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:v,...b}=n,w=gr(Jl,l),S=Ro(l);return L0(),g.jsx(fh,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:c,children:g.jsx(uh,{asChild:!0,disableOutsidePointerEvents:f,onInteractOutside:v,onEscapeKeyDown:h,onPointerDownOutside:p,onFocusOutside:m,onDismiss:()=>w.onOpenChange(!1),children:g.jsx(NO,{"data-state":Ox(w.open),role:"dialog",id:w.contentId,...S,...b,ref:a,style:{...b.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),jx="PopoverClose",kO=y.forwardRef((n,a)=>{const{__scopePopover:l,...i}=n,s=gr(jx,l);return g.jsx(pt.button,{type:"button",...i,ref:a,onClick:nn(n.onClick,()=>s.onOpenChange(!1))})});kO.displayName=jx;var zO="PopoverArrow",UO=y.forwardRef((n,a)=>{const{__scopePopover:l,...i}=n,s=Ro(l);return g.jsx(RO,{...s,...i,ref:a})});UO.displayName=zO;function Ox(n){return n?"open":"closed"}var PO=wx,HO=Ex,BO=Cx,$O=Nx;function $c({...n}){return g.jsx(PO,{"data-slot":"popover",...n})}function Vc({...n}){return g.jsx(HO,{"data-slot":"popover-trigger",...n})}function qc({className:n,align:a="center",sideOffset:l=4,...i}){return g.jsx(BO,{children:g.jsx($O,{"data-slot":"popover-content",align:a,sideOffset:l,className:dt("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden animate-fade-in",n),...i})})}function An({options:n,value:a,onChange:l,placeholder:i="Select an option...",searchPlaceholder:s="Search...",emptyPlaceholder:c="No options found."}){const[f,h]=y.useState(!1),p=n.find(m=>m.value===a);return g.jsxs($c,{open:f,onOpenChange:h,children:[g.jsx(Vc,{asChild:!0,children:g.jsxs(Ce,{variant:"outline",role:"combobox","aria-expanded":f,className:"w-full justify-between transition-all-ease hover:scale-[1.02] active:scale-[0.98]",children:[p?p.label:i,g.jsx(fb,{className:"ml-2 h-4 w-4 shrink-0 opacity-50 transition-transform duration-200 group-data-[state=open]:rotate-180"})]})}),g.jsx(qc,{className:"w-[--radix-popover-trigger-width] p-0 animate-fade-in",children:g.jsxs(Yb,{children:[g.jsx(Gb,{placeholder:s}),g.jsxs(Kb,{children:[g.jsx(Xb,{children:c}),g.jsx(Qb,{children:n.map(m=>g.jsxs(Ib,{value:m.value,onSelect:v=>{l(v===a?"":v),h(!1)},className:"transition-all-ease hover:bg-accent hover:text-accent-foreground",children:[g.jsx(ub,{className:dt("mr-2 h-4 w-4 transition-opacity",a===m.value?"opacity-100":"opacity-0")}),m.label]},m.value))})]})]})})]})}class VO{baseUrl;apiKey;tempApiKey;constructor(a="/api",l=""){this.baseUrl=a,this.apiKey=l||localStorage.getItem("apiKey")||"",this.tempApiKey=new URLSearchParams(window.location.search).get("tempApiKey")}setBaseUrl(a){this.baseUrl=a}setApiKey(a){this.apiKey=a,a?localStorage.setItem("apiKey",a):localStorage.removeItem("apiKey")}setTempApiKey(a){this.tempApiKey=a}createHeaders(a="application/json"){const l={Accept:"application/json"};return this.tempApiKey?l["X-Temp-API-Key"]=this.tempApiKey:this.apiKey&&(l["X-API-Key"]=this.apiKey),a&&(l["Content-Type"]=a),l}async apiFetch(a,l={}){const i=`${this.baseUrl}${a}`,s={...l,headers:{...this.createHeaders(),...l.headers}};try{const c=await fetch(i,s);if(c.status===401)return localStorage.removeItem("apiKey"),window.dispatchEvent(new CustomEvent("unauthorized")),new Promise(()=>{});if(!c.ok)throw new Error(`API request failed: ${c.status} ${c.statusText}`);if(c.status===204)return{};const f=await c.text();return f?JSON.parse(f):{}}catch(c){throw console.error("API request error:",c),c}}async get(a){return this.apiFetch(a,{method:"GET"})}async post(a,l){return this.apiFetch(a,{method:"POST",body:JSON.stringify(l)})}async put(a,l){return this.apiFetch(a,{method:"PUT",body:JSON.stringify(l)})}async delete(a){return this.apiFetch(a,{method:"DELETE"})}async getConfig(){return this.get("/config")}async updateConfig(a){return this.post("/config",a)}async getProviders(){return this.get("/api/providers")}async addProvider(a){return this.post("/api/providers",a)}async updateProvider(a,l){return this.post(`/api/providers/${a}`,l)}async deleteProvider(a){return this.delete(`/api/providers/${a}`)}async getTransformers(){return this.get("/api/transformers")}async addTransformer(a){return this.post("/api/transformers",a)}async updateTransformer(a,l){return this.post(`/api/transformers/${a}`,l)}async deleteTransformer(a){return this.delete(`/api/transformers/${a}`)}async getConfigNew(){return this.get("/config")}async saveConfig(a){return this.post("/config",a)}async restartService(){return this.post("/restart",{})}async checkForUpdates(){return this.get("/update/check")}async performUpdate(){return this.post("/api/update/perform",{})}async getLogFiles(){return this.get("/logs/files")}async getLogs(a){return this.get(`/logs?file=${encodeURIComponent(a)}`)}async clearLogs(a){return this.delete(`/logs?file=${encodeURIComponent(a)}`)}}const Pt=new VO,Ax=y.createContext(void 0);function Wr(){const n=y.useContext(Ax);if(n===void 0)throw new Error("useConfig must be used within a ConfigProvider");return n}function qO({children:n}){const[a,l]=y.useState(null),[i,s]=y.useState(null),[c,f]=y.useState(!1),[h,p]=y.useState(localStorage.getItem("apiKey"));return y.useEffect(()=>{const m=()=>{p(localStorage.getItem("apiKey"))};return window.addEventListener("storage",m),()=>{window.removeEventListener("storage",m)}},[]),y.useEffect(()=>{(async()=>{f(!1),l(null),s(null)})()},[h]),y.useEffect(()=>{(async()=>{if(!c){f(!0);try{const v=await Pt.getConfig(),b={LOG:typeof v.LOG=="boolean"?v.LOG:!1,LOG_LEVEL:typeof v.LOG_LEVEL=="string"?v.LOG_LEVEL:"debug",CLAUDE_PATH:typeof v.CLAUDE_PATH=="string"?v.CLAUDE_PATH:"",HOST:typeof v.HOST=="string"?v.HOST:"127.0.0.1",PORT:typeof v.PORT=="number"?v.PORT:3456,APIKEY:typeof v.APIKEY=="string"?v.APIKEY:"",API_TIMEOUT_MS:typeof v.API_TIMEOUT_MS=="string"?v.API_TIMEOUT_MS:"600000",PROXY_URL:typeof v.PROXY_URL=="string"?v.PROXY_URL:"",transformers:Array.isArray(v.transformers)?v.transformers:[],Providers:Array.isArray(v.Providers)?v.Providers:[],StatusLine:v.StatusLine&&typeof v.StatusLine=="object"?{enabled:typeof v.StatusLine.enabled=="boolean"?v.StatusLine.enabled:!1,currentStyle:typeof v.StatusLine.currentStyle=="string"?v.StatusLine.currentStyle:"default",default:v.StatusLine.default&&typeof v.StatusLine.default=="object"&&Array.isArray(v.StatusLine.default.modules)?v.StatusLine.default:{modules:[]},powerline:v.StatusLine.powerline&&typeof v.StatusLine.powerline=="object"&&Array.isArray(v.StatusLine.powerline.modules)?v.StatusLine.powerline:{modules:[]}}:{enabled:!1,currentStyle:"default",default:{modules:[]},powerline:{modules:[]}},Router:v.Router&&typeof v.Router=="object"?{default:typeof v.Router.default=="string"?v.Router.default:"",background:typeof v.Router.background=="string"?v.Router.background:"",think:typeof v.Router.think=="string"?v.Router.think:"",longContext:typeof v.Router.longContext=="string"?v.Router.longContext:"",longContextThreshold:typeof v.Router.longContextThreshold=="number"?v.Router.longContextThreshold:6e4,webSearch:typeof v.Router.webSearch=="string"?v.Router.webSearch:"",image:typeof v.Router.image=="string"?v.Router.image:""}:{default:"",background:"",think:"",longContext:"",longContextThreshold:6e4,webSearch:"",image:""},CUSTOM_ROUTER_PATH:typeof v.CUSTOM_ROUTER_PATH=="string"?v.CUSTOM_ROUTER_PATH:""};l(b)}catch(v){console.error("Failed to fetch config:",v),v.message!=="Unauthorized"&&(l({LOG:!1,LOG_LEVEL:"debug",CLAUDE_PATH:"",HOST:"127.0.0.1",PORT:3456,APIKEY:"",API_TIMEOUT_MS:"600000",PROXY_URL:"",transformers:[],Providers:[],StatusLine:void 0,Router:{default:"",background:"",think:"",longContext:"",longContextThreshold:6e4,webSearch:"",image:""},CUSTOM_ROUTER_PATH:""}),s(v))}}})()},[c,h]),g.jsx(Ax.Provider,{value:{config:a,setConfig:l,error:i},children:n})}function Fc(){return(Fc=Object.assign||function(n){for(var a=1;a<arguments.length;a++){var l=arguments[a];for(var i in l)Object.prototype.hasOwnProperty.call(l,i)&&(n[i]=l[i])}return n}).apply(this,arguments)}function Tx(n,a){if(n==null)return{};var l,i,s={},c=Object.keys(n);for(i=0;i<c.length;i++)a.indexOf(l=c[i])>=0||(s[l]=n[l]);return s}function Id(n){var a=y.useRef(n),l=y.useRef(function(i){a.current&&a.current(i)});return a.current=n,l.current}var wo=function(n,a,l){return a===void 0&&(a=0),l===void 0&&(l=1),n>l?l:n<a?a:n},ho=function(n){return"touches"in n},Zd=function(n){return n&&n.ownerDocument.defaultView||self},By=function(n,a,l){var i=n.getBoundingClientRect(),s=ho(a)?function(c,f){for(var h=0;h<c.length;h++)if(c[h].identifier===f)return c[h];return c[0]}(a.touches,l):a;return{left:wo((s.pageX-(i.left+Zd(n).pageXOffset))/i.width),top:wo((s.pageY-(i.top+Zd(n).pageYOffset))/i.height)}},$y=function(n){!ho(n)&&n.preventDefault()},Mx=mt.memo(function(n){var a=n.onMove,l=n.onKey,i=Tx(n,["onMove","onKey"]),s=y.useRef(null),c=Id(a),f=Id(l),h=y.useRef(null),p=y.useRef(!1),m=y.useMemo(function(){var S=function(j){$y(j),(ho(j)?j.touches.length>0:j.buttons>0)&&s.current?c(By(s.current,j,h.current)):E(!1)},C=function(){return E(!1)};function E(j){var R=p.current,L=Zd(s.current),k=j?L.addEventListener:L.removeEventListener;k(R?"touchmove":"mousemove",S),k(R?"touchend":"mouseup",C)}return[function(j){var R=j.nativeEvent,L=s.current;if(L&&($y(R),!function(H,M){return M&&!ho(H)}(R,p.current)&&L)){if(ho(R)){p.current=!0;var k=R.changedTouches||[];k.length&&(h.current=k[0].identifier)}L.focus(),c(By(L,R,h.current)),E(!0)}},function(j){var R=j.which||j.keyCode;R<37||R>40||(j.preventDefault(),f({left:R===39?.05:R===37?-.05:0,top:R===40?.05:R===38?-.05:0}))},E]},[f,c]),v=m[0],b=m[1],w=m[2];return y.useEffect(function(){return w},[w]),mt.createElement("div",Fc({},i,{onTouchStart:v,onMouseDown:v,className:"react-colorful__interactive",ref:s,onKeyDown:b,tabIndex:0,role:"slider"}))}),Dh=function(n){return n.filter(Boolean).join(" ")},Dx=function(n){var a=n.color,l=n.left,i=n.top,s=i===void 0?.5:i,c=Dh(["react-colorful__pointer",n.className]);return mt.createElement("div",{className:c,style:{top:100*s+"%",left:100*l+"%"}},mt.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:a}}))},qt=function(n,a,l){return a===void 0&&(a=0),l===void 0&&(l=Math.pow(10,a)),Math.round(l*n)/l},FO=function(n){return QO(Jd(n))},Jd=function(n){return n[0]==="#"&&(n=n.substring(1)),n.length<6?{r:parseInt(n[0]+n[0],16),g:parseInt(n[1]+n[1],16),b:parseInt(n[2]+n[2],16),a:n.length===4?qt(parseInt(n[3]+n[3],16)/255,2):1}:{r:parseInt(n.substring(0,2),16),g:parseInt(n.substring(2,4),16),b:parseInt(n.substring(4,6),16),a:n.length===8?qt(parseInt(n.substring(6,8),16)/255,2):1}},YO=function(n){return XO(KO(n))},GO=function(n){var a=n.s,l=n.v,i=n.a,s=(200-a)*l/100;return{h:qt(n.h),s:qt(s>0&&s<200?a*l/100/(s<=100?s:200-s)*100:0),l:qt(s/2),a:qt(i,2)}},Wd=function(n){var a=GO(n);return"hsl("+a.h+", "+a.s+"%, "+a.l+"%)"},KO=function(n){var a=n.h,l=n.s,i=n.v,s=n.a;a=a/360*6,l/=100,i/=100;var c=Math.floor(a),f=i*(1-l),h=i*(1-(a-c)*l),p=i*(1-(1-a+c)*l),m=c%6;return{r:qt(255*[i,h,f,f,p,i][m]),g:qt(255*[p,i,i,h,f,f][m]),b:qt(255*[f,f,p,i,i,h][m]),a:qt(s,2)}},tc=function(n){var a=n.toString(16);return a.length<2?"0"+a:a},XO=function(n){var a=n.r,l=n.g,i=n.b,s=n.a,c=s<1?tc(qt(255*s)):"";return"#"+tc(a)+tc(l)+tc(i)+c},QO=function(n){var a=n.r,l=n.g,i=n.b,s=n.a,c=Math.max(a,l,i),f=c-Math.min(a,l,i),h=f?c===a?(l-i)/f:c===l?2+(i-a)/f:4+(a-l)/f:0;return{h:qt(60*(h<0?h+6:h)),s:qt(c?f/c*100:0),v:qt(c/255*100),a:s}},IO=mt.memo(function(n){var a=n.hue,l=n.onChange,i=Dh(["react-colorful__hue",n.className]);return mt.createElement("div",{className:i},mt.createElement(Mx,{onMove:function(s){l({h:360*s.left})},onKey:function(s){l({h:wo(a+360*s.left,0,360)})},"aria-label":"Hue","aria-valuenow":qt(a),"aria-valuemax":"360","aria-valuemin":"0"},mt.createElement(Dx,{className:"react-colorful__hue-pointer",left:a/360,color:Wd({h:a,s:100,v:100,a:1})})))}),ZO=mt.memo(function(n){var a=n.hsva,l=n.onChange,i={backgroundColor:Wd({h:a.h,s:100,v:100,a:1})};return mt.createElement("div",{className:"react-colorful__saturation",style:i},mt.createElement(Mx,{onMove:function(s){l({s:100*s.left,v:100-100*s.top})},onKey:function(s){l({s:wo(a.s+100*s.left,0,100),v:wo(a.v-100*s.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+qt(a.s)+"%, Brightness "+qt(a.v)+"%"},mt.createElement(Dx,{className:"react-colorful__saturation-pointer",top:1-a.v/100,left:a.s/100,color:Wd(a)})))}),Lx=function(n,a){if(n===a)return!0;for(var l in n)if(n[l]!==a[l])return!1;return!0},JO=function(n,a){return n.toLowerCase()===a.toLowerCase()||Lx(Jd(n),Jd(a))};function WO(n,a,l){var i=Id(l),s=y.useState(function(){return n.toHsva(a)}),c=s[0],f=s[1],h=y.useRef({color:a,hsva:c});y.useEffect(function(){if(!n.equal(a,h.current.color)){var m=n.toHsva(a);h.current={hsva:m,color:a},f(m)}},[a,n]),y.useEffect(function(){var m;Lx(c,h.current.hsva)||n.equal(m=n.fromHsva(c),h.current.color)||(h.current={hsva:c,color:m},i(m))},[c,n,i]);var p=y.useCallback(function(m){f(function(v){return Object.assign({},v,m)})},[]);return[c,p]}var eA=typeof window<"u"?y.useLayoutEffect:y.useEffect,tA=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},Vy=new Map,nA=function(n){eA(function(){var a=n.current?n.current.ownerDocument:document;if(a!==void 0&&!Vy.has(a)){var l=a.createElement("style");l.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,Vy.set(a,l);var i=tA();i&&l.setAttribute("nonce",i),a.head.appendChild(l)}},[])},aA=function(n){var a=n.className,l=n.colorModel,i=n.color,s=i===void 0?l.defaultColor:i,c=n.onChange,f=Tx(n,["className","colorModel","color","onChange"]),h=y.useRef(null);nA(h);var p=WO(l,s,c),m=p[0],v=p[1],b=Dh(["react-colorful",a]);return mt.createElement("div",Fc({},f,{ref:h,className:b}),mt.createElement(ZO,{hsva:m,onChange:v}),mt.createElement(IO,{hue:m.h,onChange:v,className:"react-colorful__last-control"}))},rA={defaultColor:"000",toHsva:FO,fromHsva:function(n){return YO({h:n.h,s:n.s,v:n.v,a:1})},equal:JO},lA=function(n){return mt.createElement(aA,Fc({},n,{colorModel:rA}))};const iA=n=>n.startsWith("#")?n:"#000000";function qy({value:n="",onChange:a,placeholder:l="选择颜色...",showPreview:i=!0}){const[s,c]=y.useState(!1),[f,h]=y.useState("");y.useEffect(()=>{n.startsWith("#")?h(n):h("")},[n]);const p=b=>{a(b)},m=b=>{const w=b.target.value;h(w),/^#[0-9A-F]{6}$/i.test(w)&&p(w)},v=iA(n);return g.jsx("div",{className:"space-y-2",children:g.jsxs($c,{open:s,onOpenChange:c,children:[g.jsx(Vc,{asChild:!0,children:g.jsx(Ce,{variant:"outline",className:dt("w-full justify-start text-left font-normal h-10 transition-all hover:scale-[1.02] active:scale-[0.98]",!n&&"text-muted-foreground"),children:g.jsxs("div",{className:"flex items-center gap-2 w-full",children:[i&&g.jsx("div",{className:"h-5 w-5 rounded border shadow-sm",style:{backgroundColor:v}}),g.jsx("span",{className:"truncate flex-1",children:n||l}),g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[g.jsx("path",{d:"m7 15 5 5 5-5"}),g.jsx("path",{d:"m7 9 5-5 5 5"})]})]})})}),g.jsx(qc,{className:"w-72 p-3",align:"start",children:g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("h4",{className:"text-sm font-semibold",children:"颜色选择器"}),g.jsx(Ce,{variant:"ghost",size:"sm",className:"h-6 px-2 text-xs",onClick:()=>p(""),children:"清除"})]}),g.jsxs("div",{className:"flex items-center gap-2 p-2 rounded-md bg-secondary",children:[g.jsx("div",{className:"h-8 w-8 rounded border shadow-sm",style:{backgroundColor:v}}),g.jsxs("div",{className:"flex-1 min-w-0",children:[g.jsx("div",{className:"text-sm font-medium truncate",children:n||"未选择颜色"}),n&&n.startsWith("#")&&g.jsx("div",{className:"text-xs text-muted-foreground font-mono",children:n.toUpperCase()})]})]}),g.jsx("div",{className:"rounded-md overflow-hidden border",children:g.jsx(lA,{color:v,onChange:p,className:"w-full"})}),g.jsxs("div",{className:"space-y-2",children:[g.jsx("label",{className:"text-sm font-medium",children:"自定义颜色"}),g.jsxs("div",{className:"flex gap-2",children:[g.jsx(ft,{type:"text",value:f,onChange:m,placeholder:"#RRGGBB",className:"font-mono flex-1"}),g.jsx(Ce,{size:"sm",onClick:()=>{f&&/^#[0-9A-F]{6}$/i.test(f)&&(p(f),c(!1))},disabled:!f||!/^#[0-9A-F]{6}$/i.test(f),children:"应用"})]}),g.jsx("p",{className:"text-xs text-muted-foreground",children:"输入十六进制颜色值 (例如: #FF0000)"})]})]})})]})})}const oA=wh("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Vr({className:n,variant:a,...l}){return g.jsx("div",{className:dt(oA({variant:a}),n),...l})}function sA(){return{enabled:!1,currentStyle:"default",default:{modules:[{type:"workDir",icon:"󰉋",text:"{{workDirName}}",color:"bright_blue"},{type:"gitBranch",icon:"",text:"{{gitBranch}}",color:"bright_magenta"},{type:"model",icon:"󰚩",text:"{{model}}",color:"bright_cyan"},{type:"usage",icon:"↑",text:"{{inputTokens}}",color:"bright_green"},{type:"usage",icon:"↓",text:"{{outputTokens}}",color:"bright_yellow"}]},powerline:{modules:[{type:"workDir",icon:"󰉋",text:"{{workDirName}}",color:"white",background:"bg_bright_blue"},{type:"gitBranch",icon:"",text:"{{gitBranch}}",color:"white",background:"bg_bright_magenta"},{type:"model",icon:"󰚩",text:"{{model}}",color:"white",background:"bg_bright_cyan"},{type:"usage",icon:"↑",text:"{{inputTokens}}",color:"white",background:"bg_bright_green"},{type:"usage",icon:"↓",text:"{{outputTokens}}",color:"white",background:"bg_bright_yellow"}]}}}const cA={type:"workDir",icon:"󰉋",text:"{{workDirName}}",color:"bright_blue"},uA=[{label:"Hack Nerd Font Mono",value:"Hack Nerd Font Mono"},{label:"FiraCode Nerd Font Mono",value:"FiraCode Nerd Font Mono"},{label:"JetBrainsMono Nerd Font Mono",value:"JetBrainsMono Nerd Font Mono"},{label:"Monaspace Nerd Font Mono",value:"Monaspace Nerd Font Mono"},{label:"UbuntuMono Nerd Font",value:"UbuntuMono Nerd Font"}],fA=[{label:"workDir",value:"workDir"},{label:"gitBranch",value:"gitBranch"},{label:"model",value:"model"},{label:"usage",value:"usage"},{label:"script",value:"script"}],Ed={black:"text-black",red:"text-red-600",green:"text-green-600",yellow:"text-yellow-500",blue:"text-blue-500",magenta:"text-purple-500",cyan:"text-cyan-500",white:"text-white",bright_black:"text-gray-500",bright_red:"text-red-400",bright_green:"text-green-400",bright_yellow:"text-yellow-300",bright_blue:"text-blue-300",bright_magenta:"text-purple-300",bright_cyan:"text-cyan-300",bright_white:"text-white",bg_black:"bg-black",bg_red:"bg-red-600",bg_green:"bg-green-600",bg_yellow:"bg-yellow-500",bg_blue:"bg-blue-500",bg_magenta:"bg-purple-500",bg_cyan:"bg-cyan-500",bg_white:"bg-white",bg_bright_black:"bg-gray-800",bg_bright_red:"bg-red-400",bg_bright_green:"bg-green-400",bg_bright_yellow:"bg-yellow-300",bg_bright_blue:"bg-blue-300",bg_bright_magenta:"bg-purple-300",bg_bright_cyan:"bg-cyan-300",bg_bright_white:"bg-gray-100",bg_bright_orange:"bg-orange-400",bg_bright_purple:"bg-purple-400"},dA=mt.memo(({value:n,onChange:a,fontFamily:l,t:i})=>{const[s,c]=y.useState(!1),[f,h]=y.useState(n),[p,m]=y.useState([]),[v,b]=y.useState([]),[w,S]=y.useState(!1),C=mt.useRef(null),E=y.useCallback(async()=>{if(!(p.length>0)){S(!0);try{const N=await(await fetch("https://www.nerdfonts.com/assets/css/combo.css")).text(),B=/\.nf-([a-zA-Z0-9_-]+):before\s*\{\s*content:\s*"\\([0-9a-fA-F]+)";?\s*\}/g,J=[];let te;for(;(te=B.exec(N))!==null;){const ae=`nf-${te[1]}`,re=te[2],fe=String.fromCharCode(parseInt(re,16));J.push({className:ae,unicode:re,char:fe})}m(J),b(J.slice(0,200))}catch(M){console.error("Failed to load icons:",M),m([]),b([])}finally{S(!1)}}},[p.length]);y.useEffect(()=>{if(f.trim()===""){b(p.slice(0,100));return}const M=f.toLowerCase();let N=p;if(M.length===1||/[\u{2000}-\u{2FFFF}]/u.test(f)){const B=p.find(J=>J.char===f);B?N=[B]:N=p.filter(J=>J.char===f)}else N=p.filter(B=>{const J=B.className.toLowerCase(),te=J.replace(/[_-]/g,""),ae=M.replace(/[_-]/g,"");return J.includes(M)||te.includes(ae)||M.split(" ").every(re=>J.includes(re)||te.includes(re))});b(N.slice(0,120))},[f,p]);const j=M=>{const N=M.target.value;h(N),a(N),c(!0),p.length===0&&E()},R=M=>{const N=M.clipboardData.getData("text");N&&N.length===1&&setTimeout(()=>{c(!0)},10)},L=M=>{h(M),a(M),c(!1),C.current?.focus()},k=()=>{c(!0),p.length===0&&E()},H=()=>{setTimeout(()=>c(!1),200)};return g.jsxs("div",{className:"relative",children:[g.jsx("div",{className:"relative",children:g.jsx(ft,{ref:C,value:f,onChange:j,onFocus:k,onBlur:H,onPaste:R,placeholder:i("statusline.icon_placeholder"),style:{fontFamily:l+", monospace"},className:"text-lg pr-2"})}),s&&g.jsx("div",{className:"absolute z-50 mt-1 w-full max-h-72 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg",children:w?g.jsx("div",{className:"flex items-center justify-center p-8",children:g.jsxs("svg",{className:"animate-spin h-6 w-6 text-primary",viewBox:"0 0 24 24",children:[g.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none",opacity:"0.1"}),g.jsx("path",{fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}):g.jsx(g.Fragment,{children:g.jsxs("div",{className:"grid grid-cols-5 gap-2 p-2 max-h-72 overflow-y-auto",children:[v.map(M=>g.jsx("div",{className:"flex items-center justify-center p-3 text-2xl cursor-pointer hover:bg-secondary rounded transition-colors",onClick:()=>L(M.char),onMouseDown:N=>N.preventDefault(),title:`${M.char} - ${M.className}`,style:{fontFamily:l+", monospace"},children:M.char},M.className)),v.length===0&&g.jsxs("div",{className:"col-span-5 flex flex-col items-center justify-center p-8 text-muted-foreground",children:[g.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"mb-2",children:[g.jsx("circle",{cx:"11",cy:"11",r:"8"}),g.jsx("path",{d:"m21 21-4.35-4.35"})]}),g.jsx("div",{className:"text-sm",children:f?`${i("statusline.no_icons_found")} "${f}"`:i("statusline.no_icons_available")})]})]})})})]})});function hA(n,a){return n.replace(/\{\{(\w+)\}\}/g,(l,i)=>a[i]||l)}function mA(n,a=!1){const l={workDirName:"project",gitBranch:"main",model:"Claude Sonnet 4",inputTokens:"1.2k",outputTokens:"2.5k"},i=hA(n.text,l),s=n.icon||"";if(!i&&n.type!=="usage")return null;const c=p=>/^#[0-9A-F]{6}$/i.test(p);if(a){let p={},m="",v="";n.background&&(c(n.background)?(p={backgroundColor:n.background},v=n.background):(m=Ed[n.background]||"",v=n.background));let b={},w="";return n.color?c(n.color)?b={color:n.color}:w=Ed[n.color]||"text-white":w="text-white",g.jsxs("div",{className:`powerline-module px-4 ${m} ${w}`,style:{...p,...b},children:[g.jsxs("div",{className:"powerline-module-content",children:[s&&g.jsx("span",{children:s}),g.jsx("span",{children:i})]}),g.jsx("div",{className:"powerline-separator","data-current-bg":v})]})}let f={},h="";return n.color&&(c(n.color)?f={color:n.color}:h=Ed[n.color]||""),g.jsxs(g.Fragment,{children:[s&&g.jsx("span",{style:f,className:h,children:s}),g.jsx("span",{style:f,className:h,children:i})]})}function pA({isOpen:n,onOpenChange:a}){const{t:l}=Oa(),{config:i,setConfig:s}=Wr(),[c,f]=y.useState(i?.StatusLine||sA()),[h,p]=y.useState(i?.StatusLine?.fontFamily||"Hack Nerd Font Mono"),[m,v]=y.useState(null),[b,w]=y.useState(new Set);y.useEffect(()=>{const re=document.createElement("style");return re.innerHTML=`
222
247
  .powerline-module {
223
248
  display: inline-flex;
224
249
  align-items: center;
@@ -282,9 +307,9 @@ For more information, see https://radix-ui.com/primitives/docs/components/${a.do
282
307
  .powerline-separator[data-current-bg="bg_bright_white"] { border-left-color: #f3f4f6; }
283
308
  .powerline-separator[data-current-bg="bg_bright_orange"] { border-left-color: #fb923c; }
284
309
  .powerline-separator[data-current-bg="bg_bright_purple"] { border-left-color: #c084fc; }
285
- `,document.head.appendChild(le),()=>{document.head.removeChild(le)}},[]),y.useEffect(()=>{const le=new Set;Object.keys(u).forEach(W=>{const ue=u[W];ue&&typeof ue=="object"&&"modules"in ue&&(ue.modules||[]).forEach(Q=>{Q.background&&/^#[0-9A-F]{6}$/i.test(Q.background)&&le.add(Q.background)})}),w(le);const J=document.createElement("style");J.id="hex-powerline-styles";let te="";return le.forEach(W=>{const ue=parseInt(W.slice(1,3),16),A=parseInt(W.slice(3,5),16),Q=parseInt(W.slice(5,7),16);te+=`.powerline-separator[data-current-bg="${W}"] { border-left-color: rgb(${ue}, ${A}, ${Q}); }
286
- `}),J.innerHTML=te,document.head.appendChild(J),()=>{const W=document.getElementById("hex-powerline-styles");W&&document.head.removeChild(W)}},[u]);const S=JO.map(le=>({...le,label:l(`statusline.${le.label}`)})),C=le=>{f(J=>({...J,currentStyle:le}))},_=(le,J,te)=>{const W=u.currentStyle,ue=u[W],A=ue&&typeof ue=="object"&&"modules"in ue?[...ue.modules||[]]:[];A[le]&&(A[le]={...A[le],[J]:te}),f(Q=>({...Q,[W]:{modules:A}}))},[j,N]=y.useState([]),z=()=>{N([]),i&&(s({...i,StatusLine:{...u,fontFamily:h}}),a(!1))},k=({title:le,description:J,variant:te="default"})=>{const W=te==="destructive";return g.jsx("div",{className:`rounded-lg border p-4 ${W?"bg-red-50 border-red-200 text-red-800":"bg-blue-50 border-blue-200 text-blue-800"}`,children:g.jsxs("div",{className:"flex",children:[g.jsx("div",{className:"flex-shrink-0",children:W?g.jsx("svg",{className:"h-5 w-5 text-red-400",viewBox:"0 0 20 20",fill:"currentColor",children:g.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})}):g.jsx("svg",{className:"h-5 w-5 text-blue-400",viewBox:"0 0 20 20",fill:"currentColor",children:g.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"})})}),g.jsxs("div",{className:"ml-3",children:[g.jsx("h3",{className:`text-sm font-medium ${W?"text-red-800":"text-blue-800"}`,children:le}),g.jsx("div",{className:`mt-2 text-sm ${W?"text-red-700":"text-blue-700"}`,children:J})]})]})})},H=u.currentStyle,D=u[H],R=D&&typeof D=="object"&&"modules"in D?D.modules||[]:[],B=m!==null&&R.length>m?R[m]:null,Z=y.useCallback(()=>{if(m===null)return;const le=u.currentStyle,J=u[le],te=J&&typeof J=="object"&&"modules"in J?[...J.modules||[]]:[];m>=0&&m<te.length&&(te.splice(m,1),f(W=>({...W,[le]:{modules:te}})),v(null))},[m,u]),ne=h?{fontFamily:h}:{};y.useEffect(()=>{const le=J=>{m!==null&&(J.key==="Delete"||J.key==="Backspace")&&(J.preventDefault(),Z())};return document.addEventListener("keydown",le),()=>{document.removeEventListener("keydown",le)}},[m,Z]);const oe=`${h}-${u.currentStyle}`;return g.jsx(Gr,{open:n,onOpenChange:a,children:g.jsxs(or,{className:"max-w-4xl h-[90vh] overflow-hidden sm:max-w-5xl md:max-w-6xl lg:max-w-7xl animate-in fade-in-90 slide-in-from-bottom-10 duration-300 flex flex-col",children:[g.jsx(sr,{"data-testid":"statusline-config-dialog-header",className:"border-b pb-4",children:g.jsxs(ur,{className:"flex items-center",children:[g.jsxs("svg",{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",className:"mr-2",children:[g.jsx("path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),g.jsx("path",{d:"M14 3v4a2 2 0 0 0 2 2h4"}),g.jsx("path",{d:"M3 12h18"})]}),l("statusline.title")]})}),j.length>0&&g.jsx("div",{className:"px-6",children:g.jsx(k,{variant:"destructive",title:"配置验证失败",description:g.jsx("ul",{className:"list-disc pl-5 space-y-1",children:j.map((le,J)=>g.jsx("li",{children:le},J))})})}),g.jsxs("div",{className:"flex flex-col gap-6 flex-1 overflow-hidden",children:[g.jsx("div",{className:"space-y-6",children:g.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ge,{htmlFor:"theme-style",className:"text-sm font-medium",children:l("statusline.theme")}),g.jsx(An,{options:[{label:l("statusline.theme_default"),value:"default"},{label:l("statusline.theme_powerline"),value:"powerline"}],value:u.currentStyle,onChange:C,"data-testid":"theme-selector",placeholder:l("statusline.theme_placeholder")})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ge,{htmlFor:"font-family",className:"text-sm font-medium",children:l("statusline.module_icon")}),g.jsx(An,{options:IO,value:h,onChange:le=>p(le),"data-testid":"font-family-selector",placeholder:l("statusline.font_placeholder")})]})]})}),g.jsxs("div",{className:"grid grid-cols-5 gap-6 overflow-hidden flex-1",children:[g.jsxs("div",{className:"border rounded-lg flex flex-col overflow-hidden col-span-1",children:[g.jsx("h3",{className:"text-sm font-medium p-4 pb-0 mb-3",children:l("statusline.components")}),g.jsx("div",{className:"space-y-2 overflow-y-auto px-4 pb-4 flex-1",children:S.map(le=>g.jsx("div",{className:"flex items-center gap-2 p-2 border rounded cursor-move hover:bg-secondary",draggable:!0,onDragStart:J=>{J.dataTransfer.setData("moduleType",le.value)},children:g.jsx("span",{className:"text-sm",children:le.label})},le.value))})]}),g.jsxs("div",{className:"border rounded-lg p-4 flex flex-col col-span-3",children:[g.jsx("h3",{className:"text-sm font-medium mb-3",children:l("statusline.preview")}),g.jsx("div",{className:`rounded bg-black/90 text-white font-mono text-sm overflow-x-auto flex items-center border border-border p-3 py-5 shadow-inner overflow-hidden ${u.currentStyle==="powerline"?"gap-0 h-8 p-0 items-center relative":"h-5"}`,"data-testid":"statusline-preview",style:ne,onDragOver:le=>{le.preventDefault()},onDrop:le=>{le.preventDefault();const J=le.dataTransfer.getData("moduleType");if(J){const te=u.currentStyle,W=u[te],ue=W&&typeof W=="object"&&"modules"in W?[...W.modules||[]]:[];let A;switch(J){case"workDir":A={type:"workDir",icon:"󰉋",text:"{{workDirName}}",color:"bright_blue"};break;case"gitBranch":A={type:"gitBranch",icon:"🌿",text:"{{gitBranch}}",color:"bright_green"};break;case"model":A={type:"model",icon:"🤖",text:"{{model}}",color:"bright_yellow"};break;case"usage":A={type:"usage",icon:"📊",text:"{{inputTokens}} → {{outputTokens}}",color:"bright_magenta"};break;case"script":A={type:"script",icon:"📜",text:"Script Module",color:"bright_cyan",scriptPath:""};break;default:A={...ZO,type:J}}ue.push(A),f(Q=>({...Q,[te]:{modules:ue}}))}},children:R.length>0?g.jsx("div",{className:"flex items-center flex-wrap gap-0",children:R.map((le,J)=>g.jsx("div",{className:`cursor-pointer ${m===J?"bg-white/20":"hover:bg-white/10"} ${u.currentStyle==="powerline"?"p-0 rounded-none inline-flex overflow-visible relative":"flex items-center gap-1 px-2 py-1 rounded"}`,onClick:()=>v(J),draggable:!0,onDragStart:te=>{te.dataTransfer.setData("dragIndex",J.toString())},onDragOver:te=>{te.preventDefault()},onDrop:te=>{te.preventDefault();const W=parseInt(te.dataTransfer.getData("dragIndex"));if(!isNaN(W)&&W!==J){const ue=u.currentStyle,A=u[ue],Q=A&&typeof A=="object"&&"modules"in A?[...A.modules||[]]:[];if(W>=0&&W<Q.length&&J>=0&&J<=Q.length){const[V]=Q.splice(W,1);Q.splice(J,0,V),f(ve=>({...ve,[ue]:{modules:Q}})),m===W?v(J):m===J&&v(W)}}},children:tA(le,u.currentStyle==="powerline")},J))}):g.jsxs("div",{className:"flex flex-col items-center justify-center w-full py-4 text-center",children:[g.jsxs("svg",{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",className:"text-gray-500 mb-2",children:[g.jsx("path",{d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18z"}),g.jsx("path",{d:"M12 8v8"}),g.jsx("path",{d:"M8 12h8"})]}),g.jsx("span",{className:"text-gray-500 text-sm",children:l("statusline.drag_hint")})]})},oe)]}),g.jsxs("div",{className:"border rounded-lg flex flex-col overflow-hidden col-span-1",children:[g.jsx("h3",{className:"text-sm font-medium p-4 pb-0 mb-3",children:l("statusline.properties")}),g.jsx("div",{className:"overflow-y-auto px-4 pb-4 flex-1",children:B&&m!==null?g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ge,{htmlFor:"module-icon",children:l("statusline.module_icon")}),g.jsx(WO,{value:B.icon||"",onChange:le=>_(m,"icon",le),fontFamily:h,t:l},oe),g.jsx("p",{className:"text-xs text-muted-foreground",children:l("statusline.icon_description")})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ge,{htmlFor:"module-text",children:l("statusline.module_text")}),g.jsx(ft,{id:"module-text",value:B.text,onChange:le=>_(m,"text",le.target.value),placeholder:l("statusline.text_placeholder")}),g.jsxs("div",{className:"text-xs text-muted-foreground",children:[g.jsx("p",{children:l("statusline.module_text_description")}),g.jsxs("div",{className:"flex flex-wrap gap-1 mt-1",children:[g.jsx($r,{variant:"secondary",className:"text-xs py-0.5 px-1.5",children:"{{workDirName}}"}),g.jsx($r,{variant:"secondary",className:"text-xs py-0.5 px-1.5",children:"{{gitBranch}}"}),g.jsx($r,{variant:"secondary",className:"text-xs py-0.5 px-1.5",children:"{{model}}"}),g.jsx($r,{variant:"secondary",className:"text-xs py-0.5 px-1.5",children:"{{inputTokens}}"}),g.jsx($r,{variant:"secondary",className:"text-xs py-0.5 px-1.5",children:"{{outputTokens}}"})]})]})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ge,{children:l("statusline.module_color")}),g.jsx($y,{value:B.color||"",onChange:le=>_(m,"color",le)}),g.jsx("p",{className:"text-xs text-muted-foreground",children:l("statusline.module_color_description")})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ge,{children:l("statusline.module_background")}),g.jsx($y,{value:B.background||"",onChange:le=>_(m,"background",le)}),g.jsx("p",{className:"text-xs text-muted-foreground",children:l("statusline.module_background_description")})]}),B.type==="script"&&g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ge,{htmlFor:"module-script-path",children:l("statusline.module_script_path")}),g.jsx(ft,{id:"module-script-path",value:B.scriptPath||"",onChange:le=>_(m,"scriptPath",le.target.value),placeholder:l("statusline.script_placeholder")}),g.jsx("p",{className:"text-xs text-muted-foreground",children:l("statusline.module_script_path_description")})]}),g.jsx(Ae,{variant:"destructive",size:"sm",onClick:Z,children:l("statusline.delete_module")})]}):g.jsx("div",{className:"flex items-center justify-center h-full min-h-[200px]",children:g.jsx("p",{className:"text-muted-foreground text-sm",children:l("statusline.select_hint")})})})]})]})]}),g.jsxs(Xr,{className:"border-t pt-4 mt-4",children:[g.jsx(Ae,{variant:"outline",onClick:()=>a(!1),className:"transition-all hover:scale-105",children:l("app.cancel")}),g.jsx(Ae,{onClick:z,"data-testid":"save-statusline-config",className:"transition-all hover:scale-105",children:l("app.save")})]})]})})}function aA({isOpen:n,onOpenChange:a}){const{t:l}=hr(),{config:i,setConfig:s}=Jr(),[u,f]=y.useState(!1);if(!i)return null;const h=b=>{s({...i,LOG:b})},p=b=>{s({...i,CLAUDE_PATH:b.target.value})},m=b=>{const w={enabled:b,currentStyle:i.StatusLine?.currentStyle||"default",default:i.StatusLine?.default||{modules:[]},powerline:i.StatusLine?.powerline||{modules:[]}};s({...i,StatusLine:w})},v=()=>{f(!0)};return g.jsxs(Gr,{open:n,onOpenChange:a,children:[g.jsxs(or,{"data-testid":"settings-dialog",className:"max-h-[80vh] flex flex-col p-0",children:[g.jsx(sr,{className:"p-4 pb-0",children:g.jsx(ur,{children:l("toplevel.title")})}),g.jsxs("div",{className:"space-y-4 p-4 px-8 overflow-y-auto flex-1",children:[g.jsxs("div",{className:"flex items-center space-x-2",children:[g.jsx(Yd,{id:"log",checked:i.LOG,onCheckedChange:h}),g.jsx(Ge,{htmlFor:"log",className:"transition-all-ease hover:scale-[1.02] cursor-pointer",children:l("toplevel.log")})]}),g.jsx("div",{className:"space-y-2 border-t pt-4",children:g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("div",{className:"flex items-center space-x-2",children:[g.jsx(Yd,{id:"statusline",checked:i.StatusLine?.enabled||!1,onCheckedChange:m}),g.jsx(Ge,{htmlFor:"statusline",className:"transition-all-ease hover:scale-[1.02] cursor-pointer",children:l("statusline.title")})]}),g.jsx(Ae,{variant:"outline",size:"sm",onClick:v,className:"transition-all-ease hover:scale-[1.02] active:scale-[0.98]","data-testid":"statusline-config-button",children:l("app.settings")})]})}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ge,{htmlFor:"log-level",className:"transition-all-ease hover:scale-[1.01] cursor-pointer",children:l("toplevel.log_level")}),g.jsx(An,{options:[{label:"fatal",value:"fatal"},{label:"error",value:"error"},{label:"warn",value:"warn"},{label:"info",value:"info"},{label:"debug",value:"debug"},{label:"trace",value:"trace"}],value:i.LOG_LEVEL,onChange:b=>s({...i,LOG_LEVEL:b})})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ge,{htmlFor:"claude-path",className:"transition-all-ease hover:scale-[1.01] cursor-pointer",children:l("toplevel.claude_path")}),g.jsx(ft,{id:"claude-path",value:i.CLAUDE_PATH,onChange:p,className:"transition-all-ease focus:scale-[1.01]"})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ge,{htmlFor:"host",className:"transition-all-ease hover:scale-[1.01] cursor-pointer",children:l("toplevel.host")}),g.jsx(ft,{id:"host",value:i.HOST,onChange:b=>s({...i,HOST:b.target.value}),className:"transition-all-ease focus:scale-[1.01]"})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ge,{htmlFor:"port",className:"transition-all-ease hover:scale-[1.01] cursor-pointer",children:l("toplevel.port")}),g.jsx(ft,{id:"port",type:"number",value:i.PORT,onChange:b=>s({...i,PORT:parseInt(b.target.value,10)}),className:"transition-all-ease focus:scale-[1.01]"})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ge,{htmlFor:"timeout",className:"transition-all-ease hover:scale-[1.01] cursor-pointer",children:l("toplevel.timeout")}),g.jsx(ft,{id:"timeout",value:i.API_TIMEOUT_MS,onChange:b=>s({...i,API_TIMEOUT_MS:b.target.value}),className:"transition-all-ease focus:scale-[1.01]"})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ge,{htmlFor:"proxy-url",className:"transition-all-ease hover:scale-[1.01] cursor-pointer",children:l("toplevel.proxy_url")}),g.jsx(ft,{id:"proxy-url",value:i.PROXY_URL,onChange:b=>s({...i,PROXY_URL:b.target.value}),placeholder:"http://127.0.0.1:7890",className:"transition-all-ease focus:scale-[1.01]"})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ge,{htmlFor:"apikey",className:"transition-all-ease hover:scale-[1.01] cursor-pointer",children:l("toplevel.apikey")}),g.jsx(ft,{id:"apikey",type:"password",value:i.APIKEY,onChange:b=>s({...i,APIKEY:b.target.value}),className:"transition-all-ease focus:scale-[1.01]"})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ge,{htmlFor:"custom-router-path",className:"transition-all-ease hover:scale-[1.01] cursor-pointer",children:l("toplevel.custom_router_path")}),g.jsx(ft,{id:"custom-router-path",value:i.CUSTOM_ROUTER_PATH||"",onChange:b=>s({...i,CUSTOM_ROUTER_PATH:b.target.value}),placeholder:l("toplevel.custom_router_path_placeholder"),className:"transition-all-ease focus:scale-[1.01]"})]})]}),g.jsx(Xr,{className:"p-4 pt-0",children:g.jsx(Ae,{onClick:()=>a(!1),className:"transition-all-ease hover:scale-[1.02] active:scale-[0.98]",children:l("app.save")})})]}),g.jsx(nA,{isOpen:u,onOpenChange:f,"data-testid":"statusline-config-dialog"})]})}const Ca=y.forwardRef(({className:n,...a},l)=>g.jsx("div",{ref:l,className:dt("rounded-lg border bg-card text-card-foreground shadow-sm",n),...a}));Ca.displayName="Card";const Na=y.forwardRef(({className:n,...a},l)=>g.jsx("div",{ref:l,className:dt("flex flex-col space-y-1.5 p-6",n),...a}));Na.displayName="CardHeader";const Ra=y.forwardRef(({className:n,...a},l)=>g.jsx("div",{ref:l,className:dt("text-2xl font-semibold leading-none tracking-tight",n),...a}));Ra.displayName="CardTitle";const Lx=y.forwardRef(({className:n,...a},l)=>g.jsx("div",{ref:l,className:dt("text-sm text-muted-foreground",n),...a}));Lx.displayName="CardDescription";const ja=y.forwardRef(({className:n,...a},l)=>g.jsx("div",{ref:l,className:dt("p-6 pt-0",n),...a}));ja.displayName="CardContent";const kx=y.forwardRef(({className:n,...a},l)=>g.jsx("div",{ref:l,className:dt("flex items-center p-6 pt-0",n),...a}));kx.displayName="CardFooter";function rA({transformers:n,onEdit:a,onRemove:l}){return!n||!Array.isArray(n)?g.jsx("div",{className:"space-y-3",children:g.jsx("div",{className:"flex items-center justify-center rounded-md border bg-white p-8 text-gray-500",children:"No transformers configured"})}):g.jsx("div",{className:"space-y-3",children:n.map((i,s)=>{if(!i)return g.jsxs("div",{className:"flex items-start justify-between rounded-md border bg-white p-4 transition-all hover:shadow-md animate-slide-in hover:scale-[1.01]",children:[g.jsxs("div",{className:"flex-1 space-y-1.5",children:[g.jsx("p",{className:"text-md font-semibold text-gray-800",children:"Invalid Transformer"}),g.jsx("p",{className:"text-sm text-gray-500",children:"Transformer data is missing"})]}),g.jsxs("div",{className:"ml-4 flex flex-shrink-0 items-center gap-2",children:[g.jsx(Ae,{variant:"ghost",size:"icon",onClick:()=>a(s),className:"transition-all-ease hover:scale-110",disabled:!0,children:g.jsx(vu,{className:"h-4 w-4"})}),g.jsx(Ae,{variant:"destructive",size:"icon",onClick:()=>l(s),className:"transition-all duration-200 hover:scale-110",children:g.jsx(Kr,{className:"h-4 w-4 text-current transition-colors duration-200"})})]})]},s);const u=i.path||"Unnamed Transformer",f=i.options||{},h=()=>!f||Object.keys(f).length===0?g.jsx("p",{className:"text-sm text-gray-500",children:"No parameters configured"}):g.jsx("div",{className:"flex flex-wrap gap-2 max-h-8 overflow-hidden",children:Object.entries(f).map(([p,m])=>g.jsxs("span",{className:"inline-flex items-center px-2 py-1 rounded-md bg-gray-100 text-xs font-medium text-gray-700 border",children:[g.jsxs("span",{className:"text-gray-600",children:[p,":"]}),g.jsx("span",{className:"ml-1 text-gray-800",children:String(m)})]},p))});return g.jsxs("div",{className:"flex items-start justify-between rounded-md border bg-white p-4 transition-all hover:shadow-md animate-slide-in hover:scale-[1.01]",children:[g.jsxs("div",{className:"flex-1 space-y-1.5",children:[g.jsx("p",{className:"text-md font-semibold text-gray-800",children:u}),h()]}),g.jsxs("div",{className:"ml-4 flex flex-shrink-0 items-center gap-2",children:[g.jsx(Ae,{variant:"ghost",size:"icon",onClick:()=>a(s),className:"transition-all-ease hover:scale-110",children:g.jsx(vu,{className:"h-4 w-4"})}),g.jsx(Ae,{variant:"destructive",size:"icon",onClick:()=>l(s),className:"transition-all duration-200 hover:scale-110",children:g.jsx(Kr,{className:"h-4 w-4 text-current transition-colors duration-200"})})]})]},s)})})}function lA(){const{t:n}=hr(),{config:a,setConfig:l}=Jr(),[i,s]=y.useState(null),[u,f]=y.useState(null),[h,p]=y.useState(null);if(!a)return g.jsxs(Ca,{className:"flex h-full flex-col rounded-lg border shadow-sm",children:[g.jsx(Na,{className:"flex flex-row items-center justify-between border-b p-4",children:g.jsx(Ra,{className:"text-lg",children:n("transformers.title")})}),g.jsx(ja,{className:"flex-grow flex items-center justify-center p-4",children:g.jsx("div",{className:"text-gray-500",children:"Loading transformers configuration..."})})]});const m=Array.isArray(a.transformers)?a.transformers:[],v=()=>{p({name:"",path:"",options:{}}),s(m.length)},b=j=>{const N=[...m];N.splice(j,1),l({...a,transformers:N}),f(null)},w=(j,N,z,k)=>{if(j<m.length){const H=[...m];k!==void 0?H[j].options[k]=z:H[j][N]=z,l({...a,transformers:H})}else if(h){const H={...h};k!==void 0?H.options[k]=z:H[N]=z,p(H)}},S=i!==null?i<m.length?m[i]:h:null,C=()=>{if(h&&i===m.length){const j=[...m,h];l({...a,transformers:j})}s(null),p(null)},_=()=>{s(null),p(null)};return g.jsxs(Ca,{className:"flex h-full flex-col rounded-lg border shadow-sm",children:[g.jsxs(Na,{className:"flex flex-row items-center justify-between border-b p-4",children:[g.jsxs(Ra,{className:"text-lg",children:[n("transformers.title")," ",g.jsxs("span",{className:"text-sm font-normal text-gray-500",children:["(",m.length,")"]})]}),g.jsx(Ae,{onClick:v,children:n("transformers.add")})]}),g.jsx(ja,{className:"flex-grow overflow-y-auto p-4",children:g.jsx(rA,{transformers:m,onEdit:s,onRemove:f})}),g.jsx(Gr,{open:i!==null,onOpenChange:_,children:g.jsxs(or,{children:[g.jsx(sr,{children:g.jsx(ur,{children:n("transformers.edit")})}),S&&i!==null&&g.jsxs("div",{className:"space-y-4 py-4 px-6 max-h-96 overflow-y-auto",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ge,{htmlFor:"transformer-path",children:n("transformers.path")}),g.jsx(ft,{id:"transformer-path",value:S.path||"",onChange:j=>w(i,"path",j.target.value)})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx(Ge,{children:n("transformers.parameters")}),g.jsx(Ae,{variant:"outline",size:"sm",onClick:()=>{const j=S.options||{},N=`param${Object.keys(j).length+1}`;if(i!==null){const z={...j,[N]:""};if(i<m.length){const k=[...m];k[i].options=z,l({...a,transformers:k})}else h&&p({...h,options:z})}},children:g.jsx(Hd,{className:"h-4 w-4"})})]}),Object.entries(S.options||{}).map(([j,N])=>g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(ft,{value:j,onChange:z=>{const H={...S.options||{}};if(delete H[j],H[z.target.value]=N,i!==null)if(i<m.length){const D=[...m];D[i].options=H,l({...a,transformers:D})}else h&&p({...h,options:H})},className:"flex-1"}),g.jsx(ft,{value:N,onChange:z=>{i!==null&&w(i,"parameters",z.target.value,j)},className:"flex-1"}),g.jsx(Ae,{variant:"outline",size:"icon",onClick:()=>{if(i!==null){const k={...S.options||{}};if(delete k[j],i<m.length){const H=[...m];H[i].options=k,l({...a,transformers:H})}else h&&p({...h,options:k})}},children:g.jsx(Kr,{className:"h-4 w-4"})})]},j))]})]}),g.jsxs(Xr,{children:[g.jsx(Ae,{variant:"outline",onClick:_,children:n("app.cancel")}),g.jsx(Ae,{onClick:C,children:n("app.save")})]})]})}),g.jsx(Gr,{open:u!==null,onOpenChange:()=>f(null),children:g.jsxs(or,{children:[g.jsxs(sr,{children:[g.jsx(ur,{children:n("transformers.delete")}),g.jsx(Lu,{children:n("transformers.delete_transformer_confirm")})]}),g.jsxs(Xr,{children:[g.jsx(Ae,{variant:"outline",onClick:()=>f(null),children:n("app.cancel")}),g.jsx(Ae,{variant:"destructive",onClick:()=>u!==null&&b(u),children:n("app.delete")})]})]})})]})}function iA({providers:n,onEdit:a,onRemove:l}){return!n||!Array.isArray(n)?g.jsx("div",{className:"space-y-3",children:g.jsx("div",{className:"flex items-center justify-center rounded-md border bg-white p-8 text-gray-500",children:"No providers configured"})}):g.jsx("div",{className:"space-y-3",children:n.map((i,s)=>{if(!i)return g.jsxs("div",{className:"flex items-start justify-between rounded-md border bg-white p-4 transition-all hover:shadow-md animate-slide-in hover:scale-[1.01]",children:[g.jsxs("div",{className:"flex-1 space-y-1.5",children:[g.jsx("p",{className:"text-md font-semibold text-gray-800",children:"Invalid Provider"}),g.jsx("p",{className:"text-sm text-gray-500",children:"Provider data is missing"})]}),g.jsxs("div",{className:"ml-4 flex flex-shrink-0 items-center gap-2",children:[g.jsx(Ae,{variant:"ghost",size:"icon",onClick:()=>a(s),className:"transition-all-ease hover:scale-110",disabled:!0,children:g.jsx(vu,{className:"h-4 w-4"})}),g.jsx(Ae,{variant:"destructive",size:"icon",onClick:()=>l(s),className:"transition-all duration-200 hover:scale-110",children:g.jsx(Kr,{className:"h-4 w-4 text-current transition-colors duration-200"})})]})]},s);const u=i.name||"Unnamed Provider",f=i.api_base_url||"No API URL",h=Array.isArray(i.models)?i.models:[];return g.jsxs("div",{className:"flex items-start justify-between rounded-md border bg-white p-4 transition-all hover:shadow-md animate-slide-in hover:scale-[1.01]",children:[g.jsxs("div",{className:"flex-1 space-y-1.5",children:[g.jsx("p",{className:"text-md font-semibold text-gray-800",children:u}),g.jsx("p",{className:"text-sm text-gray-500",children:f}),g.jsx("div",{className:"flex flex-wrap gap-2 pt-2",children:h.map((p,m)=>g.jsx($r,{variant:"outline",className:"font-normal transition-all-ease hover:scale-105",children:p||"Unnamed Model"},m))})]}),g.jsxs("div",{className:"ml-4 flex flex-shrink-0 items-center gap-2",children:[g.jsx(Ae,{variant:"ghost",size:"icon",onClick:()=>a(s),className:"transition-all-ease hover:scale-110",children:g.jsx(vu,{className:"h-4 w-4"})}),g.jsx(Ae,{variant:"destructive",size:"icon",onClick:()=>l(s),className:"transition-all duration-200 hover:scale-110",children:g.jsx(Kr,{className:"h-4 w-4 text-current transition-colors duration-200"})})]})]},s)})})}const oA=y.forwardRef(({options:n,value:a,onChange:l,onEnter:i,searchPlaceholder:s="Search...",emptyPlaceholder:u="No options found.",inputPlaceholder:f="Type or select..."},h)=>{const[p,m]=y.useState(!1),[v,b]=y.useState(a||""),w=y.useRef(null);y.useImperativeHandle(h,()=>w.current),y.useEffect(()=>{b(a||"")},[a]);const S=N=>{const z=N.target.value;b(z),l(z)},C=N=>{N.key==="Enter"&&v.trim()&&i&&(i(v.trim()),b(""))},_=N=>{b(N),l(N),i&&(i(N),b("")),m(!1)},j=()=>v;return y.useImperativeHandle(h,()=>({...w.current,value:v,getCurrentValue:j,clearInput:()=>{b(""),l("")}})),g.jsxs("div",{className:"relative",children:[g.jsx(ft,{ref:w,value:v,onChange:S,onKeyDown:C,placeholder:f,className:"pr-10"}),g.jsxs($u,{open:p,onOpenChange:m,children:[g.jsx(Vu,{asChild:!0,children:g.jsx(Ae,{variant:"ghost",size:"sm",className:"absolute right-0 top-0 h-full px-3 py-2 hover:bg-transparent",children:g.jsx(ub,{className:"h-4 w-4 opacity-50"})})}),g.jsx(Yu,{className:"w-[--radix-popover-trigger-width] p-0 animate-fade-in",children:g.jsxs(qb,{children:[g.jsx(Fb,{placeholder:s}),g.jsxs(Kb,{children:[g.jsx(Gb,{children:u}),g.jsx(Xb,{children:n.map(N=>g.jsxs(Qb,{value:N.value,onSelect:()=>_(N.value),className:"transition-all-ease hover:bg-accent hover:text-accent-foreground",children:[g.jsx(sb,{className:dt("mr-2 h-4 w-4 transition-opacity",a===N.value?"opacity-100":"opacity-0")}),N.label]},N.value))})]})]})})]})]})});function sA(){const{t:n}=hr(),{config:a,setConfig:l}=Jr(),[i,s]=y.useState(null),[u,f]=y.useState(null),[h,p]=y.useState({}),[m,v]=y.useState({}),[b,w]=y.useState({}),[S,C]=y.useState([]),[_,j]=y.useState(null),[N,z]=y.useState(!1),[k,H]=y.useState([]),[D,R]=y.useState({}),[B,Z]=y.useState(null),[ne,oe]=y.useState(null),[le,J]=y.useState(""),te=y.useRef(null);if(y.useEffect(()=>{(async()=>{try{const fe=await fetch("https://pub-0dc3e1677e894f07bbea11b17a29e032.r2.dev/providers.json");if(fe.ok){const pe=await fe.json();H(pe||[])}else console.error("Failed to fetch provider templates")}catch(fe){console.error("Failed to fetch provider templates:",fe)}})()},[]),y.useEffect(()=>{(async()=>{try{const fe=await Qt.get("/transformers");C(fe.transformers)}catch(fe){console.error("Failed to fetch transformers:",fe)}})()},[]),!a)return g.jsxs(Ca,{className:"flex h-full flex-col rounded-lg border shadow-sm",children:[g.jsx(Na,{className:"flex flex-row items-center justify-between border-b p-4",children:g.jsx(Ra,{className:"text-lg",children:n("providers.title")})}),g.jsx(ja,{className:"flex-grow flex items-center justify-center p-4",children:g.jsx("div",{className:"text-gray-500",children:"Loading providers configuration..."})})]});const W=Array.isArray(a.Providers)?a.Providers:[],ue=()=>{const ie={name:"",api_base_url:"",api_key:"",models:[]};s(a.Providers.length),j(ie),z(!0),R(fe=>({...fe,[a.Providers.length]:!1})),Z(null),oe(null)},A=ie=>{const fe=a.Providers[ie];s(ie),j(JSON.parse(JSON.stringify(fe))),z(!1),R(pe=>({...pe,[ie]:!1})),Z(null),oe(null)},Q=()=>{if(!_)return;if(!_.name||_.name.trim()===""){oe(n("providers.name_required"));return}const ie=_.name.trim();if(a.Providers.some((pe,he)=>!N&&he===i?!1:pe.name.toLowerCase()===ie.toLowerCase())){oe(n("providers.name_duplicate"));return}if(!_.api_key||_.api_key.trim()===""){Z(n("providers.api_key_required"));return}if(Z(null),oe(null),i!==null&&_){const pe=[...a.Providers];N?pe.push(_):pe[i]=_,l({...a,Providers:pe})}i!==null&&R(pe=>{const he={...pe};return delete he[i],he}),s(null),j(null),z(!1)},V=()=>{i!==null&&(p(ie=>{const fe={...ie};return delete fe[i],fe}),R(ie=>{const fe={...ie};return delete fe[i],fe})),s(null),j(null),z(!1),Z(null),oe(null)},ve=ie=>{const fe=[...a.Providers];fe.splice(ie,1),l({...a,Providers:fe}),f(null)},O=(ie,fe,pe)=>{if(_){const he={..._,[fe]:pe};j(he)}},F=(ie,fe)=>{if(!fe||!_)return;const pe={..._};pe.transformer||(pe.transformer={use:[]}),pe.transformer.use=[...pe.transformer.use,fe],j(pe)},U=(ie,fe)=>{if(!_)return;const pe={..._};if(pe.transformer){const he=[...pe.transformer.use];he.splice(fe,1),pe.transformer.use=he,he.length===0&&Object.keys(pe.transformer).length===1&&delete pe.transformer}j(pe)},K=(ie,fe,pe)=>{if(!pe||!_)return;const he={..._};he.transformer||(he.transformer={use:[]}),he.transformer[fe]||(he.transformer[fe]={use:[]}),he.transformer[fe].use=[...he.transformer[fe].use,pe],j(he)},ae=(ie,fe,pe)=>{if(!_)return;const he={..._};if(he.transformer&&he.transformer[fe]){const je=[...he.transformer[fe].use];je.splice(pe,1),he.transformer[fe].use=je,je.length===0&&Object.keys(he.transformer[fe]).length===1&&delete he.transformer[fe]}j(he)},de=(ie,fe,pe,he)=>{if(!_)return;const je={..._};if(je.transformer||(je.transformer={use:[]}),je.transformer.use&&je.transformer.use.length>fe){const ke=je.transformer.use[fe];if(Array.isArray(ke)){const Pe=[...ke];if(Pe.length>1&&typeof Pe[1]=="object"&&Pe[1]!==null){const Yt={...Pe[1],[pe]:he};Pe[1]=Yt}else if(Pe.length>1){const nt={[pe]:he};Pe.splice(1,Pe.length-1,nt)}else{const nt={[pe]:he};Pe.push(nt)}je.transformer.use[fe]=Pe}else{const Pe={[pe]:he};je.transformer.use[fe]=[ke,Pe]}}j(je)},ge=(ie,fe,pe)=>{if(!_)return;const he={..._};if(!he.transformer?.use||he.transformer.use.length<=fe)return;const je=he.transformer.use[fe];if(Array.isArray(je)&&je.length>1){const ke=[...je];if(typeof ke[1]=="object"&&ke[1]!==null){const Pe={...ke[1]};delete Pe[pe],Object.keys(Pe).length===0?ke.splice(1,1):ke[1]=Pe,he.transformer.use[fe]=ke,j(he)}}},ye=(ie,fe,pe,he,je)=>{if(!_)return;const ke={..._};if(ke.transformer||(ke.transformer={use:[]}),ke.transformer[fe]||(ke.transformer[fe]={use:[]}),ke.transformer[fe].use&&ke.transformer[fe].use.length>pe){const Pe=ke.transformer[fe].use[pe];if(Array.isArray(Pe)){const nt=[...Pe];if(nt.length>1&&typeof nt[1]=="object"&&nt[1]!==null){const Bn={...nt[1],[he]:je};nt[1]=Bn}else if(nt.length>1){const Yt={[he]:je};nt.splice(1,nt.length-1,Yt)}else{const Yt={[he]:je};nt.push(Yt)}ke.transformer[fe].use[pe]=nt}else{const nt={[he]:je};ke.transformer[fe].use[pe]=[Pe,nt]}}j(ke)},Le=(ie,fe,pe,he)=>{if(!_)return;const je={..._};if(!je.transformer?.[fe]?.use||je.transformer[fe].use.length<=pe)return;const ke=je.transformer[fe].use[pe];if(Array.isArray(ke)&&ke.length>1){const Pe=[...ke];if(typeof Pe[1]=="object"&&Pe[1]!==null){const nt={...Pe[1]};delete nt[he],Object.keys(nt).length===0?Pe.splice(1,1):Pe[1]=nt,je.transformer[fe].use[pe]=Pe,j(je)}}},qe=(ie,fe)=>{if(!fe.trim()||!_)return;const pe={..._},he=Array.isArray(pe.models)?[...pe.models]:[];he.includes(fe.trim())||(he.push(fe.trim()),pe.models=he,j(pe))},Je=ie=>{if(ie)try{const fe=JSON.parse(ie);if(fe){const pe=_?.name,he=JSON.parse(JSON.stringify(fe));!N&&pe&&(he.name=pe),j(he)}}catch(fe){console.error("Failed to parse template",fe)}},At=(ie,fe)=>{if(!_)return;const pe={..._},he=Array.isArray(pe.models)?[...pe.models]:[];fe>=0&&fe<he.length&&(he.splice(fe,1),pe.models=he,j(pe))},Ie=_||(i!==null?W[i]:null),an=W.filter(ie=>{if(!le)return!0;const fe=le.toLowerCase();return ie.name&&ie.name.toLowerCase().includes(fe)||ie.api_base_url&&ie.api_base_url.toLowerCase().includes(fe)?!0:ie.models&&Array.isArray(ie.models)?ie.models.some(pe=>pe&&pe.toLowerCase().includes(fe)):!1});return g.jsxs(Ca,{className:"flex h-full flex-col rounded-lg border shadow-sm",children:[g.jsxs(Na,{className:"flex flex-col border-b p-4 gap-3",children:[g.jsxs("div",{className:"flex flex-row items-center justify-between",children:[g.jsxs(Ra,{className:"text-lg",children:[n("providers.title")," ",g.jsxs("span",{className:"text-sm font-normal text-gray-500",children:["(",an.length,"/",W.length,")"]})]}),g.jsx(Ae,{onClick:ue,children:n("providers.add")})]}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsxs("div",{className:"relative flex-1",children:[g.jsx(hb,{className:"absolute left-2.5 top-1/2 h-4 w-4 -translate-y-1/2 text-gray-500"}),g.jsx(ft,{placeholder:n("providers.search"),value:le,onChange:ie=>J(ie.target.value),className:"pl-8"})]}),le&&g.jsx(Ae,{variant:"ghost",size:"icon",onClick:()=>J(""),children:g.jsx(cb,{className:"h-4 w-4"})})]})]}),g.jsx(ja,{className:"flex-grow overflow-y-auto p-4",children:g.jsx(iA,{providers:an,onEdit:A,onRemove:f})}),g.jsx(Gr,{open:i!==null,onOpenChange:ie=>{ie||V()},children:g.jsxs(or,{className:"max-h-[80vh] flex flex-col sm:max-w-2xl",children:[g.jsx(sr,{children:g.jsx(ur,{children:n("providers.edit")})}),Ie&&i!==null&&g.jsxs("div",{className:"space-y-4 p-4 overflow-y-auto flex-grow",children:[k.length>0&&g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ge,{children:n("providers.import_from_template")}),g.jsx(An,{options:k.map(ie=>({label:ie.name,value:JSON.stringify(ie)})),value:"",onChange:Je,placeholder:n("providers.select_template"),emptyPlaceholder:n("providers.no_templates_found")})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ge,{htmlFor:"name",children:n("providers.name")}),g.jsx(ft,{id:"name",value:Ie.name||"",onChange:ie=>{O(i,"name",ie.target.value),ne&&oe(null)},className:ne?"border-red-500":""}),ne&&g.jsx("p",{className:"text-sm text-red-500",children:ne})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ge,{htmlFor:"api_base_url",children:n("providers.api_base_url")}),g.jsx(ft,{id:"api_base_url",value:Ie.api_base_url||"",onChange:ie=>O(i,"api_base_url",ie.target.value)})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ge,{htmlFor:"api_key",children:n("providers.api_key")}),g.jsxs("div",{className:"relative",children:[g.jsx(ft,{id:"api_key",type:D[i||0]?"text":"password",value:Ie.api_key||"",onChange:ie=>O(i,"api_key",ie.target.value),className:B?"border-red-500":""}),g.jsx(Ae,{type:"button",variant:"ghost",size:"icon",className:"absolute right-2 top-1/2 transform -translate-y-1/2 h-8 w-8",onClick:()=>{const ie=i||0;R(fe=>({...fe,[ie]:!fe[ie]}))},children:D[i||0]?g.jsx(yN,{className:"h-4 w-4"}):g.jsx(xN,{className:"h-4 w-4"})})]}),B&&g.jsx("p",{className:"text-sm text-red-500",children:B})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ge,{htmlFor:"models",children:n("providers.models")}),g.jsxs("div",{className:"space-y-2",children:[g.jsxs("div",{className:"flex gap-2",children:[g.jsx("div",{className:"flex-1",children:h[i]?g.jsx(oA,{ref:te,options:(Ie.models||[]).map(ie=>({label:ie,value:ie})),value:"",onChange:()=>{},onEnter:ie=>{i!==null&&qe(i,ie)},inputPlaceholder:n("providers.models_placeholder")}):g.jsx(ft,{id:"models",placeholder:n("providers.models_placeholder"),onKeyDown:ie=>{ie.key==="Enter"&&ie.currentTarget.value.trim()&&i!==null&&(qe(i,ie.currentTarget.value),ie.currentTarget.value="")}})}),g.jsx(Ae,{onClick:()=>{if(h[i]&&te.current){const ie=te.current,fe=ie.getCurrentValue();fe&&fe.trim()&&i!==null&&(qe(i,fe.trim()),ie.clearInput())}else{const ie=document.getElementById("models");ie&&ie.value.trim()&&i!==null&&(qe(i,ie.value),ie.value="")}},children:n("providers.add_model")})]}),g.jsx("div",{className:"flex flex-wrap gap-2 pt-2",children:(Ie.models||[]).map((ie,fe)=>g.jsxs($r,{variant:"outline",className:"font-normal flex items-center gap-1",children:[ie,g.jsx("button",{type:"button",className:"ml-1 rounded-full hover:bg-gray-200",onClick:()=>i!==null&&At(i,fe),children:g.jsx(Xl,{className:"h-3 w-3"})})]},fe))})]})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ge,{children:n("providers.provider_transformer")}),g.jsx("div",{className:"flex gap-2",children:g.jsx(An,{options:S.map(ie=>({label:ie.name,value:ie.name})),value:"",onChange:ie=>{i!==null&&F(i,ie)},placeholder:n("providers.select_transformer"),emptyPlaceholder:n("providers.no_transformers")})}),Ie.transformer?.use&&Ie.transformer.use.length>0&&g.jsxs("div",{className:"space-y-2 mt-2",children:[g.jsx("div",{className:"text-sm font-medium text-gray-700",children:n("providers.selected_transformers")}),Ie.transformer.use.map((ie,fe)=>g.jsxs("div",{className:"border rounded-md p-3",children:[g.jsxs("div",{className:"flex gap-2 items-center mb-2",children:[g.jsx("div",{className:"flex-1 bg-gray-50 rounded p-2 text-sm",children:typeof ie=="string"?ie:Array.isArray(ie)?String(ie[0]):String(ie)}),g.jsx(Ae,{variant:"outline",size:"icon",onClick:()=>{i!==null&&U(i,fe)},children:g.jsx(Kr,{className:"h-4 w-4"})})]}),g.jsxs("div",{className:"mt-2 pl-4 border-l-2 border-gray-200",children:[g.jsx(Ge,{className:"text-sm",children:n("providers.transformer_parameters")}),g.jsxs("div",{className:"space-y-2 mt-1",children:[g.jsxs("div",{className:"flex gap-2",children:[g.jsx(ft,{placeholder:n("providers.parameter_name"),value:m[`provider-${i}-transformer-${fe}`]?.name||"",onChange:pe=>{const he=`provider-${i}-transformer-${fe}`;v(je=>({...je,[he]:{...je[he]||{name:"",value:""},name:pe.target.value}}))}}),g.jsx(ft,{placeholder:n("providers.parameter_value"),value:m[`provider-${i}-transformer-${fe}`]?.value||"",onChange:pe=>{const he=`provider-${i}-transformer-${fe}`;v(je=>({...je,[he]:{...je[he]||{name:"",value:""},value:pe.target.value}}))}}),g.jsx(Ae,{size:"sm",onClick:()=>{if(i!==null){const pe=`provider-${i}-transformer-${fe}`,he=m[pe];he&&he.name&&he.value&&(de(i,fe,he.name,he.value),v(je=>({...je,[pe]:{name:"",value:""}})))}},children:g.jsx(Hd,{className:"h-4 w-4"})})]}),(()=>{if(!Ie.transformer?.use||Ie.transformer.use.length<=fe)return null;const pe=Ie.transformer.use[fe];let he={};return Array.isArray(pe)&&pe.length>1&&typeof pe[1]=="object"&&pe[1]!==null&&(he=pe[1]),Object.keys(he).length>0?g.jsx("div",{className:"space-y-1",children:Object.entries(he).map(([je,ke])=>g.jsxs("div",{className:"flex items-center justify-between bg-gray-50 rounded p-2",children:[g.jsxs("div",{className:"text-sm",children:[g.jsxs("span",{className:"font-medium",children:[je,":"]})," ",String(ke)]}),g.jsx(Ae,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0",onClick:()=>{i!==null&&ge(i,fe,je)},children:g.jsx(Xl,{className:"h-3 w-3"})})]},je))}):null})()]})]})]},fe))]})]}),Ie.models&&Ie.models.length>0&&g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ge,{children:n("providers.model_transformers")}),g.jsx("div",{className:"space-y-3",children:(Ie.models||[]).map((ie,fe)=>g.jsxs("div",{className:"border rounded-md p-3",children:[g.jsx("div",{className:"font-medium text-sm mb-2",children:ie}),g.jsx("div",{className:"flex gap-2",children:g.jsx("div",{className:"flex-1 flex gap-2",children:g.jsx(An,{options:S.map(pe=>({label:pe.name,value:pe.name})),value:"",onChange:pe=>{i!==null&&K(i,ie,pe)},placeholder:n("providers.select_transformer"),emptyPlaceholder:n("providers.no_transformers")})})}),Ie.transformer?.[ie]?.use&&Ie.transformer[ie].use.length>0&&g.jsxs("div",{className:"space-y-2 mt-2",children:[g.jsx("div",{className:"text-sm font-medium text-gray-700",children:n("providers.selected_transformers")}),Ie.transformer[ie].use.map((pe,he)=>g.jsxs("div",{className:"border rounded-md p-3",children:[g.jsxs("div",{className:"flex gap-2 items-center mb-2",children:[g.jsx("div",{className:"flex-1 bg-gray-50 rounded p-2 text-sm",children:typeof pe=="string"?pe:Array.isArray(pe)?String(pe[0]):String(pe)}),g.jsx(Ae,{variant:"outline",size:"icon",onClick:()=>{i!==null&&ae(i,ie,he)},children:g.jsx(Kr,{className:"h-4 w-4"})})]}),g.jsxs("div",{className:"mt-2 pl-4 border-l-2 border-gray-200",children:[g.jsx(Ge,{className:"text-sm",children:n("providers.transformer_parameters")}),g.jsxs("div",{className:"space-y-2 mt-1",children:[g.jsxs("div",{className:"flex gap-2",children:[g.jsx(ft,{placeholder:n("providers.parameter_name"),value:b[`model-${i}-${ie}-transformer-${he}`]?.name||"",onChange:je=>{const ke=`model-${i}-${ie}-transformer-${he}`;w(Pe=>({...Pe,[ke]:{...Pe[ke]||{name:"",value:""},name:je.target.value}}))}}),g.jsx(ft,{placeholder:n("providers.parameter_value"),value:b[`model-${i}-${ie}-transformer-${he}`]?.value||"",onChange:je=>{const ke=`model-${i}-${ie}-transformer-${he}`;w(Pe=>({...Pe,[ke]:{...Pe[ke]||{name:"",value:""},value:je.target.value}}))}}),g.jsx(Ae,{size:"sm",onClick:()=>{if(i!==null){const je=`model-${i}-${ie}-transformer-${he}`,ke=b[je];ke&&ke.name&&ke.value&&(ye(i,ie,he,ke.name,ke.value),w(Pe=>({...Pe,[je]:{name:"",value:""}})))}},children:g.jsx(Hd,{className:"h-4 w-4"})})]}),(()=>{if(!Ie.transformer?.[ie]?.use||Ie.transformer[ie].use.length<=he)return null;const je=Ie.transformer[ie].use[he];let ke={};return Array.isArray(je)&&je.length>1&&typeof je[1]=="object"&&je[1]!==null&&(ke=je[1]),Object.keys(ke).length>0?g.jsx("div",{className:"space-y-1",children:Object.entries(ke).map(([Pe,nt])=>g.jsxs("div",{className:"flex items-center justify-between bg-gray-50 rounded p-2",children:[g.jsxs("div",{className:"text-sm",children:[g.jsxs("span",{className:"font-medium",children:[Pe,":"]})," ",String(nt)]}),g.jsx(Ae,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0",onClick:()=>{i!==null&&Le(i,ie,he,Pe)},children:g.jsx(Xl,{className:"h-3 w-3"})})]},Pe))}):null})()]})]})]},he))]})]},fe))})]})]}),g.jsx("div",{className:"space-y-3 mt-auto",children:g.jsx("div",{className:"flex justify-end gap-2",children:g.jsx(Ae,{onClick:Q,children:n("app.save")})})})]})}),g.jsx(Gr,{open:u!==null,onOpenChange:()=>f(null),children:g.jsxs(or,{children:[g.jsxs(sr,{children:[g.jsx(ur,{children:n("providers.delete")}),g.jsx(Lu,{children:n("providers.delete_provider_confirm")})]}),g.jsxs(Xr,{children:[g.jsx(Ae,{variant:"outline",onClick:()=>f(null),children:n("providers.cancel")}),g.jsx(Ae,{variant:"destructive",onClick:()=>u!==null&&ve(u),children:n("providers.delete")})]})]})})]})}function uA(){const{t:n}=hr(),{config:a,setConfig:l}=Jr();if(!a)return g.jsxs(Ca,{className:"flex h-full flex-col rounded-lg border shadow-sm",children:[g.jsx(Na,{className:"border-b p-4",children:g.jsx(Ra,{className:"text-lg",children:n("router.title")})}),g.jsx(ja,{className:"flex-grow flex items-center justify-center p-4",children:g.jsx("div",{className:"text-gray-500",children:"Loading router configuration..."})})]});const i=a.Router||{default:"",background:"",think:"",longContext:"",longContextThreshold:6e4,webSearch:"",image:""},s=(p,m)=>{const b={...a.Router||{},[p]:m};l({...a,Router:b})},u=p=>{l({...a,forceUseImageAgent:p})},h=(Array.isArray(a.Providers)?a.Providers:[]).flatMap(p=>{if(!p)return[];const m=Array.isArray(p.models)?p.models:[],v=p.name||"Unknown Provider";return m.map(b=>({value:`${v},${b||"Unknown Model"}`,label:`${v}, ${b||"Unknown Model"}`}))});return g.jsxs(Ca,{className:"flex h-full flex-col rounded-lg border shadow-sm",children:[g.jsx(Na,{className:"border-b p-4",children:g.jsx(Ra,{className:"text-lg",children:n("router.title")})}),g.jsxs(ja,{className:"flex-grow space-y-5 overflow-y-auto p-4",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ge,{children:n("router.default")}),g.jsx(An,{options:h,value:i.default||"",onChange:p=>s("default",p),placeholder:n("router.selectModel"),searchPlaceholder:n("router.searchModel"),emptyPlaceholder:n("router.noModelFound")})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ge,{children:n("router.background")}),g.jsx(An,{options:h,value:i.background||"",onChange:p=>s("background",p),placeholder:n("router.selectModel"),searchPlaceholder:n("router.searchModel"),emptyPlaceholder:n("router.noModelFound")})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ge,{children:n("router.think")}),g.jsx(An,{options:h,value:i.think||"",onChange:p=>s("think",p),placeholder:n("router.selectModel"),searchPlaceholder:n("router.searchModel"),emptyPlaceholder:n("router.noModelFound")})]}),g.jsx("div",{className:"space-y-2",children:g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsxs("div",{className:"flex-1",children:[g.jsx(Ge,{children:n("router.longContext")}),g.jsx(An,{options:h,value:i.longContext||"",onChange:p=>s("longContext",p),placeholder:n("router.selectModel"),searchPlaceholder:n("router.searchModel"),emptyPlaceholder:n("router.noModelFound")})]}),g.jsxs("div",{className:"w-48",children:[g.jsx(Ge,{children:n("router.longContextThreshold")}),g.jsx(ft,{type:"number",value:i.longContextThreshold||6e4,onChange:p=>s("longContextThreshold",parseInt(p.target.value)||6e4),placeholder:"60000"})]})]})}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ge,{children:n("router.webSearch")}),g.jsx(An,{options:h,value:i.webSearch||"",onChange:p=>s("webSearch",p),placeholder:n("router.selectModel"),searchPlaceholder:n("router.searchModel"),emptyPlaceholder:n("router.noModelFound")})]}),g.jsx("div",{className:"space-y-2",children:g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsxs("div",{className:"flex-1",children:[g.jsxs(Ge,{children:[n("router.image")," (beta)"]}),g.jsx(An,{options:h,value:i.image||"",onChange:p=>s("image",p),placeholder:n("router.selectModel"),searchPlaceholder:n("router.searchModel"),emptyPlaceholder:n("router.noModelFound")})]}),g.jsxs("div",{className:"w-48",children:[g.jsx(Ge,{htmlFor:"forceUseImageAgent",children:n("router.forceUseImageAgent")}),g.jsxs("select",{id:"forceUseImageAgent",value:a.forceUseImageAgent?"true":"false",onChange:p=>u(p.target.value==="true"),className:"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",children:[g.jsx("option",{value:"false",children:n("common.no")}),g.jsx("option",{value:"true",children:n("common.yes")})]})]})]})})]})]})}function cA(n,a,l){return a in n?Object.defineProperty(n,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):n[a]=l,n}function Vy(n,a){var l=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);a&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable})),l.push.apply(l,i)}return l}function Yy(n){for(var a=1;a<arguments.length;a++){var l=arguments[a]!=null?arguments[a]:{};a%2?Vy(Object(l),!0).forEach(function(i){cA(n,i,l[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(l)):Vy(Object(l)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(l,i))})}return n}function fA(n,a){if(n==null)return{};var l={},i=Object.keys(n),s,u;for(u=0;u<i.length;u++)s=i[u],!(a.indexOf(s)>=0)&&(l[s]=n[s]);return l}function dA(n,a){if(n==null)return{};var l=fA(n,a),i,s;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(n);for(s=0;s<u.length;s++)i=u[s],!(a.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(l[i]=n[i])}return l}function hA(n,a){return mA(n)||pA(n,a)||gA(n,a)||vA()}function mA(n){if(Array.isArray(n))return n}function pA(n,a){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(n)))){var l=[],i=!0,s=!1,u=void 0;try{for(var f=n[Symbol.iterator](),h;!(i=(h=f.next()).done)&&(l.push(h.value),!(a&&l.length===a));i=!0);}catch(p){s=!0,u=p}finally{try{!i&&f.return!=null&&f.return()}finally{if(s)throw u}}return l}}function gA(n,a){if(n){if(typeof n=="string")return qy(n,a);var l=Object.prototype.toString.call(n).slice(8,-1);if(l==="Object"&&n.constructor&&(l=n.constructor.name),l==="Map"||l==="Set")return Array.from(n);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return qy(n,a)}}function qy(n,a){(a==null||a>n.length)&&(a=n.length);for(var l=0,i=new Array(a);l<a;l++)i[l]=n[l];return i}function vA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
287
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yA(n,a,l){return a in n?Object.defineProperty(n,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):n[a]=l,n}function Fy(n,a){var l=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);a&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable})),l.push.apply(l,i)}return l}function Ky(n){for(var a=1;a<arguments.length;a++){var l=arguments[a]!=null?arguments[a]:{};a%2?Fy(Object(l),!0).forEach(function(i){yA(n,i,l[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(l)):Fy(Object(l)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(l,i))})}return n}function bA(){for(var n=arguments.length,a=new Array(n),l=0;l<n;l++)a[l]=arguments[l];return function(i){return a.reduceRight(function(s,u){return u(s)},i)}}function co(n){return function a(){for(var l=this,i=arguments.length,s=new Array(i),u=0;u<i;u++)s[u]=arguments[u];return s.length>=n.length?n.apply(this,s):function(){for(var f=arguments.length,h=new Array(f),p=0;p<f;p++)h[p]=arguments[p];return a.apply(l,[].concat(s,h))}}}function Su(n){return{}.toString.call(n).includes("Object")}function xA(n){return!Object.keys(n).length}function So(n){return typeof n=="function"}function wA(n,a){return Object.prototype.hasOwnProperty.call(n,a)}function SA(n,a){return Su(a)||rr("changeType"),Object.keys(a).some(function(l){return!wA(n,l)})&&rr("changeField"),a}function EA(n){So(n)||rr("selectorType")}function _A(n){So(n)||Su(n)||rr("handlerType"),Su(n)&&Object.values(n).some(function(a){return!So(a)})&&rr("handlersType")}function CA(n){n||rr("initialIsRequired"),Su(n)||rr("initialType"),xA(n)&&rr("initialContent")}function NA(n,a){throw new Error(n[a]||n.default)}var RA={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},rr=co(NA)(RA),nu={changes:SA,selector:EA,handler:_A,initial:CA};function jA(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};nu.initial(n),nu.handler(a);var l={current:n},i=co(TA)(l,a),s=co(AA)(l),u=co(nu.changes)(n),f=co(OA)(l);function h(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(v){return v};return nu.selector(m),m(l.current)}function p(m){bA(i,s,u,f)(m)}return[h,p]}function OA(n,a){return So(a)?a(n.current):a}function AA(n,a){return n.current=Ky(Ky({},n.current),a),a}function TA(n,a,l){return So(a)?a(n.current):Object.keys(l).forEach(function(i){var s;return(s=a[i])===null||s===void 0?void 0:s.call(a,n.current[i])}),l}var MA={create:jA},DA={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function LA(n){return function a(){for(var l=this,i=arguments.length,s=new Array(i),u=0;u<i;u++)s[u]=arguments[u];return s.length>=n.length?n.apply(this,s):function(){for(var f=arguments.length,h=new Array(f),p=0;p<f;p++)h[p]=arguments[p];return a.apply(l,[].concat(s,h))}}}function kA(n){return{}.toString.call(n).includes("Object")}function zA(n){return n||Gy("configIsRequired"),kA(n)||Gy("configType"),n.urls?(UA(),{paths:{vs:n.urls.monacoBase}}):n}function UA(){console.warn(zx.deprecation)}function PA(n,a){throw new Error(n[a]||n.default)}var zx={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
310
+ `,document.head.appendChild(re),()=>{document.head.removeChild(re)}},[]),y.useEffect(()=>{const re=new Set;Object.keys(c).forEach(Q=>{const ee=c[Q];ee&&typeof ee=="object"&&"modules"in ee&&(ee.modules||[]).forEach(X=>{X.background&&/^#[0-9A-F]{6}$/i.test(X.background)&&re.add(X.background)})}),w(re);const fe=document.createElement("style");fe.id="hex-powerline-styles";let de="";return re.forEach(Q=>{const ee=parseInt(Q.slice(1,3),16),A=parseInt(Q.slice(3,5),16),X=parseInt(Q.slice(5,7),16);de+=`.powerline-separator[data-current-bg="${Q}"] { border-left-color: rgb(${ee}, ${A}, ${X}); }
311
+ `}),fe.innerHTML=de,document.head.appendChild(fe),()=>{const Q=document.getElementById("hex-powerline-styles");Q&&document.head.removeChild(Q)}},[c]);const S=fA.map(re=>({...re,label:l(`statusline.${re.label}`)})),C=re=>{f(fe=>({...fe,currentStyle:re}))},E=(re,fe,de)=>{const Q=c.currentStyle,ee=c[Q],A=ee&&typeof ee=="object"&&"modules"in ee?[...ee.modules||[]]:[];A[re]&&(A[re]={...A[re],[fe]:de}),f(X=>({...X,[Q]:{modules:A}}))},[j,R]=y.useState([]),L=()=>{R([]),i&&(s({...i,StatusLine:{...c,fontFamily:h}}),a(!1))},k=({title:re,description:fe,variant:de="default"})=>{const Q=de==="destructive";return g.jsx("div",{className:`rounded-lg border p-4 ${Q?"bg-red-50 border-red-200 text-red-800":"bg-blue-50 border-blue-200 text-blue-800"}`,children:g.jsxs("div",{className:"flex",children:[g.jsx("div",{className:"flex-shrink-0",children:Q?g.jsx("svg",{className:"h-5 w-5 text-red-400",viewBox:"0 0 20 20",fill:"currentColor",children:g.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})}):g.jsx("svg",{className:"h-5 w-5 text-blue-400",viewBox:"0 0 20 20",fill:"currentColor",children:g.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"})})}),g.jsxs("div",{className:"ml-3",children:[g.jsx("h3",{className:`text-sm font-medium ${Q?"text-red-800":"text-blue-800"}`,children:re}),g.jsx("div",{className:`mt-2 text-sm ${Q?"text-red-700":"text-blue-700"}`,children:fe})]})]})})},H=c.currentStyle,M=c[H],N=M&&typeof M=="object"&&"modules"in M?M.modules||[]:[],B=m!==null&&N.length>m?N[m]:null,J=y.useCallback(()=>{if(m===null)return;const re=c.currentStyle,fe=c[re],de=fe&&typeof fe=="object"&&"modules"in fe?[...fe.modules||[]]:[];m>=0&&m<de.length&&(de.splice(m,1),f(Q=>({...Q,[re]:{modules:de}})),v(null))},[m,c]),te=h?{fontFamily:h}:{};y.useEffect(()=>{const re=fe=>{m!==null&&(fe.key==="Delete"||fe.key==="Backspace")&&(fe.preventDefault(),J())};return document.addEventListener("keydown",re),()=>{document.removeEventListener("keydown",re)}},[m,J]);const ae=`${h}-${c.currentStyle}`;return g.jsx(Xr,{open:n,onOpenChange:a,children:g.jsxs(cr,{className:"max-w-4xl h-[90vh] overflow-hidden sm:max-w-5xl md:max-w-6xl lg:max-w-7xl animate-in fade-in-90 slide-in-from-bottom-10 duration-300 flex flex-col",children:[g.jsx(ur,{"data-testid":"statusline-config-dialog-header",className:"border-b pb-4",children:g.jsxs(fr,{className:"flex items-center",children:[g.jsxs("svg",{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",className:"mr-2",children:[g.jsx("path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),g.jsx("path",{d:"M14 3v4a2 2 0 0 0 2 2h4"}),g.jsx("path",{d:"M3 12h18"})]}),l("statusline.title")]})}),j.length>0&&g.jsx("div",{className:"px-6",children:g.jsx(k,{variant:"destructive",title:"配置验证失败",description:g.jsx("ul",{className:"list-disc pl-5 space-y-1",children:j.map((re,fe)=>g.jsx("li",{children:re},fe))})})}),g.jsxs("div",{className:"flex flex-col gap-6 flex-1 overflow-hidden",children:[g.jsx("div",{className:"space-y-6",children:g.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ke,{htmlFor:"theme-style",className:"text-sm font-medium",children:l("statusline.theme")}),g.jsx(An,{options:[{label:l("statusline.theme_default"),value:"default"},{label:l("statusline.theme_powerline"),value:"powerline"}],value:c.currentStyle,onChange:C,"data-testid":"theme-selector",placeholder:l("statusline.theme_placeholder")})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ke,{htmlFor:"font-family",className:"text-sm font-medium",children:l("statusline.module_icon")}),g.jsx(An,{options:uA,value:h,onChange:re=>p(re),"data-testid":"font-family-selector",placeholder:l("statusline.font_placeholder")})]})]})}),g.jsxs("div",{className:"grid grid-cols-5 gap-6 overflow-hidden flex-1",children:[g.jsxs("div",{className:"border rounded-lg flex flex-col overflow-hidden col-span-1",children:[g.jsx("h3",{className:"text-sm font-medium p-4 pb-0 mb-3",children:l("statusline.components")}),g.jsx("div",{className:"space-y-2 overflow-y-auto px-4 pb-4 flex-1",children:S.map(re=>g.jsx("div",{className:"flex items-center gap-2 p-2 border rounded cursor-move hover:bg-secondary",draggable:!0,onDragStart:fe=>{fe.dataTransfer.setData("moduleType",re.value)},children:g.jsx("span",{className:"text-sm",children:re.label})},re.value))})]}),g.jsxs("div",{className:"border rounded-lg p-4 flex flex-col col-span-3",children:[g.jsx("h3",{className:"text-sm font-medium mb-3",children:l("statusline.preview")}),g.jsx("div",{className:`rounded bg-black/90 text-white font-mono text-sm overflow-x-auto flex items-center border border-border p-3 py-5 shadow-inner overflow-hidden ${c.currentStyle==="powerline"?"gap-0 h-8 p-0 items-center relative":"h-5"}`,"data-testid":"statusline-preview",style:te,onDragOver:re=>{re.preventDefault()},onDrop:re=>{re.preventDefault();const fe=re.dataTransfer.getData("moduleType");if(fe){const de=c.currentStyle,Q=c[de],ee=Q&&typeof Q=="object"&&"modules"in Q?[...Q.modules||[]]:[];let A;switch(fe){case"workDir":A={type:"workDir",icon:"󰉋",text:"{{workDirName}}",color:"bright_blue"};break;case"gitBranch":A={type:"gitBranch",icon:"🌿",text:"{{gitBranch}}",color:"bright_green"};break;case"model":A={type:"model",icon:"🤖",text:"{{model}}",color:"bright_yellow"};break;case"usage":A={type:"usage",icon:"📊",text:"{{inputTokens}} → {{outputTokens}}",color:"bright_magenta"};break;case"script":A={type:"script",icon:"📜",text:"Script Module",color:"bright_cyan",scriptPath:""};break;default:A={...cA,type:fe}}ee.push(A),f(X=>({...X,[de]:{modules:ee}}))}},children:N.length>0?g.jsx("div",{className:"flex items-center flex-wrap gap-0",children:N.map((re,fe)=>g.jsx("div",{className:`cursor-pointer ${m===fe?"bg-white/20":"hover:bg-white/10"} ${c.currentStyle==="powerline"?"p-0 rounded-none inline-flex overflow-visible relative":"flex items-center gap-1 px-2 py-1 rounded"}`,onClick:()=>v(fe),draggable:!0,onDragStart:de=>{de.dataTransfer.setData("dragIndex",fe.toString())},onDragOver:de=>{de.preventDefault()},onDrop:de=>{de.preventDefault();const Q=parseInt(de.dataTransfer.getData("dragIndex"));if(!isNaN(Q)&&Q!==fe){const ee=c.currentStyle,A=c[ee],X=A&&typeof A=="object"&&"modules"in A?[...A.modules||[]]:[];if(Q>=0&&Q<X.length&&fe>=0&&fe<=X.length){const[V]=X.splice(Q,1);X.splice(fe,0,V),f(ye=>({...ye,[ee]:{modules:X}})),m===Q?v(fe):m===fe&&v(Q)}}},children:mA(re,c.currentStyle==="powerline")},fe))}):g.jsxs("div",{className:"flex flex-col items-center justify-center w-full py-4 text-center",children:[g.jsxs("svg",{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",className:"text-gray-500 mb-2",children:[g.jsx("path",{d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18z"}),g.jsx("path",{d:"M12 8v8"}),g.jsx("path",{d:"M8 12h8"})]}),g.jsx("span",{className:"text-gray-500 text-sm",children:l("statusline.drag_hint")})]})},ae)]}),g.jsxs("div",{className:"border rounded-lg flex flex-col overflow-hidden col-span-1",children:[g.jsx("h3",{className:"text-sm font-medium p-4 pb-0 mb-3",children:l("statusline.properties")}),g.jsx("div",{className:"overflow-y-auto px-4 pb-4 flex-1",children:B&&m!==null?g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ke,{htmlFor:"module-icon",children:l("statusline.module_icon")}),g.jsx(dA,{value:B.icon||"",onChange:re=>E(m,"icon",re),fontFamily:h,t:l},ae),g.jsx("p",{className:"text-xs text-muted-foreground",children:l("statusline.icon_description")})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ke,{htmlFor:"module-text",children:l("statusline.module_text")}),g.jsx(ft,{id:"module-text",value:B.text,onChange:re=>E(m,"text",re.target.value),placeholder:l("statusline.text_placeholder")}),g.jsxs("div",{className:"text-xs text-muted-foreground",children:[g.jsx("p",{children:l("statusline.module_text_description")}),g.jsxs("div",{className:"flex flex-wrap gap-1 mt-1",children:[g.jsx(Vr,{variant:"secondary",className:"text-xs py-0.5 px-1.5",children:"{{workDirName}}"}),g.jsx(Vr,{variant:"secondary",className:"text-xs py-0.5 px-1.5",children:"{{gitBranch}}"}),g.jsx(Vr,{variant:"secondary",className:"text-xs py-0.5 px-1.5",children:"{{model}}"}),g.jsx(Vr,{variant:"secondary",className:"text-xs py-0.5 px-1.5",children:"{{inputTokens}}"}),g.jsx(Vr,{variant:"secondary",className:"text-xs py-0.5 px-1.5",children:"{{outputTokens}}"})]})]})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ke,{children:l("statusline.module_color")}),g.jsx(qy,{value:B.color||"",onChange:re=>E(m,"color",re)}),g.jsx("p",{className:"text-xs text-muted-foreground",children:l("statusline.module_color_description")})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ke,{children:l("statusline.module_background")}),g.jsx(qy,{value:B.background||"",onChange:re=>E(m,"background",re)}),g.jsx("p",{className:"text-xs text-muted-foreground",children:l("statusline.module_background_description")})]}),B.type==="script"&&g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ke,{htmlFor:"module-script-path",children:l("statusline.module_script_path")}),g.jsx(ft,{id:"module-script-path",value:B.scriptPath||"",onChange:re=>E(m,"scriptPath",re.target.value),placeholder:l("statusline.script_placeholder")}),g.jsx("p",{className:"text-xs text-muted-foreground",children:l("statusline.module_script_path_description")})]}),g.jsx(Ce,{variant:"destructive",size:"sm",onClick:J,children:l("statusline.delete_module")})]}):g.jsx("div",{className:"flex items-center justify-center h-full min-h-[200px]",children:g.jsx("p",{className:"text-muted-foreground text-sm",children:l("statusline.select_hint")})})})]})]})]}),g.jsxs(Qr,{className:"border-t pt-4 mt-4",children:[g.jsx(Ce,{variant:"outline",onClick:()=>a(!1),className:"transition-all hover:scale-105",children:l("app.cancel")}),g.jsx(Ce,{onClick:L,"data-testid":"save-statusline-config",className:"transition-all hover:scale-105",children:l("app.save")})]})]})})}function gA({isOpen:n,onOpenChange:a}){const{t:l}=Oa(),{config:i,setConfig:s}=Wr(),[c,f]=y.useState(!1);if(!i)return null;const h=b=>{s({...i,LOG:b})},p=b=>{s({...i,CLAUDE_PATH:b.target.value})},m=b=>{const w={enabled:b,currentStyle:i.StatusLine?.currentStyle||"default",default:i.StatusLine?.default||{modules:[]},powerline:i.StatusLine?.powerline||{modules:[]}};s({...i,StatusLine:w})},v=()=>{f(!0)};return g.jsxs(Xr,{open:n,onOpenChange:a,children:[g.jsxs(cr,{"data-testid":"settings-dialog",className:"max-h-[80vh] flex flex-col p-0",children:[g.jsx(ur,{className:"p-4 pb-0",children:g.jsx(fr,{children:l("toplevel.title")})}),g.jsxs("div",{className:"space-y-4 p-4 px-8 overflow-y-auto flex-1",children:[g.jsxs("div",{className:"flex items-center space-x-2",children:[g.jsx(Fd,{id:"log",checked:i.LOG,onCheckedChange:h}),g.jsx(Ke,{htmlFor:"log",className:"transition-all-ease hover:scale-[1.02] cursor-pointer",children:l("toplevel.log")})]}),g.jsx("div",{className:"space-y-2 border-t pt-4",children:g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("div",{className:"flex items-center space-x-2",children:[g.jsx(Fd,{id:"statusline",checked:i.StatusLine?.enabled||!1,onCheckedChange:m}),g.jsx(Ke,{htmlFor:"statusline",className:"transition-all-ease hover:scale-[1.02] cursor-pointer",children:l("statusline.title")})]}),g.jsx(Ce,{variant:"outline",size:"sm",onClick:v,className:"transition-all-ease hover:scale-[1.02] active:scale-[0.98]","data-testid":"statusline-config-button",children:l("app.settings")})]})}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ke,{htmlFor:"log-level",className:"transition-all-ease hover:scale-[1.01] cursor-pointer",children:l("toplevel.log_level")}),g.jsx(An,{options:[{label:"fatal",value:"fatal"},{label:"error",value:"error"},{label:"warn",value:"warn"},{label:"info",value:"info"},{label:"debug",value:"debug"},{label:"trace",value:"trace"}],value:i.LOG_LEVEL,onChange:b=>s({...i,LOG_LEVEL:b})})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ke,{htmlFor:"claude-path",className:"transition-all-ease hover:scale-[1.01] cursor-pointer",children:l("toplevel.claude_path")}),g.jsx(ft,{id:"claude-path",value:i.CLAUDE_PATH,onChange:p,className:"transition-all-ease focus:scale-[1.01]"})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ke,{htmlFor:"host",className:"transition-all-ease hover:scale-[1.01] cursor-pointer",children:l("toplevel.host")}),g.jsx(ft,{id:"host",value:i.HOST,onChange:b=>s({...i,HOST:b.target.value}),className:"transition-all-ease focus:scale-[1.01]"})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ke,{htmlFor:"port",className:"transition-all-ease hover:scale-[1.01] cursor-pointer",children:l("toplevel.port")}),g.jsx(ft,{id:"port",type:"number",value:i.PORT,onChange:b=>s({...i,PORT:parseInt(b.target.value,10)}),className:"transition-all-ease focus:scale-[1.01]"})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ke,{htmlFor:"timeout",className:"transition-all-ease hover:scale-[1.01] cursor-pointer",children:l("toplevel.timeout")}),g.jsx(ft,{id:"timeout",value:i.API_TIMEOUT_MS,onChange:b=>s({...i,API_TIMEOUT_MS:b.target.value}),className:"transition-all-ease focus:scale-[1.01]"})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ke,{htmlFor:"proxy-url",className:"transition-all-ease hover:scale-[1.01] cursor-pointer",children:l("toplevel.proxy_url")}),g.jsx(ft,{id:"proxy-url",value:i.PROXY_URL,onChange:b=>s({...i,PROXY_URL:b.target.value}),placeholder:"http://127.0.0.1:7890",className:"transition-all-ease focus:scale-[1.01]"})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ke,{htmlFor:"apikey",className:"transition-all-ease hover:scale-[1.01] cursor-pointer",children:l("toplevel.apikey")}),g.jsx(ft,{id:"apikey",type:"password",value:i.APIKEY,onChange:b=>s({...i,APIKEY:b.target.value}),className:"transition-all-ease focus:scale-[1.01]"})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ke,{htmlFor:"custom-router-path",className:"transition-all-ease hover:scale-[1.01] cursor-pointer",children:l("toplevel.custom_router_path")}),g.jsx(ft,{id:"custom-router-path",value:i.CUSTOM_ROUTER_PATH||"",onChange:b=>s({...i,CUSTOM_ROUTER_PATH:b.target.value}),placeholder:l("toplevel.custom_router_path_placeholder"),className:"transition-all-ease focus:scale-[1.01]"})]})]}),g.jsx(Qr,{className:"p-4 pt-0",children:g.jsx(Ce,{onClick:()=>a(!1),className:"transition-all-ease hover:scale-[1.02] active:scale-[0.98]",children:l("app.save")})})]}),g.jsx(pA,{isOpen:c,onOpenChange:f,"data-testid":"statusline-config-dialog"})]})}const Ca=y.forwardRef(({className:n,...a},l)=>g.jsx("div",{ref:l,className:dt("rounded-lg border bg-card text-card-foreground shadow-sm",n),...a}));Ca.displayName="Card";const Na=y.forwardRef(({className:n,...a},l)=>g.jsx("div",{ref:l,className:dt("flex flex-col space-y-1.5 p-6",n),...a}));Na.displayName="CardHeader";const Ra=y.forwardRef(({className:n,...a},l)=>g.jsx("div",{ref:l,className:dt("text-2xl font-semibold leading-none tracking-tight",n),...a}));Ra.displayName="CardTitle";const kx=y.forwardRef(({className:n,...a},l)=>g.jsx("div",{ref:l,className:dt("text-sm text-muted-foreground",n),...a}));kx.displayName="CardDescription";const ja=y.forwardRef(({className:n,...a},l)=>g.jsx("div",{ref:l,className:dt("p-6 pt-0",n),...a}));ja.displayName="CardContent";const zx=y.forwardRef(({className:n,...a},l)=>g.jsx("div",{ref:l,className:dt("flex items-center p-6 pt-0",n),...a}));zx.displayName="CardFooter";function vA({transformers:n,onEdit:a,onRemove:l}){return!n||!Array.isArray(n)?g.jsx("div",{className:"space-y-3",children:g.jsx("div",{className:"flex items-center justify-center rounded-md border bg-white p-8 text-gray-500",children:"No transformers configured"})}):g.jsx("div",{className:"space-y-3",children:n.map((i,s)=>{if(!i)return g.jsxs("div",{className:"flex items-start justify-between rounded-md border bg-white p-4 transition-all hover:shadow-md animate-slide-in hover:scale-[1.01]",children:[g.jsxs("div",{className:"flex-1 space-y-1.5",children:[g.jsx("p",{className:"text-md font-semibold text-gray-800",children:"Invalid Transformer"}),g.jsx("p",{className:"text-sm text-gray-500",children:"Transformer data is missing"})]}),g.jsxs("div",{className:"ml-4 flex flex-shrink-0 items-center gap-2",children:[g.jsx(Ce,{variant:"ghost",size:"icon",onClick:()=>a(s),className:"transition-all-ease hover:scale-110",disabled:!0,children:g.jsx(vc,{className:"h-4 w-4"})}),g.jsx(Ce,{variant:"destructive",size:"icon",onClick:()=>l(s),className:"transition-all duration-200 hover:scale-110",children:g.jsx(sr,{className:"h-4 w-4 text-current transition-colors duration-200"})})]})]},s);const c=i.path||"Unnamed Transformer",f=i.options||{},h=()=>!f||Object.keys(f).length===0?g.jsx("p",{className:"text-sm text-gray-500",children:"No parameters configured"}):g.jsx("div",{className:"flex flex-wrap gap-2 max-h-8 overflow-hidden",children:Object.entries(f).map(([p,m])=>g.jsxs("span",{className:"inline-flex items-center px-2 py-1 rounded-md bg-gray-100 text-xs font-medium text-gray-700 border",children:[g.jsxs("span",{className:"text-gray-600",children:[p,":"]}),g.jsx("span",{className:"ml-1 text-gray-800",children:String(m)})]},p))});return g.jsxs("div",{className:"flex items-start justify-between rounded-md border bg-white p-4 transition-all hover:shadow-md animate-slide-in hover:scale-[1.01]",children:[g.jsxs("div",{className:"flex-1 space-y-1.5",children:[g.jsx("p",{className:"text-md font-semibold text-gray-800",children:c}),h()]}),g.jsxs("div",{className:"ml-4 flex flex-shrink-0 items-center gap-2",children:[g.jsx(Ce,{variant:"ghost",size:"icon",onClick:()=>a(s),className:"transition-all-ease hover:scale-110",children:g.jsx(vc,{className:"h-4 w-4"})}),g.jsx(Ce,{variant:"destructive",size:"icon",onClick:()=>l(s),className:"transition-all duration-200 hover:scale-110",children:g.jsx(sr,{className:"h-4 w-4 text-current transition-colors duration-200"})})]})]},s)})})}function yA(){const{t:n}=Oa(),{config:a,setConfig:l}=Wr(),[i,s]=y.useState(null),[c,f]=y.useState(null),[h,p]=y.useState(null);if(!a)return g.jsxs(Ca,{className:"flex h-full flex-col rounded-lg border shadow-sm",children:[g.jsx(Na,{className:"flex flex-row items-center justify-between border-b p-4",children:g.jsx(Ra,{className:"text-lg",children:n("transformers.title")})}),g.jsx(ja,{className:"flex-grow flex items-center justify-center p-4",children:g.jsx("div",{className:"text-gray-500",children:"Loading transformers configuration..."})})]});const m=Array.isArray(a.transformers)?a.transformers:[],v=()=>{p({name:"",path:"",options:{}}),s(m.length)},b=j=>{const R=[...m];R.splice(j,1),l({...a,transformers:R}),f(null)},w=(j,R,L,k)=>{if(j<m.length){const H=[...m];k!==void 0?H[j].options[k]=L:H[j][R]=L,l({...a,transformers:H})}else if(h){const H={...h};k!==void 0?H.options[k]=L:H[R]=L,p(H)}},S=i!==null?i<m.length?m[i]:h:null,C=()=>{if(h&&i===m.length){const j=[...m,h];l({...a,transformers:j})}s(null),p(null)},E=()=>{s(null),p(null)};return g.jsxs(Ca,{className:"flex h-full flex-col rounded-lg border shadow-sm",children:[g.jsxs(Na,{className:"flex flex-row items-center justify-between border-b p-4",children:[g.jsxs(Ra,{className:"text-lg",children:[n("transformers.title")," ",g.jsxs("span",{className:"text-sm font-normal text-gray-500",children:["(",m.length,")"]})]}),g.jsx(Ce,{onClick:v,children:n("transformers.add")})]}),g.jsx(ja,{className:"flex-grow overflow-y-auto p-4",children:g.jsx(vA,{transformers:m,onEdit:s,onRemove:f})}),g.jsx(Xr,{open:i!==null,onOpenChange:E,children:g.jsxs(cr,{children:[g.jsx(ur,{children:g.jsx(fr,{children:n("transformers.edit")})}),S&&i!==null&&g.jsxs("div",{className:"space-y-4 py-4 px-6 max-h-96 overflow-y-auto",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ke,{htmlFor:"transformer-path",children:n("transformers.path")}),g.jsx(ft,{id:"transformer-path",value:S.path||"",onChange:j=>w(i,"path",j.target.value)})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx(Ke,{children:n("transformers.parameters")}),g.jsx(Ce,{variant:"outline",size:"sm",onClick:()=>{const j=S.options||{},R=`param${Object.keys(j).length+1}`;if(i!==null){const L={...j,[R]:""};if(i<m.length){const k=[...m];k[i].options=L,l({...a,transformers:k})}else h&&p({...h,options:L})}},children:g.jsx(Bd,{className:"h-4 w-4"})})]}),Object.entries(S.options||{}).map(([j,R])=>g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(ft,{value:j,onChange:L=>{const H={...S.options||{}};if(delete H[j],H[L.target.value]=R,i!==null)if(i<m.length){const M=[...m];M[i].options=H,l({...a,transformers:M})}else h&&p({...h,options:H})},className:"flex-1"}),g.jsx(ft,{value:R,onChange:L=>{i!==null&&w(i,"parameters",L.target.value,j)},className:"flex-1"}),g.jsx(Ce,{variant:"outline",size:"icon",onClick:()=>{if(i!==null){const k={...S.options||{}};if(delete k[j],i<m.length){const H=[...m];H[i].options=k,l({...a,transformers:H})}else h&&p({...h,options:k})}},children:g.jsx(sr,{className:"h-4 w-4"})})]},j))]})]}),g.jsxs(Qr,{children:[g.jsx(Ce,{variant:"outline",onClick:E,children:n("app.cancel")}),g.jsx(Ce,{onClick:C,children:n("app.save")})]})]})}),g.jsx(Xr,{open:c!==null,onOpenChange:()=>f(null),children:g.jsxs(cr,{children:[g.jsxs(ur,{children:[g.jsx(fr,{children:n("transformers.delete")}),g.jsx(Lc,{children:n("transformers.delete_transformer_confirm")})]}),g.jsxs(Qr,{children:[g.jsx(Ce,{variant:"outline",onClick:()=>f(null),children:n("app.cancel")}),g.jsx(Ce,{variant:"destructive",onClick:()=>c!==null&&b(c),children:n("app.delete")})]})]})})]})}function bA({providers:n,onEdit:a,onRemove:l}){return!n||!Array.isArray(n)?g.jsx("div",{className:"space-y-3",children:g.jsx("div",{className:"flex items-center justify-center rounded-md border bg-white p-8 text-gray-500",children:"No providers configured"})}):g.jsx("div",{className:"space-y-3",children:n.map((i,s)=>{if(!i)return g.jsxs("div",{className:"flex items-start justify-between rounded-md border bg-white p-4 transition-all hover:shadow-md animate-slide-in hover:scale-[1.01]",children:[g.jsxs("div",{className:"flex-1 space-y-1.5",children:[g.jsx("p",{className:"text-md font-semibold text-gray-800",children:"Invalid Provider"}),g.jsx("p",{className:"text-sm text-gray-500",children:"Provider data is missing"})]}),g.jsxs("div",{className:"ml-4 flex flex-shrink-0 items-center gap-2",children:[g.jsx(Ce,{variant:"ghost",size:"icon",onClick:()=>a(s),className:"transition-all-ease hover:scale-110",disabled:!0,children:g.jsx(vc,{className:"h-4 w-4"})}),g.jsx(Ce,{variant:"destructive",size:"icon",onClick:()=>l(s),className:"transition-all duration-200 hover:scale-110",children:g.jsx(sr,{className:"h-4 w-4 text-current transition-colors duration-200"})})]})]},s);const c=i.name||"Unnamed Provider",f=i.api_base_url||"No API URL",h=Array.isArray(i.models)?i.models:[];return g.jsxs("div",{className:"flex items-start justify-between rounded-md border bg-white p-4 transition-all hover:shadow-md animate-slide-in hover:scale-[1.01]",children:[g.jsxs("div",{className:"flex-1 space-y-1.5",children:[g.jsx("p",{className:"text-md font-semibold text-gray-800",children:c}),g.jsx("p",{className:"text-sm text-gray-500",children:f}),g.jsx("div",{className:"flex flex-wrap gap-2 pt-2",children:h.map((p,m)=>g.jsx(Vr,{variant:"outline",className:"font-normal transition-all-ease hover:scale-105",children:p||"Unnamed Model"},m))})]}),g.jsxs("div",{className:"ml-4 flex flex-shrink-0 items-center gap-2",children:[g.jsx(Ce,{variant:"ghost",size:"icon",onClick:()=>a(s),className:"transition-all-ease hover:scale-110",children:g.jsx(vc,{className:"h-4 w-4"})}),g.jsx(Ce,{variant:"destructive",size:"icon",onClick:()=>l(s),className:"transition-all duration-200 hover:scale-110",children:g.jsx(sr,{className:"h-4 w-4 text-current transition-colors duration-200"})})]})]},s)})})}const xA=y.forwardRef(({options:n,value:a,onChange:l,onEnter:i,searchPlaceholder:s="Search...",emptyPlaceholder:c="No options found.",inputPlaceholder:f="Type or select..."},h)=>{const[p,m]=y.useState(!1),[v,b]=y.useState(a||""),w=y.useRef(null);y.useImperativeHandle(h,()=>w.current),y.useEffect(()=>{b(a||"")},[a]);const S=R=>{const L=R.target.value;b(L),l(L)},C=R=>{R.key==="Enter"&&v.trim()&&i&&(i(v.trim()),b(""))},E=R=>{b(R),l(R),i&&(i(R),b("")),m(!1)},j=()=>v;return y.useImperativeHandle(h,()=>({...w.current,value:v,getCurrentValue:j,clearInput:()=>{b(""),l("")}})),g.jsxs("div",{className:"relative",children:[g.jsx(ft,{ref:w,value:v,onChange:S,onKeyDown:C,placeholder:f,className:"pr-10"}),g.jsxs($c,{open:p,onOpenChange:m,children:[g.jsx(Vc,{asChild:!0,children:g.jsx(Ce,{variant:"ghost",size:"sm",className:"absolute right-0 top-0 h-full px-3 py-2 hover:bg-transparent",children:g.jsx(fb,{className:"h-4 w-4 opacity-50"})})}),g.jsx(qc,{className:"w-[--radix-popover-trigger-width] p-0 animate-fade-in",children:g.jsxs(Yb,{children:[g.jsx(Gb,{placeholder:s}),g.jsxs(Kb,{children:[g.jsx(Xb,{children:c}),g.jsx(Qb,{children:n.map(R=>g.jsxs(Ib,{value:R.value,onSelect:()=>E(R.value),className:"transition-all-ease hover:bg-accent hover:text-accent-foreground",children:[g.jsx(ub,{className:dt("mr-2 h-4 w-4 transition-opacity",a===R.value?"opacity-100":"opacity-0")}),R.label]},R.value))})]})]})})]})]})});function wA(){const{t:n}=Oa(),{config:a,setConfig:l}=Wr(),[i,s]=y.useState(null),[c,f]=y.useState(null),[h,p]=y.useState({}),[m,v]=y.useState({}),[b,w]=y.useState({}),[S,C]=y.useState([]),[E,j]=y.useState(null),[R,L]=y.useState(!1),[k,H]=y.useState([]),[M,N]=y.useState({}),[B,J]=y.useState(null),[te,ae]=y.useState(null),[re,fe]=y.useState(""),de=y.useRef(null);if(y.useEffect(()=>{(async()=>{try{const ue=await fetch("https://pub-0dc3e1677e894f07bbea11b17a29e032.r2.dev/providers.json");if(ue.ok){const ge=await ue.json();H(ge||[])}else console.error("Failed to fetch provider templates")}catch(ue){console.error("Failed to fetch provider templates:",ue)}})()},[]),y.useEffect(()=>{(async()=>{try{const ue=await Pt.get("/transformers");C(ue.transformers)}catch(ue){console.error("Failed to fetch transformers:",ue)}})()},[]),!a)return g.jsxs(Ca,{className:"flex h-full flex-col rounded-lg border shadow-sm",children:[g.jsx(Na,{className:"flex flex-row items-center justify-between border-b p-4",children:g.jsx(Ra,{className:"text-lg",children:n("providers.title")})}),g.jsx(ja,{className:"flex-grow flex items-center justify-center p-4",children:g.jsx("div",{className:"text-gray-500",children:"Loading providers configuration..."})})]});const Q=Array.isArray(a.Providers)?a.Providers:[],ee=()=>{const ie={name:"",api_base_url:"",api_key:"",models:[]};s(a.Providers.length),j(ie),L(!0),N(ue=>({...ue,[a.Providers.length]:!1})),J(null),ae(null)},A=ie=>{const ue=a.Providers[ie];s(ie),j(JSON.parse(JSON.stringify(ue))),L(!1),N(ge=>({...ge,[ie]:!1})),J(null),ae(null)},X=()=>{if(!E)return;if(!E.name||E.name.trim()===""){ae(n("providers.name_required"));return}const ie=E.name.trim();if(a.Providers.some((ge,he)=>!R&&he===i?!1:ge.name.toLowerCase()===ie.toLowerCase())){ae(n("providers.name_duplicate"));return}if(!E.api_key||E.api_key.trim()===""){J(n("providers.api_key_required"));return}if(J(null),ae(null),i!==null&&E){const ge=[...a.Providers];R?ge.push(E):ge[i]=E,l({...a,Providers:ge})}i!==null&&N(ge=>{const he={...ge};return delete he[i],he}),s(null),j(null),L(!1)},V=()=>{i!==null&&(p(ie=>{const ue={...ie};return delete ue[i],ue}),N(ie=>{const ue={...ie};return delete ue[i],ue})),s(null),j(null),L(!1),J(null),ae(null)},ye=ie=>{const ue=[...a.Providers];ue.splice(ie,1),l({...a,Providers:ue}),f(null)},O=(ie,ue,ge)=>{if(E){const he={...E,[ue]:ge};j(he)}},G=(ie,ue)=>{if(!ue||!E)return;const ge={...E};ge.transformer||(ge.transformer={use:[]}),ge.transformer.use=[...ge.transformer.use,ue],j(ge)},U=(ie,ue)=>{if(!E)return;const ge={...E};if(ge.transformer){const he=[...ge.transformer.use];he.splice(ue,1),ge.transformer.use=he,he.length===0&&Object.keys(ge.transformer).length===1&&delete ge.transformer}j(ge)},K=(ie,ue,ge)=>{if(!ge||!E)return;const he={...E};he.transformer||(he.transformer={use:[]}),he.transformer[ue]||(he.transformer[ue]={use:[]}),he.transformer[ue].use=[...he.transformer[ue].use,ge],j(he)},P=(ie,ue,ge)=>{if(!E)return;const he={...E};if(he.transformer&&he.transformer[ue]){const Oe=[...he.transformer[ue].use];Oe.splice(ge,1),he.transformer[ue].use=Oe,Oe.length===0&&Object.keys(he.transformer[ue]).length===1&&delete he.transformer[ue]}j(he)},oe=(ie,ue,ge,he)=>{if(!E)return;const Oe={...E};if(Oe.transformer||(Oe.transformer={use:[]}),Oe.transformer.use&&Oe.transformer.use.length>ue){const ke=Oe.transformer.use[ue];if(Array.isArray(ke)){const Pe=[...ke];if(Pe.length>1&&typeof Pe[1]=="object"&&Pe[1]!==null){const Ft={...Pe[1],[ge]:he};Pe[1]=Ft}else if(Pe.length>1){const nt={[ge]:he};Pe.splice(1,Pe.length-1,nt)}else{const nt={[ge]:he};Pe.push(nt)}Oe.transformer.use[ue]=Pe}else{const Pe={[ge]:he};Oe.transformer.use[ue]=[ke,Pe]}}j(Oe)},me=(ie,ue,ge)=>{if(!E)return;const he={...E};if(!he.transformer?.use||he.transformer.use.length<=ue)return;const Oe=he.transformer.use[ue];if(Array.isArray(Oe)&&Oe.length>1){const ke=[...Oe];if(typeof ke[1]=="object"&&ke[1]!==null){const Pe={...ke[1]};delete Pe[ge],Object.keys(Pe).length===0?ke.splice(1,1):ke[1]=Pe,he.transformer.use[ue]=ke,j(he)}}},ve=(ie,ue,ge,he,Oe)=>{if(!E)return;const ke={...E};if(ke.transformer||(ke.transformer={use:[]}),ke.transformer[ue]||(ke.transformer[ue]={use:[]}),ke.transformer[ue].use&&ke.transformer[ue].use.length>ge){const Pe=ke.transformer[ue].use[ge];if(Array.isArray(Pe)){const nt=[...Pe];if(nt.length>1&&typeof nt[1]=="object"&&nt[1]!==null){const Bn={...nt[1],[he]:Oe};nt[1]=Bn}else if(nt.length>1){const Ft={[he]:Oe};nt.splice(1,nt.length-1,Ft)}else{const Ft={[he]:Oe};nt.push(Ft)}ke.transformer[ue].use[ge]=nt}else{const nt={[he]:Oe};ke.transformer[ue].use[ge]=[Pe,nt]}}j(ke)},Le=(ie,ue,ge,he)=>{if(!E)return;const Oe={...E};if(!Oe.transformer?.[ue]?.use||Oe.transformer[ue].use.length<=ge)return;const ke=Oe.transformer[ue].use[ge];if(Array.isArray(ke)&&ke.length>1){const Pe=[...ke];if(typeof Pe[1]=="object"&&Pe[1]!==null){const nt={...Pe[1]};delete nt[he],Object.keys(nt).length===0?Pe.splice(1,1):Pe[1]=nt,Oe.transformer[ue].use[ge]=Pe,j(Oe)}}},Fe=(ie,ue)=>{if(!ue.trim()||!E)return;const ge={...E},he=Array.isArray(ge.models)?[...ge.models]:[];he.includes(ue.trim())||(he.push(ue.trim()),ge.models=he,j(ge))},Je=ie=>{if(ie)try{const ue=JSON.parse(ie);if(ue){const ge=E?.name,he=JSON.parse(JSON.stringify(ue));!R&&ge&&(he.name=ge),j(he)}}catch(ue){console.error("Failed to parse template",ue)}},Tt=(ie,ue)=>{if(!E)return;const ge={...E},he=Array.isArray(ge.models)?[...ge.models]:[];ue>=0&&ue<he.length&&(he.splice(ue,1),ge.models=he,j(ge))},Ze=E||(i!==null?Q[i]:null),an=Q.filter(ie=>{if(!re)return!0;const ue=re.toLowerCase();return ie.name&&ie.name.toLowerCase().includes(ue)||ie.api_base_url&&ie.api_base_url.toLowerCase().includes(ue)?!0:ie.models&&Array.isArray(ie.models)?ie.models.some(ge=>ge&&ge.toLowerCase().includes(ue)):!1});return g.jsxs(Ca,{className:"flex h-full flex-col rounded-lg border shadow-sm",children:[g.jsxs(Na,{className:"flex flex-col border-b p-4 gap-3",children:[g.jsxs("div",{className:"flex flex-row items-center justify-between",children:[g.jsxs(Ra,{className:"text-lg",children:[n("providers.title")," ",g.jsxs("span",{className:"text-sm font-normal text-gray-500",children:["(",an.length,"/",Q.length,")"]})]}),g.jsx(Ce,{onClick:ee,children:n("providers.add")})]}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsxs("div",{className:"relative flex-1",children:[g.jsx(mb,{className:"absolute left-2.5 top-1/2 h-4 w-4 -translate-y-1/2 text-gray-500"}),g.jsx(ft,{placeholder:n("providers.search"),value:re,onChange:ie=>fe(ie.target.value),className:"pl-8"})]}),re&&g.jsx(Ce,{variant:"ghost",size:"icon",onClick:()=>fe(""),children:g.jsx(db,{className:"h-4 w-4"})})]})]}),g.jsx(ja,{className:"flex-grow overflow-y-auto p-4",children:g.jsx(bA,{providers:an,onEdit:A,onRemove:f})}),g.jsx(Xr,{open:i!==null,onOpenChange:ie=>{ie||V()},children:g.jsxs(cr,{className:"max-h-[80vh] flex flex-col sm:max-w-2xl",children:[g.jsx(ur,{children:g.jsx(fr,{children:n("providers.edit")})}),Ze&&i!==null&&g.jsxs("div",{className:"space-y-4 p-4 overflow-y-auto flex-grow",children:[k.length>0&&g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ke,{children:n("providers.import_from_template")}),g.jsx(An,{options:k.map(ie=>({label:ie.name,value:JSON.stringify(ie)})),value:"",onChange:Je,placeholder:n("providers.select_template"),emptyPlaceholder:n("providers.no_templates_found")})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ke,{htmlFor:"name",children:n("providers.name")}),g.jsx(ft,{id:"name",value:Ze.name||"",onChange:ie=>{O(i,"name",ie.target.value),te&&ae(null)},className:te?"border-red-500":""}),te&&g.jsx("p",{className:"text-sm text-red-500",children:te})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ke,{htmlFor:"api_base_url",children:n("providers.api_base_url")}),g.jsx(ft,{id:"api_base_url",value:Ze.api_base_url||"",onChange:ie=>O(i,"api_base_url",ie.target.value)})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ke,{htmlFor:"api_key",children:n("providers.api_key")}),g.jsxs("div",{className:"relative",children:[g.jsx(ft,{id:"api_key",type:M[i||0]?"text":"password",value:Ze.api_key||"",onChange:ie=>O(i,"api_key",ie.target.value),className:B?"border-red-500":""}),g.jsx(Ce,{type:"button",variant:"ghost",size:"icon",className:"absolute right-2 top-1/2 transform -translate-y-1/2 h-8 w-8",onClick:()=>{const ie=i||0;N(ue=>({...ue,[ie]:!ue[ie]}))},children:M[i||0]?g.jsx(NN,{className:"h-4 w-4"}):g.jsx(jN,{className:"h-4 w-4"})})]}),B&&g.jsx("p",{className:"text-sm text-red-500",children:B})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ke,{htmlFor:"models",children:n("providers.models")}),g.jsxs("div",{className:"space-y-2",children:[g.jsxs("div",{className:"flex gap-2",children:[g.jsx("div",{className:"flex-1",children:h[i]?g.jsx(xA,{ref:de,options:(Ze.models||[]).map(ie=>({label:ie,value:ie})),value:"",onChange:()=>{},onEnter:ie=>{i!==null&&Fe(i,ie)},inputPlaceholder:n("providers.models_placeholder")}):g.jsx(ft,{id:"models",placeholder:n("providers.models_placeholder"),onKeyDown:ie=>{ie.key==="Enter"&&ie.currentTarget.value.trim()&&i!==null&&(Fe(i,ie.currentTarget.value),ie.currentTarget.value="")}})}),g.jsx(Ce,{onClick:()=>{if(h[i]&&de.current){const ie=de.current,ue=ie.getCurrentValue();ue&&ue.trim()&&i!==null&&(Fe(i,ue.trim()),ie.clearInput())}else{const ie=document.getElementById("models");ie&&ie.value.trim()&&i!==null&&(Fe(i,ie.value),ie.value="")}},children:n("providers.add_model")})]}),g.jsx("div",{className:"flex flex-wrap gap-2 pt-2",children:(Ze.models||[]).map((ie,ue)=>g.jsxs(Vr,{variant:"outline",className:"font-normal flex items-center gap-1",children:[ie,g.jsx("button",{type:"button",className:"ml-1 rounded-full hover:bg-gray-200",onClick:()=>i!==null&&Tt(i,ue),children:g.jsx(Yr,{className:"h-3 w-3"})})]},ue))})]})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ke,{children:n("providers.provider_transformer")}),g.jsx("div",{className:"flex gap-2",children:g.jsx(An,{options:S.map(ie=>({label:ie.name,value:ie.name})),value:"",onChange:ie=>{i!==null&&G(i,ie)},placeholder:n("providers.select_transformer"),emptyPlaceholder:n("providers.no_transformers")})}),Ze.transformer?.use&&Ze.transformer.use.length>0&&g.jsxs("div",{className:"space-y-2 mt-2",children:[g.jsx("div",{className:"text-sm font-medium text-gray-700",children:n("providers.selected_transformers")}),Ze.transformer.use.map((ie,ue)=>g.jsxs("div",{className:"border rounded-md p-3",children:[g.jsxs("div",{className:"flex gap-2 items-center mb-2",children:[g.jsx("div",{className:"flex-1 bg-gray-50 rounded p-2 text-sm",children:typeof ie=="string"?ie:Array.isArray(ie)?String(ie[0]):String(ie)}),g.jsx(Ce,{variant:"outline",size:"icon",onClick:()=>{i!==null&&U(i,ue)},children:g.jsx(sr,{className:"h-4 w-4"})})]}),g.jsxs("div",{className:"mt-2 pl-4 border-l-2 border-gray-200",children:[g.jsx(Ke,{className:"text-sm",children:n("providers.transformer_parameters")}),g.jsxs("div",{className:"space-y-2 mt-1",children:[g.jsxs("div",{className:"flex gap-2",children:[g.jsx(ft,{placeholder:n("providers.parameter_name"),value:m[`provider-${i}-transformer-${ue}`]?.name||"",onChange:ge=>{const he=`provider-${i}-transformer-${ue}`;v(Oe=>({...Oe,[he]:{...Oe[he]||{name:"",value:""},name:ge.target.value}}))}}),g.jsx(ft,{placeholder:n("providers.parameter_value"),value:m[`provider-${i}-transformer-${ue}`]?.value||"",onChange:ge=>{const he=`provider-${i}-transformer-${ue}`;v(Oe=>({...Oe,[he]:{...Oe[he]||{name:"",value:""},value:ge.target.value}}))}}),g.jsx(Ce,{size:"sm",onClick:()=>{if(i!==null){const ge=`provider-${i}-transformer-${ue}`,he=m[ge];he&&he.name&&he.value&&(oe(i,ue,he.name,he.value),v(Oe=>({...Oe,[ge]:{name:"",value:""}})))}},children:g.jsx(Bd,{className:"h-4 w-4"})})]}),(()=>{if(!Ze.transformer?.use||Ze.transformer.use.length<=ue)return null;const ge=Ze.transformer.use[ue];let he={};return Array.isArray(ge)&&ge.length>1&&typeof ge[1]=="object"&&ge[1]!==null&&(he=ge[1]),Object.keys(he).length>0?g.jsx("div",{className:"space-y-1",children:Object.entries(he).map(([Oe,ke])=>g.jsxs("div",{className:"flex items-center justify-between bg-gray-50 rounded p-2",children:[g.jsxs("div",{className:"text-sm",children:[g.jsxs("span",{className:"font-medium",children:[Oe,":"]})," ",String(ke)]}),g.jsx(Ce,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0",onClick:()=>{i!==null&&me(i,ue,Oe)},children:g.jsx(Yr,{className:"h-3 w-3"})})]},Oe))}):null})()]})]})]},ue))]})]}),Ze.models&&Ze.models.length>0&&g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ke,{children:n("providers.model_transformers")}),g.jsx("div",{className:"space-y-3",children:(Ze.models||[]).map((ie,ue)=>g.jsxs("div",{className:"border rounded-md p-3",children:[g.jsx("div",{className:"font-medium text-sm mb-2",children:ie}),g.jsx("div",{className:"flex gap-2",children:g.jsx("div",{className:"flex-1 flex gap-2",children:g.jsx(An,{options:S.map(ge=>({label:ge.name,value:ge.name})),value:"",onChange:ge=>{i!==null&&K(i,ie,ge)},placeholder:n("providers.select_transformer"),emptyPlaceholder:n("providers.no_transformers")})})}),Ze.transformer?.[ie]?.use&&Ze.transformer[ie].use.length>0&&g.jsxs("div",{className:"space-y-2 mt-2",children:[g.jsx("div",{className:"text-sm font-medium text-gray-700",children:n("providers.selected_transformers")}),Ze.transformer[ie].use.map((ge,he)=>g.jsxs("div",{className:"border rounded-md p-3",children:[g.jsxs("div",{className:"flex gap-2 items-center mb-2",children:[g.jsx("div",{className:"flex-1 bg-gray-50 rounded p-2 text-sm",children:typeof ge=="string"?ge:Array.isArray(ge)?String(ge[0]):String(ge)}),g.jsx(Ce,{variant:"outline",size:"icon",onClick:()=>{i!==null&&P(i,ie,he)},children:g.jsx(sr,{className:"h-4 w-4"})})]}),g.jsxs("div",{className:"mt-2 pl-4 border-l-2 border-gray-200",children:[g.jsx(Ke,{className:"text-sm",children:n("providers.transformer_parameters")}),g.jsxs("div",{className:"space-y-2 mt-1",children:[g.jsxs("div",{className:"flex gap-2",children:[g.jsx(ft,{placeholder:n("providers.parameter_name"),value:b[`model-${i}-${ie}-transformer-${he}`]?.name||"",onChange:Oe=>{const ke=`model-${i}-${ie}-transformer-${he}`;w(Pe=>({...Pe,[ke]:{...Pe[ke]||{name:"",value:""},name:Oe.target.value}}))}}),g.jsx(ft,{placeholder:n("providers.parameter_value"),value:b[`model-${i}-${ie}-transformer-${he}`]?.value||"",onChange:Oe=>{const ke=`model-${i}-${ie}-transformer-${he}`;w(Pe=>({...Pe,[ke]:{...Pe[ke]||{name:"",value:""},value:Oe.target.value}}))}}),g.jsx(Ce,{size:"sm",onClick:()=>{if(i!==null){const Oe=`model-${i}-${ie}-transformer-${he}`,ke=b[Oe];ke&&ke.name&&ke.value&&(ve(i,ie,he,ke.name,ke.value),w(Pe=>({...Pe,[Oe]:{name:"",value:""}})))}},children:g.jsx(Bd,{className:"h-4 w-4"})})]}),(()=>{if(!Ze.transformer?.[ie]?.use||Ze.transformer[ie].use.length<=he)return null;const Oe=Ze.transformer[ie].use[he];let ke={};return Array.isArray(Oe)&&Oe.length>1&&typeof Oe[1]=="object"&&Oe[1]!==null&&(ke=Oe[1]),Object.keys(ke).length>0?g.jsx("div",{className:"space-y-1",children:Object.entries(ke).map(([Pe,nt])=>g.jsxs("div",{className:"flex items-center justify-between bg-gray-50 rounded p-2",children:[g.jsxs("div",{className:"text-sm",children:[g.jsxs("span",{className:"font-medium",children:[Pe,":"]})," ",String(nt)]}),g.jsx(Ce,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0",onClick:()=>{i!==null&&Le(i,ie,he,Pe)},children:g.jsx(Yr,{className:"h-3 w-3"})})]},Pe))}):null})()]})]})]},he))]})]},ue))})]})]}),g.jsx("div",{className:"space-y-3 mt-auto",children:g.jsx("div",{className:"flex justify-end gap-2",children:g.jsx(Ce,{onClick:X,children:n("app.save")})})})]})}),g.jsx(Xr,{open:c!==null,onOpenChange:()=>f(null),children:g.jsxs(cr,{children:[g.jsxs(ur,{children:[g.jsx(fr,{children:n("providers.delete")}),g.jsx(Lc,{children:n("providers.delete_provider_confirm")})]}),g.jsxs(Qr,{children:[g.jsx(Ce,{variant:"outline",onClick:()=>f(null),children:n("providers.cancel")}),g.jsx(Ce,{variant:"destructive",onClick:()=>c!==null&&ye(c),children:n("providers.delete")})]})]})})]})}function SA(){const{t:n}=Oa(),{config:a,setConfig:l}=Wr();if(!a)return g.jsxs(Ca,{className:"flex h-full flex-col rounded-lg border shadow-sm",children:[g.jsx(Na,{className:"border-b p-4",children:g.jsx(Ra,{className:"text-lg",children:n("router.title")})}),g.jsx(ja,{className:"flex-grow flex items-center justify-center p-4",children:g.jsx("div",{className:"text-gray-500",children:"Loading router configuration..."})})]});const i=a.Router||{default:"",background:"",think:"",longContext:"",longContextThreshold:6e4,webSearch:"",image:""},s=(p,m)=>{const b={...a.Router||{},[p]:m};l({...a,Router:b})},c=p=>{l({...a,forceUseImageAgent:p})},h=(Array.isArray(a.Providers)?a.Providers:[]).flatMap(p=>{if(!p)return[];const m=Array.isArray(p.models)?p.models:[],v=p.name||"Unknown Provider";return m.map(b=>({value:`${v},${b||"Unknown Model"}`,label:`${v}, ${b||"Unknown Model"}`}))});return g.jsxs(Ca,{className:"flex h-full flex-col rounded-lg border shadow-sm",children:[g.jsx(Na,{className:"border-b p-4",children:g.jsx(Ra,{className:"text-lg",children:n("router.title")})}),g.jsxs(ja,{className:"flex-grow space-y-5 overflow-y-auto p-4",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ke,{children:n("router.default")}),g.jsx(An,{options:h,value:i.default||"",onChange:p=>s("default",p),placeholder:n("router.selectModel"),searchPlaceholder:n("router.searchModel"),emptyPlaceholder:n("router.noModelFound")})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ke,{children:n("router.background")}),g.jsx(An,{options:h,value:i.background||"",onChange:p=>s("background",p),placeholder:n("router.selectModel"),searchPlaceholder:n("router.searchModel"),emptyPlaceholder:n("router.noModelFound")})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ke,{children:n("router.think")}),g.jsx(An,{options:h,value:i.think||"",onChange:p=>s("think",p),placeholder:n("router.selectModel"),searchPlaceholder:n("router.searchModel"),emptyPlaceholder:n("router.noModelFound")})]}),g.jsx("div",{className:"space-y-2",children:g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsxs("div",{className:"flex-1",children:[g.jsx(Ke,{children:n("router.longContext")}),g.jsx(An,{options:h,value:i.longContext||"",onChange:p=>s("longContext",p),placeholder:n("router.selectModel"),searchPlaceholder:n("router.searchModel"),emptyPlaceholder:n("router.noModelFound")})]}),g.jsxs("div",{className:"w-48",children:[g.jsx(Ke,{children:n("router.longContextThreshold")}),g.jsx(ft,{type:"number",value:i.longContextThreshold||6e4,onChange:p=>s("longContextThreshold",parseInt(p.target.value)||6e4),placeholder:"60000"})]})]})}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ke,{children:n("router.webSearch")}),g.jsx(An,{options:h,value:i.webSearch||"",onChange:p=>s("webSearch",p),placeholder:n("router.selectModel"),searchPlaceholder:n("router.searchModel"),emptyPlaceholder:n("router.noModelFound")})]}),g.jsx("div",{className:"space-y-2",children:g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsxs("div",{className:"flex-1",children:[g.jsxs(Ke,{children:[n("router.image")," (beta)"]}),g.jsx(An,{options:h,value:i.image||"",onChange:p=>s("image",p),placeholder:n("router.selectModel"),searchPlaceholder:n("router.searchModel"),emptyPlaceholder:n("router.noModelFound")})]}),g.jsxs("div",{className:"w-48",children:[g.jsx(Ke,{htmlFor:"forceUseImageAgent",children:n("router.forceUseImageAgent")}),g.jsxs("select",{id:"forceUseImageAgent",value:a.forceUseImageAgent?"true":"false",onChange:p=>c(p.target.value==="true"),className:"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",children:[g.jsx("option",{value:"false",children:n("common.no")}),g.jsx("option",{value:"true",children:n("common.yes")})]})]})]})})]})]})}function _A(n,a,l){return a in n?Object.defineProperty(n,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):n[a]=l,n}function Fy(n,a){var l=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);a&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable})),l.push.apply(l,i)}return l}function Yy(n){for(var a=1;a<arguments.length;a++){var l=arguments[a]!=null?arguments[a]:{};a%2?Fy(Object(l),!0).forEach(function(i){_A(n,i,l[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(l)):Fy(Object(l)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(l,i))})}return n}function EA(n,a){if(n==null)return{};var l={},i=Object.keys(n),s,c;for(c=0;c<i.length;c++)s=i[c],!(a.indexOf(s)>=0)&&(l[s]=n[s]);return l}function CA(n,a){if(n==null)return{};var l=EA(n,a),i,s;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(n);for(s=0;s<c.length;s++)i=c[s],!(a.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(l[i]=n[i])}return l}function NA(n,a){return RA(n)||jA(n,a)||OA(n,a)||AA()}function RA(n){if(Array.isArray(n))return n}function jA(n,a){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(n)))){var l=[],i=!0,s=!1,c=void 0;try{for(var f=n[Symbol.iterator](),h;!(i=(h=f.next()).done)&&(l.push(h.value),!(a&&l.length===a));i=!0);}catch(p){s=!0,c=p}finally{try{!i&&f.return!=null&&f.return()}finally{if(s)throw c}}return l}}function OA(n,a){if(n){if(typeof n=="string")return Gy(n,a);var l=Object.prototype.toString.call(n).slice(8,-1);if(l==="Object"&&n.constructor&&(l=n.constructor.name),l==="Map"||l==="Set")return Array.from(n);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return Gy(n,a)}}function Gy(n,a){(a==null||a>n.length)&&(a=n.length);for(var l=0,i=new Array(a);l<a;l++)i[l]=n[l];return i}function AA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
312
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TA(n,a,l){return a in n?Object.defineProperty(n,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):n[a]=l,n}function Ky(n,a){var l=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);a&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable})),l.push.apply(l,i)}return l}function Xy(n){for(var a=1;a<arguments.length;a++){var l=arguments[a]!=null?arguments[a]:{};a%2?Ky(Object(l),!0).forEach(function(i){TA(n,i,l[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(l)):Ky(Object(l)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(l,i))})}return n}function MA(){for(var n=arguments.length,a=new Array(n),l=0;l<n;l++)a[l]=arguments[l];return function(i){return a.reduceRight(function(s,c){return c(s)},i)}}function uo(n){return function a(){for(var l=this,i=arguments.length,s=new Array(i),c=0;c<i;c++)s[c]=arguments[c];return s.length>=n.length?n.apply(this,s):function(){for(var f=arguments.length,h=new Array(f),p=0;p<f;p++)h[p]=arguments[p];return a.apply(l,[].concat(s,h))}}}function Sc(n){return{}.toString.call(n).includes("Object")}function DA(n){return!Object.keys(n).length}function So(n){return typeof n=="function"}function LA(n,a){return Object.prototype.hasOwnProperty.call(n,a)}function kA(n,a){return Sc(a)||lr("changeType"),Object.keys(a).some(function(l){return!LA(n,l)})&&lr("changeField"),a}function zA(n){So(n)||lr("selectorType")}function UA(n){So(n)||Sc(n)||lr("handlerType"),Sc(n)&&Object.values(n).some(function(a){return!So(a)})&&lr("handlersType")}function PA(n){n||lr("initialIsRequired"),Sc(n)||lr("initialType"),DA(n)&&lr("initialContent")}function HA(n,a){throw new Error(n[a]||n.default)}var BA={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},lr=uo(HA)(BA),nc={changes:kA,selector:zA,handler:UA,initial:PA};function $A(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};nc.initial(n),nc.handler(a);var l={current:n},i=uo(FA)(l,a),s=uo(qA)(l),c=uo(nc.changes)(n),f=uo(VA)(l);function h(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(v){return v};return nc.selector(m),m(l.current)}function p(m){MA(i,s,c,f)(m)}return[h,p]}function VA(n,a){return So(a)?a(n.current):a}function qA(n,a){return n.current=Xy(Xy({},n.current),a),a}function FA(n,a,l){return So(a)?a(n.current):Object.keys(l).forEach(function(i){var s;return(s=a[i])===null||s===void 0?void 0:s.call(a,n.current[i])}),l}var YA={create:$A},GA={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function KA(n){return function a(){for(var l=this,i=arguments.length,s=new Array(i),c=0;c<i;c++)s[c]=arguments[c];return s.length>=n.length?n.apply(this,s):function(){for(var f=arguments.length,h=new Array(f),p=0;p<f;p++)h[p]=arguments[p];return a.apply(l,[].concat(s,h))}}}function XA(n){return{}.toString.call(n).includes("Object")}function QA(n){return n||Qy("configIsRequired"),XA(n)||Qy("configType"),n.urls?(IA(),{paths:{vs:n.urls.monacoBase}}):n}function IA(){console.warn(Ux.deprecation)}function ZA(n,a){throw new Error(n[a]||n.default)}var Ux={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
288
313
  You are using deprecated way of configuration.
289
314
 
290
315
  Instead of using
@@ -293,8 +318,87 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
293
318
  monaco.config({ paths: { vs: '...' } })
294
319
 
295
320
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
296
- `},Gy=LA(PA)(zx),HA={config:zA},BA=function(){for(var a=arguments.length,l=new Array(a),i=0;i<a;i++)l[i]=arguments[i];return function(s){return l.reduceRight(function(u,f){return f(u)},s)}};function Ux(n,a){return Object.keys(a).forEach(function(l){a[l]instanceof Object&&n[l]&&Object.assign(a[l],Ux(n[l],a[l]))}),Yy(Yy({},n),a)}var $A={type:"cancelation",msg:"operation is manually canceled"};function _d(n){var a=!1,l=new Promise(function(i,s){n.then(function(u){return a?s($A):i(u)}),n.catch(s)});return l.cancel=function(){return a=!0},l}var VA=MA.create({config:DA,isInitialized:!1,resolve:null,reject:null,monaco:null}),Px=hA(VA,2),jo=Px[0],Fu=Px[1];function YA(n){var a=HA.config(n),l=a.monaco,i=dA(a,["monaco"]);Fu(function(s){return{config:Ux(s.config,i),monaco:l}})}function qA(){var n=jo(function(a){var l=a.monaco,i=a.isInitialized,s=a.resolve;return{monaco:l,isInitialized:i,resolve:s}});if(!n.isInitialized){if(Fu({isInitialized:!0}),n.monaco)return n.resolve(n.monaco),_d(Cd);if(window.monaco&&window.monaco.editor)return Hx(window.monaco),n.resolve(window.monaco),_d(Cd);BA(FA,GA)(XA)}return _d(Cd)}function FA(n){return document.body.appendChild(n)}function KA(n){var a=document.createElement("script");return n&&(a.src=n),a}function GA(n){var a=jo(function(i){var s=i.config,u=i.reject;return{config:s,reject:u}}),l=KA("".concat(a.config.paths.vs,"/loader.js"));return l.onload=function(){return n()},l.onerror=a.reject,l}function XA(){var n=jo(function(l){var i=l.config,s=l.resolve,u=l.reject;return{config:i,resolve:s,reject:u}}),a=window.require;a.config(n.config),a(["vs/editor/editor.main"],function(l){Hx(l),n.resolve(l)},function(l){n.reject(l)})}function Hx(n){jo().monaco||Fu({monaco:n})}function QA(){return jo(function(n){var a=n.monaco;return a})}var Cd=new Promise(function(n,a){return Fu({resolve:n,reject:a})}),Bx={config:YA,init:qA,__getMonacoInstance:QA},ZA={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Nd=ZA,IA={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},JA=IA;function WA({children:n}){return mt.createElement("div",{style:JA.container},n)}var eT=WA,tT=eT;function nT({width:n,height:a,isEditorReady:l,loading:i,_ref:s,className:u,wrapperProps:f}){return mt.createElement("section",{style:{...Nd.wrapper,width:n,height:a},...f},!l&&mt.createElement(tT,null,i),mt.createElement("div",{ref:s,style:{...Nd.fullWidth,...!l&&Nd.hide},className:u}))}var aT=nT,$x=y.memo(aT);function rT(n){y.useEffect(n,[])}var Vx=rT;function lT(n,a,l=!0){let i=y.useRef(!0);y.useEffect(i.current||!l?()=>{i.current=!1}:n,a)}var mn=lT;function mo(){}function Fl(n,a,l,i){return iT(n,i)||oT(n,a,l,i)}function iT(n,a){return n.editor.getModel(Yx(n,a))}function oT(n,a,l,i){return n.editor.createModel(a,l,i?Yx(n,i):void 0)}function Yx(n,a){return n.Uri.parse(a)}function sT({original:n,modified:a,language:l,originalLanguage:i,modifiedLanguage:s,originalModelPath:u,modifiedModelPath:f,keepCurrentOriginalModel:h=!1,keepCurrentModifiedModel:p=!1,theme:m="light",loading:v="Loading...",options:b={},height:w="100%",width:S="100%",className:C,wrapperProps:_={},beforeMount:j=mo,onMount:N=mo}){let[z,k]=y.useState(!1),[H,D]=y.useState(!0),R=y.useRef(null),B=y.useRef(null),Z=y.useRef(null),ne=y.useRef(N),oe=y.useRef(j),le=y.useRef(!1);Vx(()=>{let ue=Bx.init();return ue.then(A=>(B.current=A)&&D(!1)).catch(A=>A?.type!=="cancelation"&&console.error("Monaco initialization: error:",A)),()=>R.current?W():ue.cancel()}),mn(()=>{if(R.current&&B.current){let ue=R.current.getOriginalEditor(),A=Fl(B.current,n||"",i||l||"text",u||"");A!==ue.getModel()&&ue.setModel(A)}},[u],z),mn(()=>{if(R.current&&B.current){let ue=R.current.getModifiedEditor(),A=Fl(B.current,a||"",s||l||"text",f||"");A!==ue.getModel()&&ue.setModel(A)}},[f],z),mn(()=>{let ue=R.current.getModifiedEditor();ue.getOption(B.current.editor.EditorOption.readOnly)?ue.setValue(a||""):a!==ue.getValue()&&(ue.executeEdits("",[{range:ue.getModel().getFullModelRange(),text:a||"",forceMoveMarkers:!0}]),ue.pushUndoStop())},[a],z),mn(()=>{R.current?.getModel()?.original.setValue(n||"")},[n],z),mn(()=>{let{original:ue,modified:A}=R.current.getModel();B.current.editor.setModelLanguage(ue,i||l||"text"),B.current.editor.setModelLanguage(A,s||l||"text")},[l,i,s],z),mn(()=>{B.current?.editor.setTheme(m)},[m],z),mn(()=>{R.current?.updateOptions(b)},[b],z);let J=y.useCallback(()=>{if(!B.current)return;oe.current(B.current);let ue=Fl(B.current,n||"",i||l||"text",u||""),A=Fl(B.current,a||"",s||l||"text",f||"");R.current?.setModel({original:ue,modified:A})},[l,a,s,n,i,u,f]),te=y.useCallback(()=>{!le.current&&Z.current&&(R.current=B.current.editor.createDiffEditor(Z.current,{automaticLayout:!0,...b}),J(),B.current?.editor.setTheme(m),k(!0),le.current=!0)},[b,m,J]);y.useEffect(()=>{z&&ne.current(R.current,B.current)},[z]),y.useEffect(()=>{!H&&!z&&te()},[H,z,te]);function W(){let ue=R.current?.getModel();h||ue?.original?.dispose(),p||ue?.modified?.dispose(),R.current?.dispose()}return mt.createElement($x,{width:S,height:w,isEditorReady:z,loading:v,_ref:Z,className:C,wrapperProps:_})}var uT=sT;y.memo(uT);function cT(n){let a=y.useRef();return y.useEffect(()=>{a.current=n},[n]),a.current}var fT=cT,au=new Map;function dT({defaultValue:n,defaultLanguage:a,defaultPath:l,value:i,language:s,path:u,theme:f="light",line:h,loading:p="Loading...",options:m={},overrideServices:v={},saveViewState:b=!0,keepCurrentModel:w=!1,width:S="100%",height:C="100%",className:_,wrapperProps:j={},beforeMount:N=mo,onMount:z=mo,onChange:k,onValidate:H=mo}){let[D,R]=y.useState(!1),[B,Z]=y.useState(!0),ne=y.useRef(null),oe=y.useRef(null),le=y.useRef(null),J=y.useRef(z),te=y.useRef(N),W=y.useRef(),ue=y.useRef(i),A=fT(u),Q=y.useRef(!1),V=y.useRef(!1);Vx(()=>{let F=Bx.init();return F.then(U=>(ne.current=U)&&Z(!1)).catch(U=>U?.type!=="cancelation"&&console.error("Monaco initialization: error:",U)),()=>oe.current?O():F.cancel()}),mn(()=>{let F=Fl(ne.current,n||i||"",a||s||"",u||l||"");F!==oe.current?.getModel()&&(b&&au.set(A,oe.current?.saveViewState()),oe.current?.setModel(F),b&&oe.current?.restoreViewState(au.get(u)))},[u],D),mn(()=>{oe.current?.updateOptions(m)},[m],D),mn(()=>{!oe.current||i===void 0||(oe.current.getOption(ne.current.editor.EditorOption.readOnly)?oe.current.setValue(i):i!==oe.current.getValue()&&(V.current=!0,oe.current.executeEdits("",[{range:oe.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),oe.current.pushUndoStop(),V.current=!1))},[i],D),mn(()=>{let F=oe.current?.getModel();F&&s&&ne.current?.editor.setModelLanguage(F,s)},[s],D),mn(()=>{h!==void 0&&oe.current?.revealLine(h)},[h],D),mn(()=>{ne.current?.editor.setTheme(f)},[f],D);let ve=y.useCallback(()=>{if(!(!le.current||!ne.current)&&!Q.current){te.current(ne.current);let F=u||l,U=Fl(ne.current,i||n||"",a||s||"",F||"");oe.current=ne.current?.editor.create(le.current,{model:U,automaticLayout:!0,...m},v),b&&oe.current.restoreViewState(au.get(F)),ne.current.editor.setTheme(f),h!==void 0&&oe.current.revealLine(h),R(!0),Q.current=!0}},[n,a,l,i,s,u,m,v,b,f,h]);y.useEffect(()=>{D&&J.current(oe.current,ne.current)},[D]),y.useEffect(()=>{!B&&!D&&ve()},[B,D,ve]),ue.current=i,y.useEffect(()=>{D&&k&&(W.current?.dispose(),W.current=oe.current?.onDidChangeModelContent(F=>{V.current||k(oe.current.getValue(),F)}))},[D,k]),y.useEffect(()=>{if(D){let F=ne.current.editor.onDidChangeMarkers(U=>{let K=oe.current.getModel()?.uri;if(K&&U.find(ae=>ae.path===K.path)){let ae=ne.current.editor.getModelMarkers({resource:K});H?.(ae)}});return()=>{F?.dispose()}}return()=>{}},[D,H]);function O(){W.current?.dispose(),w?b&&au.set(u,oe.current.saveViewState()):oe.current.getModel()?.dispose(),oe.current.dispose()}return mt.createElement($x,{width:S,height:C,isEditorReady:D,loading:p,_ref:le,className:_,wrapperProps:j})}var hT=dT,mT=y.memo(hT),pT=mT;function gT({open:n,onOpenChange:a,showToast:l}){const{t:i}=hr(),{config:s}=Jr(),[u,f]=y.useState(""),[h,p]=y.useState(!1),[m,v]=y.useState(!1),[b,w]=y.useState(!1),S=y.useRef(null);y.useEffect(()=>{s&&n&&f(JSON.stringify(s,null,2))},[s,n]),y.useEffect(()=>{if(n)v(!0),requestAnimationFrame(()=>{w(!0)});else{w(!1);const N=setTimeout(()=>{v(!1)},300);return()=>clearTimeout(N)}},[n]);const C=(N,z,k)=>{if(N&&typeof N=="object"&&"success"in N){const H=N;return H.success?(l&&l(H.message||z,"success"),!0):(l&&l(H.message||k,"error"),!1)}else return l&&l(z,"success"),!0},_=async()=>{if(u)try{p(!0);const N=JSON.parse(u),z=await Qt.updateConfig(N);C(z,i("app.config_saved_success"),i("app.config_saved_failed"))&&a(!1)}catch(N){console.error("Failed to save config:",N),l&&l(i("app.config_saved_failed")+": "+N.message,"error")}finally{p(!1)}},j=async()=>{if(u)try{p(!0);const N=JSON.parse(u),z=await Qt.updateConfig(N);if(C(z,i("app.config_saved_success"),i("app.config_saved_failed"))){const H=await Qt.restartService();C(H,i("app.config_saved_restart_success"),i("app.config_saved_restart_failed")),a(!1)}}catch(N){console.error("Failed to save config and restart:",N),l&&l(i("app.config_saved_restart_failed")+": "+N.message,"error")}finally{p(!1)}};return!m&&!n?null:g.jsxs(g.Fragment,{children:[(m||n)&&g.jsx("div",{className:`fixed inset-0 z-50 transition-all duration-300 ease-out ${b&&n?"bg-black/50 opacity-100":"bg-black/0 opacity-0 pointer-events-none"}`,onClick:()=>a(!1)}),g.jsxs("div",{ref:S,className:`fixed bottom-0 left-0 right-0 z-50 flex flex-col bg-white shadow-2xl transition-all duration-300 ease-out transform ${b&&n?"translate-y-0":"translate-y-full"}`,style:{height:"100vh",maxHeight:"100vh"},children:[g.jsxs("div",{className:"flex items-center justify-between border-b p-4",children:[g.jsx("h2",{className:"text-lg font-semibold",children:i("json_editor.title")}),g.jsxs("div",{className:"flex gap-2",children:[g.jsxs(Ae,{variant:"outline",size:"sm",onClick:()=>a(!1),disabled:h,children:[g.jsx(Xl,{className:"h-4 w-4 mr-2"}),i("json_editor.cancel")]}),g.jsxs(Ae,{variant:"outline",size:"sm",onClick:_,disabled:h,children:[g.jsx(db,{className:"h-4 w-4 mr-2"}),i(h?"json_editor.saving":"json_editor.save")]}),g.jsxs(Ae,{variant:"default",size:"sm",onClick:j,disabled:h,children:[g.jsx(fb,{className:"h-4 w-4 mr-2"}),i(h?"json_editor.saving":"json_editor.save_and_restart")]})]})]}),g.jsx("div",{className:"flex-1 min-h-0 bg-gray-50",children:g.jsx(pT,{height:"100%",defaultLanguage:"json",value:u,onChange:N=>f(N||""),theme:"vs",options:{minimap:{enabled:!0},fontSize:14,scrollBeyondLastLine:!1,automaticLayout:!0,wordWrap:"on",formatOnPaste:!0,formatOnType:!0,suggest:{showKeywords:!0,showSnippets:!0}}})})]})]})}function vT({message:n,type:a,onClose:l}){y.useEffect(()=>{const u=setTimeout(()=>{l()},3e3);return()=>clearTimeout(u)},[l]);const i=()=>{switch(a){case"success":return g.jsx(pN,{className:"h-5 w-5 text-green-500"});case"error":return g.jsx(cb,{className:"h-5 w-5 text-red-500"});case"warning":return g.jsx(fN,{className:"h-5 w-5 text-yellow-500"});default:return null}},s=()=>{switch(a){case"success":return"bg-green-100 border-green-200";case"error":return"bg-red-100 border-red-200";case"warning":return"bg-yellow-100 border-yellow-200";default:return"bg-gray-100 border-gray-200"}};return g.jsxs("div",{className:`fixed top-4 right-4 z-50 flex items-center justify-between p-4 rounded-lg border shadow-lg ${s()} transition-all duration-300 ease-in-out`,children:[g.jsxs("div",{className:"flex items-center space-x-2",children:[i(),g.jsx("span",{className:"text-sm font-medium",children:n})]}),g.jsx("button",{onClick:l,className:"ml-4 text-gray-500 hover:text-gray-700 focus:outline-none",children:g.jsx(Xl,{className:"h-4 w-4"})})]})}function yT(){const{t:n,i18n:a}=hr(),l=Ru(),{config:i,error:s}=Jr(),[u,f]=y.useState(!1),[h,p]=y.useState(!1),[m,v]=y.useState(!0),[b,w]=y.useState(null),[S,C]=y.useState(!1),[_,j]=y.useState(!1),[N,z]=y.useState(null),[k,H]=y.useState(!1),[D,R]=y.useState(!1),B=y.useRef(!1),Z=async()=>{if(!i){w({message:n("app.config_missing"),type:"error"});return}try{const J=await Qt.updateConfig(i);if(console.log("Config saved successfully"),J&&typeof J=="object"&&"success"in J){const te=J;te.success?w({message:te.message||n("app.config_saved_success"),type:"success"}):w({message:te.message||n("app.config_saved_failed"),type:"error"})}else w({message:n("app.config_saved_success"),type:"success"})}catch(J){console.error("Failed to save config:",J),w({message:n("app.config_saved_failed")+": "+J.message,type:"error"})}},ne=async()=>{if(!i){w({message:n("app.config_missing"),type:"error"});return}try{const J=await Qt.updateConfig(i);let te=!0;if(J&&typeof J=="object"&&"success"in J){const W=J;W.success||(te=!1,w({message:W.message||n("app.config_saved_failed"),type:"error"}))}if(te){const W=await Qt.restartService();if(console.log("Config saved and service restarted successfully"),W&&typeof W=="object"&&"success"in W){const ue=W;ue.success&&w({message:ue.message||n("app.config_saved_restart_success"),type:"success"})}else w({message:n("app.config_saved_restart_success"),type:"success"})}}catch(J){console.error("Failed to save config and restart:",J),w({message:n("app.config_saved_restart_failed")+": "+J.message,type:"error"})}},oe=y.useCallback(async(J=!0)=>{if(D&&S){J&&j(!0);return}H(!0);try{const te=await Qt.checkForUpdates();te.hasUpdate&&te.latestVersion&&te.changelog?(C(!0),z({version:te.latestVersion,changelog:te.changelog}),J&&j(!0)):J&&w({message:n("app.no_updates_available"),type:"success"}),R(!0)}catch(te){console.error("Failed to check for updates:",te),J&&w({message:n("app.update_check_failed")+": "+te.message,type:"error"})}finally{H(!1)}},[D,S,n]);y.useEffect(()=>{(async()=>{if(i){v(!1),!D&&!B.current&&(B.current=!0,oe(!1));return}if(!localStorage.getItem("apiKey")){v(!1);return}try{await Qt.getConfig()}catch(ue){console.error("Error checking auth:",ue),ue.message==="Unauthorized"&&l("/login")}finally{v(!1),!D&&!B.current&&(B.current=!0,oe(!1))}})();const te=()=>{l("/login")};return window.addEventListener("unauthorized",te),()=>{window.removeEventListener("unauthorized",te)}},[i,l,D,oe]);const le=async()=>{if(N)try{const J=await Qt.performUpdate();J.success?(w({message:n("app.update_successful"),type:"success"}),C(!1),j(!1),R(!1)):w({message:n("app.update_failed")+": "+J.message,type:"error"})}catch(J){console.error("Failed to perform update:",J),w({message:n("app.update_failed")+": "+J.message,type:"error"})}};return m?g.jsx("div",{className:"h-screen bg-gray-50 font-sans flex items-center justify-center",children:g.jsx("div",{className:"text-gray-500",children:"Loading application..."})}):s?g.jsx("div",{className:"h-screen bg-gray-50 font-sans flex items-center justify-center",children:g.jsxs("div",{className:"text-red-500",children:["Error: ",s.message]})}):i?g.jsxs("div",{className:"h-screen bg-gray-50 font-sans",children:[g.jsxs("header",{className:"flex h-16 items-center justify-between border-b bg-white px-6",children:[g.jsx("h1",{className:"text-xl font-semibold text-gray-800",children:n("app.title")}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Ae,{variant:"ghost",size:"icon",onClick:()=>f(!0),className:"transition-all-ease hover:scale-110",children:g.jsx(TN,{className:"h-5 w-5"})}),g.jsx(Ae,{variant:"ghost",size:"icon",onClick:()=>p(!0),className:"transition-all-ease hover:scale-110",children:g.jsx(SN,{className:"h-5 w-5"})}),g.jsxs($u,{children:[g.jsx(Vu,{asChild:!0,children:g.jsx(Ae,{variant:"ghost",size:"icon",className:"transition-all-ease hover:scale-110",children:g.jsx(_N,{className:"h-5 w-5"})})}),g.jsx(Yu,{className:"w-32 p-2",children:g.jsxs("div",{className:"space-y-1",children:[g.jsx(Ae,{variant:a.language.startsWith("en")?"default":"ghost",className:"w-full justify-start transition-all-ease hover:scale-[1.02]",onClick:()=>a.changeLanguage("en"),children:"English"}),g.jsx(Ae,{variant:a.language.startsWith("zh")?"default":"ghost",className:"w-full justify-start transition-all-ease hover:scale-[1.02]",onClick:()=>a.changeLanguage("zh"),children:"中文"})]})})]}),g.jsxs(Ae,{variant:"ghost",size:"icon",onClick:()=>oe(!0),disabled:k,className:"transition-all-ease hover:scale-110 relative",children:[g.jsxs("div",{className:"relative",children:[g.jsx(hN,{className:"h-5 w-5"}),S&&!k&&g.jsx("div",{className:"absolute -top-1 -right-1 w-3 h-3 bg-red-500 rounded-full border-2 border-white"})]}),k&&g.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:g.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent"})})]}),g.jsxs(Ae,{onClick:Z,variant:"outline",className:"transition-all-ease hover:scale-[1.02] active:scale-[0.98]",children:[g.jsx(db,{className:"mr-2 h-4 w-4"}),n("app.save")]}),g.jsxs(Ae,{onClick:ne,className:"transition-all-ease hover:scale-[1.02] active:scale-[0.98]",children:[g.jsx(fb,{className:"mr-2 h-4 w-4"}),n("app.save_and_restart")]})]})]}),g.jsxs("main",{className:"flex h-[calc(100vh-4rem)] gap-4 p-4 overflow-hidden",children:[g.jsx("div",{className:"w-3/5",children:g.jsx(sA,{})}),g.jsxs("div",{className:"flex w-2/5 flex-col gap-4",children:[g.jsx("div",{className:"h-3/5",children:g.jsx(uA,{})}),g.jsx("div",{className:"flex-1 overflow-hidden",children:g.jsx(lA,{})})]})]}),g.jsx(aA,{isOpen:u,onOpenChange:f}),g.jsx(gT,{open:h,onOpenChange:p,showToast:(J,te)=>w({message:J,type:te})}),g.jsx(Gr,{open:_,onOpenChange:j,children:g.jsxs(or,{className:"max-w-2xl",children:[g.jsxs(sr,{children:[g.jsxs(ur,{children:[n("app.new_version_available"),N&&g.jsxs("span",{className:"ml-2 text-sm font-normal text-muted-foreground",children:["v",N.version]})]}),g.jsx(Lu,{children:n("app.update_description")})]}),g.jsx("div",{className:"max-h-96 overflow-y-auto py-4",children:N?.changelog?g.jsx("div",{className:"whitespace-pre-wrap text-sm",children:N.changelog}):g.jsx("div",{className:"text-muted-foreground",children:n("app.no_changelog_available")})}),g.jsxs(Xr,{children:[g.jsx(Ae,{variant:"outline",onClick:()=>j(!1),children:n("app.later")}),g.jsx(Ae,{onClick:le,children:n("app.update_now")})]})]})}),b&&g.jsx(vT,{message:b.message,type:b.type,onClose:()=>w(null)})]}):g.jsx("div",{className:"h-screen bg-gray-50 font-sans flex items-center justify-center",children:g.jsx("div",{className:"text-gray-500",children:"Loading configuration..."})})}function bT(){const{t:n}=hr(),a=Ru(),[l,i]=y.useState(""),[s,u]=y.useState(""),[f,h]=y.useState(!1);y.useEffect(()=>{(async()=>{if(localStorage.getItem("apiKey")){h(!0);try{await Qt.getConfig(),a("/dashboard")}catch{localStorage.removeItem("apiKey")}finally{h(!1)}}})();const v=()=>{a("/login")};return window.addEventListener("unauthorized",v),()=>{window.removeEventListener("unauthorized",v)}},[a]);const p=async m=>{m.preventDefault();try{Qt.setApiKey(l),window.dispatchEvent(new StorageEvent("storage",{key:"apiKey",newValue:l,url:window.location.href})),await Qt.getConfig(),a("/dashboard")}catch(v){Qt.setApiKey(""),v.message&&v.message.includes("401")?u(n("login.invalidApiKey")):a("/dashboard")}};return f?g.jsx("div",{className:"flex min-h-screen items-center justify-center bg-gray-50",children:g.jsxs(Ca,{className:"w-full max-w-md",children:[g.jsx(Na,{className:"space-y-1",children:g.jsx(Ra,{className:"text-2xl",children:n("login.title")})}),g.jsxs(ja,{children:[g.jsx("div",{className:"flex justify-center py-8",children:g.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent"})}),g.jsx("p",{className:"text-center text-sm text-gray-500",children:n("login.validating")})]})]})}):g.jsx("div",{className:"flex min-h-screen items-center justify-center bg-gray-50",children:g.jsxs(Ca,{className:"w-full max-w-md",children:[g.jsxs(Na,{className:"space-y-1",children:[g.jsx(Ra,{className:"text-2xl",children:n("login.title")}),g.jsx(Lx,{children:n("login.description")})]}),g.jsxs("form",{onSubmit:p,children:[g.jsxs(ja,{className:"space-y-4",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ge,{htmlFor:"apiKey",children:n("login.apiKey")}),g.jsx(ft,{id:"apiKey",type:"password",value:l,onChange:m=>i(m.target.value),placeholder:n("login.apiKeyPlaceholder")})]}),s&&g.jsx("div",{className:"text-sm text-red-500",children:s})]}),g.jsx(kx,{children:g.jsx(Ae,{className:"w-full",type:"submit",children:n("login.signIn")})})]})]})})}const xT=({children:n})=>n,wT=({children:n})=>n,ST=$_([{path:"/",element:g.jsx(K_,{to:"/dashboard",replace:!0})},{path:"/login",element:g.jsx(wT,{children:g.jsx(bT,{})})},{path:"/dashboard",element:g.jsx(xT,{children:g.jsx(yT,{})})}],{initialEntries:["/dashboard"]});wE.createRoot(document.getElementById("root")).render(g.jsx(y.StrictMode,{children:g.jsx(AO,{children:g.jsx(N2,{router:ST})})}));</script>
297
- <style rel="stylesheet" crossorigin>/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-800:oklch(44.4% .177 26.899);--color-orange-400:oklch(75% .183 55.934);--color-yellow-100:oklch(97.3% .071 103.193);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-300:oklch(90.5% .182 98.111);--color-yellow-500:oklch(79.5% .184 86.047);--color-green-100:oklch(96.2% .044 156.743);--color-green-200:oklch(92.5% .084 155.995);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-cyan-300:oklch(86.5% .127 207.078);--color-cyan-500:oklch(71.5% .143 215.221);--color-blue-50:oklch(97% .014 254.604);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-purple-300:oklch(82.7% .119 306.383);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--container-lg:32rem;--container-2xl:42rem;--container-4xl:56rem;--container-5xl:64rem;--container-6xl:72rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--tracking-tight:-.025em;--tracking-widest:.1em;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){*{outline-color:color-mix(in oklab,var(--ring)50%,transparent)}}body{background-color:var(--background);color:var(--foreground)}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background-color:#0000;border-radius:4px}::-webkit-scrollbar-thumb{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){::-webkit-scrollbar-thumb{background-color:color-mix(in oklab,var(--muted-foreground)30%,transparent)}}::-webkit-scrollbar-thumb{border-radius:4px;transition:background-color .2s}::-webkit-scrollbar-thumb:hover{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){::-webkit-scrollbar-thumb:hover{background-color:color-mix(in oklab,var(--muted-foreground)50%,transparent)}}::-webkit-scrollbar-corner{background-color:#0000}*{scrollbar-width:thin;scrollbar-color:oklch(55.6% 0 0) oklch(97% 0 0)}.dark *{scrollbar-color:oklch(70.8% 0 0) oklch(26.9% 0 0)}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.-top-1{top:calc(var(--spacing)*-1)}.top-0{top:calc(var(--spacing)*0)}.top-1\/2{top:50%}.top-4{top:calc(var(--spacing)*4)}.top-\[50\%\]{top:50%}.-right-1{right:calc(var(--spacing)*-1)}.right-0{right:calc(var(--spacing)*0)}.right-2{right:calc(var(--spacing)*2)}.right-4{right:calc(var(--spacing)*4)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.left-2\.5{left:calc(var(--spacing)*2.5)}.left-\[50\%\]{left:50%}.z-50{z-index:50}.col-span-1{grid-column:span 1/span 1}.col-span-3{grid-column:span 3/span 3}.col-span-5{grid-column:span 5/span 5}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.mt-0\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-auto{margin-top:auto}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-3{margin-left:calc(var(--spacing)*3)}.ml-4{margin-left:calc(var(--spacing)*4)}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-flex{display:inline-flex}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.h-3{height:calc(var(--spacing)*3)}.h-3\/5{height:60%}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-11{height:calc(var(--spacing)*11)}.h-16{height:calc(var(--spacing)*16)}.h-\[90vh\]{height:90vh}.h-\[calc\(100vh-4rem\)\]{height:calc(100vh - 4rem)}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-8{max-height:calc(var(--spacing)*8)}.max-h-72{max-height:calc(var(--spacing)*72)}.max-h-96{max-height:calc(var(--spacing)*96)}.max-h-\[80vh\]{max-height:80vh}.max-h-\[300px\]{max-height:300px}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-\[200px\]{min-height:200px}.min-h-screen{min-height:100vh}.w-2\/5{width:40%}.w-3{width:calc(var(--spacing)*3)}.w-3\/5{width:60%}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-10{width:calc(var(--spacing)*10)}.w-11{width:calc(var(--spacing)*11)}.w-32{width:calc(var(--spacing)*32)}.w-48{width:calc(var(--spacing)*48)}.w-72{width:calc(var(--spacing)*72)}.w-\[--radix-popover-trigger-width\]{width:--radix-popover-trigger-width}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.min-w-0{min-width:calc(var(--spacing)*0)}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-\(--radix-popover-content-transform-origin\){transform-origin:var(--radix-popover-content-transform-origin)}.translate-x-\[-50\%\]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-full{--tw-translate-y:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-move{cursor:move}.cursor-pointer{cursor:pointer}.scroll-py-1{scroll-padding-block:calc(var(--spacing)*1)}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0{gap:calc(var(--spacing)*0)}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-blue-200{border-color:var(--color-blue-200)}.border-border{border-color:var(--border)}.border-current{border-color:currentColor}.border-destructive\/50{border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.border-destructive\/50{border-color:color-mix(in oklab,var(--destructive)50%,transparent)}}.border-gray-200{border-color:var(--color-gray-200)}.border-green-200{border-color:var(--color-green-200)}.border-input{border-color:var(--input)}.border-primary{border-color:var(--primary)}.border-red-200{border-color:var(--color-red-200)}.border-red-500{border-color:var(--color-red-500)}.border-transparent{border-color:#0000}.border-white{border-color:var(--color-white)}.border-yellow-200{border-color:var(--color-yellow-200)}.border-t-transparent{border-top-color:#0000}.bg-background{background-color:var(--background)}.bg-black{background-color:var(--color-black)}.bg-black\/0{background-color:#0000}@supports (color:color-mix(in lab,red,red)){.bg-black\/0{background-color:color-mix(in oklab,var(--color-black)0%,transparent)}}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-black\/80{background-color:#000c}@supports (color:color-mix(in lab,red,red)){.bg-black\/80{background-color:color-mix(in oklab,var(--color-black)80%,transparent)}}.bg-black\/90{background-color:#000000e6}@supports (color:color-mix(in lab,red,red)){.bg-black\/90{background-color:color-mix(in oklab,var(--color-black)90%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-300{background-color:var(--color-blue-300)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-border{background-color:var(--border)}.bg-card{background-color:var(--card)}.bg-cyan-300{background-color:var(--color-cyan-300)}.bg-cyan-500{background-color:var(--color-cyan-500)}.bg-destructive{background-color:var(--destructive)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-800{background-color:var(--color-gray-800)}.bg-green-100{background-color:var(--color-green-100)}.bg-green-400{background-color:var(--color-green-400)}.bg-green-600{background-color:var(--color-green-600)}.bg-orange-400{background-color:var(--color-orange-400)}.bg-popover{background-color:var(--popover)}.bg-primary{background-color:var(--primary)}.bg-purple-300{background-color:var(--color-purple-300)}.bg-purple-400{background-color:var(--color-purple-400)}.bg-purple-500{background-color:var(--color-purple-500)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-100{background-color:var(--color-red-100)}.bg-red-400{background-color:var(--color-red-400)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-600{background-color:var(--color-red-600)}.bg-secondary,.bg-secondary\/50{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.bg-secondary\/50{background-color:color-mix(in oklab,var(--secondary)50%,transparent)}}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\/20{background-color:#fff3}@supports (color:color-mix(in lab,red,red)){.bg-white\/20{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.bg-yellow-100{background-color:var(--color-yellow-100)}.bg-yellow-300{background-color:var(--color-yellow-300)}.bg-yellow-500{background-color:var(--color-yellow-500)}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-1\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-5{padding-block:calc(var(--spacing)*5)}.py-6{padding-block:calc(var(--spacing)*6)}.py-8{padding-block:calc(var(--spacing)*8)}.pt-0{padding-top:calc(var(--spacing)*0)}.pt-2{padding-top:calc(var(--spacing)*2)}.pt-4{padding-top:calc(var(--spacing)*4)}.pr-2{padding-right:calc(var(--spacing)*2)}.pr-10{padding-right:calc(var(--spacing)*10)}.pb-0{padding-bottom:calc(var(--spacing)*0)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.pl-4{padding-left:calc(var(--spacing)*4)}.pl-5{padding-left:calc(var(--spacing)*5)}.pl-8{padding-left:calc(var(--spacing)*8)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-none{--tw-leading:1;line-height:1}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-black{color:var(--color-black)}.text-blue-300{color:var(--color-blue-300)}.text-blue-400{color:var(--color-blue-400)}.text-blue-500{color:var(--color-blue-500)}.text-blue-700{color:var(--color-blue-700)}.text-blue-800{color:var(--color-blue-800)}.text-card-foreground{color:var(--card-foreground)}.text-current{color:currentColor}.text-cyan-300{color:var(--color-cyan-300)}.text-cyan-500{color:var(--color-cyan-500)}.text-destructive{color:var(--destructive)}.text-destructive-foreground{color:var(--destructive-foreground)}.text-foreground{color:var(--foreground)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-green-400{color:var(--color-green-400)}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-muted-foreground{color:var(--muted-foreground)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-purple-300{color:var(--color-purple-300)}.text-purple-500{color:var(--color-purple-500)}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-red-800{color:var(--color-red-800)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-white{color:var(--color-white)}.text-yellow-300{color:var(--color-yellow-300)}.text-yellow-500{color:var(--color-yellow-500)}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-100{opacity:1}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-inner{--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.select-none{-webkit-user-select:none;user-select:none}.group-data-\[state\=open\]\:rotate-180:is(:where(.group)[data-state=open] *){rotate:180deg}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-70:is(:where(.peer):disabled~*){opacity:.7}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\:text-foreground::file-selector-button{color:var(--foreground)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}@media (hover:hover){.hover\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\:scale-\[1\.01\]:hover{scale:1.01}.hover\:scale-\[1\.02\]:hover{scale:1.02}.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:bg-destructive:hover,.hover\:bg-destructive\/80:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/80:hover{background-color:color-mix(in oklab,var(--destructive)80%,transparent)}}.hover\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\:bg-primary\/80:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/80:hover{background-color:color-mix(in oklab,var(--primary)80%,transparent)}}.hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}.hover\:bg-secondary:hover,.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,var(--secondary)80%,transparent)}}.hover\:bg-transparent:hover{background-color:#0000}.hover\:bg-white\/10:hover{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.hover\:bg-white\/10:hover{background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.hover\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\:text-destructive-foreground:hover{color:var(--destructive-foreground)}.hover\:text-gray-700:hover{color:var(--color-gray-700)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.focus\:scale-\[1\.01\]:focus{scale:1.01}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-ring:focus{--tw-ring-color:var(--ring)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:var(--ring)}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color:var(--background)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\:scale-\[0\.98\]:active{scale:.98}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.data-\[disabled\=true\]\:pointer-events-none[data-disabled=true]{pointer-events:none}.data-\[disabled\=true\]\:opacity-50[data-disabled=true]{opacity:.5}.data-\[selected\=true\]\:bg-accent[data-selected=true]{background-color:var(--accent)}.data-\[selected\=true\]\:text-accent-foreground[data-selected=true]{color:var(--accent-foreground)}:is(.\*\*\:data-\[slot\=command-input-wrapper\]\:h-12 *)[data-slot=command-input-wrapper]{height:calc(var(--spacing)*12)}.data-\[state\=checked\]\:translate-x-5[data-state=checked]{--tw-translate-x:calc(var(--spacing)*5);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:var(--primary)}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:var(--accent)}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:var(--muted-foreground)}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked]{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:var(--input)}@media (min-width:40rem){.sm\:col-span-2{grid-column:span 2/span 2}.sm\:max-w-2xl{max-width:var(--container-2xl)}.sm\:max-w-5xl{max-width:var(--container-5xl)}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}:where(.sm\:space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}}@media (min-width:48rem){.md\:max-w-6xl{max-width:var(--container-6xl)}.md\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media (min-width:64rem){.lg\:max-w-7xl{max-width:var(--container-7xl)}}.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]{padding-inline:calc(var(--spacing)*2)}.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]{padding-block:calc(var(--spacing)*1.5)}.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.\[\&_\[cmdk-group-heading\]\]\:text-muted-foreground [cmdk-group-heading]{color:var(--muted-foreground)}.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]{padding-inline:calc(var(--spacing)*2)}.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:calc(var(--spacing)*0)}.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg{height:calc(var(--spacing)*5)}.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg{width:calc(var(--spacing)*5)}.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]{height:calc(var(--spacing)*12)}.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]{padding-inline:calc(var(--spacing)*2)}.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]{padding-block:calc(var(--spacing)*3)}.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg{height:calc(var(--spacing)*5)}.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg{width:calc(var(--spacing)*5)}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\&_svg\:not\(\[class\*\=\'text-\'\]\)\]\:text-muted-foreground svg:not([class*=text-]){color:var(--muted-foreground)}}:root{--radius:.625rem;--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--destructive-foreground:oklch(98.5% 0 0);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(70.8% 0 0);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08);--sidebar:oklch(98.5% 0 0);--sidebar-foreground:oklch(14.5% 0 0);--sidebar-primary:oklch(20.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(97% 0 0);--sidebar-accent-foreground:oklch(20.5% 0 0);--sidebar-border:oklch(92.2% 0 0);--sidebar-ring:oklch(70.8% 0 0)}.dark{--background:oklch(14.5% 0 0);--foreground:oklch(98.5% 0 0);--card:oklch(20.5% 0 0);--card-foreground:oklch(98.5% 0 0);--popover:oklch(20.5% 0 0);--popover-foreground:oklch(98.5% 0 0);--primary:oklch(92.2% 0 0);--primary-foreground:oklch(20.5% 0 0);--secondary:oklch(26.9% 0 0);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(26.9% 0 0);--muted-foreground:oklch(70.8% 0 0);--accent:oklch(26.9% 0 0);--accent-foreground:oklch(98.5% 0 0);--destructive:oklch(70.4% .191 22.216);--destructive-foreground:oklch(98.5% 0 0);--border:oklch(100% 0 0/.1);--input:oklch(100% 0 0/.15);--ring:oklch(55.6% 0 0);--chart-1:oklch(48.8% .243 264.376);--chart-2:oklch(69.6% .17 162.48);--chart-3:oklch(76.9% .188 70.08);--chart-4:oklch(62.7% .265 303.9);--chart-5:oklch(64.5% .246 16.439);--sidebar:oklch(20.5% 0 0);--sidebar-foreground:oklch(98.5% 0 0);--sidebar-primary:oklch(48.8% .243 264.376);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(26.9% 0 0);--sidebar-accent-foreground:oklch(98.5% 0 0);--sidebar-border:oklch(100% 0 0/.1);--sidebar-ring:oklch(55.6% 0 0)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes scaleIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes slideIn{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}.animate-fade-in{animation:fadeIn .2s ease-out forwards}.animate-scale-in{animation:scaleIn .2s cubic-bezier(.34,1.56,.64,1) forwards}.animate-slide-in{animation:slideIn .3s cubic-bezier(.34,1.56,.64,1) forwards}.transition-all-ease{transition:all .2s cubic-bezier(.34,1.56,.64,1)}</style>
321
+ `},Qy=KA(ZA)(Ux),JA={config:QA},WA=function(){for(var a=arguments.length,l=new Array(a),i=0;i<a;i++)l[i]=arguments[i];return function(s){return l.reduceRight(function(c,f){return f(c)},s)}};function Px(n,a){return Object.keys(a).forEach(function(l){a[l]instanceof Object&&n[l]&&Object.assign(a[l],Px(n[l],a[l]))}),Yy(Yy({},n),a)}var eT={type:"cancelation",msg:"operation is manually canceled"};function Cd(n){var a=!1,l=new Promise(function(i,s){n.then(function(c){return a?s(eT):i(c)}),n.catch(s)});return l.cancel=function(){return a=!0},l}var tT=YA.create({config:GA,isInitialized:!1,resolve:null,reject:null,monaco:null}),Hx=NA(tT,2),jo=Hx[0],Yc=Hx[1];function nT(n){var a=JA.config(n),l=a.monaco,i=CA(a,["monaco"]);Yc(function(s){return{config:Px(s.config,i),monaco:l}})}function aT(){var n=jo(function(a){var l=a.monaco,i=a.isInitialized,s=a.resolve;return{monaco:l,isInitialized:i,resolve:s}});if(!n.isInitialized){if(Yc({isInitialized:!0}),n.monaco)return n.resolve(n.monaco),Cd(Nd);if(window.monaco&&window.monaco.editor)return Bx(window.monaco),n.resolve(window.monaco),Cd(Nd);WA(rT,iT)(oT)}return Cd(Nd)}function rT(n){return document.body.appendChild(n)}function lT(n){var a=document.createElement("script");return n&&(a.src=n),a}function iT(n){var a=jo(function(i){var s=i.config,c=i.reject;return{config:s,reject:c}}),l=lT("".concat(a.config.paths.vs,"/loader.js"));return l.onload=function(){return n()},l.onerror=a.reject,l}function oT(){var n=jo(function(l){var i=l.config,s=l.resolve,c=l.reject;return{config:i,resolve:s,reject:c}}),a=window.require;a.config(n.config),a(["vs/editor/editor.main"],function(l){Bx(l),n.resolve(l)},function(l){n.reject(l)})}function Bx(n){jo().monaco||Yc({monaco:n})}function sT(){return jo(function(n){var a=n.monaco;return a})}var Nd=new Promise(function(n,a){return Yc({resolve:n,reject:a})}),$x={config:nT,init:aT,__getMonacoInstance:sT},cT={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Rd=cT,uT={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},fT=uT;function dT({children:n}){return mt.createElement("div",{style:fT.container},n)}var hT=dT,mT=hT;function pT({width:n,height:a,isEditorReady:l,loading:i,_ref:s,className:c,wrapperProps:f}){return mt.createElement("section",{style:{...Rd.wrapper,width:n,height:a},...f},!l&&mt.createElement(mT,null,i),mt.createElement("div",{ref:s,style:{...Rd.fullWidth,...!l&&Rd.hide},className:c}))}var gT=pT,Vx=y.memo(gT);function vT(n){y.useEffect(n,[])}var qx=vT;function yT(n,a,l=!0){let i=y.useRef(!0);y.useEffect(i.current||!l?()=>{i.current=!1}:n,a)}var mn=yT;function mo(){}function Gl(n,a,l,i){return bT(n,i)||xT(n,a,l,i)}function bT(n,a){return n.editor.getModel(Fx(n,a))}function xT(n,a,l,i){return n.editor.createModel(a,l,i?Fx(n,i):void 0)}function Fx(n,a){return n.Uri.parse(a)}function wT({original:n,modified:a,language:l,originalLanguage:i,modifiedLanguage:s,originalModelPath:c,modifiedModelPath:f,keepCurrentOriginalModel:h=!1,keepCurrentModifiedModel:p=!1,theme:m="light",loading:v="Loading...",options:b={},height:w="100%",width:S="100%",className:C,wrapperProps:E={},beforeMount:j=mo,onMount:R=mo}){let[L,k]=y.useState(!1),[H,M]=y.useState(!0),N=y.useRef(null),B=y.useRef(null),J=y.useRef(null),te=y.useRef(R),ae=y.useRef(j),re=y.useRef(!1);qx(()=>{let ee=$x.init();return ee.then(A=>(B.current=A)&&M(!1)).catch(A=>A?.type!=="cancelation"&&console.error("Monaco initialization: error:",A)),()=>N.current?Q():ee.cancel()}),mn(()=>{if(N.current&&B.current){let ee=N.current.getOriginalEditor(),A=Gl(B.current,n||"",i||l||"text",c||"");A!==ee.getModel()&&ee.setModel(A)}},[c],L),mn(()=>{if(N.current&&B.current){let ee=N.current.getModifiedEditor(),A=Gl(B.current,a||"",s||l||"text",f||"");A!==ee.getModel()&&ee.setModel(A)}},[f],L),mn(()=>{let ee=N.current.getModifiedEditor();ee.getOption(B.current.editor.EditorOption.readOnly)?ee.setValue(a||""):a!==ee.getValue()&&(ee.executeEdits("",[{range:ee.getModel().getFullModelRange(),text:a||"",forceMoveMarkers:!0}]),ee.pushUndoStop())},[a],L),mn(()=>{N.current?.getModel()?.original.setValue(n||"")},[n],L),mn(()=>{let{original:ee,modified:A}=N.current.getModel();B.current.editor.setModelLanguage(ee,i||l||"text"),B.current.editor.setModelLanguage(A,s||l||"text")},[l,i,s],L),mn(()=>{B.current?.editor.setTheme(m)},[m],L),mn(()=>{N.current?.updateOptions(b)},[b],L);let fe=y.useCallback(()=>{if(!B.current)return;ae.current(B.current);let ee=Gl(B.current,n||"",i||l||"text",c||""),A=Gl(B.current,a||"",s||l||"text",f||"");N.current?.setModel({original:ee,modified:A})},[l,a,s,n,i,c,f]),de=y.useCallback(()=>{!re.current&&J.current&&(N.current=B.current.editor.createDiffEditor(J.current,{automaticLayout:!0,...b}),fe(),B.current?.editor.setTheme(m),k(!0),re.current=!0)},[b,m,fe]);y.useEffect(()=>{L&&te.current(N.current,B.current)},[L]),y.useEffect(()=>{!H&&!L&&de()},[H,L,de]);function Q(){let ee=N.current?.getModel();h||ee?.original?.dispose(),p||ee?.modified?.dispose(),N.current?.dispose()}return mt.createElement(Vx,{width:S,height:w,isEditorReady:L,loading:v,_ref:J,className:C,wrapperProps:E})}var ST=wT;y.memo(ST);function _T(n){let a=y.useRef();return y.useEffect(()=>{a.current=n},[n]),a.current}var ET=_T,ac=new Map;function CT({defaultValue:n,defaultLanguage:a,defaultPath:l,value:i,language:s,path:c,theme:f="light",line:h,loading:p="Loading...",options:m={},overrideServices:v={},saveViewState:b=!0,keepCurrentModel:w=!1,width:S="100%",height:C="100%",className:E,wrapperProps:j={},beforeMount:R=mo,onMount:L=mo,onChange:k,onValidate:H=mo}){let[M,N]=y.useState(!1),[B,J]=y.useState(!0),te=y.useRef(null),ae=y.useRef(null),re=y.useRef(null),fe=y.useRef(L),de=y.useRef(R),Q=y.useRef(),ee=y.useRef(i),A=ET(c),X=y.useRef(!1),V=y.useRef(!1);qx(()=>{let G=$x.init();return G.then(U=>(te.current=U)&&J(!1)).catch(U=>U?.type!=="cancelation"&&console.error("Monaco initialization: error:",U)),()=>ae.current?O():G.cancel()}),mn(()=>{let G=Gl(te.current,n||i||"",a||s||"",c||l||"");G!==ae.current?.getModel()&&(b&&ac.set(A,ae.current?.saveViewState()),ae.current?.setModel(G),b&&ae.current?.restoreViewState(ac.get(c)))},[c],M),mn(()=>{ae.current?.updateOptions(m)},[m],M),mn(()=>{!ae.current||i===void 0||(ae.current.getOption(te.current.editor.EditorOption.readOnly)?ae.current.setValue(i):i!==ae.current.getValue()&&(V.current=!0,ae.current.executeEdits("",[{range:ae.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),ae.current.pushUndoStop(),V.current=!1))},[i],M),mn(()=>{let G=ae.current?.getModel();G&&s&&te.current?.editor.setModelLanguage(G,s)},[s],M),mn(()=>{h!==void 0&&ae.current?.revealLine(h)},[h],M),mn(()=>{te.current?.editor.setTheme(f)},[f],M);let ye=y.useCallback(()=>{if(!(!re.current||!te.current)&&!X.current){de.current(te.current);let G=c||l,U=Gl(te.current,i||n||"",a||s||"",G||"");ae.current=te.current?.editor.create(re.current,{model:U,automaticLayout:!0,...m},v),b&&ae.current.restoreViewState(ac.get(G)),te.current.editor.setTheme(f),h!==void 0&&ae.current.revealLine(h),N(!0),X.current=!0}},[n,a,l,i,s,c,m,v,b,f,h]);y.useEffect(()=>{M&&fe.current(ae.current,te.current)},[M]),y.useEffect(()=>{!B&&!M&&ye()},[B,M,ye]),ee.current=i,y.useEffect(()=>{M&&k&&(Q.current?.dispose(),Q.current=ae.current?.onDidChangeModelContent(G=>{V.current||k(ae.current.getValue(),G)}))},[M,k]),y.useEffect(()=>{if(M){let G=te.current.editor.onDidChangeMarkers(U=>{let K=ae.current.getModel()?.uri;if(K&&U.find(P=>P.path===K.path)){let P=te.current.editor.getModelMarkers({resource:K});H?.(P)}});return()=>{G?.dispose()}}return()=>{}},[M,H]);function O(){Q.current?.dispose(),w?b&&ac.set(c,ae.current.saveViewState()):ae.current.getModel()?.dispose(),ae.current.dispose()}return mt.createElement(Vx,{width:S,height:C,isEditorReady:M,loading:p,_ref:re,className:E,wrapperProps:j})}var NT=CT,RT=y.memo(NT),Yx=RT;function jT({open:n,onOpenChange:a,showToast:l}){const{t:i}=Oa(),{config:s}=Wr(),[c,f]=y.useState(""),[h,p]=y.useState(!1),[m,v]=y.useState(!1),[b,w]=y.useState(!1),S=y.useRef(null);y.useEffect(()=>{s&&n&&f(JSON.stringify(s,null,2))},[s,n]),y.useEffect(()=>{if(n)v(!0),requestAnimationFrame(()=>{w(!0)});else{w(!1);const R=setTimeout(()=>{v(!1)},300);return()=>clearTimeout(R)}},[n]);const C=(R,L,k)=>{if(R&&typeof R=="object"&&"success"in R){const H=R;return H.success?(l&&l(H.message||L,"success"),!0):(l&&l(H.message||k,"error"),!1)}else return l&&l(L,"success"),!0},E=async()=>{if(c)try{p(!0);const R=JSON.parse(c),L=await Pt.updateConfig(R);C(L,i("app.config_saved_success"),i("app.config_saved_failed"))&&a(!1)}catch(R){console.error("Failed to save config:",R),l&&l(i("app.config_saved_failed")+": "+R.message,"error")}finally{p(!1)}},j=async()=>{if(c)try{p(!0);const R=JSON.parse(c),L=await Pt.updateConfig(R);if(C(L,i("app.config_saved_success"),i("app.config_saved_failed"))){const H=await Pt.restartService();C(H,i("app.config_saved_restart_success"),i("app.config_saved_restart_failed")),a(!1)}}catch(R){console.error("Failed to save config and restart:",R),l&&l(i("app.config_saved_restart_failed")+": "+R.message,"error")}finally{p(!1)}};return!m&&!n?null:g.jsxs(g.Fragment,{children:[(m||n)&&g.jsx("div",{className:`fixed inset-0 z-50 transition-all duration-300 ease-out ${b&&n?"bg-black/50 opacity-100":"bg-black/0 opacity-0 pointer-events-none"}`,onClick:()=>a(!1)}),g.jsxs("div",{ref:S,className:`fixed bottom-0 left-0 right-0 z-50 flex flex-col bg-white shadow-2xl transition-all duration-300 ease-out transform ${b&&n?"translate-y-0":"translate-y-full"}`,style:{height:"100vh",maxHeight:"100vh"},children:[g.jsxs("div",{className:"flex items-center justify-between border-b p-4",children:[g.jsx("h2",{className:"text-lg font-semibold",children:i("json_editor.title")}),g.jsxs("div",{className:"flex gap-2",children:[g.jsxs(Ce,{variant:"outline",size:"sm",onClick:()=>a(!1),disabled:h,children:[g.jsx(Yr,{className:"h-4 w-4 mr-2"}),i("json_editor.cancel")]}),g.jsxs(Ce,{variant:"outline",size:"sm",onClick:E,disabled:h,children:[g.jsx(hb,{className:"h-4 w-4 mr-2"}),i(h?"json_editor.saving":"json_editor.save")]}),g.jsxs(Ce,{variant:"default",size:"sm",onClick:j,disabled:h,children:[g.jsx(bh,{className:"h-4 w-4 mr-2"}),i(h?"json_editor.saving":"json_editor.save_and_restart")]})]})]}),g.jsx("div",{className:"flex-1 min-h-0 bg-gray-50",children:g.jsx(Yx,{height:"100%",defaultLanguage:"json",value:c,onChange:R=>f(R||""),theme:"vs",options:{minimap:{enabled:!0},fontSize:14,scrollBeyondLastLine:!1,automaticLayout:!0,wordWrap:"on",formatOnPaste:!0,formatOnType:!0,suggest:{showKeywords:!0,showSnippets:!0}}})})]})]})}function OT({open:n,onOpenChange:a,showToast:l}){const{t:i}=Oa(),[s,c]=y.useState([]),[f,h]=y.useState([]),[p,m]=y.useState(null),[v,b]=y.useState(!1),[w,S]=y.useState(!1),[C,E]=y.useState(!1),[j,R]=y.useState(!1),[L,k]=y.useState(!1),[H,M]=y.useState(null),[N,B]=y.useState(null),J=y.useRef(null),te=y.useRef(null),ae=y.useRef(null);y.useEffect(()=>{n&&fe()},[n]);const re=()=>{const P=`
322
+ // 日志聚合Web Worker
323
+ self.onmessage = function(event) {
324
+ const { type, data } = event.data;
325
+
326
+ if (type === 'groupLogsByReqId') {
327
+ try {
328
+ const { logs } = data;
329
+
330
+ // 按reqId聚合日志
331
+ const groupedLogs = {};
332
+
333
+ logs.forEach((log, index) => {
334
+ log = JSON.parse(log);
335
+ let reqId = log.reqId || 'no-req-id';
336
+
337
+ if (!groupedLogs[reqId]) {
338
+ groupedLogs[reqId] = [];
339
+ }
340
+ groupedLogs[reqId].push(log);
341
+ });
342
+
343
+ // 按时间戳排序每个组的日志
344
+ Object.keys(groupedLogs).forEach(reqId => {
345
+ groupedLogs[reqId].sort((a, b) => a.time - b.time);
346
+ });
347
+
348
+ // 提取model信息
349
+ const extractModelInfo = (reqId) => {
350
+ const logGroup = groupedLogs[reqId];
351
+ for (const log of logGroup) {
352
+ try {
353
+ // 尝试从message字段解析JSON
354
+ if (log.type === 'request body' && log.data && log.data.model) {
355
+ return log.data.model;
356
+ }
357
+ } catch (e) {
358
+ // 解析失败,继续尝试下一条日志
359
+ }
360
+ }
361
+ return undefined;
362
+ };
363
+
364
+ // 生成摘要信息
365
+ const summary = {
366
+ totalRequests: Object.keys(groupedLogs).length,
367
+ totalLogs: logs.length,
368
+ requests: Object.keys(groupedLogs).map(reqId => ({
369
+ reqId,
370
+ logCount: groupedLogs[reqId].length,
371
+ firstLog: groupedLogs[reqId][0]?.time,
372
+ lastLog: groupedLogs[reqId][groupedLogs[reqId].length - 1]?.time,
373
+ model: extractModelInfo(reqId)
374
+ }))
375
+ };
376
+
377
+ const response = {
378
+ grouped: true,
379
+ groups: groupedLogs,
380
+ summary
381
+ };
382
+
383
+ // 发送结果回主线程
384
+ self.postMessage({
385
+ type: 'groupLogsResult',
386
+ data: response
387
+ });
388
+ } catch (error) {
389
+ // 发送错误回主线程
390
+ self.postMessage({
391
+ type: 'error',
392
+ error: error instanceof Error ? error.message : 'Unknown error occurred'
393
+ });
394
+ }
395
+ }
396
+ };
397
+ `,oe=new Blob([P],{type:"application/javascript"}),me=URL.createObjectURL(oe);return new Worker(me)};y.useEffect(()=>{if(typeof Worker<"u")try{ae.current=re(),ae.current.onmessage=P=>{const{type:oe,data:me,error:ve}=P.data;oe==="groupLogsResult"?M(me):oe==="error"&&(console.error("Worker error:",ve),l&&l(i("log_viewer.worker_error")+": "+ve,"error"))},ae.current.onerror=P=>{console.error("Worker error:",P),l&&l(i("log_viewer.worker_init_failed"),"error")}}catch(P){console.error("Failed to create worker:",P),l&&l(i("log_viewer.worker_init_failed"),"error")}return()=>{ae.current&&(ae.current.terminate(),ae.current=null)}},[l,i]),y.useEffect(()=>(j&&n&&p?te.current=setInterval(()=>{de()},5e3):te.current&&clearInterval(te.current),()=>{te.current&&clearInterval(te.current)}),[j,n,p]),y.useEffect(()=>{p&&n&&(c([]),de())},[p,n]),y.useEffect(()=>{if(n)S(!0),requestAnimationFrame(()=>{E(!0)});else{E(!1);const P=setTimeout(()=>{S(!1)},300);return()=>clearTimeout(P)}},[n]);const fe=async()=>{try{b(!0);const P=await Pt.getLogFiles();P&&Array.isArray(P)?(h(P),m(null),c([])):(h([]),l&&l(i("log_viewer.no_log_files_available"),"warning"))}catch(P){console.error("Failed to load log files:",P),l&&l(i("log_viewer.load_files_failed")+": "+P.message,"error")}finally{b(!1)}},de=async()=>{if(p)try{b(!0),M(null),B(null);const P=await Pt.getLogs(p.path);P&&Array.isArray(P)?(c(P),L&&ae.current?ae.current.postMessage({type:"groupLogsByReqId",data:{logs:P}}):M(null)):(c([]),M(null),l&&l(i("log_viewer.no_logs_available"),"warning"))}catch(P){console.error("Failed to load logs:",P),l&&l(i("log_viewer.load_failed")+": "+P.message,"error")}finally{b(!1)}},Q=async()=>{if(p)try{await Pt.clearLogs(p.path),c([]),l&&l(i("log_viewer.logs_cleared"),"success")}catch(P){console.error("Failed to clear logs:",P),l&&l(i("log_viewer.clear_failed")+": "+P.message,"error")}},ee=P=>{m(P),R(!1)},A=()=>{const P=!L;k(P),P&&p&&s.length>0?ae.current&&ae.current.postMessage({type:"groupLogsByReqId",data:{logs:s}}):P||(M(null),B(null))},X=P=>{B(P)},V=()=>{if(!p||s.length===0)return;const P=s.join(`
398
+ `),oe=new Blob([P],{type:"text/plain"}),me=URL.createObjectURL(oe),ve=document.createElement("a");ve.href=me,ve.download=`${p.name}-${new Date().toISOString().split("T")[0]}.txt`,document.body.appendChild(ve),ve.click(),document.body.removeChild(ve),URL.revokeObjectURL(me),l&&l(i("log_viewer.logs_downloaded"),"success")},ye=P=>{if(P===0)return"0 Bytes";const oe=1024,me=["Bytes","KB","MB","GB"],ve=Math.floor(Math.log(P)/Math.log(oe));return parseFloat((P/Math.pow(oe,ve)).toFixed(2))+" "+me[ve]},O=P=>new Date(P).toLocaleString(),G=()=>{const P=[{id:"root",label:i("log_viewer.title"),onClick:()=>{m(null),R(!1),c([]),M(null),B(null),k(!1)}}];return p&&P.push({id:"file",label:p.name,onClick:()=>{L?B(null):(B(null),M(null),k(!1))}}),N&&P.push({id:"req",label:`${i("log_viewer.request")} ${N}`,onClick:()=>{}}),P},U=()=>N?()=>{B(null)}:p?()=>{m(null),R(!1),c([]),M(null),B(null),k(!1)}:null,K=()=>{if(L&&H&&N&&H.groups[N]){const P=H.groups[N];return console.log(P),P.map(oe=>JSON.stringify(oe)).join(`
399
+ `)}return s.join(`
400
+ `)};return!w&&!n?null:g.jsxs(g.Fragment,{children:[(w||n)&&g.jsx("div",{className:`fixed inset-0 z-50 transition-all duration-300 ease-out ${C&&n?"bg-black/50 opacity-100":"bg-black/0 opacity-0 pointer-events-none"}`,onClick:()=>a(!1)}),g.jsxs("div",{ref:J,className:`fixed bottom-0 left-0 right-0 z-50 flex flex-col bg-white shadow-2xl transition-all duration-300 ease-out transform ${C&&n?"translate-y-0":"translate-y-full"}`,style:{height:"100vh",maxHeight:"100vh"},children:[g.jsxs("div",{className:"flex items-center justify-between border-b p-4",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[U()&&g.jsxs(Ce,{variant:"ghost",size:"sm",onClick:U(),children:[g.jsx(hN,{className:"h-4 w-4 mr-2"}),i("log_viewer.back")]}),g.jsx("nav",{className:"flex items-center space-x-1 text-sm",children:G().map((P,oe)=>g.jsxs(mt.Fragment,{children:[oe>0&&g.jsx("span",{className:"text-gray-400 mx-1",children:"/"}),oe===G().length-1?g.jsx("span",{className:"text-gray-900 font-medium",children:P.label}):g.jsx("button",{onClick:P.onClick,className:"text-blue-600 hover:text-blue-800 transition-colors",children:P.label})]},P.id))})]}),g.jsxs("div",{className:"flex gap-2",children:[p&&g.jsxs(g.Fragment,{children:[g.jsxs(Ce,{variant:"ghost",size:"sm",onClick:A,className:L?"bg-blue-100 text-blue-700":"",children:[g.jsx(UN,{className:"h-4 w-4 mr-2"}),i(L?"log_viewer.grouped_on":"log_viewer.group_by_req_id")]}),g.jsxs(Ce,{variant:"ghost",size:"sm",onClick:()=>R(!j),className:j?"bg-blue-100 text-blue-700":"",children:[g.jsx(bh,{className:`h-4 w-4 mr-2 ${j?"animate-spin":""}`}),i(j?"log_viewer.auto_refresh_on":"log_viewer.auto_refresh_off")]}),g.jsxs(Ce,{variant:"outline",size:"sm",onClick:V,disabled:s.length===0,children:[g.jsx(EN,{className:"h-4 w-4 mr-2"}),i("log_viewer.download")]}),g.jsxs(Ce,{variant:"outline",size:"sm",onClick:Q,disabled:s.length===0,children:[g.jsx(sr,{className:"h-4 w-4 mr-2"}),i("log_viewer.clear")]})]}),g.jsxs(Ce,{variant:"outline",size:"sm",onClick:()=>a(!1),children:[g.jsx(Yr,{className:"h-4 w-4 mr-2"}),i("log_viewer.close")]})]})]}),g.jsx("div",{className:"flex-1 min-h-0 bg-gray-50",children:v?g.jsx("div",{className:"flex items-center justify-center h-full",children:g.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600"})}):p?g.jsx(g.Fragment,{children:L&&H&&!N?g.jsxs("div",{className:"flex flex-col h-full p-6",children:[g.jsxs("div",{className:"mb-4 flex-shrink-0",children:[g.jsx("h3",{className:"text-lg font-medium mb-2",children:i("log_viewer.request_groups")}),g.jsxs("p",{className:"text-sm text-gray-600",children:[i("log_viewer.total_requests"),": ",H.summary.totalRequests," |",i("log_viewer.total_logs"),": ",H.summary.totalLogs]})]}),g.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto space-y-3",children:H.summary.requests.map(P=>g.jsxs("div",{className:"border rounded-lg p-4 hover:bg-gray-50 cursor-pointer transition-colors",onClick:()=>X(P.reqId),children:[g.jsxs("div",{className:"flex items-center justify-between mb-2",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(gd,{className:"h-5 w-5 text-blue-600"}),g.jsx("span",{className:"font-medium text-sm",children:P.reqId}),P.model&&g.jsx("span",{className:"text-xs bg-green-100 text-green-800 px-2 py-1 rounded",children:P.model})]}),g.jsxs("span",{className:"text-xs bg-blue-100 text-blue-800 px-2 py-1 rounded",children:[P.logCount," ",i("log_viewer.logs")]})]}),g.jsxs("div",{className:"text-xs text-gray-500 space-y-1",children:[g.jsxs("div",{children:[i("log_viewer.first_log"),": ",O(P.firstLog)]}),g.jsxs("div",{children:[i("log_viewer.last_log"),": ",O(P.lastLog)]})]})]},P.reqId))})]}):g.jsx(Yx,{height:"100%",defaultLanguage:"json",value:K(),theme:"vs",options:{minimap:{enabled:!0},fontSize:14,scrollBeyondLastLine:!1,automaticLayout:!0,wordWrap:"on",readOnly:!0,lineNumbers:"on",folding:!0,renderWhitespace:"all"}})}):g.jsxs("div",{className:"p-6",children:[g.jsx("h3",{className:"text-lg font-medium mb-4",children:i("log_viewer.select_file")}),f.length===0?g.jsxs("div",{className:"text-gray-500 text-center py-8",children:[g.jsx(gd,{className:"h-12 w-12 mx-auto mb-4 text-gray-400"}),g.jsx("p",{children:i("log_viewer.no_log_files_available")})]}):g.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:f.map(P=>g.jsxs("div",{className:"border rounded-lg p-4 hover:bg-gray-50 cursor-pointer transition-colors",onClick:()=>ee(P),children:[g.jsx("div",{className:"flex items-start justify-between mb-2",children:g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(gd,{className:"h-5 w-5 text-blue-600"}),g.jsx("span",{className:"font-medium text-sm",children:P.name})]})}),g.jsxs("div",{className:"text-xs text-gray-500 space-y-1",children:[g.jsx("div",{children:ye(P.size)}),g.jsx("div",{children:O(P.lastModified)})]})]},P.path))})]})})]})]})}function AT({message:n,type:a,onClose:l}){y.useEffect(()=>{const c=setTimeout(()=>{l()},3e3);return()=>clearTimeout(c)},[l]);const i=()=>{switch(a){case"success":return g.jsx(wN,{className:"h-5 w-5 text-green-500"});case"error":return g.jsx(db,{className:"h-5 w-5 text-red-500"});case"warning":return g.jsx(vN,{className:"h-5 w-5 text-yellow-500"});default:return null}},s=()=>{switch(a){case"success":return"bg-green-100 border-green-200";case"error":return"bg-red-100 border-red-200";case"warning":return"bg-yellow-100 border-yellow-200";default:return"bg-gray-100 border-gray-200"}};return g.jsxs("div",{className:`fixed top-4 right-4 z-50 flex items-center justify-between p-4 rounded-lg border shadow-lg ${s()} transition-all duration-300 ease-in-out`,children:[g.jsxs("div",{className:"flex items-center space-x-2",children:[i(),g.jsx("span",{className:"text-sm font-medium",children:n})]}),g.jsx("button",{onClick:l,className:"ml-4 text-gray-500 hover:text-gray-700 focus:outline-none",children:g.jsx(Yr,{className:"h-4 w-4"})})]})}function TT(){const{t:n,i18n:a}=Oa(),l=Rc(),{config:i,error:s}=Wr(),[c,f]=y.useState(!1),[h,p]=y.useState(!1),[m,v]=y.useState(!1),[b,w]=y.useState(!0),[S,C]=y.useState(null),[E,j]=y.useState(!1),[R,L]=y.useState(!1),[k,H]=y.useState(null),[M,N]=y.useState(!1),[B,J]=y.useState(!1),te=y.useRef(!1),ae=async()=>{if(!i){C({message:n("app.config_missing"),type:"error"});return}try{const Q=await Pt.updateConfig(i);if(console.log("Config saved successfully"),Q&&typeof Q=="object"&&"success"in Q){const ee=Q;ee.success?C({message:ee.message||n("app.config_saved_success"),type:"success"}):C({message:ee.message||n("app.config_saved_failed"),type:"error"})}else C({message:n("app.config_saved_success"),type:"success"})}catch(Q){console.error("Failed to save config:",Q),C({message:n("app.config_saved_failed")+": "+Q.message,type:"error"})}},re=async()=>{if(!i){C({message:n("app.config_missing"),type:"error"});return}try{const Q=await Pt.updateConfig(i);let ee=!0;if(Q&&typeof Q=="object"&&"success"in Q){const A=Q;A.success||(ee=!1,C({message:A.message||n("app.config_saved_failed"),type:"error"}))}if(ee){const A=await Pt.restartService();if(console.log("Config saved and service restarted successfully"),A&&typeof A=="object"&&"success"in A){const X=A;X.success&&C({message:X.message||n("app.config_saved_restart_success"),type:"success"})}else C({message:n("app.config_saved_restart_success"),type:"success"})}}catch(Q){console.error("Failed to save config and restart:",Q),C({message:n("app.config_saved_restart_failed")+": "+Q.message,type:"error"})}},fe=y.useCallback(async(Q=!0)=>{if(B&&E){Q&&L(!0);return}N(!0);try{const ee=await Pt.checkForUpdates();ee.hasUpdate&&ee.latestVersion&&ee.changelog?(j(!0),H({version:ee.latestVersion,changelog:ee.changelog}),Q&&L(!0)):Q&&C({message:n("app.no_updates_available"),type:"success"}),J(!0)}catch(ee){console.error("Failed to check for updates:",ee),Q&&C({message:n("app.update_check_failed")+": "+ee.message,type:"error"})}finally{N(!1)}},[B,E,n]);y.useEffect(()=>{(async()=>{if(i){w(!1),!B&&!te.current&&(te.current=!0,fe(!1));return}if(!localStorage.getItem("apiKey")){w(!1);return}try{await Pt.getConfig()}catch(X){console.error("Error checking auth:",X),X.message==="Unauthorized"&&l("/login")}finally{w(!1),!B&&!te.current&&(te.current=!0,fe(!1))}})();const ee=()=>{l("/login")};return window.addEventListener("unauthorized",ee),()=>{window.removeEventListener("unauthorized",ee)}},[i,l,B,fe]);const de=async()=>{if(k)try{const Q=await Pt.performUpdate();Q.success?(C({message:n("app.update_successful"),type:"success"}),j(!1),L(!1),J(!1)):C({message:n("app.update_failed")+": "+Q.message,type:"error"})}catch(Q){console.error("Failed to perform update:",Q),C({message:n("app.update_failed")+": "+Q.message,type:"error"})}};return b?g.jsx("div",{className:"h-screen bg-gray-50 font-sans flex items-center justify-center",children:g.jsx("div",{className:"text-gray-500",children:"Loading application..."})}):s?g.jsx("div",{className:"h-screen bg-gray-50 font-sans flex items-center justify-center",children:g.jsxs("div",{className:"text-red-500",children:["Error: ",s.message]})}):i?g.jsxs("div",{className:"h-screen bg-gray-50 font-sans",children:[g.jsxs("header",{className:"flex h-16 items-center justify-between border-b bg-white px-6",children:[g.jsx("h1",{className:"text-xl font-semibold text-gray-800",children:n("app.title")}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Ce,{variant:"ghost",size:"icon",onClick:()=>f(!0),className:"transition-all-ease hover:scale-110",children:g.jsx(FN,{className:"h-5 w-5"})}),g.jsx(Ce,{variant:"ghost",size:"icon",onClick:()=>p(!0),className:"transition-all-ease hover:scale-110",children:g.jsx(AN,{className:"h-5 w-5"})}),g.jsx(Ce,{variant:"ghost",size:"icon",onClick:()=>v(!0),className:"transition-all-ease hover:scale-110",children:g.jsx(MN,{className:"h-5 w-5"})}),g.jsxs($c,{children:[g.jsx(Vc,{asChild:!0,children:g.jsx(Ce,{variant:"ghost",size:"icon",className:"transition-all-ease hover:scale-110",children:g.jsx(kN,{className:"h-5 w-5"})})}),g.jsx(qc,{className:"w-32 p-2",children:g.jsxs("div",{className:"space-y-1",children:[g.jsx(Ce,{variant:a.language.startsWith("en")?"default":"ghost",className:"w-full justify-start transition-all-ease hover:scale-[1.02]",onClick:()=>a.changeLanguage("en"),children:"English"}),g.jsx(Ce,{variant:a.language.startsWith("zh")?"default":"ghost",className:"w-full justify-start transition-all-ease hover:scale-[1.02]",onClick:()=>a.changeLanguage("zh"),children:"中文"})]})})]}),g.jsxs(Ce,{variant:"ghost",size:"icon",onClick:()=>fe(!0),disabled:M,className:"transition-all-ease hover:scale-110 relative",children:[g.jsxs("div",{className:"relative",children:[g.jsx(bN,{className:"h-5 w-5"}),E&&!M&&g.jsx("div",{className:"absolute -top-1 -right-1 w-3 h-3 bg-red-500 rounded-full border-2 border-white"})]}),M&&g.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:g.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent"})})]}),g.jsxs(Ce,{onClick:ae,variant:"outline",className:"transition-all-ease hover:scale-[1.02] active:scale-[0.98]",children:[g.jsx(hb,{className:"mr-2 h-4 w-4"}),n("app.save")]}),g.jsxs(Ce,{onClick:re,className:"transition-all-ease hover:scale-[1.02] active:scale-[0.98]",children:[g.jsx(bh,{className:"mr-2 h-4 w-4"}),n("app.save_and_restart")]})]})]}),g.jsxs("main",{className:"flex h-[calc(100vh-4rem)] gap-4 p-4 overflow-hidden",children:[g.jsx("div",{className:"w-3/5",children:g.jsx(wA,{})}),g.jsxs("div",{className:"flex w-2/5 flex-col gap-4",children:[g.jsx("div",{className:"h-3/5",children:g.jsx(SA,{})}),g.jsx("div",{className:"flex-1 overflow-hidden",children:g.jsx(yA,{})})]})]}),g.jsx(gA,{isOpen:c,onOpenChange:f}),g.jsx(jT,{open:h,onOpenChange:p,showToast:(Q,ee)=>C({message:Q,type:ee})}),g.jsx(OT,{open:m,onOpenChange:v,showToast:(Q,ee)=>C({message:Q,type:ee})}),g.jsx(Xr,{open:R,onOpenChange:L,children:g.jsxs(cr,{className:"max-w-2xl",children:[g.jsxs(ur,{children:[g.jsxs(fr,{children:[n("app.new_version_available"),k&&g.jsxs("span",{className:"ml-2 text-sm font-normal text-muted-foreground",children:["v",k.version]})]}),g.jsx(Lc,{children:n("app.update_description")})]}),g.jsx("div",{className:"max-h-96 overflow-y-auto py-4",children:k?.changelog?g.jsx("div",{className:"whitespace-pre-wrap text-sm",children:k.changelog}):g.jsx("div",{className:"text-muted-foreground",children:n("app.no_changelog_available")})}),g.jsxs(Qr,{children:[g.jsx(Ce,{variant:"outline",onClick:()=>L(!1),children:n("app.later")}),g.jsx(Ce,{onClick:de,children:n("app.update_now")})]})]})}),S&&g.jsx(AT,{message:S.message,type:S.type,onClose:()=>C(null)})]}):g.jsx("div",{className:"h-screen bg-gray-50 font-sans flex items-center justify-center",children:g.jsx("div",{className:"text-gray-500",children:"Loading configuration..."})})}function MT(){const{t:n}=Oa(),a=Rc(),[l,i]=y.useState(""),[s,c]=y.useState(""),[f,h]=y.useState(!1);y.useEffect(()=>{(async()=>{if(localStorage.getItem("apiKey")){h(!0);try{await Pt.getConfig(),a("/dashboard")}catch{localStorage.removeItem("apiKey")}finally{h(!1)}}})();const v=()=>{a("/login")};return window.addEventListener("unauthorized",v),()=>{window.removeEventListener("unauthorized",v)}},[a]);const p=async m=>{m.preventDefault();try{Pt.setApiKey(l),window.dispatchEvent(new StorageEvent("storage",{key:"apiKey",newValue:l,url:window.location.href})),await Pt.getConfig(),a("/dashboard")}catch(v){Pt.setApiKey(""),v.message&&v.message.includes("401")?c(n("login.invalidApiKey")):a("/dashboard")}};return f?g.jsx("div",{className:"flex min-h-screen items-center justify-center bg-gray-50",children:g.jsxs(Ca,{className:"w-full max-w-md",children:[g.jsx(Na,{className:"space-y-1",children:g.jsx(Ra,{className:"text-2xl",children:n("login.title")})}),g.jsxs(ja,{children:[g.jsx("div",{className:"flex justify-center py-8",children:g.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent"})}),g.jsx("p",{className:"text-center text-sm text-gray-500",children:n("login.validating")})]})]})}):g.jsx("div",{className:"flex min-h-screen items-center justify-center bg-gray-50",children:g.jsxs(Ca,{className:"w-full max-w-md",children:[g.jsxs(Na,{className:"space-y-1",children:[g.jsx(Ra,{className:"text-2xl",children:n("login.title")}),g.jsx(kx,{children:n("login.description")})]}),g.jsxs("form",{onSubmit:p,children:[g.jsxs(ja,{className:"space-y-4",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx(Ke,{htmlFor:"apiKey",children:n("login.apiKey")}),g.jsx(ft,{id:"apiKey",type:"password",value:l,onChange:m=>i(m.target.value),placeholder:n("login.apiKeyPlaceholder")})]}),s&&g.jsx("div",{className:"text-sm text-red-500",children:s})]}),g.jsx(zx,{children:g.jsx(Ce,{className:"w-full",type:"submit",children:n("login.signIn")})})]})]})})}const DT=({children:n})=>n,LT=({children:n})=>n,kT=YE([{path:"/",element:g.jsx(IE,{to:"/dashboard",replace:!0})},{path:"/login",element:g.jsx(LT,{children:g.jsx(MT,{})})},{path:"/dashboard",element:g.jsx(DT,{children:g.jsx(TT,{})})}],{initialEntries:["/dashboard"]});C_.createRoot(document.getElementById("root")).render(g.jsx(y.StrictMode,{children:g.jsx(qO,{children:g.jsx(A2,{router:kT})})}));</script>
401
+ <style rel="stylesheet" crossorigin>/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-800:oklch(44.4% .177 26.899);--color-orange-400:oklch(75% .183 55.934);--color-yellow-100:oklch(97.3% .071 103.193);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-300:oklch(90.5% .182 98.111);--color-yellow-500:oklch(79.5% .184 86.047);--color-green-100:oklch(96.2% .044 156.743);--color-green-200:oklch(92.5% .084 155.995);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-800:oklch(44.8% .119 151.328);--color-cyan-300:oklch(86.5% .127 207.078);--color-cyan-500:oklch(71.5% .143 215.221);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-purple-300:oklch(82.7% .119 306.383);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--container-lg:32rem;--container-2xl:42rem;--container-4xl:56rem;--container-5xl:64rem;--container-6xl:72rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--tracking-tight:-.025em;--tracking-widest:.1em;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){*{outline-color:color-mix(in oklab,var(--ring)50%,transparent)}}body{background-color:var(--background);color:var(--foreground)}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background-color:#0000;border-radius:4px}::-webkit-scrollbar-thumb{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){::-webkit-scrollbar-thumb{background-color:color-mix(in oklab,var(--muted-foreground)30%,transparent)}}::-webkit-scrollbar-thumb{border-radius:4px;transition:background-color .2s}::-webkit-scrollbar-thumb:hover{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){::-webkit-scrollbar-thumb:hover{background-color:color-mix(in oklab,var(--muted-foreground)50%,transparent)}}::-webkit-scrollbar-corner{background-color:#0000}*{scrollbar-width:thin;scrollbar-color:oklch(55.6% 0 0) oklch(97% 0 0)}.dark *{scrollbar-color:oklch(70.8% 0 0) oklch(26.9% 0 0)}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.-top-1{top:calc(var(--spacing)*-1)}.top-0{top:calc(var(--spacing)*0)}.top-1\/2{top:50%}.top-4{top:calc(var(--spacing)*4)}.top-\[50\%\]{top:50%}.-right-1{right:calc(var(--spacing)*-1)}.right-0{right:calc(var(--spacing)*0)}.right-2{right:calc(var(--spacing)*2)}.right-4{right:calc(var(--spacing)*4)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.left-2\.5{left:calc(var(--spacing)*2.5)}.left-\[50\%\]{left:50%}.z-50{z-index:50}.col-span-1{grid-column:span 1/span 1}.col-span-3{grid-column:span 3/span 3}.col-span-5{grid-column:span 5/span 5}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.mx-1{margin-inline:calc(var(--spacing)*1)}.mx-auto{margin-inline:auto}.mt-0\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-auto{margin-top:auto}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-3{margin-left:calc(var(--spacing)*3)}.ml-4{margin-left:calc(var(--spacing)*4)}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-flex{display:inline-flex}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.h-3{height:calc(var(--spacing)*3)}.h-3\/5{height:60%}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-11{height:calc(var(--spacing)*11)}.h-12{height:calc(var(--spacing)*12)}.h-16{height:calc(var(--spacing)*16)}.h-\[90vh\]{height:90vh}.h-\[calc\(100vh-4rem\)\]{height:calc(100vh - 4rem)}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-8{max-height:calc(var(--spacing)*8)}.max-h-72{max-height:calc(var(--spacing)*72)}.max-h-96{max-height:calc(var(--spacing)*96)}.max-h-\[80vh\]{max-height:80vh}.max-h-\[300px\]{max-height:300px}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-\[200px\]{min-height:200px}.min-h-screen{min-height:100vh}.w-2\/5{width:40%}.w-3{width:calc(var(--spacing)*3)}.w-3\/5{width:60%}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-10{width:calc(var(--spacing)*10)}.w-11{width:calc(var(--spacing)*11)}.w-12{width:calc(var(--spacing)*12)}.w-32{width:calc(var(--spacing)*32)}.w-48{width:calc(var(--spacing)*48)}.w-72{width:calc(var(--spacing)*72)}.w-\[--radix-popover-trigger-width\]{width:--radix-popover-trigger-width}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.min-w-0{min-width:calc(var(--spacing)*0)}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-\(--radix-popover-content-transform-origin\){transform-origin:var(--radix-popover-content-transform-origin)}.translate-x-\[-50\%\]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-full{--tw-translate-y:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-move{cursor:move}.cursor-pointer{cursor:pointer}.scroll-py-1{scroll-padding-block:calc(var(--spacing)*1)}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0{gap:calc(var(--spacing)*0)}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*1)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-blue-200{border-color:var(--color-blue-200)}.border-blue-600{border-color:var(--color-blue-600)}.border-border{border-color:var(--border)}.border-current{border-color:currentColor}.border-destructive\/50{border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.border-destructive\/50{border-color:color-mix(in oklab,var(--destructive)50%,transparent)}}.border-gray-200{border-color:var(--color-gray-200)}.border-green-200{border-color:var(--color-green-200)}.border-input{border-color:var(--input)}.border-primary{border-color:var(--primary)}.border-red-200{border-color:var(--color-red-200)}.border-red-500{border-color:var(--color-red-500)}.border-transparent{border-color:#0000}.border-white{border-color:var(--color-white)}.border-yellow-200{border-color:var(--color-yellow-200)}.border-t-transparent{border-top-color:#0000}.bg-background{background-color:var(--background)}.bg-black{background-color:var(--color-black)}.bg-black\/0{background-color:#0000}@supports (color:color-mix(in lab,red,red)){.bg-black\/0{background-color:color-mix(in oklab,var(--color-black)0%,transparent)}}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-black\/80{background-color:#000c}@supports (color:color-mix(in lab,red,red)){.bg-black\/80{background-color:color-mix(in oklab,var(--color-black)80%,transparent)}}.bg-black\/90{background-color:#000000e6}@supports (color:color-mix(in lab,red,red)){.bg-black\/90{background-color:color-mix(in oklab,var(--color-black)90%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-300{background-color:var(--color-blue-300)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-border{background-color:var(--border)}.bg-card{background-color:var(--card)}.bg-cyan-300{background-color:var(--color-cyan-300)}.bg-cyan-500{background-color:var(--color-cyan-500)}.bg-destructive{background-color:var(--destructive)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-800{background-color:var(--color-gray-800)}.bg-green-100{background-color:var(--color-green-100)}.bg-green-400{background-color:var(--color-green-400)}.bg-green-600{background-color:var(--color-green-600)}.bg-orange-400{background-color:var(--color-orange-400)}.bg-popover{background-color:var(--popover)}.bg-primary{background-color:var(--primary)}.bg-purple-300{background-color:var(--color-purple-300)}.bg-purple-400{background-color:var(--color-purple-400)}.bg-purple-500{background-color:var(--color-purple-500)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-100{background-color:var(--color-red-100)}.bg-red-400{background-color:var(--color-red-400)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-600{background-color:var(--color-red-600)}.bg-secondary,.bg-secondary\/50{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.bg-secondary\/50{background-color:color-mix(in oklab,var(--secondary)50%,transparent)}}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\/20{background-color:#fff3}@supports (color:color-mix(in lab,red,red)){.bg-white\/20{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.bg-yellow-100{background-color:var(--color-yellow-100)}.bg-yellow-300{background-color:var(--color-yellow-300)}.bg-yellow-500{background-color:var(--color-yellow-500)}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-1\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-5{padding-block:calc(var(--spacing)*5)}.py-6{padding-block:calc(var(--spacing)*6)}.py-8{padding-block:calc(var(--spacing)*8)}.pt-0{padding-top:calc(var(--spacing)*0)}.pt-2{padding-top:calc(var(--spacing)*2)}.pt-4{padding-top:calc(var(--spacing)*4)}.pr-2{padding-right:calc(var(--spacing)*2)}.pr-10{padding-right:calc(var(--spacing)*10)}.pb-0{padding-bottom:calc(var(--spacing)*0)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.pl-4{padding-left:calc(var(--spacing)*4)}.pl-5{padding-left:calc(var(--spacing)*5)}.pl-8{padding-left:calc(var(--spacing)*8)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-none{--tw-leading:1;line-height:1}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-black{color:var(--color-black)}.text-blue-300{color:var(--color-blue-300)}.text-blue-400{color:var(--color-blue-400)}.text-blue-500{color:var(--color-blue-500)}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-blue-800{color:var(--color-blue-800)}.text-card-foreground{color:var(--card-foreground)}.text-current{color:currentColor}.text-cyan-300{color:var(--color-cyan-300)}.text-cyan-500{color:var(--color-cyan-500)}.text-destructive{color:var(--destructive)}.text-destructive-foreground{color:var(--destructive-foreground)}.text-foreground{color:var(--foreground)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-green-400{color:var(--color-green-400)}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-green-800{color:var(--color-green-800)}.text-muted-foreground{color:var(--muted-foreground)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-purple-300{color:var(--color-purple-300)}.text-purple-500{color:var(--color-purple-500)}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-red-800{color:var(--color-red-800)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-white{color:var(--color-white)}.text-yellow-300{color:var(--color-yellow-300)}.text-yellow-500{color:var(--color-yellow-500)}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-100{opacity:1}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-inner{--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.select-none{-webkit-user-select:none;user-select:none}.group-data-\[state\=open\]\:rotate-180:is(:where(.group)[data-state=open] *){rotate:180deg}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-70:is(:where(.peer):disabled~*){opacity:.7}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\:text-foreground::file-selector-button{color:var(--foreground)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}@media (hover:hover){.hover\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\:scale-\[1\.01\]:hover{scale:1.01}.hover\:scale-\[1\.02\]:hover{scale:1.02}.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:bg-destructive:hover,.hover\:bg-destructive\/80:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/80:hover{background-color:color-mix(in oklab,var(--destructive)80%,transparent)}}.hover\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\:bg-primary\/80:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/80:hover{background-color:color-mix(in oklab,var(--primary)80%,transparent)}}.hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}.hover\:bg-secondary:hover,.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,var(--secondary)80%,transparent)}}.hover\:bg-transparent:hover{background-color:#0000}.hover\:bg-white\/10:hover{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.hover\:bg-white\/10:hover{background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.hover\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\:text-blue-800:hover{color:var(--color-blue-800)}.hover\:text-destructive-foreground:hover{color:var(--destructive-foreground)}.hover\:text-gray-700:hover{color:var(--color-gray-700)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.focus\:scale-\[1\.01\]:focus{scale:1.01}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-ring:focus{--tw-ring-color:var(--ring)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:var(--ring)}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color:var(--background)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\:scale-\[0\.98\]:active{scale:.98}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.data-\[disabled\=true\]\:pointer-events-none[data-disabled=true]{pointer-events:none}.data-\[disabled\=true\]\:opacity-50[data-disabled=true]{opacity:.5}.data-\[selected\=true\]\:bg-accent[data-selected=true]{background-color:var(--accent)}.data-\[selected\=true\]\:text-accent-foreground[data-selected=true]{color:var(--accent-foreground)}:is(.\*\*\:data-\[slot\=command-input-wrapper\]\:h-12 *)[data-slot=command-input-wrapper]{height:calc(var(--spacing)*12)}.data-\[state\=checked\]\:translate-x-5[data-state=checked]{--tw-translate-x:calc(var(--spacing)*5);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:var(--primary)}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:var(--accent)}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:var(--muted-foreground)}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked]{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:var(--input)}@media (min-width:40rem){.sm\:col-span-2{grid-column:span 2/span 2}.sm\:max-w-2xl{max-width:var(--container-2xl)}.sm\:max-w-5xl{max-width:var(--container-5xl)}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}:where(.sm\:space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}}@media (min-width:48rem){.md\:max-w-6xl{max-width:var(--container-6xl)}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media (min-width:64rem){.lg\:max-w-7xl{max-width:var(--container-7xl)}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]{padding-inline:calc(var(--spacing)*2)}.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]{padding-block:calc(var(--spacing)*1.5)}.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.\[\&_\[cmdk-group-heading\]\]\:text-muted-foreground [cmdk-group-heading]{color:var(--muted-foreground)}.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]{padding-inline:calc(var(--spacing)*2)}.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:calc(var(--spacing)*0)}.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg{height:calc(var(--spacing)*5)}.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg{width:calc(var(--spacing)*5)}.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]{height:calc(var(--spacing)*12)}.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]{padding-inline:calc(var(--spacing)*2)}.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]{padding-block:calc(var(--spacing)*3)}.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg{height:calc(var(--spacing)*5)}.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg{width:calc(var(--spacing)*5)}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\&_svg\:not\(\[class\*\=\'text-\'\]\)\]\:text-muted-foreground svg:not([class*=text-]){color:var(--muted-foreground)}}:root{--radius:.625rem;--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--destructive-foreground:oklch(98.5% 0 0);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(70.8% 0 0);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08);--sidebar:oklch(98.5% 0 0);--sidebar-foreground:oklch(14.5% 0 0);--sidebar-primary:oklch(20.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(97% 0 0);--sidebar-accent-foreground:oklch(20.5% 0 0);--sidebar-border:oklch(92.2% 0 0);--sidebar-ring:oklch(70.8% 0 0)}.dark{--background:oklch(14.5% 0 0);--foreground:oklch(98.5% 0 0);--card:oklch(20.5% 0 0);--card-foreground:oklch(98.5% 0 0);--popover:oklch(20.5% 0 0);--popover-foreground:oklch(98.5% 0 0);--primary:oklch(92.2% 0 0);--primary-foreground:oklch(20.5% 0 0);--secondary:oklch(26.9% 0 0);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(26.9% 0 0);--muted-foreground:oklch(70.8% 0 0);--accent:oklch(26.9% 0 0);--accent-foreground:oklch(98.5% 0 0);--destructive:oklch(70.4% .191 22.216);--destructive-foreground:oklch(98.5% 0 0);--border:oklch(100% 0 0/.1);--input:oklch(100% 0 0/.15);--ring:oklch(55.6% 0 0);--chart-1:oklch(48.8% .243 264.376);--chart-2:oklch(69.6% .17 162.48);--chart-3:oklch(76.9% .188 70.08);--chart-4:oklch(62.7% .265 303.9);--chart-5:oklch(64.5% .246 16.439);--sidebar:oklch(20.5% 0 0);--sidebar-foreground:oklch(98.5% 0 0);--sidebar-primary:oklch(48.8% .243 264.376);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(26.9% 0 0);--sidebar-accent-foreground:oklch(98.5% 0 0);--sidebar-border:oklch(100% 0 0/.1);--sidebar-ring:oklch(55.6% 0 0)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes scaleIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes slideIn{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}.animate-fade-in{animation:fadeIn .2s ease-out forwards}.animate-scale-in{animation:scaleIn .2s cubic-bezier(.34,1.56,.64,1) forwards}.animate-slide-in{animation:slideIn .3s cubic-bezier(.34,1.56,.64,1) forwards}.transition-all-ease{transition:all .2s cubic-bezier(.34,1.56,.64,1)}</style>
298
402
  </head>
299
403
  <body>
300
404
  <div id="root"></div>