@paroicms/site-generator-plugin 0.30.2 → 0.30.3

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.
@@ -1,91 +1,91 @@
1
- function Mv(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}function zv(l){if(Object.prototype.hasOwnProperty.call(l,"__esModule"))return l;var n=l.default;if(typeof n=="function"){var i=function s(){var o=!1;try{o=this instanceof s}catch{}return o?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(l).forEach(function(s){var o=Object.getOwnPropertyDescriptor(l,s);Object.defineProperty(i,s,o.get?o:{enumerable:!0,get:function(){return l[s]}})}),i}var Wc={exports:{}},Wi={};var Ag;function Ox(){if(Ag)return Wi;Ag=1;var l=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function i(s,o,c){var d=null;if(c!==void 0&&(d=""+c),o.key!==void 0&&(d=""+o.key),"key"in o){c={};for(var p in o)p!=="key"&&(c[p]=o[p])}else c=o;return o=c.ref,{$$typeof:l,type:s,key:d,ref:o!==void 0?o:null,props:c}}return Wi.Fragment=n,Wi.jsx=i,Wi.jsxs=i,Wi}var Dg;function Ax(){return Dg||(Dg=1,Wc.exports=Ox()),Wc.exports}var b=Ax();const de=l=>typeof l=="string",er=()=>{let l,n;const i=new Promise((s,o)=>{l=s,n=o});return i.resolve=l,i.reject=n,i},_g=l=>l==null?"":""+l,Dx=(l,n,i)=>{l.forEach(s=>{n[s]&&(i[s]=n[s])})},_x=/###/g,kg=l=>l&&l.indexOf("###")>-1?l.replace(_x,"."):l,Mg=l=>!l||de(l),pr=(l,n,i)=>{const s=de(n)?n.split("."):n;let o=0;for(;o<s.length-1;){if(Mg(l))return{};const c=kg(s[o]);!l[c]&&i&&(l[c]=new i),Object.prototype.hasOwnProperty.call(l,c)?l=l[c]:l={},++o}return Mg(l)?{}:{obj:l,k:kg(s[o])}},zg=(l,n,i)=>{const{obj:s,k:o}=pr(l,n,Object);if(s!==void 0||n.length===1){s[o]=i;return}let c=n[n.length-1],d=n.slice(0,n.length-1),p=pr(l,d,Object);for(;p.obj===void 0&&d.length;)c=`${d[d.length-1]}.${c}`,d=d.slice(0,d.length-1),p=pr(l,d,Object),p?.obj&&typeof p.obj[`${p.k}.${c}`]<"u"&&(p.obj=void 0);p.obj[`${p.k}.${c}`]=i},kx=(l,n,i,s)=>{const{obj:o,k:c}=pr(l,n,Object);o[c]=o[c]||[],o[c].push(i)},mo=(l,n)=>{const{obj:i,k:s}=pr(l,n);if(i&&Object.prototype.hasOwnProperty.call(i,s))return i[s]},Mx=(l,n,i)=>{const s=mo(l,i);return s!==void 0?s:mo(n,i)},Lv=(l,n,i)=>{for(const s in n)s!=="__proto__"&&s!=="constructor"&&(s in l?de(l[s])||l[s]instanceof String||de(n[s])||n[s]instanceof String?i&&(l[s]=n[s]):Lv(l[s],n[s],i):l[s]=n[s]);return l},Kl=l=>l.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var zx={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Lx=l=>de(l)?l.replace(/[&<>"'\/]/g,n=>zx[n]):l;class Ux{constructor(n){this.capacity=n,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(n){const i=this.regExpMap.get(n);if(i!==void 0)return i;const s=new RegExp(n);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(n,s),this.regExpQueue.push(n),s}}const Bx=[" ",",","?","!",";"],Hx=new Ux(20),$x=(l,n,i)=>{n=n||"",i=i||"";const s=Bx.filter(d=>n.indexOf(d)<0&&i.indexOf(d)<0);if(s.length===0)return!0;const o=Hx.getRegExp(`(${s.map(d=>d==="?"?"\\?":d).join("|")})`);let c=!o.test(l);if(!c){const d=l.indexOf(i);d>0&&!o.test(l.substring(0,d))&&(c=!0)}return c},Af=(l,n,i=".")=>{if(!l)return;if(l[n])return Object.prototype.hasOwnProperty.call(l,n)?l[n]:void 0;const s=n.split(i);let o=l;for(let c=0;c<s.length;){if(!o||typeof o!="object")return;let d,p="";for(let h=c;h<s.length;++h)if(h!==c&&(p+=i),p+=s[h],d=o[p],d!==void 0){if(["string","number","boolean"].indexOf(typeof d)>-1&&h<s.length-1)continue;c+=h-c+1;break}o=d}return o},Er=l=>l?.replace("_","-"),Vx={type:"logger",log(l){this.output("log",l)},warn(l){this.output("warn",l)},error(l){this.output("error",l)},output(l,n){console?.[l]?.apply?.(console,n)}};class go{constructor(n,i={}){this.init(n,i)}init(n,i={}){this.prefix=i.prefix||"i18next:",this.logger=n||Vx,this.options=i,this.debug=i.debug}log(...n){return this.forward(n,"log","",!0)}warn(...n){return this.forward(n,"warn","",!0)}error(...n){return this.forward(n,"error","")}deprecate(...n){return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(n,i,s,o){return o&&!this.debug?null:(de(n[0])&&(n[0]=`${s}${this.prefix} ${n[0]}`),this.logger[i](n))}create(n){return new go(this.logger,{prefix:`${this.prefix}:${n}:`,...this.options})}clone(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new go(this.logger,n)}}var On=new go;class Ro{constructor(){this.observers={}}on(n,i){return n.split(" ").forEach(s=>{this.observers[s]||(this.observers[s]=new Map);const o=this.observers[s].get(i)||0;this.observers[s].set(i,o+1)}),this}off(n,i){if(this.observers[n]){if(!i){delete this.observers[n];return}this.observers[n].delete(i)}}emit(n,...i){this.observers[n]&&Array.from(this.observers[n].entries()).forEach(([o,c])=>{for(let d=0;d<c;d++)o(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,c])=>{for(let d=0;d<c;d++)o.apply(o,[n,...i])})}}class Lg extends Ro{constructor(n,i={ns:["translation"],defaultNS:"translation"}){super(),this.data=n||{},this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}removeNamespaces(n){const i=this.options.ns.indexOf(n);i>-1&&this.options.ns.splice(i,1)}getResource(n,i,s,o={}){const c=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,d=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let p;n.indexOf(".")>-1?p=n.split("."):(p=[n,i],s&&(Array.isArray(s)?p.push(...s):de(s)&&c?p.push(...s.split(c)):p.push(s)));const h=mo(this.data,p);return!h&&!i&&!s&&n.indexOf(".")>-1&&(n=p[0],i=p[1],s=p.slice(2).join(".")),h||!d||!de(s)?h:Af(this.data?.[n]?.[i],s,c)}addResource(n,i,s,o,c={silent:!1}){const d=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator;let p=[n,i];s&&(p=p.concat(d?s.split(d):s)),n.indexOf(".")>-1&&(p=n.split("."),o=i,i=p[1]),this.addNamespaces(i),zg(this.data,p,o),c.silent||this.emit("added",n,i,s,o)}addResources(n,i,s,o={silent:!1}){for(const c in s)(de(s[c])||Array.isArray(s[c]))&&this.addResource(n,i,c,s[c],{silent:!0});o.silent||this.emit("added",n,i,s)}addResourceBundle(n,i,s,o,c,d={silent:!1,skipCopy:!1}){let p=[n,i];n.indexOf(".")>-1&&(p=n.split("."),o=s,s=i,i=p[1]),this.addNamespaces(i);let h=mo(this.data,p)||{};d.skipCopy||(s=JSON.parse(JSON.stringify(s))),o?Lv(h,s,c):h={...h,...s},zg(this.data,p,h),d.silent||this.emit("added",n,i,s)}removeResourceBundle(n,i){this.hasResourceBundle(n,i)&&delete this.data[n][i],this.removeNamespaces(i),this.emit("removed",n,i)}hasResourceBundle(n,i){return this.getResource(n,i)!==void 0}getResourceBundle(n,i){return i||(i=this.options.defaultNS),this.getResource(n,i)}getDataByLanguage(n){return this.data[n]}hasLanguageSomeTranslations(n){const i=this.getDataByLanguage(n);return!!(i&&Object.keys(i)||[]).find(o=>i[o]&&Object.keys(i[o]).length>0)}toJSON(){return this.data}}var Uv={processors:{},addPostProcessor(l){this.processors[l.name]=l},handle(l,n,i,s,o){return l.forEach(c=>{n=this.processors[c]?.process(n,i,s,o)??n}),n}};const Bv=Symbol("i18next/PATH_KEY");function qx(){const l=[],n=Object.create(null);let i;return n.get=(s,o)=>(i?.revoke?.(),o===Bv?l:(l.push(o),i=Proxy.revocable(s,n),i.proxy)),Proxy.revocable(Object.create(null),n).proxy}function Df(l,n){const{[Bv]:i}=l(qx());return i.join(n?.keySeparator??".")}const Ug={},ef=l=>!de(l)&&typeof l!="boolean"&&typeof l!="number";class vo extends Ro{constructor(n,i={}){super(),Dx(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,this),this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=On.create("translator")}changeLanguage(n){n&&(this.language=n)}exists(n,i={interpolation:{}}){const s={...i};if(n==null)return!1;const o=this.resolve(n,s);if(o?.res===void 0)return!1;const c=ef(o.res);return!(s.returnObjects===!1&&c)}extractFromKey(n,i){let s=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let c=i.ns||this.options.defaultNS||[];const d=s&&n.indexOf(s)>-1,p=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!$x(n,s,o);if(d&&!p){const h=n.match(this.interpolator.nestingRegexp);if(h&&h.length>0)return{key:n,namespaces:de(c)?[c]:c};const m=n.split(s);(s!==o||s===o&&this.options.ns.indexOf(m[0])>-1)&&(c=m.shift()),n=m.join(o)}return{key:n,namespaces:de(c)?[c]:c}}translate(n,i,s){let o=typeof i=="object"?{...i}:i;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),n==null)return"";typeof n=="function"&&(n=Df(n,{...this.options,...o})),Array.isArray(n)||(n=[String(n)]);const c=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,d=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:p,namespaces:h}=this.extractFromKey(n[n.length-1],o),m=h[h.length-1];let v=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;v===void 0&&(v=":");const y=o.lng||this.language,x=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(y?.toLowerCase()==="cimode")return x?c?{res:`${m}${v}${p}`,usedKey:p,exactUsedKey:p,usedLng:y,usedNS:m,usedParams:this.getUsedParamsDetails(o)}:`${m}${v}${p}`:c?{res:p,usedKey:p,exactUsedKey:p,usedLng:y,usedNS:m,usedParams:this.getUsedParamsDetails(o)}:p;const E=this.resolve(n,o);let N=E?.res;const O=E?.usedKey||p,L=E?.exactUsedKey||p,Q=["[object Number]","[object Function]","[object RegExp]"],M=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,B=!this.i18nFormat||this.i18nFormat.handleAsObject,P=o.count!==void 0&&!de(o.count),ee=vo.hasDefaultValue(o),Y=P?this.pluralResolver.getSuffix(y,o.count,o):"",_=o.ordinal&&P?this.pluralResolver.getSuffix(y,o.count,{ordinal:!1}):"",K=P&&!o.ordinal&&o.count===0,$=K&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${Y}`]||o[`defaultValue${_}`]||o.defaultValue;let Z=N;B&&!N&&ee&&(Z=$);const F=ef(Z),te=Object.prototype.toString.apply(Z);if(B&&Z&&F&&Q.indexOf(te)<0&&!(de(M)&&Array.isArray(Z))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const ie=this.options.returnedObjectHandler?this.options.returnedObjectHandler(O,Z,{...o,ns:h}):`key '${p} (${this.language})' returned an object instead of string.`;return c?(E.res=ie,E.usedParams=this.getUsedParamsDetails(o),E):ie}if(d){const ie=Array.isArray(Z),ce=ie?[]:{},he=ie?L:O;for(const z in Z)if(Object.prototype.hasOwnProperty.call(Z,z)){const J=`${he}${d}${z}`;ee&&!N?ce[z]=this.translate(J,{...o,defaultValue:ef($)?$[z]:void 0,joinArrays:!1,ns:h}):ce[z]=this.translate(J,{...o,joinArrays:!1,ns:h}),ce[z]===J&&(ce[z]=Z[z])}N=ce}}else if(B&&de(M)&&Array.isArray(N))N=N.join(M),N&&(N=this.extendTranslation(N,n,o,s));else{let ie=!1,ce=!1;!this.isValidLookup(N)&&ee&&(ie=!0,N=$),this.isValidLookup(N)||(ce=!0,N=p);const z=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&ce?void 0:N,J=ee&&$!==N&&this.options.updateMissing;if(ce||ie||J){if(this.logger.log(J?"updateKey":"missingKey",y,m,p,J?$:N),d){const T=this.resolve(p,{...o,keySeparator:!1});T&&T.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 ne=[];const Ee=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ee&&Ee[0])for(let T=0;T<Ee.length;T++)ne.push(Ee[T]);else this.options.saveMissingTo==="all"?ne=this.languageUtils.toResolveHierarchy(o.lng||this.language):ne.push(o.lng||this.language);const Ne=(T,q,I)=>{const ae=ee&&I!==N?I:z;this.options.missingKeyHandler?this.options.missingKeyHandler(T,m,q,ae,J,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(T,m,q,ae,J,o),this.emit("missingKey",T,m,q,N)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?ne.forEach(T=>{const q=this.pluralResolver.getSuffixes(T,o);K&&o[`defaultValue${this.options.pluralSeparator}zero`]&&q.indexOf(`${this.options.pluralSeparator}zero`)<0&&q.push(`${this.options.pluralSeparator}zero`),q.forEach(I=>{Ne([T],p+I,o[`defaultValue${I}`]||$)})}):Ne(ne,p,$))}N=this.extendTranslation(N,n,o,E,s),ce&&N===p&&this.options.appendNamespaceToMissingKey&&(N=`${m}${v}${p}`),(ce||ie)&&this.options.parseMissingKeyHandler&&(N=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${m}${v}${p}`:p,ie?N:void 0,o))}return c?(E.res=N,E.usedParams=this.getUsedParamsDetails(o),E):N}extendTranslation(n,i,s,o,c){if(this.i18nFormat?.parse)n=this.i18nFormat.parse(n,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const h=de(n)&&(s?.interpolation?.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let m;if(h){const y=n.match(this.interpolator.nestingRegexp);m=y&&y.length}let v=s.replace&&!de(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(v={...this.options.interpolation.defaultVariables,...v}),n=this.interpolator.interpolate(n,v,s.lng||this.language||o.usedLng,s),h){const y=n.match(this.interpolator.nestingRegexp),x=y&&y.length;m<x&&(s.nest=!1)}!s.lng&&o&&o.res&&(s.lng=this.language||o.usedLng),s.nest!==!1&&(n=this.interpolator.nest(n,(...y)=>c?.[0]===y[0]&&!s.context?(this.logger.warn(`It seems you are nesting recursively key: ${y[0]} in key: ${i[0]}`),null):this.translate(...y,i),s)),s.interpolation&&this.interpolator.reset()}const d=s.postProcess||this.options.postProcess,p=de(d)?[d]:d;return n!=null&&p?.length&&s.applyPostProcessor!==!1&&(n=Uv.handle(p,n,i,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),n}resolve(n,i={}){let s,o,c,d,p;return de(n)&&(n=[n]),n.forEach(h=>{if(this.isValidLookup(s))return;const m=this.extractFromKey(h,i),v=m.key;o=v;let y=m.namespaces;this.options.fallbackNS&&(y=y.concat(this.options.fallbackNS));const x=i.count!==void 0&&!de(i.count),E=x&&!i.ordinal&&i.count===0,N=i.context!==void 0&&(de(i.context)||typeof i.context=="number")&&i.context!=="",O=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);y.forEach(L=>{this.isValidLookup(s)||(p=L,!Ug[`${O[0]}-${L}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(p)&&(Ug[`${O[0]}-${L}`]=!0,this.logger.warn(`key "${o}" for languages "${O.join(", ")}" won't get resolved as namespace "${p}" 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!!!")),O.forEach(Q=>{if(this.isValidLookup(s))return;d=Q;const M=[v];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(M,v,Q,L,i);else{let P;x&&(P=this.pluralResolver.getSuffix(Q,i.count,i));const ee=`${this.options.pluralSeparator}zero`,Y=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(x&&(i.ordinal&&P.indexOf(Y)===0&&M.push(v+P.replace(Y,this.options.pluralSeparator)),M.push(v+P),E&&M.push(v+ee)),N){const _=`${v}${this.options.contextSeparator||"_"}${i.context}`;M.push(_),x&&(i.ordinal&&P.indexOf(Y)===0&&M.push(_+P.replace(Y,this.options.pluralSeparator)),M.push(_+P),E&&M.push(_+ee))}}let B;for(;B=M.pop();)this.isValidLookup(s)||(c=B,s=this.getResource(Q,L,B,i))}))})}),{res:s,usedKey:o,exactUsedKey:c,usedLng:d,usedNS:p}}isValidLookup(n){return n!==void 0&&!(!this.options.returnNull&&n===null)&&!(!this.options.returnEmptyString&&n==="")}getResource(n,i,s,o={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(n,i,s,o):this.resourceStore.getResource(n,i,s,o)}getUsedParamsDetails(n={}){const i=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=n.replace&&!de(n.replace);let o=s?n.replace:n;if(s&&typeof n.count<"u"&&(o.count=n.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!s){o={...o};for(const c of i)delete o[c]}return o}static hasDefaultValue(n){const i="defaultValue";for(const s in n)if(Object.prototype.hasOwnProperty.call(n,s)&&i===s.substring(0,i.length)&&n[s]!==void 0)return!0;return!1}}class Bg{constructor(n){this.options=n,this.supportedLngs=this.options.supportedLngs||!1,this.logger=On.create("languageUtils")}getScriptPartFromCode(n){if(n=Er(n),!n||n.indexOf("-")<0)return null;const i=n.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))}getLanguagePartFromCode(n){if(n=Er(n),!n||n.indexOf("-")<0)return n;const i=n.split("-");return this.formatLanguageCode(i[0])}formatLanguageCode(n){if(de(n)&&n.indexOf("-")>-1){let i;try{i=Intl.getCanonicalLocales(n)[0]}catch{}return i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i||(this.options.lowerCaseLng?n.toLowerCase():n)}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}isSupportedCode(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}getBestMatchFromCodes(n){if(!n)return null;let i;return n.forEach(s=>{if(i)return;const o=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(o))&&(i=o)}),!i&&this.options.supportedLngs&&n.forEach(s=>{if(i)return;const o=this.getScriptPartFromCode(s);if(this.isSupportedCode(o))return i=o;const c=this.getLanguagePartFromCode(s);if(this.isSupportedCode(c))return i=c;i=this.options.supportedLngs.find(d=>{if(d===c)return d;if(!(d.indexOf("-")<0&&c.indexOf("-")<0)&&(d.indexOf("-")>0&&c.indexOf("-")<0&&d.substring(0,d.indexOf("-"))===c||d.indexOf(c)===0&&c.length>1))return d})}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}getFallbackCodes(n,i){if(!n)return[];if(typeof n=="function"&&(n=n(i)),de(n)&&(n=[n]),Array.isArray(n))return n;if(!i)return n.default||[];let s=n[i];return s||(s=n[this.getScriptPartFromCode(i)]),s||(s=n[this.formatLanguageCode(i)]),s||(s=n[this.getLanguagePartFromCode(i)]),s||(s=n.default),s||[]}toResolveHierarchy(n,i){const s=this.getFallbackCodes((i===!1?[]:i)||this.options.fallbackLng||[],n),o=[],c=d=>{d&&(this.isSupportedCode(d)?o.push(d):this.logger.warn(`rejecting language code not found in supportedLngs: ${d}`))};return de(n)&&(n.indexOf("-")>-1||n.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&c(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&c(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&c(this.getLanguagePartFromCode(n))):de(n)&&c(this.formatLanguageCode(n)),s.forEach(d=>{o.indexOf(d)<0&&c(this.formatLanguageCode(d))}),o}}const Hg={zero:0,one:1,two:2,few:3,many:4,other:5},$g={select:l=>l===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Gx{constructor(n,i={}){this.languageUtils=n,this.options=i,this.logger=On.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(n,i={}){const s=Er(n==="dev"?"en":n),o=i.ordinal?"ordinal":"cardinal",c=JSON.stringify({cleanedCode:s,type:o});if(c in this.pluralRulesCache)return this.pluralRulesCache[c];let d;try{d=new Intl.PluralRules(s,{type:o})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),$g;if(!n.match(/-|_/))return $g;const h=this.languageUtils.getLanguagePartFromCode(n);d=this.getRule(h,i)}return this.pluralRulesCache[c]=d,d}needsPlural(n,i={}){let s=this.getRule(n,i);return s||(s=this.getRule("dev",i)),s?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(n,i,s={}){return this.getSuffixes(n,s).map(o=>`${i}${o}`)}getSuffixes(n,i={}){let s=this.getRule(n,i);return s||(s=this.getRule("dev",i)),s?s.resolvedOptions().pluralCategories.sort((o,c)=>Hg[o]-Hg[c]).map(o=>`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(n,i,s={}){const o=this.getRule(n,s);return o?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${o.select(i)}`:(this.logger.warn(`no plural rule found for: ${n}`),this.getSuffix("dev",i,s))}}const Vg=(l,n,i,s=".",o=!0)=>{let c=Mx(l,n,i);return!c&&o&&de(i)&&(c=Af(l,i,s),c===void 0&&(c=Af(n,i,s))),c},tf=l=>l.replace(/\$/g,"$$$$");class qg{constructor(n={}){this.logger=On.create("interpolator"),this.options=n,this.format=n?.interpolation?.format||(i=>i),this.init(n)}init(n={}){n.interpolation||(n.interpolation={escapeValue:!0});const{escape:i,escapeValue:s,useRawValueToEscape:o,prefix:c,prefixEscaped:d,suffix:p,suffixEscaped:h,formatSeparator:m,unescapeSuffix:v,unescapePrefix:y,nestingPrefix:x,nestingPrefixEscaped:E,nestingSuffix:N,nestingSuffixEscaped:O,nestingOptionsSeparator:L,maxReplaces:Q,alwaysFormat:M}=n.interpolation;this.escape=i!==void 0?i:Lx,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=c?Kl(c):d||"{{",this.suffix=p?Kl(p):h||"}}",this.formatSeparator=m||",",this.unescapePrefix=v?"":y||"-",this.unescapeSuffix=this.unescapePrefix?"":v||"",this.nestingPrefix=x?Kl(x):E||Kl("$t("),this.nestingSuffix=N?Kl(N):O||Kl(")"),this.nestingOptionsSeparator=L||",",this.maxReplaces=Q||1e3,this.alwaysFormat=M!==void 0?M:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const n=(i,s)=>i?.source===s?(i.lastIndex=0,i):new RegExp(s,"g");this.regexp=n(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=n(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=n(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(n,i,s,o){let c,d,p;const h=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},m=E=>{if(E.indexOf(this.formatSeparator)<0){const Q=Vg(i,h,E,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(Q,void 0,s,{...o,...i,interpolationkey:E}):Q}const N=E.split(this.formatSeparator),O=N.shift().trim(),L=N.join(this.formatSeparator).trim();return this.format(Vg(i,h,O,this.options.keySeparator,this.options.ignoreJSONStructure),L,s,{...o,...i,interpolationkey:O})};this.resetRegExp();const v=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,y=o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:E=>tf(E)},{regex:this.regexp,safeValue:E=>this.escapeValue?tf(this.escape(E)):tf(E)}].forEach(E=>{for(p=0;c=E.regex.exec(n);){const N=c[1].trim();if(d=m(N),d===void 0)if(typeof v=="function"){const L=v(n,c,o);d=de(L)?L:""}else if(o&&Object.prototype.hasOwnProperty.call(o,N))d="";else if(y){d=c[0];continue}else this.logger.warn(`missed to pass in variable ${N} for interpolating ${n}`),d="";else!de(d)&&!this.useRawValueToEscape&&(d=_g(d));const O=E.safeValue(d);if(n=n.replace(c[0],O),y?(E.regex.lastIndex+=d.length,E.regex.lastIndex-=c[0].length):E.regex.lastIndex=0,p++,p>=this.maxReplaces)break}}),n}nest(n,i,s={}){let o,c,d;const p=(h,m)=>{const v=this.nestingOptionsSeparator;if(h.indexOf(v)<0)return h;const y=h.split(new RegExp(`${v}[ ]*{`));let x=`{${y[1]}`;h=y[0],x=this.interpolate(x,d);const E=x.match(/'/g),N=x.match(/"/g);((E?.length??0)%2===0&&!N||N.length%2!==0)&&(x=x.replace(/'/g,'"'));try{d=JSON.parse(x),m&&(d={...m,...d})}catch(O){return this.logger.warn(`failed parsing options string in nesting for key ${h}`,O),`${h}${v}${x}`}return d.defaultValue&&d.defaultValue.indexOf(this.prefix)>-1&&delete d.defaultValue,h};for(;o=this.nestingRegexp.exec(n);){let h=[];d={...s},d=d.replace&&!de(d.replace)?d.replace:d,d.applyPostProcessor=!1,delete d.defaultValue;const m=/{.*}/.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(m!==-1&&(h=o[1].slice(m).split(this.formatSeparator).map(v=>v.trim()).filter(Boolean),o[1]=o[1].slice(0,m)),c=i(p.call(this,o[1].trim(),d),d),c&&o[0]===n&&!de(c))return c;de(c)||(c=_g(c)),c||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${n}`),c=""),h.length&&(c=h.reduce((v,y)=>this.format(v,y,s.lng,{...s,interpolationkey:o[1].trim()}),c.trim())),n=n.replace(o[0],c),this.regexp.lastIndex=0}return n}}const Yx=l=>{let n=l.toLowerCase().trim();const i={};if(l.indexOf("(")>-1){const s=l.split("(");n=s[0].toLowerCase().trim();const o=s[1].substring(0,s[1].length-1);n==="currency"&&o.indexOf(":")<0?i.currency||(i.currency=o.trim()):n==="relativetime"&&o.indexOf(":")<0?i.range||(i.range=o.trim()):o.split(";").forEach(d=>{if(d){const[p,...h]=d.split(":"),m=h.join(":").trim().replace(/^'+|'+$/g,""),v=p.trim();i[v]||(i[v]=m),m==="false"&&(i[v]=!1),m==="true"&&(i[v]=!0),isNaN(m)||(i[v]=parseInt(m,10))}})}return{formatName:n,formatOptions:i}},Gg=l=>{const n={};return(i,s,o)=>{let c=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(c={...c,[o.interpolationkey]:void 0});const d=s+JSON.stringify(c);let p=n[d];return p||(p=l(Er(s),o),n[d]=p),p(i)}},Xx=l=>(n,i,s)=>l(Er(i),s)(n);class Qx{constructor(n={}){this.logger=On.create("formatter"),this.options=n,this.init(n)}init(n,i={interpolation:{}}){this.formatSeparator=i.interpolation.formatSeparator||",";const s=i.cacheInBuiltFormats?Gg:Xx;this.formats={number:s((o,c)=>{const d=new Intl.NumberFormat(o,{...c});return p=>d.format(p)}),currency:s((o,c)=>{const d=new Intl.NumberFormat(o,{...c,style:"currency"});return p=>d.format(p)}),datetime:s((o,c)=>{const d=new Intl.DateTimeFormat(o,{...c});return p=>d.format(p)}),relativetime:s((o,c)=>{const d=new Intl.RelativeTimeFormat(o,{...c});return p=>d.format(p,c.range||"day")}),list:s((o,c)=>{const d=new Intl.ListFormat(o,{...c});return p=>d.format(p)})}}add(n,i){this.formats[n.toLowerCase().trim()]=i}addCached(n,i){this.formats[n.toLowerCase().trim()]=Gg(i)}format(n,i,s,o={}){const c=i.split(this.formatSeparator);if(c.length>1&&c[0].indexOf("(")>1&&c[0].indexOf(")")<0&&c.find(p=>p.indexOf(")")>-1)){const p=c.findIndex(h=>h.indexOf(")")>-1);c[0]=[c[0],...c.splice(1,p)].join(this.formatSeparator)}return c.reduce((p,h)=>{const{formatName:m,formatOptions:v}=Yx(h);if(this.formats[m]){let y=p;try{const x=o?.formatParams?.[o.interpolationkey]||{},E=x.locale||x.lng||o.locale||o.lng||s;y=this.formats[m](p,E,{...v,...o,...x})}catch(x){this.logger.warn(x)}return y}else this.logger.warn(`there was no format function for ${m}`);return p},n)}}const Kx=(l,n)=>{l.pending[n]!==void 0&&(delete l.pending[n],l.pendingCount--)};class Zx extends Ro{constructor(n,i,s,o={}){super(),this.backend=n,this.store=i,this.services=s,this.languageUtils=s.languageUtils,this.options=o,this.logger=On.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(s,o.backend,o)}queueLoad(n,i,s,o){const c={},d={},p={},h={};return n.forEach(m=>{let v=!0;i.forEach(y=>{const x=`${m}|${y}`;!s.reload&&this.store.hasResourceBundle(m,y)?this.state[x]=2:this.state[x]<0||(this.state[x]===1?d[x]===void 0&&(d[x]=!0):(this.state[x]=1,v=!1,d[x]===void 0&&(d[x]=!0),c[x]===void 0&&(c[x]=!0),h[y]===void 0&&(h[y]=!0)))}),v||(p[m]=!0)}),(Object.keys(c).length||Object.keys(d).length)&&this.queue.push({pending:d,pendingCount:Object.keys(d).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(c),pending:Object.keys(d),toLoadLanguages:Object.keys(p),toLoadNamespaces:Object.keys(h)}}loaded(n,i,s){const o=n.split("|"),c=o[0],d=o[1];i&&this.emit("failedLoading",c,d,i),!i&&s&&this.store.addResourceBundle(c,d,s,void 0,void 0,{skipCopy:!0}),this.state[n]=i?-1:2,i&&s&&(this.state[n]=0);const p={};this.queue.forEach(h=>{kx(h.loaded,[c],d),Kx(h,n),i&&h.errors.push(i),h.pendingCount===0&&!h.done&&(Object.keys(h.loaded).forEach(m=>{p[m]||(p[m]={});const v=h.loaded[m];v.length&&v.forEach(y=>{p[m][y]===void 0&&(p[m][y]=!0)})}),h.done=!0,h.errors.length?h.callback(h.errors):h.callback())}),this.emit("loaded",p),this.queue=this.queue.filter(h=>!h.done)}read(n,i,s,o=0,c=this.retryTimeout,d){if(!n.length)return d(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:n,ns:i,fcName:s,tried:o,wait:c,callback:d});return}this.readingCalls++;const p=(m,v)=>{if(this.readingCalls--,this.waitingReads.length>0){const y=this.waitingReads.shift();this.read(y.lng,y.ns,y.fcName,y.tried,y.wait,y.callback)}if(m&&v&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,n,i,s,o+1,c*2,d)},c);return}d(m,v)},h=this.backend[s].bind(this.backend);if(h.length===2){try{const m=h(n,i);m&&typeof m.then=="function"?m.then(v=>p(null,v)).catch(p):p(null,m)}catch(m){p(m)}return}return h(n,i,p)}prepareLoading(n,i,s={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();de(n)&&(n=this.languageUtils.toResolveHierarchy(n)),de(i)&&(i=[i]);const c=this.queueLoad(n,i,s,o);if(!c.toLoad.length)return c.pending.length||o(),null;c.toLoad.forEach(d=>{this.loadOne(d)})}load(n,i,s){this.prepareLoading(n,i,{},s)}reload(n,i,s){this.prepareLoading(n,i,{reload:!0},s)}loadOne(n,i=""){const s=n.split("|"),o=s[0],c=s[1];this.read(o,c,"read",void 0,void 0,(d,p)=>{d&&this.logger.warn(`${i}loading namespace ${c} for language ${o} failed`,d),!d&&p&&this.logger.log(`${i}loaded namespace ${c} for language ${o}`,p),this.loaded(n,d,p)})}saveMissing(n,i,s,o,c,d={},p=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(i)){this.logger.warn(`did not save key "${s}" as the namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(s==null||s==="")){if(this.backend?.create){const h={...d,isUpdate:c},m=this.backend.create.bind(this.backend);if(m.length<6)try{let v;m.length===5?v=m(n,i,s,o,h):v=m(n,i,s,o),v&&typeof v.then=="function"?v.then(y=>p(null,y)).catch(p):p(null,v)}catch(v){p(v)}else m(n,i,s,o,p,h)}!n||!n[0]||this.store.addResource(n[0],i,s,o)}}}const nf=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:l=>{let n={};if(typeof l[1]=="object"&&(n=l[1]),de(l[1])&&(n.defaultValue=l[1]),de(l[2])&&(n.tDescription=l[2]),typeof l[2]=="object"||typeof l[3]=="object"){const i=l[3]||l[2];Object.keys(i).forEach(s=>{n[s]=i[s]})}return n},interpolation:{escapeValue:!0,format:l=>l,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Yg=l=>(de(l.ns)&&(l.ns=[l.ns]),de(l.fallbackLng)&&(l.fallbackLng=[l.fallbackLng]),de(l.fallbackNS)&&(l.fallbackNS=[l.fallbackNS]),l.supportedLngs?.indexOf?.("cimode")<0&&(l.supportedLngs=l.supportedLngs.concat(["cimode"])),typeof l.initImmediate=="boolean"&&(l.initAsync=l.initImmediate),l),Js=()=>{},Jx=l=>{Object.getOwnPropertyNames(Object.getPrototypeOf(l)).forEach(i=>{typeof l[i]=="function"&&(l[i]=l[i].bind(l))})};class mr extends Ro{constructor(n={},i){if(super(),this.options=Yg(n),this.services={},this.logger=On,this.modules={external:[]},Jx(this),i&&!this.isInitialized&&!n.isClone){if(!this.options.initAsync)return this.init(n,i),this;setTimeout(()=>{this.init(n,i)},0)}}init(n={},i){this.isInitializing=!0,typeof n=="function"&&(i=n,n={}),n.defaultNS==null&&n.ns&&(de(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const s=nf();this.options={...s,...this.options,...Yg(n)},this.options.interpolation={...s.interpolation,...this.options.interpolation},n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=s.overloadTranslationOptionHandler);const o=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?On.init(o(this.modules.logger),this.options):On.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:m=Qx;const v=new Bg(this.options);this.store=new Lg(this.options.resources,this.options);const y=this.services;y.logger=On,y.resourceStore=this.store,y.languageUtils=v,y.pluralResolver=new Gx(v,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==s.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),m&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(y.formatter=o(m),y.formatter.init&&y.formatter.init(y,this.options),this.options.interpolation.format=y.formatter.format.bind(y.formatter)),y.interpolator=new qg(this.options),y.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},y.backendConnector=new Zx(o(this.modules.backend),y.resourceStore,y,this.options),y.backendConnector.on("*",(E,...N)=>{this.emit(E,...N)}),this.modules.languageDetector&&(y.languageDetector=o(this.modules.languageDetector),y.languageDetector.init&&y.languageDetector.init(y,this.options.detection,this.options)),this.modules.i18nFormat&&(y.i18nFormat=o(this.modules.i18nFormat),y.i18nFormat.init&&y.i18nFormat.init(this)),this.translator=new vo(this.services,this.options),this.translator.on("*",(E,...N)=>{this.emit(E,...N)}),this.modules.external.forEach(E=>{E.init&&E.init(this)})}if(this.format=this.options.interpolation.format,i||(i=Js),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 p=er(),h=()=>{const m=(v,y)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),p.resolve(y),i(v,y)};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?h():setTimeout(h,0),p}loadResources(n,i=Js){let s=i;const o=de(n)?n:this.language;if(typeof n=="function"&&(s=n),!this.options.resources||this.options.partialBundledLanguages){if(o?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const c=[],d=p=>{if(!p||p==="cimode")return;this.services.languageUtils.toResolveHierarchy(p).forEach(m=>{m!=="cimode"&&c.indexOf(m)<0&&c.push(m)})};o?d(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(h=>d(h)),this.options.preload?.forEach?.(p=>d(p)),this.services.backendConnector.load(c,this.options.ns,p=>{!p&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(p)})}else s(null)}reloadResources(n,i,s){const o=er();return typeof n=="function"&&(s=n,n=void 0),typeof i=="function"&&(s=i,i=void 0),n||(n=this.languages),i||(i=this.options.ns),s||(s=Js),this.services.backendConnector.reload(n,i,c=>{o.resolve(),s(c)}),o}use(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&Uv.addPostProcessor(n),n.type==="formatter"&&(this.modules.formatter=n),n.type==="3rdParty"&&this.modules.external.push(n),this}setResolvedLanguage(n){if(!(!n||!this.languages)&&!(["cimode","dev"].indexOf(n)>-1)){for(let i=0;i<this.languages.length;i++){const s=this.languages[i];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}!this.resolvedLanguage&&this.languages.indexOf(n)<0&&this.store.hasLanguageSomeTranslations(n)&&(this.resolvedLanguage=n,this.languages.unshift(n))}}changeLanguage(n,i){this.isLanguageChangingTo=n;const s=er();this.emit("languageChanging",n);const o=p=>{this.language=p,this.languages=this.services.languageUtils.toResolveHierarchy(p),this.resolvedLanguage=void 0,this.setResolvedLanguage(p)},c=(p,h)=>{h?this.isLanguageChangingTo===n&&(o(h),this.translator.changeLanguage(h),this.isLanguageChangingTo=void 0,this.emit("languageChanged",h),this.logger.log("languageChanged",h)):this.isLanguageChangingTo=void 0,s.resolve((...m)=>this.t(...m)),i&&i(p,(...m)=>this.t(...m))},d=p=>{!n&&!p&&this.services.languageDetector&&(p=[]);const h=de(p)?p:p&&p[0],m=this.store.hasLanguageSomeTranslations(h)?h:this.services.languageUtils.getBestMatchFromCodes(de(p)?[p]:p);m&&(this.language||o(m),this.translator.language||this.translator.changeLanguage(m),this.services.languageDetector?.cacheUserLanguage?.(m)),this.loadResources(m,v=>{c(v,m)})};return!n&&this.services.languageDetector&&!this.services.languageDetector.async?d(this.services.languageDetector.detect()):!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(d):this.services.languageDetector.detect(d):d(n),s}getFixedT(n,i,s){const o=(c,d,...p)=>{let h;typeof d!="object"?h=this.options.overloadTranslationOptionHandler([c,d].concat(p)):h={...d},h.lng=h.lng||o.lng,h.lngs=h.lngs||o.lngs,h.ns=h.ns||o.ns,h.keyPrefix!==""&&(h.keyPrefix=h.keyPrefix||s||o.keyPrefix);const m=this.options.keySeparator||".";let v;return h.keyPrefix&&Array.isArray(c)?v=c.map(y=>(typeof y=="function"&&(y=Df(y,{...this.options,...d})),`${h.keyPrefix}${m}${y}`)):(typeof c=="function"&&(c=Df(c,{...this.options,...d})),v=h.keyPrefix?`${h.keyPrefix}${m}${c}`:c),this.t(v,h)};return de(n)?o.lng=n:o.lngs=n,o.ns=i,o.keyPrefix=s,o}t(...n){return this.translator?.translate(...n)}exists(...n){return this.translator?.exists(...n)}setDefaultNamespace(n){this.options.defaultNS=n}hasLoadedNamespace(n,i={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=i.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const d=(p,h)=>{const m=this.services.backendConnector.state[`${p}|${h}`];return m===-1||m===0||m===2};if(i.precheck){const p=i.precheck(this,d);if(p!==void 0)return p}return!!(this.hasResourceBundle(s,n)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||d(s,n)&&(!o||d(c,n)))}loadNamespaces(n,i){const s=er();return this.options.ns?(de(n)&&(n=[n]),n.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{s.resolve(),i&&i(o)}),s):(i&&i(),Promise.resolve())}loadLanguages(n,i){const s=er();de(n)&&(n=[n]);const o=this.options.preload||[],c=n.filter(d=>o.indexOf(d)<0&&this.services.languageUtils.isSupportedCode(d));return c.length?(this.options.preload=o.concat(c),this.loadResources(d=>{s.resolve(),i&&i(d)}),s):(i&&i(),Promise.resolve())}dir(n){if(n||(n=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!n)return"rtl";try{const o=new Intl.Locale(n);if(o&&o.getTextInfo){const c=o.getTextInfo();if(c&&c.direction)return c.direction}}catch{}const i=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=this.services?.languageUtils||new Bg(nf());return n.toLowerCase().indexOf("-latn")>1?"ltr":i.indexOf(s.getLanguagePartFromCode(n))>-1||n.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(n={},i){const s=new mr(n,i);return s.createInstance=mr.createInstance,s}cloneInstance(n={},i=Js){const s=n.forkResourceStore;s&&delete n.forkResourceStore;const o={...this.options,...n,isClone:!0},c=new mr(o);if((n.debug!==void 0||n.prefix!==void 0)&&(c.logger=c.logger.clone(n)),["store","services","language"].forEach(p=>{c[p]=this[p]}),c.services={...this.services},c.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},s){const p=Object.keys(this.store.data).reduce((h,m)=>(h[m]={...this.store.data[m]},h[m]=Object.keys(h[m]).reduce((v,y)=>(v[y]={...h[m][y]},v),h[m]),h),{});c.store=new Lg(p,o),c.services.resourceStore=c.store}if(n.interpolation){const h={...nf().interpolation,...this.options.interpolation,...n.interpolation},m={...o,interpolation:h};c.services.interpolator=new qg(m)}return c.translator=new vo(c.services,o),c.translator.on("*",(p,...h)=>{c.emit(p,...h)}),c.init(o,i),c.translator.options=o,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 Tt=mr.createInstance();Tt.createInstance;Tt.dir;Tt.init;Tt.loadResources;Tt.reloadResources;Tt.use;Tt.changeLanguage;Tt.getFixedT;Tt.t;Tt.exists;Tt.setDefaultNamespace;Tt.hasLoadedNamespace;Tt.loadNamespaces;Tt.loadLanguages;var af={exports:{}},pe={};var Xg;function Fx(){if(Xg)return pe;Xg=1;var l=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),x=Symbol.iterator;function E(T){return T===null||typeof T!="object"?null:(T=x&&T[x]||T["@@iterator"],typeof T=="function"?T:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,L={};function Q(T,q,I){this.props=T,this.context=q,this.refs=L,this.updater=I||N}Q.prototype.isReactComponent={},Q.prototype.setState=function(T,q){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,q,"setState")},Q.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function M(){}M.prototype=Q.prototype;function B(T,q,I){this.props=T,this.context=q,this.refs=L,this.updater=I||N}var P=B.prototype=new M;P.constructor=B,O(P,Q.prototype),P.isPureReactComponent=!0;var ee=Array.isArray;function Y(){}var _={H:null,A:null,T:null,S:null},K=Object.prototype.hasOwnProperty;function $(T,q,I){var ae=I.ref;return{$$typeof:l,type:T,key:q,ref:ae!==void 0?ae:null,props:I}}function Z(T,q){return $(T.type,q,T.props)}function F(T){return typeof T=="object"&&T!==null&&T.$$typeof===l}function te(T){var q={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(I){return q[I]})}var ie=/\/+/g;function ce(T,q){return typeof T=="object"&&T!==null&&T.key!=null?te(""+T.key):q.toString(36)}function he(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(Y,Y):(T.status="pending",T.then(function(q){T.status==="pending"&&(T.status="fulfilled",T.value=q)},function(q){T.status==="pending"&&(T.status="rejected",T.reason=q)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function z(T,q,I,ae,ve){var we=typeof T;(we==="undefined"||we==="boolean")&&(T=null);var ze=!1;if(T===null)ze=!0;else switch(we){case"bigint":case"string":case"number":ze=!0;break;case"object":switch(T.$$typeof){case l:case n:ze=!0;break;case v:return ze=T._init,z(ze(T._payload),q,I,ae,ve)}}if(ze)return ve=ve(T),ze=ae===""?"."+ce(T,0):ae,ee(ve)?(I="",ze!=null&&(I=ze.replace(ie,"$&/")+"/"),z(ve,q,I,"",function(ri){return ri})):ve!=null&&(F(ve)&&(ve=Z(ve,I+(ve.key==null||T&&T.key===ve.key?"":(""+ve.key).replace(ie,"$&/")+"/")+ze)),q.push(ve)),1;ze=0;var Et=ae===""?".":ae+":";if(ee(T))for(var Ie=0;Ie<T.length;Ie++)ae=T[Ie],we=Et+ce(ae,Ie),ze+=z(ae,q,I,we,ve);else if(Ie=E(T),typeof Ie=="function")for(T=Ie.call(T),Ie=0;!(ae=T.next()).done;)ae=ae.value,we=Et+ce(ae,Ie++),ze+=z(ae,q,I,we,ve);else if(we==="object"){if(typeof T.then=="function")return z(he(T),q,I,ae,ve);throw q=String(T),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return ze}function J(T,q,I){if(T==null)return T;var ae=[],ve=0;return z(T,ae,"","",function(we){return q.call(I,we,ve++)}),ae}function ne(T){if(T._status===-1){var q=T._result;q=q(),q.then(function(I){(T._status===0||T._status===-1)&&(T._status=1,T._result=I)},function(I){(T._status===0||T._status===-1)&&(T._status=2,T._result=I)}),T._status===-1&&(T._status=0,T._result=q)}if(T._status===1)return T._result.default;throw T._result}var Ee=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},Ne={map:J,forEach:function(T,q,I){J(T,function(){q.apply(this,arguments)},I)},count:function(T){var q=0;return J(T,function(){q++}),q},toArray:function(T){return J(T,function(q){return q})||[]},only:function(T){if(!F(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return pe.Activity=y,pe.Children=Ne,pe.Component=Q,pe.Fragment=i,pe.Profiler=o,pe.PureComponent=B,pe.StrictMode=s,pe.Suspense=h,pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=_,pe.__COMPILER_RUNTIME={__proto__:null,c:function(T){return _.H.useMemoCache(T)}},pe.cache=function(T){return function(){return T.apply(null,arguments)}},pe.cacheSignal=function(){return null},pe.cloneElement=function(T,q,I){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var ae=O({},T.props),ve=T.key;if(q!=null)for(we in q.key!==void 0&&(ve=""+q.key),q)!K.call(q,we)||we==="key"||we==="__self"||we==="__source"||we==="ref"&&q.ref===void 0||(ae[we]=q[we]);var we=arguments.length-2;if(we===1)ae.children=I;else if(1<we){for(var ze=Array(we),Et=0;Et<we;Et++)ze[Et]=arguments[Et+2];ae.children=ze}return $(T.type,ve,ae)},pe.createContext=function(T){return T={$$typeof:d,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:c,_context:T},T},pe.createElement=function(T,q,I){var ae,ve={},we=null;if(q!=null)for(ae in q.key!==void 0&&(we=""+q.key),q)K.call(q,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(ve[ae]=q[ae]);var ze=arguments.length-2;if(ze===1)ve.children=I;else if(1<ze){for(var Et=Array(ze),Ie=0;Ie<ze;Ie++)Et[Ie]=arguments[Ie+2];ve.children=Et}if(T&&T.defaultProps)for(ae in ze=T.defaultProps,ze)ve[ae]===void 0&&(ve[ae]=ze[ae]);return $(T,we,ve)},pe.createRef=function(){return{current:null}},pe.forwardRef=function(T){return{$$typeof:p,render:T}},pe.isValidElement=F,pe.lazy=function(T){return{$$typeof:v,_payload:{_status:-1,_result:T},_init:ne}},pe.memo=function(T,q){return{$$typeof:m,type:T,compare:q===void 0?null:q}},pe.startTransition=function(T){var q=_.T,I={};_.T=I;try{var ae=T(),ve=_.S;ve!==null&&ve(I,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(Y,Ee)}catch(we){Ee(we)}finally{q!==null&&I.types!==null&&(q.types=I.types),_.T=q}},pe.unstable_useCacheRefresh=function(){return _.H.useCacheRefresh()},pe.use=function(T){return _.H.use(T)},pe.useActionState=function(T,q,I){return _.H.useActionState(T,q,I)},pe.useCallback=function(T,q){return _.H.useCallback(T,q)},pe.useContext=function(T){return _.H.useContext(T)},pe.useDebugValue=function(){},pe.useDeferredValue=function(T,q){return _.H.useDeferredValue(T,q)},pe.useEffect=function(T,q){return _.H.useEffect(T,q)},pe.useEffectEvent=function(T){return _.H.useEffectEvent(T)},pe.useId=function(){return _.H.useId()},pe.useImperativeHandle=function(T,q,I){return _.H.useImperativeHandle(T,q,I)},pe.useInsertionEffect=function(T,q){return _.H.useInsertionEffect(T,q)},pe.useLayoutEffect=function(T,q){return _.H.useLayoutEffect(T,q)},pe.useMemo=function(T,q){return _.H.useMemo(T,q)},pe.useOptimistic=function(T,q){return _.H.useOptimistic(T,q)},pe.useReducer=function(T,q,I){return _.H.useReducer(T,q,I)},pe.useRef=function(T){return _.H.useRef(T)},pe.useState=function(T){return _.H.useState(T)},pe.useSyncExternalStore=function(T,q,I){return _.H.useSyncExternalStore(T,q,I)},pe.useTransition=function(){return _.H.useTransition()},pe.version="19.2.3",pe}var Qg;function Tr(){return Qg||(Qg=1,af.exports=Fx()),af.exports}var w=Tr();const or=Mv(w),Px=(l,n,i,s)=>{const o=[i,{code:n,...s||{}}];if(l?.services?.logger?.forward)return l.services.logger.forward(o,"warn","react-i18next::",!0);al(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),l?.services?.logger?.warn?l.services.logger.warn(...o):console?.warn&&console.warn(...o)},Kg={},Hv=(l,n,i,s)=>{al(i)&&Kg[i]||(al(i)&&(Kg[i]=new Date),Px(l,n,i,s))},$v=(l,n)=>()=>{if(l.isInitialized)n();else{const i=()=>{setTimeout(()=>{l.off("initialized",i)},0),n()};l.on("initialized",i)}},_f=(l,n,i)=>{l.loadNamespaces(n,$v(l,i))},Zg=(l,n,i,s)=>{if(al(i)&&(i=[i]),l.options.preload&&l.options.preload.indexOf(n)>-1)return _f(l,i,s);i.forEach(o=>{l.options.ns.indexOf(o)<0&&l.options.ns.push(o)}),l.loadLanguages(n,$v(l,s))},Ix=(l,n,i={})=>!n.languages||!n.languages.length?(Hv(n,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:n.languages}),!0):n.hasLoadedNamespace(l,{lng:i.lng,precheck:(s,o)=>{if(i.bindI18n&&i.bindI18n.indexOf("languageChanging")>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!o(s.isLanguageChangingTo,l))return!1}}),al=l=>typeof l=="string",Wx=l=>typeof l=="object"&&l!==null,e1=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,t1={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},n1=l=>t1[l],a1=l=>l.replace(e1,n1);let kf={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:a1,transDefaultProps:void 0};const l1=(l={})=>{kf={...kf,...l}},i1=()=>kf;let Vv;const r1=l=>{Vv=l},s1=()=>Vv,o1={type:"3rdParty",init(l){l1(l.options.react),r1(l)}},u1=w.createContext();class c1{constructor(){this.usedNamespaces={}}addUsedNamespaces(n){n.forEach(i=>{this.usedNamespaces[i]||(this.usedNamespaces[i]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var lf={exports:{}},rf={};var Jg;function f1(){if(Jg)return rf;Jg=1;var l=Tr();function n(y,x){return y===x&&(y!==0||1/y===1/x)||y!==y&&x!==x}var i=typeof Object.is=="function"?Object.is:n,s=l.useState,o=l.useEffect,c=l.useLayoutEffect,d=l.useDebugValue;function p(y,x){var E=x(),N=s({inst:{value:E,getSnapshot:x}}),O=N[0].inst,L=N[1];return c(function(){O.value=E,O.getSnapshot=x,h(O)&&L({inst:O})},[y,E,x]),o(function(){return h(O)&&L({inst:O}),y(function(){h(O)&&L({inst:O})})},[y]),d(E),E}function h(y){var x=y.getSnapshot;y=y.value;try{var E=x();return!i(y,E)}catch{return!0}}function m(y,x){return x()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:p;return rf.useSyncExternalStore=l.useSyncExternalStore!==void 0?l.useSyncExternalStore:v,rf}var Fg;function d1(){return Fg||(Fg=1,lf.exports=f1()),lf.exports}var h1=d1();const p1=(l,n)=>al(n)?n:Wx(n)&&al(n.defaultValue)?n.defaultValue:Array.isArray(l)?l[l.length-1]:l,m1={t:p1,ready:!1},g1=()=>()=>{},Ot=(l,n={})=>{const{i18n:i}=n,{i18n:s,defaultNS:o}=w.useContext(u1)||{},c=i||s||s1();c&&!c.reportNamespaces&&(c.reportNamespaces=new c1),c||Hv(c,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const d=w.useMemo(()=>({...i1(),...c?.options?.react,...n}),[c,n]),{useSuspense:p,keyPrefix:h}=d,m=o||c?.options?.defaultNS,v=al(m)?[m]:m||["translation"],y=w.useMemo(()=>v,v);c?.reportNamespaces?.addUsedNamespaces?.(y);const x=w.useRef(0),E=w.useCallback($=>{if(!c)return g1;const{bindI18n:Z,bindI18nStore:F}=d,te=()=>{x.current+=1,$()};return Z&&c.on(Z,te),F&&c.store.on(F,te),()=>{Z&&Z.split(" ").forEach(ie=>c.off(ie,te)),F&&F.split(" ").forEach(ie=>c.store.off(ie,te))}},[c,d]),N=w.useRef(),O=w.useCallback(()=>{if(!c)return m1;const $=!!(c.isInitialized||c.initializedStoreOnce)&&y.every(he=>Ix(he,c,d)),Z=n.lng||c.language,F=x.current,te=N.current;if(te&&te.ready===$&&te.lng===Z&&te.keyPrefix===h&&te.revision===F)return te;const ce={t:c.getFixedT(Z,d.nsMode==="fallback"?y:y[0],h),ready:$,lng:Z,keyPrefix:h,revision:F};return N.current=ce,ce},[c,y,h,d,n.lng]),[L,Q]=w.useState(0),{t:M,ready:B}=h1.useSyncExternalStore(E,O,O);w.useEffect(()=>{if(c&&!B&&!p){const $=()=>Q(Z=>Z+1);n.lng?Zg(c,n.lng,y,$):_f(c,y,$)}},[c,n.lng,y,B,p,L]);const P=c||{},ee=w.useRef(null),Y=w.useRef(),_=$=>{const Z=Object.getOwnPropertyDescriptors($);Z.__original&&delete Z.__original;const F=Object.create(Object.getPrototypeOf($),Z);if(!Object.prototype.hasOwnProperty.call(F,"__original"))try{Object.defineProperty(F,"__original",{value:$,writable:!1,enumerable:!1,configurable:!1})}catch{}return F},K=w.useMemo(()=>{const $=P,Z=$?.language;let F=$;$&&(ee.current&&ee.current.__original===$?Y.current!==Z?(F=_($),ee.current=F,Y.current=Z):F=ee.current:(F=_($),ee.current=F,Y.current=Z));const te=[M,F,B];return te.t=M,te.i18n=F,te.ready=B,te},[M,P,B,P.resolvedLanguage,P.language,P.languages]);if(c&&p&&!B)throw new Promise($=>{const Z=()=>$();n.lng?Zg(c,n.lng,y,Z):_f(c,y,Z)});return K},v1="ParoiCMS Site Generator",y1="Step {{stepNumber}}",b1="Describe the structure of your website: what types of pages it has, which sections they contain, and what sub-parts you need. The AI will generate a complete site schema for you.",S1='<a href="https://www.paroicms.org/" target="_blank">ParoiCMS</a> (or <a href="https://gitlab.com/paroi/opensource/paroicms" target="_blank">on GitLab</a>) <span class="WelcomePage-footerSeparator">—</span> <a href="https://paleo.paroi.tech/" target="_blank">Contact me</a>',x1="<p>Describe here the data structure of your website: what types of pages it has and in which sections. In a page type, it is also possible to describe lists of sub-parts.</p>",E1="Create a website about… It will include a blog section, a list of pages, and a dedicated section about… that itself contains the following sub-sections: … The home page should contain an image carousel and a list of subparts, each containing an image and a text.",w1="Add a new text field to the page…",C1="Modify the Site Schema",T1="Create a Site Schema",N1="Generate the website",R1="Generate site with sample data (recommended)",j1="Generate an empty site",O1="Open the admin-ui",A1="Open the site",D1="Generated Schema",_1="Tree View",k1="Site Schema",M1="Node Types",z1="Labels",L1="Select language",U1="Explanations",B1="Current Activity",H1="An error occurred: {{ message }}",$1="An error occurred",V1="Start Again",q1="Step {{stepNumber}}: {{kind}}",G1="This step is in progress…",Y1="This step failed.",X1="This step had no effect.",Q1="No session data available",K1="Step not found",Z1="Welcome to ParoiCMS Site Generator",J1="Close and start again",F1="Reset Schema",P1="unknown error",I1="Create New Site",W1="Generating your site…",eE="The site is generated",tE="Email:",nE="Password:",aE="Start",lE="You are about to generate your website.",iE="Cancel",rE="Confirm",sE="Apply Changes",oE="Quick access to your admin space",uE="Site URL:",cE="Admin URL:",fE="Copy all information to clipboard",dE="Copied!",hE="<p>Welcome to the ParoiCMS Site Generator tool. This tool helps you create a new website with just a few steps.</p><p>To get started, please verify you're human by completing the CAPTCHA below.</p>",pE="Initial Schema Creation",mE="Schema Update",gE="Site Generation",vE={initial1:"Analyzing your request for site structure…",initial2:"Choosing from predefined fields…",updating1:"Analyzing your update request…",updating2:"Updating schema structure with changes…",generatingSite:"Building your website…",generatingContent:"Creating sample content for your site…"},yE="Login Email",bE="Login Password",SE="Generated Site",xE="Quick Login",EE="Quick Login URL",wE="Your session has expired. Please refresh the page to start a new session.",CE="Failed to submit your prompt. Please try again.",TE="Failed to generate the site. Please try again.",NE='The source code of this generator is available <a href="https://gitlab.com/paroi/opensource/paroicms/-/tree/main/plugins/site-generator-plugin?ref_type=heads" target="_blank">on GitLab</a> — <a href="https://www.paroicms.org/en" target="_blank">ParoiCMS</a> — Contact me <a href="https://paroi.tech/en" target="_blank">here</a>.',RE="Extend your session",jE="Failed to refresh your session. Please try again.",OE="Error connecting to server. Please check your connection and try again.",AE="Tip: If you want to start over, open the generator in a new tab and close this one.",DE={title:v1,stepNumber:y1,new:"New",welcomeDescription:b1,footerLinks:S1,startInstruction:x1,createPromptPlaceholder:E1,updatePromptPlaceholder:w1,modifySchema:C1,createSchema:T1,generateTheWebsite:N1,generateSiteWithData:R1,generateEmptySite:j1,administration:O1,viewSite:A1,generatedSchema:D1,treeView:_1,siteSchema:k1,nodeTypes:M1,labels:z1,languageSelector:L1,explanation:U1,currentActivity:B1,errorOccurred:H1,unknownErrorOccurred:$1,startAgain:V1,stepTitle:q1,stepPending:G1,stepFailed:Y1,stepNoEffect:X1,noSessionData:Q1,stepNotFound:K1,welcomeTitle:Z1,reset:J1,resetSchema:F1,unknownError:P1,createNewSite:I1,generatingSite:W1,siteGenerated:eE,email:tE,password:nE,start:aE,aboutToGenerateWebsite:lE,cancel:iE,confirm:rE,applyChanges:sE,openAdminUI:oE,siteUrl:uE,adminUrl:cE,copyToClipboard:fE,copied:dE,introduction:hE,initialSchema:pE,updateSchema:mE,generateSite:gE,activity:vE,loginEmail:yE,loginPassword:bE,generatedSite:SE,quickLogin:xE,quickLoginUrl:EE,sessionExpired:wE,promptSubmissionFailed:CE,generationFailed:TE,footerText:NE,extendYourSession:RE,sessionRenewalFailed:jE,errorConnectingToServer:OE,newTabRestartMessage:AE},_E="ParoiCMS - Générateur de Site",kE="Étape {{stepNumber}}",ME="Décrivez la structure de votre site web : quels types de pages, quelles sections, et quelles sous-parties vous souhaitez. L'IA générera un schéma de site complet pour vous.",zE='<a href="https://www.paroicms.org/" target="_blank">ParoiCMS</a> (ou <a href="https://gitlab.com/paroi/opensource/paroicms" target="_blank">sur GitLab</a>) <span class="WelcomePage-footerSeparator">—</span> <a href="https://paleo.paroi.tech/" target="_blank">Contactez-moi</a>',LE="<p>Décrivez ici la structure des données de votre site web : quels types de pages, dans quelles rubriques. Il est également possible de décrire des listes de sous-parties de pages.</p>",UE="Génère un site web à propos de… Il contiendra une rubrique blog, une liste de pages, une rubrique dédiée à… contenant elle-même les sous-rubriques suivantes : … La page d'accueil doit contenir un carrousel d'images, et une liste de sous-parties contenant chacune une image et un texte.",BE="Ajoute un nouveau champ texte à la page…",HE="Modifier le schéma du site",$E="Créer un schéma de site",VE="Générer le site web",qE="Générer le site avec des données d'exemple (recommandé)",GE="Générer un site vide",YE="Ouvrir l'espace d'administration du site",XE="Ouvrir le site",QE="Schéma généré",KE="Arborescence",ZE="Schéma du site",JE="Types de nœuds",FE="Libellés",PE="Sélectionner la langue",IE="Explications",WE="Activité en cours",ew="Une erreur est survenue : {{ message }}",tw="Une erreur est survenue",nw="Recommencer",aw="Étape {{stepNumber}} : {{kind}}",lw="Cette étape est en cours…",iw="Cette étape a échoué.",rw="Cette étape n'a eu aucun effet.",sw="Données de session non disponibles",ow="Étape introuvable",uw="Bienvenue sur le générateur de site ParoiCMS",cw="Fermer et réinitialiser",fw="Réinitialiser le schéma",dw="erreur inconnue",hw="Créer un nouveau site",pw="Génération de votre site…",mw="Le site est généré",gw="Email :",vw="Mot de passe :",yw="Commencer",bw="Vous êtes sur le point de générer votre site web.",Sw="Annuler",xw="Confirmer",Ew="Appliquer les modifications",ww="Connexion rapide à votre espace d'administration",Cw="URL du site :",Tw="URL d'admin :",Nw="Copier toutes les informations dans le presse-papier",Rw="Copié !",jw="<p>Bienvenue sur l'outil de génération de site ParoiCMS. Cet outil vous aide à créer un nouveau site web en quelques étapes.</p><p>Pour commencer, veuillez vérifier que vous êtes humain en complétant le CAPTCHA ci-dessous.</p>",Ow="Création du schéma initial",Aw="Mise à jour du schéma",Dw="Génération du site",_w={initial1:"Analyse de votre demande pour la structure du site…",initial2:"Choix parmi les champs prédéfinis…",updating1:"Analyse de votre demande de mise à jour…",updating2:"Mise à jour de la structure du schéma…",generatingSite:"Construction de votre site web…",generatingContent:"Création de contenu exemple pour votre site…"},kw="Email de connexion",Mw="Mot de passe",zw="Site généré",Lw="Connexion rapide",Uw="URL de connexion rapide",Bw="Votre session a expiré. Veuillez rafraîchir la page pour démarrer une nouvelle session.",Hw="Échec de l'envoi de votre demande. Veuillez réessayer.",$w="Échec de la génération du site. Veuillez réessayer.",Vw='Le code source de ce générateur est disponible <a href="https://gitlab.com/paroi/opensource/paroicms/-/tree/main/plugins/site-generator-plugin?ref_type=heads" target="_blank">sur GitLab</a> — <a href="https://www.paroicms.org/fr" target="_blank">ParoiCMS</a> — Contactez-moi <a href="https://paroi.tech/fr" target="_blank">ici</a>.',qw="Prolonger votre session",Gw="Échec du renouvellement de votre session. Veuillez réessayer.",Yw="Erreur de connexion au serveur. Veuillez vérifier votre connexion et réessayer.",Xw="Astuce : si vous souhaitez repartir de zéro, ouvrez le générateur dans un nouvel onglet et fermez celui-ci.",Qw={title:_E,stepNumber:kE,new:"Nouveau",welcomeDescription:ME,footerLinks:zE,startInstruction:LE,createPromptPlaceholder:UE,updatePromptPlaceholder:BE,modifySchema:HE,createSchema:$E,generateTheWebsite:VE,generateSiteWithData:qE,generateEmptySite:GE,administration:YE,viewSite:XE,generatedSchema:QE,treeView:KE,siteSchema:ZE,nodeTypes:JE,labels:FE,languageSelector:PE,explanation:IE,currentActivity:WE,errorOccurred:ew,unknownErrorOccurred:tw,startAgain:nw,stepTitle:aw,stepPending:lw,stepFailed:iw,stepNoEffect:rw,noSessionData:sw,stepNotFound:ow,welcomeTitle:uw,reset:cw,resetSchema:fw,unknownError:dw,createNewSite:hw,generatingSite:pw,siteGenerated:mw,email:gw,password:vw,start:yw,aboutToGenerateWebsite:bw,cancel:Sw,confirm:xw,applyChanges:Ew,openAdminUI:ww,siteUrl:Cw,adminUrl:Tw,copyToClipboard:Nw,copied:Rw,introduction:jw,initialSchema:Ow,updateSchema:Aw,generateSite:Dw,activity:_w,loginEmail:kw,loginPassword:Mw,generatedSite:zw,quickLogin:Lw,quickLoginUrl:Uw,sessionExpired:Bw,promptSubmissionFailed:Hw,generationFailed:$w,footerText:Vw,extendYourSession:qw,sessionRenewalFailed:Gw,errorConnectingToServer:Yw,newTabRestartMessage:Xw},Kw=`<p>Welcome!</p>
1
+ function $v(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}function Vv(l){if(Object.prototype.hasOwnProperty.call(l,"__esModule"))return l;var n=l.default;if(typeof n=="function"){var i=function s(){var o=!1;try{o=this instanceof s}catch{}return o?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(l).forEach(function(s){var o=Object.getOwnPropertyDescriptor(l,s);Object.defineProperty(i,s,o.get?o:{enumerable:!0,get:function(){return l[s]}})}),i}var nf={exports:{}},nr={};var Lg;function Lx(){if(Lg)return nr;Lg=1;var l=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function i(s,o,c){var f=null;if(c!==void 0&&(f=""+c),o.key!==void 0&&(f=""+o.key),"key"in o){c={};for(var p in o)p!=="key"&&(c[p]=o[p])}else c=o;return o=c.ref,{$$typeof:l,type:s,key:f,ref:o!==void 0?o:null,props:c}}return nr.Fragment=n,nr.jsx=i,nr.jsxs=i,nr}var Ug;function Ux(){return Ug||(Ug=1,nf.exports=Lx()),nf.exports}var b=Ux();const de=l=>typeof l=="string",ar=()=>{let l,n;const i=new Promise((s,o)=>{l=s,n=o});return i.resolve=l,i.reject=n,i},Bg=l=>l==null?"":""+l,Bx=(l,n,i)=>{l.forEach(s=>{n[s]&&(i[s]=n[s])})},Hx=/###/g,Hg=l=>l&&l.indexOf("###")>-1?l.replace(Hx,"."):l,$g=l=>!l||de(l),vr=(l,n,i)=>{const s=de(n)?n.split("."):n;let o=0;for(;o<s.length-1;){if($g(l))return{};const c=Hg(s[o]);!l[c]&&i&&(l[c]=new i),Object.prototype.hasOwnProperty.call(l,c)?l=l[c]:l={},++o}return $g(l)?{}:{obj:l,k:Hg(s[o])}},Vg=(l,n,i)=>{const{obj:s,k:o}=vr(l,n,Object);if(s!==void 0||n.length===1){s[o]=i;return}let c=n[n.length-1],f=n.slice(0,n.length-1),p=vr(l,f,Object);for(;p.obj===void 0&&f.length;)c=`${f[f.length-1]}.${c}`,f=f.slice(0,f.length-1),p=vr(l,f,Object),p?.obj&&typeof p.obj[`${p.k}.${c}`]<"u"&&(p.obj=void 0);p.obj[`${p.k}.${c}`]=i},$x=(l,n,i,s)=>{const{obj:o,k:c}=vr(l,n,Object);o[c]=o[c]||[],o[c].push(i)},yo=(l,n)=>{const{obj:i,k:s}=vr(l,n);if(i&&Object.prototype.hasOwnProperty.call(i,s))return i[s]},Vx=(l,n,i)=>{const s=yo(l,i);return s!==void 0?s:yo(n,i)},qv=(l,n,i)=>{for(const s in n)s!=="__proto__"&&s!=="constructor"&&(s in l?de(l[s])||l[s]instanceof String||de(n[s])||n[s]instanceof String?i&&(l[s]=n[s]):qv(l[s],n[s],i):l[s]=n[s]);return l},Fl=l=>l.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var qx={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Gx=l=>de(l)?l.replace(/[&<>"'\/]/g,n=>qx[n]):l;class Yx{constructor(n){this.capacity=n,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(n){const i=this.regExpMap.get(n);if(i!==void 0)return i;const s=new RegExp(n);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(n,s),this.regExpQueue.push(n),s}}const Xx=[" ",",","?","!",";"],Qx=new Yx(20),Kx=(l,n,i)=>{n=n||"",i=i||"";const s=Xx.filter(f=>n.indexOf(f)<0&&i.indexOf(f)<0);if(s.length===0)return!0;const o=Qx.getRegExp(`(${s.map(f=>f==="?"?"\\?":f).join("|")})`);let c=!o.test(l);if(!c){const f=l.indexOf(i);f>0&&!o.test(l.substring(0,f))&&(c=!0)}return c},kf=(l,n,i=".")=>{if(!l)return;if(l[n])return Object.prototype.hasOwnProperty.call(l,n)?l[n]:void 0;const s=n.split(i);let o=l;for(let c=0;c<s.length;){if(!o||typeof o!="object")return;let f,p="";for(let h=c;h<s.length;++h)if(h!==c&&(p+=i),p+=s[h],f=o[p],f!==void 0){if(["string","number","boolean"].indexOf(typeof f)>-1&&h<s.length-1)continue;c+=h-c+1;break}o=f}return o},Tr=l=>l?.replace("_","-"),Zx={type:"logger",log(l){this.output("log",l)},warn(l){this.output("warn",l)},error(l){this.output("error",l)},output(l,n){console?.[l]?.apply?.(console,n)}};class bo{constructor(n,i={}){this.init(n,i)}init(n,i={}){this.prefix=i.prefix||"i18next:",this.logger=n||Zx,this.options=i,this.debug=i.debug}log(...n){return this.forward(n,"log","",!0)}warn(...n){return this.forward(n,"warn","",!0)}error(...n){return this.forward(n,"error","")}deprecate(...n){return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(n,i,s,o){return o&&!this.debug?null:(de(n[0])&&(n[0]=`${s}${this.prefix} ${n[0]}`),this.logger[i](n))}create(n){return new bo(this.logger,{prefix:`${this.prefix}:${n}:`,...this.options})}clone(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new bo(this.logger,n)}}var An=new bo;class Oo{constructor(){this.observers={}}on(n,i){return n.split(" ").forEach(s=>{this.observers[s]||(this.observers[s]=new Map);const o=this.observers[s].get(i)||0;this.observers[s].set(i,o+1)}),this}off(n,i){if(this.observers[n]){if(!i){delete this.observers[n];return}this.observers[n].delete(i)}}emit(n,...i){this.observers[n]&&Array.from(this.observers[n].entries()).forEach(([o,c])=>{for(let f=0;f<c;f++)o(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,c])=>{for(let f=0;f<c;f++)o.apply(o,[n,...i])})}}class qg extends Oo{constructor(n,i={ns:["translation"],defaultNS:"translation"}){super(),this.data=n||{},this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}removeNamespaces(n){const i=this.options.ns.indexOf(n);i>-1&&this.options.ns.splice(i,1)}getResource(n,i,s,o={}){const c=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,f=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let p;n.indexOf(".")>-1?p=n.split("."):(p=[n,i],s&&(Array.isArray(s)?p.push(...s):de(s)&&c?p.push(...s.split(c)):p.push(s)));const h=yo(this.data,p);return!h&&!i&&!s&&n.indexOf(".")>-1&&(n=p[0],i=p[1],s=p.slice(2).join(".")),h||!f||!de(s)?h:kf(this.data?.[n]?.[i],s,c)}addResource(n,i,s,o,c={silent:!1}){const f=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator;let p=[n,i];s&&(p=p.concat(f?s.split(f):s)),n.indexOf(".")>-1&&(p=n.split("."),o=i,i=p[1]),this.addNamespaces(i),Vg(this.data,p,o),c.silent||this.emit("added",n,i,s,o)}addResources(n,i,s,o={silent:!1}){for(const c in s)(de(s[c])||Array.isArray(s[c]))&&this.addResource(n,i,c,s[c],{silent:!0});o.silent||this.emit("added",n,i,s)}addResourceBundle(n,i,s,o,c,f={silent:!1,skipCopy:!1}){let p=[n,i];n.indexOf(".")>-1&&(p=n.split("."),o=s,s=i,i=p[1]),this.addNamespaces(i);let h=yo(this.data,p)||{};f.skipCopy||(s=JSON.parse(JSON.stringify(s))),o?qv(h,s,c):h={...h,...s},Vg(this.data,p,h),f.silent||this.emit("added",n,i,s)}removeResourceBundle(n,i){this.hasResourceBundle(n,i)&&delete this.data[n][i],this.removeNamespaces(i),this.emit("removed",n,i)}hasResourceBundle(n,i){return this.getResource(n,i)!==void 0}getResourceBundle(n,i){return i||(i=this.options.defaultNS),this.getResource(n,i)}getDataByLanguage(n){return this.data[n]}hasLanguageSomeTranslations(n){const i=this.getDataByLanguage(n);return!!(i&&Object.keys(i)||[]).find(o=>i[o]&&Object.keys(i[o]).length>0)}toJSON(){return this.data}}var Gv={processors:{},addPostProcessor(l){this.processors[l.name]=l},handle(l,n,i,s,o){return l.forEach(c=>{n=this.processors[c]?.process(n,i,s,o)??n}),n}};const Yv=Symbol("i18next/PATH_KEY");function Jx(){const l=[],n=Object.create(null);let i;return n.get=(s,o)=>(i?.revoke?.(),o===Yv?l:(l.push(o),i=Proxy.revocable(s,n),i.proxy)),Proxy.revocable(Object.create(null),n).proxy}function Mf(l,n){const{[Yv]:i}=l(Jx());return i.join(n?.keySeparator??".")}const Gg={},af=l=>!de(l)&&typeof l!="boolean"&&typeof l!="number";class So extends Oo{constructor(n,i={}){super(),Bx(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,this),this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=An.create("translator")}changeLanguage(n){n&&(this.language=n)}exists(n,i={interpolation:{}}){const s={...i};if(n==null)return!1;const o=this.resolve(n,s);if(o?.res===void 0)return!1;const c=af(o.res);return!(s.returnObjects===!1&&c)}extractFromKey(n,i){let s=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let c=i.ns||this.options.defaultNS||[];const f=s&&n.indexOf(s)>-1,p=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!Kx(n,s,o);if(f&&!p){const h=n.match(this.interpolator.nestingRegexp);if(h&&h.length>0)return{key:n,namespaces:de(c)?[c]:c};const m=n.split(s);(s!==o||s===o&&this.options.ns.indexOf(m[0])>-1)&&(c=m.shift()),n=m.join(o)}return{key:n,namespaces:de(c)?[c]:c}}translate(n,i,s){let o=typeof i=="object"?{...i}:i;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),n==null)return"";typeof n=="function"&&(n=Mf(n,{...this.options,...o})),Array.isArray(n)||(n=[String(n)]);const c=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,f=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:p,namespaces:h}=this.extractFromKey(n[n.length-1],o),m=h[h.length-1];let y=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;y===void 0&&(y=":");const v=o.lng||this.language,x=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(v?.toLowerCase()==="cimode")return x?c?{res:`${m}${y}${p}`,usedKey:p,exactUsedKey:p,usedLng:v,usedNS:m,usedParams:this.getUsedParamsDetails(o)}:`${m}${y}${p}`:c?{res:p,usedKey:p,exactUsedKey:p,usedLng:v,usedNS:m,usedParams:this.getUsedParamsDetails(o)}:p;const E=this.resolve(n,o);let R=E?.res;const A=E?.usedKey||p,B=E?.exactUsedKey||p,Q=["[object Number]","[object Function]","[object RegExp]"],M=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,U=!this.i18nFormat||this.i18nFormat.handleAsObject,P=o.count!==void 0&&!de(o.count),ee=So.hasDefaultValue(o),Y=P?this.pluralResolver.getSuffix(v,o.count,o):"",_=o.ordinal&&P?this.pluralResolver.getSuffix(v,o.count,{ordinal:!1}):"",K=P&&!o.ordinal&&o.count===0,$=K&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${Y}`]||o[`defaultValue${_}`]||o.defaultValue;let Z=R;U&&!R&&ee&&(Z=$);const F=af(Z),te=Object.prototype.toString.apply(Z);if(U&&Z&&F&&Q.indexOf(te)<0&&!(de(M)&&Array.isArray(Z))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const ie=this.options.returnedObjectHandler?this.options.returnedObjectHandler(A,Z,{...o,ns:h}):`key '${p} (${this.language})' returned an object instead of string.`;return c?(E.res=ie,E.usedParams=this.getUsedParamsDetails(o),E):ie}if(f){const ie=Array.isArray(Z),ce=ie?[]:{},he=ie?B:A;for(const z in Z)if(Object.prototype.hasOwnProperty.call(Z,z)){const J=`${he}${f}${z}`;ee&&!R?ce[z]=this.translate(J,{...o,defaultValue:af($)?$[z]:void 0,joinArrays:!1,ns:h}):ce[z]=this.translate(J,{...o,joinArrays:!1,ns:h}),ce[z]===J&&(ce[z]=Z[z])}R=ce}}else if(U&&de(M)&&Array.isArray(R))R=R.join(M),R&&(R=this.extendTranslation(R,n,o,s));else{let ie=!1,ce=!1;!this.isValidLookup(R)&&ee&&(ie=!0,R=$),this.isValidLookup(R)||(ce=!0,R=p);const z=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&ce?void 0:R,J=ee&&$!==R&&this.options.updateMissing;if(ce||ie||J){if(this.logger.log(J?"updateKey":"missingKey",v,m,p,J?$:R),f){const T=this.resolve(p,{...o,keySeparator:!1});T&&T.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 ne=[];const Ee=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ee&&Ee[0])for(let T=0;T<Ee.length;T++)ne.push(Ee[T]);else this.options.saveMissingTo==="all"?ne=this.languageUtils.toResolveHierarchy(o.lng||this.language):ne.push(o.lng||this.language);const Ne=(T,q,I)=>{const ae=ee&&I!==R?I:z;this.options.missingKeyHandler?this.options.missingKeyHandler(T,m,q,ae,J,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(T,m,q,ae,J,o),this.emit("missingKey",T,m,q,R)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?ne.forEach(T=>{const q=this.pluralResolver.getSuffixes(T,o);K&&o[`defaultValue${this.options.pluralSeparator}zero`]&&q.indexOf(`${this.options.pluralSeparator}zero`)<0&&q.push(`${this.options.pluralSeparator}zero`),q.forEach(I=>{Ne([T],p+I,o[`defaultValue${I}`]||$)})}):Ne(ne,p,$))}R=this.extendTranslation(R,n,o,E,s),ce&&R===p&&this.options.appendNamespaceToMissingKey&&(R=`${m}${y}${p}`),(ce||ie)&&this.options.parseMissingKeyHandler&&(R=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${m}${y}${p}`:p,ie?R:void 0,o))}return c?(E.res=R,E.usedParams=this.getUsedParamsDetails(o),E):R}extendTranslation(n,i,s,o,c){if(this.i18nFormat?.parse)n=this.i18nFormat.parse(n,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const h=de(n)&&(s?.interpolation?.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let m;if(h){const v=n.match(this.interpolator.nestingRegexp);m=v&&v.length}let y=s.replace&&!de(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(y={...this.options.interpolation.defaultVariables,...y}),n=this.interpolator.interpolate(n,y,s.lng||this.language||o.usedLng,s),h){const v=n.match(this.interpolator.nestingRegexp),x=v&&v.length;m<x&&(s.nest=!1)}!s.lng&&o&&o.res&&(s.lng=this.language||o.usedLng),s.nest!==!1&&(n=this.interpolator.nest(n,(...v)=>c?.[0]===v[0]&&!s.context?(this.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${i[0]}`),null):this.translate(...v,i),s)),s.interpolation&&this.interpolator.reset()}const f=s.postProcess||this.options.postProcess,p=de(f)?[f]:f;return n!=null&&p?.length&&s.applyPostProcessor!==!1&&(n=Gv.handle(p,n,i,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),n}resolve(n,i={}){let s,o,c,f,p;return de(n)&&(n=[n]),n.forEach(h=>{if(this.isValidLookup(s))return;const m=this.extractFromKey(h,i),y=m.key;o=y;let v=m.namespaces;this.options.fallbackNS&&(v=v.concat(this.options.fallbackNS));const x=i.count!==void 0&&!de(i.count),E=x&&!i.ordinal&&i.count===0,R=i.context!==void 0&&(de(i.context)||typeof i.context=="number")&&i.context!=="",A=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);v.forEach(B=>{this.isValidLookup(s)||(p=B,!Gg[`${A[0]}-${B}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(p)&&(Gg[`${A[0]}-${B}`]=!0,this.logger.warn(`key "${o}" for languages "${A.join(", ")}" won't get resolved as namespace "${p}" 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!!!")),A.forEach(Q=>{if(this.isValidLookup(s))return;f=Q;const M=[y];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(M,y,Q,B,i);else{let P;x&&(P=this.pluralResolver.getSuffix(Q,i.count,i));const ee=`${this.options.pluralSeparator}zero`,Y=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(x&&(i.ordinal&&P.indexOf(Y)===0&&M.push(y+P.replace(Y,this.options.pluralSeparator)),M.push(y+P),E&&M.push(y+ee)),R){const _=`${y}${this.options.contextSeparator||"_"}${i.context}`;M.push(_),x&&(i.ordinal&&P.indexOf(Y)===0&&M.push(_+P.replace(Y,this.options.pluralSeparator)),M.push(_+P),E&&M.push(_+ee))}}let U;for(;U=M.pop();)this.isValidLookup(s)||(c=U,s=this.getResource(Q,B,U,i))}))})}),{res:s,usedKey:o,exactUsedKey:c,usedLng:f,usedNS:p}}isValidLookup(n){return n!==void 0&&!(!this.options.returnNull&&n===null)&&!(!this.options.returnEmptyString&&n==="")}getResource(n,i,s,o={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(n,i,s,o):this.resourceStore.getResource(n,i,s,o)}getUsedParamsDetails(n={}){const i=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=n.replace&&!de(n.replace);let o=s?n.replace:n;if(s&&typeof n.count<"u"&&(o.count=n.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!s){o={...o};for(const c of i)delete o[c]}return o}static hasDefaultValue(n){const i="defaultValue";for(const s in n)if(Object.prototype.hasOwnProperty.call(n,s)&&i===s.substring(0,i.length)&&n[s]!==void 0)return!0;return!1}}class Yg{constructor(n){this.options=n,this.supportedLngs=this.options.supportedLngs||!1,this.logger=An.create("languageUtils")}getScriptPartFromCode(n){if(n=Tr(n),!n||n.indexOf("-")<0)return null;const i=n.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))}getLanguagePartFromCode(n){if(n=Tr(n),!n||n.indexOf("-")<0)return n;const i=n.split("-");return this.formatLanguageCode(i[0])}formatLanguageCode(n){if(de(n)&&n.indexOf("-")>-1){let i;try{i=Intl.getCanonicalLocales(n)[0]}catch{}return i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i||(this.options.lowerCaseLng?n.toLowerCase():n)}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}isSupportedCode(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}getBestMatchFromCodes(n){if(!n)return null;let i;return n.forEach(s=>{if(i)return;const o=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(o))&&(i=o)}),!i&&this.options.supportedLngs&&n.forEach(s=>{if(i)return;const o=this.getScriptPartFromCode(s);if(this.isSupportedCode(o))return i=o;const c=this.getLanguagePartFromCode(s);if(this.isSupportedCode(c))return i=c;i=this.options.supportedLngs.find(f=>{if(f===c)return f;if(!(f.indexOf("-")<0&&c.indexOf("-")<0)&&(f.indexOf("-")>0&&c.indexOf("-")<0&&f.substring(0,f.indexOf("-"))===c||f.indexOf(c)===0&&c.length>1))return f})}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}getFallbackCodes(n,i){if(!n)return[];if(typeof n=="function"&&(n=n(i)),de(n)&&(n=[n]),Array.isArray(n))return n;if(!i)return n.default||[];let s=n[i];return s||(s=n[this.getScriptPartFromCode(i)]),s||(s=n[this.formatLanguageCode(i)]),s||(s=n[this.getLanguagePartFromCode(i)]),s||(s=n.default),s||[]}toResolveHierarchy(n,i){const s=this.getFallbackCodes((i===!1?[]:i)||this.options.fallbackLng||[],n),o=[],c=f=>{f&&(this.isSupportedCode(f)?o.push(f):this.logger.warn(`rejecting language code not found in supportedLngs: ${f}`))};return de(n)&&(n.indexOf("-")>-1||n.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&c(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&c(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&c(this.getLanguagePartFromCode(n))):de(n)&&c(this.formatLanguageCode(n)),s.forEach(f=>{o.indexOf(f)<0&&c(this.formatLanguageCode(f))}),o}}const Xg={zero:0,one:1,two:2,few:3,many:4,other:5},Qg={select:l=>l===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Fx{constructor(n,i={}){this.languageUtils=n,this.options=i,this.logger=An.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(n,i={}){const s=Tr(n==="dev"?"en":n),o=i.ordinal?"ordinal":"cardinal",c=JSON.stringify({cleanedCode:s,type:o});if(c in this.pluralRulesCache)return this.pluralRulesCache[c];let f;try{f=new Intl.PluralRules(s,{type:o})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Qg;if(!n.match(/-|_/))return Qg;const h=this.languageUtils.getLanguagePartFromCode(n);f=this.getRule(h,i)}return this.pluralRulesCache[c]=f,f}needsPlural(n,i={}){let s=this.getRule(n,i);return s||(s=this.getRule("dev",i)),s?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(n,i,s={}){return this.getSuffixes(n,s).map(o=>`${i}${o}`)}getSuffixes(n,i={}){let s=this.getRule(n,i);return s||(s=this.getRule("dev",i)),s?s.resolvedOptions().pluralCategories.sort((o,c)=>Xg[o]-Xg[c]).map(o=>`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(n,i,s={}){const o=this.getRule(n,s);return o?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${o.select(i)}`:(this.logger.warn(`no plural rule found for: ${n}`),this.getSuffix("dev",i,s))}}const Kg=(l,n,i,s=".",o=!0)=>{let c=Vx(l,n,i);return!c&&o&&de(i)&&(c=kf(l,i,s),c===void 0&&(c=kf(n,i,s))),c},lf=l=>l.replace(/\$/g,"$$$$");class Zg{constructor(n={}){this.logger=An.create("interpolator"),this.options=n,this.format=n?.interpolation?.format||(i=>i),this.init(n)}init(n={}){n.interpolation||(n.interpolation={escapeValue:!0});const{escape:i,escapeValue:s,useRawValueToEscape:o,prefix:c,prefixEscaped:f,suffix:p,suffixEscaped:h,formatSeparator:m,unescapeSuffix:y,unescapePrefix:v,nestingPrefix:x,nestingPrefixEscaped:E,nestingSuffix:R,nestingSuffixEscaped:A,nestingOptionsSeparator:B,maxReplaces:Q,alwaysFormat:M}=n.interpolation;this.escape=i!==void 0?i:Gx,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=c?Fl(c):f||"{{",this.suffix=p?Fl(p):h||"}}",this.formatSeparator=m||",",this.unescapePrefix=y?"":v||"-",this.unescapeSuffix=this.unescapePrefix?"":y||"",this.nestingPrefix=x?Fl(x):E||Fl("$t("),this.nestingSuffix=R?Fl(R):A||Fl(")"),this.nestingOptionsSeparator=B||",",this.maxReplaces=Q||1e3,this.alwaysFormat=M!==void 0?M:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const n=(i,s)=>i?.source===s?(i.lastIndex=0,i):new RegExp(s,"g");this.regexp=n(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=n(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=n(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(n,i,s,o){let c,f,p;const h=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},m=E=>{if(E.indexOf(this.formatSeparator)<0){const Q=Kg(i,h,E,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(Q,void 0,s,{...o,...i,interpolationkey:E}):Q}const R=E.split(this.formatSeparator),A=R.shift().trim(),B=R.join(this.formatSeparator).trim();return this.format(Kg(i,h,A,this.options.keySeparator,this.options.ignoreJSONStructure),B,s,{...o,...i,interpolationkey:A})};this.resetRegExp();const y=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,v=o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:E=>lf(E)},{regex:this.regexp,safeValue:E=>this.escapeValue?lf(this.escape(E)):lf(E)}].forEach(E=>{for(p=0;c=E.regex.exec(n);){const R=c[1].trim();if(f=m(R),f===void 0)if(typeof y=="function"){const B=y(n,c,o);f=de(B)?B:""}else if(o&&Object.prototype.hasOwnProperty.call(o,R))f="";else if(v){f=c[0];continue}else this.logger.warn(`missed to pass in variable ${R} for interpolating ${n}`),f="";else!de(f)&&!this.useRawValueToEscape&&(f=Bg(f));const A=E.safeValue(f);if(n=n.replace(c[0],A),v?(E.regex.lastIndex+=f.length,E.regex.lastIndex-=c[0].length):E.regex.lastIndex=0,p++,p>=this.maxReplaces)break}}),n}nest(n,i,s={}){let o,c,f;const p=(h,m)=>{const y=this.nestingOptionsSeparator;if(h.indexOf(y)<0)return h;const v=h.split(new RegExp(`${y}[ ]*{`));let x=`{${v[1]}`;h=v[0],x=this.interpolate(x,f);const E=x.match(/'/g),R=x.match(/"/g);((E?.length??0)%2===0&&!R||R.length%2!==0)&&(x=x.replace(/'/g,'"'));try{f=JSON.parse(x),m&&(f={...m,...f})}catch(A){return this.logger.warn(`failed parsing options string in nesting for key ${h}`,A),`${h}${y}${x}`}return f.defaultValue&&f.defaultValue.indexOf(this.prefix)>-1&&delete f.defaultValue,h};for(;o=this.nestingRegexp.exec(n);){let h=[];f={...s},f=f.replace&&!de(f.replace)?f.replace:f,f.applyPostProcessor=!1,delete f.defaultValue;const m=/{.*}/.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(m!==-1&&(h=o[1].slice(m).split(this.formatSeparator).map(y=>y.trim()).filter(Boolean),o[1]=o[1].slice(0,m)),c=i(p.call(this,o[1].trim(),f),f),c&&o[0]===n&&!de(c))return c;de(c)||(c=Bg(c)),c||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${n}`),c=""),h.length&&(c=h.reduce((y,v)=>this.format(y,v,s.lng,{...s,interpolationkey:o[1].trim()}),c.trim())),n=n.replace(o[0],c),this.regexp.lastIndex=0}return n}}const Px=l=>{let n=l.toLowerCase().trim();const i={};if(l.indexOf("(")>-1){const s=l.split("(");n=s[0].toLowerCase().trim();const o=s[1].substring(0,s[1].length-1);n==="currency"&&o.indexOf(":")<0?i.currency||(i.currency=o.trim()):n==="relativetime"&&o.indexOf(":")<0?i.range||(i.range=o.trim()):o.split(";").forEach(f=>{if(f){const[p,...h]=f.split(":"),m=h.join(":").trim().replace(/^'+|'+$/g,""),y=p.trim();i[y]||(i[y]=m),m==="false"&&(i[y]=!1),m==="true"&&(i[y]=!0),isNaN(m)||(i[y]=parseInt(m,10))}})}return{formatName:n,formatOptions:i}},Jg=l=>{const n={};return(i,s,o)=>{let c=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(c={...c,[o.interpolationkey]:void 0});const f=s+JSON.stringify(c);let p=n[f];return p||(p=l(Tr(s),o),n[f]=p),p(i)}},Ix=l=>(n,i,s)=>l(Tr(i),s)(n);class Wx{constructor(n={}){this.logger=An.create("formatter"),this.options=n,this.init(n)}init(n,i={interpolation:{}}){this.formatSeparator=i.interpolation.formatSeparator||",";const s=i.cacheInBuiltFormats?Jg:Ix;this.formats={number:s((o,c)=>{const f=new Intl.NumberFormat(o,{...c});return p=>f.format(p)}),currency:s((o,c)=>{const f=new Intl.NumberFormat(o,{...c,style:"currency"});return p=>f.format(p)}),datetime:s((o,c)=>{const f=new Intl.DateTimeFormat(o,{...c});return p=>f.format(p)}),relativetime:s((o,c)=>{const f=new Intl.RelativeTimeFormat(o,{...c});return p=>f.format(p,c.range||"day")}),list:s((o,c)=>{const f=new Intl.ListFormat(o,{...c});return p=>f.format(p)})}}add(n,i){this.formats[n.toLowerCase().trim()]=i}addCached(n,i){this.formats[n.toLowerCase().trim()]=Jg(i)}format(n,i,s,o={}){const c=i.split(this.formatSeparator);if(c.length>1&&c[0].indexOf("(")>1&&c[0].indexOf(")")<0&&c.find(p=>p.indexOf(")")>-1)){const p=c.findIndex(h=>h.indexOf(")")>-1);c[0]=[c[0],...c.splice(1,p)].join(this.formatSeparator)}return c.reduce((p,h)=>{const{formatName:m,formatOptions:y}=Px(h);if(this.formats[m]){let v=p;try{const x=o?.formatParams?.[o.interpolationkey]||{},E=x.locale||x.lng||o.locale||o.lng||s;v=this.formats[m](p,E,{...y,...o,...x})}catch(x){this.logger.warn(x)}return v}else this.logger.warn(`there was no format function for ${m}`);return p},n)}}const e1=(l,n)=>{l.pending[n]!==void 0&&(delete l.pending[n],l.pendingCount--)};class t1 extends Oo{constructor(n,i,s,o={}){super(),this.backend=n,this.store=i,this.services=s,this.languageUtils=s.languageUtils,this.options=o,this.logger=An.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(s,o.backend,o)}queueLoad(n,i,s,o){const c={},f={},p={},h={};return n.forEach(m=>{let y=!0;i.forEach(v=>{const x=`${m}|${v}`;!s.reload&&this.store.hasResourceBundle(m,v)?this.state[x]=2:this.state[x]<0||(this.state[x]===1?f[x]===void 0&&(f[x]=!0):(this.state[x]=1,y=!1,f[x]===void 0&&(f[x]=!0),c[x]===void 0&&(c[x]=!0),h[v]===void 0&&(h[v]=!0)))}),y||(p[m]=!0)}),(Object.keys(c).length||Object.keys(f).length)&&this.queue.push({pending:f,pendingCount:Object.keys(f).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(c),pending:Object.keys(f),toLoadLanguages:Object.keys(p),toLoadNamespaces:Object.keys(h)}}loaded(n,i,s){const o=n.split("|"),c=o[0],f=o[1];i&&this.emit("failedLoading",c,f,i),!i&&s&&this.store.addResourceBundle(c,f,s,void 0,void 0,{skipCopy:!0}),this.state[n]=i?-1:2,i&&s&&(this.state[n]=0);const p={};this.queue.forEach(h=>{$x(h.loaded,[c],f),e1(h,n),i&&h.errors.push(i),h.pendingCount===0&&!h.done&&(Object.keys(h.loaded).forEach(m=>{p[m]||(p[m]={});const y=h.loaded[m];y.length&&y.forEach(v=>{p[m][v]===void 0&&(p[m][v]=!0)})}),h.done=!0,h.errors.length?h.callback(h.errors):h.callback())}),this.emit("loaded",p),this.queue=this.queue.filter(h=>!h.done)}read(n,i,s,o=0,c=this.retryTimeout,f){if(!n.length)return f(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:n,ns:i,fcName:s,tried:o,wait:c,callback:f});return}this.readingCalls++;const p=(m,y)=>{if(this.readingCalls--,this.waitingReads.length>0){const v=this.waitingReads.shift();this.read(v.lng,v.ns,v.fcName,v.tried,v.wait,v.callback)}if(m&&y&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,n,i,s,o+1,c*2,f)},c);return}f(m,y)},h=this.backend[s].bind(this.backend);if(h.length===2){try{const m=h(n,i);m&&typeof m.then=="function"?m.then(y=>p(null,y)).catch(p):p(null,m)}catch(m){p(m)}return}return h(n,i,p)}prepareLoading(n,i,s={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();de(n)&&(n=this.languageUtils.toResolveHierarchy(n)),de(i)&&(i=[i]);const c=this.queueLoad(n,i,s,o);if(!c.toLoad.length)return c.pending.length||o(),null;c.toLoad.forEach(f=>{this.loadOne(f)})}load(n,i,s){this.prepareLoading(n,i,{},s)}reload(n,i,s){this.prepareLoading(n,i,{reload:!0},s)}loadOne(n,i=""){const s=n.split("|"),o=s[0],c=s[1];this.read(o,c,"read",void 0,void 0,(f,p)=>{f&&this.logger.warn(`${i}loading namespace ${c} for language ${o} failed`,f),!f&&p&&this.logger.log(`${i}loaded namespace ${c} for language ${o}`,p),this.loaded(n,f,p)})}saveMissing(n,i,s,o,c,f={},p=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(i)){this.logger.warn(`did not save key "${s}" as the namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(s==null||s==="")){if(this.backend?.create){const h={...f,isUpdate:c},m=this.backend.create.bind(this.backend);if(m.length<6)try{let y;m.length===5?y=m(n,i,s,o,h):y=m(n,i,s,o),y&&typeof y.then=="function"?y.then(v=>p(null,v)).catch(p):p(null,y)}catch(y){p(y)}else m(n,i,s,o,p,h)}!n||!n[0]||this.store.addResource(n[0],i,s,o)}}}const rf=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:l=>{let n={};if(typeof l[1]=="object"&&(n=l[1]),de(l[1])&&(n.defaultValue=l[1]),de(l[2])&&(n.tDescription=l[2]),typeof l[2]=="object"||typeof l[3]=="object"){const i=l[3]||l[2];Object.keys(i).forEach(s=>{n[s]=i[s]})}return n},interpolation:{escapeValue:!0,format:l=>l,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Fg=l=>(de(l.ns)&&(l.ns=[l.ns]),de(l.fallbackLng)&&(l.fallbackLng=[l.fallbackLng]),de(l.fallbackNS)&&(l.fallbackNS=[l.fallbackNS]),l.supportedLngs?.indexOf?.("cimode")<0&&(l.supportedLngs=l.supportedLngs.concat(["cimode"])),typeof l.initImmediate=="boolean"&&(l.initAsync=l.initImmediate),l),Is=()=>{},n1=l=>{Object.getOwnPropertyNames(Object.getPrototypeOf(l)).forEach(i=>{typeof l[i]=="function"&&(l[i]=l[i].bind(l))})};class yr extends Oo{constructor(n={},i){if(super(),this.options=Fg(n),this.services={},this.logger=An,this.modules={external:[]},n1(this),i&&!this.isInitialized&&!n.isClone){if(!this.options.initAsync)return this.init(n,i),this;setTimeout(()=>{this.init(n,i)},0)}}init(n={},i){this.isInitializing=!0,typeof n=="function"&&(i=n,n={}),n.defaultNS==null&&n.ns&&(de(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const s=rf();this.options={...s,...this.options,...Fg(n)},this.options.interpolation={...s.interpolation,...this.options.interpolation},n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=s.overloadTranslationOptionHandler);const o=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?An.init(o(this.modules.logger),this.options):An.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:m=Wx;const y=new Yg(this.options);this.store=new qg(this.options.resources,this.options);const v=this.services;v.logger=An,v.resourceStore=this.store,v.languageUtils=y,v.pluralResolver=new Fx(y,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==s.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),m&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(v.formatter=o(m),v.formatter.init&&v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new Zg(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new t1(o(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",(E,...R)=>{this.emit(E,...R)}),this.modules.languageDetector&&(v.languageDetector=o(this.modules.languageDetector),v.languageDetector.init&&v.languageDetector.init(v,this.options.detection,this.options)),this.modules.i18nFormat&&(v.i18nFormat=o(this.modules.i18nFormat),v.i18nFormat.init&&v.i18nFormat.init(this)),this.translator=new So(this.services,this.options),this.translator.on("*",(E,...R)=>{this.emit(E,...R)}),this.modules.external.forEach(E=>{E.init&&E.init(this)})}if(this.format=this.options.interpolation.format,i||(i=Is),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]=(...y)=>this.store[m](...y)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(m=>{this[m]=(...y)=>(this.store[m](...y),this)});const p=ar(),h=()=>{const m=(y,v)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),p.resolve(v),i(y,v)};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?h():setTimeout(h,0),p}loadResources(n,i=Is){let s=i;const o=de(n)?n:this.language;if(typeof n=="function"&&(s=n),!this.options.resources||this.options.partialBundledLanguages){if(o?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const c=[],f=p=>{if(!p||p==="cimode")return;this.services.languageUtils.toResolveHierarchy(p).forEach(m=>{m!=="cimode"&&c.indexOf(m)<0&&c.push(m)})};o?f(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(h=>f(h)),this.options.preload?.forEach?.(p=>f(p)),this.services.backendConnector.load(c,this.options.ns,p=>{!p&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(p)})}else s(null)}reloadResources(n,i,s){const o=ar();return typeof n=="function"&&(s=n,n=void 0),typeof i=="function"&&(s=i,i=void 0),n||(n=this.languages),i||(i=this.options.ns),s||(s=Is),this.services.backendConnector.reload(n,i,c=>{o.resolve(),s(c)}),o}use(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&Gv.addPostProcessor(n),n.type==="formatter"&&(this.modules.formatter=n),n.type==="3rdParty"&&this.modules.external.push(n),this}setResolvedLanguage(n){if(!(!n||!this.languages)&&!(["cimode","dev"].indexOf(n)>-1)){for(let i=0;i<this.languages.length;i++){const s=this.languages[i];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}!this.resolvedLanguage&&this.languages.indexOf(n)<0&&this.store.hasLanguageSomeTranslations(n)&&(this.resolvedLanguage=n,this.languages.unshift(n))}}changeLanguage(n,i){this.isLanguageChangingTo=n;const s=ar();this.emit("languageChanging",n);const o=p=>{this.language=p,this.languages=this.services.languageUtils.toResolveHierarchy(p),this.resolvedLanguage=void 0,this.setResolvedLanguage(p)},c=(p,h)=>{h?this.isLanguageChangingTo===n&&(o(h),this.translator.changeLanguage(h),this.isLanguageChangingTo=void 0,this.emit("languageChanged",h),this.logger.log("languageChanged",h)):this.isLanguageChangingTo=void 0,s.resolve((...m)=>this.t(...m)),i&&i(p,(...m)=>this.t(...m))},f=p=>{!n&&!p&&this.services.languageDetector&&(p=[]);const h=de(p)?p:p&&p[0],m=this.store.hasLanguageSomeTranslations(h)?h:this.services.languageUtils.getBestMatchFromCodes(de(p)?[p]:p);m&&(this.language||o(m),this.translator.language||this.translator.changeLanguage(m),this.services.languageDetector?.cacheUserLanguage?.(m)),this.loadResources(m,y=>{c(y,m)})};return!n&&this.services.languageDetector&&!this.services.languageDetector.async?f(this.services.languageDetector.detect()):!n&&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(n),s}getFixedT(n,i,s){const o=(c,f,...p)=>{let h;typeof f!="object"?h=this.options.overloadTranslationOptionHandler([c,f].concat(p)):h={...f},h.lng=h.lng||o.lng,h.lngs=h.lngs||o.lngs,h.ns=h.ns||o.ns,h.keyPrefix!==""&&(h.keyPrefix=h.keyPrefix||s||o.keyPrefix);const m=this.options.keySeparator||".";let y;return h.keyPrefix&&Array.isArray(c)?y=c.map(v=>(typeof v=="function"&&(v=Mf(v,{...this.options,...f})),`${h.keyPrefix}${m}${v}`)):(typeof c=="function"&&(c=Mf(c,{...this.options,...f})),y=h.keyPrefix?`${h.keyPrefix}${m}${c}`:c),this.t(y,h)};return de(n)?o.lng=n:o.lngs=n,o.ns=i,o.keyPrefix=s,o}t(...n){return this.translator?.translate(...n)}exists(...n){return this.translator?.exists(...n)}setDefaultNamespace(n){this.options.defaultNS=n}hasLoadedNamespace(n,i={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=i.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const f=(p,h)=>{const m=this.services.backendConnector.state[`${p}|${h}`];return m===-1||m===0||m===2};if(i.precheck){const p=i.precheck(this,f);if(p!==void 0)return p}return!!(this.hasResourceBundle(s,n)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||f(s,n)&&(!o||f(c,n)))}loadNamespaces(n,i){const s=ar();return this.options.ns?(de(n)&&(n=[n]),n.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{s.resolve(),i&&i(o)}),s):(i&&i(),Promise.resolve())}loadLanguages(n,i){const s=ar();de(n)&&(n=[n]);const o=this.options.preload||[],c=n.filter(f=>o.indexOf(f)<0&&this.services.languageUtils.isSupportedCode(f));return c.length?(this.options.preload=o.concat(c),this.loadResources(f=>{s.resolve(),i&&i(f)}),s):(i&&i(),Promise.resolve())}dir(n){if(n||(n=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!n)return"rtl";try{const o=new Intl.Locale(n);if(o&&o.getTextInfo){const c=o.getTextInfo();if(c&&c.direction)return c.direction}}catch{}const i=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=this.services?.languageUtils||new Yg(rf());return n.toLowerCase().indexOf("-latn")>1?"ltr":i.indexOf(s.getLanguagePartFromCode(n))>-1||n.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(n={},i){const s=new yr(n,i);return s.createInstance=yr.createInstance,s}cloneInstance(n={},i=Is){const s=n.forkResourceStore;s&&delete n.forkResourceStore;const o={...this.options,...n,isClone:!0},c=new yr(o);if((n.debug!==void 0||n.prefix!==void 0)&&(c.logger=c.logger.clone(n)),["store","services","language"].forEach(p=>{c[p]=this[p]}),c.services={...this.services},c.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},s){const p=Object.keys(this.store.data).reduce((h,m)=>(h[m]={...this.store.data[m]},h[m]=Object.keys(h[m]).reduce((y,v)=>(y[v]={...h[m][v]},y),h[m]),h),{});c.store=new qg(p,o),c.services.resourceStore=c.store}if(n.interpolation){const h={...rf().interpolation,...this.options.interpolation,...n.interpolation},m={...o,interpolation:h};c.services.interpolator=new Zg(m)}return c.translator=new So(c.services,o),c.translator.on("*",(p,...h)=>{c.emit(p,...h)}),c.init(o,i),c.translator.options=o,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 Tt=yr.createInstance();Tt.createInstance;Tt.dir;Tt.init;Tt.loadResources;Tt.reloadResources;Tt.use;Tt.changeLanguage;Tt.getFixedT;Tt.t;Tt.exists;Tt.setDefaultNamespace;Tt.hasLoadedNamespace;Tt.loadNamespaces;Tt.loadLanguages;var sf={exports:{}},pe={};var Pg;function a1(){if(Pg)return pe;Pg=1;var l=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),x=Symbol.iterator;function E(T){return T===null||typeof T!="object"?null:(T=x&&T[x]||T["@@iterator"],typeof T=="function"?T:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,B={};function Q(T,q,I){this.props=T,this.context=q,this.refs=B,this.updater=I||R}Q.prototype.isReactComponent={},Q.prototype.setState=function(T,q){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,q,"setState")},Q.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function M(){}M.prototype=Q.prototype;function U(T,q,I){this.props=T,this.context=q,this.refs=B,this.updater=I||R}var P=U.prototype=new M;P.constructor=U,A(P,Q.prototype),P.isPureReactComponent=!0;var ee=Array.isArray;function Y(){}var _={H:null,A:null,T:null,S:null},K=Object.prototype.hasOwnProperty;function $(T,q,I){var ae=I.ref;return{$$typeof:l,type:T,key:q,ref:ae!==void 0?ae:null,props:I}}function Z(T,q){return $(T.type,q,T.props)}function F(T){return typeof T=="object"&&T!==null&&T.$$typeof===l}function te(T){var q={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(I){return q[I]})}var ie=/\/+/g;function ce(T,q){return typeof T=="object"&&T!==null&&T.key!=null?te(""+T.key):q.toString(36)}function he(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(Y,Y):(T.status="pending",T.then(function(q){T.status==="pending"&&(T.status="fulfilled",T.value=q)},function(q){T.status==="pending"&&(T.status="rejected",T.reason=q)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function z(T,q,I,ae,ve){var we=typeof T;(we==="undefined"||we==="boolean")&&(T=null);var ze=!1;if(T===null)ze=!0;else switch(we){case"bigint":case"string":case"number":ze=!0;break;case"object":switch(T.$$typeof){case l:case n:ze=!0;break;case y:return ze=T._init,z(ze(T._payload),q,I,ae,ve)}}if(ze)return ve=ve(T),ze=ae===""?"."+ce(T,0):ae,ee(ve)?(I="",ze!=null&&(I=ze.replace(ie,"$&/")+"/"),z(ve,q,I,"",function(ui){return ui})):ve!=null&&(F(ve)&&(ve=Z(ve,I+(ve.key==null||T&&T.key===ve.key?"":(""+ve.key).replace(ie,"$&/")+"/")+ze)),q.push(ve)),1;ze=0;var Et=ae===""?".":ae+":";if(ee(T))for(var Ie=0;Ie<T.length;Ie++)ae=T[Ie],we=Et+ce(ae,Ie),ze+=z(ae,q,I,we,ve);else if(Ie=E(T),typeof Ie=="function")for(T=Ie.call(T),Ie=0;!(ae=T.next()).done;)ae=ae.value,we=Et+ce(ae,Ie++),ze+=z(ae,q,I,we,ve);else if(we==="object"){if(typeof T.then=="function")return z(he(T),q,I,ae,ve);throw q=String(T),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return ze}function J(T,q,I){if(T==null)return T;var ae=[],ve=0;return z(T,ae,"","",function(we){return q.call(I,we,ve++)}),ae}function ne(T){if(T._status===-1){var q=T._result;q=q(),q.then(function(I){(T._status===0||T._status===-1)&&(T._status=1,T._result=I)},function(I){(T._status===0||T._status===-1)&&(T._status=2,T._result=I)}),T._status===-1&&(T._status=0,T._result=q)}if(T._status===1)return T._result.default;throw T._result}var Ee=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},Ne={map:J,forEach:function(T,q,I){J(T,function(){q.apply(this,arguments)},I)},count:function(T){var q=0;return J(T,function(){q++}),q},toArray:function(T){return J(T,function(q){return q})||[]},only:function(T){if(!F(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return pe.Activity=v,pe.Children=Ne,pe.Component=Q,pe.Fragment=i,pe.Profiler=o,pe.PureComponent=U,pe.StrictMode=s,pe.Suspense=h,pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=_,pe.__COMPILER_RUNTIME={__proto__:null,c:function(T){return _.H.useMemoCache(T)}},pe.cache=function(T){return function(){return T.apply(null,arguments)}},pe.cacheSignal=function(){return null},pe.cloneElement=function(T,q,I){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var ae=A({},T.props),ve=T.key;if(q!=null)for(we in q.key!==void 0&&(ve=""+q.key),q)!K.call(q,we)||we==="key"||we==="__self"||we==="__source"||we==="ref"&&q.ref===void 0||(ae[we]=q[we]);var we=arguments.length-2;if(we===1)ae.children=I;else if(1<we){for(var ze=Array(we),Et=0;Et<we;Et++)ze[Et]=arguments[Et+2];ae.children=ze}return $(T.type,ve,ae)},pe.createContext=function(T){return T={$$typeof:f,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:c,_context:T},T},pe.createElement=function(T,q,I){var ae,ve={},we=null;if(q!=null)for(ae in q.key!==void 0&&(we=""+q.key),q)K.call(q,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(ve[ae]=q[ae]);var ze=arguments.length-2;if(ze===1)ve.children=I;else if(1<ze){for(var Et=Array(ze),Ie=0;Ie<ze;Ie++)Et[Ie]=arguments[Ie+2];ve.children=Et}if(T&&T.defaultProps)for(ae in ze=T.defaultProps,ze)ve[ae]===void 0&&(ve[ae]=ze[ae]);return $(T,we,ve)},pe.createRef=function(){return{current:null}},pe.forwardRef=function(T){return{$$typeof:p,render:T}},pe.isValidElement=F,pe.lazy=function(T){return{$$typeof:y,_payload:{_status:-1,_result:T},_init:ne}},pe.memo=function(T,q){return{$$typeof:m,type:T,compare:q===void 0?null:q}},pe.startTransition=function(T){var q=_.T,I={};_.T=I;try{var ae=T(),ve=_.S;ve!==null&&ve(I,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(Y,Ee)}catch(we){Ee(we)}finally{q!==null&&I.types!==null&&(q.types=I.types),_.T=q}},pe.unstable_useCacheRefresh=function(){return _.H.useCacheRefresh()},pe.use=function(T){return _.H.use(T)},pe.useActionState=function(T,q,I){return _.H.useActionState(T,q,I)},pe.useCallback=function(T,q){return _.H.useCallback(T,q)},pe.useContext=function(T){return _.H.useContext(T)},pe.useDebugValue=function(){},pe.useDeferredValue=function(T,q){return _.H.useDeferredValue(T,q)},pe.useEffect=function(T,q){return _.H.useEffect(T,q)},pe.useEffectEvent=function(T){return _.H.useEffectEvent(T)},pe.useId=function(){return _.H.useId()},pe.useImperativeHandle=function(T,q,I){return _.H.useImperativeHandle(T,q,I)},pe.useInsertionEffect=function(T,q){return _.H.useInsertionEffect(T,q)},pe.useLayoutEffect=function(T,q){return _.H.useLayoutEffect(T,q)},pe.useMemo=function(T,q){return _.H.useMemo(T,q)},pe.useOptimistic=function(T,q){return _.H.useOptimistic(T,q)},pe.useReducer=function(T,q,I){return _.H.useReducer(T,q,I)},pe.useRef=function(T){return _.H.useRef(T)},pe.useState=function(T){return _.H.useState(T)},pe.useSyncExternalStore=function(T,q,I){return _.H.useSyncExternalStore(T,q,I)},pe.useTransition=function(){return _.H.useTransition()},pe.version="19.2.3",pe}var Ig;function jr(){return Ig||(Ig=1,sf.exports=a1()),sf.exports}var w=jr();const fr=$v(w),l1=(l,n,i,s)=>{const o=[i,{code:n,...s||{}}];if(l?.services?.logger?.forward)return l.services.logger.forward(o,"warn","react-i18next::",!0);ll(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),l?.services?.logger?.warn?l.services.logger.warn(...o):console?.warn&&console.warn(...o)},Wg={},Xv=(l,n,i,s)=>{ll(i)&&Wg[i]||(ll(i)&&(Wg[i]=new Date),l1(l,n,i,s))},Qv=(l,n)=>()=>{if(l.isInitialized)n();else{const i=()=>{setTimeout(()=>{l.off("initialized",i)},0),n()};l.on("initialized",i)}},zf=(l,n,i)=>{l.loadNamespaces(n,Qv(l,i))},ev=(l,n,i,s)=>{if(ll(i)&&(i=[i]),l.options.preload&&l.options.preload.indexOf(n)>-1)return zf(l,i,s);i.forEach(o=>{l.options.ns.indexOf(o)<0&&l.options.ns.push(o)}),l.loadLanguages(n,Qv(l,s))},i1=(l,n,i={})=>!n.languages||!n.languages.length?(Xv(n,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:n.languages}),!0):n.hasLoadedNamespace(l,{lng:i.lng,precheck:(s,o)=>{if(i.bindI18n&&i.bindI18n.indexOf("languageChanging")>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!o(s.isLanguageChangingTo,l))return!1}}),ll=l=>typeof l=="string",r1=l=>typeof l=="object"&&l!==null,s1=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,o1={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},u1=l=>o1[l],c1=l=>l.replace(s1,u1);let Lf={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:c1,transDefaultProps:void 0};const f1=(l={})=>{Lf={...Lf,...l}},d1=()=>Lf;let Kv;const h1=l=>{Kv=l},p1=()=>Kv,m1={type:"3rdParty",init(l){f1(l.options.react),h1(l)}},g1=w.createContext();class v1{constructor(){this.usedNamespaces={}}addUsedNamespaces(n){n.forEach(i=>{this.usedNamespaces[i]||(this.usedNamespaces[i]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var of={exports:{}},uf={};var tv;function y1(){if(tv)return uf;tv=1;var l=jr();function n(v,x){return v===x&&(v!==0||1/v===1/x)||v!==v&&x!==x}var i=typeof Object.is=="function"?Object.is:n,s=l.useState,o=l.useEffect,c=l.useLayoutEffect,f=l.useDebugValue;function p(v,x){var E=x(),R=s({inst:{value:E,getSnapshot:x}}),A=R[0].inst,B=R[1];return c(function(){A.value=E,A.getSnapshot=x,h(A)&&B({inst:A})},[v,E,x]),o(function(){return h(A)&&B({inst:A}),v(function(){h(A)&&B({inst:A})})},[v]),f(E),E}function h(v){var x=v.getSnapshot;v=v.value;try{var E=x();return!i(v,E)}catch{return!0}}function m(v,x){return x()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:p;return uf.useSyncExternalStore=l.useSyncExternalStore!==void 0?l.useSyncExternalStore:y,uf}var nv;function b1(){return nv||(nv=1,of.exports=y1()),of.exports}var S1=b1();const x1=(l,n)=>ll(n)?n:r1(n)&&ll(n.defaultValue)?n.defaultValue:Array.isArray(l)?l[l.length-1]:l,E1={t:x1,ready:!1},w1=()=>()=>{},At=(l,n={})=>{const{i18n:i}=n,{i18n:s,defaultNS:o}=w.useContext(g1)||{},c=i||s||p1();c&&!c.reportNamespaces&&(c.reportNamespaces=new v1),c||Xv(c,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const f=w.useMemo(()=>({...d1(),...c?.options?.react,...n}),[c,n]),{useSuspense:p,keyPrefix:h}=f,m=o||c?.options?.defaultNS,y=ll(m)?[m]:m||["translation"],v=w.useMemo(()=>y,y);c?.reportNamespaces?.addUsedNamespaces?.(v);const x=w.useRef(0),E=w.useCallback($=>{if(!c)return w1;const{bindI18n:Z,bindI18nStore:F}=f,te=()=>{x.current+=1,$()};return Z&&c.on(Z,te),F&&c.store.on(F,te),()=>{Z&&Z.split(" ").forEach(ie=>c.off(ie,te)),F&&F.split(" ").forEach(ie=>c.store.off(ie,te))}},[c,f]),R=w.useRef(),A=w.useCallback(()=>{if(!c)return E1;const $=!!(c.isInitialized||c.initializedStoreOnce)&&v.every(he=>i1(he,c,f)),Z=n.lng||c.language,F=x.current,te=R.current;if(te&&te.ready===$&&te.lng===Z&&te.keyPrefix===h&&te.revision===F)return te;const ce={t:c.getFixedT(Z,f.nsMode==="fallback"?v:v[0],h),ready:$,lng:Z,keyPrefix:h,revision:F};return R.current=ce,ce},[c,v,h,f,n.lng]),[B,Q]=w.useState(0),{t:M,ready:U}=S1.useSyncExternalStore(E,A,A);w.useEffect(()=>{if(c&&!U&&!p){const $=()=>Q(Z=>Z+1);n.lng?ev(c,n.lng,v,$):zf(c,v,$)}},[c,n.lng,v,U,p,B]);const P=c||{},ee=w.useRef(null),Y=w.useRef(),_=$=>{const Z=Object.getOwnPropertyDescriptors($);Z.__original&&delete Z.__original;const F=Object.create(Object.getPrototypeOf($),Z);if(!Object.prototype.hasOwnProperty.call(F,"__original"))try{Object.defineProperty(F,"__original",{value:$,writable:!1,enumerable:!1,configurable:!1})}catch{}return F},K=w.useMemo(()=>{const $=P,Z=$?.language;let F=$;$&&(ee.current&&ee.current.__original===$?Y.current!==Z?(F=_($),ee.current=F,Y.current=Z):F=ee.current:(F=_($),ee.current=F,Y.current=Z));const te=[M,F,U];return te.t=M,te.i18n=F,te.ready=U,te},[M,P,U,P.resolvedLanguage,P.language,P.languages]);if(c&&p&&!U)throw new Promise($=>{const Z=()=>$();n.lng?ev(c,n.lng,v,Z):zf(c,v,Z)});return K},C1="ParoiCMS Site Generator",T1="Step {{stepNumber}}",N1="Describe the structure of your website: what types of pages it has, which sections they contain, and what sub-parts you need. The AI will generate a complete site schema for you.",R1='<a href="https://www.paroicms.org/" target="_blank">ParoiCMS</a> (or <a href="https://gitlab.com/paroi/opensource/paroicms" target="_blank">on GitLab</a>) <span class="WelcomePage-footerSeparator">—</span> <a href="https://paleo.paroi.tech/" target="_blank">Contact me</a>',j1="<p>Describe here the data structure of your website: what types of pages it has and in which sections. In a page type, it is also possible to describe lists of sub-parts.</p>",A1="Create a website about… It will include a blog section, a list of pages, and a dedicated section about… that itself contains the following sub-sections: … The home page should contain an image carousel and a list of subparts, each containing an image and a text.",O1="Add a new text field to the page…",D1="Modify the Site Schema",_1="Create a Site Schema",k1="Generate the website",M1="Generate site with sample data (recommended)",z1="Generate an empty site",L1="Open the admin-ui",U1="Open the site",B1="Generated Schema",H1="Tree View",$1="Site Schema",V1="Node Types",q1="Labels",G1="Select language",Y1="Explanations",X1="Current Activity",Q1="An error occurred: {{ message }}",K1="An error occurred",Z1="Start Again",J1="Step {{stepNumber}}: {{kind}}",F1="This step is in progress…",P1="This step failed.",I1="This step had no effect.",W1="No session data available",eE="Step not found",tE="Welcome to ParoiCMS Site Generator",nE="Close and start again",aE="Reset Schema",lE="unknown error",iE="Create New Site",rE="Generating your site…",sE="The site is generated",oE="Email:",uE="Password:",cE="Start",fE="You are about to generate your website.",dE="Cancel",hE="Confirm",pE="Apply Changes",mE="Quick access to your admin space",gE="Site URL:",vE="Admin URL:",yE="Copy all information to clipboard",bE="Copied!",SE="<p>Welcome to the ParoiCMS Site Generator tool. This tool helps you create a new website with just a few steps.</p><p>To get started, please verify you're human by completing the CAPTCHA below.</p>",xE="Initial Schema Creation",EE="Schema Update",wE="Site Generation",CE={initial1:"Analyzing your request for site structure…",initial2:"Choosing from predefined fields…",updating1:"Analyzing your update request…",updating2:"Updating schema structure with changes…",generatingSite:"Building your website…",generatingContent:"Creating sample content for your site…"},TE="Login Email",NE="Login Password",RE="Generated Site",jE="Quick Login",AE="Quick Login URL",OE="Your session has expired. Please refresh the page to start a new session.",DE="Failed to process your prompt. Please try again.",_E="Failed to generate the site. Please try again.",kE='The source code of this generator is available <a href="https://gitlab.com/paroi/opensource/paroicms/-/tree/main/plugins/site-generator-plugin?ref_type=heads" target="_blank">on GitLab</a> — <a href="https://www.paroicms.org/en" target="_blank">ParoiCMS</a> — Contact me <a href="https://paroi.tech/en" target="_blank">here</a>.',ME="Extend your session",zE="Failed to refresh your session. Please try again.",LE="Error connecting to server. Please check your connection and try again.",UE="Tip: If you want to start over, open the generator in a new tab and close this one.",BE={title:C1,stepNumber:T1,new:"New",welcomeDescription:N1,footerLinks:R1,startInstruction:j1,createPromptPlaceholder:A1,updatePromptPlaceholder:O1,modifySchema:D1,createSchema:_1,generateTheWebsite:k1,generateSiteWithData:M1,generateEmptySite:z1,administration:L1,viewSite:U1,generatedSchema:B1,treeView:H1,siteSchema:$1,nodeTypes:V1,labels:q1,languageSelector:G1,explanation:Y1,currentActivity:X1,errorOccurred:Q1,unknownErrorOccurred:K1,startAgain:Z1,stepTitle:J1,stepPending:F1,stepFailed:P1,stepNoEffect:I1,noSessionData:W1,stepNotFound:eE,welcomeTitle:tE,reset:nE,resetSchema:aE,unknownError:lE,createNewSite:iE,generatingSite:rE,siteGenerated:sE,email:oE,password:uE,start:cE,aboutToGenerateWebsite:fE,cancel:dE,confirm:hE,applyChanges:pE,openAdminUI:mE,siteUrl:gE,adminUrl:vE,copyToClipboard:yE,copied:bE,introduction:SE,initialSchema:xE,updateSchema:EE,generateSite:wE,activity:CE,loginEmail:TE,loginPassword:NE,generatedSite:RE,quickLogin:jE,quickLoginUrl:AE,sessionExpired:OE,promptSubmissionFailed:DE,generationFailed:_E,footerText:kE,extendYourSession:ME,sessionRenewalFailed:zE,errorConnectingToServer:LE,newTabRestartMessage:UE},HE="ParoiCMS - Générateur de Site",$E="Étape {{stepNumber}}",VE="Décrivez la structure de votre site web : quels types de pages, quelles sections, et quelles sous-parties vous souhaitez. L'IA générera un schéma de site complet pour vous.",qE='<a href="https://www.paroicms.org/" target="_blank">ParoiCMS</a> (ou <a href="https://gitlab.com/paroi/opensource/paroicms" target="_blank">sur GitLab</a>) <span class="WelcomePage-footerSeparator">—</span> <a href="https://paleo.paroi.tech/" target="_blank">Contactez-moi</a>',GE="<p>Décrivez ici la structure des données de votre site web : quels types de pages, dans quelles rubriques. Il est également possible de décrire des listes de sous-parties de pages.</p>",YE="Génère un site web à propos de… Il contiendra une rubrique blog, une liste de pages, une rubrique dédiée à… contenant elle-même les sous-rubriques suivantes : … La page d'accueil doit contenir un carrousel d'images, et une liste de sous-parties contenant chacune une image et un texte.",XE="Ajoute un nouveau champ texte à la page…",QE="Modifier le schéma du site",KE="Créer un schéma de site",ZE="Générer le site web",JE="Générer le site avec des données d'exemple (recommandé)",FE="Générer un site vide",PE="Ouvrir l'espace d'administration du site",IE="Ouvrir le site",WE="Schéma généré",ew="Arborescence",tw="Schéma du site",nw="Types de nœuds",aw="Libellés",lw="Sélectionner la langue",iw="Explications",rw="Activité en cours",sw="Une erreur est survenue : {{ message }}",ow="Une erreur est survenue",uw="Recommencer",cw="Étape {{stepNumber}} : {{kind}}",fw="Cette étape est en cours…",dw="Cette étape a échoué.",hw="Cette étape n'a eu aucun effet.",pw="Données de session non disponibles",mw="Étape introuvable",gw="Bienvenue sur le générateur de site ParoiCMS",vw="Fermer et réinitialiser",yw="Réinitialiser le schéma",bw="erreur inconnue",Sw="Créer un nouveau site",xw="Génération de votre site…",Ew="Le site est généré",ww="Email :",Cw="Mot de passe :",Tw="Commencer",Nw="Vous êtes sur le point de générer votre site web.",Rw="Annuler",jw="Confirmer",Aw="Appliquer les modifications",Ow="Connexion rapide à votre espace d'administration",Dw="URL du site :",_w="URL d'admin :",kw="Copier toutes les informations dans le presse-papier",Mw="Copié !",zw="<p>Bienvenue sur l'outil de génération de site ParoiCMS. Cet outil vous aide à créer un nouveau site web en quelques étapes.</p><p>Pour commencer, veuillez vérifier que vous êtes humain en complétant le CAPTCHA ci-dessous.</p>",Lw="Création du schéma initial",Uw="Mise à jour du schéma",Bw="Génération du site",Hw={initial1:"Analyse de votre demande pour la structure du site…",initial2:"Choix parmi les champs prédéfinis…",updating1:"Analyse de votre demande de mise à jour…",updating2:"Mise à jour de la structure du schéma…",generatingSite:"Construction de votre site web…",generatingContent:"Création de contenu exemple pour votre site…"},$w="Email de connexion",Vw="Mot de passe",qw="Site généré",Gw="Connexion rapide",Yw="URL de connexion rapide",Xw="Votre session a expiré. Veuillez rafraîchir la page pour démarrer une nouvelle session.",Qw="Échec du traitement de votre demande. Veuillez réessayer.",Kw="Échec de la génération du site. Veuillez réessayer.",Zw='Le code source de ce générateur est disponible <a href="https://gitlab.com/paroi/opensource/paroicms/-/tree/main/plugins/site-generator-plugin?ref_type=heads" target="_blank">sur GitLab</a> — <a href="https://www.paroicms.org/fr" target="_blank">ParoiCMS</a> — Contactez-moi <a href="https://paroi.tech/fr" target="_blank">ici</a>.',Jw="Prolonger votre session",Fw="Échec du renouvellement de votre session. Veuillez réessayer.",Pw="Erreur de connexion au serveur. Veuillez vérifier votre connexion et réessayer.",Iw="Astuce : si vous souhaitez repartir de zéro, ouvrez le générateur dans un nouvel onglet et fermez celui-ci.",Ww={title:HE,stepNumber:$E,new:"Nouveau",welcomeDescription:VE,footerLinks:qE,startInstruction:GE,createPromptPlaceholder:YE,updatePromptPlaceholder:XE,modifySchema:QE,createSchema:KE,generateTheWebsite:ZE,generateSiteWithData:JE,generateEmptySite:FE,administration:PE,viewSite:IE,generatedSchema:WE,treeView:ew,siteSchema:tw,nodeTypes:nw,labels:aw,languageSelector:lw,explanation:iw,currentActivity:rw,errorOccurred:sw,unknownErrorOccurred:ow,startAgain:uw,stepTitle:cw,stepPending:fw,stepFailed:dw,stepNoEffect:hw,noSessionData:pw,stepNotFound:mw,welcomeTitle:gw,reset:vw,resetSchema:yw,unknownError:bw,createNewSite:Sw,generatingSite:xw,siteGenerated:Ew,email:ww,password:Cw,start:Tw,aboutToGenerateWebsite:Nw,cancel:Rw,confirm:jw,applyChanges:Aw,openAdminUI:Ow,siteUrl:Dw,adminUrl:_w,copyToClipboard:kw,copied:Mw,introduction:zw,initialSchema:Lw,updateSchema:Uw,generateSite:Bw,activity:Hw,loginEmail:$w,loginPassword:Vw,generatedSite:qw,quickLogin:Gw,quickLoginUrl:Yw,sessionExpired:Xw,promptSubmissionFailed:Qw,generationFailed:Kw,footerText:Zw,extendYourSession:Jw,sessionRenewalFailed:Fw,errorConnectingToServer:Pw,newTabRestartMessage:Iw},eC=`<p>Welcome!</p>
2
2
  <p>ParoiCMS is a CMS for showcase websites. With this CMS, you define the structure of your website. This tool will help you to do it.</p>
3
- <p>Your session exists in this tab of your browser, it will be lost when you close the tab.</p>`,Zw=`<p>Bienvenue !</p>
3
+ <p>Your session exists in this tab of your browser, it will be lost when you close the tab.</p>`,tC=`<p>Bienvenue !</p>
4
4
  <p>ParoiCMS est un CMS pour sites vitrines. Avec ce CMS, c'est vous qui définissez la structure de votre site web. Cet outil vous aidera dans cette tâche.</p>
5
- <p>Votre session existe dans cet onglet de votre navigateur, elle sera perdue lorsque vous fermerez l'onglet.</p>`,Jw=`<p>Congratulations! Your website has been generated. Now you can authenticate on the admin-ui (using the <strong>local account</strong>) and play with it.</p>
5
+ <p>Votre session existe dans cet onglet de votre navigateur, elle sera perdue lorsque vous fermerez l'onglet.</p>`,nC=`<p>Congratulations! Your website has been generated. Now you can authenticate on the admin-ui (using the <strong>local account</strong>) and play with it.</p>
6
6
  <p>Notice that it will be deleted in 48 hours. However, if you want to keep it, then <strong>make a backup</strong>. <em>Each backup is a zip file that contains a full Node.js project, ready to be installed and executed in a local environment.</em></p>
7
7
  <p>An unattractive theme has been generated. Its purpose is to demonstrate how to write templates for your data structure.</p>
8
- <p>Make sure to copy the information below, as it will be lost once you close this tab.</p>`,Fw=`<p>Félicitations ! Votre site web a été généré. Vous pouvez maintenant vous authentifier sur le admin-ui (en utilisant le <strong>compte local</strong>) et l'explorer.</p>
8
+ <p>Make sure to copy the information below, as it will be lost once you close this tab.</p>`,aC=`<p>Félicitations ! Votre site web a été généré. Vous pouvez maintenant vous authentifier sur le admin-ui (en utilisant le <strong>compte local</strong>) et l'explorer.</p>
9
9
  <p>Notez qu'il sera supprimé dans 48 heures. Cependant, si vous souhaitez le conserver, alors <strong>faites une sauvegarde</strong>. <em>Chaque sauvegarde est un fichier zip qui contient un projet Node.js complet, prêt à être installé et exécuté dans un environnement local.</em></p>
10
10
  <p>Un thème tout moche a été généré. Son but est de montrer comment écrire des templates pour votre structure de données.</p>
11
- <p>Assurez-vous de copier les informations ci-dessous, car elles seront perdues une fois que vous fermerez cet onglet.</p>`,Pw={en:{translation:{...DE,introduction:Kw,userManual:Jw}},fr:{translation:{...Qw,introduction:Zw,userManual:Fw}}};Tt.use(o1).init({resources:Pw,lng:navigator.language.split("-")[0],fallbackLng:"en",interpolation:{escapeValue:!1}});var sf={exports:{}},tr={},of={exports:{}},uf={};var Pg;function Iw(){return Pg||(Pg=1,(function(l){function n(z,J){var ne=z.length;z.push(J);e:for(;0<ne;){var Ee=ne-1>>>1,Ne=z[Ee];if(0<o(Ne,J))z[Ee]=J,z[ne]=Ne,ne=Ee;else break e}}function i(z){return z.length===0?null:z[0]}function s(z){if(z.length===0)return null;var J=z[0],ne=z.pop();if(ne!==J){z[0]=ne;e:for(var Ee=0,Ne=z.length,T=Ne>>>1;Ee<T;){var q=2*(Ee+1)-1,I=z[q],ae=q+1,ve=z[ae];if(0>o(I,ne))ae<Ne&&0>o(ve,I)?(z[Ee]=ve,z[ae]=ne,Ee=ae):(z[Ee]=I,z[q]=ne,Ee=q);else if(ae<Ne&&0>o(ve,ne))z[Ee]=ve,z[ae]=ne,Ee=ae;else break e}}return J}function o(z,J){var ne=z.sortIndex-J.sortIndex;return ne!==0?ne:z.id-J.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;l.unstable_now=function(){return c.now()}}else{var d=Date,p=d.now();l.unstable_now=function(){return d.now()-p}}var h=[],m=[],v=1,y=null,x=3,E=!1,N=!1,O=!1,L=!1,Q=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function P(z){for(var J=i(m);J!==null;){if(J.callback===null)s(m);else if(J.startTime<=z)s(m),J.sortIndex=J.expirationTime,n(h,J);else break;J=i(m)}}function ee(z){if(O=!1,P(z),!N)if(i(h)!==null)N=!0,Y||(Y=!0,te());else{var J=i(m);J!==null&&he(ee,J.startTime-z)}}var Y=!1,_=-1,K=5,$=-1;function Z(){return L?!0:!(l.unstable_now()-$<K)}function F(){if(L=!1,Y){var z=l.unstable_now();$=z;var J=!0;try{e:{N=!1,O&&(O=!1,M(_),_=-1),E=!0;var ne=x;try{t:{for(P(z),y=i(h);y!==null&&!(y.expirationTime>z&&Z());){var Ee=y.callback;if(typeof Ee=="function"){y.callback=null,x=y.priorityLevel;var Ne=Ee(y.expirationTime<=z);if(z=l.unstable_now(),typeof Ne=="function"){y.callback=Ne,P(z),J=!0;break t}y===i(h)&&s(h),P(z)}else s(h);y=i(h)}if(y!==null)J=!0;else{var T=i(m);T!==null&&he(ee,T.startTime-z),J=!1}}break e}finally{y=null,x=ne,E=!1}J=void 0}}finally{J?te():Y=!1}}}var te;if(typeof B=="function")te=function(){B(F)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,ce=ie.port2;ie.port1.onmessage=F,te=function(){ce.postMessage(null)}}else te=function(){Q(F,0)};function he(z,J){_=Q(function(){z(l.unstable_now())},J)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(z){z.callback=null},l.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<z?Math.floor(1e3/z):5},l.unstable_getCurrentPriorityLevel=function(){return x},l.unstable_next=function(z){switch(x){case 1:case 2:case 3:var J=3;break;default:J=x}var ne=x;x=J;try{return z()}finally{x=ne}},l.unstable_requestPaint=function(){L=!0},l.unstable_runWithPriority=function(z,J){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var ne=x;x=z;try{return J()}finally{x=ne}},l.unstable_scheduleCallback=function(z,J,ne){var Ee=l.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?Ee+ne:Ee):ne=Ee,z){case 1:var Ne=-1;break;case 2:Ne=250;break;case 5:Ne=1073741823;break;case 4:Ne=1e4;break;default:Ne=5e3}return Ne=ne+Ne,z={id:v++,callback:J,priorityLevel:z,startTime:ne,expirationTime:Ne,sortIndex:-1},ne>Ee?(z.sortIndex=ne,n(m,z),i(h)===null&&z===i(m)&&(O?(M(_),_=-1):O=!0,he(ee,ne-Ee))):(z.sortIndex=Ne,n(h,z),N||E||(N=!0,Y||(Y=!0,te()))),z},l.unstable_shouldYield=Z,l.unstable_wrapCallback=function(z){var J=x;return function(){var ne=x;x=J;try{return z.apply(this,arguments)}finally{x=ne}}}})(uf)),uf}var Ig;function Ww(){return Ig||(Ig=1,of.exports=Iw()),of.exports}var cf={exports:{}},wt={};var Wg;function eC(){if(Wg)return wt;Wg=1;var l=Tr();function n(h){var m="https://react.dev/errors/"+h;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 #"+h+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={d:{f:i,r:function(){throw Error(n(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(h,m,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:y==null?null:""+y,children:h,containerInfo:m,implementation:v}}var d=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return wt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,wt.createPortal=function(h,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(n(299));return c(h,m,null,v)},wt.flushSync=function(h){var m=d.T,v=s.p;try{if(d.T=null,s.p=2,h)return h()}finally{d.T=m,s.p=v,s.d.f()}},wt.preconnect=function(h,m){typeof h=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,s.d.C(h,m))},wt.prefetchDNS=function(h){typeof h=="string"&&s.d.D(h)},wt.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var v=m.as,y=p(v,m.crossOrigin),x=typeof m.integrity=="string"?m.integrity:void 0,E=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?s.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:y,integrity:x,fetchPriority:E}):v==="script"&&s.d.X(h,{crossOrigin:y,integrity:x,fetchPriority:E,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},wt.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=p(m.as,m.crossOrigin);s.d.M(h,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&s.d.M(h)},wt.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,y=p(v,m.crossOrigin);s.d.L(h,v,{crossOrigin:y,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})}},wt.preloadModule=function(h,m){if(typeof h=="string")if(m){var v=p(m.as,m.crossOrigin);s.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else s.d.m(h)},wt.requestFormReset=function(h){s.d.r(h)},wt.unstable_batchedUpdates=function(h,m){return h(m)},wt.useFormState=function(h,m,v){return d.H.useFormState(h,m,v)},wt.useFormStatus=function(){return d.H.useHostTransitionStatus()},wt.version="19.2.3",wt}var ev;function tC(){if(ev)return cf.exports;ev=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(n){console.error(n)}}return l(),cf.exports=eC(),cf.exports}var tv;function nC(){if(tv)return tr;tv=1;var l=Ww(),n=Tr(),i=tC();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(c(e)!==e)throw Error(s(188))}function m(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,r=t;;){var u=a.return;if(u===null)break;var f=u.alternate;if(f===null){if(r=u.return,r!==null){a=r;continue}break}if(u.child===f.child){for(f=u.child;f;){if(f===a)return h(u),e;if(f===r)return h(u),t;f=f.sibling}throw Error(s(188))}if(a.return!==r.return)a=u,r=f;else{for(var g=!1,S=u.child;S;){if(S===a){g=!0,a=u,r=f;break}if(S===r){g=!0,r=u,a=f;break}S=S.sibling}if(!g){for(S=f.child;S;){if(S===a){g=!0,a=f,r=u;break}if(S===r){g=!0,r=f,a=u;break}S=S.sibling}if(!g)throw Error(s(189))}}if(a.alternate!==r)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,x=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),M=Symbol.for("react.consumer"),B=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),Z=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function te(e){return e===null||typeof e!="object"?null:(e=F&&e[F]||e["@@iterator"],typeof e=="function"?e:null)}var ie=Symbol.for("react.client.reference");function ce(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ie?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case Q:return"Profiler";case L:return"StrictMode";case ee:return"Suspense";case Y:return"SuspenseList";case $:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case N:return"Portal";case B:return e.displayName||"Context";case M:return(e._context.displayName||"Context")+".Consumer";case P:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _:return t=e.displayName||null,t!==null?t:ce(e.type)||"Memo";case K:t=e._payload,e=e._init;try{return ce(e(t))}catch{}}return null}var he=Array.isArray,z=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},Ee=[],Ne=-1;function T(e){return{current:e}}function q(e){0>Ne||(e.current=Ee[Ne],Ee[Ne]=null,Ne--)}function I(e,t){Ne++,Ee[Ne]=e.current,e.current=t}var ae=T(null),ve=T(null),we=T(null),ze=T(null);function Et(e,t){switch(I(we,t),I(ve,e),I(ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Wm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Wm(t),e=eg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(ae),I(ae,e)}function Ie(){q(ae),q(ve),q(we)}function ri(e){e.memoizedState!==null&&I(ze,e);var t=ae.current,a=eg(t,e.type);t!==a&&(I(ve,e),I(ae,a))}function Dr(e){ve.current===e&&(q(ae),q(ve)),ze.current===e&&(q(ze),Ji._currentValue=ne)}var zo,Od;function Ma(e){if(zo===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);zo=t&&t[1]||"",Od=-1<a.stack.indexOf(`
11
+ <p>Assurez-vous de copier les informations ci-dessous, car elles seront perdues une fois que vous fermerez cet onglet.</p>`,lC={en:{translation:{...BE,introduction:eC,userManual:nC}},fr:{translation:{...Ww,introduction:tC,userManual:aC}}};Tt.use(m1).init({resources:lC,lng:navigator.language.split("-")[0],fallbackLng:"en",interpolation:{escapeValue:!1}});function Zv(l){var n,i,s="";if(typeof l=="string"||typeof l=="number")s+=l;else if(typeof l=="object")if(Array.isArray(l)){var o=l.length;for(n=0;n<o;n++)l[n]&&(i=Zv(l[n]))&&(s&&(s+=" "),s+=i)}else for(i in l)l[i]&&(s&&(s+=" "),s+=i);return s}function On(){for(var l,n,i=0,s="",o=arguments.length;i<o;i++)(l=arguments[i])&&(n=Zv(l))&&(s&&(s+=" "),s+=n);return s}function iC({checked:l,onChange:n,label:i,inputLabel:s,className:o,...c}){const f=h=>{n?.(h.target.checked,h)},p=s?b.jsxs("label",{className:On("PaCheckboxField",o),children:[b.jsx("input",{className:"PaCheckboxInput",type:"checkbox",checked:l,onChange:f,...c}),b.jsx("span",{className:"PaCheckboxField-label",children:s})]}):b.jsx("input",{className:On("PaCheckboxInput",o),type:"checkbox",checked:l,onChange:f,...c});return b.jsx(b.Fragment,{children:i?b.jsxs("label",{className:On("PaField",o),children:[b.jsx("span",{className:"PaField-label",children:i}),p]}):p})}const rC=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),sC=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,i,s)=>s?s.toUpperCase():i.toLowerCase()),av=l=>{const n=sC(l);return n.charAt(0).toUpperCase()+n.slice(1)},Jv=(...l)=>l.filter((n,i,s)=>!!n&&n.trim()!==""&&s.indexOf(n)===i).join(" ").trim(),oC=l=>{for(const n in l)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};var uC={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const cC=w.forwardRef(({color:l="currentColor",size:n=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:o="",children:c,iconNode:f,...p},h)=>w.createElement("svg",{ref:h,...uC,width:n,height:n,stroke:l,strokeWidth:s?Number(i)*24/Number(n):i,className:Jv("lucide",o),...!c&&!oC(p)&&{"aria-hidden":"true"},...p},[...f.map(([m,y])=>w.createElement(m,y)),...Array.isArray(c)?c:[c]]));const Jf=(l,n)=>{const i=w.forwardRef(({className:s,...o},c)=>w.createElement(cC,{ref:c,iconNode:n,className:Jv(`lucide-${rC(av(l))}`,`lucide-${l}`,s),...o}));return i.displayName=av(l),i};const fC=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],dC=Jf("check",fC);const hC=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],pC=Jf("loader-circle",hC);const mC=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Fv=Jf("x",mC);function gC({className:l,label:n,error:i,value:s,onChange:o,ref:c,...f}){const p=m=>{o?.(m.target.value,m)},h=b.jsx("textarea",{ref:c,className:On("PaTextarea",i&&"error",!n&&l),value:s,onChange:p,...f});return b.jsxs(b.Fragment,{children:[n?b.jsxs("label",{className:On("PaField",i&&"error",l),children:[b.jsx("span",{className:"PaField-label",children:n}),h]}):h,i&&b.jsx("span",{className:"PaFieldError",children:i})]})}const Pv=w.createContext(void 0),cf={autoDismissAlertDurationMs:5e3,autoDismissInsideFeedbackDurationMs:2e3,logger:{error:console.error}};function vC({config:l,children:n}){return b.jsx(Pv.Provider,{value:l,children:n})}function Ff(){const l=w.useContext(Pv);return{autoDismissAlertDurationMs:l?.autoDismissAlertDurationMs??cf.autoDismissAlertDurationMs,autoDismissInsideFeedbackDurationMs:l?.autoDismissInsideFeedbackDurationMs??cf.autoDismissInsideFeedbackDurationMs,logger:l?.logger??cf.logger}}function ea(l){const{children:n,className:i,disabled:s,outlined:o,icon:c,severity:f="primary",ref:p,...h}=l,{autoDismissInsideFeedbackDurationMs:m}=Ff(),[y,v]=w.useState(!1),[x,E]=w.useState(!1);w.useEffect(()=>{!s&&x&&E(!1)},[s,x]);const R=On("PaBtn",f,o&&"outlined",s&&"disabled",x&&"feedback",i),A=w.useCallback(async Y=>{if(l.as==="async"){v(!0),E(!1);try{await l.onClick(Y),l.insideFeedback&&(E(!0),l.insideFeedback.autoDismiss&&setTimeout(()=>E(!1),m))}catch(_){l.onError?.(_)}finally{v(!1)}}},[l.as,...l.as==="async"?[l.onClick,!!l.insideFeedback,l.insideFeedback?.autoDismiss,l.onError,m]:[]]),B=w.useCallback(Y=>{l.as&&l.as!=="button"||(l.onClick&&l.onClick(Y),l.insideFeedback&&(E(!0),l.insideFeedback.autoDismiss&&setTimeout(()=>E(!1),m)))},[l.as,l.onClick,...!l.as||l.as==="button"?[!!l.insideFeedback,l.insideFeedback?.autoDismiss,m]:[]]);if(l.as==="a"){const{as:Y,..._}=h;return b.jsxs("a",{ref:p,className:R,..._,children:[c&&b.jsx("span",{className:"PaBtn-icon",children:c}),n]})}const{as:Q,onClick:M,type:U="button",insideFeedback:P,...ee}=h;return b.jsx("button",{ref:p,className:R,disabled:s||y,onClick:Q==="async"?A:B,type:U,...ee,children:y?b.jsxs(b.Fragment,{children:[b.jsx(pC,{size:16,className:"PaBtn-spinner"}),n]}):x&&P?b.jsxs(b.Fragment,{children:[b.jsx(dC,{size:16,className:"PaBtn-feedbackIcon"}),P.label]}):b.jsxs(b.Fragment,{children:[c&&b.jsx("span",{className:"PaBtn-icon",children:c}),n]})})}function Do({children:l,severity:n="info",title:i,className:s,onClose:o}){return b.jsxs("div",{className:On("PaAlert",n,o&&"dismissible",s),children:[o&&b.jsx("button",{type:"button",className:"PaAlert-closeBtn",onClick:o,"aria-label":"Close",children:b.jsx(Fv,{size:16})}),i&&b.jsx("div",{className:"PaAlert-title",children:i}),b.jsx("div",{className:"PaAlert-content",children:l})]})}function Pf(){return b.jsx("div",{className:"PaSpinner"})}const yC=typeof HTMLElement<"u"&&"showPopover"in HTMLElement.prototype;yC||console?.error("PopupMenu: Popover API is not supported in this browser.");const Iv=w.createContext(void 0);Iv.Provider;function Wv(l,n){const i=w.useContext(Iv),s=w.useRef(void 0);w.useEffect(()=>{let o,c;s.current?c=s.current.then(f):c=f(),s.current=c;function f(){return l().then(p=>(o=p??(()=>{}),p),i?p=>i.error(p):void 0)}return()=>{if(o){const p=o();i&&p?.catch(h=>i.error(h))}else{const p=c.then(h=>h?.());i&&p.catch(h=>i.error(h))}}},n)}function bC({children:l,value:n,onChange:i,variant:s="default",className:o}){const c=[];return w.Children.forEach(l,f=>{w.isValidElement(f)&&f.props&&c.push(f.props)}),b.jsx("div",{className:On("PaTabs",s,o),role:"tablist",children:c.map(f=>b.jsxs("button",{type:"button",className:On("PaTab",n===f.value&&"active",f.disabled&&"disabled",f.className),onClick:()=>!f.disabled&&i(f.value),disabled:f.disabled,role:"tab","aria-selected":n===f.value,children:[f.icon&&b.jsx("span",{className:"PaTab-icon",children:f.icon}),f.label]},f.value))})}function ff(l){return null}function SC({visible:l,onHide:n,header:i,footer:s,children:o,className:c,closable:f=!0,size:p="md"}){const h=w.useRef(null);w.useEffect(()=>{const y=h.current;y&&(l?y.open||y.showModal():y.open&&y.close())},[l]),w.useEffect(()=>{const y=h.current;if(!y)return;const v=x=>{x.preventDefault(),f&&n()};return y.addEventListener("cancel",v),()=>y.removeEventListener("cancel",v)},[f,n]),w.useEffect(()=>(l?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[l]);const m=p==="innerContent"?void 0:p==="sm"?"sizeSm":p==="lg"?"sizeLg":"sizeMd";return b.jsxs("dialog",{ref:h,className:On("PaDialog",m,c),children:[(i||f)&&b.jsxs("div",{className:"PaDialog-header",children:[i&&b.jsx("div",{className:"PaDialog-title",children:i}),f&&b.jsx("button",{type:"button",className:"PaDialog-close",onClick:n,"aria-label":"Close",children:b.jsx(Fv,{size:18})})]}),b.jsx("div",{className:"PaDialog-content",children:o}),s&&b.jsx("div",{className:"PaDialog-footer",children:s})]})}var df={exports:{}};function lv(l,n){var i=Object.keys(l);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(l);n&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(l,o).enumerable})),i.push.apply(i,s)}return i}function _n(l){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?lv(Object(i),!0).forEach(function(s){xC(l,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(i)):lv(Object(i)).forEach(function(s){Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(i,s))})}return l}function uo(l){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?uo=function(n){return typeof n}:uo=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},uo(l)}function xC(l,n,i){return n in l?Object.defineProperty(l,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):l[n]=i,l}function pn(){return pn=Object.assign||function(l){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(l[s]=i[s])}return l},pn.apply(this,arguments)}function EC(l,n){if(l==null)return{};var i={},s=Object.keys(l),o,c;for(c=0;c<s.length;c++)o=s[c],!(n.indexOf(o)>=0)&&(i[o]=l[o]);return i}function wC(l,n){if(l==null)return{};var i=EC(l,n),s,o;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(l);for(o=0;o<c.length;o++)s=c[o],!(n.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(l,s)&&(i[s]=l[s])}return i}function CC(l){return TC(l)||NC(l)||RC(l)||jC()}function TC(l){if(Array.isArray(l))return Uf(l)}function NC(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function RC(l,n){if(l){if(typeof l=="string")return Uf(l,n);var i=Object.prototype.toString.call(l).slice(8,-1);if(i==="Object"&&l.constructor&&(i=l.constructor.name),i==="Map"||i==="Set")return Array.from(l);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Uf(l,n)}}function Uf(l,n){(n==null||n>l.length)&&(n=l.length);for(var i=0,s=new Array(n);i<n;i++)s[i]=l[i];return s}function jC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
12
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var AC="1.15.6";function In(l){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(l)}var na=In(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ar=In(/Edge/i),iv=In(/firefox/i),br=In(/safari/i)&&!In(/chrome/i)&&!In(/android/i),If=In(/iP(ad|od|hone)/i),ey=In(/chrome/i)&&In(/android/i),ty={capture:!1,passive:!1};function xe(l,n,i){l.addEventListener(n,i,!na&&ty)}function Se(l,n,i){l.removeEventListener(n,i,!na&&ty)}function xo(l,n){if(n){if(n[0]===">"&&(n=n.substring(1)),l)try{if(l.matches)return l.matches(n);if(l.msMatchesSelector)return l.msMatchesSelector(n);if(l.webkitMatchesSelector)return l.webkitMatchesSelector(n)}catch{return!1}return!1}}function ny(l){return l.host&&l!==document&&l.host.nodeType?l.host:l.parentNode}function Ht(l,n,i,s){if(l){i=i||document;do{if(n!=null&&(n[0]===">"?l.parentNode===i&&xo(l,n):xo(l,n))||s&&l===i)return l;if(l===i)break}while(l=ny(l))}return null}var rv=/\s+/g;function et(l,n,i){if(l&&n)if(l.classList)l.classList[i?"add":"remove"](n);else{var s=(" "+l.className+" ").replace(rv," ").replace(" "+n+" "," ");l.className=(s+(i?" "+n:"")).replace(rv," ")}}function se(l,n,i){var s=l&&l.style;if(s){if(i===void 0)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(l,""):l.currentStyle&&(i=l.currentStyle),n===void 0?i:i[n];!(n in s)&&n.indexOf("webkit")===-1&&(n="-webkit-"+n),s[n]=i+(typeof i=="string"?"":"px")}}function al(l,n){var i="";if(typeof l=="string")i=l;else do{var s=se(l,"transform");s&&s!=="none"&&(i=s+" "+i)}while(!n&&(l=l.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(i)}function ay(l,n,i){if(l){var s=l.getElementsByTagName(n),o=0,c=s.length;if(i)for(;o<c;o++)i(s[o],o);return s}return[]}function Dn(){var l=document.scrollingElement;return l||document.documentElement}function Ze(l,n,i,s,o){if(!(!l.getBoundingClientRect&&l!==window)){var c,f,p,h,m,y,v;if(l!==window&&l.parentNode&&l!==Dn()?(c=l.getBoundingClientRect(),f=c.top,p=c.left,h=c.bottom,m=c.right,y=c.height,v=c.width):(f=0,p=0,h=window.innerHeight,m=window.innerWidth,y=window.innerHeight,v=window.innerWidth),(n||i)&&l!==window&&(o=o||l.parentNode,!na))do if(o&&o.getBoundingClientRect&&(se(o,"transform")!=="none"||i&&se(o,"position")!=="static")){var x=o.getBoundingClientRect();f-=x.top+parseInt(se(o,"border-top-width")),p-=x.left+parseInt(se(o,"border-left-width")),h=f+c.height,m=p+c.width;break}while(o=o.parentNode);if(s&&l!==window){var E=al(o||l),R=E&&E.a,A=E&&E.d;E&&(f/=A,p/=R,v/=R,y/=A,h=f+y,m=p+v)}return{top:f,left:p,bottom:h,right:m,width:v,height:y}}}function sv(l,n,i){for(var s=Oa(l,!0),o=Ze(l)[n];s;){var c=Ze(s)[i],f=void 0;if(f=o>=c,!f)return s;if(s===Dn())break;s=Oa(s,!1)}return!1}function ni(l,n,i,s){for(var o=0,c=0,f=l.children;c<f.length;){if(f[c].style.display!=="none"&&f[c]!==fe.ghost&&(s||f[c]!==fe.dragged)&&Ht(f[c],i.draggable,l,!1)){if(o===n)return f[c];o++}c++}return null}function Wf(l,n){for(var i=l.lastElementChild;i&&(i===fe.ghost||se(i,"display")==="none"||n&&!xo(i,n));)i=i.previousElementSibling;return i||null}function lt(l,n){var i=0;if(!l||!l.parentNode)return-1;for(;l=l.previousElementSibling;)l.nodeName.toUpperCase()!=="TEMPLATE"&&l!==fe.clone&&(!n||xo(l,n))&&i++;return i}function ov(l){var n=0,i=0,s=Dn();if(l)do{var o=al(l),c=o.a,f=o.d;n+=l.scrollLeft*c,i+=l.scrollTop*f}while(l!==s&&(l=l.parentNode));return[n,i]}function OC(l,n){for(var i in l)if(l.hasOwnProperty(i)){for(var s in n)if(n.hasOwnProperty(s)&&n[s]===l[i][s])return Number(i)}return-1}function Oa(l,n){if(!l||!l.getBoundingClientRect)return Dn();var i=l,s=!1;do if(i.clientWidth<i.scrollWidth||i.clientHeight<i.scrollHeight){var o=se(i);if(i.clientWidth<i.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||i.clientHeight<i.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!i.getBoundingClientRect||i===document.body)return Dn();if(s||n)return i;s=!0}}while(i=i.parentNode);return Dn()}function DC(l,n){if(l&&n)for(var i in n)n.hasOwnProperty(i)&&(l[i]=n[i]);return l}function hf(l,n){return Math.round(l.top)===Math.round(n.top)&&Math.round(l.left)===Math.round(n.left)&&Math.round(l.height)===Math.round(n.height)&&Math.round(l.width)===Math.round(n.width)}var Sr;function ly(l,n){return function(){if(!Sr){var i=arguments,s=this;i.length===1?l.call(s,i[0]):l.apply(s,i),Sr=setTimeout(function(){Sr=void 0},n)}}}function _C(){clearTimeout(Sr),Sr=void 0}function iy(l,n,i){l.scrollLeft+=n,l.scrollTop+=i}function ed(l){var n=window.Polymer,i=window.jQuery||window.Zepto;return n&&n.dom?n.dom(l).cloneNode(!0):i?i(l).clone(!0)[0]:l.cloneNode(!0)}function uv(l,n){se(l,"position","absolute"),se(l,"top",n.top),se(l,"left",n.left),se(l,"width",n.width),se(l,"height",n.height)}function pf(l){se(l,"position",""),se(l,"top",""),se(l,"left",""),se(l,"width",""),se(l,"height","")}function ry(l,n,i){var s={};return Array.from(l.children).forEach(function(o){var c,f,p,h;if(!(!Ht(o,n.draggable,l,!1)||o.animated||o===i)){var m=Ze(o);s.left=Math.min((c=s.left)!==null&&c!==void 0?c:1/0,m.left),s.top=Math.min((f=s.top)!==null&&f!==void 0?f:1/0,m.top),s.right=Math.max((p=s.right)!==null&&p!==void 0?p:-1/0,m.right),s.bottom=Math.max((h=s.bottom)!==null&&h!==void 0?h:-1/0,m.bottom)}}),s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}var xt="Sortable"+new Date().getTime();function kC(){var l=[],n;return{captureAnimationState:function(){if(l=[],!!this.options.animation){var s=[].slice.call(this.el.children);s.forEach(function(o){if(!(se(o,"display")==="none"||o===fe.ghost)){l.push({target:o,rect:Ze(o)});var c=_n({},l[l.length-1].rect);if(o.thisAnimationDuration){var f=al(o,!0);f&&(c.top-=f.f,c.left-=f.e)}o.fromRect=c}})}},addAnimationState:function(s){l.push(s)},removeAnimationState:function(s){l.splice(OC(l,{target:s}),1)},animateAll:function(s){var o=this;if(!this.options.animation){clearTimeout(n),typeof s=="function"&&s();return}var c=!1,f=0;l.forEach(function(p){var h=0,m=p.target,y=m.fromRect,v=Ze(m),x=m.prevFromRect,E=m.prevToRect,R=p.rect,A=al(m,!0);A&&(v.top-=A.f,v.left-=A.e),m.toRect=v,m.thisAnimationDuration&&hf(x,v)&&!hf(y,v)&&(R.top-v.top)/(R.left-v.left)===(y.top-v.top)/(y.left-v.left)&&(h=zC(R,x,E,o.options)),hf(v,y)||(m.prevFromRect=y,m.prevToRect=v,h||(h=o.options.animation),o.animate(m,R,v,h)),h&&(c=!0,f=Math.max(f,h),clearTimeout(m.animationResetTimer),m.animationResetTimer=setTimeout(function(){m.animationTime=0,m.prevFromRect=null,m.fromRect=null,m.prevToRect=null,m.thisAnimationDuration=null},h),m.thisAnimationDuration=h)}),clearTimeout(n),c?n=setTimeout(function(){typeof s=="function"&&s()},f):typeof s=="function"&&s(),l=[]},animate:function(s,o,c,f){if(f){se(s,"transition",""),se(s,"transform","");var p=al(this.el),h=p&&p.a,m=p&&p.d,y=(o.left-c.left)/(h||1),v=(o.top-c.top)/(m||1);s.animatingX=!!y,s.animatingY=!!v,se(s,"transform","translate3d("+y+"px,"+v+"px,0)"),this.forRepaintDummy=MC(s),se(s,"transition","transform "+f+"ms"+(this.options.easing?" "+this.options.easing:"")),se(s,"transform","translate3d(0,0,0)"),typeof s.animated=="number"&&clearTimeout(s.animated),s.animated=setTimeout(function(){se(s,"transition",""),se(s,"transform",""),s.animated=!1,s.animatingX=!1,s.animatingY=!1},f)}}}}function MC(l){return l.offsetWidth}function zC(l,n,i,s){return Math.sqrt(Math.pow(n.top-l.top,2)+Math.pow(n.left-l.left,2))/Math.sqrt(Math.pow(n.top-i.top,2)+Math.pow(n.left-i.left,2))*s.animation}var Pl=[],mf={initializeByDefault:!0},Or={mount:function(n){for(var i in mf)mf.hasOwnProperty(i)&&!(i in n)&&(n[i]=mf[i]);Pl.forEach(function(s){if(s.pluginName===n.pluginName)throw"Sortable: Cannot mount plugin ".concat(n.pluginName," more than once")}),Pl.push(n)},pluginEvent:function(n,i,s){var o=this;this.eventCanceled=!1,s.cancel=function(){o.eventCanceled=!0};var c=n+"Global";Pl.forEach(function(f){i[f.pluginName]&&(i[f.pluginName][c]&&i[f.pluginName][c](_n({sortable:i},s)),i.options[f.pluginName]&&i[f.pluginName][n]&&i[f.pluginName][n](_n({sortable:i},s)))})},initializePlugins:function(n,i,s,o){Pl.forEach(function(p){var h=p.pluginName;if(!(!n.options[h]&&!p.initializeByDefault)){var m=new p(n,i,n.options);m.sortable=n,m.options=n.options,n[h]=m,pn(s,m.defaults)}});for(var c in n.options)if(n.options.hasOwnProperty(c)){var f=this.modifyOption(n,c,n.options[c]);typeof f<"u"&&(n.options[c]=f)}},getEventProperties:function(n,i){var s={};return Pl.forEach(function(o){typeof o.eventProperties=="function"&&pn(s,o.eventProperties.call(i[o.pluginName],n))}),s},modifyOption:function(n,i,s){var o;return Pl.forEach(function(c){n[c.pluginName]&&c.optionListeners&&typeof c.optionListeners[i]=="function"&&(o=c.optionListeners[i].call(n[c.pluginName],s))}),o}};function dr(l){var n=l.sortable,i=l.rootEl,s=l.name,o=l.targetEl,c=l.cloneEl,f=l.toEl,p=l.fromEl,h=l.oldIndex,m=l.newIndex,y=l.oldDraggableIndex,v=l.newDraggableIndex,x=l.originalEvent,E=l.putSortable,R=l.extraEventProperties;if(n=n||i&&i[xt],!!n){var A,B=n.options,Q="on"+s.charAt(0).toUpperCase()+s.substr(1);window.CustomEvent&&!na&&!Ar?A=new CustomEvent(s,{bubbles:!0,cancelable:!0}):(A=document.createEvent("Event"),A.initEvent(s,!0,!0)),A.to=f||i,A.from=p||i,A.item=o||i,A.clone=c,A.oldIndex=h,A.newIndex=m,A.oldDraggableIndex=y,A.newDraggableIndex=v,A.originalEvent=x,A.pullMode=E?E.lastPutMode:void 0;var M=_n(_n({},R),Or.getEventProperties(s,n));for(var U in M)A[U]=M[U];i&&i.dispatchEvent(A),B[Q]&&B[Q].call(n,A)}}var LC=["evt"],Ut=function(n,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=s.evt,c=wC(s,LC);Or.pluginEvent.bind(fe)(n,i,_n({dragEl:W,parentEl:at,ghostEl:ge,rootEl:Fe,nextEl:nl,lastDownEl:co,cloneEl:We,cloneHidden:Aa,dragStarted:hr,putSortable:St,activeSortable:fe.active,originalEvent:o,oldIndex:ti,oldDraggableIndex:xr,newIndex:It,newDraggableIndex:ja,hideGhostForTarget:cy,unhideGhostForTarget:fy,cloneNowHidden:function(){Aa=!0},cloneNowShown:function(){Aa=!1},dispatchSortableEvent:function(p){Rt({sortable:i,name:p,originalEvent:o})}},c))};function Rt(l){dr(_n({putSortable:St,cloneEl:We,targetEl:W,rootEl:Fe,oldIndex:ti,oldDraggableIndex:xr,newIndex:It,newDraggableIndex:ja},l))}var W,at,ge,Fe,nl,co,We,Aa,ti,It,xr,ja,Ws,St,ei=!1,Eo=!1,wo=[],el,bn,gf,vf,cv,fv,hr,Il,Er,wr=!1,eo=!1,fo,wt,yf=[],Bf=!1,Co=[],_o=typeof document<"u",to=If,dv=Ar||na?"cssFloat":"float",UC=_o&&!ey&&!If&&"draggable"in document.createElement("div"),sy=(function(){if(_o){if(na)return!1;var l=document.createElement("x");return l.style.cssText="pointer-events:auto",l.style.pointerEvents==="auto"}})(),oy=function(n,i){var s=se(n),o=parseInt(s.width)-parseInt(s.paddingLeft)-parseInt(s.paddingRight)-parseInt(s.borderLeftWidth)-parseInt(s.borderRightWidth),c=ni(n,0,i),f=ni(n,1,i),p=c&&se(c),h=f&&se(f),m=p&&parseInt(p.marginLeft)+parseInt(p.marginRight)+Ze(c).width,y=h&&parseInt(h.marginLeft)+parseInt(h.marginRight)+Ze(f).width;if(s.display==="flex")return s.flexDirection==="column"||s.flexDirection==="column-reverse"?"vertical":"horizontal";if(s.display==="grid")return s.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(c&&p.float&&p.float!=="none"){var v=p.float==="left"?"left":"right";return f&&(h.clear==="both"||h.clear===v)?"vertical":"horizontal"}return c&&(p.display==="block"||p.display==="flex"||p.display==="table"||p.display==="grid"||m>=o&&s[dv]==="none"||f&&s[dv]==="none"&&m+y>o)?"vertical":"horizontal"},BC=function(n,i,s){var o=s?n.left:n.top,c=s?n.right:n.bottom,f=s?n.width:n.height,p=s?i.left:i.top,h=s?i.right:i.bottom,m=s?i.width:i.height;return o===p||c===h||o+f/2===p+m/2},HC=function(n,i){var s;return wo.some(function(o){var c=o[xt].options.emptyInsertThreshold;if(!(!c||Wf(o))){var f=Ze(o),p=n>=f.left-c&&n<=f.right+c,h=i>=f.top-c&&i<=f.bottom+c;if(p&&h)return s=o}}),s},uy=function(n){function i(c,f){return function(p,h,m,y){var v=p.options.group.name&&h.options.group.name&&p.options.group.name===h.options.group.name;if(c==null&&(f||v))return!0;if(c==null||c===!1)return!1;if(f&&c==="clone")return c;if(typeof c=="function")return i(c(p,h,m,y),f)(p,h,m,y);var x=(f?p:h).options.group.name;return c===!0||typeof c=="string"&&c===x||c.join&&c.indexOf(x)>-1}}var s={},o=n.group;(!o||uo(o)!="object")&&(o={name:o}),s.name=o.name,s.checkPull=i(o.pull,!0),s.checkPut=i(o.put),s.revertClone=o.revertClone,n.group=s},cy=function(){!sy&&ge&&se(ge,"display","none")},fy=function(){!sy&&ge&&se(ge,"display","")};_o&&!ey&&document.addEventListener("click",function(l){if(Eo)return l.preventDefault(),l.stopPropagation&&l.stopPropagation(),l.stopImmediatePropagation&&l.stopImmediatePropagation(),Eo=!1,!1},!0);var tl=function(n){if(W){n=n.touches?n.touches[0]:n;var i=HC(n.clientX,n.clientY);if(i){var s={};for(var o in n)n.hasOwnProperty(o)&&(s[o]=n[o]);s.target=s.rootEl=i,s.preventDefault=void 0,s.stopPropagation=void 0,i[xt]._onDragOver(s)}}},$C=function(n){W&&W.parentNode[xt]._isOutsideThisEl(n.target)};function fe(l,n){if(!(l&&l.nodeType&&l.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(l));this.el=l,this.options=n=pn({},n),l[xt]=this;var i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(l.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return oy(l,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(f,p){f.setData("Text",p.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:fe.supportPointer!==!1&&"PointerEvent"in window&&(!br||If),emptyInsertThreshold:5};Or.initializePlugins(this,l,i);for(var s in i)!(s in n)&&(n[s]=i[s]);uy(n);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=n.forceFallback?!1:UC,this.nativeDraggable&&(this.options.touchStartThreshold=1),n.supportPointer?xe(l,"pointerdown",this._onTapStart):(xe(l,"mousedown",this._onTapStart),xe(l,"touchstart",this._onTapStart)),this.nativeDraggable&&(xe(l,"dragover",this),xe(l,"dragenter",this)),wo.push(this.el),n.store&&n.store.get&&this.sort(n.store.get(this)||[]),pn(this,kC())}fe.prototype={constructor:fe,_isOutsideThisEl:function(n){!this.el.contains(n)&&n!==this.el&&(Il=null)},_getDirection:function(n,i){return typeof this.options.direction=="function"?this.options.direction.call(this,n,i,W):this.options.direction},_onTapStart:function(n){if(n.cancelable){var i=this,s=this.el,o=this.options,c=o.preventOnFilter,f=n.type,p=n.touches&&n.touches[0]||n.pointerType&&n.pointerType==="touch"&&n,h=(p||n).target,m=n.target.shadowRoot&&(n.path&&n.path[0]||n.composedPath&&n.composedPath()[0])||h,y=o.filter;if(ZC(s),!W&&!(/mousedown|pointerdown/.test(f)&&n.button!==0||o.disabled)&&!m.isContentEditable&&!(!this.nativeDraggable&&br&&h&&h.tagName.toUpperCase()==="SELECT")&&(h=Ht(h,o.draggable,s,!1),!(h&&h.animated)&&co!==h)){if(ti=lt(h),xr=lt(h,o.draggable),typeof y=="function"){if(y.call(this,n,h,this)){Rt({sortable:i,rootEl:m,name:"filter",targetEl:h,toEl:s,fromEl:s}),Ut("filter",i,{evt:n}),c&&n.preventDefault();return}}else if(y&&(y=y.split(",").some(function(v){if(v=Ht(m,v.trim(),s,!1),v)return Rt({sortable:i,rootEl:v,name:"filter",targetEl:h,fromEl:s,toEl:s}),Ut("filter",i,{evt:n}),!0}),y)){c&&n.preventDefault();return}o.handle&&!Ht(m,o.handle,s,!1)||this._prepareDragStart(n,p,h)}}},_prepareDragStart:function(n,i,s){var o=this,c=o.el,f=o.options,p=c.ownerDocument,h;if(s&&!W&&s.parentNode===c){var m=Ze(s);if(Fe=c,W=s,at=W.parentNode,nl=W.nextSibling,co=s,Ws=f.group,fe.dragged=W,el={target:W,clientX:(i||n).clientX,clientY:(i||n).clientY},cv=el.clientX-m.left,fv=el.clientY-m.top,this._lastX=(i||n).clientX,this._lastY=(i||n).clientY,W.style["will-change"]="all",h=function(){if(Ut("delayEnded",o,{evt:n}),fe.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!iv&&o.nativeDraggable&&(W.draggable=!0),o._triggerDragStart(n,i),Rt({sortable:o,name:"choose",originalEvent:n}),et(W,f.chosenClass,!0)},f.ignore.split(",").forEach(function(y){ay(W,y.trim(),bf)}),xe(p,"dragover",tl),xe(p,"mousemove",tl),xe(p,"touchmove",tl),f.supportPointer?(xe(p,"pointerup",o._onDrop),!this.nativeDraggable&&xe(p,"pointercancel",o._onDrop)):(xe(p,"mouseup",o._onDrop),xe(p,"touchend",o._onDrop),xe(p,"touchcancel",o._onDrop)),iv&&this.nativeDraggable&&(this.options.touchStartThreshold=4,W.draggable=!0),Ut("delayStart",this,{evt:n}),f.delay&&(!f.delayOnTouchOnly||i)&&(!this.nativeDraggable||!(Ar||na))){if(fe.eventCanceled){this._onDrop();return}f.supportPointer?(xe(p,"pointerup",o._disableDelayedDrag),xe(p,"pointercancel",o._disableDelayedDrag)):(xe(p,"mouseup",o._disableDelayedDrag),xe(p,"touchend",o._disableDelayedDrag),xe(p,"touchcancel",o._disableDelayedDrag)),xe(p,"mousemove",o._delayedDragTouchMoveHandler),xe(p,"touchmove",o._delayedDragTouchMoveHandler),f.supportPointer&&xe(p,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(h,f.delay)}else h()}},_delayedDragTouchMoveHandler:function(n){var i=n.touches?n.touches[0]:n;Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){W&&bf(W),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var n=this.el.ownerDocument;Se(n,"mouseup",this._disableDelayedDrag),Se(n,"touchend",this._disableDelayedDrag),Se(n,"touchcancel",this._disableDelayedDrag),Se(n,"pointerup",this._disableDelayedDrag),Se(n,"pointercancel",this._disableDelayedDrag),Se(n,"mousemove",this._delayedDragTouchMoveHandler),Se(n,"touchmove",this._delayedDragTouchMoveHandler),Se(n,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(n,i){i=i||n.pointerType=="touch"&&n,!this.nativeDraggable||i?this.options.supportPointer?xe(document,"pointermove",this._onTouchMove):i?xe(document,"touchmove",this._onTouchMove):xe(document,"mousemove",this._onTouchMove):(xe(W,"dragend",this),xe(Fe,"dragstart",this._onDragStart));try{document.selection?ho(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(n,i){if(ei=!1,Fe&&W){Ut("dragStarted",this,{evt:i}),this.nativeDraggable&&xe(document,"dragover",$C);var s=this.options;!n&&et(W,s.dragClass,!1),et(W,s.ghostClass,!0),fe.active=this,n&&this._appendGhost(),Rt({sortable:this,name:"start",originalEvent:i})}else this._nulling()},_emulateDragOver:function(){if(bn){this._lastX=bn.clientX,this._lastY=bn.clientY,cy();for(var n=document.elementFromPoint(bn.clientX,bn.clientY),i=n;n&&n.shadowRoot&&(n=n.shadowRoot.elementFromPoint(bn.clientX,bn.clientY),n!==i);)i=n;if(W.parentNode[xt]._isOutsideThisEl(n),i)do{if(i[xt]){var s=void 0;if(s=i[xt]._onDragOver({clientX:bn.clientX,clientY:bn.clientY,target:n,rootEl:i}),s&&!this.options.dragoverBubble)break}n=i}while(i=ny(i));fy()}},_onTouchMove:function(n){if(el){var i=this.options,s=i.fallbackTolerance,o=i.fallbackOffset,c=n.touches?n.touches[0]:n,f=ge&&al(ge,!0),p=ge&&f&&f.a,h=ge&&f&&f.d,m=to&&wt&&ov(wt),y=(c.clientX-el.clientX+o.x)/(p||1)+(m?m[0]-yf[0]:0)/(p||1),v=(c.clientY-el.clientY+o.y)/(h||1)+(m?m[1]-yf[1]:0)/(h||1);if(!fe.active&&!ei){if(s&&Math.max(Math.abs(c.clientX-this._lastX),Math.abs(c.clientY-this._lastY))<s)return;this._onDragStart(n,!0)}if(ge){f?(f.e+=y-(gf||0),f.f+=v-(vf||0)):f={a:1,b:0,c:0,d:1,e:y,f:v};var x="matrix(".concat(f.a,",").concat(f.b,",").concat(f.c,",").concat(f.d,",").concat(f.e,",").concat(f.f,")");se(ge,"webkitTransform",x),se(ge,"mozTransform",x),se(ge,"msTransform",x),se(ge,"transform",x),gf=y,vf=v,bn=c}n.cancelable&&n.preventDefault()}},_appendGhost:function(){if(!ge){var n=this.options.fallbackOnBody?document.body:Fe,i=Ze(W,!0,to,!0,n),s=this.options;if(to){for(wt=n;se(wt,"position")==="static"&&se(wt,"transform")==="none"&&wt!==document;)wt=wt.parentNode;wt!==document.body&&wt!==document.documentElement?(wt===document&&(wt=Dn()),i.top+=wt.scrollTop,i.left+=wt.scrollLeft):wt=Dn(),yf=ov(wt)}ge=W.cloneNode(!0),et(ge,s.ghostClass,!1),et(ge,s.fallbackClass,!0),et(ge,s.dragClass,!0),se(ge,"transition",""),se(ge,"transform",""),se(ge,"box-sizing","border-box"),se(ge,"margin",0),se(ge,"top",i.top),se(ge,"left",i.left),se(ge,"width",i.width),se(ge,"height",i.height),se(ge,"opacity","0.8"),se(ge,"position",to?"absolute":"fixed"),se(ge,"zIndex","100000"),se(ge,"pointerEvents","none"),fe.ghost=ge,n.appendChild(ge),se(ge,"transform-origin",cv/parseInt(ge.style.width)*100+"% "+fv/parseInt(ge.style.height)*100+"%")}},_onDragStart:function(n,i){var s=this,o=n.dataTransfer,c=s.options;if(Ut("dragStart",this,{evt:n}),fe.eventCanceled){this._onDrop();return}Ut("setupClone",this),fe.eventCanceled||(We=ed(W),We.removeAttribute("id"),We.draggable=!1,We.style["will-change"]="",this._hideClone(),et(We,this.options.chosenClass,!1),fe.clone=We),s.cloneId=ho(function(){Ut("clone",s),!fe.eventCanceled&&(s.options.removeCloneOnHide||Fe.insertBefore(We,W),s._hideClone(),Rt({sortable:s,name:"clone"}))}),!i&&et(W,c.dragClass,!0),i?(Eo=!0,s._loopId=setInterval(s._emulateDragOver,50)):(Se(document,"mouseup",s._onDrop),Se(document,"touchend",s._onDrop),Se(document,"touchcancel",s._onDrop),o&&(o.effectAllowed="move",c.setData&&c.setData.call(s,o,W)),xe(document,"drop",s),se(W,"transform","translateZ(0)")),ei=!0,s._dragStartId=ho(s._dragStarted.bind(s,i,n)),xe(document,"selectstart",s),hr=!0,window.getSelection().removeAllRanges(),br&&se(document.body,"user-select","none")},_onDragOver:function(n){var i=this.el,s=n.target,o,c,f,p=this.options,h=p.group,m=fe.active,y=Ws===h,v=p.sort,x=St||m,E,R=this,A=!1;if(Bf)return;function B(ne,Ee){Ut(ne,R,_n({evt:n,isOwner:y,axis:E?"vertical":"horizontal",revert:f,dragRect:o,targetRect:c,canSort:v,fromSortable:x,target:s,completed:M,onMove:function(T,q){return no(Fe,i,W,o,T,Ze(T),n,q)},changed:U},Ee))}function Q(){B("dragOverAnimationCapture"),R.captureAnimationState(),R!==x&&x.captureAnimationState()}function M(ne){return B("dragOverCompleted",{insertion:ne}),ne&&(y?m._hideClone():m._showClone(R),R!==x&&(et(W,St?St.options.ghostClass:m.options.ghostClass,!1),et(W,p.ghostClass,!0)),St!==R&&R!==fe.active?St=R:R===fe.active&&St&&(St=null),x===R&&(R._ignoreWhileAnimating=s),R.animateAll(function(){B("dragOverAnimationComplete"),R._ignoreWhileAnimating=null}),R!==x&&(x.animateAll(),x._ignoreWhileAnimating=null)),(s===W&&!W.animated||s===i&&!s.animated)&&(Il=null),!p.dragoverBubble&&!n.rootEl&&s!==document&&(W.parentNode[xt]._isOutsideThisEl(n.target),!ne&&tl(n)),!p.dragoverBubble&&n.stopPropagation&&n.stopPropagation(),A=!0}function U(){It=lt(W),ja=lt(W,p.draggable),Rt({sortable:R,name:"change",toEl:i,newIndex:It,newDraggableIndex:ja,originalEvent:n})}if(n.preventDefault!==void 0&&n.cancelable&&n.preventDefault(),s=Ht(s,p.draggable,i,!0),B("dragOver"),fe.eventCanceled)return A;if(W.contains(n.target)||s.animated&&s.animatingX&&s.animatingY||R._ignoreWhileAnimating===s)return M(!1);if(Eo=!1,m&&!p.disabled&&(y?v||(f=at!==Fe):St===this||(this.lastPutMode=Ws.checkPull(this,m,W,n))&&h.checkPut(this,m,W,n))){if(E=this._getDirection(n,s)==="vertical",o=Ze(W),B("dragOverValid"),fe.eventCanceled)return A;if(f)return at=Fe,Q(),this._hideClone(),B("revert"),fe.eventCanceled||(nl?Fe.insertBefore(W,nl):Fe.appendChild(W)),M(!0);var P=Wf(i,p.draggable);if(!P||YC(n,E,this)&&!P.animated){if(P===W)return M(!1);if(P&&i===n.target&&(s=P),s&&(c=Ze(s)),no(Fe,i,W,o,s,c,n,!!s)!==!1)return Q(),P&&P.nextSibling?i.insertBefore(W,P.nextSibling):i.appendChild(W),at=i,U(),M(!0)}else if(P&&GC(n,E,this)){var ee=ni(i,0,p,!0);if(ee===W)return M(!1);if(s=ee,c=Ze(s),no(Fe,i,W,o,s,c,n,!1)!==!1)return Q(),i.insertBefore(W,ee),at=i,U(),M(!0)}else if(s.parentNode===i){c=Ze(s);var Y=0,_,K=W.parentNode!==i,$=!BC(W.animated&&W.toRect||o,s.animated&&s.toRect||c,E),Z=E?"top":"left",F=sv(s,"top","top")||sv(W,"top","top"),te=F?F.scrollTop:void 0;Il!==s&&(_=c[Z],wr=!1,eo=!$&&p.invertSwap||K),Y=XC(n,s,c,E,$?1:p.swapThreshold,p.invertedSwapThreshold==null?p.swapThreshold:p.invertedSwapThreshold,eo,Il===s);var ie;if(Y!==0){var ce=lt(W);do ce-=Y,ie=at.children[ce];while(ie&&(se(ie,"display")==="none"||ie===ge))}if(Y===0||ie===s)return M(!1);Il=s,Er=Y;var he=s.nextElementSibling,z=!1;z=Y===1;var J=no(Fe,i,W,o,s,c,n,z);if(J!==!1)return(J===1||J===-1)&&(z=J===1),Bf=!0,setTimeout(qC,30),Q(),z&&!he?i.appendChild(W):s.parentNode.insertBefore(W,z?he:s),F&&iy(F,0,te-F.scrollTop),at=W.parentNode,_!==void 0&&!eo&&(fo=Math.abs(_-Ze(s)[Z])),U(),M(!0)}if(i.contains(W))return M(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Se(document,"mousemove",this._onTouchMove),Se(document,"touchmove",this._onTouchMove),Se(document,"pointermove",this._onTouchMove),Se(document,"dragover",tl),Se(document,"mousemove",tl),Se(document,"touchmove",tl)},_offUpEvents:function(){var n=this.el.ownerDocument;Se(n,"mouseup",this._onDrop),Se(n,"touchend",this._onDrop),Se(n,"pointerup",this._onDrop),Se(n,"pointercancel",this._onDrop),Se(n,"touchcancel",this._onDrop),Se(document,"selectstart",this)},_onDrop:function(n){var i=this.el,s=this.options;if(It=lt(W),ja=lt(W,s.draggable),Ut("drop",this,{evt:n}),at=W&&W.parentNode,It=lt(W),ja=lt(W,s.draggable),fe.eventCanceled){this._nulling();return}ei=!1,eo=!1,wr=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Hf(this.cloneId),Hf(this._dragStartId),this.nativeDraggable&&(Se(document,"drop",this),Se(i,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),br&&se(document.body,"user-select",""),se(W,"transform",""),n&&(hr&&(n.cancelable&&n.preventDefault(),!s.dropBubble&&n.stopPropagation()),ge&&ge.parentNode&&ge.parentNode.removeChild(ge),(Fe===at||St&&St.lastPutMode!=="clone")&&We&&We.parentNode&&We.parentNode.removeChild(We),W&&(this.nativeDraggable&&Se(W,"dragend",this),bf(W),W.style["will-change"]="",hr&&!ei&&et(W,St?St.options.ghostClass:this.options.ghostClass,!1),et(W,this.options.chosenClass,!1),Rt({sortable:this,name:"unchoose",toEl:at,newIndex:null,newDraggableIndex:null,originalEvent:n}),Fe!==at?(It>=0&&(Rt({rootEl:at,name:"add",toEl:at,fromEl:Fe,originalEvent:n}),Rt({sortable:this,name:"remove",toEl:at,originalEvent:n}),Rt({rootEl:at,name:"sort",toEl:at,fromEl:Fe,originalEvent:n}),Rt({sortable:this,name:"sort",toEl:at,originalEvent:n})),St&&St.save()):It!==ti&&It>=0&&(Rt({sortable:this,name:"update",toEl:at,originalEvent:n}),Rt({sortable:this,name:"sort",toEl:at,originalEvent:n})),fe.active&&((It==null||It===-1)&&(It=ti,ja=xr),Rt({sortable:this,name:"end",toEl:at,originalEvent:n}),this.save()))),this._nulling()},_nulling:function(){Ut("nulling",this),Fe=W=at=ge=nl=We=co=Aa=el=bn=hr=It=ja=ti=xr=Il=Er=St=Ws=fe.dragged=fe.ghost=fe.clone=fe.active=null,Co.forEach(function(n){n.checked=!0}),Co.length=gf=vf=0},handleEvent:function(n){switch(n.type){case"drop":case"dragend":this._onDrop(n);break;case"dragenter":case"dragover":W&&(this._onDragOver(n),VC(n));break;case"selectstart":n.preventDefault();break}},toArray:function(){for(var n=[],i,s=this.el.children,o=0,c=s.length,f=this.options;o<c;o++)i=s[o],Ht(i,f.draggable,this.el,!1)&&n.push(i.getAttribute(f.dataIdAttr)||KC(i));return n},sort:function(n,i){var s={},o=this.el;this.toArray().forEach(function(c,f){var p=o.children[f];Ht(p,this.options.draggable,o,!1)&&(s[c]=p)},this),i&&this.captureAnimationState(),n.forEach(function(c){s[c]&&(o.removeChild(s[c]),o.appendChild(s[c]))}),i&&this.animateAll()},save:function(){var n=this.options.store;n&&n.set&&n.set(this)},closest:function(n,i){return Ht(n,i||this.options.draggable,this.el,!1)},option:function(n,i){var s=this.options;if(i===void 0)return s[n];var o=Or.modifyOption(this,n,i);typeof o<"u"?s[n]=o:s[n]=i,n==="group"&&uy(s)},destroy:function(){Ut("destroy",this);var n=this.el;n[xt]=null,Se(n,"mousedown",this._onTapStart),Se(n,"touchstart",this._onTapStart),Se(n,"pointerdown",this._onTapStart),this.nativeDraggable&&(Se(n,"dragover",this),Se(n,"dragenter",this)),Array.prototype.forEach.call(n.querySelectorAll("[draggable]"),function(i){i.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),wo.splice(wo.indexOf(this.el),1),this.el=n=null},_hideClone:function(){if(!Aa){if(Ut("hideClone",this),fe.eventCanceled)return;se(We,"display","none"),this.options.removeCloneOnHide&&We.parentNode&&We.parentNode.removeChild(We),Aa=!0}},_showClone:function(n){if(n.lastPutMode!=="clone"){this._hideClone();return}if(Aa){if(Ut("showClone",this),fe.eventCanceled)return;W.parentNode==Fe&&!this.options.group.revertClone?Fe.insertBefore(We,W):nl?Fe.insertBefore(We,nl):Fe.appendChild(We),this.options.group.revertClone&&this.animate(W,We),se(We,"display",""),Aa=!1}}};function VC(l){l.dataTransfer&&(l.dataTransfer.dropEffect="move"),l.cancelable&&l.preventDefault()}function no(l,n,i,s,o,c,f,p){var h,m=l[xt],y=m.options.onMove,v;return window.CustomEvent&&!na&&!Ar?h=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(h=document.createEvent("Event"),h.initEvent("move",!0,!0)),h.to=n,h.from=l,h.dragged=i,h.draggedRect=s,h.related=o||n,h.relatedRect=c||Ze(n),h.willInsertAfter=p,h.originalEvent=f,l.dispatchEvent(h),y&&(v=y.call(m,h,f)),v}function bf(l){l.draggable=!1}function qC(){Bf=!1}function GC(l,n,i){var s=Ze(ni(i.el,0,i.options,!0)),o=ry(i.el,i.options,ge),c=10;return n?l.clientX<o.left-c||l.clientY<s.top&&l.clientX<s.right:l.clientY<o.top-c||l.clientY<s.bottom&&l.clientX<s.left}function YC(l,n,i){var s=Ze(Wf(i.el,i.options.draggable)),o=ry(i.el,i.options,ge),c=10;return n?l.clientX>o.right+c||l.clientY>s.bottom&&l.clientX>s.left:l.clientY>o.bottom+c||l.clientX>s.right&&l.clientY>s.top}function XC(l,n,i,s,o,c,f,p){var h=s?l.clientY:l.clientX,m=s?i.height:i.width,y=s?i.top:i.left,v=s?i.bottom:i.right,x=!1;if(!f){if(p&&fo<m*o){if(!wr&&(Er===1?h>y+m*c/2:h<v-m*c/2)&&(wr=!0),wr)x=!0;else if(Er===1?h<y+fo:h>v-fo)return-Er}else if(h>y+m*(1-o)/2&&h<v-m*(1-o)/2)return QC(n)}return x=x||f,x&&(h<y+m*c/2||h>v-m*c/2)?h>y+m/2?1:-1:0}function QC(l){return lt(W)<lt(l)?1:-1}function KC(l){for(var n=l.tagName+l.className+l.src+l.href+l.textContent,i=n.length,s=0;i--;)s+=n.charCodeAt(i);return s.toString(36)}function ZC(l){Co.length=0;for(var n=l.getElementsByTagName("input"),i=n.length;i--;){var s=n[i];s.checked&&Co.push(s)}}function ho(l){return setTimeout(l,0)}function Hf(l){return clearTimeout(l)}_o&&xe(document,"touchmove",function(l){(fe.active||ei)&&l.cancelable&&l.preventDefault()});fe.utils={on:xe,off:Se,css:se,find:ay,is:function(n,i){return!!Ht(n,i,n,!1)},extend:DC,throttle:ly,closest:Ht,toggleClass:et,clone:ed,index:lt,nextTick:ho,cancelNextTick:Hf,detectDirection:oy,getChild:ni,expando:xt};fe.get=function(l){return l[xt]};fe.mount=function(){for(var l=arguments.length,n=new Array(l),i=0;i<l;i++)n[i]=arguments[i];n[0].constructor===Array&&(n=n[0]),n.forEach(function(s){if(!s.prototype||!s.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(s));s.utils&&(fe.utils=_n(_n({},fe.utils),s.utils)),Or.mount(s)})};fe.create=function(l,n){return new fe(l,n)};fe.version=AC;var ft=[],pr,$f,Vf=!1,Sf,xf,To,mr;function JC(){function l(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this))}return l.prototype={dragStarted:function(i){var s=i.originalEvent;this.sortable.nativeDraggable?xe(document,"dragover",this._handleAutoScroll):this.options.supportPointer?xe(document,"pointermove",this._handleFallbackAutoScroll):s.touches?xe(document,"touchmove",this._handleFallbackAutoScroll):xe(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(i){var s=i.originalEvent;!this.options.dragOverBubble&&!s.rootEl&&this._handleAutoScroll(s)},drop:function(){this.sortable.nativeDraggable?Se(document,"dragover",this._handleAutoScroll):(Se(document,"pointermove",this._handleFallbackAutoScroll),Se(document,"touchmove",this._handleFallbackAutoScroll),Se(document,"mousemove",this._handleFallbackAutoScroll)),hv(),po(),_C()},nulling:function(){To=$f=pr=Vf=mr=Sf=xf=null,ft.length=0},_handleFallbackAutoScroll:function(i){this._handleAutoScroll(i,!0)},_handleAutoScroll:function(i,s){var o=this,c=(i.touches?i.touches[0]:i).clientX,f=(i.touches?i.touches[0]:i).clientY,p=document.elementFromPoint(c,f);if(To=i,s||this.options.forceAutoScrollFallback||Ar||na||br){Ef(i,this.options,p,s);var h=Oa(p,!0);Vf&&(!mr||c!==Sf||f!==xf)&&(mr&&hv(),mr=setInterval(function(){var m=Oa(document.elementFromPoint(c,f),!0);m!==h&&(h=m,po()),Ef(i,o.options,m,s)},10),Sf=c,xf=f)}else{if(!this.options.bubbleScroll||Oa(p,!0)===Dn()){po();return}Ef(i,this.options,Oa(p,!1),!1)}}},pn(l,{pluginName:"scroll",initializeByDefault:!0})}function po(){ft.forEach(function(l){clearInterval(l.pid)}),ft=[]}function hv(){clearInterval(mr)}var Ef=ly(function(l,n,i,s){if(n.scroll){var o=(l.touches?l.touches[0]:l).clientX,c=(l.touches?l.touches[0]:l).clientY,f=n.scrollSensitivity,p=n.scrollSpeed,h=Dn(),m=!1,y;$f!==i&&($f=i,po(),pr=n.scroll,y=n.scrollFn,pr===!0&&(pr=Oa(i,!0)));var v=0,x=pr;do{var E=x,R=Ze(E),A=R.top,B=R.bottom,Q=R.left,M=R.right,U=R.width,P=R.height,ee=void 0,Y=void 0,_=E.scrollWidth,K=E.scrollHeight,$=se(E),Z=E.scrollLeft,F=E.scrollTop;E===h?(ee=U<_&&($.overflowX==="auto"||$.overflowX==="scroll"||$.overflowX==="visible"),Y=P<K&&($.overflowY==="auto"||$.overflowY==="scroll"||$.overflowY==="visible")):(ee=U<_&&($.overflowX==="auto"||$.overflowX==="scroll"),Y=P<K&&($.overflowY==="auto"||$.overflowY==="scroll"));var te=ee&&(Math.abs(M-o)<=f&&Z+U<_)-(Math.abs(Q-o)<=f&&!!Z),ie=Y&&(Math.abs(B-c)<=f&&F+P<K)-(Math.abs(A-c)<=f&&!!F);if(!ft[v])for(var ce=0;ce<=v;ce++)ft[ce]||(ft[ce]={});(ft[v].vx!=te||ft[v].vy!=ie||ft[v].el!==E)&&(ft[v].el=E,ft[v].vx=te,ft[v].vy=ie,clearInterval(ft[v].pid),(te!=0||ie!=0)&&(m=!0,ft[v].pid=setInterval((function(){s&&this.layer===0&&fe.active._onTouchMove(To);var he=ft[this.layer].vy?ft[this.layer].vy*p:0,z=ft[this.layer].vx?ft[this.layer].vx*p:0;typeof y=="function"&&y.call(fe.dragged.parentNode[xt],z,he,l,To,ft[this.layer].el)!=="continue"||iy(ft[this.layer].el,z,he)}).bind({layer:v}),24))),v++}while(n.bubbleScroll&&x!==h&&(x=Oa(x,!1)));Vf=m}},30),dy=function(n){var i=n.originalEvent,s=n.putSortable,o=n.dragEl,c=n.activeSortable,f=n.dispatchSortableEvent,p=n.hideGhostForTarget,h=n.unhideGhostForTarget;if(i){var m=s||c;p();var y=i.changedTouches&&i.changedTouches.length?i.changedTouches[0]:i,v=document.elementFromPoint(y.clientX,y.clientY);h(),m&&!m.el.contains(v)&&(f("spill"),this.onSpill({dragEl:o,putSortable:s}))}};function td(){}td.prototype={startIndex:null,dragStart:function(n){var i=n.oldDraggableIndex;this.startIndex=i},onSpill:function(n){var i=n.dragEl,s=n.putSortable;this.sortable.captureAnimationState(),s&&s.captureAnimationState();var o=ni(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(i,o):this.sortable.el.appendChild(i),this.sortable.animateAll(),s&&s.animateAll()},drop:dy};pn(td,{pluginName:"revertOnSpill"});function nd(){}nd.prototype={onSpill:function(n){var i=n.dragEl,s=n.putSortable,o=s||this.sortable;o.captureAnimationState(),i.parentNode&&i.parentNode.removeChild(i),o.animateAll()},drop:dy};pn(nd,{pluginName:"removeOnSpill"});var hn;function FC(){function l(){this.defaults={swapClass:"sortable-swap-highlight"}}return l.prototype={dragStart:function(i){var s=i.dragEl;hn=s},dragOverValid:function(i){var s=i.completed,o=i.target,c=i.onMove,f=i.activeSortable,p=i.changed,h=i.cancel;if(f.options.swap){var m=this.sortable.el,y=this.options;if(o&&o!==m){var v=hn;c(o)!==!1?(et(o,y.swapClass,!0),hn=o):hn=null,v&&v!==hn&&et(v,y.swapClass,!1)}p(),s(!0),h()}},drop:function(i){var s=i.activeSortable,o=i.putSortable,c=i.dragEl,f=o||this.sortable,p=this.options;hn&&et(hn,p.swapClass,!1),hn&&(p.swap||o&&o.options.swap)&&c!==hn&&(f.captureAnimationState(),f!==s&&s.captureAnimationState(),PC(c,hn),f.animateAll(),f!==s&&s.animateAll())},nulling:function(){hn=null}},pn(l,{pluginName:"swap",eventProperties:function(){return{swapItem:hn}}})}function PC(l,n){var i=l.parentNode,s=n.parentNode,o,c;!i||!s||i.isEqualNode(n)||s.isEqualNode(l)||(o=lt(l),c=lt(n),i.isEqualNode(s)&&o<c&&c++,i.insertBefore(n,i.children[o]),s.insertBefore(l,s.children[c]))}var me=[],Pt=[],lr,Sn,ir=!1,Bt=!1,Wl=!1,Ye,rr,ao;function IC(){function l(n){for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));n.options.avoidImplicitDeselect||(n.options.supportPointer?xe(document,"pointerup",this._deselectMultiDrag):(xe(document,"mouseup",this._deselectMultiDrag),xe(document,"touchend",this._deselectMultiDrag))),xe(document,"keydown",this._checkKeyDown),xe(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,avoidImplicitDeselect:!1,setData:function(o,c){var f="";me.length&&Sn===n?me.forEach(function(p,h){f+=(h?", ":"")+p.textContent}):f=c.textContent,o.setData("Text",f)}}}return l.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(i){var s=i.dragEl;Ye=s},delayEnded:function(){this.isMultiDrag=~me.indexOf(Ye)},setupClone:function(i){var s=i.sortable,o=i.cancel;if(this.isMultiDrag){for(var c=0;c<me.length;c++)Pt.push(ed(me[c])),Pt[c].sortableIndex=me[c].sortableIndex,Pt[c].draggable=!1,Pt[c].style["will-change"]="",et(Pt[c],this.options.selectedClass,!1),me[c]===Ye&&et(Pt[c],this.options.chosenClass,!1);s._hideClone(),o()}},clone:function(i){var s=i.sortable,o=i.rootEl,c=i.dispatchSortableEvent,f=i.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||me.length&&Sn===s&&(pv(!0,o),c("clone"),f()))},showClone:function(i){var s=i.cloneNowShown,o=i.rootEl,c=i.cancel;this.isMultiDrag&&(pv(!1,o),Pt.forEach(function(f){se(f,"display","")}),s(),ao=!1,c())},hideClone:function(i){var s=this;i.sortable;var o=i.cloneNowHidden,c=i.cancel;this.isMultiDrag&&(Pt.forEach(function(f){se(f,"display","none"),s.options.removeCloneOnHide&&f.parentNode&&f.parentNode.removeChild(f)}),o(),ao=!0,c())},dragStartGlobal:function(i){i.sortable,!this.isMultiDrag&&Sn&&Sn.multiDrag._deselectMultiDrag(),me.forEach(function(s){s.sortableIndex=lt(s)}),me=me.sort(function(s,o){return s.sortableIndex-o.sortableIndex}),Wl=!0},dragStarted:function(i){var s=this,o=i.sortable;if(this.isMultiDrag){if(this.options.sort&&(o.captureAnimationState(),this.options.animation)){me.forEach(function(f){f!==Ye&&se(f,"position","absolute")});var c=Ze(Ye,!1,!0,!0);me.forEach(function(f){f!==Ye&&uv(f,c)}),Bt=!0,ir=!0}o.animateAll(function(){Bt=!1,ir=!1,s.options.animation&&me.forEach(function(f){pf(f)}),s.options.sort&&lo()})}},dragOver:function(i){var s=i.target,o=i.completed,c=i.cancel;Bt&&~me.indexOf(s)&&(o(!1),c())},revert:function(i){var s=i.fromSortable,o=i.rootEl,c=i.sortable,f=i.dragRect;me.length>1&&(me.forEach(function(p){c.addAnimationState({target:p,rect:Bt?Ze(p):f}),pf(p),p.fromRect=f,s.removeAnimationState(p)}),Bt=!1,WC(!this.options.removeCloneOnHide,o))},dragOverCompleted:function(i){var s=i.sortable,o=i.isOwner,c=i.insertion,f=i.activeSortable,p=i.parentEl,h=i.putSortable,m=this.options;if(c){if(o&&f._hideClone(),ir=!1,m.animation&&me.length>1&&(Bt||!o&&!f.options.sort&&!h)){var y=Ze(Ye,!1,!0,!0);me.forEach(function(x){x!==Ye&&(uv(x,y),p.appendChild(x))}),Bt=!0}if(!o)if(Bt||lo(),me.length>1){var v=ao;f._showClone(s),f.options.animation&&!ao&&v&&Pt.forEach(function(x){f.addAnimationState({target:x,rect:rr}),x.fromRect=rr,x.thisAnimationDuration=null})}else f._showClone(s)}},dragOverAnimationCapture:function(i){var s=i.dragRect,o=i.isOwner,c=i.activeSortable;if(me.forEach(function(p){p.thisAnimationDuration=null}),c.options.animation&&!o&&c.multiDrag.isMultiDrag){rr=pn({},s);var f=al(Ye,!0);rr.top-=f.f,rr.left-=f.e}},dragOverAnimationComplete:function(){Bt&&(Bt=!1,lo())},drop:function(i){var s=i.originalEvent,o=i.rootEl,c=i.parentEl,f=i.sortable,p=i.dispatchSortableEvent,h=i.oldIndex,m=i.putSortable,y=m||this.sortable;if(s){var v=this.options,x=c.children;if(!Wl)if(v.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),et(Ye,v.selectedClass,!~me.indexOf(Ye)),~me.indexOf(Ye))me.splice(me.indexOf(Ye),1),lr=null,dr({sortable:f,rootEl:o,name:"deselect",targetEl:Ye,originalEvent:s});else{if(me.push(Ye),dr({sortable:f,rootEl:o,name:"select",targetEl:Ye,originalEvent:s}),s.shiftKey&&lr&&f.el.contains(lr)){var E=lt(lr),R=lt(Ye);~E&&~R&&E!==R&&(function(){var M,U;R>E?(U=E,M=R):(U=R,M=E+1);for(var P=v.filter;U<M;U++)if(!~me.indexOf(x[U])&&Ht(x[U],v.draggable,c,!1)){var ee=P&&(typeof P=="function"?P.call(f,s,x[U],f):P.split(",").some(function(Y){return Ht(x[U],Y.trim(),c,!1)}));ee||(et(x[U],v.selectedClass,!0),me.push(x[U]),dr({sortable:f,rootEl:o,name:"select",targetEl:x[U],originalEvent:s}))}})()}else lr=Ye;Sn=y}if(Wl&&this.isMultiDrag){if(Bt=!1,(c[xt].options.sort||c!==o)&&me.length>1){var A=Ze(Ye),B=lt(Ye,":not(."+this.options.selectedClass+")");if(!ir&&v.animation&&(Ye.thisAnimationDuration=null),y.captureAnimationState(),!ir&&(v.animation&&(Ye.fromRect=A,me.forEach(function(M){if(M.thisAnimationDuration=null,M!==Ye){var U=Bt?Ze(M):A;M.fromRect=U,y.addAnimationState({target:M,rect:U})}})),lo(),me.forEach(function(M){x[B]?c.insertBefore(M,x[B]):c.appendChild(M),B++}),h===lt(Ye))){var Q=!1;me.forEach(function(M){if(M.sortableIndex!==lt(M)){Q=!0;return}}),Q&&(p("update"),p("sort"))}me.forEach(function(M){pf(M)}),y.animateAll()}Sn=y}(o===c||m&&m.lastPutMode!=="clone")&&Pt.forEach(function(M){M.parentNode&&M.parentNode.removeChild(M)})}},nullingGlobal:function(){this.isMultiDrag=Wl=!1,Pt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),Se(document,"pointerup",this._deselectMultiDrag),Se(document,"mouseup",this._deselectMultiDrag),Se(document,"touchend",this._deselectMultiDrag),Se(document,"keydown",this._checkKeyDown),Se(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(i){if(!(typeof Wl<"u"&&Wl)&&Sn===this.sortable&&!(i&&Ht(i.target,this.options.draggable,this.sortable.el,!1))&&!(i&&i.button!==0))for(;me.length;){var s=me[0];et(s,this.options.selectedClass,!1),me.shift(),dr({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:s,originalEvent:i})}},_checkKeyDown:function(i){i.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(i){i.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},pn(l,{pluginName:"multiDrag",utils:{select:function(i){var s=i.parentNode[xt];!s||!s.options.multiDrag||~me.indexOf(i)||(Sn&&Sn!==s&&(Sn.multiDrag._deselectMultiDrag(),Sn=s),et(i,s.options.selectedClass,!0),me.push(i))},deselect:function(i){var s=i.parentNode[xt],o=me.indexOf(i);!s||!s.options.multiDrag||!~o||(et(i,s.options.selectedClass,!1),me.splice(o,1))}},eventProperties:function(){var i=this,s=[],o=[];return me.forEach(function(c){s.push({multiDragElement:c,index:c.sortableIndex});var f;Bt&&c!==Ye?f=-1:Bt?f=lt(c,":not(."+i.options.selectedClass+")"):f=lt(c),o.push({multiDragElement:c,index:f})}),{items:CC(me),clones:[].concat(Pt),oldIndicies:s,newIndicies:o}},optionListeners:{multiDragKey:function(i){return i=i.toLowerCase(),i==="ctrl"?i="Control":i.length>1&&(i=i.charAt(0).toUpperCase()+i.substr(1)),i}}})}function WC(l,n){me.forEach(function(i,s){var o=n.children[i.sortableIndex+(l?Number(s):0)];o?n.insertBefore(i,o):n.appendChild(i)})}function pv(l,n){Pt.forEach(function(i,s){var o=n.children[i.sortableIndex+(l?Number(s):0)];o?n.insertBefore(i,o):n.appendChild(i)})}function lo(){me.forEach(function(l){l!==Ye&&l.parentNode&&l.parentNode.removeChild(l)})}fe.mount(new JC);fe.mount(nd,td);const e2=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:IC,Sortable:fe,Swap:FC,default:fe},Symbol.toStringTag,{value:"Module"})),t2=Vv(e2);var wf={exports:{}};var mv;function n2(){return mv||(mv=1,(function(l){(function(){var n={}.hasOwnProperty;function i(){for(var s=[],o=0;o<arguments.length;o++){var c=arguments[o];if(c){var f=typeof c;if(f==="string"||f==="number")s.push(c);else if(Array.isArray(c)){if(c.length){var p=i.apply(null,c);p&&s.push(p)}}else if(f==="object")if(c.toString===Object.prototype.toString)for(var h in c)n.call(c,h)&&c[h]&&s.push(h);else s.push(c.toString())}}return s.join(" ")}l.exports?(i.default=i,l.exports=i):window.classNames=i})()})(wf)),wf.exports}var a2="Invariant failed";function l2(l,n){if(!l)throw new Error(a2)}const i2=Object.freeze(Object.defineProperty({__proto__:null,default:l2},Symbol.toStringTag,{value:"Module"})),r2=Vv(i2);var gv;function s2(){return gv||(gv=1,(function(l){var n=t2,i=n2(),s=jr(),o=r2;function c(Y){return Y&&Y.__esModule?Y.default:Y}function f(Y,_,K,$){Object.defineProperty(Y,_,{get:K,set:$,enumerable:!0,configurable:!0})}function p(Y,_){return Object.keys(_).forEach(function(K){K==="default"||K==="__esModule"||Y.hasOwnProperty(K)||Object.defineProperty(Y,K,{enumerable:!0,get:function(){return _[K]}})}),Y}f(l.exports,"Sortable",()=>$882b6d93070905b3$re_export$Sortable),f(l.exports,"Direction",()=>$882b6d93070905b3$re_export$Direction),f(l.exports,"DOMRect",()=>$882b6d93070905b3$re_export$DOMRect),f(l.exports,"GroupOptions",()=>$882b6d93070905b3$re_export$GroupOptions),f(l.exports,"MoveEvent",()=>$882b6d93070905b3$re_export$MoveEvent),f(l.exports,"Options",()=>$882b6d93070905b3$re_export$Options),f(l.exports,"PullResult",()=>$882b6d93070905b3$re_export$PullResult),f(l.exports,"PutResult",()=>$882b6d93070905b3$re_export$PutResult),f(l.exports,"SortableEvent",()=>$882b6d93070905b3$re_export$SortableEvent),f(l.exports,"SortableOptions",()=>$882b6d93070905b3$re_export$SortableOptions),f(l.exports,"Utils",()=>$882b6d93070905b3$re_export$Utils),f(l.exports,"ReactSortable",()=>P);function h(Y){Y.parentElement!==null&&Y.parentElement.removeChild(Y)}function m(Y,_,K){const $=Y.children[K]||null;Y.insertBefore(_,$)}function y(Y){Y.forEach(_=>h(_.element))}function v(Y){Y.forEach(_=>{m(_.parentElement,_.element,_.oldIndex)})}function x(Y,_){const K=B(Y),$={parentElement:Y.from};let Z=[];switch(K){case"normal":Z=[{element:Y.item,newIndex:Y.newIndex,oldIndex:Y.oldIndex,parentElement:Y.from}];break;case"swap":const ie={element:Y.item,oldIndex:Y.oldIndex,newIndex:Y.newIndex,...$},ce={element:Y.swapItem,oldIndex:Y.newIndex,newIndex:Y.oldIndex,...$};Z=[ie,ce];break;case"multidrag":Z=Y.oldIndicies.map((he,z)=>({element:he.multiDragElement,oldIndex:he.index,newIndex:Y.newIndicies[z].index,...$}));break}return Q(Z,_)}function E(Y,_){const K=R(Y,_);return A(Y,K)}function R(Y,_){const K=[..._];return Y.concat().reverse().forEach($=>K.splice($.oldIndex,1)),K}function A(Y,_,K,$){const Z=[..._];return Y.forEach(F=>{const te=$&&K&&$(F.item,K);Z.splice(F.newIndex,0,te||F.item)}),Z}function B(Y){return Y.oldIndicies&&Y.oldIndicies.length>0?"multidrag":Y.swapItem?"swap":"normal"}function Q(Y,_){return Y.map($=>({...$,item:_[$.oldIndex]})).sort(($,Z)=>$.oldIndex-Z.oldIndex)}function M(Y){const{list:_,setList:K,children:$,tag:Z,style:F,className:te,clone:ie,onAdd:ce,onChange:he,onChoose:z,onClone:J,onEnd:ne,onFilter:Ee,onRemove:Ne,onSort:T,onStart:q,onUnchoose:I,onUpdate:ae,onMove:ve,onSpill:we,onSelect:ze,onDeselect:Et,...Ie}=Y;return Ie}const U={dragging:null};class P extends s.Component{static defaultProps={clone:_=>_};constructor(_){super(_),this.ref=(0,s.createRef)();const K=[..._.list].map($=>Object.assign($,{chosen:!1,selected:!1}));_.setList(K,this.sortable,U),c(o)(!_.plugins,`
13
+ Plugins prop is no longer supported.
14
+ Instead, mount it with "Sortable.mount(new MultiDrag())"
15
+ Please read the updated README.md at https://github.com/SortableJS/react-sortablejs.
16
+ `)}componentDidMount(){if(this.ref.current===null)return;const _=this.makeOptions();c(n).create(this.ref.current,_)}componentDidUpdate(_){_.disabled!==this.props.disabled&&this.sortable&&this.sortable.option("disabled",this.props.disabled)}render(){const{tag:_,style:K,className:$,id:Z}=this.props,F={style:K,className:$,id:Z},te=!_||_===null?"div":_;return(0,s.createElement)(te,{ref:this.ref,...F},this.getChildren())}getChildren(){const{children:_,dataIdAttr:K,selectedClass:$="sortable-selected",chosenClass:Z="sortable-chosen",dragClass:F="sortable-drag",fallbackClass:te="sortable-falback",ghostClass:ie="sortable-ghost",swapClass:ce="sortable-swap-highlight",filter:he="sortable-filter",list:z}=this.props;if(!_||_==null)return null;const J=K||"data-id";return s.Children.map(_,(ne,Ee)=>{if(ne===void 0)return;const Ne=z[Ee]||{},{className:T}=ne.props,q=typeof he=="string"&&{[he.replace(".","")]:!!Ne.filtered},I=c(i)(T,{[$]:Ne.selected,[Z]:Ne.chosen,...q});return(0,s.cloneElement)(ne,{[J]:ne.key,className:I})})}get sortable(){const _=this.ref.current;if(_===null)return null;const K=Object.keys(_).find($=>$.includes("Sortable"));return K?_[K]:null}makeOptions(){const _=["onAdd","onChoose","onDeselect","onEnd","onRemove","onSelect","onSpill","onStart","onUnchoose","onUpdate"],K=["onChange","onClone","onFilter","onSort"],$=M(this.props);return _.forEach(F=>$[F]=this.prepareOnHandlerPropAndDOM(F)),K.forEach(F=>$[F]=this.prepareOnHandlerProp(F)),{...$,onMove:(F,te)=>{const{onMove:ie}=this.props,ce=F.willInsertAfter||-1;if(!ie)return ce;const he=ie(F,te,this.sortable,U);return typeof he>"u"?!1:he}}}prepareOnHandlerPropAndDOM(_){return K=>{this.callOnHandlerProp(K,_),this[_](K)}}prepareOnHandlerProp(_){return K=>{this.callOnHandlerProp(K,_)}}callOnHandlerProp(_,K){const $=this.props[K];$&&$(_,this.sortable,U)}onAdd(_){const{list:K,setList:$,clone:Z}=this.props,F=[...U.dragging.props.list],te=x(_,F);y(te);const ie=A(te,K,_,Z).map(ce=>Object.assign(ce,{selected:!1}));$(ie,this.sortable,U)}onRemove(_){const{list:K,setList:$}=this.props,Z=B(_),F=x(_,K);v(F);let te=[...K];if(_.pullMode!=="clone")te=R(F,te);else{let ie=F;switch(Z){case"multidrag":ie=F.map((ce,he)=>({...ce,element:_.clones[he]}));break;case"normal":ie=F.map(ce=>({...ce,element:_.clone}));break;default:c(o)(!0,`mode "${Z}" cannot clone. Please remove "props.clone" from <ReactSortable/> when using the "${Z}" plugin`)}y(ie),F.forEach(ce=>{const he=ce.oldIndex,z=this.props.clone(ce.item,_);te.splice(he,1,z)})}te=te.map(ie=>Object.assign(ie,{selected:!1})),$(te,this.sortable,U)}onUpdate(_){const{list:K,setList:$}=this.props,Z=x(_,K);y(Z),v(Z);const F=E(Z,K);return $(F,this.sortable,U)}onStart(){U.dragging=this}onEnd(){U.dragging=null}onChoose(_){const{list:K,setList:$}=this.props,Z=K.map((F,te)=>{let ie=F;return te===_.oldIndex&&(ie=Object.assign(F,{chosen:!0})),ie});$(Z,this.sortable,U)}onUnchoose(_){const{list:K,setList:$}=this.props,Z=K.map((F,te)=>{let ie=F;return te===_.oldIndex&&(ie=Object.assign(ie,{chosen:!1})),ie});$(Z,this.sortable,U)}onSpill(_){const{removeOnSpill:K,revertOnSpill:$}=this.props;K&&!$&&h(_.item)}onSelect(_){const{list:K,setList:$}=this.props,Z=K.map(F=>Object.assign(F,{selected:!1}));_.newIndicies.forEach(F=>{const te=F.index;if(te===-1){console.log(`"${_.type}" had indice of "${F.index}", which is probably -1 and doesn't usually happen here.`),console.log(_);return}Z[te].selected=!0}),$(Z,this.sortable,U)}onDeselect(_){const{list:K,setList:$}=this.props,Z=K.map(F=>Object.assign(F,{selected:!1}));_.newIndicies.forEach(F=>{const te=F.index;te!==-1&&(Z[te].selected=!0)}),$(Z,this.sortable,U)}}var ee={};p(l.exports,ee)})(df)),df.exports}s2();function ad(l){if(l===null)return"null";if(l===void 0)return"undefined";if(l instanceof Error)return l.message;switch(typeof l){case"bigint":case"number":case"boolean":return String(l);case"string":return l;case"symbol":return`Symbol(${l.description??""})`;case"object":return String("message"in l?l.message:l);case"function":return`function ${l.name}`;default:return"invalid error type"}}const ld=w.createContext(void 0);function rl({children:l,ref:n}){const{logger:i}=Ff(),s=w.useRef([]),o=w.useRef(0),[c,f]=w.useReducer(v=>v+1,0),p=w.useCallback((v,x)=>{const E={id:++o.current,message:v,severity:x?.severity??"info",autoDismiss:x?.autoDismiss??!1};s.current.push(E),f()},[]),h=w.useCallback(()=>{s.current.shift(),f()},[]),m=w.useCallback(v=>{i.error("AlertStack caught error:",v),p(ad(v),{severity:"error"})},[p]);w.useImperativeHandle(n,()=>({showAlert:p,showError:m}),[p,m]);const y={showAlert:p,queue:s.current,dismissCurrent:h};return b.jsx(ld.Provider,{value:y,children:l})}function sl(){const l=w.useContext(ld);if(!l)throw new Error("useAlertStack must be used within an AlertStackProvider");const n=w.useCallback(i=>{l.showAlert(ad(i),{severity:"error"})},[l.showAlert]);return{showAlert:l.showAlert,showError:n}}function _a(l){const n=w.useContext(ld),i=Ff();if(!n)throw new Error("AlertStack must be used within an AlertStackProvider");const{queue:s,dismissCurrent:o}=n,c=s[0];return w.useEffect(()=>{if(!c?.autoDismiss)return;const f=setTimeout(o,i.autoDismissAlertDurationMs);return()=>clearTimeout(f)},[c?.id,c?.autoDismiss,i.autoDismissAlertDurationMs,o]),c?b.jsx(Do,{className:l?.className,severity:c.severity,onClose:o,children:c.message}):null}var Cf={exports:{}},sr={},Tf={exports:{}},Nf={};var vv;function o2(){return vv||(vv=1,(function(l){function n(z,J){var ne=z.length;z.push(J);e:for(;0<ne;){var Ee=ne-1>>>1,Ne=z[Ee];if(0<o(Ne,J))z[Ee]=J,z[ne]=Ne,ne=Ee;else break e}}function i(z){return z.length===0?null:z[0]}function s(z){if(z.length===0)return null;var J=z[0],ne=z.pop();if(ne!==J){z[0]=ne;e:for(var Ee=0,Ne=z.length,T=Ne>>>1;Ee<T;){var q=2*(Ee+1)-1,I=z[q],ae=q+1,ve=z[ae];if(0>o(I,ne))ae<Ne&&0>o(ve,I)?(z[Ee]=ve,z[ae]=ne,Ee=ae):(z[Ee]=I,z[q]=ne,Ee=q);else if(ae<Ne&&0>o(ve,ne))z[Ee]=ve,z[ae]=ne,Ee=ae;else break e}}return J}function o(z,J){var ne=z.sortIndex-J.sortIndex;return ne!==0?ne:z.id-J.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;l.unstable_now=function(){return c.now()}}else{var f=Date,p=f.now();l.unstable_now=function(){return f.now()-p}}var h=[],m=[],y=1,v=null,x=3,E=!1,R=!1,A=!1,B=!1,Q=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function P(z){for(var J=i(m);J!==null;){if(J.callback===null)s(m);else if(J.startTime<=z)s(m),J.sortIndex=J.expirationTime,n(h,J);else break;J=i(m)}}function ee(z){if(A=!1,P(z),!R)if(i(h)!==null)R=!0,Y||(Y=!0,te());else{var J=i(m);J!==null&&he(ee,J.startTime-z)}}var Y=!1,_=-1,K=5,$=-1;function Z(){return B?!0:!(l.unstable_now()-$<K)}function F(){if(B=!1,Y){var z=l.unstable_now();$=z;var J=!0;try{e:{R=!1,A&&(A=!1,M(_),_=-1),E=!0;var ne=x;try{t:{for(P(z),v=i(h);v!==null&&!(v.expirationTime>z&&Z());){var Ee=v.callback;if(typeof Ee=="function"){v.callback=null,x=v.priorityLevel;var Ne=Ee(v.expirationTime<=z);if(z=l.unstable_now(),typeof Ne=="function"){v.callback=Ne,P(z),J=!0;break t}v===i(h)&&s(h),P(z)}else s(h);v=i(h)}if(v!==null)J=!0;else{var T=i(m);T!==null&&he(ee,T.startTime-z),J=!1}}break e}finally{v=null,x=ne,E=!1}J=void 0}}finally{J?te():Y=!1}}}var te;if(typeof U=="function")te=function(){U(F)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,ce=ie.port2;ie.port1.onmessage=F,te=function(){ce.postMessage(null)}}else te=function(){Q(F,0)};function he(z,J){_=Q(function(){z(l.unstable_now())},J)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(z){z.callback=null},l.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<z?Math.floor(1e3/z):5},l.unstable_getCurrentPriorityLevel=function(){return x},l.unstable_next=function(z){switch(x){case 1:case 2:case 3:var J=3;break;default:J=x}var ne=x;x=J;try{return z()}finally{x=ne}},l.unstable_requestPaint=function(){B=!0},l.unstable_runWithPriority=function(z,J){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var ne=x;x=z;try{return J()}finally{x=ne}},l.unstable_scheduleCallback=function(z,J,ne){var Ee=l.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?Ee+ne:Ee):ne=Ee,z){case 1:var Ne=-1;break;case 2:Ne=250;break;case 5:Ne=1073741823;break;case 4:Ne=1e4;break;default:Ne=5e3}return Ne=ne+Ne,z={id:y++,callback:J,priorityLevel:z,startTime:ne,expirationTime:Ne,sortIndex:-1},ne>Ee?(z.sortIndex=ne,n(m,z),i(h)===null&&z===i(m)&&(A?(M(_),_=-1):A=!0,he(ee,ne-Ee))):(z.sortIndex=Ne,n(h,z),R||E||(R=!0,Y||(Y=!0,te()))),z},l.unstable_shouldYield=Z,l.unstable_wrapCallback=function(z){var J=x;return function(){var ne=x;x=J;try{return z.apply(this,arguments)}finally{x=ne}}}})(Nf)),Nf}var yv;function u2(){return yv||(yv=1,Tf.exports=o2()),Tf.exports}var Rf={exports:{}},Ct={};var bv;function c2(){if(bv)return Ct;bv=1;var l=jr();function n(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)m+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+h+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={d:{f:i,r:function(){throw Error(n(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(h,m,y){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:v==null?null:""+v,children:h,containerInfo:m,implementation:y}}var f=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Ct.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Ct.createPortal=function(h,m){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(n(299));return c(h,m,null,y)},Ct.flushSync=function(h){var m=f.T,y=s.p;try{if(f.T=null,s.p=2,h)return h()}finally{f.T=m,s.p=y,s.d.f()}},Ct.preconnect=function(h,m){typeof h=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,s.d.C(h,m))},Ct.prefetchDNS=function(h){typeof h=="string"&&s.d.D(h)},Ct.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var y=m.as,v=p(y,m.crossOrigin),x=typeof m.integrity=="string"?m.integrity:void 0,E=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;y==="style"?s.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:x,fetchPriority:E}):y==="script"&&s.d.X(h,{crossOrigin:v,integrity:x,fetchPriority:E,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Ct.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var y=p(m.as,m.crossOrigin);s.d.M(h,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&s.d.M(h)},Ct.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var y=m.as,v=p(y,m.crossOrigin);s.d.L(h,y,{crossOrigin:v,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})}},Ct.preloadModule=function(h,m){if(typeof h=="string")if(m){var y=p(m.as,m.crossOrigin);s.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else s.d.m(h)},Ct.requestFormReset=function(h){s.d.r(h)},Ct.unstable_batchedUpdates=function(h,m){return h(m)},Ct.useFormState=function(h,m,y){return f.H.useFormState(h,m,y)},Ct.useFormStatus=function(){return f.H.useHostTransitionStatus()},Ct.version="19.2.3",Ct}var Sv;function f2(){if(Sv)return Rf.exports;Sv=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(n){console.error(n)}}return l(),Rf.exports=c2(),Rf.exports}var xv;function d2(){if(xv)return sr;xv=1;var l=u2(),n=jr(),i=f2();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function 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 p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(c(e)!==e)throw Error(s(188))}function m(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,r=t;;){var u=a.return;if(u===null)break;var d=u.alternate;if(d===null){if(r=u.return,r!==null){a=r;continue}break}if(u.child===d.child){for(d=u.child;d;){if(d===a)return h(u),e;if(d===r)return h(u),t;d=d.sibling}throw Error(s(188))}if(a.return!==r.return)a=u,r=d;else{for(var g=!1,S=u.child;S;){if(S===a){g=!0,a=u,r=d;break}if(S===r){g=!0,r=u,a=d;break}S=S.sibling}if(!g){for(S=d.child;S;){if(S===a){g=!0,a=d,r=u;break}if(S===r){g=!0,r=d,a=u;break}S=S.sibling}if(!g)throw Error(s(189))}}if(a.alternate!==r)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,x=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),M=Symbol.for("react.consumer"),U=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),Z=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function te(e){return e===null||typeof e!="object"?null:(e=F&&e[F]||e["@@iterator"],typeof e=="function"?e:null)}var ie=Symbol.for("react.client.reference");function ce(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ie?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case A:return"Fragment";case Q:return"Profiler";case B:return"StrictMode";case ee:return"Suspense";case Y:return"SuspenseList";case $:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case R:return"Portal";case U:return e.displayName||"Context";case M:return(e._context.displayName||"Context")+".Consumer";case P:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _:return t=e.displayName||null,t!==null?t:ce(e.type)||"Memo";case K:t=e._payload,e=e._init;try{return ce(e(t))}catch{}}return null}var he=Array.isArray,z=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},Ee=[],Ne=-1;function T(e){return{current:e}}function q(e){0>Ne||(e.current=Ee[Ne],Ee[Ne]=null,Ne--)}function I(e,t){Ne++,Ee[Ne]=e.current,e.current=t}var ae=T(null),ve=T(null),we=T(null),ze=T(null);function Et(e,t){switch(I(we,t),I(ve,e),I(ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?ig(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=ig(t),e=rg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(ae),I(ae,e)}function Ie(){q(ae),q(ve),q(we)}function ui(e){e.memoizedState!==null&&I(ze,e);var t=ae.current,a=rg(t,e.type);t!==a&&(I(ve,e),I(ae,a))}function Mr(e){ve.current===e&&(q(ae),q(ve)),ze.current===e&&(q(ze),Ii._currentValue=ne)}var Bo,zd;function za(e){if(Bo===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Bo=t&&t[1]||"",zd=-1<a.stack.indexOf(`
12
17
  at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
13
- `+zo+e+Od}var Lo=!1;function Uo(e,t){if(!e||Lo)return"";Lo=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(U){var k=U}Reflect.construct(e,[],X)}else{try{X.call()}catch(U){k=U}e.call(X.prototype)}}else{try{throw Error()}catch(U){k=U}(X=e())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(U){if(U&&k&&typeof U.stack=="string")return[U.stack,k.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=r.DetermineComponentFrameRoot(),g=f[0],S=f[1];if(g&&S){var C=g.split(`
18
+ `+Bo+e+zd}var Ho=!1;function $o(e,t){if(!e||Ho)return"";Ho=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(L){var k=L}Reflect.construct(e,[],X)}else{try{X.call()}catch(L){k=L}e.call(X.prototype)}}else{try{throw Error()}catch(L){k=L}(X=e())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(L){if(L&&k&&typeof L.stack=="string")return[L.stack,k.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=r.DetermineComponentFrameRoot(),g=d[0],S=d[1];if(g&&S){var C=g.split(`
14
19
  `),D=S.split(`
15
20
  `);for(u=r=0;r<C.length&&!C[r].includes("DetermineComponentFrameRoot");)r++;for(;u<D.length&&!D[u].includes("DetermineComponentFrameRoot");)u++;if(r===C.length||u===D.length)for(r=C.length-1,u=D.length-1;1<=r&&0<=u&&C[r]!==D[u];)u--;for(;1<=r&&0<=u;r--,u--)if(C[r]!==D[u]){if(r!==1||u!==1)do if(r--,u--,0>u||C[r]!==D[u]){var V=`
16
- `+C[r].replace(" at new "," at ");return e.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",e.displayName)),V}while(1<=r&&0<=u);break}}}finally{Lo=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ma(a):""}function r0(e,t){switch(e.tag){case 26:case 27:case 5:return Ma(e.type);case 16:return Ma("Lazy");case 13:return e.child!==t&&t!==null?Ma("Suspense Fallback"):Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 15:return Uo(e.type,!1);case 11:return Uo(e.type.render,!1);case 1:return Uo(e.type,!0);case 31:return Ma("Activity");default:return""}}function Ad(e){try{var t="",a=null;do t+=r0(e,a),a=e,e=e.return;while(e);return t}catch(r){return`
21
+ `+C[r].replace(" at new "," at ");return e.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",e.displayName)),V}while(1<=r&&0<=u);break}}}finally{Ho=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?za(a):""}function h0(e,t){switch(e.tag){case 26:case 27:case 5:return za(e.type);case 16:return za("Lazy");case 13:return e.child!==t&&t!==null?za("Suspense Fallback"):za("Suspense");case 19:return za("SuspenseList");case 0:case 15:return $o(e.type,!1);case 11:return $o(e.type.render,!1);case 1:return $o(e.type,!0);case 31:return za("Activity");default:return""}}function Ld(e){try{var t="",a=null;do t+=h0(e,a),a=e,e=e.return;while(e);return t}catch(r){return`
17
22
  Error generating stack: `+r.message+`
18
- `+r.stack}}var Bo=Object.prototype.hasOwnProperty,Ho=l.unstable_scheduleCallback,$o=l.unstable_cancelCallback,s0=l.unstable_shouldYield,o0=l.unstable_requestPaint,Vt=l.unstable_now,u0=l.unstable_getCurrentPriorityLevel,Dd=l.unstable_ImmediatePriority,_d=l.unstable_UserBlockingPriority,_r=l.unstable_NormalPriority,c0=l.unstable_LowPriority,kd=l.unstable_IdlePriority,f0=l.log,d0=l.unstable_setDisableYieldValue,si=null,qt=null;function aa(e){if(typeof f0=="function"&&d0(e),qt&&typeof qt.setStrictMode=="function")try{qt.setStrictMode(si,e)}catch{}}var Gt=Math.clz32?Math.clz32:m0,h0=Math.log,p0=Math.LN2;function m0(e){return e>>>=0,e===0?32:31-(h0(e)/p0|0)|0}var kr=256,Mr=262144,zr=4194304;function za(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Lr(e,t,a){var r=e.pendingLanes;if(r===0)return 0;var u=0,f=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var S=r&134217727;return S!==0?(r=S&~f,r!==0?u=za(r):(g&=S,g!==0?u=za(g):a||(a=S&~e,a!==0&&(u=za(a))))):(S=r&~f,S!==0?u=za(S):g!==0?u=za(g):a||(a=r&~e,a!==0&&(u=za(a)))),u===0?0:t!==0&&t!==u&&(t&f)===0&&(f=u&-u,a=t&-t,f>=a||f===32&&(a&4194048)!==0)?t:u}function oi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function g0(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 Md(){var e=zr;return zr<<=1,(zr&62914560)===0&&(zr=4194304),e}function Vo(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function ui(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function v0(e,t,a,r,u,f){var g=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var S=e.entanglements,C=e.expirationTimes,D=e.hiddenUpdates;for(a=g&~a;0<a;){var V=31-Gt(a),X=1<<V;S[V]=0,C[V]=-1;var k=D[V];if(k!==null)for(D[V]=null,V=0;V<k.length;V++){var U=k[V];U!==null&&(U.lane&=-536870913)}a&=~X}r!==0&&zd(e,r,0),f!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=f&~(g&~t))}function zd(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Gt(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|a&261930}function Ld(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var r=31-Gt(a),u=1<<r;u&t|e[r]&t&&(e[r]|=t),a&=~u}}function Ud(e,t){var a=t&-t;return a=(a&42)!==0?1:qo(a),(a&(e.suspendedLanes|t))!==0?0:a}function qo(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 Go(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Bd(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:wg(e.type))}function Hd(e,t){var a=J.p;try{return J.p=e,t()}finally{J.p=a}}var la=Math.random().toString(36).slice(2),mt="__reactFiber$"+la,At="__reactProps$"+la,ul="__reactContainer$"+la,Yo="__reactEvents$"+la,y0="__reactListeners$"+la,b0="__reactHandles$"+la,$d="__reactResources$"+la,ci="__reactMarker$"+la;function Xo(e){delete e[mt],delete e[At],delete e[Yo],delete e[y0],delete e[b0]}function cl(e){var t=e[mt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[ul]||a[mt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=sg(e);e!==null;){if(a=e[mt])return a;e=sg(e)}return t}e=a,a=e.parentNode}return null}function fl(e){if(e=e[mt]||e[ul]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function fi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function dl(e){var t=e[$d];return t||(t=e[$d]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ht(e){e[ci]=!0}var Vd=new Set,qd={};function La(e,t){hl(e,t),hl(e+"Capture",t)}function hl(e,t){for(qd[e]=t,e=0;e<t.length;e++)Vd.add(t[e])}var S0=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]*$"),Gd={},Yd={};function x0(e){return Bo.call(Yd,e)?!0:Bo.call(Gd,e)?!1:S0.test(e)?Yd[e]=!0:(Gd[e]=!0,!1)}function Ur(e,t,a){if(x0(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Br(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function kn(e,t,a,r){if(r===null)e.removeAttribute(a);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+r)}}function nn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Xd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function E0(e,t,a){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var u=r.get,f=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(g){a=""+g,f.call(this,g)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return a},setValue:function(g){a=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Qo(e){if(!e._valueTracker){var t=Xd(e)?"checked":"value";e._valueTracker=E0(e,t,""+e[t])}}function Qd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=Xd(e)?e.checked?"true":"false":e.value),e=r,e!==a?(t.setValue(e),!0):!1}function Hr(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 w0=/[\n"\\]/g;function an(e){return e.replace(w0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ko(e,t,a,r,u,f,g,S){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+nn(t)):e.value!==""+nn(t)&&(e.value=""+nn(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?Zo(e,g,nn(t)):a!=null?Zo(e,g,nn(a)):r!=null&&e.removeAttribute("value"),u==null&&f!=null&&(e.defaultChecked=!!f),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+nn(S):e.removeAttribute("name")}function Kd(e,t,a,r,u,f,g,S){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||t!=null)){Qo(e);return}a=a!=null?""+nn(a):"",t=t!=null?""+nn(t):a,S||t===e.value||(e.value=t),e.defaultValue=t}r=r??u,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=S?e.checked:!!r,e.defaultChecked=!!r,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g),Qo(e)}function Zo(e,t,a){t==="number"&&Hr(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function pl(e,t,a,r){if(e=e.options,t){t={};for(var u=0;u<a.length;u++)t["$"+a[u]]=!0;for(a=0;a<e.length;a++)u=t.hasOwnProperty("$"+e[a].value),e[a].selected!==u&&(e[a].selected=u),u&&r&&(e[a].defaultSelected=!0)}else{for(a=""+nn(a),t=null,u=0;u<e.length;u++){if(e[u].value===a){e[u].selected=!0,r&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Zd(e,t,a){if(t!=null&&(t=""+nn(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+nn(a):""}function Jd(e,t,a,r){if(t==null){if(r!=null){if(a!=null)throw Error(s(92));if(he(r)){if(1<r.length)throw Error(s(93));r=r[0]}a=r}a==null&&(a=""),t=a}a=nn(t),e.defaultValue=a,r=e.textContent,r===a&&r!==""&&r!==null&&(e.value=r),Qo(e)}function ml(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var C0=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 Fd(e,t,a){var r=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,a):typeof a!="number"||a===0||C0.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Pd(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var r in a)!a.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var u in t)r=t[u],t.hasOwnProperty(u)&&a[u]!==r&&Fd(e,u,r)}else for(var f in t)t.hasOwnProperty(f)&&Fd(e,f,t[f])}function Jo(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 T0=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"]]),N0=/^[\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 $r(e){return N0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Mn(){}var Fo=null;function Po(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gl=null,vl=null;function Id(e){var t=fl(e);if(t&&(e=t.stateNode)){var a=e[At]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ko(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+an(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var u=r[At]||null;if(!u)throw Error(s(90));Ko(r,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<a.length;t++)r=a[t],r.form===e.form&&Qd(r)}break e;case"textarea":Zd(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&pl(e,!!a.multiple,t,!1)}}}var Io=!1;function Wd(e,t,a){if(Io)return e(t,a);Io=!0;try{var r=e(t);return r}finally{if(Io=!1,(gl!==null||vl!==null)&&(Rs(),gl&&(t=gl,e=vl,vl=gl=null,Id(t),e)))for(t=0;t<e.length;t++)Id(e[t])}}function di(e,t){var a=e.stateNode;if(a===null)return null;var r=a[At]||null;if(r===null)return null;a=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var zn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wo=!1;if(zn)try{var hi={};Object.defineProperty(hi,"passive",{get:function(){Wo=!0}}),window.addEventListener("test",hi,hi),window.removeEventListener("test",hi,hi)}catch{Wo=!1}var ia=null,eu=null,Vr=null;function eh(){if(Vr)return Vr;var e,t=eu,a=t.length,r,u="value"in ia?ia.value:ia.textContent,f=u.length;for(e=0;e<a&&t[e]===u[e];e++);var g=a-e;for(r=1;r<=g&&t[a-r]===u[f-r];r++);return Vr=u.slice(e,1<r?1-r:void 0)}function qr(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 Gr(){return!0}function th(){return!1}function Dt(e){function t(a,r,u,f,g){this._reactName=a,this._targetInst=u,this.type=r,this.nativeEvent=f,this.target=g,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(a=e[S],this[S]=a?a(f):f[S]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Gr:th,this.isPropagationStopped=th,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Gr)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Gr)},persist:function(){},isPersistent:Gr}),t}var Ua={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Yr=Dt(Ua),pi=y({},Ua,{view:0,detail:0}),R0=Dt(pi),tu,nu,mi,Xr=y({},pi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lu,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!==mi&&(mi&&e.type==="mousemove"?(tu=e.screenX-mi.screenX,nu=e.screenY-mi.screenY):nu=tu=0,mi=e),tu)},movementY:function(e){return"movementY"in e?e.movementY:nu}}),nh=Dt(Xr),j0=y({},Xr,{dataTransfer:0}),O0=Dt(j0),A0=y({},pi,{relatedTarget:0}),au=Dt(A0),D0=y({},Ua,{animationName:0,elapsedTime:0,pseudoElement:0}),_0=Dt(D0),k0=y({},Ua,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),M0=Dt(k0),z0=y({},Ua,{data:0}),ah=Dt(z0),L0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},U0={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"},B0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function H0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=B0[e])?!!t[e]:!1}function lu(){return H0}var $0=y({},pi,{key:function(e){if(e.key){var t=L0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=qr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?U0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lu,charCode:function(e){return e.type==="keypress"?qr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),V0=Dt($0),q0=y({},Xr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),lh=Dt(q0),G0=y({},pi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lu}),Y0=Dt(G0),X0=y({},Ua,{propertyName:0,elapsedTime:0,pseudoElement:0}),Q0=Dt(X0),K0=y({},Xr,{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}),Z0=Dt(K0),J0=y({},Ua,{newState:0,oldState:0}),F0=Dt(J0),P0=[9,13,27,32],iu=zn&&"CompositionEvent"in window,gi=null;zn&&"documentMode"in document&&(gi=document.documentMode);var I0=zn&&"TextEvent"in window&&!gi,ih=zn&&(!iu||gi&&8<gi&&11>=gi),rh=" ",sh=!1;function oh(e,t){switch(e){case"keyup":return P0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var yl=!1;function W0(e,t){switch(e){case"compositionend":return uh(t);case"keypress":return t.which!==32?null:(sh=!0,rh);case"textInput":return e=t.data,e===rh&&sh?null:e;default:return null}}function eS(e,t){if(yl)return e==="compositionend"||!iu&&oh(e,t)?(e=eh(),Vr=eu=ia=null,yl=!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 ih&&t.locale!=="ko"?null:t.data;default:return null}}var tS={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 ch(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!tS[e.type]:t==="textarea"}function fh(e,t,a,r){gl?vl?vl.push(r):vl=[r]:gl=r,t=Ms(t,"onChange"),0<t.length&&(a=new Yr("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var vi=null,yi=null;function nS(e){Km(e,0)}function Qr(e){var t=fi(e);if(Qd(t))return e}function dh(e,t){if(e==="change")return t}var hh=!1;if(zn){var ru;if(zn){var su="oninput"in document;if(!su){var ph=document.createElement("div");ph.setAttribute("oninput","return;"),su=typeof ph.oninput=="function"}ru=su}else ru=!1;hh=ru&&(!document.documentMode||9<document.documentMode)}function mh(){vi&&(vi.detachEvent("onpropertychange",gh),yi=vi=null)}function gh(e){if(e.propertyName==="value"&&Qr(yi)){var t=[];fh(t,yi,e,Po(e)),Wd(nS,t)}}function aS(e,t,a){e==="focusin"?(mh(),vi=t,yi=a,vi.attachEvent("onpropertychange",gh)):e==="focusout"&&mh()}function lS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Qr(yi)}function iS(e,t){if(e==="click")return Qr(t)}function rS(e,t){if(e==="input"||e==="change")return Qr(t)}function sS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Yt=typeof Object.is=="function"?Object.is:sS;function bi(e,t){if(Yt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(r=0;r<a.length;r++){var u=a[r];if(!Bo.call(t,u)||!Yt(e[u],t[u]))return!1}return!0}function vh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yh(e,t){var a=vh(e);e=0;for(var r;a;){if(a.nodeType===3){if(r=e+a.textContent.length,e<=t&&r>=t)return{node:a,offset:t-e};e=r}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=vh(a)}}function bh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Hr(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Hr(e.document)}return t}function ou(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 oS=zn&&"documentMode"in document&&11>=document.documentMode,bl=null,uu=null,Si=null,cu=!1;function xh(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;cu||bl==null||bl!==Hr(r)||(r=bl,"selectionStart"in r&&ou(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Si&&bi(Si,r)||(Si=r,r=Ms(uu,"onSelect"),0<r.length&&(t=new Yr("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=bl)))}function Ba(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Sl={animationend:Ba("Animation","AnimationEnd"),animationiteration:Ba("Animation","AnimationIteration"),animationstart:Ba("Animation","AnimationStart"),transitionrun:Ba("Transition","TransitionRun"),transitionstart:Ba("Transition","TransitionStart"),transitioncancel:Ba("Transition","TransitionCancel"),transitionend:Ba("Transition","TransitionEnd")},fu={},Eh={};zn&&(Eh=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 Ha(e){if(fu[e])return fu[e];if(!Sl[e])return e;var t=Sl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Eh)return fu[e]=t[a];return e}var wh=Ha("animationend"),Ch=Ha("animationiteration"),Th=Ha("animationstart"),uS=Ha("transitionrun"),cS=Ha("transitionstart"),fS=Ha("transitioncancel"),Nh=Ha("transitionend"),Rh=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 gn(e,t){Rh.set(e,t),La(t,[e])}var Kr=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)},ln=[],xl=0,hu=0;function Zr(){for(var e=xl,t=hu=xl=0;t<e;){var a=ln[t];ln[t++]=null;var r=ln[t];ln[t++]=null;var u=ln[t];ln[t++]=null;var f=ln[t];if(ln[t++]=null,r!==null&&u!==null){var g=r.pending;g===null?u.next=u:(u.next=g.next,g.next=u),r.pending=u}f!==0&&jh(a,u,f)}}function Jr(e,t,a,r){ln[xl++]=e,ln[xl++]=t,ln[xl++]=a,ln[xl++]=r,hu|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function pu(e,t,a,r){return Jr(e,t,a,r),Fr(e)}function $a(e,t){return Jr(e,null,null,t),Fr(e)}function jh(e,t,a){e.lanes|=a;var r=e.alternate;r!==null&&(r.lanes|=a);for(var u=!1,f=e.return;f!==null;)f.childLanes|=a,r=f.alternate,r!==null&&(r.childLanes|=a),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(u=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,u&&t!==null&&(u=31-Gt(a),e=f.hiddenUpdates,r=e[u],r===null?e[u]=[t]:r.push(t),t.lane=a|536870912),f):null}function Fr(e){if(50<qi)throw qi=0,wc=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var El={};function dS(e,t,a,r){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xt(e,t,a,r){return new dS(e,t,a,r)}function mu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ln(e,t){var a=e.alternate;return a===null?(a=Xt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Oh(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Pr(e,t,a,r,u,f){var g=0;if(r=e,typeof e=="function")mu(e)&&(g=1);else if(typeof e=="string")g=vx(e,a,ae.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case $:return e=Xt(31,a,t,u),e.elementType=$,e.lanes=f,e;case O:return Va(a.children,u,f,t);case L:g=8,u|=24;break;case Q:return e=Xt(12,a,t,u|2),e.elementType=Q,e.lanes=f,e;case ee:return e=Xt(13,a,t,u),e.elementType=ee,e.lanes=f,e;case Y:return e=Xt(19,a,t,u),e.elementType=Y,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case B:g=10;break e;case M:g=9;break e;case P:g=11;break e;case _:g=14;break e;case K:g=16,r=null;break e}g=29,a=Error(s(130,e===null?"null":typeof e,"")),r=null}return t=Xt(g,a,t,u),t.elementType=e,t.type=r,t.lanes=f,t}function Va(e,t,a,r){return e=Xt(7,e,r,t),e.lanes=a,e}function gu(e,t,a){return e=Xt(6,e,null,t),e.lanes=a,e}function Ah(e){var t=Xt(18,null,null,0);return t.stateNode=e,t}function vu(e,t,a){return t=Xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Dh=new WeakMap;function rn(e,t){if(typeof e=="object"&&e!==null){var a=Dh.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Ad(t)},Dh.set(e,t),t)}return{value:e,source:t,stack:Ad(t)}}var wl=[],Cl=0,Ir=null,xi=0,sn=[],on=0,ra=null,Tn=1,Nn="";function Un(e,t){wl[Cl++]=xi,wl[Cl++]=Ir,Ir=e,xi=t}function _h(e,t,a){sn[on++]=Tn,sn[on++]=Nn,sn[on++]=ra,ra=e;var r=Tn;e=Nn;var u=32-Gt(r)-1;r&=~(1<<u),a+=1;var f=32-Gt(t)+u;if(30<f){var g=u-u%5;f=(r&(1<<g)-1).toString(32),r>>=g,u-=g,Tn=1<<32-Gt(t)+u|a<<u|r,Nn=f+e}else Tn=1<<f|a<<u|r,Nn=e}function yu(e){e.return!==null&&(Un(e,1),_h(e,1,0))}function bu(e){for(;e===Ir;)Ir=wl[--Cl],wl[Cl]=null,xi=wl[--Cl],wl[Cl]=null;for(;e===ra;)ra=sn[--on],sn[on]=null,Nn=sn[--on],sn[on]=null,Tn=sn[--on],sn[on]=null}function kh(e,t){sn[on++]=Tn,sn[on++]=Nn,sn[on++]=ra,Tn=t.id,Nn=t.overflow,ra=e}var gt=null,Qe=null,Oe=!1,sa=null,un=!1,Su=Error(s(519));function oa(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ei(rn(t,e)),Su}function Mh(e){var t=e.stateNode,a=e.type,r=e.memoizedProps;switch(t[mt]=e,t[At]=r,a){case"dialog":Te("cancel",t),Te("close",t);break;case"iframe":case"object":case"embed":Te("load",t);break;case"video":case"audio":for(a=0;a<Yi.length;a++)Te(Yi[a],t);break;case"source":Te("error",t);break;case"img":case"image":case"link":Te("error",t),Te("load",t);break;case"details":Te("toggle",t);break;case"input":Te("invalid",t),Kd(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Te("invalid",t);break;case"textarea":Te("invalid",t),Jd(t,r.value,r.defaultValue,r.children)}a=r.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||r.suppressHydrationWarning===!0||Pm(t.textContent,a)?(r.popover!=null&&(Te("beforetoggle",t),Te("toggle",t)),r.onScroll!=null&&Te("scroll",t),r.onScrollEnd!=null&&Te("scrollend",t),r.onClick!=null&&(t.onclick=Mn),t=!0):t=!1,t||oa(e,!0)}function zh(e){for(gt=e.return;gt;)switch(gt.tag){case 5:case 31:case 13:un=!1;return;case 27:case 3:un=!0;return;default:gt=gt.return}}function Tl(e){if(e!==gt)return!1;if(!Oe)return zh(e),Oe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Bc(e.type,e.memoizedProps)),a=!a),a&&Qe&&oa(e),zh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Qe=rg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Qe=rg(e)}else t===27?(t=Qe,Ea(e.type)?(e=Gc,Gc=null,Qe=e):Qe=t):Qe=gt?fn(e.stateNode.nextSibling):null;return!0}function qa(){Qe=gt=null,Oe=!1}function xu(){var e=sa;return e!==null&&(zt===null?zt=e:zt.push.apply(zt,e),sa=null),e}function Ei(e){sa===null?sa=[e]:sa.push(e)}var Eu=T(null),Ga=null,Bn=null;function ua(e,t,a){I(Eu,t._currentValue),t._currentValue=a}function Hn(e){e._currentValue=Eu.current,q(Eu)}function wu(e,t,a){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===a)break;e=e.return}}function Cu(e,t,a,r){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var f=u.dependencies;if(f!==null){var g=u.child;f=f.firstContext;e:for(;f!==null;){var S=f;f=u;for(var C=0;C<t.length;C++)if(S.context===t[C]){f.lanes|=a,S=f.alternate,S!==null&&(S.lanes|=a),wu(f.return,a,e),r||(g=null);break e}f=S.next}}else if(u.tag===18){if(g=u.return,g===null)throw Error(s(341));g.lanes|=a,f=g.alternate,f!==null&&(f.lanes|=a),wu(g,a,e),g=null}else g=u.child;if(g!==null)g.return=u;else for(g=u;g!==null;){if(g===e){g=null;break}if(u=g.sibling,u!==null){u.return=g.return,g=u;break}g=g.return}u=g}}function Nl(e,t,a,r){e=null;for(var u=t,f=!1;u!==null;){if(!f){if((u.flags&524288)!==0)f=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var g=u.alternate;if(g===null)throw Error(s(387));if(g=g.memoizedProps,g!==null){var S=u.type;Yt(u.pendingProps.value,g.value)||(e!==null?e.push(S):e=[S])}}else if(u===ze.current){if(g=u.alternate,g===null)throw Error(s(387));g.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Ji):e=[Ji])}u=u.return}e!==null&&Cu(t,e,a,r),t.flags|=262144}function Wr(e){for(e=e.firstContext;e!==null;){if(!Yt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ya(e){Ga=e,Bn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function vt(e){return Lh(Ga,e)}function es(e,t){return Ga===null&&Ya(e),Lh(e,t)}function Lh(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Bn===null){if(e===null)throw Error(s(308));Bn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Bn=Bn.next=t;return a}var hS=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},pS=l.unstable_scheduleCallback,mS=l.unstable_NormalPriority,st={$$typeof:B,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Tu(){return{controller:new hS,data:new Map,refCount:0}}function wi(e){e.refCount--,e.refCount===0&&pS(mS,function(){e.controller.abort()})}var Ci=null,Nu=0,Rl=0,jl=null;function gS(e,t){if(Ci===null){var a=Ci=[];Nu=0,Rl=Oc(),jl={status:"pending",value:void 0,then:function(r){a.push(r)}}}return Nu++,t.then(Uh,Uh),t}function Uh(){if(--Nu===0&&Ci!==null){jl!==null&&(jl.status="fulfilled");var e=Ci;Ci=null,Rl=0,jl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function vS(e,t){var a=[],r={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var u=0;u<a.length;u++)(0,a[u])(t)},function(u){for(r.status="rejected",r.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),r}var Bh=z.S;z.S=function(e,t){xm=Vt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&gS(e,t),Bh!==null&&Bh(e,t)};var Xa=T(null);function Ru(){var e=Xa.current;return e!==null?e:Ge.pooledCache}function ts(e,t){t===null?I(Xa,Xa.current):I(Xa,t.pool)}function Hh(){var e=Ru();return e===null?null:{parent:st._currentValue,pool:e}}var Ol=Error(s(460)),ju=Error(s(474)),ns=Error(s(542)),as={then:function(){}};function $h(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Vh(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Mn,Mn),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Gh(e),e;default:if(typeof t.status=="string")t.then(Mn,Mn);else{if(e=Ge,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=r}},function(r){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Gh(e),e}throw Ka=t,Ol}}function Qa(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Ka=a,Ol):a}}var Ka=null;function qh(){if(Ka===null)throw Error(s(459));var e=Ka;return Ka=null,e}function Gh(e){if(e===Ol||e===ns)throw Error(s(483))}var Al=null,Ti=0;function ls(e){var t=Ti;return Ti+=1,Al===null&&(Al=[]),Vh(Al,e,t)}function Ni(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function is(e,t){throw t.$$typeof===x?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Yh(e){function t(j,R){if(e){var A=j.deletions;A===null?(j.deletions=[R],j.flags|=16):A.push(R)}}function a(j,R){if(!e)return null;for(;R!==null;)t(j,R),R=R.sibling;return null}function r(j){for(var R=new Map;j!==null;)j.key!==null?R.set(j.key,j):R.set(j.index,j),j=j.sibling;return R}function u(j,R){return j=Ln(j,R),j.index=0,j.sibling=null,j}function f(j,R,A){return j.index=A,e?(A=j.alternate,A!==null?(A=A.index,A<R?(j.flags|=67108866,R):A):(j.flags|=67108866,R)):(j.flags|=1048576,R)}function g(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function S(j,R,A,G){return R===null||R.tag!==6?(R=gu(A,j.mode,G),R.return=j,R):(R=u(R,A),R.return=j,R)}function C(j,R,A,G){var oe=A.type;return oe===O?V(j,R,A.props.children,G,A.key):R!==null&&(R.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===K&&Qa(oe)===R.type)?(R=u(R,A.props),Ni(R,A),R.return=j,R):(R=Pr(A.type,A.key,A.props,null,j.mode,G),Ni(R,A),R.return=j,R)}function D(j,R,A,G){return R===null||R.tag!==4||R.stateNode.containerInfo!==A.containerInfo||R.stateNode.implementation!==A.implementation?(R=vu(A,j.mode,G),R.return=j,R):(R=u(R,A.children||[]),R.return=j,R)}function V(j,R,A,G,oe){return R===null||R.tag!==7?(R=Va(A,j.mode,G,oe),R.return=j,R):(R=u(R,A),R.return=j,R)}function X(j,R,A){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=gu(""+R,j.mode,A),R.return=j,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case E:return A=Pr(R.type,R.key,R.props,null,j.mode,A),Ni(A,R),A.return=j,A;case N:return R=vu(R,j.mode,A),R.return=j,R;case K:return R=Qa(R),X(j,R,A)}if(he(R)||te(R))return R=Va(R,j.mode,A,null),R.return=j,R;if(typeof R.then=="function")return X(j,ls(R),A);if(R.$$typeof===B)return X(j,es(j,R),A);is(j,R)}return null}function k(j,R,A,G){var oe=R!==null?R.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return oe!==null?null:S(j,R,""+A,G);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case E:return A.key===oe?C(j,R,A,G):null;case N:return A.key===oe?D(j,R,A,G):null;case K:return A=Qa(A),k(j,R,A,G)}if(he(A)||te(A))return oe!==null?null:V(j,R,A,G,null);if(typeof A.then=="function")return k(j,R,ls(A),G);if(A.$$typeof===B)return k(j,R,es(j,A),G);is(j,A)}return null}function U(j,R,A,G,oe){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return j=j.get(A)||null,S(R,j,""+G,oe);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case E:return j=j.get(G.key===null?A:G.key)||null,C(R,j,G,oe);case N:return j=j.get(G.key===null?A:G.key)||null,D(R,j,G,oe);case K:return G=Qa(G),U(j,R,A,G,oe)}if(he(G)||te(G))return j=j.get(A)||null,V(R,j,G,oe,null);if(typeof G.then=="function")return U(j,R,A,ls(G),oe);if(G.$$typeof===B)return U(j,R,A,es(R,G),oe);is(R,G)}return null}function le(j,R,A,G){for(var oe=null,_e=null,re=R,be=R=0,je=null;re!==null&&be<A.length;be++){re.index>be?(je=re,re=null):je=re.sibling;var ke=k(j,re,A[be],G);if(ke===null){re===null&&(re=je);break}e&&re&&ke.alternate===null&&t(j,re),R=f(ke,R,be),_e===null?oe=ke:_e.sibling=ke,_e=ke,re=je}if(be===A.length)return a(j,re),Oe&&Un(j,be),oe;if(re===null){for(;be<A.length;be++)re=X(j,A[be],G),re!==null&&(R=f(re,R,be),_e===null?oe=re:_e.sibling=re,_e=re);return Oe&&Un(j,be),oe}for(re=r(re);be<A.length;be++)je=U(re,j,be,A[be],G),je!==null&&(e&&je.alternate!==null&&re.delete(je.key===null?be:je.key),R=f(je,R,be),_e===null?oe=je:_e.sibling=je,_e=je);return e&&re.forEach(function(Ra){return t(j,Ra)}),Oe&&Un(j,be),oe}function ue(j,R,A,G){if(A==null)throw Error(s(151));for(var oe=null,_e=null,re=R,be=R=0,je=null,ke=A.next();re!==null&&!ke.done;be++,ke=A.next()){re.index>be?(je=re,re=null):je=re.sibling;var Ra=k(j,re,ke.value,G);if(Ra===null){re===null&&(re=je);break}e&&re&&Ra.alternate===null&&t(j,re),R=f(Ra,R,be),_e===null?oe=Ra:_e.sibling=Ra,_e=Ra,re=je}if(ke.done)return a(j,re),Oe&&Un(j,be),oe;if(re===null){for(;!ke.done;be++,ke=A.next())ke=X(j,ke.value,G),ke!==null&&(R=f(ke,R,be),_e===null?oe=ke:_e.sibling=ke,_e=ke);return Oe&&Un(j,be),oe}for(re=r(re);!ke.done;be++,ke=A.next())ke=U(re,j,be,ke.value,G),ke!==null&&(e&&ke.alternate!==null&&re.delete(ke.key===null?be:ke.key),R=f(ke,R,be),_e===null?oe=ke:_e.sibling=ke,_e=ke);return e&&re.forEach(function(jx){return t(j,jx)}),Oe&&Un(j,be),oe}function qe(j,R,A,G){if(typeof A=="object"&&A!==null&&A.type===O&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case E:e:{for(var oe=A.key;R!==null;){if(R.key===oe){if(oe=A.type,oe===O){if(R.tag===7){a(j,R.sibling),G=u(R,A.props.children),G.return=j,j=G;break e}}else if(R.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===K&&Qa(oe)===R.type){a(j,R.sibling),G=u(R,A.props),Ni(G,A),G.return=j,j=G;break e}a(j,R);break}else t(j,R);R=R.sibling}A.type===O?(G=Va(A.props.children,j.mode,G,A.key),G.return=j,j=G):(G=Pr(A.type,A.key,A.props,null,j.mode,G),Ni(G,A),G.return=j,j=G)}return g(j);case N:e:{for(oe=A.key;R!==null;){if(R.key===oe)if(R.tag===4&&R.stateNode.containerInfo===A.containerInfo&&R.stateNode.implementation===A.implementation){a(j,R.sibling),G=u(R,A.children||[]),G.return=j,j=G;break e}else{a(j,R);break}else t(j,R);R=R.sibling}G=vu(A,j.mode,G),G.return=j,j=G}return g(j);case K:return A=Qa(A),qe(j,R,A,G)}if(he(A))return le(j,R,A,G);if(te(A)){if(oe=te(A),typeof oe!="function")throw Error(s(150));return A=oe.call(A),ue(j,R,A,G)}if(typeof A.then=="function")return qe(j,R,ls(A),G);if(A.$$typeof===B)return qe(j,R,es(j,A),G);is(j,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,R!==null&&R.tag===6?(a(j,R.sibling),G=u(R,A),G.return=j,j=G):(a(j,R),G=gu(A,j.mode,G),G.return=j,j=G),g(j)):a(j,R)}return function(j,R,A,G){try{Ti=0;var oe=qe(j,R,A,G);return Al=null,oe}catch(re){if(re===Ol||re===ns)throw re;var _e=Xt(29,re,null,j.mode);return _e.lanes=G,_e.return=j,_e}}}var Za=Yh(!0),Xh=Yh(!1),ca=!1;function Ou(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Au(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function fa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function da(e,t,a){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Le&2)!==0){var u=r.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),r.pending=t,t=Fr(e),jh(e,null,a),t}return Jr(e,r,t,a),Fr(e)}function Ri(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Ld(e,a)}}function Du(e,t){var a=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,a===r)){var u=null,f=null;if(a=a.firstBaseUpdate,a!==null){do{var g={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};f===null?u=f=g:f=f.next=g,a=a.next}while(a!==null);f===null?u=f=t:f=f.next=t}else u=f=t;a={baseState:r.baseState,firstBaseUpdate:u,lastBaseUpdate:f,shared:r.shared,callbacks:r.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var _u=!1;function ji(){if(_u){var e=jl;if(e!==null)throw e}}function Oi(e,t,a,r){_u=!1;var u=e.updateQueue;ca=!1;var f=u.firstBaseUpdate,g=u.lastBaseUpdate,S=u.shared.pending;if(S!==null){u.shared.pending=null;var C=S,D=C.next;C.next=null,g===null?f=D:g.next=D,g=C;var V=e.alternate;V!==null&&(V=V.updateQueue,S=V.lastBaseUpdate,S!==g&&(S===null?V.firstBaseUpdate=D:S.next=D,V.lastBaseUpdate=C))}if(f!==null){var X=u.baseState;g=0,V=D=C=null,S=f;do{var k=S.lane&-536870913,U=k!==S.lane;if(U?(Re&k)===k:(r&k)===k){k!==0&&k===Rl&&(_u=!0),V!==null&&(V=V.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var le=e,ue=S;k=t;var qe=a;switch(ue.tag){case 1:if(le=ue.payload,typeof le=="function"){X=le.call(qe,X,k);break e}X=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=ue.payload,k=typeof le=="function"?le.call(qe,X,k):le,k==null)break e;X=y({},X,k);break e;case 2:ca=!0}}k=S.callback,k!==null&&(e.flags|=64,U&&(e.flags|=8192),U=u.callbacks,U===null?u.callbacks=[k]:U.push(k))}else U={lane:k,tag:S.tag,payload:S.payload,callback:S.callback,next:null},V===null?(D=V=U,C=X):V=V.next=U,g|=k;if(S=S.next,S===null){if(S=u.shared.pending,S===null)break;U=S,S=U.next,U.next=null,u.lastBaseUpdate=U,u.shared.pending=null}}while(!0);V===null&&(C=X),u.baseState=C,u.firstBaseUpdate=D,u.lastBaseUpdate=V,f===null&&(u.shared.lanes=0),va|=g,e.lanes=g,e.memoizedState=X}}function Qh(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Kh(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Qh(a[e],t)}var Dl=T(null),rs=T(0);function Zh(e,t){e=Zn,I(rs,e),I(Dl,t),Zn=e|t.baseLanes}function ku(){I(rs,Zn),I(Dl,Dl.current)}function Mu(){Zn=rs.current,q(Dl),q(rs)}var Qt=T(null),cn=null;function ha(e){var t=e.alternate;I(it,it.current&1),I(Qt,e),cn===null&&(t===null||Dl.current!==null||t.memoizedState!==null)&&(cn=e)}function zu(e){I(it,it.current),I(Qt,e),cn===null&&(cn=e)}function Jh(e){e.tag===22?(I(it,it.current),I(Qt,e),cn===null&&(cn=e)):pa()}function pa(){I(it,it.current),I(Qt,Qt.current)}function Kt(e){q(Qt),cn===e&&(cn=null),q(it)}var it=T(0);function ss(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Vc(a)||qc(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var $n=0,ye=null,$e=null,ot=null,os=!1,_l=!1,Ja=!1,us=0,Ai=0,kl=null,yS=0;function tt(){throw Error(s(321))}function Lu(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Yt(e[a],t[a]))return!1;return!0}function Uu(e,t,a,r,u,f){return $n=f,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,z.H=e===null||e.memoizedState===null?_p:Iu,Ja=!1,f=a(r,u),Ja=!1,_l&&(f=Ph(t,a,r,u)),Fh(e),f}function Fh(e){z.H=ki;var t=$e!==null&&$e.next!==null;if($n=0,ot=$e=ye=null,os=!1,Ai=0,kl=null,t)throw Error(s(300));e===null||ut||(e=e.dependencies,e!==null&&Wr(e)&&(ut=!0))}function Ph(e,t,a,r){ye=e;var u=0;do{if(_l&&(kl=null),Ai=0,_l=!1,25<=u)throw Error(s(301));if(u+=1,ot=$e=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}z.H=kp,f=t(a,r)}while(_l);return f}function bS(){var e=z.H,t=e.useState()[0];return t=typeof t.then=="function"?Di(t):t,e=e.useState()[0],($e!==null?$e.memoizedState:null)!==e&&(ye.flags|=1024),t}function Bu(){var e=us!==0;return us=0,e}function Hu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function $u(e){if(os){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}os=!1}$n=0,ot=$e=ye=null,_l=!1,Ai=us=0,kl=null}function Nt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ot===null?ye.memoizedState=ot=e:ot=ot.next=e,ot}function rt(){if($e===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=$e.next;var t=ot===null?ye.memoizedState:ot.next;if(t!==null)ot=t,$e=e;else{if(e===null)throw ye.alternate===null?Error(s(467)):Error(s(310));$e=e,e={memoizedState:$e.memoizedState,baseState:$e.baseState,baseQueue:$e.baseQueue,queue:$e.queue,next:null},ot===null?ye.memoizedState=ot=e:ot=ot.next=e}return ot}function cs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Di(e){var t=Ai;return Ai+=1,kl===null&&(kl=[]),e=Vh(kl,e,t),t=ye,(ot===null?t.memoizedState:ot.next)===null&&(t=t.alternate,z.H=t===null||t.memoizedState===null?_p:Iu),e}function fs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Di(e);if(e.$$typeof===B)return vt(e)}throw Error(s(438,String(e)))}function Vu(e){var t=null,a=ye.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var r=ye.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=cs(),ye.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),r=0;r<e;r++)a[r]=Z;return t.index++,a}function Vn(e,t){return typeof t=="function"?t(e):t}function ds(e){var t=rt();return qu(t,$e,e)}function qu(e,t,a){var r=e.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=a;var u=e.baseQueue,f=r.pending;if(f!==null){if(u!==null){var g=u.next;u.next=f.next,f.next=g}t.baseQueue=u=f,r.pending=null}if(f=e.baseState,u===null)e.memoizedState=f;else{t=u.next;var S=g=null,C=null,D=t,V=!1;do{var X=D.lane&-536870913;if(X!==D.lane?(Re&X)===X:($n&X)===X){var k=D.revertLane;if(k===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),X===Rl&&(V=!0);else if(($n&k)===k){D=D.next,k===Rl&&(V=!0);continue}else X={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},C===null?(S=C=X,g=f):C=C.next=X,ye.lanes|=k,va|=k;X=D.action,Ja&&a(f,X),f=D.hasEagerState?D.eagerState:a(f,X)}else k={lane:X,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},C===null?(S=C=k,g=f):C=C.next=k,ye.lanes|=X,va|=X;D=D.next}while(D!==null&&D!==t);if(C===null?g=f:C.next=S,!Yt(f,e.memoizedState)&&(ut=!0,V&&(a=jl,a!==null)))throw a;e.memoizedState=f,e.baseState=g,e.baseQueue=C,r.lastRenderedState=f}return u===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Gu(e){var t=rt(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var r=a.dispatch,u=a.pending,f=t.memoizedState;if(u!==null){a.pending=null;var g=u=u.next;do f=e(f,g.action),g=g.next;while(g!==u);Yt(f,t.memoizedState)||(ut=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),a.lastRenderedState=f}return[f,r]}function Ih(e,t,a){var r=ye,u=rt(),f=Oe;if(f){if(a===void 0)throw Error(s(407));a=a()}else a=t();var g=!Yt(($e||u).memoizedState,a);if(g&&(u.memoizedState=a,ut=!0),u=u.queue,Qu(tp.bind(null,r,u,e),[e]),u.getSnapshot!==t||g||ot!==null&&ot.memoizedState.tag&1){if(r.flags|=2048,Ml(9,{destroy:void 0},ep.bind(null,r,u,a,t),null),Ge===null)throw Error(s(349));f||($n&127)!==0||Wh(r,t,a)}return a}function Wh(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ye.updateQueue,t===null?(t=cs(),ye.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function ep(e,t,a,r){t.value=a,t.getSnapshot=r,np(t)&&ap(e)}function tp(e,t,a){return a(function(){np(t)&&ap(e)})}function np(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Yt(e,a)}catch{return!0}}function ap(e){var t=$a(e,2);t!==null&&Lt(t,e,2)}function Yu(e){var t=Nt();if(typeof e=="function"){var a=e;if(e=a(),Ja){aa(!0);try{a()}finally{aa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:e},t}function lp(e,t,a,r){return e.baseState=a,qu(e,$e,typeof r=="function"?r:Vn)}function SS(e,t,a,r,u){if(ms(e))throw Error(s(485));if(e=t.action,e!==null){var f={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){f.listeners.push(g)}};z.T!==null?a(!0):f.isTransition=!1,r(f),a=t.pending,a===null?(f.next=t.pending=f,ip(t,f)):(f.next=a.next,t.pending=a.next=f)}}function ip(e,t){var a=t.action,r=t.payload,u=e.state;if(t.isTransition){var f=z.T,g={};z.T=g;try{var S=a(u,r),C=z.S;C!==null&&C(g,S),rp(e,t,S)}catch(D){Xu(e,t,D)}finally{f!==null&&g.types!==null&&(f.types=g.types),z.T=f}}else try{f=a(u,r),rp(e,t,f)}catch(D){Xu(e,t,D)}}function rp(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(r){sp(e,t,r)},function(r){return Xu(e,t,r)}):sp(e,t,a)}function sp(e,t,a){t.status="fulfilled",t.value=a,op(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,ip(e,a)))}function Xu(e,t,a){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=a,op(t),t=t.next;while(t!==r)}e.action=null}function op(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function up(e,t){return t}function cp(e,t){if(Oe){var a=Ge.formState;if(a!==null){e:{var r=ye;if(Oe){if(Qe){t:{for(var u=Qe,f=un;u.nodeType!==8;){if(!f){u=null;break t}if(u=fn(u.nextSibling),u===null){u=null;break t}}f=u.data,u=f==="F!"||f==="F"?u:null}if(u){Qe=fn(u.nextSibling),r=u.data==="F!";break e}}oa(r)}r=!1}r&&(t=a[0])}}return a=Nt(),a.memoizedState=a.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:up,lastRenderedState:t},a.queue=r,a=Op.bind(null,ye,r),r.dispatch=a,r=Yu(!1),f=Pu.bind(null,ye,!1,r.queue),r=Nt(),u={state:t,dispatch:null,action:e,pending:null},r.queue=u,a=SS.bind(null,ye,u,f,a),u.dispatch=a,r.memoizedState=e,[t,a,!1]}function fp(e){var t=rt();return dp(t,$e,e)}function dp(e,t,a){if(t=qu(e,t,up)[0],e=ds(Vn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=Di(t)}catch(g){throw g===Ol?ns:g}else r=t;t=rt();var u=t.queue,f=u.dispatch;return a!==t.memoizedState&&(ye.flags|=2048,Ml(9,{destroy:void 0},xS.bind(null,u,a),null)),[r,f,e]}function xS(e,t){e.action=t}function hp(e){var t=rt(),a=$e;if(a!==null)return dp(t,a,e);rt(),t=t.memoizedState,a=rt();var r=a.queue.dispatch;return a.memoizedState=e,[t,r,!1]}function Ml(e,t,a,r){return e={tag:e,create:a,deps:r,inst:t,next:null},t=ye.updateQueue,t===null&&(t=cs(),ye.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(r=a.next,a.next=e,e.next=r,t.lastEffect=e),e}function pp(){return rt().memoizedState}function hs(e,t,a,r){var u=Nt();ye.flags|=e,u.memoizedState=Ml(1|t,{destroy:void 0},a,r===void 0?null:r)}function ps(e,t,a,r){var u=rt();r=r===void 0?null:r;var f=u.memoizedState.inst;$e!==null&&r!==null&&Lu(r,$e.memoizedState.deps)?u.memoizedState=Ml(t,f,a,r):(ye.flags|=e,u.memoizedState=Ml(1|t,f,a,r))}function mp(e,t){hs(8390656,8,e,t)}function Qu(e,t){ps(2048,8,e,t)}function ES(e){ye.flags|=4;var t=ye.updateQueue;if(t===null)t=cs(),ye.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function gp(e){var t=rt().memoizedState;return ES({ref:t,nextImpl:e}),function(){if((Le&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function vp(e,t){return ps(4,2,e,t)}function yp(e,t){return ps(4,4,e,t)}function bp(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Sp(e,t,a){a=a!=null?a.concat([e]):null,ps(4,4,bp.bind(null,t,e),a)}function Ku(){}function xp(e,t){var a=rt();t=t===void 0?null:t;var r=a.memoizedState;return t!==null&&Lu(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function Ep(e,t){var a=rt();t=t===void 0?null:t;var r=a.memoizedState;if(t!==null&&Lu(t,r[1]))return r[0];if(r=e(),Ja){aa(!0);try{e()}finally{aa(!1)}}return a.memoizedState=[r,t],r}function Zu(e,t,a){return a===void 0||($n&1073741824)!==0&&(Re&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=wm(),ye.lanes|=e,va|=e,a)}function wp(e,t,a,r){return Yt(a,t)?a:Dl.current!==null?(e=Zu(e,a,r),Yt(e,t)||(ut=!0),e):($n&42)===0||($n&1073741824)!==0&&(Re&261930)===0?(ut=!0,e.memoizedState=a):(e=wm(),ye.lanes|=e,va|=e,t)}function Cp(e,t,a,r,u){var f=J.p;J.p=f!==0&&8>f?f:8;var g=z.T,S={};z.T=S,Pu(e,!1,t,a);try{var C=u(),D=z.S;if(D!==null&&D(S,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var V=vS(C,r);_i(e,t,V,Ft(e))}else _i(e,t,r,Ft(e))}catch(X){_i(e,t,{then:function(){},status:"rejected",reason:X},Ft())}finally{J.p=f,g!==null&&S.types!==null&&(g.types=S.types),z.T=g}}function wS(){}function Ju(e,t,a,r){if(e.tag!==5)throw Error(s(476));var u=Tp(e).queue;Cp(e,u,t,ne,a===null?wS:function(){return Np(e),a(r)})}function Tp(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:ne},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Np(e){var t=Tp(e);t.next===null&&(t=e.alternate.memoizedState),_i(e,t.next.queue,{},Ft())}function Fu(){return vt(Ji)}function Rp(){return rt().memoizedState}function jp(){return rt().memoizedState}function CS(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Ft();e=fa(a);var r=da(t,e,a);r!==null&&(Lt(r,t,a),Ri(r,t,a)),t={cache:Tu()},e.payload=t;return}t=t.return}}function TS(e,t,a){var r=Ft();a={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ms(e)?Ap(t,a):(a=pu(e,t,a,r),a!==null&&(Lt(a,e,r),Dp(a,t,r)))}function Op(e,t,a){var r=Ft();_i(e,t,a,r)}function _i(e,t,a,r){var u={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(ms(e))Ap(t,u);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var g=t.lastRenderedState,S=f(g,a);if(u.hasEagerState=!0,u.eagerState=S,Yt(S,g))return Jr(e,t,u,0),Ge===null&&Zr(),!1}catch{}if(a=pu(e,t,u,r),a!==null)return Lt(a,e,r),Dp(a,t,r),!0}return!1}function Pu(e,t,a,r){if(r={lane:2,revertLane:Oc(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},ms(e)){if(t)throw Error(s(479))}else t=pu(e,a,r,2),t!==null&&Lt(t,e,2)}function ms(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function Ap(e,t){_l=os=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Dp(e,t,a){if((a&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Ld(e,a)}}var ki={readContext:vt,use:fs,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useLayoutEffect:tt,useInsertionEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useSyncExternalStore:tt,useId:tt,useHostTransitionStatus:tt,useFormState:tt,useActionState:tt,useOptimistic:tt,useMemoCache:tt,useCacheRefresh:tt};ki.useEffectEvent=tt;var _p={readContext:vt,use:fs,useCallback:function(e,t){return Nt().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:mp,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,hs(4194308,4,bp.bind(null,t,e),a)},useLayoutEffect:function(e,t){return hs(4194308,4,e,t)},useInsertionEffect:function(e,t){hs(4,2,e,t)},useMemo:function(e,t){var a=Nt();t=t===void 0?null:t;var r=e();if(Ja){aa(!0);try{e()}finally{aa(!1)}}return a.memoizedState=[r,t],r},useReducer:function(e,t,a){var r=Nt();if(a!==void 0){var u=a(t);if(Ja){aa(!0);try{a(t)}finally{aa(!1)}}}else u=t;return r.memoizedState=r.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},r.queue=e,e=e.dispatch=TS.bind(null,ye,e),[r.memoizedState,e]},useRef:function(e){var t=Nt();return e={current:e},t.memoizedState=e},useState:function(e){e=Yu(e);var t=e.queue,a=Op.bind(null,ye,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Ku,useDeferredValue:function(e,t){var a=Nt();return Zu(a,e,t)},useTransition:function(){var e=Yu(!1);return e=Cp.bind(null,ye,e.queue,!0,!1),Nt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var r=ye,u=Nt();if(Oe){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),Ge===null)throw Error(s(349));(Re&127)!==0||Wh(r,t,a)}u.memoizedState=a;var f={value:a,getSnapshot:t};return u.queue=f,mp(tp.bind(null,r,f,e),[e]),r.flags|=2048,Ml(9,{destroy:void 0},ep.bind(null,r,f,a,t),null),a},useId:function(){var e=Nt(),t=Ge.identifierPrefix;if(Oe){var a=Nn,r=Tn;a=(r&~(1<<32-Gt(r)-1)).toString(32)+a,t="_"+t+"R_"+a,a=us++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=yS++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Fu,useFormState:cp,useActionState:cp,useOptimistic:function(e){var t=Nt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Pu.bind(null,ye,!0,a),a.dispatch=t,[e,t]},useMemoCache:Vu,useCacheRefresh:function(){return Nt().memoizedState=CS.bind(null,ye)},useEffectEvent:function(e){var t=Nt(),a={impl:e};return t.memoizedState=a,function(){if((Le&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},Iu={readContext:vt,use:fs,useCallback:xp,useContext:vt,useEffect:Qu,useImperativeHandle:Sp,useInsertionEffect:vp,useLayoutEffect:yp,useMemo:Ep,useReducer:ds,useRef:pp,useState:function(){return ds(Vn)},useDebugValue:Ku,useDeferredValue:function(e,t){var a=rt();return wp(a,$e.memoizedState,e,t)},useTransition:function(){var e=ds(Vn)[0],t=rt().memoizedState;return[typeof e=="boolean"?e:Di(e),t]},useSyncExternalStore:Ih,useId:Rp,useHostTransitionStatus:Fu,useFormState:fp,useActionState:fp,useOptimistic:function(e,t){var a=rt();return lp(a,$e,e,t)},useMemoCache:Vu,useCacheRefresh:jp};Iu.useEffectEvent=gp;var kp={readContext:vt,use:fs,useCallback:xp,useContext:vt,useEffect:Qu,useImperativeHandle:Sp,useInsertionEffect:vp,useLayoutEffect:yp,useMemo:Ep,useReducer:Gu,useRef:pp,useState:function(){return Gu(Vn)},useDebugValue:Ku,useDeferredValue:function(e,t){var a=rt();return $e===null?Zu(a,e,t):wp(a,$e.memoizedState,e,t)},useTransition:function(){var e=Gu(Vn)[0],t=rt().memoizedState;return[typeof e=="boolean"?e:Di(e),t]},useSyncExternalStore:Ih,useId:Rp,useHostTransitionStatus:Fu,useFormState:hp,useActionState:hp,useOptimistic:function(e,t){var a=rt();return $e!==null?lp(a,$e,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Vu,useCacheRefresh:jp};kp.useEffectEvent=gp;function Wu(e,t,a,r){t=e.memoizedState,a=a(r,t),a=a==null?t:y({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var ec={enqueueSetState:function(e,t,a){e=e._reactInternals;var r=Ft(),u=fa(r);u.payload=t,a!=null&&(u.callback=a),t=da(e,u,r),t!==null&&(Lt(t,e,r),Ri(t,e,r))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=Ft(),u=fa(r);u.tag=1,u.payload=t,a!=null&&(u.callback=a),t=da(e,u,r),t!==null&&(Lt(t,e,r),Ri(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Ft(),r=fa(a);r.tag=2,t!=null&&(r.callback=t),t=da(e,r,a),t!==null&&(Lt(t,e,a),Ri(t,e,a))}};function Mp(e,t,a,r,u,f,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,f,g):t.prototype&&t.prototype.isPureReactComponent?!bi(a,r)||!bi(u,f):!0}function zp(e,t,a,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,r),t.state!==e&&ec.enqueueReplaceState(t,t.state,null)}function Fa(e,t){var a=t;if("ref"in t){a={};for(var r in t)r!=="ref"&&(a[r]=t[r])}if(e=e.defaultProps){a===t&&(a=y({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}function Lp(e){Kr(e)}function Up(e){console.error(e)}function Bp(e){Kr(e)}function gs(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Hp(e,t,a){try{var r=e.onCaughtError;r(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function tc(e,t,a){return a=fa(a),a.tag=3,a.payload={element:null},a.callback=function(){gs(e,t)},a}function $p(e){return e=fa(e),e.tag=3,e}function Vp(e,t,a,r){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var f=r.value;e.payload=function(){return u(f)},e.callback=function(){Hp(t,a,r)}}var g=a.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){Hp(t,a,r),typeof u!="function"&&(ya===null?ya=new Set([this]):ya.add(this));var S=r.stack;this.componentDidCatch(r.value,{componentStack:S!==null?S:""})})}function NS(e,t,a,r,u){if(a.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=a.alternate,t!==null&&Nl(t,a,u,!0),a=Qt.current,a!==null){switch(a.tag){case 31:case 13:return cn===null?js():a.alternate===null&&nt===0&&(nt=3),a.flags&=-257,a.flags|=65536,a.lanes=u,r===as?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([r]):t.add(r),Nc(e,r,u)),!1;case 22:return a.flags|=65536,r===as?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([r]):a.add(r)),Nc(e,r,u)),!1}throw Error(s(435,a.tag))}return Nc(e,r,u),js(),!1}if(Oe)return t=Qt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,r!==Su&&(e=Error(s(422),{cause:r}),Ei(rn(e,a)))):(r!==Su&&(t=Error(s(423),{cause:r}),Ei(rn(t,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,r=rn(r,a),u=tc(e.stateNode,r,u),Du(e,u),nt!==4&&(nt=2)),!1;var f=Error(s(520),{cause:r});if(f=rn(f,a),Vi===null?Vi=[f]:Vi.push(f),nt!==4&&(nt=2),t===null)return!0;r=rn(r,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=tc(a.stateNode,r,e),Du(a,e),!1;case 1:if(t=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(ya===null||!ya.has(f))))return a.flags|=65536,u&=-u,a.lanes|=u,u=$p(u),Vp(u,e,a,r),Du(a,u),!1}a=a.return}while(a!==null);return!1}var nc=Error(s(461)),ut=!1;function yt(e,t,a,r){t.child=e===null?Xh(t,null,a,r):Za(t,e.child,a,r)}function qp(e,t,a,r,u){a=a.render;var f=t.ref;if("ref"in r){var g={};for(var S in r)S!=="ref"&&(g[S]=r[S])}else g=r;return Ya(t),r=Uu(e,t,a,g,f,u),S=Bu(),e!==null&&!ut?(Hu(e,t,u),qn(e,t,u)):(Oe&&S&&yu(t),t.flags|=1,yt(e,t,r,u),t.child)}function Gp(e,t,a,r,u){if(e===null){var f=a.type;return typeof f=="function"&&!mu(f)&&f.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=f,Yp(e,t,f,r,u)):(e=Pr(a.type,null,r,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!cc(e,u)){var g=f.memoizedProps;if(a=a.compare,a=a!==null?a:bi,a(g,r)&&e.ref===t.ref)return qn(e,t,u)}return t.flags|=1,e=Ln(f,r),e.ref=t.ref,e.return=t,t.child=e}function Yp(e,t,a,r,u){if(e!==null){var f=e.memoizedProps;if(bi(f,r)&&e.ref===t.ref)if(ut=!1,t.pendingProps=r=f,cc(e,u))(e.flags&131072)!==0&&(ut=!0);else return t.lanes=e.lanes,qn(e,t,u)}return ac(e,t,a,r,u)}function Xp(e,t,a,r){var u=r.children,f=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(f=f!==null?f.baseLanes|a:a,e!==null){for(r=t.child=e.child,u=0;r!==null;)u=u|r.lanes|r.childLanes,r=r.sibling;r=u&~f}else r=0,t.child=null;return Qp(e,t,f,a,r)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ts(t,f!==null?f.cachePool:null),f!==null?Zh(t,f):ku(),Jh(t);else return r=t.lanes=536870912,Qp(e,t,f!==null?f.baseLanes|a:a,a,r)}else f!==null?(ts(t,f.cachePool),Zh(t,f),pa(),t.memoizedState=null):(e!==null&&ts(t,null),ku(),pa());return yt(e,t,u,a),t.child}function Mi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Qp(e,t,a,r,u){var f=Ru();return f=f===null?null:{parent:st._currentValue,pool:f},t.memoizedState={baseLanes:a,cachePool:f},e!==null&&ts(t,null),ku(),Jh(t),e!==null&&Nl(e,t,r,!0),t.childLanes=u,null}function vs(e,t){return t=bs({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Kp(e,t,a){return Za(t,e.child,null,a),e=vs(t,t.pendingProps),e.flags|=2,Kt(t),t.memoizedState=null,e}function RS(e,t,a){var r=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Oe){if(r.mode==="hidden")return e=vs(t,r),t.lanes=536870912,Mi(null,e);if(zu(t),(e=Qe)?(e=ig(e,un),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ra!==null?{id:Tn,overflow:Nn}:null,retryLane:536870912,hydrationErrors:null},a=Ah(e),a.return=t,t.child=a,gt=t,Qe=null)):e=null,e===null)throw oa(t);return t.lanes=536870912,null}return vs(t,r)}var f=e.memoizedState;if(f!==null){var g=f.dehydrated;if(zu(t),u)if(t.flags&256)t.flags&=-257,t=Kp(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(ut||Nl(e,t,a,!1),u=(a&e.childLanes)!==0,ut||u){if(r=Ge,r!==null&&(g=Ud(r,a),g!==0&&g!==f.retryLane))throw f.retryLane=g,$a(e,g),Lt(r,e,g),nc;js(),t=Kp(e,t,a)}else e=f.treeContext,Qe=fn(g.nextSibling),gt=t,Oe=!0,sa=null,un=!1,e!==null&&kh(t,e),t=vs(t,r),t.flags|=4096;return t}return e=Ln(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ys(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function ac(e,t,a,r,u){return Ya(t),a=Uu(e,t,a,r,void 0,u),r=Bu(),e!==null&&!ut?(Hu(e,t,u),qn(e,t,u)):(Oe&&r&&yu(t),t.flags|=1,yt(e,t,a,u),t.child)}function Zp(e,t,a,r,u,f){return Ya(t),t.updateQueue=null,a=Ph(t,r,a,u),Fh(e),r=Bu(),e!==null&&!ut?(Hu(e,t,f),qn(e,t,f)):(Oe&&r&&yu(t),t.flags|=1,yt(e,t,a,f),t.child)}function Jp(e,t,a,r,u){if(Ya(t),t.stateNode===null){var f=El,g=a.contextType;typeof g=="object"&&g!==null&&(f=vt(g)),f=new a(r,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=ec,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=r,f.state=t.memoizedState,f.refs={},Ou(t),g=a.contextType,f.context=typeof g=="object"&&g!==null?vt(g):El,f.state=t.memoizedState,g=a.getDerivedStateFromProps,typeof g=="function"&&(Wu(t,a,g,r),f.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(g=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),g!==f.state&&ec.enqueueReplaceState(f,f.state,null),Oi(t,r,f,u),ji(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){f=t.stateNode;var S=t.memoizedProps,C=Fa(a,S);f.props=C;var D=f.context,V=a.contextType;g=El,typeof V=="object"&&V!==null&&(g=vt(V));var X=a.getDerivedStateFromProps;V=typeof X=="function"||typeof f.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,V||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(S||D!==g)&&zp(t,f,r,g),ca=!1;var k=t.memoizedState;f.state=k,Oi(t,r,f,u),ji(),D=t.memoizedState,S||k!==D||ca?(typeof X=="function"&&(Wu(t,a,X,r),D=t.memoizedState),(C=ca||Mp(t,a,C,r,k,D,g))?(V||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=D),f.props=r,f.state=D,f.context=g,r=C):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{f=t.stateNode,Au(e,t),g=t.memoizedProps,V=Fa(a,g),f.props=V,X=t.pendingProps,k=f.context,D=a.contextType,C=El,typeof D=="object"&&D!==null&&(C=vt(D)),S=a.getDerivedStateFromProps,(D=typeof S=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(g!==X||k!==C)&&zp(t,f,r,C),ca=!1,k=t.memoizedState,f.state=k,Oi(t,r,f,u),ji();var U=t.memoizedState;g!==X||k!==U||ca||e!==null&&e.dependencies!==null&&Wr(e.dependencies)?(typeof S=="function"&&(Wu(t,a,S,r),U=t.memoizedState),(V=ca||Mp(t,a,V,r,k,U,C)||e!==null&&e.dependencies!==null&&Wr(e.dependencies))?(D||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(r,U,C),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(r,U,C)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=U),f.props=r,f.state=U,f.context=C,r=V):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),r=!1)}return f=r,ys(e,t),r=(t.flags&128)!==0,f||r?(f=t.stateNode,a=r&&typeof a.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&r?(t.child=Za(t,e.child,null,u),t.child=Za(t,null,a,u)):yt(e,t,a,u),t.memoizedState=f.state,e=t.child):e=qn(e,t,u),e}function Fp(e,t,a,r){return qa(),t.flags|=256,yt(e,t,a,r),t.child}var lc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ic(e){return{baseLanes:e,cachePool:Hh()}}function rc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Jt),e}function Pp(e,t,a){var r=t.pendingProps,u=!1,f=(t.flags&128)!==0,g;if((g=f)||(g=e!==null&&e.memoizedState===null?!1:(it.current&2)!==0),g&&(u=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(Oe){if(u?ha(t):pa(),(e=Qe)?(e=ig(e,un),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ra!==null?{id:Tn,overflow:Nn}:null,retryLane:536870912,hydrationErrors:null},a=Ah(e),a.return=t,t.child=a,gt=t,Qe=null)):e=null,e===null)throw oa(t);return qc(e)?t.lanes=32:t.lanes=536870912,null}var S=r.children;return r=r.fallback,u?(pa(),u=t.mode,S=bs({mode:"hidden",children:S},u),r=Va(r,u,a,null),S.return=t,r.return=t,S.sibling=r,t.child=S,r=t.child,r.memoizedState=ic(a),r.childLanes=rc(e,g,a),t.memoizedState=lc,Mi(null,r)):(ha(t),sc(t,S))}var C=e.memoizedState;if(C!==null&&(S=C.dehydrated,S!==null)){if(f)t.flags&256?(ha(t),t.flags&=-257,t=oc(e,t,a)):t.memoizedState!==null?(pa(),t.child=e.child,t.flags|=128,t=null):(pa(),S=r.fallback,u=t.mode,r=bs({mode:"visible",children:r.children},u),S=Va(S,u,a,null),S.flags|=2,r.return=t,S.return=t,r.sibling=S,t.child=r,Za(t,e.child,null,a),r=t.child,r.memoizedState=ic(a),r.childLanes=rc(e,g,a),t.memoizedState=lc,t=Mi(null,r));else if(ha(t),qc(S)){if(g=S.nextSibling&&S.nextSibling.dataset,g)var D=g.dgst;g=D,r=Error(s(419)),r.stack="",r.digest=g,Ei({value:r,source:null,stack:null}),t=oc(e,t,a)}else if(ut||Nl(e,t,a,!1),g=(a&e.childLanes)!==0,ut||g){if(g=Ge,g!==null&&(r=Ud(g,a),r!==0&&r!==C.retryLane))throw C.retryLane=r,$a(e,r),Lt(g,e,r),nc;Vc(S)||js(),t=oc(e,t,a)}else Vc(S)?(t.flags|=192,t.child=e.child,t=null):(e=C.treeContext,Qe=fn(S.nextSibling),gt=t,Oe=!0,sa=null,un=!1,e!==null&&kh(t,e),t=sc(t,r.children),t.flags|=4096);return t}return u?(pa(),S=r.fallback,u=t.mode,C=e.child,D=C.sibling,r=Ln(C,{mode:"hidden",children:r.children}),r.subtreeFlags=C.subtreeFlags&65011712,D!==null?S=Ln(D,S):(S=Va(S,u,a,null),S.flags|=2),S.return=t,r.return=t,r.sibling=S,t.child=r,Mi(null,r),r=t.child,S=e.child.memoizedState,S===null?S=ic(a):(u=S.cachePool,u!==null?(C=st._currentValue,u=u.parent!==C?{parent:C,pool:C}:u):u=Hh(),S={baseLanes:S.baseLanes|a,cachePool:u}),r.memoizedState=S,r.childLanes=rc(e,g,a),t.memoizedState=lc,Mi(e.child,r)):(ha(t),a=e.child,e=a.sibling,a=Ln(a,{mode:"visible",children:r.children}),a.return=t,a.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=a,t.memoizedState=null,a)}function sc(e,t){return t=bs({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function bs(e,t){return e=Xt(22,e,null,t),e.lanes=0,e}function oc(e,t,a){return Za(t,e.child,null,a),e=sc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ip(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),wu(e.return,t,a)}function uc(e,t,a,r,u,f){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:u,treeForkCount:f}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=r,g.tail=a,g.tailMode=u,g.treeForkCount=f)}function Wp(e,t,a){var r=t.pendingProps,u=r.revealOrder,f=r.tail;r=r.children;var g=it.current,S=(g&2)!==0;if(S?(g=g&1|2,t.flags|=128):g&=1,I(it,g),yt(e,t,r,a),r=Oe?xi:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ip(e,a,t);else if(e.tag===19)Ip(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(a=t.child,u=null;a!==null;)e=a.alternate,e!==null&&ss(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=t.child,t.child=null):(u=a.sibling,a.sibling=null),uc(t,!1,u,a,f,r);break;case"backwards":case"unstable_legacy-backwards":for(a=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&ss(e)===null){t.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}uc(t,!0,a,null,f,r);break;case"together":uc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function qn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),va|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Nl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=Ln(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Ln(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function cc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Wr(e)))}function jS(e,t,a){switch(t.tag){case 3:Et(t,t.stateNode.containerInfo),ua(t,st,e.memoizedState.cache),qa();break;case 27:case 5:ri(t);break;case 4:Et(t,t.stateNode.containerInfo);break;case 10:ua(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,zu(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(ha(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Pp(e,t,a):(ha(t),e=qn(e,t,a),e!==null?e.sibling:null);ha(t);break;case 19:var u=(e.flags&128)!==0;if(r=(a&t.childLanes)!==0,r||(Nl(e,t,a,!1),r=(a&t.childLanes)!==0),u){if(r)return Wp(e,t,a);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),I(it,it.current),r)break;return null;case 22:return t.lanes=0,Xp(e,t,a,t.pendingProps);case 24:ua(t,st,e.memoizedState.cache)}return qn(e,t,a)}function em(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)ut=!0;else{if(!cc(e,a)&&(t.flags&128)===0)return ut=!1,jS(e,t,a);ut=(e.flags&131072)!==0}else ut=!1,Oe&&(t.flags&1048576)!==0&&_h(t,xi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=Qa(t.elementType),t.type=e,typeof e=="function")mu(e)?(r=Fa(e,r),t.tag=1,t=Jp(null,t,e,r,a)):(t.tag=0,t=ac(null,t,e,r,a));else{if(e!=null){var u=e.$$typeof;if(u===P){t.tag=11,t=qp(null,t,e,r,a);break e}else if(u===_){t.tag=14,t=Gp(null,t,e,r,a);break e}}throw t=ce(e)||e,Error(s(306,t,""))}}return t;case 0:return ac(e,t,t.type,t.pendingProps,a);case 1:return r=t.type,u=Fa(r,t.pendingProps),Jp(e,t,r,u,a);case 3:e:{if(Et(t,t.stateNode.containerInfo),e===null)throw Error(s(387));r=t.pendingProps;var f=t.memoizedState;u=f.element,Au(e,t),Oi(t,r,null,a);var g=t.memoizedState;if(r=g.cache,ua(t,st,r),r!==f.cache&&Cu(t,[st],a,!0),ji(),r=g.element,f.isDehydrated)if(f={element:r,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=Fp(e,t,r,a);break e}else if(r!==u){u=rn(Error(s(424)),t),Ei(u),t=Fp(e,t,r,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Qe=fn(e.firstChild),gt=t,Oe=!0,sa=null,un=!0,a=Xh(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(qa(),r===u){t=qn(e,t,a);break e}yt(e,t,r,a)}t=t.child}return t;case 26:return ys(e,t),e===null?(a=fg(t.type,null,t.pendingProps,null))?t.memoizedState=a:Oe||(a=t.type,e=t.pendingProps,r=zs(we.current).createElement(a),r[mt]=t,r[At]=e,bt(r,a,e),ht(r),t.stateNode=r):t.memoizedState=fg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ri(t),e===null&&Oe&&(r=t.stateNode=og(t.type,t.pendingProps,we.current),gt=t,un=!0,u=Qe,Ea(t.type)?(Gc=u,Qe=fn(r.firstChild)):Qe=u),yt(e,t,t.pendingProps.children,a),ys(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Oe&&((u=r=Qe)&&(r=lx(r,t.type,t.pendingProps,un),r!==null?(t.stateNode=r,gt=t,Qe=fn(r.firstChild),un=!1,u=!0):u=!1),u||oa(t)),ri(t),u=t.type,f=t.pendingProps,g=e!==null?e.memoizedProps:null,r=f.children,Bc(u,f)?r=null:g!==null&&Bc(u,g)&&(t.flags|=32),t.memoizedState!==null&&(u=Uu(e,t,bS,null,null,a),Ji._currentValue=u),ys(e,t),yt(e,t,r,a),t.child;case 6:return e===null&&Oe&&((e=a=Qe)&&(a=ix(a,t.pendingProps,un),a!==null?(t.stateNode=a,gt=t,Qe=null,e=!0):e=!1),e||oa(t)),null;case 13:return Pp(e,t,a);case 4:return Et(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Za(t,null,r,a):yt(e,t,r,a),t.child;case 11:return qp(e,t,t.type,t.pendingProps,a);case 7:return yt(e,t,t.pendingProps,a),t.child;case 8:return yt(e,t,t.pendingProps.children,a),t.child;case 12:return yt(e,t,t.pendingProps.children,a),t.child;case 10:return r=t.pendingProps,ua(t,t.type,r.value),yt(e,t,r.children,a),t.child;case 9:return u=t.type._context,r=t.pendingProps.children,Ya(t),u=vt(u),r=r(u),t.flags|=1,yt(e,t,r,a),t.child;case 14:return Gp(e,t,t.type,t.pendingProps,a);case 15:return Yp(e,t,t.type,t.pendingProps,a);case 19:return Wp(e,t,a);case 31:return RS(e,t,a);case 22:return Xp(e,t,a,t.pendingProps);case 24:return Ya(t),r=vt(st),e===null?(u=Ru(),u===null&&(u=Ge,f=Tu(),u.pooledCache=f,f.refCount++,f!==null&&(u.pooledCacheLanes|=a),u=f),t.memoizedState={parent:r,cache:u},Ou(t),ua(t,st,u)):((e.lanes&a)!==0&&(Au(e,t),Oi(t,null,null,a),ji()),u=e.memoizedState,f=t.memoizedState,u.parent!==r?(u={parent:r,cache:r},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),ua(t,st,r)):(r=f.cache,ua(t,st,r),r!==u.cache&&Cu(t,[st],a,!0))),yt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Gn(e){e.flags|=4}function fc(e,t,a,r,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(Rm())e.flags|=8192;else throw Ka=as,ju}else e.flags&=-16777217}function tm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!gg(t))if(Rm())e.flags|=8192;else throw Ka=as,ju}function Ss(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Md():536870912,e.lanes|=t,Bl|=t)}function zi(e,t){if(!Oe)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,r=0;if(t)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,r|=u.subtreeFlags&65011712,r|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,r|=u.subtreeFlags,r|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=r,e.childLanes=a,t}function OS(e,t,a){var r=t.pendingProps;switch(bu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ke(t),null;case 1:return Ke(t),null;case 3:return a=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Hn(st),Ie(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Tl(t)?Gn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,xu())),Ke(t),null;case 26:var u=t.type,f=t.memoizedState;return e===null?(Gn(t),f!==null?(Ke(t),tm(t,f)):(Ke(t),fc(t,u,null,r,a))):f?f!==e.memoizedState?(Gn(t),Ke(t),tm(t,f)):(Ke(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&Gn(t),Ke(t),fc(t,u,e,r,a)),null;case 27:if(Dr(t),a=we.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Gn(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return Ke(t),null}e=ae.current,Tl(t)?Mh(t):(e=og(u,r,a),t.stateNode=e,Gn(t))}return Ke(t),null;case 5:if(Dr(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Gn(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return Ke(t),null}if(f=ae.current,Tl(t))Mh(t);else{var g=zs(we.current);switch(f){case 1:f=g.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:f=g.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":f=g.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":f=g.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":f=g.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof r.is=="string"?g.createElement("select",{is:r.is}):g.createElement("select"),r.multiple?f.multiple=!0:r.size&&(f.size=r.size);break;default:f=typeof r.is=="string"?g.createElement(u,{is:r.is}):g.createElement(u)}}f[mt]=t,f[At]=r;e:for(g=t.child;g!==null;){if(g.tag===5||g.tag===6)f.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===t)break e;for(;g.sibling===null;){if(g.return===null||g.return===t)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}t.stateNode=f;e:switch(bt(f,u,r),u){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&Gn(t)}}return Ke(t),fc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Gn(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(s(166));if(e=we.current,Tl(t)){if(e=t.stateNode,a=t.memoizedProps,r=null,u=gt,u!==null)switch(u.tag){case 27:case 5:r=u.memoizedProps}e[mt]=t,e=!!(e.nodeValue===a||r!==null&&r.suppressHydrationWarning===!0||Pm(e.nodeValue,a)),e||oa(t,!0)}else e=zs(e).createTextNode(r),e[mt]=t,t.stateNode=e}return Ke(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(r=Tl(t),a!==null){if(e===null){if(!r)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[mt]=t}else qa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ke(t),e=!1}else a=xu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Kt(t),t):(Kt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Ke(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Tl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!u)throw Error(s(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(s(317));u[mt]=t}else qa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ke(t),u=!1}else u=xu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(Kt(t),t):(Kt(t),null)}return Kt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=r!==null,e=e!==null&&e.memoizedState!==null,a&&(r=t.child,u=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(u=r.alternate.memoizedState.cachePool.pool),f=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(f=r.memoizedState.cachePool.pool),f!==u&&(r.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Ss(t,t.updateQueue),Ke(t),null);case 4:return Ie(),e===null&&kc(t.stateNode.containerInfo),Ke(t),null;case 10:return Hn(t.type),Ke(t),null;case 19:if(q(it),r=t.memoizedState,r===null)return Ke(t),null;if(u=(t.flags&128)!==0,f=r.rendering,f===null)if(u)zi(r,!1);else{if(nt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=ss(e),f!==null){for(t.flags|=128,zi(r,!1),e=f.updateQueue,t.updateQueue=e,Ss(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Oh(a,e),a=a.sibling;return I(it,it.current&1|2),Oe&&Un(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Vt()>Ts&&(t.flags|=128,u=!0,zi(r,!1),t.lanes=4194304)}else{if(!u)if(e=ss(f),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,Ss(t,e),zi(r,!0),r.tail===null&&r.tailMode==="hidden"&&!f.alternate&&!Oe)return Ke(t),null}else 2*Vt()-r.renderingStartTime>Ts&&a!==536870912&&(t.flags|=128,u=!0,zi(r,!1),t.lanes=4194304);r.isBackwards?(f.sibling=t.child,t.child=f):(e=r.last,e!==null?e.sibling=f:t.child=f,r.last=f)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Vt(),e.sibling=null,a=it.current,I(it,u?a&1|2:a&1),Oe&&Un(t,r.treeForkCount),e):(Ke(t),null);case 22:case 23:return Kt(t),Mu(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(a&536870912)!==0&&(t.flags&128)===0&&(Ke(t),t.subtreeFlags&6&&(t.flags|=8192)):Ke(t),a=t.updateQueue,a!==null&&Ss(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==a&&(t.flags|=2048),e!==null&&q(Xa),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Hn(st),Ke(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function AS(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 Hn(st),Ie(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Dr(t),null;case 31:if(t.memoizedState!==null){if(Kt(t),t.alternate===null)throw Error(s(340));qa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Kt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));qa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(it),null;case 4:return Ie(),null;case 10:return Hn(t.type),null;case 22:case 23:return Kt(t),Mu(),e!==null&&q(Xa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Hn(st),null;case 25:return null;default:return null}}function nm(e,t){switch(bu(t),t.tag){case 3:Hn(st),Ie();break;case 26:case 27:case 5:Dr(t);break;case 4:Ie();break;case 31:t.memoizedState!==null&&Kt(t);break;case 13:Kt(t);break;case 19:q(it);break;case 10:Hn(t.type);break;case 22:case 23:Kt(t),Mu(),e!==null&&q(Xa);break;case 24:Hn(st)}}function Li(e,t){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var u=r.next;a=u;do{if((a.tag&e)===e){r=void 0;var f=a.create,g=a.inst;r=f(),g.destroy=r}a=a.next}while(a!==u)}}catch(S){Be(t,t.return,S)}}function ma(e,t,a){try{var r=t.updateQueue,u=r!==null?r.lastEffect:null;if(u!==null){var f=u.next;r=f;do{if((r.tag&e)===e){var g=r.inst,S=g.destroy;if(S!==void 0){g.destroy=void 0,u=t;var C=a,D=S;try{D()}catch(V){Be(u,C,V)}}}r=r.next}while(r!==f)}}catch(V){Be(t,t.return,V)}}function am(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Kh(t,a)}catch(r){Be(e,e.return,r)}}}function lm(e,t,a){a.props=Fa(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(r){Be(e,t,r)}}function Ui(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof a=="function"?e.refCleanup=a(r):a.current=r}}catch(u){Be(e,t,u)}}function Rn(e,t){var a=e.ref,r=e.refCleanup;if(a!==null)if(typeof r=="function")try{r()}catch(u){Be(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){Be(e,t,u)}else a.current=null}function im(e){var t=e.type,a=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&r.focus();break e;case"img":a.src?r.src=a.src:a.srcSet&&(r.srcset=a.srcSet)}}catch(u){Be(e,e.return,u)}}function dc(e,t,a){try{var r=e.stateNode;IS(r,e.type,a,t),r[At]=t}catch(u){Be(e,e.return,u)}}function rm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ea(e.type)||e.tag===4}function hc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||rm(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&&Ea(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 pc(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Mn));else if(r!==4&&(r===27&&Ea(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(pc(e,t,a),e=e.sibling;e!==null;)pc(e,t,a),e=e.sibling}function xs(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(r!==4&&(r===27&&Ea(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(xs(e,t,a),e=e.sibling;e!==null;)xs(e,t,a),e=e.sibling}function sm(e){var t=e.stateNode,a=e.memoizedProps;try{for(var r=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);bt(t,r,a),t[mt]=e,t[At]=a}catch(f){Be(e,e.return,f)}}var Yn=!1,ct=!1,mc=!1,om=typeof WeakSet=="function"?WeakSet:Set,pt=null;function DS(e,t){if(e=e.containerInfo,Lc=qs,e=Sh(e),ou(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var u=r.anchorOffset,f=r.focusNode;r=r.focusOffset;try{a.nodeType,f.nodeType}catch{a=null;break e}var g=0,S=-1,C=-1,D=0,V=0,X=e,k=null;t:for(;;){for(var U;X!==a||u!==0&&X.nodeType!==3||(S=g+u),X!==f||r!==0&&X.nodeType!==3||(C=g+r),X.nodeType===3&&(g+=X.nodeValue.length),(U=X.firstChild)!==null;)k=X,X=U;for(;;){if(X===e)break t;if(k===a&&++D===u&&(S=g),k===f&&++V===r&&(C=g),(U=X.nextSibling)!==null)break;X=k,k=X.parentNode}X=U}a=S===-1||C===-1?null:{start:S,end:C}}else a=null}a=a||{start:0,end:0}}else a=null;for(Uc={focusedElem:e,selectionRange:a},qs=!1,pt=t;pt!==null;)if(t=pt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pt=e;else for(;pt!==null;){switch(t=pt,f=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)u=e[a],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,a=t,u=f.memoizedProps,f=f.memoizedState,r=a.stateNode;try{var le=Fa(a.type,u);e=r.getSnapshotBeforeUpdate(le,f),r.__reactInternalSnapshotBeforeUpdate=e}catch(ue){Be(a,a.return,ue)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)$c(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":$c(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,pt=e;break}pt=t.return}}function um(e,t,a){var r=a.flags;switch(a.tag){case 0:case 11:case 15:Qn(e,a),r&4&&Li(5,a);break;case 1:if(Qn(e,a),r&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(g){Be(a,a.return,g)}else{var u=Fa(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){Be(a,a.return,g)}}r&64&&am(a),r&512&&Ui(a,a.return);break;case 3:if(Qn(e,a),r&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Kh(e,t)}catch(g){Be(a,a.return,g)}}break;case 27:t===null&&r&4&&sm(a);case 26:case 5:Qn(e,a),t===null&&r&4&&im(a),r&512&&Ui(a,a.return);break;case 12:Qn(e,a);break;case 31:Qn(e,a),r&4&&dm(e,a);break;case 13:Qn(e,a),r&4&&hm(e,a),r&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=$S.bind(null,a),rx(e,a))));break;case 22:if(r=a.memoizedState!==null||Yn,!r){t=t!==null&&t.memoizedState!==null||ct,u=Yn;var f=ct;Yn=r,(ct=t)&&!f?Kn(e,a,(a.subtreeFlags&8772)!==0):Qn(e,a),Yn=u,ct=f}break;case 30:break;default:Qn(e,a)}}function cm(e){var t=e.alternate;t!==null&&(e.alternate=null,cm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Xo(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 Je=null,_t=!1;function Xn(e,t,a){for(a=a.child;a!==null;)fm(e,t,a),a=a.sibling}function fm(e,t,a){if(qt&&typeof qt.onCommitFiberUnmount=="function")try{qt.onCommitFiberUnmount(si,a)}catch{}switch(a.tag){case 26:ct||Rn(a,t),Xn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ct||Rn(a,t);var r=Je,u=_t;Ea(a.type)&&(Je=a.stateNode,_t=!1),Xn(e,t,a),Qi(a.stateNode),Je=r,_t=u;break;case 5:ct||Rn(a,t);case 6:if(r=Je,u=_t,Je=null,Xn(e,t,a),Je=r,_t=u,Je!==null)if(_t)try{(Je.nodeType===9?Je.body:Je.nodeName==="HTML"?Je.ownerDocument.body:Je).removeChild(a.stateNode)}catch(f){Be(a,t,f)}else try{Je.removeChild(a.stateNode)}catch(f){Be(a,t,f)}break;case 18:Je!==null&&(_t?(e=Je,ag(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ql(e)):ag(Je,a.stateNode));break;case 4:r=Je,u=_t,Je=a.stateNode.containerInfo,_t=!0,Xn(e,t,a),Je=r,_t=u;break;case 0:case 11:case 14:case 15:ma(2,a,t),ct||ma(4,a,t),Xn(e,t,a);break;case 1:ct||(Rn(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"&&lm(a,t,r)),Xn(e,t,a);break;case 21:Xn(e,t,a);break;case 22:ct=(r=ct)||a.memoizedState!==null,Xn(e,t,a),ct=r;break;default:Xn(e,t,a)}}function dm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ql(e)}catch(a){Be(t,t.return,a)}}}function hm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ql(e)}catch(a){Be(t,t.return,a)}}function _S(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new om),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new om),t;default:throw Error(s(435,e.tag))}}function Es(e,t){var a=_S(e);t.forEach(function(r){if(!a.has(r)){a.add(r);var u=VS.bind(null,e,r);r.then(u,u)}})}function kt(e,t){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var u=a[r],f=e,g=t,S=g;e:for(;S!==null;){switch(S.tag){case 27:if(Ea(S.type)){Je=S.stateNode,_t=!1;break e}break;case 5:Je=S.stateNode,_t=!1;break e;case 3:case 4:Je=S.stateNode.containerInfo,_t=!0;break e}S=S.return}if(Je===null)throw Error(s(160));fm(f,g,u),Je=null,_t=!1,f=u.alternate,f!==null&&(f.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)pm(t,e),t=t.sibling}var vn=null;function pm(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:kt(t,e),Mt(e),r&4&&(ma(3,e,e.return),Li(3,e),ma(5,e,e.return));break;case 1:kt(t,e),Mt(e),r&512&&(ct||a===null||Rn(a,a.return)),r&64&&Yn&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?r:a.concat(r))));break;case 26:var u=vn;if(kt(t,e),Mt(e),r&512&&(ct||a===null||Rn(a,a.return)),r&4){var f=a!==null?a.memoizedState:null;if(r=e.memoizedState,a===null)if(r===null)if(e.stateNode===null){e:{r=e.type,a=e.memoizedProps,u=u.ownerDocument||u;t:switch(r){case"title":f=u.getElementsByTagName("title")[0],(!f||f[ci]||f[mt]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=u.createElement(r),u.head.insertBefore(f,u.querySelector("head > title"))),bt(f,r,a),f[mt]=e,ht(f),r=f;break e;case"link":var g=pg("link","href",u).get(r+(a.href||""));if(g){for(var S=0;S<g.length;S++)if(f=g[S],f.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&f.getAttribute("rel")===(a.rel==null?null:a.rel)&&f.getAttribute("title")===(a.title==null?null:a.title)&&f.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){g.splice(S,1);break t}}f=u.createElement(r),bt(f,r,a),u.head.appendChild(f);break;case"meta":if(g=pg("meta","content",u).get(r+(a.content||""))){for(S=0;S<g.length;S++)if(f=g[S],f.getAttribute("content")===(a.content==null?null:""+a.content)&&f.getAttribute("name")===(a.name==null?null:a.name)&&f.getAttribute("property")===(a.property==null?null:a.property)&&f.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&f.getAttribute("charset")===(a.charSet==null?null:a.charSet)){g.splice(S,1);break t}}f=u.createElement(r),bt(f,r,a),u.head.appendChild(f);break;default:throw Error(s(468,r))}f[mt]=e,ht(f),r=f}e.stateNode=r}else mg(u,e.type,e.stateNode);else e.stateNode=hg(u,r,e.memoizedProps);else f!==r?(f===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):f.count--,r===null?mg(u,e.type,e.stateNode):hg(u,r,e.memoizedProps)):r===null&&e.stateNode!==null&&dc(e,e.memoizedProps,a.memoizedProps)}break;case 27:kt(t,e),Mt(e),r&512&&(ct||a===null||Rn(a,a.return)),a!==null&&r&4&&dc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(kt(t,e),Mt(e),r&512&&(ct||a===null||Rn(a,a.return)),e.flags&32){u=e.stateNode;try{ml(u,"")}catch(le){Be(e,e.return,le)}}r&4&&e.stateNode!=null&&(u=e.memoizedProps,dc(e,u,a!==null?a.memoizedProps:u)),r&1024&&(mc=!0);break;case 6:if(kt(t,e),Mt(e),r&4){if(e.stateNode===null)throw Error(s(162));r=e.memoizedProps,a=e.stateNode;try{a.nodeValue=r}catch(le){Be(e,e.return,le)}}break;case 3:if(Bs=null,u=vn,vn=Ls(t.containerInfo),kt(t,e),vn=u,Mt(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{Ql(t.containerInfo)}catch(le){Be(e,e.return,le)}mc&&(mc=!1,mm(e));break;case 4:r=vn,vn=Ls(e.stateNode.containerInfo),kt(t,e),Mt(e),vn=r;break;case 12:kt(t,e),Mt(e);break;case 31:kt(t,e),Mt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Es(e,r)));break;case 13:kt(t,e),Mt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Cs=Vt()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Es(e,r)));break;case 22:u=e.memoizedState!==null;var C=a!==null&&a.memoizedState!==null,D=Yn,V=ct;if(Yn=D||u,ct=V||C,kt(t,e),ct=V,Yn=D,Mt(e),r&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(a===null||C||Yn||ct||Pa(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){C=a=t;try{if(f=C.stateNode,u)g=f.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{S=C.stateNode;var X=C.memoizedProps.style,k=X!=null&&X.hasOwnProperty("display")?X.display:null;S.style.display=k==null||typeof k=="boolean"?"":(""+k).trim()}}catch(le){Be(C,C.return,le)}}}else if(t.tag===6){if(a===null){C=t;try{C.stateNode.nodeValue=u?"":C.memoizedProps}catch(le){Be(C,C.return,le)}}}else if(t.tag===18){if(a===null){C=t;try{var U=C.stateNode;u?lg(U,!0):lg(C.stateNode,!1)}catch(le){Be(C,C.return,le)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(a=r.retryQueue,a!==null&&(r.retryQueue=null,Es(e,a))));break;case 19:kt(t,e),Mt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Es(e,r)));break;case 30:break;case 21:break;default:kt(t,e),Mt(e)}}function Mt(e){var t=e.flags;if(t&2){try{for(var a,r=e.return;r!==null;){if(rm(r)){a=r;break}r=r.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var u=a.stateNode,f=hc(e);xs(e,f,u);break;case 5:var g=a.stateNode;a.flags&32&&(ml(g,""),a.flags&=-33);var S=hc(e);xs(e,S,g);break;case 3:case 4:var C=a.stateNode.containerInfo,D=hc(e);pc(e,D,C);break;default:throw Error(s(161))}}catch(V){Be(e,e.return,V)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function mm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;mm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Qn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)um(e,t.alternate,t),t=t.sibling}function Pa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ma(4,t,t.return),Pa(t);break;case 1:Rn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&lm(t,t.return,a),Pa(t);break;case 27:Qi(t.stateNode);case 26:case 5:Rn(t,t.return),Pa(t);break;case 22:t.memoizedState===null&&Pa(t);break;case 30:Pa(t);break;default:Pa(t)}e=e.sibling}}function Kn(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,u=e,f=t,g=f.flags;switch(f.tag){case 0:case 11:case 15:Kn(u,f,a),Li(4,f);break;case 1:if(Kn(u,f,a),r=f,u=r.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(D){Be(r,r.return,D)}if(r=f,u=r.updateQueue,u!==null){var S=r.stateNode;try{var C=u.shared.hiddenCallbacks;if(C!==null)for(u.shared.hiddenCallbacks=null,u=0;u<C.length;u++)Qh(C[u],S)}catch(D){Be(r,r.return,D)}}a&&g&64&&am(f),Ui(f,f.return);break;case 27:sm(f);case 26:case 5:Kn(u,f,a),a&&r===null&&g&4&&im(f),Ui(f,f.return);break;case 12:Kn(u,f,a);break;case 31:Kn(u,f,a),a&&g&4&&dm(u,f);break;case 13:Kn(u,f,a),a&&g&4&&hm(u,f);break;case 22:f.memoizedState===null&&Kn(u,f,a),Ui(f,f.return);break;case 30:break;default:Kn(u,f,a)}t=t.sibling}}function gc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&wi(a))}function vc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&wi(e))}function yn(e,t,a,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)gm(e,t,a,r),t=t.sibling}function gm(e,t,a,r){var u=t.flags;switch(t.tag){case 0:case 11:case 15:yn(e,t,a,r),u&2048&&Li(9,t);break;case 1:yn(e,t,a,r);break;case 3:yn(e,t,a,r),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&wi(e)));break;case 12:if(u&2048){yn(e,t,a,r),e=t.stateNode;try{var f=t.memoizedProps,g=f.id,S=f.onPostCommit;typeof S=="function"&&S(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(C){Be(t,t.return,C)}}else yn(e,t,a,r);break;case 31:yn(e,t,a,r);break;case 13:yn(e,t,a,r);break;case 23:break;case 22:f=t.stateNode,g=t.alternate,t.memoizedState!==null?f._visibility&2?yn(e,t,a,r):Bi(e,t):f._visibility&2?yn(e,t,a,r):(f._visibility|=2,zl(e,t,a,r,(t.subtreeFlags&10256)!==0||!1)),u&2048&&gc(g,t);break;case 24:yn(e,t,a,r),u&2048&&vc(t.alternate,t);break;default:yn(e,t,a,r)}}function zl(e,t,a,r,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var f=e,g=t,S=a,C=r,D=g.flags;switch(g.tag){case 0:case 11:case 15:zl(f,g,S,C,u),Li(8,g);break;case 23:break;case 22:var V=g.stateNode;g.memoizedState!==null?V._visibility&2?zl(f,g,S,C,u):Bi(f,g):(V._visibility|=2,zl(f,g,S,C,u)),u&&D&2048&&gc(g.alternate,g);break;case 24:zl(f,g,S,C,u),u&&D&2048&&vc(g.alternate,g);break;default:zl(f,g,S,C,u)}t=t.sibling}}function Bi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,r=t,u=r.flags;switch(r.tag){case 22:Bi(a,r),u&2048&&gc(r.alternate,r);break;case 24:Bi(a,r),u&2048&&vc(r.alternate,r);break;default:Bi(a,r)}t=t.sibling}}var Hi=8192;function Ll(e,t,a){if(e.subtreeFlags&Hi)for(e=e.child;e!==null;)vm(e,t,a),e=e.sibling}function vm(e,t,a){switch(e.tag){case 26:Ll(e,t,a),e.flags&Hi&&e.memoizedState!==null&&yx(a,vn,e.memoizedState,e.memoizedProps);break;case 5:Ll(e,t,a);break;case 3:case 4:var r=vn;vn=Ls(e.stateNode.containerInfo),Ll(e,t,a),vn=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Hi,Hi=16777216,Ll(e,t,a),Hi=r):Ll(e,t,a));break;default:Ll(e,t,a)}}function ym(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 $i(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];pt=r,Sm(r,e)}ym(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)bm(e),e=e.sibling}function bm(e){switch(e.tag){case 0:case 11:case 15:$i(e),e.flags&2048&&ma(9,e,e.return);break;case 3:$i(e);break;case 12:$i(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ws(e)):$i(e);break;default:$i(e)}}function ws(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];pt=r,Sm(r,e)}ym(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ma(8,t,t.return),ws(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,ws(t));break;default:ws(t)}e=e.sibling}}function Sm(e,t){for(;pt!==null;){var a=pt;switch(a.tag){case 0:case 11:case 15:ma(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var r=a.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:wi(a.memoizedState.cache)}if(r=a.child,r!==null)r.return=a,pt=r;else e:for(a=e;pt!==null;){r=pt;var u=r.sibling,f=r.return;if(cm(r),r===a){pt=null;break e}if(u!==null){u.return=f,pt=u;break e}pt=f}}}var kS={getCacheForType:function(e){var t=vt(st),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return vt(st).controller.signal}},MS=typeof WeakMap=="function"?WeakMap:Map,Le=0,Ge=null,Ce=null,Re=0,Ue=0,Zt=null,ga=!1,Ul=!1,yc=!1,Zn=0,nt=0,va=0,Ia=0,bc=0,Jt=0,Bl=0,Vi=null,zt=null,Sc=!1,Cs=0,xm=0,Ts=1/0,Ns=null,ya=null,dt=0,ba=null,Hl=null,Jn=0,xc=0,Ec=null,Em=null,qi=0,wc=null;function Ft(){return(Le&2)!==0&&Re!==0?Re&-Re:z.T!==null?Oc():Bd()}function wm(){if(Jt===0)if((Re&536870912)===0||Oe){var e=Mr;Mr<<=1,(Mr&3932160)===0&&(Mr=262144),Jt=e}else Jt=536870912;return e=Qt.current,e!==null&&(e.flags|=32),Jt}function Lt(e,t,a){(e===Ge&&(Ue===2||Ue===9)||e.cancelPendingCommit!==null)&&($l(e,0),Sa(e,Re,Jt,!1)),ui(e,a),((Le&2)===0||e!==Ge)&&(e===Ge&&((Le&2)===0&&(Ia|=a),nt===4&&Sa(e,Re,Jt,!1)),jn(e))}function Cm(e,t,a){if((Le&6)!==0)throw Error(s(327));var r=!a&&(t&127)===0&&(t&e.expiredLanes)===0||oi(e,t),u=r?US(e,t):Tc(e,t,!0),f=r;do{if(u===0){Ul&&!r&&Sa(e,t,0,!1);break}else{if(a=e.current.alternate,f&&!zS(a)){u=Tc(e,t,!1),f=!1;continue}if(u===2){if(f=t,e.errorRecoveryDisabledLanes&f)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var S=e;u=Vi;var C=S.current.memoizedState.isDehydrated;if(C&&($l(S,g).flags|=256),g=Tc(S,g,!1),g!==2){if(yc&&!C){S.errorRecoveryDisabledLanes|=f,Ia|=f,u=4;break e}f=zt,zt=u,f!==null&&(zt===null?zt=f:zt.push.apply(zt,f))}u=g}if(f=!1,u!==2)continue}}if(u===1){$l(e,0),Sa(e,t,0,!0);break}e:{switch(r=e,f=u,f){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Sa(r,t,Jt,!ga);break e;case 2:zt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(u=Cs+300-Vt(),10<u)){if(Sa(r,t,Jt,!ga),Lr(r,0,!0)!==0)break e;Jn=t,r.timeoutHandle=tg(Tm.bind(null,r,a,zt,Ns,Sc,t,Jt,Ia,Bl,ga,f,"Throttled",-0,0),u);break e}Tm(r,a,zt,Ns,Sc,t,Jt,Ia,Bl,ga,f,null,-0,0)}}break}while(!0);jn(e)}function Tm(e,t,a,r,u,f,g,S,C,D,V,X,k,U){if(e.timeoutHandle=-1,X=t.subtreeFlags,X&8192||(X&16785408)===16785408){X={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Mn},vm(t,f,X);var le=(f&62914560)===f?Cs-Vt():(f&4194048)===f?xm-Vt():0;if(le=bx(X,le),le!==null){Jn=f,e.cancelPendingCommit=le(km.bind(null,e,t,f,a,r,u,g,S,C,V,X,null,k,U)),Sa(e,f,g,!D);return}}km(e,t,f,a,r,u,g,S,C)}function zS(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var r=0;r<a.length;r++){var u=a[r],f=u.getSnapshot;u=u.value;try{if(!Yt(f(),u))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Sa(e,t,a,r){t&=~bc,t&=~Ia,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var u=t;0<u;){var f=31-Gt(u),g=1<<f;r[f]=-1,u&=~g}a!==0&&zd(e,a,t)}function Rs(){return(Le&6)===0?(Gi(0),!1):!0}function Cc(){if(Ce!==null){if(Ue===0)var e=Ce.return;else e=Ce,Bn=Ga=null,$u(e),Al=null,Ti=0,e=Ce;for(;e!==null;)nm(e.alternate,e),e=e.return;Ce=null}}function $l(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,tx(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Jn=0,Cc(),Ge=e,Ce=a=Ln(e.current,null),Re=t,Ue=0,Zt=null,ga=!1,Ul=oi(e,t),yc=!1,Bl=Jt=bc=Ia=va=nt=0,zt=Vi=null,Sc=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var u=31-Gt(r),f=1<<u;t|=e[u],r&=~f}return Zn=t,Zr(),a}function Nm(e,t){ye=null,z.H=ki,t===Ol||t===ns?(t=qh(),Ue=3):t===ju?(t=qh(),Ue=4):Ue=t===nc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Zt=t,Ce===null&&(nt=1,gs(e,rn(t,e.current)))}function Rm(){var e=Qt.current;return e===null?!0:(Re&4194048)===Re?cn===null:(Re&62914560)===Re||(Re&536870912)!==0?e===cn:!1}function jm(){var e=z.H;return z.H=ki,e===null?ki:e}function Om(){var e=z.A;return z.A=kS,e}function js(){nt=4,ga||(Re&4194048)!==Re&&Qt.current!==null||(Ul=!0),(va&134217727)===0&&(Ia&134217727)===0||Ge===null||Sa(Ge,Re,Jt,!1)}function Tc(e,t,a){var r=Le;Le|=2;var u=jm(),f=Om();(Ge!==e||Re!==t)&&(Ns=null,$l(e,t)),t=!1;var g=nt;e:do try{if(Ue!==0&&Ce!==null){var S=Ce,C=Zt;switch(Ue){case 8:Cc(),g=6;break e;case 3:case 2:case 9:case 6:Qt.current===null&&(t=!0);var D=Ue;if(Ue=0,Zt=null,Vl(e,S,C,D),a&&Ul){g=0;break e}break;default:D=Ue,Ue=0,Zt=null,Vl(e,S,C,D)}}LS(),g=nt;break}catch(V){Nm(e,V)}while(!0);return t&&e.shellSuspendCounter++,Bn=Ga=null,Le=r,z.H=u,z.A=f,Ce===null&&(Ge=null,Re=0,Zr()),g}function LS(){for(;Ce!==null;)Am(Ce)}function US(e,t){var a=Le;Le|=2;var r=jm(),u=Om();Ge!==e||Re!==t?(Ns=null,Ts=Vt()+500,$l(e,t)):Ul=oi(e,t);e:do try{if(Ue!==0&&Ce!==null){t=Ce;var f=Zt;t:switch(Ue){case 1:Ue=0,Zt=null,Vl(e,t,f,1);break;case 2:case 9:if($h(f)){Ue=0,Zt=null,Dm(t);break}t=function(){Ue!==2&&Ue!==9||Ge!==e||(Ue=7),jn(e)},f.then(t,t);break e;case 3:Ue=7;break e;case 4:Ue=5;break e;case 7:$h(f)?(Ue=0,Zt=null,Dm(t)):(Ue=0,Zt=null,Vl(e,t,f,7));break;case 5:var g=null;switch(Ce.tag){case 26:g=Ce.memoizedState;case 5:case 27:var S=Ce;if(g?gg(g):S.stateNode.complete){Ue=0,Zt=null;var C=S.sibling;if(C!==null)Ce=C;else{var D=S.return;D!==null?(Ce=D,Os(D)):Ce=null}break t}}Ue=0,Zt=null,Vl(e,t,f,5);break;case 6:Ue=0,Zt=null,Vl(e,t,f,6);break;case 8:Cc(),nt=6;break e;default:throw Error(s(462))}}BS();break}catch(V){Nm(e,V)}while(!0);return Bn=Ga=null,z.H=r,z.A=u,Le=a,Ce!==null?0:(Ge=null,Re=0,Zr(),nt)}function BS(){for(;Ce!==null&&!s0();)Am(Ce)}function Am(e){var t=em(e.alternate,e,Zn);e.memoizedProps=e.pendingProps,t===null?Os(e):Ce=t}function Dm(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Zp(a,t,t.pendingProps,t.type,void 0,Re);break;case 11:t=Zp(a,t,t.pendingProps,t.type.render,t.ref,Re);break;case 5:$u(t);default:nm(a,t),t=Ce=Oh(t,Zn),t=em(a,t,Zn)}e.memoizedProps=e.pendingProps,t===null?Os(e):Ce=t}function Vl(e,t,a,r){Bn=Ga=null,$u(t),Al=null,Ti=0;var u=t.return;try{if(NS(e,u,t,a,Re)){nt=1,gs(e,rn(a,e.current)),Ce=null;return}}catch(f){if(u!==null)throw Ce=u,f;nt=1,gs(e,rn(a,e.current)),Ce=null;return}t.flags&32768?(Oe||r===1?e=!0:Ul||(Re&536870912)!==0?e=!1:(ga=e=!0,(r===2||r===9||r===3||r===6)&&(r=Qt.current,r!==null&&r.tag===13&&(r.flags|=16384))),_m(t,e)):Os(t)}function Os(e){var t=e;do{if((t.flags&32768)!==0){_m(t,ga);return}e=t.return;var a=OS(t.alternate,t,Zn);if(a!==null){Ce=a;return}if(t=t.sibling,t!==null){Ce=t;return}Ce=t=e}while(t!==null);nt===0&&(nt=5)}function _m(e,t){do{var a=AS(e.alternate,e);if(a!==null){a.flags&=32767,Ce=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Ce=e;return}Ce=e=a}while(e!==null);nt=6,Ce=null}function km(e,t,a,r,u,f,g,S,C){e.cancelPendingCommit=null;do As();while(dt!==0);if((Le&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(f=t.lanes|t.childLanes,f|=hu,v0(e,a,f,g,S,C),e===Ge&&(Ce=Ge=null,Re=0),Hl=t,ba=e,Jn=a,xc=f,Ec=u,Em=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,qS(_r,function(){return Bm(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=z.T,z.T=null,u=J.p,J.p=2,g=Le,Le|=4;try{DS(e,t,a)}finally{Le=g,J.p=u,z.T=r}}dt=1,Mm(),zm(),Lm()}}function Mm(){if(dt===1){dt=0;var e=ba,t=Hl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=z.T,z.T=null;var r=J.p;J.p=2;var u=Le;Le|=4;try{pm(t,e);var f=Uc,g=Sh(e.containerInfo),S=f.focusedElem,C=f.selectionRange;if(g!==S&&S&&S.ownerDocument&&bh(S.ownerDocument.documentElement,S)){if(C!==null&&ou(S)){var D=C.start,V=C.end;if(V===void 0&&(V=D),"selectionStart"in S)S.selectionStart=D,S.selectionEnd=Math.min(V,S.value.length);else{var X=S.ownerDocument||document,k=X&&X.defaultView||window;if(k.getSelection){var U=k.getSelection(),le=S.textContent.length,ue=Math.min(C.start,le),qe=C.end===void 0?ue:Math.min(C.end,le);!U.extend&&ue>qe&&(g=qe,qe=ue,ue=g);var j=yh(S,ue),R=yh(S,qe);if(j&&R&&(U.rangeCount!==1||U.anchorNode!==j.node||U.anchorOffset!==j.offset||U.focusNode!==R.node||U.focusOffset!==R.offset)){var A=X.createRange();A.setStart(j.node,j.offset),U.removeAllRanges(),ue>qe?(U.addRange(A),U.extend(R.node,R.offset)):(A.setEnd(R.node,R.offset),U.addRange(A))}}}}for(X=[],U=S;U=U.parentNode;)U.nodeType===1&&X.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<X.length;S++){var G=X[S];G.element.scrollLeft=G.left,G.element.scrollTop=G.top}}qs=!!Lc,Uc=Lc=null}finally{Le=u,J.p=r,z.T=a}}e.current=t,dt=2}}function zm(){if(dt===2){dt=0;var e=ba,t=Hl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=z.T,z.T=null;var r=J.p;J.p=2;var u=Le;Le|=4;try{um(e,t.alternate,t)}finally{Le=u,J.p=r,z.T=a}}dt=3}}function Lm(){if(dt===4||dt===3){dt=0,o0();var e=ba,t=Hl,a=Jn,r=Em;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?dt=5:(dt=0,Hl=ba=null,Um(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(ya=null),Go(a),t=t.stateNode,qt&&typeof qt.onCommitFiberRoot=="function")try{qt.onCommitFiberRoot(si,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=z.T,u=J.p,J.p=2,z.T=null;try{for(var f=e.onRecoverableError,g=0;g<r.length;g++){var S=r[g];f(S.value,{componentStack:S.stack})}}finally{z.T=t,J.p=u}}(Jn&3)!==0&&As(),jn(e),u=e.pendingLanes,(a&261930)!==0&&(u&42)!==0?e===wc?qi++:(qi=0,wc=e):qi=0,Gi(0)}}function Um(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,wi(t)))}function As(){return Mm(),zm(),Lm(),Bm()}function Bm(){if(dt!==5)return!1;var e=ba,t=xc;xc=0;var a=Go(Jn),r=z.T,u=J.p;try{J.p=32>a?32:a,z.T=null,a=Ec,Ec=null;var f=ba,g=Jn;if(dt=0,Hl=ba=null,Jn=0,(Le&6)!==0)throw Error(s(331));var S=Le;if(Le|=4,bm(f.current),gm(f,f.current,g,a),Le=S,Gi(0,!1),qt&&typeof qt.onPostCommitFiberRoot=="function")try{qt.onPostCommitFiberRoot(si,f)}catch{}return!0}finally{J.p=u,z.T=r,Um(e,t)}}function Hm(e,t,a){t=rn(a,t),t=tc(e.stateNode,t,2),e=da(e,t,2),e!==null&&(ui(e,2),jn(e))}function Be(e,t,a){if(e.tag===3)Hm(e,e,a);else for(;t!==null;){if(t.tag===3){Hm(t,e,a);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ya===null||!ya.has(r))){e=rn(a,e),a=$p(2),r=da(t,a,2),r!==null&&(Vp(a,r,t,e),ui(r,2),jn(r));break}}t=t.return}}function Nc(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new MS;var u=new Set;r.set(t,u)}else u=r.get(t),u===void 0&&(u=new Set,r.set(t,u));u.has(a)||(yc=!0,u.add(a),e=HS.bind(null,e,t,a),t.then(e,e))}function HS(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ge===e&&(Re&a)===a&&(nt===4||nt===3&&(Re&62914560)===Re&&300>Vt()-Cs?(Le&2)===0&&$l(e,0):bc|=a,Bl===Re&&(Bl=0)),jn(e)}function $m(e,t){t===0&&(t=Md()),e=$a(e,t),e!==null&&(ui(e,t),jn(e))}function $S(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),$m(e,a)}function VS(e,t){var a=0;switch(e.tag){case 31:case 13:var r=e.stateNode,u=e.memoizedState;u!==null&&(a=u.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}r!==null&&r.delete(t),$m(e,a)}function qS(e,t){return Ho(e,t)}var Ds=null,ql=null,Rc=!1,_s=!1,jc=!1,xa=0;function jn(e){e!==ql&&e.next===null&&(ql===null?Ds=ql=e:ql=ql.next=e),_s=!0,Rc||(Rc=!0,YS())}function Gi(e,t){if(!jc&&_s){jc=!0;do for(var a=!1,r=Ds;r!==null;){if(e!==0){var u=r.pendingLanes;if(u===0)var f=0;else{var g=r.suspendedLanes,S=r.pingedLanes;f=(1<<31-Gt(42|e)+1)-1,f&=u&~(g&~S),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(a=!0,Ym(r,f))}else f=Re,f=Lr(r,r===Ge?f:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(f&3)===0||oi(r,f)||(a=!0,Ym(r,f));r=r.next}while(a);jc=!1}}function GS(){Vm()}function Vm(){_s=Rc=!1;var e=0;xa!==0&&ex()&&(e=xa);for(var t=Vt(),a=null,r=Ds;r!==null;){var u=r.next,f=qm(r,t);f===0?(r.next=null,a===null?Ds=u:a.next=u,u===null&&(ql=a)):(a=r,(e!==0||(f&3)!==0)&&(_s=!0)),r=u}dt!==0&&dt!==5||Gi(e),xa!==0&&(xa=0)}function qm(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,u=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var g=31-Gt(f),S=1<<g,C=u[g];C===-1?((S&a)===0||(S&r)!==0)&&(u[g]=g0(S,t)):C<=t&&(e.expiredLanes|=S),f&=~S}if(t=Ge,a=Re,a=Lr(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,a===0||e===t&&(Ue===2||Ue===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&$o(r),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||oi(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(r!==null&&$o(r),Go(a)){case 2:case 8:a=_d;break;case 32:a=_r;break;case 268435456:a=kd;break;default:a=_r}return r=Gm.bind(null,e),a=Ho(a,r),e.callbackPriority=t,e.callbackNode=a,t}return r!==null&&r!==null&&$o(r),e.callbackPriority=2,e.callbackNode=null,2}function Gm(e,t){if(dt!==0&&dt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(As()&&e.callbackNode!==a)return null;var r=Re;return r=Lr(e,e===Ge?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Cm(e,r,t),qm(e,Vt()),e.callbackNode!=null&&e.callbackNode===a?Gm.bind(null,e):null)}function Ym(e,t){if(As())return null;Cm(e,t,!0)}function YS(){nx(function(){(Le&6)!==0?Ho(Dd,GS):Vm()})}function Oc(){if(xa===0){var e=Rl;e===0&&(e=kr,kr<<=1,(kr&261888)===0&&(kr=256)),xa=e}return xa}function Xm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:$r(""+e)}function Qm(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function XS(e,t,a,r,u){if(t==="submit"&&a&&a.stateNode===u){var f=Xm((u[At]||null).action),g=r.submitter;g&&(t=(t=g[At]||null)?Xm(t.formAction):g.getAttribute("formAction"),t!==null&&(f=t,g=null));var S=new Yr("action","action",null,r,u);e.push({event:S,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(xa!==0){var C=g?Qm(u,g):new FormData(u);Ju(a,{pending:!0,data:C,method:u.method,action:f},null,C)}}else typeof f=="function"&&(S.preventDefault(),C=g?Qm(u,g):new FormData(u),Ju(a,{pending:!0,data:C,method:u.method,action:f},f,C))},currentTarget:u}]})}}for(var Ac=0;Ac<du.length;Ac++){var Dc=du[Ac],QS=Dc.toLowerCase(),KS=Dc[0].toUpperCase()+Dc.slice(1);gn(QS,"on"+KS)}gn(wh,"onAnimationEnd"),gn(Ch,"onAnimationIteration"),gn(Th,"onAnimationStart"),gn("dblclick","onDoubleClick"),gn("focusin","onFocus"),gn("focusout","onBlur"),gn(uS,"onTransitionRun"),gn(cS,"onTransitionStart"),gn(fS,"onTransitionCancel"),gn(Nh,"onTransitionEnd"),hl("onMouseEnter",["mouseout","mouseover"]),hl("onMouseLeave",["mouseout","mouseover"]),hl("onPointerEnter",["pointerout","pointerover"]),hl("onPointerLeave",["pointerout","pointerover"]),La("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),La("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),La("onBeforeInput",["compositionend","keypress","textInput","paste"]),La("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),La("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),La("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Yi="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(" "),ZS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Yi));function Km(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var r=e[a],u=r.event;r=r.listeners;e:{var f=void 0;if(t)for(var g=r.length-1;0<=g;g--){var S=r[g],C=S.instance,D=S.currentTarget;if(S=S.listener,C!==f&&u.isPropagationStopped())break e;f=S,u.currentTarget=D;try{f(u)}catch(V){Kr(V)}u.currentTarget=null,f=C}else for(g=0;g<r.length;g++){if(S=r[g],C=S.instance,D=S.currentTarget,S=S.listener,C!==f&&u.isPropagationStopped())break e;f=S,u.currentTarget=D;try{f(u)}catch(V){Kr(V)}u.currentTarget=null,f=C}}}}function Te(e,t){var a=t[Yo];a===void 0&&(a=t[Yo]=new Set);var r=e+"__bubble";a.has(r)||(Zm(t,e,2,!1),a.add(r))}function _c(e,t,a){var r=0;t&&(r|=4),Zm(a,e,r,t)}var ks="_reactListening"+Math.random().toString(36).slice(2);function kc(e){if(!e[ks]){e[ks]=!0,Vd.forEach(function(a){a!=="selectionchange"&&(ZS.has(a)||_c(a,!1,e),_c(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ks]||(t[ks]=!0,_c("selectionchange",!1,t))}}function Zm(e,t,a,r){switch(wg(t)){case 2:var u=Ex;break;case 8:u=wx;break;default:u=Zc}a=u.bind(null,t,a,e),u=void 0,!Wo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),r?u!==void 0?e.addEventListener(t,a,{capture:!0,passive:u}):e.addEventListener(t,a,!0):u!==void 0?e.addEventListener(t,a,{passive:u}):e.addEventListener(t,a,!1)}function Mc(e,t,a,r,u){var f=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var g=r.tag;if(g===3||g===4){var S=r.stateNode.containerInfo;if(S===u)break;if(g===4)for(g=r.return;g!==null;){var C=g.tag;if((C===3||C===4)&&g.stateNode.containerInfo===u)return;g=g.return}for(;S!==null;){if(g=cl(S),g===null)return;if(C=g.tag,C===5||C===6||C===26||C===27){r=f=g;continue e}S=S.parentNode}}r=r.return}Wd(function(){var D=f,V=Po(a),X=[];e:{var k=Rh.get(e);if(k!==void 0){var U=Yr,le=e;switch(e){case"keypress":if(qr(a)===0)break e;case"keydown":case"keyup":U=V0;break;case"focusin":le="focus",U=au;break;case"focusout":le="blur",U=au;break;case"beforeblur":case"afterblur":U=au;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=nh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=O0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=Y0;break;case wh:case Ch:case Th:U=_0;break;case Nh:U=Q0;break;case"scroll":case"scrollend":U=R0;break;case"wheel":U=Z0;break;case"copy":case"cut":case"paste":U=M0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=lh;break;case"toggle":case"beforetoggle":U=F0}var ue=(t&4)!==0,qe=!ue&&(e==="scroll"||e==="scrollend"),j=ue?k!==null?k+"Capture":null:k;ue=[];for(var R=D,A;R!==null;){var G=R;if(A=G.stateNode,G=G.tag,G!==5&&G!==26&&G!==27||A===null||j===null||(G=di(R,j),G!=null&&ue.push(Xi(R,G,A))),qe)break;R=R.return}0<ue.length&&(k=new U(k,le,null,a,V),X.push({event:k,listeners:ue}))}}if((t&7)===0){e:{if(k=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",k&&a!==Fo&&(le=a.relatedTarget||a.fromElement)&&(cl(le)||le[ul]))break e;if((U||k)&&(k=V.window===V?V:(k=V.ownerDocument)?k.defaultView||k.parentWindow:window,U?(le=a.relatedTarget||a.toElement,U=D,le=le?cl(le):null,le!==null&&(qe=c(le),ue=le.tag,le!==qe||ue!==5&&ue!==27&&ue!==6)&&(le=null)):(U=null,le=D),U!==le)){if(ue=nh,G="onMouseLeave",j="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(ue=lh,G="onPointerLeave",j="onPointerEnter",R="pointer"),qe=U==null?k:fi(U),A=le==null?k:fi(le),k=new ue(G,R+"leave",U,a,V),k.target=qe,k.relatedTarget=A,G=null,cl(V)===D&&(ue=new ue(j,R+"enter",le,a,V),ue.target=A,ue.relatedTarget=qe,G=ue),qe=G,U&&le)t:{for(ue=JS,j=U,R=le,A=0,G=j;G;G=ue(G))A++;G=0;for(var oe=R;oe;oe=ue(oe))G++;for(;0<A-G;)j=ue(j),A--;for(;0<G-A;)R=ue(R),G--;for(;A--;){if(j===R||R!==null&&j===R.alternate){ue=j;break t}j=ue(j),R=ue(R)}ue=null}else ue=null;U!==null&&Jm(X,k,U,ue,!1),le!==null&&qe!==null&&Jm(X,qe,le,ue,!0)}}e:{if(k=D?fi(D):window,U=k.nodeName&&k.nodeName.toLowerCase(),U==="select"||U==="input"&&k.type==="file")var _e=dh;else if(ch(k))if(hh)_e=rS;else{_e=lS;var re=aS}else U=k.nodeName,!U||U.toLowerCase()!=="input"||k.type!=="checkbox"&&k.type!=="radio"?D&&Jo(D.elementType)&&(_e=dh):_e=iS;if(_e&&(_e=_e(e,D))){fh(X,_e,a,V);break e}re&&re(e,k,D),e==="focusout"&&D&&k.type==="number"&&D.memoizedProps.value!=null&&Zo(k,"number",k.value)}switch(re=D?fi(D):window,e){case"focusin":(ch(re)||re.contentEditable==="true")&&(bl=re,uu=D,Si=null);break;case"focusout":Si=uu=bl=null;break;case"mousedown":cu=!0;break;case"contextmenu":case"mouseup":case"dragend":cu=!1,xh(X,a,V);break;case"selectionchange":if(oS)break;case"keydown":case"keyup":xh(X,a,V)}var be;if(iu)e:{switch(e){case"compositionstart":var je="onCompositionStart";break e;case"compositionend":je="onCompositionEnd";break e;case"compositionupdate":je="onCompositionUpdate";break e}je=void 0}else yl?oh(e,a)&&(je="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(je="onCompositionStart");je&&(ih&&a.locale!=="ko"&&(yl||je!=="onCompositionStart"?je==="onCompositionEnd"&&yl&&(be=eh()):(ia=V,eu="value"in ia?ia.value:ia.textContent,yl=!0)),re=Ms(D,je),0<re.length&&(je=new ah(je,e,null,a,V),X.push({event:je,listeners:re}),be?je.data=be:(be=uh(a),be!==null&&(je.data=be)))),(be=I0?W0(e,a):eS(e,a))&&(je=Ms(D,"onBeforeInput"),0<je.length&&(re=new ah("onBeforeInput","beforeinput",null,a,V),X.push({event:re,listeners:je}),re.data=be)),XS(X,e,D,a,V)}Km(X,t)})}function Xi(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Ms(e,t){for(var a=t+"Capture",r=[];e!==null;){var u=e,f=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||f===null||(u=di(e,a),u!=null&&r.unshift(Xi(e,u,f)),u=di(e,t),u!=null&&r.push(Xi(e,u,f))),e.tag===3)return r;e=e.return}return[]}function JS(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Jm(e,t,a,r,u){for(var f=t._reactName,g=[];a!==null&&a!==r;){var S=a,C=S.alternate,D=S.stateNode;if(S=S.tag,C!==null&&C===r)break;S!==5&&S!==26&&S!==27||D===null||(C=D,u?(D=di(a,f),D!=null&&g.unshift(Xi(a,D,C))):u||(D=di(a,f),D!=null&&g.push(Xi(a,D,C)))),a=a.return}g.length!==0&&e.push({event:t,listeners:g})}var FS=/\r\n?/g,PS=/\u0000|\uFFFD/g;function Fm(e){return(typeof e=="string"?e:""+e).replace(FS,`
19
- `).replace(PS,"")}function Pm(e,t){return t=Fm(t),Fm(e)===t}function Ve(e,t,a,r,u,f){switch(a){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||ml(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&ml(e,""+r);break;case"className":Br(e,"class",r);break;case"tabIndex":Br(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Br(e,a,r);break;case"style":Pd(e,r,f);break;case"data":if(t!=="object"){Br(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=$r(""+r),e.setAttribute(a,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(a==="formAction"?(t!=="input"&&Ve(e,t,"name",u.name,u,null),Ve(e,t,"formEncType",u.formEncType,u,null),Ve(e,t,"formMethod",u.formMethod,u,null),Ve(e,t,"formTarget",u.formTarget,u,null)):(Ve(e,t,"encType",u.encType,u,null),Ve(e,t,"method",u.method,u,null),Ve(e,t,"target",u.target,u,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=$r(""+r),e.setAttribute(a,r);break;case"onClick":r!=null&&(e.onclick=Mn);break;case"onScroll":r!=null&&Te("scroll",e);break;case"onScrollEnd":r!=null&&Te("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(s(61));if(a=r.__html,a!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}a=$r(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""+r):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":r===!0?e.setAttribute(a,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,r):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(a,r):e.removeAttribute(a);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(a):e.setAttribute(a,r);break;case"popover":Te("beforetoggle",e),Te("toggle",e),Ur(e,"popover",r);break;case"xlinkActuate":kn(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":kn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":kn(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":kn(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":kn(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":kn(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":kn(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":kn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":kn(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Ur(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=T0.get(a)||a,Ur(e,a,r))}}function zc(e,t,a,r,u,f){switch(a){case"style":Pd(e,r,f);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(s(61));if(a=r.__html,a!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof r=="string"?ml(e,r):(typeof r=="number"||typeof r=="bigint")&&ml(e,""+r);break;case"onScroll":r!=null&&Te("scroll",e);break;case"onScrollEnd":r!=null&&Te("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Mn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!qd.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),t=a.slice(2,u?a.length-7:void 0),f=e[At]||null,f=f!=null?f[a]:null,typeof f=="function"&&e.removeEventListener(t,f,u),typeof r=="function")){typeof f!="function"&&f!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,r,u);break e}a in e?e[a]=r:r===!0?e.setAttribute(a,""):Ur(e,a,r)}}}function bt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Te("error",e),Te("load",e);var r=!1,u=!1,f;for(f in a)if(a.hasOwnProperty(f)){var g=a[f];if(g!=null)switch(f){case"src":r=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ve(e,t,f,g,a,null)}}u&&Ve(e,t,"srcSet",a.srcSet,a,null),r&&Ve(e,t,"src",a.src,a,null);return;case"input":Te("invalid",e);var S=f=g=u=null,C=null,D=null;for(r in a)if(a.hasOwnProperty(r)){var V=a[r];if(V!=null)switch(r){case"name":u=V;break;case"type":g=V;break;case"checked":C=V;break;case"defaultChecked":D=V;break;case"value":f=V;break;case"defaultValue":S=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(s(137,t));break;default:Ve(e,t,r,V,a,null)}}Kd(e,f,S,C,D,g,u,!1);return;case"select":Te("invalid",e),r=g=f=null;for(u in a)if(a.hasOwnProperty(u)&&(S=a[u],S!=null))switch(u){case"value":f=S;break;case"defaultValue":g=S;break;case"multiple":r=S;default:Ve(e,t,u,S,a,null)}t=f,a=g,e.multiple=!!r,t!=null?pl(e,!!r,t,!1):a!=null&&pl(e,!!r,a,!0);return;case"textarea":Te("invalid",e),f=u=r=null;for(g in a)if(a.hasOwnProperty(g)&&(S=a[g],S!=null))switch(g){case"value":r=S;break;case"defaultValue":u=S;break;case"children":f=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(s(91));break;default:Ve(e,t,g,S,a,null)}Jd(e,r,u,f);return;case"option":for(C in a)a.hasOwnProperty(C)&&(r=a[C],r!=null)&&(C==="selected"?e.selected=r&&typeof r!="function"&&typeof r!="symbol":Ve(e,t,C,r,a,null));return;case"dialog":Te("beforetoggle",e),Te("toggle",e),Te("cancel",e),Te("close",e);break;case"iframe":case"object":Te("load",e);break;case"video":case"audio":for(r=0;r<Yi.length;r++)Te(Yi[r],e);break;case"image":Te("error",e),Te("load",e);break;case"details":Te("toggle",e);break;case"embed":case"source":case"link":Te("error",e),Te("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(D in a)if(a.hasOwnProperty(D)&&(r=a[D],r!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ve(e,t,D,r,a,null)}return;default:if(Jo(t)){for(V in a)a.hasOwnProperty(V)&&(r=a[V],r!==void 0&&zc(e,t,V,r,a,void 0));return}}for(S in a)a.hasOwnProperty(S)&&(r=a[S],r!=null&&Ve(e,t,S,r,a,null))}function IS(e,t,a,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,f=null,g=null,S=null,C=null,D=null,V=null;for(U in a){var X=a[U];if(a.hasOwnProperty(U)&&X!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":C=X;default:r.hasOwnProperty(U)||Ve(e,t,U,null,r,X)}}for(var k in r){var U=r[k];if(X=a[k],r.hasOwnProperty(k)&&(U!=null||X!=null))switch(k){case"type":f=U;break;case"name":u=U;break;case"checked":D=U;break;case"defaultChecked":V=U;break;case"value":g=U;break;case"defaultValue":S=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(s(137,t));break;default:U!==X&&Ve(e,t,k,U,r,X)}}Ko(e,g,S,C,D,V,f,u);return;case"select":U=g=S=k=null;for(f in a)if(C=a[f],a.hasOwnProperty(f)&&C!=null)switch(f){case"value":break;case"multiple":U=C;default:r.hasOwnProperty(f)||Ve(e,t,f,null,r,C)}for(u in r)if(f=r[u],C=a[u],r.hasOwnProperty(u)&&(f!=null||C!=null))switch(u){case"value":k=f;break;case"defaultValue":S=f;break;case"multiple":g=f;default:f!==C&&Ve(e,t,u,f,r,C)}t=S,a=g,r=U,k!=null?pl(e,!!a,k,!1):!!r!=!!a&&(t!=null?pl(e,!!a,t,!0):pl(e,!!a,a?[]:"",!1));return;case"textarea":U=k=null;for(S in a)if(u=a[S],a.hasOwnProperty(S)&&u!=null&&!r.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Ve(e,t,S,null,r,u)}for(g in r)if(u=r[g],f=a[g],r.hasOwnProperty(g)&&(u!=null||f!=null))switch(g){case"value":k=u;break;case"defaultValue":U=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(s(91));break;default:u!==f&&Ve(e,t,g,u,r,f)}Zd(e,k,U);return;case"option":for(var le in a)k=a[le],a.hasOwnProperty(le)&&k!=null&&!r.hasOwnProperty(le)&&(le==="selected"?e.selected=!1:Ve(e,t,le,null,r,k));for(C in r)k=r[C],U=a[C],r.hasOwnProperty(C)&&k!==U&&(k!=null||U!=null)&&(C==="selected"?e.selected=k&&typeof k!="function"&&typeof k!="symbol":Ve(e,t,C,k,r,U));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 ue in a)k=a[ue],a.hasOwnProperty(ue)&&k!=null&&!r.hasOwnProperty(ue)&&Ve(e,t,ue,null,r,k);for(D in r)if(k=r[D],U=a[D],r.hasOwnProperty(D)&&k!==U&&(k!=null||U!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(s(137,t));break;default:Ve(e,t,D,k,r,U)}return;default:if(Jo(t)){for(var qe in a)k=a[qe],a.hasOwnProperty(qe)&&k!==void 0&&!r.hasOwnProperty(qe)&&zc(e,t,qe,void 0,r,k);for(V in r)k=r[V],U=a[V],!r.hasOwnProperty(V)||k===U||k===void 0&&U===void 0||zc(e,t,V,k,r,U);return}}for(var j in a)k=a[j],a.hasOwnProperty(j)&&k!=null&&!r.hasOwnProperty(j)&&Ve(e,t,j,null,r,k);for(X in r)k=r[X],U=a[X],!r.hasOwnProperty(X)||k===U||k==null&&U==null||Ve(e,t,X,k,r,U)}function Im(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function WS(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),r=0;r<a.length;r++){var u=a[r],f=u.transferSize,g=u.initiatorType,S=u.duration;if(f&&S&&Im(g)){for(g=0,S=u.responseEnd,r+=1;r<a.length;r++){var C=a[r],D=C.startTime;if(D>S)break;var V=C.transferSize,X=C.initiatorType;V&&Im(X)&&(C=C.responseEnd,g+=V*(C<S?1:(S-D)/(C-D)))}if(--r,t+=8*(f+g)/(u.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Lc=null,Uc=null;function zs(e){return e.nodeType===9?e:e.ownerDocument}function Wm(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 eg(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 Bc(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 Hc=null;function ex(){var e=window.event;return e&&e.type==="popstate"?e===Hc?!1:(Hc=e,!0):(Hc=null,!1)}var tg=typeof setTimeout=="function"?setTimeout:void 0,tx=typeof clearTimeout=="function"?clearTimeout:void 0,ng=typeof Promise=="function"?Promise:void 0,nx=typeof queueMicrotask=="function"?queueMicrotask:typeof ng<"u"?function(e){return ng.resolve(null).then(e).catch(ax)}:tg;function ax(e){setTimeout(function(){throw e})}function Ea(e){return e==="head"}function ag(e,t){var a=t,r=0;do{var u=a.nextSibling;if(e.removeChild(a),u&&u.nodeType===8)if(a=u.data,a==="/$"||a==="/&"){if(r===0){e.removeChild(u),Ql(t);return}r--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")r++;else if(a==="html")Qi(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Qi(a);for(var f=a.firstChild;f;){var g=f.nextSibling,S=f.nodeName;f[ci]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&f.rel.toLowerCase()==="stylesheet"||a.removeChild(f),f=g}}else a==="body"&&Qi(e.ownerDocument.body);a=u}while(a);Ql(t)}function lg(e,t){var a=e;e=0;do{var r=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),r&&r.nodeType===8)if(a=r.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=r}while(a)}function $c(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":$c(a),Xo(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function lx(e,t,a,r){for(;e.nodeType===1;){var u=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[ci])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==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(f=e.getAttribute("src"),(f!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=fn(e.nextSibling),e===null)break}return null}function ix(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=fn(e.nextSibling),e===null))return null;return e}function ig(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=fn(e.nextSibling),e===null))return null;return e}function Vc(e){return e.data==="$?"||e.data==="$~"}function qc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function rx(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var r=function(){t(),a.removeEventListener("DOMContentLoaded",r)};a.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function fn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Gc=null;function rg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return fn(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function sg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function og(e,t,a){switch(t=zs(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Qi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Xo(e)}var dn=new Map,ug=new Set;function Ls(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Fn=J.d;J.d={f:sx,r:ox,D:ux,C:cx,L:fx,m:dx,X:px,S:hx,M:mx};function sx(){var e=Fn.f(),t=Rs();return e||t}function ox(e){var t=fl(e);t!==null&&t.tag===5&&t.type==="form"?Np(t):Fn.r(e)}var Gl=typeof document>"u"?null:document;function cg(e,t,a){var r=Gl;if(r&&typeof t=="string"&&t){var u=an(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),ug.has(u)||(ug.add(u),e={rel:e,crossOrigin:a,href:t},r.querySelector(u)===null&&(t=r.createElement("link"),bt(t,"link",e),ht(t),r.head.appendChild(t)))}}function ux(e){Fn.D(e),cg("dns-prefetch",e,null)}function cx(e,t){Fn.C(e,t),cg("preconnect",e,t)}function fx(e,t,a){Fn.L(e,t,a);var r=Gl;if(r&&e&&t){var u='link[rel="preload"][as="'+an(t)+'"]';t==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+an(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+an(a.imageSizes)+'"]')):u+='[href="'+an(e)+'"]';var f=u;switch(t){case"style":f=Yl(e);break;case"script":f=Xl(e)}dn.has(f)||(e=y({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),dn.set(f,e),r.querySelector(u)!==null||t==="style"&&r.querySelector(Ki(f))||t==="script"&&r.querySelector(Zi(f))||(t=r.createElement("link"),bt(t,"link",e),ht(t),r.head.appendChild(t)))}}function dx(e,t){Fn.m(e,t);var a=Gl;if(a&&e){var r=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+an(r)+'"][href="'+an(e)+'"]',f=u;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=Xl(e)}if(!dn.has(f)&&(e=y({rel:"modulepreload",href:e},t),dn.set(f,e),a.querySelector(u)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Zi(f)))return}r=a.createElement("link"),bt(r,"link",e),ht(r),a.head.appendChild(r)}}}function hx(e,t,a){Fn.S(e,t,a);var r=Gl;if(r&&e){var u=dl(r).hoistableStyles,f=Yl(e);t=t||"default";var g=u.get(f);if(!g){var S={loading:0,preload:null};if(g=r.querySelector(Ki(f)))S.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},a),(a=dn.get(f))&&Yc(e,a);var C=g=r.createElement("link");ht(C),bt(C,"link",e),C._p=new Promise(function(D,V){C.onload=D,C.onerror=V}),C.addEventListener("load",function(){S.loading|=1}),C.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Us(g,t,r)}g={type:"stylesheet",instance:g,count:1,state:S},u.set(f,g)}}}function px(e,t){Fn.X(e,t);var a=Gl;if(a&&e){var r=dl(a).hoistableScripts,u=Xl(e),f=r.get(u);f||(f=a.querySelector(Zi(u)),f||(e=y({src:e,async:!0},t),(t=dn.get(u))&&Xc(e,t),f=a.createElement("script"),ht(f),bt(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},r.set(u,f))}}function mx(e,t){Fn.M(e,t);var a=Gl;if(a&&e){var r=dl(a).hoistableScripts,u=Xl(e),f=r.get(u);f||(f=a.querySelector(Zi(u)),f||(e=y({src:e,async:!0,type:"module"},t),(t=dn.get(u))&&Xc(e,t),f=a.createElement("script"),ht(f),bt(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},r.set(u,f))}}function fg(e,t,a,r){var u=(u=we.current)?Ls(u):null;if(!u)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Yl(a.href),a=dl(u).hoistableStyles,r=a.get(t),r||(r={type:"style",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Yl(a.href);var f=dl(u).hoistableStyles,g=f.get(e);if(g||(u=u.ownerDocument||u,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,g),(f=u.querySelector(Ki(e)))&&!f._p&&(g.instance=f,g.state.loading=5),dn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},dn.set(e,a),f||gx(u,e,a,g.state))),t&&r===null)throw Error(s(528,""));return g}if(t&&r!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Xl(a),a=dl(u).hoistableScripts,r=a.get(t),r||(r={type:"script",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Yl(e){return'href="'+an(e)+'"'}function Ki(e){return'link[rel="stylesheet"]['+e+"]"}function dg(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function gx(e,t,a,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),bt(t,"link",a),ht(t),e.head.appendChild(t))}function Xl(e){return'[src="'+an(e)+'"]'}function Zi(e){return"script[async]"+e}function hg(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+an(a.href)+'"]');if(r)return t.instance=r,ht(r),r;var u=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),ht(r),bt(r,"style",u),Us(r,a.precedence,e),t.instance=r;case"stylesheet":u=Yl(a.href);var f=e.querySelector(Ki(u));if(f)return t.state.loading|=4,t.instance=f,ht(f),f;r=dg(a),(u=dn.get(u))&&Yc(r,u),f=(e.ownerDocument||e).createElement("link"),ht(f);var g=f;return g._p=new Promise(function(S,C){g.onload=S,g.onerror=C}),bt(f,"link",r),t.state.loading|=4,Us(f,a.precedence,e),t.instance=f;case"script":return f=Xl(a.src),(u=e.querySelector(Zi(f)))?(t.instance=u,ht(u),u):(r=a,(u=dn.get(f))&&(r=y({},a),Xc(r,u)),e=e.ownerDocument||e,u=e.createElement("script"),ht(u),bt(u,"link",r),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,Us(r,a.precedence,e));return t.instance}function Us(e,t,a){for(var r=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=r.length?r[r.length-1]:null,f=u,g=0;g<r.length;g++){var S=r[g];if(S.dataset.precedence===t)f=S;else if(f!==u)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Yc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Xc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Bs=null;function pg(e,t,a){if(Bs===null){var r=new Map,u=Bs=new Map;u.set(a,r)}else u=Bs,r=u.get(a),r||(r=new Map,u.set(a,r));if(r.has(e))return r;for(r.set(e,null),a=a.getElementsByTagName(e),u=0;u<a.length;u++){var f=a[u];if(!(f[ci]||f[mt]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var g=f.getAttribute(t)||"";g=e+g;var S=r.get(g);S?S.push(f):r.set(g,[f])}}return r}function mg(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function vx(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function gg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function yx(e,t,a,r){if(a.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=Yl(r.href),f=t.querySelector(Ki(u));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Hs.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=f,ht(f);return}f=t.ownerDocument||t,r=dg(r),(u=dn.get(u))&&Yc(r,u),f=f.createElement("link"),ht(f);var g=f;g._p=new Promise(function(S,C){g.onload=S,g.onerror=C}),bt(f,"link",r),a.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Hs.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Qc=0;function bx(e,t){return e.stylesheets&&e.count===0&&Vs(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var r=setTimeout(function(){if(e.stylesheets&&Vs(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&Qc===0&&(Qc=62500*WS());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Vs(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>Qc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(u)}}:null}function Hs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var $s=null;function Vs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,$s=new Map,t.forEach(Sx,e),$s=null,Hs.call(e))}function Sx(e,t){if(!(t.state.loading&4)){var a=$s.get(e);if(a)var r=a.get(null);else{a=new Map,$s.set(e,a);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<u.length;f++){var g=u[f];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(a.set(g.dataset.precedence,g),r=g)}r&&a.set(null,r)}u=t.instance,g=u.getAttribute("data-precedence"),f=a.get(g)||r,f===r&&a.set(null,u),a.set(g,u),this.count++,r=Hs.bind(this),u.addEventListener("load",r),u.addEventListener("error",r),f?f.parentNode.insertBefore(u,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var Ji={$$typeof:B,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function xx(e,t,a,r,u,f,g,S,C){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=Vo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vo(0),this.hiddenUpdates=Vo(null),this.identifierPrefix=r,this.onUncaughtError=u,this.onCaughtError=f,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function vg(e,t,a,r,u,f,g,S,C,D,V,X){return e=new xx(e,t,a,g,C,D,V,X,S),t=1,f===!0&&(t|=24),f=Xt(3,null,null,t),e.current=f,f.stateNode=e,t=Tu(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:r,isDehydrated:a,cache:t},Ou(f),e}function yg(e){return e?(e=El,e):El}function bg(e,t,a,r,u,f){u=yg(u),r.context===null?r.context=u:r.pendingContext=u,r=fa(t),r.payload={element:a},f=f===void 0?null:f,f!==null&&(r.callback=f),a=da(e,r,t),a!==null&&(Lt(a,e,t),Ri(a,e,t))}function Sg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Kc(e,t){Sg(e,t),(e=e.alternate)&&Sg(e,t)}function xg(e){if(e.tag===13||e.tag===31){var t=$a(e,67108864);t!==null&&Lt(t,e,67108864),Kc(e,67108864)}}function Eg(e){if(e.tag===13||e.tag===31){var t=Ft();t=qo(t);var a=$a(e,t);a!==null&&Lt(a,e,t),Kc(e,t)}}var qs=!0;function Ex(e,t,a,r){var u=z.T;z.T=null;var f=J.p;try{J.p=2,Zc(e,t,a,r)}finally{J.p=f,z.T=u}}function wx(e,t,a,r){var u=z.T;z.T=null;var f=J.p;try{J.p=8,Zc(e,t,a,r)}finally{J.p=f,z.T=u}}function Zc(e,t,a,r){if(qs){var u=Jc(r);if(u===null)Mc(e,t,r,Gs,a),Cg(e,r);else if(Tx(u,e,t,a,r))r.stopPropagation();else if(Cg(e,r),t&4&&-1<Cx.indexOf(e)){for(;u!==null;){var f=fl(u);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var g=za(f.pendingLanes);if(g!==0){var S=f;for(S.pendingLanes|=2,S.entangledLanes|=2;g;){var C=1<<31-Gt(g);S.entanglements[1]|=C,g&=~C}jn(f),(Le&6)===0&&(Ts=Vt()+500,Gi(0))}}break;case 31:case 13:S=$a(f,2),S!==null&&Lt(S,f,2),Rs(),Kc(f,2)}if(f=Jc(r),f===null&&Mc(e,t,r,Gs,a),f===u)break;u=f}u!==null&&r.stopPropagation()}else Mc(e,t,r,null,a)}}function Jc(e){return e=Po(e),Fc(e)}var Gs=null;function Fc(e){if(Gs=null,e=cl(e),e!==null){var t=c(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(t),e!==null)return e;e=null}else if(a===31){if(e=p(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Gs=e,null}function wg(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(u0()){case Dd:return 2;case _d:return 8;case _r:case c0:return 32;case kd:return 268435456;default:return 32}default:return 32}}var Pc=!1,wa=null,Ca=null,Ta=null,Fi=new Map,Pi=new Map,Na=[],Cx="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 Cg(e,t){switch(e){case"focusin":case"focusout":wa=null;break;case"dragenter":case"dragleave":Ca=null;break;case"mouseover":case"mouseout":Ta=null;break;case"pointerover":case"pointerout":Fi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pi.delete(t.pointerId)}}function Ii(e,t,a,r,u,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:a,eventSystemFlags:r,nativeEvent:f,targetContainers:[u]},t!==null&&(t=fl(t),t!==null&&xg(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function Tx(e,t,a,r,u){switch(t){case"focusin":return wa=Ii(wa,e,t,a,r,u),!0;case"dragenter":return Ca=Ii(Ca,e,t,a,r,u),!0;case"mouseover":return Ta=Ii(Ta,e,t,a,r,u),!0;case"pointerover":var f=u.pointerId;return Fi.set(f,Ii(Fi.get(f)||null,e,t,a,r,u)),!0;case"gotpointercapture":return f=u.pointerId,Pi.set(f,Ii(Pi.get(f)||null,e,t,a,r,u)),!0}return!1}function Tg(e){var t=cl(e.target);if(t!==null){var a=c(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,Hd(e.priority,function(){Eg(a)});return}}else if(t===31){if(t=p(a),t!==null){e.blockedOn=t,Hd(e.priority,function(){Eg(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ys(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Jc(e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);Fo=r,a.target.dispatchEvent(r),Fo=null}else return t=fl(a),t!==null&&xg(t),e.blockedOn=a,!1;t.shift()}return!0}function Ng(e,t,a){Ys(e)&&a.delete(t)}function Nx(){Pc=!1,wa!==null&&Ys(wa)&&(wa=null),Ca!==null&&Ys(Ca)&&(Ca=null),Ta!==null&&Ys(Ta)&&(Ta=null),Fi.forEach(Ng),Pi.forEach(Ng)}function Xs(e,t){e.blockedOn===t&&(e.blockedOn=null,Pc||(Pc=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,Nx)))}var Qs=null;function Rg(e){Qs!==e&&(Qs=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Qs===e&&(Qs=null);for(var t=0;t<e.length;t+=3){var a=e[t],r=e[t+1],u=e[t+2];if(typeof r!="function"){if(Fc(r||a)===null)continue;break}var f=fl(a);f!==null&&(e.splice(t,3),t-=3,Ju(f,{pending:!0,data:u,method:a.method,action:r},r,u))}}))}function Ql(e){function t(C){return Xs(C,e)}wa!==null&&Xs(wa,e),Ca!==null&&Xs(Ca,e),Ta!==null&&Xs(Ta,e),Fi.forEach(t),Pi.forEach(t);for(var a=0;a<Na.length;a++){var r=Na[a];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Na.length&&(a=Na[0],a.blockedOn===null);)Tg(a),a.blockedOn===null&&Na.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(r=0;r<a.length;r+=3){var u=a[r],f=a[r+1],g=u[At]||null;if(typeof f=="function")g||Rg(a);else if(g){var S=null;if(f&&f.hasAttribute("formAction")){if(u=f,g=f[At]||null)S=g.formAction;else if(Fc(u)!==null)continue}else S=g.action;typeof S=="function"?a[r+1]=S:(a.splice(r,3),r-=3),Rg(a)}}}function jg(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(g){return u=g})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),r||setTimeout(a,20)}function a(){if(!r&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function Ic(e){this._internalRoot=e}Ks.prototype.render=Ic.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,r=Ft();bg(a,r,e,t,null,null)},Ks.prototype.unmount=Ic.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;bg(e.current,2,null,e,null,null),Rs(),t[ul]=null}};function Ks(e){this._internalRoot=e}Ks.prototype.unstable_scheduleHydration=function(e){if(e){var t=Bd();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Na.length&&t!==0&&t<Na[a].priority;a++);Na.splice(a,0,e),a===0&&Tg(e)}};var Og=n.version;if(Og!=="19.2.3")throw Error(s(527,Og,"19.2.3"));J.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=m(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var Rx={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zs.isDisabled&&Zs.supportsFiber)try{si=Zs.inject(Rx),qt=Zs}catch{}}return tr.createRoot=function(e,t){if(!o(e))throw Error(s(299));var a=!1,r="",u=Lp,f=Up,g=Bp;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError)),t=vg(e,1,!1,null,null,a,r,null,u,f,g,jg),e[ul]=t.current,kc(e),new Ic(t)},tr.hydrateRoot=function(e,t,a){if(!o(e))throw Error(s(299));var r=!1,u="",f=Lp,g=Up,S=Bp,C=null;return a!=null&&(a.unstable_strictMode===!0&&(r=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(g=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError),a.formState!==void 0&&(C=a.formState)),t=vg(e,1,!0,t,a??null,r,u,C,f,g,S,jg),t.context=yg(null),a=t.current,r=Ft(),r=qo(r),u=fa(r),u.callback=null,da(a,u,r),a=r,t.current.lanes=a,ui(t,a),jn(t),e[ul]=t.current,kc(e),new Ks(t)},tr.version="19.2.3",tr}var nv;function aC(){if(nv)return sf.exports;nv=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(n){console.error(n)}}return l(),sf.exports=nC(),sf.exports}var lC=aC();const iC=Mv(lC),qv=w.createContext(void 0);qv.Provider;function Gv(l,n){const i=w.useContext(qv),s=w.useRef(void 0);w.useEffect(()=>{let o,c;s.current?c=s.current.then(d):c=d(),s.current=c;function d(){return l().then(p=>(o=p??(()=>{}),p),i?p=>i.error(p):void 0)}return()=>{if(o){const p=o();i&&p?.catch(h=>i.error(h))}else{const p=c.then(h=>h?.());i&&p.catch(h=>i.error(h))}}},n)}var av="popstate";function rC(l={}){function n(o,c){let{pathname:d="/",search:p="",hash:h=""}=il(o.location.hash.substring(1));return!d.startsWith("/")&&!d.startsWith(".")&&(d="/"+d),Mf("",{pathname:d,search:p,hash:h},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function i(o,c){let d=o.document.querySelector("base"),p="";if(d&&d.getAttribute("href")){let h=o.location.href,m=h.indexOf("#");p=m===-1?h:h.slice(0,m)}return p+"#"+(typeof c=="string"?c:wr(c))}function s(o,c){Wt(o.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(c)})`)}return oC(n,i,s,l)}function Pe(l,n){if(l===!1||l===null||typeof l>"u")throw new Error(n)}function Wt(l,n){if(!l){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function sC(){return Math.random().toString(36).substring(2,10)}function lv(l,n){return{usr:l.state,key:l.key,idx:n}}function Mf(l,n,i=null,s){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof n=="string"?il(n):n,state:i,key:n&&n.key||s||sC()}}function wr({pathname:l="/",search:n="",hash:i=""}){return n&&n!=="?"&&(l+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(l+=i.charAt(0)==="#"?i:"#"+i),l}function il(l){let n={};if(l){let i=l.indexOf("#");i>=0&&(n.hash=l.substring(i),l=l.substring(0,i));let s=l.indexOf("?");s>=0&&(n.search=l.substring(s),l=l.substring(0,s)),l&&(n.pathname=l)}return n}function oC(l,n,i,s={}){let{window:o=document.defaultView,v5Compat:c=!1}=s,d=o.history,p="POP",h=null,m=v();m==null&&(m=0,d.replaceState({...d.state,idx:m},""));function v(){return(d.state||{idx:null}).idx}function y(){p="POP";let L=v(),Q=L==null?null:L-m;m=L,h&&h({action:p,location:O.location,delta:Q})}function x(L,Q){p="PUSH";let M=Mf(O.location,L,Q);i&&i(M,L),m=v()+1;let B=lv(M,m),P=O.createHref(M);try{d.pushState(B,"",P)}catch(ee){if(ee instanceof DOMException&&ee.name==="DataCloneError")throw ee;o.location.assign(P)}c&&h&&h({action:p,location:O.location,delta:1})}function E(L,Q){p="REPLACE";let M=Mf(O.location,L,Q);i&&i(M,L),m=v();let B=lv(M,m),P=O.createHref(M);d.replaceState(B,"",P),c&&h&&h({action:p,location:O.location,delta:0})}function N(L){return uC(L)}let O={get action(){return p},get location(){return l(o,d)},listen(L){if(h)throw new Error("A history only accepts one active listener");return o.addEventListener(av,y),h=L,()=>{o.removeEventListener(av,y),h=null}},createHref(L){return n(o,L)},createURL:N,encodeLocation(L){let Q=N(L);return{pathname:Q.pathname,search:Q.search,hash:Q.hash}},push:x,replace:E,go(L){return d.go(L)}};return O}function uC(l,n=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),Pe(i,"No window.location.(origin|href) available to create URL");let s=typeof l=="string"?l:wr(l);return s=s.replace(/ $/,"%20"),!n&&s.startsWith("//")&&(s=i+s),new URL(s,i)}function Yv(l,n,i="/"){return cC(l,n,i,!1)}function cC(l,n,i,s){let o=typeof n=="string"?il(n):n,c=ea(o.pathname||"/",i);if(c==null)return null;let d=Xv(l);fC(d);let p=null;for(let h=0;p==null&&h<d.length;++h){let m=EC(c);p=SC(d[h],m,s)}return p}function Xv(l,n=[],i=[],s="",o=!1){let c=(d,p,h=o,m)=>{let v={relativePath:m===void 0?d.path||"":m,caseSensitive:d.caseSensitive===!0,childrenIndex:p,route:d};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(s)&&h)return;Pe(v.relativePath.startsWith(s),`Absolute route path "${v.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(s.length)}let y=In([s,v.relativePath]),x=i.concat(v);d.children&&d.children.length>0&&(Pe(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),Xv(d.children,n,x,y,h)),!(d.path==null&&!d.index)&&n.push({path:y,score:yC(y,d.index),routesMeta:x})};return l.forEach((d,p)=>{if(d.path===""||!d.path?.includes("?"))c(d,p);else for(let h of Qv(d.path))c(d,p,!0,h)}),n}function Qv(l){let n=l.split("/");if(n.length===0)return[];let[i,...s]=n,o=i.endsWith("?"),c=i.replace(/\?$/,"");if(s.length===0)return o?[c,""]:[c];let d=Qv(s.join("/")),p=[];return p.push(...d.map(h=>h===""?c:[c,h].join("/"))),o&&p.push(...d),p.map(h=>l.startsWith("/")&&h===""?"/":h)}function fC(l){l.sort((n,i)=>n.score!==i.score?i.score-n.score:bC(n.routesMeta.map(s=>s.childrenIndex),i.routesMeta.map(s=>s.childrenIndex)))}var dC=/^:[\w-]+$/,hC=3,pC=2,mC=1,gC=10,vC=-2,iv=l=>l==="*";function yC(l,n){let i=l.split("/"),s=i.length;return i.some(iv)&&(s+=vC),n&&(s+=pC),i.filter(o=>!iv(o)).reduce((o,c)=>o+(dC.test(c)?hC:c===""?mC:gC),s)}function bC(l,n){return l.length===n.length&&l.slice(0,-1).every((s,o)=>s===n[o])?l[l.length-1]-n[n.length-1]:0}function SC(l,n,i=!1){let{routesMeta:s}=l,o={},c="/",d=[];for(let p=0;p<s.length;++p){let h=s[p],m=p===s.length-1,v=c==="/"?n:n.slice(c.length)||"/",y=yo({path:h.relativePath,caseSensitive:h.caseSensitive,end:m},v),x=h.route;if(!y&&m&&i&&!s[s.length-1].route.index&&(y=yo({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},v)),!y)return null;Object.assign(o,y.params),d.push({params:o,pathname:In([c,y.pathname]),pathnameBase:NC(In([c,y.pathnameBase])),route:x}),y.pathnameBase!=="/"&&(c=In([c,y.pathnameBase]))}return d}function yo(l,n){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[i,s]=xC(l.path,l.caseSensitive,l.end),o=n.match(i);if(!o)return null;let c=o[0],d=c.replace(/(.)\/+$/,"$1"),p=o.slice(1);return{params:s.reduce((m,{paramName:v,isOptional:y},x)=>{if(v==="*"){let N=p[x]||"";d=c.slice(0,c.length-N.length).replace(/(.)\/+$/,"$1")}const E=p[x];return y&&!E?m[v]=void 0:m[v]=(E||"").replace(/%2F/g,"/"),m},{}),pathname:c,pathnameBase:d,pattern:l}}function xC(l,n=!1,i=!0){Wt(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let s=[],o="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,p,h)=>(s.push({paramName:p,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(s.push({paramName:"*"}),o+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?o+="\\/*$":l!==""&&l!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,n?void 0:"i"),s]}function EC(l){try{return l.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return Wt(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),l}}function ea(l,n){if(n==="/")return l;if(!l.toLowerCase().startsWith(n.toLowerCase()))return null;let i=n.endsWith("/")?n.length-1:n.length,s=l.charAt(i);return s&&s!=="/"?null:l.slice(i)||"/"}var Kv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wC=l=>Kv.test(l);function CC(l,n="/"){let{pathname:i,search:s="",hash:o=""}=typeof l=="string"?il(l):l,c;if(i)if(wC(i))c=i;else{if(i.includes("//")){let d=i;i=i.replace(/\/\/+/g,"/"),Wt(!1,`Pathnames cannot have embedded double slashes - normalizing ${d} -> ${i}`)}i.startsWith("/")?c=rv(i.substring(1),"/"):c=rv(i,n)}else c=n;return{pathname:c,search:RC(s),hash:jC(o)}}function rv(l,n){let i=n.replace(/\/+$/,"").split("/");return l.split("/").forEach(o=>{o===".."?i.length>1&&i.pop():o!=="."&&i.push(o)}),i.length>1?i.join("/"):"/"}function ff(l,n,i,s){return`Cannot include a '${l}' character in a manually specified \`to.${n}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function TC(l){return l.filter((n,i)=>i===0||n.route.path&&n.route.path.length>0)}function Qf(l){let n=TC(l);return n.map((i,s)=>s===n.length-1?i.pathname:i.pathnameBase)}function Kf(l,n,i,s=!1){let o;typeof l=="string"?o=il(l):(o={...l},Pe(!o.pathname||!o.pathname.includes("?"),ff("?","pathname","search",o)),Pe(!o.pathname||!o.pathname.includes("#"),ff("#","pathname","hash",o)),Pe(!o.search||!o.search.includes("#"),ff("#","search","hash",o)));let c=l===""||o.pathname==="",d=c?"/":o.pathname,p;if(d==null)p=i;else{let y=n.length-1;if(!s&&d.startsWith("..")){let x=d.split("/");for(;x[0]==="..";)x.shift(),y-=1;o.pathname=x.join("/")}p=y>=0?n[y]:"/"}let h=CC(o,p),m=d&&d!=="/"&&d.endsWith("/"),v=(c||d===".")&&i.endsWith("/");return!h.pathname.endsWith("/")&&(m||v)&&(h.pathname+="/"),h}var In=l=>l.join("/").replace(/\/\/+/g,"/"),NC=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),RC=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,jC=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,OC=class{constructor(l,n,i,s=!1){this.status=l,this.statusText=n||"",this.internal=s,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}};function AC(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}function DC(l){return l.map(n=>n.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Zv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Jv(l,n){let i=l;if(typeof i!="string"||!Kv.test(i))return{absoluteURL:void 0,isExternal:!1,to:i};let s=i,o=!1;if(Zv)try{let c=new URL(window.location.href),d=i.startsWith("//")?new URL(c.protocol+i):new URL(i),p=ea(d.pathname,n);d.origin===c.origin&&p!=null?i=p+d.search+d.hash:o=!0}catch{Wt(!1,`<Link to="${i}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:o,to:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Fv=["POST","PUT","PATCH","DELETE"];new Set(Fv);var _C=["GET",...Fv];new Set(_C);var ni=w.createContext(null);ni.displayName="DataRouter";var jo=w.createContext(null);jo.displayName="DataRouterState";var kC=w.createContext(!1),Pv=w.createContext({isTransitioning:!1});Pv.displayName="ViewTransition";var MC=w.createContext(new Map);MC.displayName="Fetchers";var zC=w.createContext(null);zC.displayName="Await";var en=w.createContext(null);en.displayName="Navigation";var Nr=w.createContext(null);Nr.displayName="Location";var wn=w.createContext({outlet:null,matches:[],isDataRoute:!1});wn.displayName="Route";var Zf=w.createContext(null);Zf.displayName="RouteError";var Iv="REACT_ROUTER_ERROR",LC="REDIRECT",UC="ROUTE_ERROR_RESPONSE";function BC(l){if(l.startsWith(`${Iv}:${LC}:{`))try{let n=JSON.parse(l.slice(28));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.location=="string"&&typeof n.reloadDocument=="boolean"&&typeof n.replace=="boolean")return n}catch{}}function HC(l){if(l.startsWith(`${Iv}:${UC}:{`))try{let n=JSON.parse(l.slice(40));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string")return new OC(n.status,n.statusText,n.data)}catch{}}function $C(l,{relative:n}={}){Pe(ai(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:s}=w.useContext(en),{hash:o,pathname:c,search:d}=Rr(l,{relative:n}),p=c;return i!=="/"&&(p=c==="/"?i:In([i,c])),s.createHref({pathname:p,search:d,hash:o})}function ai(){return w.useContext(Nr)!=null}function _a(){return Pe(ai(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(Nr).location}var Wv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ey(l){w.useContext(en).static||w.useLayoutEffect(l)}function li(){let{isDataRoute:l}=w.useContext(wn);return l?e2():VC()}function VC(){Pe(ai(),"useNavigate() may be used only in the context of a <Router> component.");let l=w.useContext(ni),{basename:n,navigator:i}=w.useContext(en),{matches:s}=w.useContext(wn),{pathname:o}=_a(),c=JSON.stringify(Qf(s)),d=w.useRef(!1);return ey(()=>{d.current=!0}),w.useCallback((h,m={})=>{if(Wt(d.current,Wv),!d.current)return;if(typeof h=="number"){i.go(h);return}let v=Kf(h,JSON.parse(c),o,m.relative==="path");l==null&&n!=="/"&&(v.pathname=v.pathname==="/"?n:In([n,v.pathname])),(m.replace?i.replace:i.push)(v,m.state,m)},[n,i,c,o,l])}w.createContext(null);function qC(){let{matches:l}=w.useContext(wn),n=l[l.length-1];return n?n.params:{}}function Rr(l,{relative:n}={}){let{matches:i}=w.useContext(wn),{pathname:s}=_a(),o=JSON.stringify(Qf(i));return w.useMemo(()=>Kf(l,JSON.parse(o),s,n==="path"),[l,o,s,n])}function GC(l,n){return ty(l,n)}function ty(l,n,i,s,o){Pe(ai(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=w.useContext(en),{matches:d}=w.useContext(wn),p=d[d.length-1],h=p?p.params:{},m=p?p.pathname:"/",v=p?p.pathnameBase:"/",y=p&&p.route;{let M=y&&y.path||"";ay(m,!y||M.endsWith("*")||M.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${M}">) 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.
23
+ `+r.stack}}var Vo=Object.prototype.hasOwnProperty,qo=l.unstable_scheduleCallback,Go=l.unstable_cancelCallback,p0=l.unstable_shouldYield,m0=l.unstable_requestPaint,Vt=l.unstable_now,g0=l.unstable_getCurrentPriorityLevel,Ud=l.unstable_ImmediatePriority,Bd=l.unstable_UserBlockingPriority,zr=l.unstable_NormalPriority,v0=l.unstable_LowPriority,Hd=l.unstable_IdlePriority,y0=l.log,b0=l.unstable_setDisableYieldValue,ci=null,qt=null;function aa(e){if(typeof y0=="function"&&b0(e),qt&&typeof qt.setStrictMode=="function")try{qt.setStrictMode(ci,e)}catch{}}var Gt=Math.clz32?Math.clz32:E0,S0=Math.log,x0=Math.LN2;function E0(e){return e>>>=0,e===0?32:31-(S0(e)/x0|0)|0}var Lr=256,Ur=262144,Br=4194304;function La(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Hr(e,t,a){var r=e.pendingLanes;if(r===0)return 0;var u=0,d=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var S=r&134217727;return S!==0?(r=S&~d,r!==0?u=La(r):(g&=S,g!==0?u=La(g):a||(a=S&~e,a!==0&&(u=La(a))))):(S=r&~d,S!==0?u=La(S):g!==0?u=La(g):a||(a=r&~e,a!==0&&(u=La(a)))),u===0?0:t!==0&&t!==u&&(t&d)===0&&(d=u&-u,a=t&-t,d>=a||d===32&&(a&4194048)!==0)?t:u}function fi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function w0(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 $d(){var e=Br;return Br<<=1,(Br&62914560)===0&&(Br=4194304),e}function Yo(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function di(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function C0(e,t,a,r,u,d){var g=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var S=e.entanglements,C=e.expirationTimes,D=e.hiddenUpdates;for(a=g&~a;0<a;){var V=31-Gt(a),X=1<<V;S[V]=0,C[V]=-1;var k=D[V];if(k!==null)for(D[V]=null,V=0;V<k.length;V++){var L=k[V];L!==null&&(L.lane&=-536870913)}a&=~X}r!==0&&Vd(e,r,0),d!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=d&~(g&~t))}function Vd(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Gt(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|a&261930}function qd(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var r=31-Gt(a),u=1<<r;u&t|e[r]&t&&(e[r]|=t),a&=~u}}function Gd(e,t){var a=t&-t;return a=(a&42)!==0?1:Xo(a),(a&(e.suspendedLanes|t))!==0?0:a}function Xo(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 Qo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Yd(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:Ag(e.type))}function Xd(e,t){var a=J.p;try{return J.p=e,t()}finally{J.p=a}}var la=Math.random().toString(36).slice(2),mt="__reactFiber$"+la,Ot="__reactProps$"+la,dl="__reactContainer$"+la,Ko="__reactEvents$"+la,T0="__reactListeners$"+la,N0="__reactHandles$"+la,Qd="__reactResources$"+la,hi="__reactMarker$"+la;function Zo(e){delete e[mt],delete e[Ot],delete e[Ko],delete e[T0],delete e[N0]}function hl(e){var t=e[mt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[dl]||a[mt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=hg(e);e!==null;){if(a=e[mt])return a;e=hg(e)}return t}e=a,a=e.parentNode}return null}function pl(e){if(e=e[mt]||e[dl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function pi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function ml(e){var t=e[Qd];return t||(t=e[Qd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ht(e){e[hi]=!0}var Kd=new Set,Zd={};function Ua(e,t){gl(e,t),gl(e+"Capture",t)}function gl(e,t){for(Zd[e]=t,e=0;e<t.length;e++)Kd.add(t[e])}var R0=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]*$"),Jd={},Fd={};function j0(e){return Vo.call(Fd,e)?!0:Vo.call(Jd,e)?!1:R0.test(e)?Fd[e]=!0:(Jd[e]=!0,!1)}function $r(e,t,a){if(j0(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Vr(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function kn(e,t,a,r){if(r===null)e.removeAttribute(a);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+r)}}function nn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Pd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function A0(e,t,a){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,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(g){a=""+g,d.call(this,g)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return a},setValue:function(g){a=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Jo(e){if(!e._valueTracker){var t=Pd(e)?"checked":"value";e._valueTracker=A0(e,t,""+e[t])}}function Id(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=Pd(e)?e.checked?"true":"false":e.value),e=r,e!==a?(t.setValue(e),!0):!1}function qr(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 O0=/[\n"\\]/g;function an(e){return e.replace(O0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Fo(e,t,a,r,u,d,g,S){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+nn(t)):e.value!==""+nn(t)&&(e.value=""+nn(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?Po(e,g,nn(t)):a!=null?Po(e,g,nn(a)):r!=null&&e.removeAttribute("value"),u==null&&d!=null&&(e.defaultChecked=!!d),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+nn(S):e.removeAttribute("name")}function Wd(e,t,a,r,u,d,g,S){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||a!=null){if(!(d!=="submit"&&d!=="reset"||t!=null)){Jo(e);return}a=a!=null?""+nn(a):"",t=t!=null?""+nn(t):a,S||t===e.value||(e.value=t),e.defaultValue=t}r=r??u,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=S?e.checked:!!r,e.defaultChecked=!!r,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g),Jo(e)}function Po(e,t,a){t==="number"&&qr(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function vl(e,t,a,r){if(e=e.options,t){t={};for(var u=0;u<a.length;u++)t["$"+a[u]]=!0;for(a=0;a<e.length;a++)u=t.hasOwnProperty("$"+e[a].value),e[a].selected!==u&&(e[a].selected=u),u&&r&&(e[a].defaultSelected=!0)}else{for(a=""+nn(a),t=null,u=0;u<e.length;u++){if(e[u].value===a){e[u].selected=!0,r&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function eh(e,t,a){if(t!=null&&(t=""+nn(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+nn(a):""}function th(e,t,a,r){if(t==null){if(r!=null){if(a!=null)throw Error(s(92));if(he(r)){if(1<r.length)throw Error(s(93));r=r[0]}a=r}a==null&&(a=""),t=a}a=nn(t),e.defaultValue=a,r=e.textContent,r===a&&r!==""&&r!==null&&(e.value=r),Jo(e)}function yl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var D0=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 nh(e,t,a){var r=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,a):typeof a!="number"||a===0||D0.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function ah(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var r in a)!a.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var u in t)r=t[u],t.hasOwnProperty(u)&&a[u]!==r&&nh(e,u,r)}else for(var d in t)t.hasOwnProperty(d)&&nh(e,d,t[d])}function Io(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 _0=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"]]),k0=/^[\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 Gr(e){return k0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Mn(){}var Wo=null;function eu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bl=null,Sl=null;function lh(e){var t=pl(e);if(t&&(e=t.stateNode)){var a=e[Ot]||null;e:switch(e=t.stateNode,t.type){case"input":if(Fo(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+an(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var u=r[Ot]||null;if(!u)throw Error(s(90));Fo(r,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<a.length;t++)r=a[t],r.form===e.form&&Id(r)}break e;case"textarea":eh(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&vl(e,!!a.multiple,t,!1)}}}var tu=!1;function ih(e,t,a){if(tu)return e(t,a);tu=!0;try{var r=e(t);return r}finally{if(tu=!1,(bl!==null||Sl!==null)&&(Os(),bl&&(t=bl,e=Sl,Sl=bl=null,lh(t),e)))for(t=0;t<e.length;t++)lh(e[t])}}function mi(e,t){var a=e.stateNode;if(a===null)return null;var r=a[Ot]||null;if(r===null)return null;a=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var zn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nu=!1;if(zn)try{var gi={};Object.defineProperty(gi,"passive",{get:function(){nu=!0}}),window.addEventListener("test",gi,gi),window.removeEventListener("test",gi,gi)}catch{nu=!1}var ia=null,au=null,Yr=null;function rh(){if(Yr)return Yr;var e,t=au,a=t.length,r,u="value"in ia?ia.value:ia.textContent,d=u.length;for(e=0;e<a&&t[e]===u[e];e++);var g=a-e;for(r=1;r<=g&&t[a-r]===u[d-r];r++);return Yr=u.slice(e,1<r?1-r:void 0)}function Xr(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 Qr(){return!0}function sh(){return!1}function Dt(e){function t(a,r,u,d,g){this._reactName=a,this._targetInst=u,this.type=r,this.nativeEvent=d,this.target=g,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(a=e[S],this[S]=a?a(d):d[S]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?Qr:sh,this.isPropagationStopped=sh,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Qr)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Qr)},persist:function(){},isPersistent:Qr}),t}var Ba={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Kr=Dt(Ba),vi=v({},Ba,{view:0,detail:0}),M0=Dt(vi),lu,iu,yi,Zr=v({},vi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:su,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!==yi&&(yi&&e.type==="mousemove"?(lu=e.screenX-yi.screenX,iu=e.screenY-yi.screenY):iu=lu=0,yi=e),lu)},movementY:function(e){return"movementY"in e?e.movementY:iu}}),oh=Dt(Zr),z0=v({},Zr,{dataTransfer:0}),L0=Dt(z0),U0=v({},vi,{relatedTarget:0}),ru=Dt(U0),B0=v({},Ba,{animationName:0,elapsedTime:0,pseudoElement:0}),H0=Dt(B0),$0=v({},Ba,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),V0=Dt($0),q0=v({},Ba,{data:0}),uh=Dt(q0),G0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Y0={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"},X0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Q0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=X0[e])?!!t[e]:!1}function su(){return Q0}var K0=v({},vi,{key:function(e){if(e.key){var t=G0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Xr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Y0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:su,charCode:function(e){return e.type==="keypress"?Xr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Z0=Dt(K0),J0=v({},Zr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ch=Dt(J0),F0=v({},vi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:su}),P0=Dt(F0),I0=v({},Ba,{propertyName:0,elapsedTime:0,pseudoElement:0}),W0=Dt(I0),eS=v({},Zr,{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}),tS=Dt(eS),nS=v({},Ba,{newState:0,oldState:0}),aS=Dt(nS),lS=[9,13,27,32],ou=zn&&"CompositionEvent"in window,bi=null;zn&&"documentMode"in document&&(bi=document.documentMode);var iS=zn&&"TextEvent"in window&&!bi,fh=zn&&(!ou||bi&&8<bi&&11>=bi),dh=" ",hh=!1;function ph(e,t){switch(e){case"keyup":return lS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var xl=!1;function rS(e,t){switch(e){case"compositionend":return mh(t);case"keypress":return t.which!==32?null:(hh=!0,dh);case"textInput":return e=t.data,e===dh&&hh?null:e;default:return null}}function sS(e,t){if(xl)return e==="compositionend"||!ou&&ph(e,t)?(e=rh(),Yr=au=ia=null,xl=!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 fh&&t.locale!=="ko"?null:t.data;default:return null}}var oS={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 gh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!oS[e.type]:t==="textarea"}function vh(e,t,a,r){bl?Sl?Sl.push(r):Sl=[r]:bl=r,t=Us(t,"onChange"),0<t.length&&(a=new Kr("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var Si=null,xi=null;function uS(e){Wm(e,0)}function Jr(e){var t=pi(e);if(Id(t))return e}function yh(e,t){if(e==="change")return t}var bh=!1;if(zn){var uu;if(zn){var cu="oninput"in document;if(!cu){var Sh=document.createElement("div");Sh.setAttribute("oninput","return;"),cu=typeof Sh.oninput=="function"}uu=cu}else uu=!1;bh=uu&&(!document.documentMode||9<document.documentMode)}function xh(){Si&&(Si.detachEvent("onpropertychange",Eh),xi=Si=null)}function Eh(e){if(e.propertyName==="value"&&Jr(xi)){var t=[];vh(t,xi,e,eu(e)),ih(uS,t)}}function cS(e,t,a){e==="focusin"?(xh(),Si=t,xi=a,Si.attachEvent("onpropertychange",Eh)):e==="focusout"&&xh()}function fS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Jr(xi)}function dS(e,t){if(e==="click")return Jr(t)}function hS(e,t){if(e==="input"||e==="change")return Jr(t)}function pS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Yt=typeof Object.is=="function"?Object.is:pS;function Ei(e,t){if(Yt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(r=0;r<a.length;r++){var u=a[r];if(!Vo.call(t,u)||!Yt(e[u],t[u]))return!1}return!0}function wh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ch(e,t){var a=wh(e);e=0;for(var r;a;){if(a.nodeType===3){if(r=e+a.textContent.length,e<=t&&r>=t)return{node:a,offset:t-e};e=r}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=wh(a)}}function Th(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Th(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=qr(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=qr(e.document)}return t}function fu(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 mS=zn&&"documentMode"in document&&11>=document.documentMode,El=null,du=null,wi=null,hu=!1;function Rh(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;hu||El==null||El!==qr(r)||(r=El,"selectionStart"in r&&fu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),wi&&Ei(wi,r)||(wi=r,r=Us(du,"onSelect"),0<r.length&&(t=new Kr("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=El)))}function Ha(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var wl={animationend:Ha("Animation","AnimationEnd"),animationiteration:Ha("Animation","AnimationIteration"),animationstart:Ha("Animation","AnimationStart"),transitionrun:Ha("Transition","TransitionRun"),transitionstart:Ha("Transition","TransitionStart"),transitioncancel:Ha("Transition","TransitionCancel"),transitionend:Ha("Transition","TransitionEnd")},pu={},jh={};zn&&(jh=document.createElement("div").style,"AnimationEvent"in window||(delete wl.animationend.animation,delete wl.animationiteration.animation,delete wl.animationstart.animation),"TransitionEvent"in window||delete wl.transitionend.transition);function $a(e){if(pu[e])return pu[e];if(!wl[e])return e;var t=wl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in jh)return pu[e]=t[a];return e}var Ah=$a("animationend"),Oh=$a("animationiteration"),Dh=$a("animationstart"),gS=$a("transitionrun"),vS=$a("transitionstart"),yS=$a("transitioncancel"),_h=$a("transitionend"),kh=new Map,mu="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(" ");mu.push("scrollEnd");function gn(e,t){kh.set(e,t),Ua(t,[e])}var Fr=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)},ln=[],Cl=0,gu=0;function Pr(){for(var e=Cl,t=gu=Cl=0;t<e;){var a=ln[t];ln[t++]=null;var r=ln[t];ln[t++]=null;var u=ln[t];ln[t++]=null;var d=ln[t];if(ln[t++]=null,r!==null&&u!==null){var g=r.pending;g===null?u.next=u:(u.next=g.next,g.next=u),r.pending=u}d!==0&&Mh(a,u,d)}}function Ir(e,t,a,r){ln[Cl++]=e,ln[Cl++]=t,ln[Cl++]=a,ln[Cl++]=r,gu|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function vu(e,t,a,r){return Ir(e,t,a,r),Wr(e)}function Va(e,t){return Ir(e,null,null,t),Wr(e)}function Mh(e,t,a){e.lanes|=a;var r=e.alternate;r!==null&&(r.lanes|=a);for(var u=!1,d=e.return;d!==null;)d.childLanes|=a,r=d.alternate,r!==null&&(r.childLanes|=a),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-Gt(a),e=d.hiddenUpdates,r=e[u],r===null?e[u]=[t]:r.push(t),t.lane=a|536870912),d):null}function Wr(e){if(50<Xi)throw Xi=0,Nc=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Tl={};function bS(e,t,a,r){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xt(e,t,a,r){return new bS(e,t,a,r)}function yu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ln(e,t){var a=e.alternate;return a===null?(a=Xt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function zh(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function es(e,t,a,r,u,d){var g=0;if(r=e,typeof e=="function")yu(e)&&(g=1);else if(typeof e=="string")g=Cx(e,a,ae.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case $:return e=Xt(31,a,t,u),e.elementType=$,e.lanes=d,e;case A:return qa(a.children,u,d,t);case B:g=8,u|=24;break;case Q:return e=Xt(12,a,t,u|2),e.elementType=Q,e.lanes=d,e;case ee:return e=Xt(13,a,t,u),e.elementType=ee,e.lanes=d,e;case Y:return e=Xt(19,a,t,u),e.elementType=Y,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case U:g=10;break e;case M:g=9;break e;case P:g=11;break e;case _:g=14;break e;case K:g=16,r=null;break e}g=29,a=Error(s(130,e===null?"null":typeof e,"")),r=null}return t=Xt(g,a,t,u),t.elementType=e,t.type=r,t.lanes=d,t}function qa(e,t,a,r){return e=Xt(7,e,r,t),e.lanes=a,e}function bu(e,t,a){return e=Xt(6,e,null,t),e.lanes=a,e}function Lh(e){var t=Xt(18,null,null,0);return t.stateNode=e,t}function Su(e,t,a){return t=Xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Uh=new WeakMap;function rn(e,t){if(typeof e=="object"&&e!==null){var a=Uh.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Ld(t)},Uh.set(e,t),t)}return{value:e,source:t,stack:Ld(t)}}var Nl=[],Rl=0,ts=null,Ci=0,sn=[],on=0,ra=null,Tn=1,Nn="";function Un(e,t){Nl[Rl++]=Ci,Nl[Rl++]=ts,ts=e,Ci=t}function Bh(e,t,a){sn[on++]=Tn,sn[on++]=Nn,sn[on++]=ra,ra=e;var r=Tn;e=Nn;var u=32-Gt(r)-1;r&=~(1<<u),a+=1;var d=32-Gt(t)+u;if(30<d){var g=u-u%5;d=(r&(1<<g)-1).toString(32),r>>=g,u-=g,Tn=1<<32-Gt(t)+u|a<<u|r,Nn=d+e}else Tn=1<<d|a<<u|r,Nn=e}function xu(e){e.return!==null&&(Un(e,1),Bh(e,1,0))}function Eu(e){for(;e===ts;)ts=Nl[--Rl],Nl[Rl]=null,Ci=Nl[--Rl],Nl[Rl]=null;for(;e===ra;)ra=sn[--on],sn[on]=null,Nn=sn[--on],sn[on]=null,Tn=sn[--on],sn[on]=null}function Hh(e,t){sn[on++]=Tn,sn[on++]=Nn,sn[on++]=ra,Tn=t.id,Nn=t.overflow,ra=e}var gt=null,Qe=null,Ae=!1,sa=null,un=!1,wu=Error(s(519));function oa(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ti(rn(t,e)),wu}function $h(e){var t=e.stateNode,a=e.type,r=e.memoizedProps;switch(t[mt]=e,t[Ot]=r,a){case"dialog":Te("cancel",t),Te("close",t);break;case"iframe":case"object":case"embed":Te("load",t);break;case"video":case"audio":for(a=0;a<Ki.length;a++)Te(Ki[a],t);break;case"source":Te("error",t);break;case"img":case"image":case"link":Te("error",t),Te("load",t);break;case"details":Te("toggle",t);break;case"input":Te("invalid",t),Wd(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Te("invalid",t);break;case"textarea":Te("invalid",t),th(t,r.value,r.defaultValue,r.children)}a=r.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||r.suppressHydrationWarning===!0||ag(t.textContent,a)?(r.popover!=null&&(Te("beforetoggle",t),Te("toggle",t)),r.onScroll!=null&&Te("scroll",t),r.onScrollEnd!=null&&Te("scrollend",t),r.onClick!=null&&(t.onclick=Mn),t=!0):t=!1,t||oa(e,!0)}function Vh(e){for(gt=e.return;gt;)switch(gt.tag){case 5:case 31:case 13:un=!1;return;case 27:case 3:un=!0;return;default:gt=gt.return}}function jl(e){if(e!==gt)return!1;if(!Ae)return Vh(e),Ae=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Vc(e.type,e.memoizedProps)),a=!a),a&&Qe&&oa(e),Vh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Qe=dg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Qe=dg(e)}else t===27?(t=Qe,Ea(e.type)?(e=Qc,Qc=null,Qe=e):Qe=t):Qe=gt?fn(e.stateNode.nextSibling):null;return!0}function Ga(){Qe=gt=null,Ae=!1}function Cu(){var e=sa;return e!==null&&(zt===null?zt=e:zt.push.apply(zt,e),sa=null),e}function Ti(e){sa===null?sa=[e]:sa.push(e)}var Tu=T(null),Ya=null,Bn=null;function ua(e,t,a){I(Tu,t._currentValue),t._currentValue=a}function Hn(e){e._currentValue=Tu.current,q(Tu)}function Nu(e,t,a){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===a)break;e=e.return}}function Ru(e,t,a,r){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var d=u.dependencies;if(d!==null){var g=u.child;d=d.firstContext;e:for(;d!==null;){var S=d;d=u;for(var C=0;C<t.length;C++)if(S.context===t[C]){d.lanes|=a,S=d.alternate,S!==null&&(S.lanes|=a),Nu(d.return,a,e),r||(g=null);break e}d=S.next}}else if(u.tag===18){if(g=u.return,g===null)throw Error(s(341));g.lanes|=a,d=g.alternate,d!==null&&(d.lanes|=a),Nu(g,a,e),g=null}else g=u.child;if(g!==null)g.return=u;else for(g=u;g!==null;){if(g===e){g=null;break}if(u=g.sibling,u!==null){u.return=g.return,g=u;break}g=g.return}u=g}}function Al(e,t,a,r){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 g=u.alternate;if(g===null)throw Error(s(387));if(g=g.memoizedProps,g!==null){var S=u.type;Yt(u.pendingProps.value,g.value)||(e!==null?e.push(S):e=[S])}}else if(u===ze.current){if(g=u.alternate,g===null)throw Error(s(387));g.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Ii):e=[Ii])}u=u.return}e!==null&&Ru(t,e,a,r),t.flags|=262144}function ns(e){for(e=e.firstContext;e!==null;){if(!Yt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Xa(e){Ya=e,Bn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function vt(e){return qh(Ya,e)}function as(e,t){return Ya===null&&Xa(e),qh(e,t)}function qh(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Bn===null){if(e===null)throw Error(s(308));Bn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Bn=Bn.next=t;return a}var SS=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},xS=l.unstable_scheduleCallback,ES=l.unstable_NormalPriority,st={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ju(){return{controller:new SS,data:new Map,refCount:0}}function Ni(e){e.refCount--,e.refCount===0&&xS(ES,function(){e.controller.abort()})}var Ri=null,Au=0,Ol=0,Dl=null;function wS(e,t){if(Ri===null){var a=Ri=[];Au=0,Ol=_c(),Dl={status:"pending",value:void 0,then:function(r){a.push(r)}}}return Au++,t.then(Gh,Gh),t}function Gh(){if(--Au===0&&Ri!==null){Dl!==null&&(Dl.status="fulfilled");var e=Ri;Ri=null,Ol=0,Dl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function CS(e,t){var a=[],r={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var u=0;u<a.length;u++)(0,a[u])(t)},function(u){for(r.status="rejected",r.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),r}var Yh=z.S;z.S=function(e,t){Rm=Vt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&wS(e,t),Yh!==null&&Yh(e,t)};var Qa=T(null);function Ou(){var e=Qa.current;return e!==null?e:Ge.pooledCache}function ls(e,t){t===null?I(Qa,Qa.current):I(Qa,t.pool)}function Xh(){var e=Ou();return e===null?null:{parent:st._currentValue,pool:e}}var _l=Error(s(460)),Du=Error(s(474)),is=Error(s(542)),rs={then:function(){}};function Qh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Kh(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Mn,Mn),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Jh(e),e;default:if(typeof t.status=="string")t.then(Mn,Mn);else{if(e=Ge,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=r}},function(r){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Jh(e),e}throw Za=t,_l}}function Ka(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Za=a,_l):a}}var Za=null;function Zh(){if(Za===null)throw Error(s(459));var e=Za;return Za=null,e}function Jh(e){if(e===_l||e===is)throw Error(s(483))}var kl=null,ji=0;function ss(e){var t=ji;return ji+=1,kl===null&&(kl=[]),Kh(kl,e,t)}function Ai(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function os(e,t){throw t.$$typeof===x?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Fh(e){function t(j,N){if(e){var O=j.deletions;O===null?(j.deletions=[N],j.flags|=16):O.push(N)}}function a(j,N){if(!e)return null;for(;N!==null;)t(j,N),N=N.sibling;return null}function r(j){for(var N=new Map;j!==null;)j.key!==null?N.set(j.key,j):N.set(j.index,j),j=j.sibling;return N}function u(j,N){return j=Ln(j,N),j.index=0,j.sibling=null,j}function d(j,N,O){return j.index=O,e?(O=j.alternate,O!==null?(O=O.index,O<N?(j.flags|=67108866,N):O):(j.flags|=67108866,N)):(j.flags|=1048576,N)}function g(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function S(j,N,O,G){return N===null||N.tag!==6?(N=bu(O,j.mode,G),N.return=j,N):(N=u(N,O),N.return=j,N)}function C(j,N,O,G){var oe=O.type;return oe===A?V(j,N,O.props.children,G,O.key):N!==null&&(N.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===K&&Ka(oe)===N.type)?(N=u(N,O.props),Ai(N,O),N.return=j,N):(N=es(O.type,O.key,O.props,null,j.mode,G),Ai(N,O),N.return=j,N)}function D(j,N,O,G){return N===null||N.tag!==4||N.stateNode.containerInfo!==O.containerInfo||N.stateNode.implementation!==O.implementation?(N=Su(O,j.mode,G),N.return=j,N):(N=u(N,O.children||[]),N.return=j,N)}function V(j,N,O,G,oe){return N===null||N.tag!==7?(N=qa(O,j.mode,G,oe),N.return=j,N):(N=u(N,O),N.return=j,N)}function X(j,N,O){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=bu(""+N,j.mode,O),N.return=j,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case E:return O=es(N.type,N.key,N.props,null,j.mode,O),Ai(O,N),O.return=j,O;case R:return N=Su(N,j.mode,O),N.return=j,N;case K:return N=Ka(N),X(j,N,O)}if(he(N)||te(N))return N=qa(N,j.mode,O,null),N.return=j,N;if(typeof N.then=="function")return X(j,ss(N),O);if(N.$$typeof===U)return X(j,as(j,N),O);os(j,N)}return null}function k(j,N,O,G){var oe=N!==null?N.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return oe!==null?null:S(j,N,""+O,G);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case E:return O.key===oe?C(j,N,O,G):null;case R:return O.key===oe?D(j,N,O,G):null;case K:return O=Ka(O),k(j,N,O,G)}if(he(O)||te(O))return oe!==null?null:V(j,N,O,G,null);if(typeof O.then=="function")return k(j,N,ss(O),G);if(O.$$typeof===U)return k(j,N,as(j,O),G);os(j,O)}return null}function L(j,N,O,G,oe){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return j=j.get(O)||null,S(N,j,""+G,oe);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case E:return j=j.get(G.key===null?O:G.key)||null,C(N,j,G,oe);case R:return j=j.get(G.key===null?O:G.key)||null,D(N,j,G,oe);case K:return G=Ka(G),L(j,N,O,G,oe)}if(he(G)||te(G))return j=j.get(O)||null,V(N,j,G,oe,null);if(typeof G.then=="function")return L(j,N,O,ss(G),oe);if(G.$$typeof===U)return L(j,N,O,as(N,G),oe);os(N,G)}return null}function le(j,N,O,G){for(var oe=null,_e=null,re=N,be=N=0,je=null;re!==null&&be<O.length;be++){re.index>be?(je=re,re=null):je=re.sibling;var ke=k(j,re,O[be],G);if(ke===null){re===null&&(re=je);break}e&&re&&ke.alternate===null&&t(j,re),N=d(ke,N,be),_e===null?oe=ke:_e.sibling=ke,_e=ke,re=je}if(be===O.length)return a(j,re),Ae&&Un(j,be),oe;if(re===null){for(;be<O.length;be++)re=X(j,O[be],G),re!==null&&(N=d(re,N,be),_e===null?oe=re:_e.sibling=re,_e=re);return Ae&&Un(j,be),oe}for(re=r(re);be<O.length;be++)je=L(re,j,be,O[be],G),je!==null&&(e&&je.alternate!==null&&re.delete(je.key===null?be:je.key),N=d(je,N,be),_e===null?oe=je:_e.sibling=je,_e=je);return e&&re.forEach(function(Ra){return t(j,Ra)}),Ae&&Un(j,be),oe}function ue(j,N,O,G){if(O==null)throw Error(s(151));for(var oe=null,_e=null,re=N,be=N=0,je=null,ke=O.next();re!==null&&!ke.done;be++,ke=O.next()){re.index>be?(je=re,re=null):je=re.sibling;var Ra=k(j,re,ke.value,G);if(Ra===null){re===null&&(re=je);break}e&&re&&Ra.alternate===null&&t(j,re),N=d(Ra,N,be),_e===null?oe=Ra:_e.sibling=Ra,_e=Ra,re=je}if(ke.done)return a(j,re),Ae&&Un(j,be),oe;if(re===null){for(;!ke.done;be++,ke=O.next())ke=X(j,ke.value,G),ke!==null&&(N=d(ke,N,be),_e===null?oe=ke:_e.sibling=ke,_e=ke);return Ae&&Un(j,be),oe}for(re=r(re);!ke.done;be++,ke=O.next())ke=L(re,j,be,ke.value,G),ke!==null&&(e&&ke.alternate!==null&&re.delete(ke.key===null?be:ke.key),N=d(ke,N,be),_e===null?oe=ke:_e.sibling=ke,_e=ke);return e&&re.forEach(function(zx){return t(j,zx)}),Ae&&Un(j,be),oe}function qe(j,N,O,G){if(typeof O=="object"&&O!==null&&O.type===A&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case E:e:{for(var oe=O.key;N!==null;){if(N.key===oe){if(oe=O.type,oe===A){if(N.tag===7){a(j,N.sibling),G=u(N,O.props.children),G.return=j,j=G;break e}}else if(N.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===K&&Ka(oe)===N.type){a(j,N.sibling),G=u(N,O.props),Ai(G,O),G.return=j,j=G;break e}a(j,N);break}else t(j,N);N=N.sibling}O.type===A?(G=qa(O.props.children,j.mode,G,O.key),G.return=j,j=G):(G=es(O.type,O.key,O.props,null,j.mode,G),Ai(G,O),G.return=j,j=G)}return g(j);case R:e:{for(oe=O.key;N!==null;){if(N.key===oe)if(N.tag===4&&N.stateNode.containerInfo===O.containerInfo&&N.stateNode.implementation===O.implementation){a(j,N.sibling),G=u(N,O.children||[]),G.return=j,j=G;break e}else{a(j,N);break}else t(j,N);N=N.sibling}G=Su(O,j.mode,G),G.return=j,j=G}return g(j);case K:return O=Ka(O),qe(j,N,O,G)}if(he(O))return le(j,N,O,G);if(te(O)){if(oe=te(O),typeof oe!="function")throw Error(s(150));return O=oe.call(O),ue(j,N,O,G)}if(typeof O.then=="function")return qe(j,N,ss(O),G);if(O.$$typeof===U)return qe(j,N,as(j,O),G);os(j,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,N!==null&&N.tag===6?(a(j,N.sibling),G=u(N,O),G.return=j,j=G):(a(j,N),G=bu(O,j.mode,G),G.return=j,j=G),g(j)):a(j,N)}return function(j,N,O,G){try{ji=0;var oe=qe(j,N,O,G);return kl=null,oe}catch(re){if(re===_l||re===is)throw re;var _e=Xt(29,re,null,j.mode);return _e.lanes=G,_e.return=j,_e}}}var Ja=Fh(!0),Ph=Fh(!1),ca=!1;function _u(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ku(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 fa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function da(e,t,a){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Le&2)!==0){var u=r.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),r.pending=t,t=Wr(e),Mh(e,null,a),t}return Ir(e,r,t,a),Wr(e)}function Oi(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,qd(e,a)}}function Mu(e,t){var a=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,a===r)){var u=null,d=null;if(a=a.firstBaseUpdate,a!==null){do{var g={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};d===null?u=d=g:d=d.next=g,a=a.next}while(a!==null);d===null?u=d=t:d=d.next=t}else u=d=t;a={baseState:r.baseState,firstBaseUpdate:u,lastBaseUpdate:d,shared:r.shared,callbacks:r.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var zu=!1;function Di(){if(zu){var e=Dl;if(e!==null)throw e}}function _i(e,t,a,r){zu=!1;var u=e.updateQueue;ca=!1;var d=u.firstBaseUpdate,g=u.lastBaseUpdate,S=u.shared.pending;if(S!==null){u.shared.pending=null;var C=S,D=C.next;C.next=null,g===null?d=D:g.next=D,g=C;var V=e.alternate;V!==null&&(V=V.updateQueue,S=V.lastBaseUpdate,S!==g&&(S===null?V.firstBaseUpdate=D:S.next=D,V.lastBaseUpdate=C))}if(d!==null){var X=u.baseState;g=0,V=D=C=null,S=d;do{var k=S.lane&-536870913,L=k!==S.lane;if(L?(Re&k)===k:(r&k)===k){k!==0&&k===Ol&&(zu=!0),V!==null&&(V=V.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var le=e,ue=S;k=t;var qe=a;switch(ue.tag){case 1:if(le=ue.payload,typeof le=="function"){X=le.call(qe,X,k);break e}X=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=ue.payload,k=typeof le=="function"?le.call(qe,X,k):le,k==null)break e;X=v({},X,k);break e;case 2:ca=!0}}k=S.callback,k!==null&&(e.flags|=64,L&&(e.flags|=8192),L=u.callbacks,L===null?u.callbacks=[k]:L.push(k))}else L={lane:k,tag:S.tag,payload:S.payload,callback:S.callback,next:null},V===null?(D=V=L,C=X):V=V.next=L,g|=k;if(S=S.next,S===null){if(S=u.shared.pending,S===null)break;L=S,S=L.next,L.next=null,u.lastBaseUpdate=L,u.shared.pending=null}}while(!0);V===null&&(C=X),u.baseState=C,u.firstBaseUpdate=D,u.lastBaseUpdate=V,d===null&&(u.shared.lanes=0),va|=g,e.lanes=g,e.memoizedState=X}}function Ih(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Wh(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Ih(a[e],t)}var Ml=T(null),us=T(0);function ep(e,t){e=Zn,I(us,e),I(Ml,t),Zn=e|t.baseLanes}function Lu(){I(us,Zn),I(Ml,Ml.current)}function Uu(){Zn=us.current,q(Ml),q(us)}var Qt=T(null),cn=null;function ha(e){var t=e.alternate;I(it,it.current&1),I(Qt,e),cn===null&&(t===null||Ml.current!==null||t.memoizedState!==null)&&(cn=e)}function Bu(e){I(it,it.current),I(Qt,e),cn===null&&(cn=e)}function tp(e){e.tag===22?(I(it,it.current),I(Qt,e),cn===null&&(cn=e)):pa()}function pa(){I(it,it.current),I(Qt,Qt.current)}function Kt(e){q(Qt),cn===e&&(cn=null),q(it)}var it=T(0);function cs(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Yc(a)||Xc(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var $n=0,ye=null,$e=null,ot=null,fs=!1,zl=!1,Fa=!1,ds=0,ki=0,Ll=null,TS=0;function tt(){throw Error(s(321))}function Hu(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Yt(e[a],t[a]))return!1;return!0}function $u(e,t,a,r,u,d){return $n=d,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,z.H=e===null||e.memoizedState===null?Bp:tc,Fa=!1,d=a(r,u),Fa=!1,zl&&(d=ap(t,a,r,u)),np(e),d}function np(e){z.H=Li;var t=$e!==null&&$e.next!==null;if($n=0,ot=$e=ye=null,fs=!1,ki=0,Ll=null,t)throw Error(s(300));e===null||ut||(e=e.dependencies,e!==null&&ns(e)&&(ut=!0))}function ap(e,t,a,r){ye=e;var u=0;do{if(zl&&(Ll=null),ki=0,zl=!1,25<=u)throw Error(s(301));if(u+=1,ot=$e=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}z.H=Hp,d=t(a,r)}while(zl);return d}function NS(){var e=z.H,t=e.useState()[0];return t=typeof t.then=="function"?Mi(t):t,e=e.useState()[0],($e!==null?$e.memoizedState:null)!==e&&(ye.flags|=1024),t}function Vu(){var e=ds!==0;return ds=0,e}function qu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Gu(e){if(fs){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}fs=!1}$n=0,ot=$e=ye=null,zl=!1,ki=ds=0,Ll=null}function Nt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ot===null?ye.memoizedState=ot=e:ot=ot.next=e,ot}function rt(){if($e===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=$e.next;var t=ot===null?ye.memoizedState:ot.next;if(t!==null)ot=t,$e=e;else{if(e===null)throw ye.alternate===null?Error(s(467)):Error(s(310));$e=e,e={memoizedState:$e.memoizedState,baseState:$e.baseState,baseQueue:$e.baseQueue,queue:$e.queue,next:null},ot===null?ye.memoizedState=ot=e:ot=ot.next=e}return ot}function hs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Mi(e){var t=ki;return ki+=1,Ll===null&&(Ll=[]),e=Kh(Ll,e,t),t=ye,(ot===null?t.memoizedState:ot.next)===null&&(t=t.alternate,z.H=t===null||t.memoizedState===null?Bp:tc),e}function ps(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Mi(e);if(e.$$typeof===U)return vt(e)}throw Error(s(438,String(e)))}function Yu(e){var t=null,a=ye.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var r=ye.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=hs(),ye.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),r=0;r<e;r++)a[r]=Z;return t.index++,a}function Vn(e,t){return typeof t=="function"?t(e):t}function ms(e){var t=rt();return Xu(t,$e,e)}function Xu(e,t,a){var r=e.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=a;var u=e.baseQueue,d=r.pending;if(d!==null){if(u!==null){var g=u.next;u.next=d.next,d.next=g}t.baseQueue=u=d,r.pending=null}if(d=e.baseState,u===null)e.memoizedState=d;else{t=u.next;var S=g=null,C=null,D=t,V=!1;do{var X=D.lane&-536870913;if(X!==D.lane?(Re&X)===X:($n&X)===X){var k=D.revertLane;if(k===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),X===Ol&&(V=!0);else if(($n&k)===k){D=D.next,k===Ol&&(V=!0);continue}else X={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},C===null?(S=C=X,g=d):C=C.next=X,ye.lanes|=k,va|=k;X=D.action,Fa&&a(d,X),d=D.hasEagerState?D.eagerState:a(d,X)}else k={lane:X,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},C===null?(S=C=k,g=d):C=C.next=k,ye.lanes|=X,va|=X;D=D.next}while(D!==null&&D!==t);if(C===null?g=d:C.next=S,!Yt(d,e.memoizedState)&&(ut=!0,V&&(a=Dl,a!==null)))throw a;e.memoizedState=d,e.baseState=g,e.baseQueue=C,r.lastRenderedState=d}return u===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Qu(e){var t=rt(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var r=a.dispatch,u=a.pending,d=t.memoizedState;if(u!==null){a.pending=null;var g=u=u.next;do d=e(d,g.action),g=g.next;while(g!==u);Yt(d,t.memoizedState)||(ut=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),a.lastRenderedState=d}return[d,r]}function lp(e,t,a){var r=ye,u=rt(),d=Ae;if(d){if(a===void 0)throw Error(s(407));a=a()}else a=t();var g=!Yt(($e||u).memoizedState,a);if(g&&(u.memoizedState=a,ut=!0),u=u.queue,Ju(sp.bind(null,r,u,e),[e]),u.getSnapshot!==t||g||ot!==null&&ot.memoizedState.tag&1){if(r.flags|=2048,Ul(9,{destroy:void 0},rp.bind(null,r,u,a,t),null),Ge===null)throw Error(s(349));d||($n&127)!==0||ip(r,t,a)}return a}function ip(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ye.updateQueue,t===null?(t=hs(),ye.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function rp(e,t,a,r){t.value=a,t.getSnapshot=r,op(t)&&up(e)}function sp(e,t,a){return a(function(){op(t)&&up(e)})}function op(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Yt(e,a)}catch{return!0}}function up(e){var t=Va(e,2);t!==null&&Lt(t,e,2)}function Ku(e){var t=Nt();if(typeof e=="function"){var a=e;if(e=a(),Fa){aa(!0);try{a()}finally{aa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:e},t}function cp(e,t,a,r){return e.baseState=a,Xu(e,$e,typeof r=="function"?r:Vn)}function RS(e,t,a,r,u){if(ys(e))throw Error(s(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(g){d.listeners.push(g)}};z.T!==null?a(!0):d.isTransition=!1,r(d),a=t.pending,a===null?(d.next=t.pending=d,fp(t,d)):(d.next=a.next,t.pending=a.next=d)}}function fp(e,t){var a=t.action,r=t.payload,u=e.state;if(t.isTransition){var d=z.T,g={};z.T=g;try{var S=a(u,r),C=z.S;C!==null&&C(g,S),dp(e,t,S)}catch(D){Zu(e,t,D)}finally{d!==null&&g.types!==null&&(d.types=g.types),z.T=d}}else try{d=a(u,r),dp(e,t,d)}catch(D){Zu(e,t,D)}}function dp(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(r){hp(e,t,r)},function(r){return Zu(e,t,r)}):hp(e,t,a)}function hp(e,t,a){t.status="fulfilled",t.value=a,pp(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,fp(e,a)))}function Zu(e,t,a){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=a,pp(t),t=t.next;while(t!==r)}e.action=null}function pp(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function mp(e,t){return t}function gp(e,t){if(Ae){var a=Ge.formState;if(a!==null){e:{var r=ye;if(Ae){if(Qe){t:{for(var u=Qe,d=un;u.nodeType!==8;){if(!d){u=null;break t}if(u=fn(u.nextSibling),u===null){u=null;break t}}d=u.data,u=d==="F!"||d==="F"?u:null}if(u){Qe=fn(u.nextSibling),r=u.data==="F!";break e}}oa(r)}r=!1}r&&(t=a[0])}}return a=Nt(),a.memoizedState=a.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mp,lastRenderedState:t},a.queue=r,a=zp.bind(null,ye,r),r.dispatch=a,r=Ku(!1),d=ec.bind(null,ye,!1,r.queue),r=Nt(),u={state:t,dispatch:null,action:e,pending:null},r.queue=u,a=RS.bind(null,ye,u,d,a),u.dispatch=a,r.memoizedState=e,[t,a,!1]}function vp(e){var t=rt();return yp(t,$e,e)}function yp(e,t,a){if(t=Xu(e,t,mp)[0],e=ms(Vn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=Mi(t)}catch(g){throw g===_l?is:g}else r=t;t=rt();var u=t.queue,d=u.dispatch;return a!==t.memoizedState&&(ye.flags|=2048,Ul(9,{destroy:void 0},jS.bind(null,u,a),null)),[r,d,e]}function jS(e,t){e.action=t}function bp(e){var t=rt(),a=$e;if(a!==null)return yp(t,a,e);rt(),t=t.memoizedState,a=rt();var r=a.queue.dispatch;return a.memoizedState=e,[t,r,!1]}function Ul(e,t,a,r){return e={tag:e,create:a,deps:r,inst:t,next:null},t=ye.updateQueue,t===null&&(t=hs(),ye.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(r=a.next,a.next=e,e.next=r,t.lastEffect=e),e}function Sp(){return rt().memoizedState}function gs(e,t,a,r){var u=Nt();ye.flags|=e,u.memoizedState=Ul(1|t,{destroy:void 0},a,r===void 0?null:r)}function vs(e,t,a,r){var u=rt();r=r===void 0?null:r;var d=u.memoizedState.inst;$e!==null&&r!==null&&Hu(r,$e.memoizedState.deps)?u.memoizedState=Ul(t,d,a,r):(ye.flags|=e,u.memoizedState=Ul(1|t,d,a,r))}function xp(e,t){gs(8390656,8,e,t)}function Ju(e,t){vs(2048,8,e,t)}function AS(e){ye.flags|=4;var t=ye.updateQueue;if(t===null)t=hs(),ye.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Ep(e){var t=rt().memoizedState;return AS({ref:t,nextImpl:e}),function(){if((Le&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function wp(e,t){return vs(4,2,e,t)}function Cp(e,t){return vs(4,4,e,t)}function Tp(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Np(e,t,a){a=a!=null?a.concat([e]):null,vs(4,4,Tp.bind(null,t,e),a)}function Fu(){}function Rp(e,t){var a=rt();t=t===void 0?null:t;var r=a.memoizedState;return t!==null&&Hu(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function jp(e,t){var a=rt();t=t===void 0?null:t;var r=a.memoizedState;if(t!==null&&Hu(t,r[1]))return r[0];if(r=e(),Fa){aa(!0);try{e()}finally{aa(!1)}}return a.memoizedState=[r,t],r}function Pu(e,t,a){return a===void 0||($n&1073741824)!==0&&(Re&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Am(),ye.lanes|=e,va|=e,a)}function Ap(e,t,a,r){return Yt(a,t)?a:Ml.current!==null?(e=Pu(e,a,r),Yt(e,t)||(ut=!0),e):($n&42)===0||($n&1073741824)!==0&&(Re&261930)===0?(ut=!0,e.memoizedState=a):(e=Am(),ye.lanes|=e,va|=e,t)}function Op(e,t,a,r,u){var d=J.p;J.p=d!==0&&8>d?d:8;var g=z.T,S={};z.T=S,ec(e,!1,t,a);try{var C=u(),D=z.S;if(D!==null&&D(S,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var V=CS(C,r);zi(e,t,V,Ft(e))}else zi(e,t,r,Ft(e))}catch(X){zi(e,t,{then:function(){},status:"rejected",reason:X},Ft())}finally{J.p=d,g!==null&&S.types!==null&&(g.types=S.types),z.T=g}}function OS(){}function Iu(e,t,a,r){if(e.tag!==5)throw Error(s(476));var u=Dp(e).queue;Op(e,u,t,ne,a===null?OS:function(){return _p(e),a(r)})}function Dp(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:ne},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function _p(e){var t=Dp(e);t.next===null&&(t=e.alternate.memoizedState),zi(e,t.next.queue,{},Ft())}function Wu(){return vt(Ii)}function kp(){return rt().memoizedState}function Mp(){return rt().memoizedState}function DS(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Ft();e=fa(a);var r=da(t,e,a);r!==null&&(Lt(r,t,a),Oi(r,t,a)),t={cache:ju()},e.payload=t;return}t=t.return}}function _S(e,t,a){var r=Ft();a={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ys(e)?Lp(t,a):(a=vu(e,t,a,r),a!==null&&(Lt(a,e,r),Up(a,t,r)))}function zp(e,t,a){var r=Ft();zi(e,t,a,r)}function zi(e,t,a,r){var u={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(ys(e))Lp(t,u);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var g=t.lastRenderedState,S=d(g,a);if(u.hasEagerState=!0,u.eagerState=S,Yt(S,g))return Ir(e,t,u,0),Ge===null&&Pr(),!1}catch{}if(a=vu(e,t,u,r),a!==null)return Lt(a,e,r),Up(a,t,r),!0}return!1}function ec(e,t,a,r){if(r={lane:2,revertLane:_c(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},ys(e)){if(t)throw Error(s(479))}else t=vu(e,a,r,2),t!==null&&Lt(t,e,2)}function ys(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function Lp(e,t){zl=fs=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Up(e,t,a){if((a&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,qd(e,a)}}var Li={readContext:vt,use:ps,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useLayoutEffect:tt,useInsertionEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useSyncExternalStore:tt,useId:tt,useHostTransitionStatus:tt,useFormState:tt,useActionState:tt,useOptimistic:tt,useMemoCache:tt,useCacheRefresh:tt};Li.useEffectEvent=tt;var Bp={readContext:vt,use:ps,useCallback:function(e,t){return Nt().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:xp,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,gs(4194308,4,Tp.bind(null,t,e),a)},useLayoutEffect:function(e,t){return gs(4194308,4,e,t)},useInsertionEffect:function(e,t){gs(4,2,e,t)},useMemo:function(e,t){var a=Nt();t=t===void 0?null:t;var r=e();if(Fa){aa(!0);try{e()}finally{aa(!1)}}return a.memoizedState=[r,t],r},useReducer:function(e,t,a){var r=Nt();if(a!==void 0){var u=a(t);if(Fa){aa(!0);try{a(t)}finally{aa(!1)}}}else u=t;return r.memoizedState=r.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},r.queue=e,e=e.dispatch=_S.bind(null,ye,e),[r.memoizedState,e]},useRef:function(e){var t=Nt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ku(e);var t=e.queue,a=zp.bind(null,ye,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Fu,useDeferredValue:function(e,t){var a=Nt();return Pu(a,e,t)},useTransition:function(){var e=Ku(!1);return e=Op.bind(null,ye,e.queue,!0,!1),Nt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var r=ye,u=Nt();if(Ae){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),Ge===null)throw Error(s(349));(Re&127)!==0||ip(r,t,a)}u.memoizedState=a;var d={value:a,getSnapshot:t};return u.queue=d,xp(sp.bind(null,r,d,e),[e]),r.flags|=2048,Ul(9,{destroy:void 0},rp.bind(null,r,d,a,t),null),a},useId:function(){var e=Nt(),t=Ge.identifierPrefix;if(Ae){var a=Nn,r=Tn;a=(r&~(1<<32-Gt(r)-1)).toString(32)+a,t="_"+t+"R_"+a,a=ds++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=TS++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Wu,useFormState:gp,useActionState:gp,useOptimistic:function(e){var t=Nt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=ec.bind(null,ye,!0,a),a.dispatch=t,[e,t]},useMemoCache:Yu,useCacheRefresh:function(){return Nt().memoizedState=DS.bind(null,ye)},useEffectEvent:function(e){var t=Nt(),a={impl:e};return t.memoizedState=a,function(){if((Le&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},tc={readContext:vt,use:ps,useCallback:Rp,useContext:vt,useEffect:Ju,useImperativeHandle:Np,useInsertionEffect:wp,useLayoutEffect:Cp,useMemo:jp,useReducer:ms,useRef:Sp,useState:function(){return ms(Vn)},useDebugValue:Fu,useDeferredValue:function(e,t){var a=rt();return Ap(a,$e.memoizedState,e,t)},useTransition:function(){var e=ms(Vn)[0],t=rt().memoizedState;return[typeof e=="boolean"?e:Mi(e),t]},useSyncExternalStore:lp,useId:kp,useHostTransitionStatus:Wu,useFormState:vp,useActionState:vp,useOptimistic:function(e,t){var a=rt();return cp(a,$e,e,t)},useMemoCache:Yu,useCacheRefresh:Mp};tc.useEffectEvent=Ep;var Hp={readContext:vt,use:ps,useCallback:Rp,useContext:vt,useEffect:Ju,useImperativeHandle:Np,useInsertionEffect:wp,useLayoutEffect:Cp,useMemo:jp,useReducer:Qu,useRef:Sp,useState:function(){return Qu(Vn)},useDebugValue:Fu,useDeferredValue:function(e,t){var a=rt();return $e===null?Pu(a,e,t):Ap(a,$e.memoizedState,e,t)},useTransition:function(){var e=Qu(Vn)[0],t=rt().memoizedState;return[typeof e=="boolean"?e:Mi(e),t]},useSyncExternalStore:lp,useId:kp,useHostTransitionStatus:Wu,useFormState:bp,useActionState:bp,useOptimistic:function(e,t){var a=rt();return $e!==null?cp(a,$e,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Yu,useCacheRefresh:Mp};Hp.useEffectEvent=Ep;function nc(e,t,a,r){t=e.memoizedState,a=a(r,t),a=a==null?t:v({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var ac={enqueueSetState:function(e,t,a){e=e._reactInternals;var r=Ft(),u=fa(r);u.payload=t,a!=null&&(u.callback=a),t=da(e,u,r),t!==null&&(Lt(t,e,r),Oi(t,e,r))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=Ft(),u=fa(r);u.tag=1,u.payload=t,a!=null&&(u.callback=a),t=da(e,u,r),t!==null&&(Lt(t,e,r),Oi(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Ft(),r=fa(a);r.tag=2,t!=null&&(r.callback=t),t=da(e,r,a),t!==null&&(Lt(t,e,a),Oi(t,e,a))}};function $p(e,t,a,r,u,d,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,d,g):t.prototype&&t.prototype.isPureReactComponent?!Ei(a,r)||!Ei(u,d):!0}function Vp(e,t,a,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,r),t.state!==e&&ac.enqueueReplaceState(t,t.state,null)}function Pa(e,t){var a=t;if("ref"in t){a={};for(var r in t)r!=="ref"&&(a[r]=t[r])}if(e=e.defaultProps){a===t&&(a=v({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}function qp(e){Fr(e)}function Gp(e){console.error(e)}function Yp(e){Fr(e)}function bs(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Xp(e,t,a){try{var r=e.onCaughtError;r(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function lc(e,t,a){return a=fa(a),a.tag=3,a.payload={element:null},a.callback=function(){bs(e,t)},a}function Qp(e){return e=fa(e),e.tag=3,e}function Kp(e,t,a,r){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var d=r.value;e.payload=function(){return u(d)},e.callback=function(){Xp(t,a,r)}}var g=a.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){Xp(t,a,r),typeof u!="function"&&(ya===null?ya=new Set([this]):ya.add(this));var S=r.stack;this.componentDidCatch(r.value,{componentStack:S!==null?S:""})})}function kS(e,t,a,r,u){if(a.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=a.alternate,t!==null&&Al(t,a,u,!0),a=Qt.current,a!==null){switch(a.tag){case 31:case 13:return cn===null?Ds():a.alternate===null&&nt===0&&(nt=3),a.flags&=-257,a.flags|=65536,a.lanes=u,r===rs?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([r]):t.add(r),Ac(e,r,u)),!1;case 22:return a.flags|=65536,r===rs?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([r]):a.add(r)),Ac(e,r,u)),!1}throw Error(s(435,a.tag))}return Ac(e,r,u),Ds(),!1}if(Ae)return t=Qt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,r!==wu&&(e=Error(s(422),{cause:r}),Ti(rn(e,a)))):(r!==wu&&(t=Error(s(423),{cause:r}),Ti(rn(t,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,r=rn(r,a),u=lc(e.stateNode,r,u),Mu(e,u),nt!==4&&(nt=2)),!1;var d=Error(s(520),{cause:r});if(d=rn(d,a),Yi===null?Yi=[d]:Yi.push(d),nt!==4&&(nt=2),t===null)return!0;r=rn(r,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=lc(a.stateNode,r,e),Mu(a,e),!1;case 1:if(t=a.type,d=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(ya===null||!ya.has(d))))return a.flags|=65536,u&=-u,a.lanes|=u,u=Qp(u),Kp(u,e,a,r),Mu(a,u),!1}a=a.return}while(a!==null);return!1}var ic=Error(s(461)),ut=!1;function yt(e,t,a,r){t.child=e===null?Ph(t,null,a,r):Ja(t,e.child,a,r)}function Zp(e,t,a,r,u){a=a.render;var d=t.ref;if("ref"in r){var g={};for(var S in r)S!=="ref"&&(g[S]=r[S])}else g=r;return Xa(t),r=$u(e,t,a,g,d,u),S=Vu(),e!==null&&!ut?(qu(e,t,u),qn(e,t,u)):(Ae&&S&&xu(t),t.flags|=1,yt(e,t,r,u),t.child)}function Jp(e,t,a,r,u){if(e===null){var d=a.type;return typeof d=="function"&&!yu(d)&&d.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=d,Fp(e,t,d,r,u)):(e=es(a.type,null,r,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!hc(e,u)){var g=d.memoizedProps;if(a=a.compare,a=a!==null?a:Ei,a(g,r)&&e.ref===t.ref)return qn(e,t,u)}return t.flags|=1,e=Ln(d,r),e.ref=t.ref,e.return=t,t.child=e}function Fp(e,t,a,r,u){if(e!==null){var d=e.memoizedProps;if(Ei(d,r)&&e.ref===t.ref)if(ut=!1,t.pendingProps=r=d,hc(e,u))(e.flags&131072)!==0&&(ut=!0);else return t.lanes=e.lanes,qn(e,t,u)}return rc(e,t,a,r,u)}function Pp(e,t,a,r){var u=r.children,d=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(d=d!==null?d.baseLanes|a:a,e!==null){for(r=t.child=e.child,u=0;r!==null;)u=u|r.lanes|r.childLanes,r=r.sibling;r=u&~d}else r=0,t.child=null;return Ip(e,t,d,a,r)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ls(t,d!==null?d.cachePool:null),d!==null?ep(t,d):Lu(),tp(t);else return r=t.lanes=536870912,Ip(e,t,d!==null?d.baseLanes|a:a,a,r)}else d!==null?(ls(t,d.cachePool),ep(t,d),pa(),t.memoizedState=null):(e!==null&&ls(t,null),Lu(),pa());return yt(e,t,u,a),t.child}function Ui(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ip(e,t,a,r,u){var d=Ou();return d=d===null?null:{parent:st._currentValue,pool:d},t.memoizedState={baseLanes:a,cachePool:d},e!==null&&ls(t,null),Lu(),tp(t),e!==null&&Al(e,t,r,!0),t.childLanes=u,null}function Ss(e,t){return t=Es({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Wp(e,t,a){return Ja(t,e.child,null,a),e=Ss(t,t.pendingProps),e.flags|=2,Kt(t),t.memoizedState=null,e}function MS(e,t,a){var r=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ae){if(r.mode==="hidden")return e=Ss(t,r),t.lanes=536870912,Ui(null,e);if(Bu(t),(e=Qe)?(e=fg(e,un),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ra!==null?{id:Tn,overflow:Nn}:null,retryLane:536870912,hydrationErrors:null},a=Lh(e),a.return=t,t.child=a,gt=t,Qe=null)):e=null,e===null)throw oa(t);return t.lanes=536870912,null}return Ss(t,r)}var d=e.memoizedState;if(d!==null){var g=d.dehydrated;if(Bu(t),u)if(t.flags&256)t.flags&=-257,t=Wp(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(ut||Al(e,t,a,!1),u=(a&e.childLanes)!==0,ut||u){if(r=Ge,r!==null&&(g=Gd(r,a),g!==0&&g!==d.retryLane))throw d.retryLane=g,Va(e,g),Lt(r,e,g),ic;Ds(),t=Wp(e,t,a)}else e=d.treeContext,Qe=fn(g.nextSibling),gt=t,Ae=!0,sa=null,un=!1,e!==null&&Hh(t,e),t=Ss(t,r),t.flags|=4096;return t}return e=Ln(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function xs(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function rc(e,t,a,r,u){return Xa(t),a=$u(e,t,a,r,void 0,u),r=Vu(),e!==null&&!ut?(qu(e,t,u),qn(e,t,u)):(Ae&&r&&xu(t),t.flags|=1,yt(e,t,a,u),t.child)}function em(e,t,a,r,u,d){return Xa(t),t.updateQueue=null,a=ap(t,r,a,u),np(e),r=Vu(),e!==null&&!ut?(qu(e,t,d),qn(e,t,d)):(Ae&&r&&xu(t),t.flags|=1,yt(e,t,a,d),t.child)}function tm(e,t,a,r,u){if(Xa(t),t.stateNode===null){var d=Tl,g=a.contextType;typeof g=="object"&&g!==null&&(d=vt(g)),d=new a(r,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=ac,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=r,d.state=t.memoizedState,d.refs={},_u(t),g=a.contextType,d.context=typeof g=="object"&&g!==null?vt(g):Tl,d.state=t.memoizedState,g=a.getDerivedStateFromProps,typeof g=="function"&&(nc(t,a,g,r),d.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(g=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),g!==d.state&&ac.enqueueReplaceState(d,d.state,null),_i(t,r,d,u),Di(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){d=t.stateNode;var S=t.memoizedProps,C=Pa(a,S);d.props=C;var D=d.context,V=a.contextType;g=Tl,typeof V=="object"&&V!==null&&(g=vt(V));var X=a.getDerivedStateFromProps;V=typeof X=="function"||typeof d.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,V||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(S||D!==g)&&Vp(t,d,r,g),ca=!1;var k=t.memoizedState;d.state=k,_i(t,r,d,u),Di(),D=t.memoizedState,S||k!==D||ca?(typeof X=="function"&&(nc(t,a,X,r),D=t.memoizedState),(C=ca||$p(t,a,C,r,k,D,g))?(V||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=r,t.memoizedState=D),d.props=r,d.state=D,d.context=g,r=C):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{d=t.stateNode,ku(e,t),g=t.memoizedProps,V=Pa(a,g),d.props=V,X=t.pendingProps,k=d.context,D=a.contextType,C=Tl,typeof D=="object"&&D!==null&&(C=vt(D)),S=a.getDerivedStateFromProps,(D=typeof S=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(g!==X||k!==C)&&Vp(t,d,r,C),ca=!1,k=t.memoizedState,d.state=k,_i(t,r,d,u),Di();var L=t.memoizedState;g!==X||k!==L||ca||e!==null&&e.dependencies!==null&&ns(e.dependencies)?(typeof S=="function"&&(nc(t,a,S,r),L=t.memoizedState),(V=ca||$p(t,a,V,r,k,L,C)||e!==null&&e.dependencies!==null&&ns(e.dependencies))?(D||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(r,L,C),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(r,L,C)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||g===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=L),d.props=r,d.state=L,d.context=C,r=V):(typeof d.componentDidUpdate!="function"||g===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),r=!1)}return d=r,xs(e,t),r=(t.flags&128)!==0,d||r?(d=t.stateNode,a=r&&typeof a.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&r?(t.child=Ja(t,e.child,null,u),t.child=Ja(t,null,a,u)):yt(e,t,a,u),t.memoizedState=d.state,e=t.child):e=qn(e,t,u),e}function nm(e,t,a,r){return Ga(),t.flags|=256,yt(e,t,a,r),t.child}var sc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function oc(e){return{baseLanes:e,cachePool:Xh()}}function uc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Jt),e}function am(e,t,a){var r=t.pendingProps,u=!1,d=(t.flags&128)!==0,g;if((g=d)||(g=e!==null&&e.memoizedState===null?!1:(it.current&2)!==0),g&&(u=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ae){if(u?ha(t):pa(),(e=Qe)?(e=fg(e,un),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ra!==null?{id:Tn,overflow:Nn}:null,retryLane:536870912,hydrationErrors:null},a=Lh(e),a.return=t,t.child=a,gt=t,Qe=null)):e=null,e===null)throw oa(t);return Xc(e)?t.lanes=32:t.lanes=536870912,null}var S=r.children;return r=r.fallback,u?(pa(),u=t.mode,S=Es({mode:"hidden",children:S},u),r=qa(r,u,a,null),S.return=t,r.return=t,S.sibling=r,t.child=S,r=t.child,r.memoizedState=oc(a),r.childLanes=uc(e,g,a),t.memoizedState=sc,Ui(null,r)):(ha(t),cc(t,S))}var C=e.memoizedState;if(C!==null&&(S=C.dehydrated,S!==null)){if(d)t.flags&256?(ha(t),t.flags&=-257,t=fc(e,t,a)):t.memoizedState!==null?(pa(),t.child=e.child,t.flags|=128,t=null):(pa(),S=r.fallback,u=t.mode,r=Es({mode:"visible",children:r.children},u),S=qa(S,u,a,null),S.flags|=2,r.return=t,S.return=t,r.sibling=S,t.child=r,Ja(t,e.child,null,a),r=t.child,r.memoizedState=oc(a),r.childLanes=uc(e,g,a),t.memoizedState=sc,t=Ui(null,r));else if(ha(t),Xc(S)){if(g=S.nextSibling&&S.nextSibling.dataset,g)var D=g.dgst;g=D,r=Error(s(419)),r.stack="",r.digest=g,Ti({value:r,source:null,stack:null}),t=fc(e,t,a)}else if(ut||Al(e,t,a,!1),g=(a&e.childLanes)!==0,ut||g){if(g=Ge,g!==null&&(r=Gd(g,a),r!==0&&r!==C.retryLane))throw C.retryLane=r,Va(e,r),Lt(g,e,r),ic;Yc(S)||Ds(),t=fc(e,t,a)}else Yc(S)?(t.flags|=192,t.child=e.child,t=null):(e=C.treeContext,Qe=fn(S.nextSibling),gt=t,Ae=!0,sa=null,un=!1,e!==null&&Hh(t,e),t=cc(t,r.children),t.flags|=4096);return t}return u?(pa(),S=r.fallback,u=t.mode,C=e.child,D=C.sibling,r=Ln(C,{mode:"hidden",children:r.children}),r.subtreeFlags=C.subtreeFlags&65011712,D!==null?S=Ln(D,S):(S=qa(S,u,a,null),S.flags|=2),S.return=t,r.return=t,r.sibling=S,t.child=r,Ui(null,r),r=t.child,S=e.child.memoizedState,S===null?S=oc(a):(u=S.cachePool,u!==null?(C=st._currentValue,u=u.parent!==C?{parent:C,pool:C}:u):u=Xh(),S={baseLanes:S.baseLanes|a,cachePool:u}),r.memoizedState=S,r.childLanes=uc(e,g,a),t.memoizedState=sc,Ui(e.child,r)):(ha(t),a=e.child,e=a.sibling,a=Ln(a,{mode:"visible",children:r.children}),a.return=t,a.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=a,t.memoizedState=null,a)}function cc(e,t){return t=Es({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Es(e,t){return e=Xt(22,e,null,t),e.lanes=0,e}function fc(e,t,a){return Ja(t,e.child,null,a),e=cc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lm(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Nu(e.return,t,a)}function dc(e,t,a,r,u,d){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:u,treeForkCount:d}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=r,g.tail=a,g.tailMode=u,g.treeForkCount=d)}function im(e,t,a){var r=t.pendingProps,u=r.revealOrder,d=r.tail;r=r.children;var g=it.current,S=(g&2)!==0;if(S?(g=g&1|2,t.flags|=128):g&=1,I(it,g),yt(e,t,r,a),r=Ae?Ci:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&lm(e,a,t);else if(e.tag===19)lm(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(a=t.child,u=null;a!==null;)e=a.alternate,e!==null&&cs(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=t.child,t.child=null):(u=a.sibling,a.sibling=null),dc(t,!1,u,a,d,r);break;case"backwards":case"unstable_legacy-backwards":for(a=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&cs(e)===null){t.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}dc(t,!0,a,null,d,r);break;case"together":dc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function qn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),va|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Al(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=Ln(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Ln(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function hc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ns(e)))}function zS(e,t,a){switch(t.tag){case 3:Et(t,t.stateNode.containerInfo),ua(t,st,e.memoizedState.cache),Ga();break;case 27:case 5:ui(t);break;case 4:Et(t,t.stateNode.containerInfo);break;case 10:ua(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Bu(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(ha(t),t.flags|=128,null):(a&t.child.childLanes)!==0?am(e,t,a):(ha(t),e=qn(e,t,a),e!==null?e.sibling:null);ha(t);break;case 19:var u=(e.flags&128)!==0;if(r=(a&t.childLanes)!==0,r||(Al(e,t,a,!1),r=(a&t.childLanes)!==0),u){if(r)return im(e,t,a);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),I(it,it.current),r)break;return null;case 22:return t.lanes=0,Pp(e,t,a,t.pendingProps);case 24:ua(t,st,e.memoizedState.cache)}return qn(e,t,a)}function rm(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)ut=!0;else{if(!hc(e,a)&&(t.flags&128)===0)return ut=!1,zS(e,t,a);ut=(e.flags&131072)!==0}else ut=!1,Ae&&(t.flags&1048576)!==0&&Bh(t,Ci,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=Ka(t.elementType),t.type=e,typeof e=="function")yu(e)?(r=Pa(e,r),t.tag=1,t=tm(null,t,e,r,a)):(t.tag=0,t=rc(null,t,e,r,a));else{if(e!=null){var u=e.$$typeof;if(u===P){t.tag=11,t=Zp(null,t,e,r,a);break e}else if(u===_){t.tag=14,t=Jp(null,t,e,r,a);break e}}throw t=ce(e)||e,Error(s(306,t,""))}}return t;case 0:return rc(e,t,t.type,t.pendingProps,a);case 1:return r=t.type,u=Pa(r,t.pendingProps),tm(e,t,r,u,a);case 3:e:{if(Et(t,t.stateNode.containerInfo),e===null)throw Error(s(387));r=t.pendingProps;var d=t.memoizedState;u=d.element,ku(e,t),_i(t,r,null,a);var g=t.memoizedState;if(r=g.cache,ua(t,st,r),r!==d.cache&&Ru(t,[st],a,!0),Di(),r=g.element,d.isDehydrated)if(d={element:r,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=nm(e,t,r,a);break e}else if(r!==u){u=rn(Error(s(424)),t),Ti(u),t=nm(e,t,r,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Qe=fn(e.firstChild),gt=t,Ae=!0,sa=null,un=!0,a=Ph(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Ga(),r===u){t=qn(e,t,a);break e}yt(e,t,r,a)}t=t.child}return t;case 26:return xs(e,t),e===null?(a=vg(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ae||(a=t.type,e=t.pendingProps,r=Bs(we.current).createElement(a),r[mt]=t,r[Ot]=e,bt(r,a,e),ht(r),t.stateNode=r):t.memoizedState=vg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ui(t),e===null&&Ae&&(r=t.stateNode=pg(t.type,t.pendingProps,we.current),gt=t,un=!0,u=Qe,Ea(t.type)?(Qc=u,Qe=fn(r.firstChild)):Qe=u),yt(e,t,t.pendingProps.children,a),xs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ae&&((u=r=Qe)&&(r=fx(r,t.type,t.pendingProps,un),r!==null?(t.stateNode=r,gt=t,Qe=fn(r.firstChild),un=!1,u=!0):u=!1),u||oa(t)),ui(t),u=t.type,d=t.pendingProps,g=e!==null?e.memoizedProps:null,r=d.children,Vc(u,d)?r=null:g!==null&&Vc(u,g)&&(t.flags|=32),t.memoizedState!==null&&(u=$u(e,t,NS,null,null,a),Ii._currentValue=u),xs(e,t),yt(e,t,r,a),t.child;case 6:return e===null&&Ae&&((e=a=Qe)&&(a=dx(a,t.pendingProps,un),a!==null?(t.stateNode=a,gt=t,Qe=null,e=!0):e=!1),e||oa(t)),null;case 13:return am(e,t,a);case 4:return Et(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ja(t,null,r,a):yt(e,t,r,a),t.child;case 11:return Zp(e,t,t.type,t.pendingProps,a);case 7:return yt(e,t,t.pendingProps,a),t.child;case 8:return yt(e,t,t.pendingProps.children,a),t.child;case 12:return yt(e,t,t.pendingProps.children,a),t.child;case 10:return r=t.pendingProps,ua(t,t.type,r.value),yt(e,t,r.children,a),t.child;case 9:return u=t.type._context,r=t.pendingProps.children,Xa(t),u=vt(u),r=r(u),t.flags|=1,yt(e,t,r,a),t.child;case 14:return Jp(e,t,t.type,t.pendingProps,a);case 15:return Fp(e,t,t.type,t.pendingProps,a);case 19:return im(e,t,a);case 31:return MS(e,t,a);case 22:return Pp(e,t,a,t.pendingProps);case 24:return Xa(t),r=vt(st),e===null?(u=Ou(),u===null&&(u=Ge,d=ju(),u.pooledCache=d,d.refCount++,d!==null&&(u.pooledCacheLanes|=a),u=d),t.memoizedState={parent:r,cache:u},_u(t),ua(t,st,u)):((e.lanes&a)!==0&&(ku(e,t),_i(t,null,null,a),Di()),u=e.memoizedState,d=t.memoizedState,u.parent!==r?(u={parent:r,cache:r},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),ua(t,st,r)):(r=d.cache,ua(t,st,r),r!==u.cache&&Ru(t,[st],a,!0))),yt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Gn(e){e.flags|=4}function pc(e,t,a,r,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(km())e.flags|=8192;else throw Za=rs,Du}else e.flags&=-16777217}function sm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Eg(t))if(km())e.flags|=8192;else throw Za=rs,Du}function ws(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?$d():536870912,e.lanes|=t,Vl|=t)}function Bi(e,t){if(!Ae)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,r=0;if(t)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,r|=u.subtreeFlags&65011712,r|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,r|=u.subtreeFlags,r|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=r,e.childLanes=a,t}function LS(e,t,a){var r=t.pendingProps;switch(Eu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ke(t),null;case 1:return Ke(t),null;case 3:return a=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Hn(st),Ie(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(jl(t)?Gn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Cu())),Ke(t),null;case 26:var u=t.type,d=t.memoizedState;return e===null?(Gn(t),d!==null?(Ke(t),sm(t,d)):(Ke(t),pc(t,u,null,r,a))):d?d!==e.memoizedState?(Gn(t),Ke(t),sm(t,d)):(Ke(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&Gn(t),Ke(t),pc(t,u,e,r,a)),null;case 27:if(Mr(t),a=we.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Gn(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return Ke(t),null}e=ae.current,jl(t)?$h(t):(e=pg(u,r,a),t.stateNode=e,Gn(t))}return Ke(t),null;case 5:if(Mr(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Gn(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return Ke(t),null}if(d=ae.current,jl(t))$h(t);else{var g=Bs(we.current);switch(d){case 1:d=g.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:d=g.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":d=g.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":d=g.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":d=g.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof r.is=="string"?g.createElement("select",{is:r.is}):g.createElement("select"),r.multiple?d.multiple=!0:r.size&&(d.size=r.size);break;default:d=typeof r.is=="string"?g.createElement(u,{is:r.is}):g.createElement(u)}}d[mt]=t,d[Ot]=r;e:for(g=t.child;g!==null;){if(g.tag===5||g.tag===6)d.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===t)break e;for(;g.sibling===null;){if(g.return===null||g.return===t)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}t.stateNode=d;e:switch(bt(d,u,r),u){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&Gn(t)}}return Ke(t),pc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Gn(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(s(166));if(e=we.current,jl(t)){if(e=t.stateNode,a=t.memoizedProps,r=null,u=gt,u!==null)switch(u.tag){case 27:case 5:r=u.memoizedProps}e[mt]=t,e=!!(e.nodeValue===a||r!==null&&r.suppressHydrationWarning===!0||ag(e.nodeValue,a)),e||oa(t,!0)}else e=Bs(e).createTextNode(r),e[mt]=t,t.stateNode=e}return Ke(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(r=jl(t),a!==null){if(e===null){if(!r)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[mt]=t}else Ga(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ke(t),e=!1}else a=Cu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Kt(t),t):(Kt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Ke(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=jl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!u)throw Error(s(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(s(317));u[mt]=t}else Ga(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ke(t),u=!1}else u=Cu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(Kt(t),t):(Kt(t),null)}return Kt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=r!==null,e=e!==null&&e.memoizedState!==null,a&&(r=t.child,u=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(u=r.alternate.memoizedState.cachePool.pool),d=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(d=r.memoizedState.cachePool.pool),d!==u&&(r.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),ws(t,t.updateQueue),Ke(t),null);case 4:return Ie(),e===null&&Lc(t.stateNode.containerInfo),Ke(t),null;case 10:return Hn(t.type),Ke(t),null;case 19:if(q(it),r=t.memoizedState,r===null)return Ke(t),null;if(u=(t.flags&128)!==0,d=r.rendering,d===null)if(u)Bi(r,!1);else{if(nt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=cs(e),d!==null){for(t.flags|=128,Bi(r,!1),e=d.updateQueue,t.updateQueue=e,ws(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)zh(a,e),a=a.sibling;return I(it,it.current&1|2),Ae&&Un(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Vt()>js&&(t.flags|=128,u=!0,Bi(r,!1),t.lanes=4194304)}else{if(!u)if(e=cs(d),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,ws(t,e),Bi(r,!0),r.tail===null&&r.tailMode==="hidden"&&!d.alternate&&!Ae)return Ke(t),null}else 2*Vt()-r.renderingStartTime>js&&a!==536870912&&(t.flags|=128,u=!0,Bi(r,!1),t.lanes=4194304);r.isBackwards?(d.sibling=t.child,t.child=d):(e=r.last,e!==null?e.sibling=d:t.child=d,r.last=d)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Vt(),e.sibling=null,a=it.current,I(it,u?a&1|2:a&1),Ae&&Un(t,r.treeForkCount),e):(Ke(t),null);case 22:case 23:return Kt(t),Uu(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(a&536870912)!==0&&(t.flags&128)===0&&(Ke(t),t.subtreeFlags&6&&(t.flags|=8192)):Ke(t),a=t.updateQueue,a!==null&&ws(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==a&&(t.flags|=2048),e!==null&&q(Qa),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Hn(st),Ke(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function US(e,t){switch(Eu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hn(st),Ie(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Mr(t),null;case 31:if(t.memoizedState!==null){if(Kt(t),t.alternate===null)throw Error(s(340));Ga()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Kt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Ga()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(it),null;case 4:return Ie(),null;case 10:return Hn(t.type),null;case 22:case 23:return Kt(t),Uu(),e!==null&&q(Qa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Hn(st),null;case 25:return null;default:return null}}function om(e,t){switch(Eu(t),t.tag){case 3:Hn(st),Ie();break;case 26:case 27:case 5:Mr(t);break;case 4:Ie();break;case 31:t.memoizedState!==null&&Kt(t);break;case 13:Kt(t);break;case 19:q(it);break;case 10:Hn(t.type);break;case 22:case 23:Kt(t),Uu(),e!==null&&q(Qa);break;case 24:Hn(st)}}function Hi(e,t){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var u=r.next;a=u;do{if((a.tag&e)===e){r=void 0;var d=a.create,g=a.inst;r=d(),g.destroy=r}a=a.next}while(a!==u)}}catch(S){Be(t,t.return,S)}}function ma(e,t,a){try{var r=t.updateQueue,u=r!==null?r.lastEffect:null;if(u!==null){var d=u.next;r=d;do{if((r.tag&e)===e){var g=r.inst,S=g.destroy;if(S!==void 0){g.destroy=void 0,u=t;var C=a,D=S;try{D()}catch(V){Be(u,C,V)}}}r=r.next}while(r!==d)}}catch(V){Be(t,t.return,V)}}function um(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Wh(t,a)}catch(r){Be(e,e.return,r)}}}function cm(e,t,a){a.props=Pa(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(r){Be(e,t,r)}}function $i(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof a=="function"?e.refCleanup=a(r):a.current=r}}catch(u){Be(e,t,u)}}function Rn(e,t){var a=e.ref,r=e.refCleanup;if(a!==null)if(typeof r=="function")try{r()}catch(u){Be(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){Be(e,t,u)}else a.current=null}function fm(e){var t=e.type,a=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&r.focus();break e;case"img":a.src?r.src=a.src:a.srcSet&&(r.srcset=a.srcSet)}}catch(u){Be(e,e.return,u)}}function mc(e,t,a){try{var r=e.stateNode;ix(r,e.type,a,t),r[Ot]=t}catch(u){Be(e,e.return,u)}}function dm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ea(e.type)||e.tag===4}function gc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dm(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&&Ea(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 vc(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Mn));else if(r!==4&&(r===27&&Ea(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(vc(e,t,a),e=e.sibling;e!==null;)vc(e,t,a),e=e.sibling}function Cs(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(r!==4&&(r===27&&Ea(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Cs(e,t,a),e=e.sibling;e!==null;)Cs(e,t,a),e=e.sibling}function hm(e){var t=e.stateNode,a=e.memoizedProps;try{for(var r=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);bt(t,r,a),t[mt]=e,t[Ot]=a}catch(d){Be(e,e.return,d)}}var Yn=!1,ct=!1,yc=!1,pm=typeof WeakSet=="function"?WeakSet:Set,pt=null;function BS(e,t){if(e=e.containerInfo,Hc=Xs,e=Nh(e),fu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var u=r.anchorOffset,d=r.focusNode;r=r.focusOffset;try{a.nodeType,d.nodeType}catch{a=null;break e}var g=0,S=-1,C=-1,D=0,V=0,X=e,k=null;t:for(;;){for(var L;X!==a||u!==0&&X.nodeType!==3||(S=g+u),X!==d||r!==0&&X.nodeType!==3||(C=g+r),X.nodeType===3&&(g+=X.nodeValue.length),(L=X.firstChild)!==null;)k=X,X=L;for(;;){if(X===e)break t;if(k===a&&++D===u&&(S=g),k===d&&++V===r&&(C=g),(L=X.nextSibling)!==null)break;X=k,k=X.parentNode}X=L}a=S===-1||C===-1?null:{start:S,end:C}}else a=null}a=a||{start:0,end:0}}else a=null;for($c={focusedElem:e,selectionRange:a},Xs=!1,pt=t;pt!==null;)if(t=pt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pt=e;else for(;pt!==null;){switch(t=pt,d=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)u=e[a],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,a=t,u=d.memoizedProps,d=d.memoizedState,r=a.stateNode;try{var le=Pa(a.type,u);e=r.getSnapshotBeforeUpdate(le,d),r.__reactInternalSnapshotBeforeUpdate=e}catch(ue){Be(a,a.return,ue)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Gc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Gc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,pt=e;break}pt=t.return}}function mm(e,t,a){var r=a.flags;switch(a.tag){case 0:case 11:case 15:Qn(e,a),r&4&&Hi(5,a);break;case 1:if(Qn(e,a),r&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(g){Be(a,a.return,g)}else{var u=Pa(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){Be(a,a.return,g)}}r&64&&um(a),r&512&&$i(a,a.return);break;case 3:if(Qn(e,a),r&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Wh(e,t)}catch(g){Be(a,a.return,g)}}break;case 27:t===null&&r&4&&hm(a);case 26:case 5:Qn(e,a),t===null&&r&4&&fm(a),r&512&&$i(a,a.return);break;case 12:Qn(e,a);break;case 31:Qn(e,a),r&4&&ym(e,a);break;case 13:Qn(e,a),r&4&&bm(e,a),r&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=KS.bind(null,a),hx(e,a))));break;case 22:if(r=a.memoizedState!==null||Yn,!r){t=t!==null&&t.memoizedState!==null||ct,u=Yn;var d=ct;Yn=r,(ct=t)&&!d?Kn(e,a,(a.subtreeFlags&8772)!==0):Qn(e,a),Yn=u,ct=d}break;case 30:break;default:Qn(e,a)}}function gm(e){var t=e.alternate;t!==null&&(e.alternate=null,gm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Zo(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 Je=null,_t=!1;function Xn(e,t,a){for(a=a.child;a!==null;)vm(e,t,a),a=a.sibling}function vm(e,t,a){if(qt&&typeof qt.onCommitFiberUnmount=="function")try{qt.onCommitFiberUnmount(ci,a)}catch{}switch(a.tag){case 26:ct||Rn(a,t),Xn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ct||Rn(a,t);var r=Je,u=_t;Ea(a.type)&&(Je=a.stateNode,_t=!1),Xn(e,t,a),Ji(a.stateNode),Je=r,_t=u;break;case 5:ct||Rn(a,t);case 6:if(r=Je,u=_t,Je=null,Xn(e,t,a),Je=r,_t=u,Je!==null)if(_t)try{(Je.nodeType===9?Je.body:Je.nodeName==="HTML"?Je.ownerDocument.body:Je).removeChild(a.stateNode)}catch(d){Be(a,t,d)}else try{Je.removeChild(a.stateNode)}catch(d){Be(a,t,d)}break;case 18:Je!==null&&(_t?(e=Je,ug(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Jl(e)):ug(Je,a.stateNode));break;case 4:r=Je,u=_t,Je=a.stateNode.containerInfo,_t=!0,Xn(e,t,a),Je=r,_t=u;break;case 0:case 11:case 14:case 15:ma(2,a,t),ct||ma(4,a,t),Xn(e,t,a);break;case 1:ct||(Rn(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"&&cm(a,t,r)),Xn(e,t,a);break;case 21:Xn(e,t,a);break;case 22:ct=(r=ct)||a.memoizedState!==null,Xn(e,t,a),ct=r;break;default:Xn(e,t,a)}}function ym(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Jl(e)}catch(a){Be(t,t.return,a)}}}function bm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Jl(e)}catch(a){Be(t,t.return,a)}}function HS(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new pm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new pm),t;default:throw Error(s(435,e.tag))}}function Ts(e,t){var a=HS(e);t.forEach(function(r){if(!a.has(r)){a.add(r);var u=ZS.bind(null,e,r);r.then(u,u)}})}function kt(e,t){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var u=a[r],d=e,g=t,S=g;e:for(;S!==null;){switch(S.tag){case 27:if(Ea(S.type)){Je=S.stateNode,_t=!1;break e}break;case 5:Je=S.stateNode,_t=!1;break e;case 3:case 4:Je=S.stateNode.containerInfo,_t=!0;break e}S=S.return}if(Je===null)throw Error(s(160));vm(d,g,u),Je=null,_t=!1,d=u.alternate,d!==null&&(d.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Sm(t,e),t=t.sibling}var vn=null;function Sm(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:kt(t,e),Mt(e),r&4&&(ma(3,e,e.return),Hi(3,e),ma(5,e,e.return));break;case 1:kt(t,e),Mt(e),r&512&&(ct||a===null||Rn(a,a.return)),r&64&&Yn&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?r:a.concat(r))));break;case 26:var u=vn;if(kt(t,e),Mt(e),r&512&&(ct||a===null||Rn(a,a.return)),r&4){var d=a!==null?a.memoizedState:null;if(r=e.memoizedState,a===null)if(r===null)if(e.stateNode===null){e:{r=e.type,a=e.memoizedProps,u=u.ownerDocument||u;t:switch(r){case"title":d=u.getElementsByTagName("title")[0],(!d||d[hi]||d[mt]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=u.createElement(r),u.head.insertBefore(d,u.querySelector("head > title"))),bt(d,r,a),d[mt]=e,ht(d),r=d;break e;case"link":var g=Sg("link","href",u).get(r+(a.href||""));if(g){for(var S=0;S<g.length;S++)if(d=g[S],d.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&d.getAttribute("rel")===(a.rel==null?null:a.rel)&&d.getAttribute("title")===(a.title==null?null:a.title)&&d.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){g.splice(S,1);break t}}d=u.createElement(r),bt(d,r,a),u.head.appendChild(d);break;case"meta":if(g=Sg("meta","content",u).get(r+(a.content||""))){for(S=0;S<g.length;S++)if(d=g[S],d.getAttribute("content")===(a.content==null?null:""+a.content)&&d.getAttribute("name")===(a.name==null?null:a.name)&&d.getAttribute("property")===(a.property==null?null:a.property)&&d.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&d.getAttribute("charset")===(a.charSet==null?null:a.charSet)){g.splice(S,1);break t}}d=u.createElement(r),bt(d,r,a),u.head.appendChild(d);break;default:throw Error(s(468,r))}d[mt]=e,ht(d),r=d}e.stateNode=r}else xg(u,e.type,e.stateNode);else e.stateNode=bg(u,r,e.memoizedProps);else d!==r?(d===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):d.count--,r===null?xg(u,e.type,e.stateNode):bg(u,r,e.memoizedProps)):r===null&&e.stateNode!==null&&mc(e,e.memoizedProps,a.memoizedProps)}break;case 27:kt(t,e),Mt(e),r&512&&(ct||a===null||Rn(a,a.return)),a!==null&&r&4&&mc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(kt(t,e),Mt(e),r&512&&(ct||a===null||Rn(a,a.return)),e.flags&32){u=e.stateNode;try{yl(u,"")}catch(le){Be(e,e.return,le)}}r&4&&e.stateNode!=null&&(u=e.memoizedProps,mc(e,u,a!==null?a.memoizedProps:u)),r&1024&&(yc=!0);break;case 6:if(kt(t,e),Mt(e),r&4){if(e.stateNode===null)throw Error(s(162));r=e.memoizedProps,a=e.stateNode;try{a.nodeValue=r}catch(le){Be(e,e.return,le)}}break;case 3:if(Vs=null,u=vn,vn=Hs(t.containerInfo),kt(t,e),vn=u,Mt(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{Jl(t.containerInfo)}catch(le){Be(e,e.return,le)}yc&&(yc=!1,xm(e));break;case 4:r=vn,vn=Hs(e.stateNode.containerInfo),kt(t,e),Mt(e),vn=r;break;case 12:kt(t,e),Mt(e);break;case 31:kt(t,e),Mt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Ts(e,r)));break;case 13:kt(t,e),Mt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Rs=Vt()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Ts(e,r)));break;case 22:u=e.memoizedState!==null;var C=a!==null&&a.memoizedState!==null,D=Yn,V=ct;if(Yn=D||u,ct=V||C,kt(t,e),ct=V,Yn=D,Mt(e),r&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(a===null||C||Yn||ct||Ia(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){C=a=t;try{if(d=C.stateNode,u)g=d.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{S=C.stateNode;var X=C.memoizedProps.style,k=X!=null&&X.hasOwnProperty("display")?X.display:null;S.style.display=k==null||typeof k=="boolean"?"":(""+k).trim()}}catch(le){Be(C,C.return,le)}}}else if(t.tag===6){if(a===null){C=t;try{C.stateNode.nodeValue=u?"":C.memoizedProps}catch(le){Be(C,C.return,le)}}}else if(t.tag===18){if(a===null){C=t;try{var L=C.stateNode;u?cg(L,!0):cg(C.stateNode,!1)}catch(le){Be(C,C.return,le)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(a=r.retryQueue,a!==null&&(r.retryQueue=null,Ts(e,a))));break;case 19:kt(t,e),Mt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Ts(e,r)));break;case 30:break;case 21:break;default:kt(t,e),Mt(e)}}function Mt(e){var t=e.flags;if(t&2){try{for(var a,r=e.return;r!==null;){if(dm(r)){a=r;break}r=r.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var u=a.stateNode,d=gc(e);Cs(e,d,u);break;case 5:var g=a.stateNode;a.flags&32&&(yl(g,""),a.flags&=-33);var S=gc(e);Cs(e,S,g);break;case 3:case 4:var C=a.stateNode.containerInfo,D=gc(e);vc(e,D,C);break;default:throw Error(s(161))}}catch(V){Be(e,e.return,V)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;xm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Qn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)mm(e,t.alternate,t),t=t.sibling}function Ia(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ma(4,t,t.return),Ia(t);break;case 1:Rn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&cm(t,t.return,a),Ia(t);break;case 27:Ji(t.stateNode);case 26:case 5:Rn(t,t.return),Ia(t);break;case 22:t.memoizedState===null&&Ia(t);break;case 30:Ia(t);break;default:Ia(t)}e=e.sibling}}function Kn(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,u=e,d=t,g=d.flags;switch(d.tag){case 0:case 11:case 15:Kn(u,d,a),Hi(4,d);break;case 1:if(Kn(u,d,a),r=d,u=r.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(D){Be(r,r.return,D)}if(r=d,u=r.updateQueue,u!==null){var S=r.stateNode;try{var C=u.shared.hiddenCallbacks;if(C!==null)for(u.shared.hiddenCallbacks=null,u=0;u<C.length;u++)Ih(C[u],S)}catch(D){Be(r,r.return,D)}}a&&g&64&&um(d),$i(d,d.return);break;case 27:hm(d);case 26:case 5:Kn(u,d,a),a&&r===null&&g&4&&fm(d),$i(d,d.return);break;case 12:Kn(u,d,a);break;case 31:Kn(u,d,a),a&&g&4&&ym(u,d);break;case 13:Kn(u,d,a),a&&g&4&&bm(u,d);break;case 22:d.memoizedState===null&&Kn(u,d,a),$i(d,d.return);break;case 30:break;default:Kn(u,d,a)}t=t.sibling}}function bc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Ni(a))}function Sc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ni(e))}function yn(e,t,a,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Em(e,t,a,r),t=t.sibling}function Em(e,t,a,r){var u=t.flags;switch(t.tag){case 0:case 11:case 15:yn(e,t,a,r),u&2048&&Hi(9,t);break;case 1:yn(e,t,a,r);break;case 3:yn(e,t,a,r),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ni(e)));break;case 12:if(u&2048){yn(e,t,a,r),e=t.stateNode;try{var d=t.memoizedProps,g=d.id,S=d.onPostCommit;typeof S=="function"&&S(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(C){Be(t,t.return,C)}}else yn(e,t,a,r);break;case 31:yn(e,t,a,r);break;case 13:yn(e,t,a,r);break;case 23:break;case 22:d=t.stateNode,g=t.alternate,t.memoizedState!==null?d._visibility&2?yn(e,t,a,r):Vi(e,t):d._visibility&2?yn(e,t,a,r):(d._visibility|=2,Bl(e,t,a,r,(t.subtreeFlags&10256)!==0||!1)),u&2048&&bc(g,t);break;case 24:yn(e,t,a,r),u&2048&&Sc(t.alternate,t);break;default:yn(e,t,a,r)}}function Bl(e,t,a,r,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var d=e,g=t,S=a,C=r,D=g.flags;switch(g.tag){case 0:case 11:case 15:Bl(d,g,S,C,u),Hi(8,g);break;case 23:break;case 22:var V=g.stateNode;g.memoizedState!==null?V._visibility&2?Bl(d,g,S,C,u):Vi(d,g):(V._visibility|=2,Bl(d,g,S,C,u)),u&&D&2048&&bc(g.alternate,g);break;case 24:Bl(d,g,S,C,u),u&&D&2048&&Sc(g.alternate,g);break;default:Bl(d,g,S,C,u)}t=t.sibling}}function Vi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,r=t,u=r.flags;switch(r.tag){case 22:Vi(a,r),u&2048&&bc(r.alternate,r);break;case 24:Vi(a,r),u&2048&&Sc(r.alternate,r);break;default:Vi(a,r)}t=t.sibling}}var qi=8192;function Hl(e,t,a){if(e.subtreeFlags&qi)for(e=e.child;e!==null;)wm(e,t,a),e=e.sibling}function wm(e,t,a){switch(e.tag){case 26:Hl(e,t,a),e.flags&qi&&e.memoizedState!==null&&Tx(a,vn,e.memoizedState,e.memoizedProps);break;case 5:Hl(e,t,a);break;case 3:case 4:var r=vn;vn=Hs(e.stateNode.containerInfo),Hl(e,t,a),vn=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=qi,qi=16777216,Hl(e,t,a),qi=r):Hl(e,t,a));break;default:Hl(e,t,a)}}function Cm(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 Gi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];pt=r,Nm(r,e)}Cm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Tm(e),e=e.sibling}function Tm(e){switch(e.tag){case 0:case 11:case 15:Gi(e),e.flags&2048&&ma(9,e,e.return);break;case 3:Gi(e);break;case 12:Gi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ns(e)):Gi(e);break;default:Gi(e)}}function Ns(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];pt=r,Nm(r,e)}Cm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ma(8,t,t.return),Ns(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Ns(t));break;default:Ns(t)}e=e.sibling}}function Nm(e,t){for(;pt!==null;){var a=pt;switch(a.tag){case 0:case 11:case 15:ma(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var r=a.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Ni(a.memoizedState.cache)}if(r=a.child,r!==null)r.return=a,pt=r;else e:for(a=e;pt!==null;){r=pt;var u=r.sibling,d=r.return;if(gm(r),r===a){pt=null;break e}if(u!==null){u.return=d,pt=u;break e}pt=d}}}var $S={getCacheForType:function(e){var t=vt(st),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return vt(st).controller.signal}},VS=typeof WeakMap=="function"?WeakMap:Map,Le=0,Ge=null,Ce=null,Re=0,Ue=0,Zt=null,ga=!1,$l=!1,xc=!1,Zn=0,nt=0,va=0,Wa=0,Ec=0,Jt=0,Vl=0,Yi=null,zt=null,wc=!1,Rs=0,Rm=0,js=1/0,As=null,ya=null,dt=0,ba=null,ql=null,Jn=0,Cc=0,Tc=null,jm=null,Xi=0,Nc=null;function Ft(){return(Le&2)!==0&&Re!==0?Re&-Re:z.T!==null?_c():Yd()}function Am(){if(Jt===0)if((Re&536870912)===0||Ae){var e=Ur;Ur<<=1,(Ur&3932160)===0&&(Ur=262144),Jt=e}else Jt=536870912;return e=Qt.current,e!==null&&(e.flags|=32),Jt}function Lt(e,t,a){(e===Ge&&(Ue===2||Ue===9)||e.cancelPendingCommit!==null)&&(Gl(e,0),Sa(e,Re,Jt,!1)),di(e,a),((Le&2)===0||e!==Ge)&&(e===Ge&&((Le&2)===0&&(Wa|=a),nt===4&&Sa(e,Re,Jt,!1)),jn(e))}function Om(e,t,a){if((Le&6)!==0)throw Error(s(327));var r=!a&&(t&127)===0&&(t&e.expiredLanes)===0||fi(e,t),u=r?YS(e,t):jc(e,t,!0),d=r;do{if(u===0){$l&&!r&&Sa(e,t,0,!1);break}else{if(a=e.current.alternate,d&&!qS(a)){u=jc(e,t,!1),d=!1;continue}if(u===2){if(d=t,e.errorRecoveryDisabledLanes&d)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var S=e;u=Yi;var C=S.current.memoizedState.isDehydrated;if(C&&(Gl(S,g).flags|=256),g=jc(S,g,!1),g!==2){if(xc&&!C){S.errorRecoveryDisabledLanes|=d,Wa|=d,u=4;break e}d=zt,zt=u,d!==null&&(zt===null?zt=d:zt.push.apply(zt,d))}u=g}if(d=!1,u!==2)continue}}if(u===1){Gl(e,0),Sa(e,t,0,!0);break}e:{switch(r=e,d=u,d){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Sa(r,t,Jt,!ga);break e;case 2:zt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(u=Rs+300-Vt(),10<u)){if(Sa(r,t,Jt,!ga),Hr(r,0,!0)!==0)break e;Jn=t,r.timeoutHandle=sg(Dm.bind(null,r,a,zt,As,wc,t,Jt,Wa,Vl,ga,d,"Throttled",-0,0),u);break e}Dm(r,a,zt,As,wc,t,Jt,Wa,Vl,ga,d,null,-0,0)}}break}while(!0);jn(e)}function Dm(e,t,a,r,u,d,g,S,C,D,V,X,k,L){if(e.timeoutHandle=-1,X=t.subtreeFlags,X&8192||(X&16785408)===16785408){X={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Mn},wm(t,d,X);var le=(d&62914560)===d?Rs-Vt():(d&4194048)===d?Rm-Vt():0;if(le=Nx(X,le),le!==null){Jn=d,e.cancelPendingCommit=le(Hm.bind(null,e,t,d,a,r,u,g,S,C,V,X,null,k,L)),Sa(e,d,g,!D);return}}Hm(e,t,d,a,r,u,g,S,C)}function qS(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var r=0;r<a.length;r++){var u=a[r],d=u.getSnapshot;u=u.value;try{if(!Yt(d(),u))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Sa(e,t,a,r){t&=~Ec,t&=~Wa,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var u=t;0<u;){var d=31-Gt(u),g=1<<d;r[d]=-1,u&=~g}a!==0&&Vd(e,a,t)}function Os(){return(Le&6)===0?(Qi(0),!1):!0}function Rc(){if(Ce!==null){if(Ue===0)var e=Ce.return;else e=Ce,Bn=Ya=null,Gu(e),kl=null,ji=0,e=Ce;for(;e!==null;)om(e.alternate,e),e=e.return;Ce=null}}function Gl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,ox(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Jn=0,Rc(),Ge=e,Ce=a=Ln(e.current,null),Re=t,Ue=0,Zt=null,ga=!1,$l=fi(e,t),xc=!1,Vl=Jt=Ec=Wa=va=nt=0,zt=Yi=null,wc=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var u=31-Gt(r),d=1<<u;t|=e[u],r&=~d}return Zn=t,Pr(),a}function _m(e,t){ye=null,z.H=Li,t===_l||t===is?(t=Zh(),Ue=3):t===Du?(t=Zh(),Ue=4):Ue=t===ic?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Zt=t,Ce===null&&(nt=1,bs(e,rn(t,e.current)))}function km(){var e=Qt.current;return e===null?!0:(Re&4194048)===Re?cn===null:(Re&62914560)===Re||(Re&536870912)!==0?e===cn:!1}function Mm(){var e=z.H;return z.H=Li,e===null?Li:e}function zm(){var e=z.A;return z.A=$S,e}function Ds(){nt=4,ga||(Re&4194048)!==Re&&Qt.current!==null||($l=!0),(va&134217727)===0&&(Wa&134217727)===0||Ge===null||Sa(Ge,Re,Jt,!1)}function jc(e,t,a){var r=Le;Le|=2;var u=Mm(),d=zm();(Ge!==e||Re!==t)&&(As=null,Gl(e,t)),t=!1;var g=nt;e:do try{if(Ue!==0&&Ce!==null){var S=Ce,C=Zt;switch(Ue){case 8:Rc(),g=6;break e;case 3:case 2:case 9:case 6:Qt.current===null&&(t=!0);var D=Ue;if(Ue=0,Zt=null,Yl(e,S,C,D),a&&$l){g=0;break e}break;default:D=Ue,Ue=0,Zt=null,Yl(e,S,C,D)}}GS(),g=nt;break}catch(V){_m(e,V)}while(!0);return t&&e.shellSuspendCounter++,Bn=Ya=null,Le=r,z.H=u,z.A=d,Ce===null&&(Ge=null,Re=0,Pr()),g}function GS(){for(;Ce!==null;)Lm(Ce)}function YS(e,t){var a=Le;Le|=2;var r=Mm(),u=zm();Ge!==e||Re!==t?(As=null,js=Vt()+500,Gl(e,t)):$l=fi(e,t);e:do try{if(Ue!==0&&Ce!==null){t=Ce;var d=Zt;t:switch(Ue){case 1:Ue=0,Zt=null,Yl(e,t,d,1);break;case 2:case 9:if(Qh(d)){Ue=0,Zt=null,Um(t);break}t=function(){Ue!==2&&Ue!==9||Ge!==e||(Ue=7),jn(e)},d.then(t,t);break e;case 3:Ue=7;break e;case 4:Ue=5;break e;case 7:Qh(d)?(Ue=0,Zt=null,Um(t)):(Ue=0,Zt=null,Yl(e,t,d,7));break;case 5:var g=null;switch(Ce.tag){case 26:g=Ce.memoizedState;case 5:case 27:var S=Ce;if(g?Eg(g):S.stateNode.complete){Ue=0,Zt=null;var C=S.sibling;if(C!==null)Ce=C;else{var D=S.return;D!==null?(Ce=D,_s(D)):Ce=null}break t}}Ue=0,Zt=null,Yl(e,t,d,5);break;case 6:Ue=0,Zt=null,Yl(e,t,d,6);break;case 8:Rc(),nt=6;break e;default:throw Error(s(462))}}XS();break}catch(V){_m(e,V)}while(!0);return Bn=Ya=null,z.H=r,z.A=u,Le=a,Ce!==null?0:(Ge=null,Re=0,Pr(),nt)}function XS(){for(;Ce!==null&&!p0();)Lm(Ce)}function Lm(e){var t=rm(e.alternate,e,Zn);e.memoizedProps=e.pendingProps,t===null?_s(e):Ce=t}function Um(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=em(a,t,t.pendingProps,t.type,void 0,Re);break;case 11:t=em(a,t,t.pendingProps,t.type.render,t.ref,Re);break;case 5:Gu(t);default:om(a,t),t=Ce=zh(t,Zn),t=rm(a,t,Zn)}e.memoizedProps=e.pendingProps,t===null?_s(e):Ce=t}function Yl(e,t,a,r){Bn=Ya=null,Gu(t),kl=null,ji=0;var u=t.return;try{if(kS(e,u,t,a,Re)){nt=1,bs(e,rn(a,e.current)),Ce=null;return}}catch(d){if(u!==null)throw Ce=u,d;nt=1,bs(e,rn(a,e.current)),Ce=null;return}t.flags&32768?(Ae||r===1?e=!0:$l||(Re&536870912)!==0?e=!1:(ga=e=!0,(r===2||r===9||r===3||r===6)&&(r=Qt.current,r!==null&&r.tag===13&&(r.flags|=16384))),Bm(t,e)):_s(t)}function _s(e){var t=e;do{if((t.flags&32768)!==0){Bm(t,ga);return}e=t.return;var a=LS(t.alternate,t,Zn);if(a!==null){Ce=a;return}if(t=t.sibling,t!==null){Ce=t;return}Ce=t=e}while(t!==null);nt===0&&(nt=5)}function Bm(e,t){do{var a=US(e.alternate,e);if(a!==null){a.flags&=32767,Ce=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Ce=e;return}Ce=e=a}while(e!==null);nt=6,Ce=null}function Hm(e,t,a,r,u,d,g,S,C){e.cancelPendingCommit=null;do ks();while(dt!==0);if((Le&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(d=t.lanes|t.childLanes,d|=gu,C0(e,a,d,g,S,C),e===Ge&&(Ce=Ge=null,Re=0),ql=t,ba=e,Jn=a,Cc=d,Tc=u,jm=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,JS(zr,function(){return Ym(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=z.T,z.T=null,u=J.p,J.p=2,g=Le,Le|=4;try{BS(e,t,a)}finally{Le=g,J.p=u,z.T=r}}dt=1,$m(),Vm(),qm()}}function $m(){if(dt===1){dt=0;var e=ba,t=ql,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=z.T,z.T=null;var r=J.p;J.p=2;var u=Le;Le|=4;try{Sm(t,e);var d=$c,g=Nh(e.containerInfo),S=d.focusedElem,C=d.selectionRange;if(g!==S&&S&&S.ownerDocument&&Th(S.ownerDocument.documentElement,S)){if(C!==null&&fu(S)){var D=C.start,V=C.end;if(V===void 0&&(V=D),"selectionStart"in S)S.selectionStart=D,S.selectionEnd=Math.min(V,S.value.length);else{var X=S.ownerDocument||document,k=X&&X.defaultView||window;if(k.getSelection){var L=k.getSelection(),le=S.textContent.length,ue=Math.min(C.start,le),qe=C.end===void 0?ue:Math.min(C.end,le);!L.extend&&ue>qe&&(g=qe,qe=ue,ue=g);var j=Ch(S,ue),N=Ch(S,qe);if(j&&N&&(L.rangeCount!==1||L.anchorNode!==j.node||L.anchorOffset!==j.offset||L.focusNode!==N.node||L.focusOffset!==N.offset)){var O=X.createRange();O.setStart(j.node,j.offset),L.removeAllRanges(),ue>qe?(L.addRange(O),L.extend(N.node,N.offset)):(O.setEnd(N.node,N.offset),L.addRange(O))}}}}for(X=[],L=S;L=L.parentNode;)L.nodeType===1&&X.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<X.length;S++){var G=X[S];G.element.scrollLeft=G.left,G.element.scrollTop=G.top}}Xs=!!Hc,$c=Hc=null}finally{Le=u,J.p=r,z.T=a}}e.current=t,dt=2}}function Vm(){if(dt===2){dt=0;var e=ba,t=ql,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=z.T,z.T=null;var r=J.p;J.p=2;var u=Le;Le|=4;try{mm(e,t.alternate,t)}finally{Le=u,J.p=r,z.T=a}}dt=3}}function qm(){if(dt===4||dt===3){dt=0,m0();var e=ba,t=ql,a=Jn,r=jm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?dt=5:(dt=0,ql=ba=null,Gm(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(ya=null),Qo(a),t=t.stateNode,qt&&typeof qt.onCommitFiberRoot=="function")try{qt.onCommitFiberRoot(ci,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=z.T,u=J.p,J.p=2,z.T=null;try{for(var d=e.onRecoverableError,g=0;g<r.length;g++){var S=r[g];d(S.value,{componentStack:S.stack})}}finally{z.T=t,J.p=u}}(Jn&3)!==0&&ks(),jn(e),u=e.pendingLanes,(a&261930)!==0&&(u&42)!==0?e===Nc?Xi++:(Xi=0,Nc=e):Xi=0,Qi(0)}}function Gm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ni(t)))}function ks(){return $m(),Vm(),qm(),Ym()}function Ym(){if(dt!==5)return!1;var e=ba,t=Cc;Cc=0;var a=Qo(Jn),r=z.T,u=J.p;try{J.p=32>a?32:a,z.T=null,a=Tc,Tc=null;var d=ba,g=Jn;if(dt=0,ql=ba=null,Jn=0,(Le&6)!==0)throw Error(s(331));var S=Le;if(Le|=4,Tm(d.current),Em(d,d.current,g,a),Le=S,Qi(0,!1),qt&&typeof qt.onPostCommitFiberRoot=="function")try{qt.onPostCommitFiberRoot(ci,d)}catch{}return!0}finally{J.p=u,z.T=r,Gm(e,t)}}function Xm(e,t,a){t=rn(a,t),t=lc(e.stateNode,t,2),e=da(e,t,2),e!==null&&(di(e,2),jn(e))}function Be(e,t,a){if(e.tag===3)Xm(e,e,a);else for(;t!==null;){if(t.tag===3){Xm(t,e,a);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ya===null||!ya.has(r))){e=rn(a,e),a=Qp(2),r=da(t,a,2),r!==null&&(Kp(a,r,t,e),di(r,2),jn(r));break}}t=t.return}}function Ac(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new VS;var u=new Set;r.set(t,u)}else u=r.get(t),u===void 0&&(u=new Set,r.set(t,u));u.has(a)||(xc=!0,u.add(a),e=QS.bind(null,e,t,a),t.then(e,e))}function QS(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ge===e&&(Re&a)===a&&(nt===4||nt===3&&(Re&62914560)===Re&&300>Vt()-Rs?(Le&2)===0&&Gl(e,0):Ec|=a,Vl===Re&&(Vl=0)),jn(e)}function Qm(e,t){t===0&&(t=$d()),e=Va(e,t),e!==null&&(di(e,t),jn(e))}function KS(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Qm(e,a)}function ZS(e,t){var a=0;switch(e.tag){case 31:case 13:var r=e.stateNode,u=e.memoizedState;u!==null&&(a=u.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}r!==null&&r.delete(t),Qm(e,a)}function JS(e,t){return qo(e,t)}var Ms=null,Xl=null,Oc=!1,zs=!1,Dc=!1,xa=0;function jn(e){e!==Xl&&e.next===null&&(Xl===null?Ms=Xl=e:Xl=Xl.next=e),zs=!0,Oc||(Oc=!0,PS())}function Qi(e,t){if(!Dc&&zs){Dc=!0;do for(var a=!1,r=Ms;r!==null;){if(e!==0){var u=r.pendingLanes;if(u===0)var d=0;else{var g=r.suspendedLanes,S=r.pingedLanes;d=(1<<31-Gt(42|e)+1)-1,d&=u&~(g&~S),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(a=!0,Fm(r,d))}else d=Re,d=Hr(r,r===Ge?d:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(d&3)===0||fi(r,d)||(a=!0,Fm(r,d));r=r.next}while(a);Dc=!1}}function FS(){Km()}function Km(){zs=Oc=!1;var e=0;xa!==0&&sx()&&(e=xa);for(var t=Vt(),a=null,r=Ms;r!==null;){var u=r.next,d=Zm(r,t);d===0?(r.next=null,a===null?Ms=u:a.next=u,u===null&&(Xl=a)):(a=r,(e!==0||(d&3)!==0)&&(zs=!0)),r=u}dt!==0&&dt!==5||Qi(e),xa!==0&&(xa=0)}function Zm(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,u=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var g=31-Gt(d),S=1<<g,C=u[g];C===-1?((S&a)===0||(S&r)!==0)&&(u[g]=w0(S,t)):C<=t&&(e.expiredLanes|=S),d&=~S}if(t=Ge,a=Re,a=Hr(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,a===0||e===t&&(Ue===2||Ue===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Go(r),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||fi(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(r!==null&&Go(r),Qo(a)){case 2:case 8:a=Bd;break;case 32:a=zr;break;case 268435456:a=Hd;break;default:a=zr}return r=Jm.bind(null,e),a=qo(a,r),e.callbackPriority=t,e.callbackNode=a,t}return r!==null&&r!==null&&Go(r),e.callbackPriority=2,e.callbackNode=null,2}function Jm(e,t){if(dt!==0&&dt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(ks()&&e.callbackNode!==a)return null;var r=Re;return r=Hr(e,e===Ge?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Om(e,r,t),Zm(e,Vt()),e.callbackNode!=null&&e.callbackNode===a?Jm.bind(null,e):null)}function Fm(e,t){if(ks())return null;Om(e,t,!0)}function PS(){ux(function(){(Le&6)!==0?qo(Ud,FS):Km()})}function _c(){if(xa===0){var e=Ol;e===0&&(e=Lr,Lr<<=1,(Lr&261888)===0&&(Lr=256)),xa=e}return xa}function Pm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Gr(""+e)}function Im(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function IS(e,t,a,r,u){if(t==="submit"&&a&&a.stateNode===u){var d=Pm((u[Ot]||null).action),g=r.submitter;g&&(t=(t=g[Ot]||null)?Pm(t.formAction):g.getAttribute("formAction"),t!==null&&(d=t,g=null));var S=new Kr("action","action",null,r,u);e.push({event:S,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(xa!==0){var C=g?Im(u,g):new FormData(u);Iu(a,{pending:!0,data:C,method:u.method,action:d},null,C)}}else typeof d=="function"&&(S.preventDefault(),C=g?Im(u,g):new FormData(u),Iu(a,{pending:!0,data:C,method:u.method,action:d},d,C))},currentTarget:u}]})}}for(var kc=0;kc<mu.length;kc++){var Mc=mu[kc],WS=Mc.toLowerCase(),ex=Mc[0].toUpperCase()+Mc.slice(1);gn(WS,"on"+ex)}gn(Ah,"onAnimationEnd"),gn(Oh,"onAnimationIteration"),gn(Dh,"onAnimationStart"),gn("dblclick","onDoubleClick"),gn("focusin","onFocus"),gn("focusout","onBlur"),gn(gS,"onTransitionRun"),gn(vS,"onTransitionStart"),gn(yS,"onTransitionCancel"),gn(_h,"onTransitionEnd"),gl("onMouseEnter",["mouseout","mouseover"]),gl("onMouseLeave",["mouseout","mouseover"]),gl("onPointerEnter",["pointerout","pointerover"]),gl("onPointerLeave",["pointerout","pointerover"]),Ua("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ua("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ua("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ua("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ua("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ua("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ki="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(" "),tx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ki));function Wm(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var r=e[a],u=r.event;r=r.listeners;e:{var d=void 0;if(t)for(var g=r.length-1;0<=g;g--){var S=r[g],C=S.instance,D=S.currentTarget;if(S=S.listener,C!==d&&u.isPropagationStopped())break e;d=S,u.currentTarget=D;try{d(u)}catch(V){Fr(V)}u.currentTarget=null,d=C}else for(g=0;g<r.length;g++){if(S=r[g],C=S.instance,D=S.currentTarget,S=S.listener,C!==d&&u.isPropagationStopped())break e;d=S,u.currentTarget=D;try{d(u)}catch(V){Fr(V)}u.currentTarget=null,d=C}}}}function Te(e,t){var a=t[Ko];a===void 0&&(a=t[Ko]=new Set);var r=e+"__bubble";a.has(r)||(eg(t,e,2,!1),a.add(r))}function zc(e,t,a){var r=0;t&&(r|=4),eg(a,e,r,t)}var Ls="_reactListening"+Math.random().toString(36).slice(2);function Lc(e){if(!e[Ls]){e[Ls]=!0,Kd.forEach(function(a){a!=="selectionchange"&&(tx.has(a)||zc(a,!1,e),zc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ls]||(t[Ls]=!0,zc("selectionchange",!1,t))}}function eg(e,t,a,r){switch(Ag(t)){case 2:var u=Ax;break;case 8:u=Ox;break;default:u=Pc}a=u.bind(null,t,a,e),u=void 0,!nu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),r?u!==void 0?e.addEventListener(t,a,{capture:!0,passive:u}):e.addEventListener(t,a,!0):u!==void 0?e.addEventListener(t,a,{passive:u}):e.addEventListener(t,a,!1)}function Uc(e,t,a,r,u){var d=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var g=r.tag;if(g===3||g===4){var S=r.stateNode.containerInfo;if(S===u)break;if(g===4)for(g=r.return;g!==null;){var C=g.tag;if((C===3||C===4)&&g.stateNode.containerInfo===u)return;g=g.return}for(;S!==null;){if(g=hl(S),g===null)return;if(C=g.tag,C===5||C===6||C===26||C===27){r=d=g;continue e}S=S.parentNode}}r=r.return}ih(function(){var D=d,V=eu(a),X=[];e:{var k=kh.get(e);if(k!==void 0){var L=Kr,le=e;switch(e){case"keypress":if(Xr(a)===0)break e;case"keydown":case"keyup":L=Z0;break;case"focusin":le="focus",L=ru;break;case"focusout":le="blur",L=ru;break;case"beforeblur":case"afterblur":L=ru;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=oh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=L0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=P0;break;case Ah:case Oh:case Dh:L=H0;break;case _h:L=W0;break;case"scroll":case"scrollend":L=M0;break;case"wheel":L=tS;break;case"copy":case"cut":case"paste":L=V0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=ch;break;case"toggle":case"beforetoggle":L=aS}var ue=(t&4)!==0,qe=!ue&&(e==="scroll"||e==="scrollend"),j=ue?k!==null?k+"Capture":null:k;ue=[];for(var N=D,O;N!==null;){var G=N;if(O=G.stateNode,G=G.tag,G!==5&&G!==26&&G!==27||O===null||j===null||(G=mi(N,j),G!=null&&ue.push(Zi(N,G,O))),qe)break;N=N.return}0<ue.length&&(k=new L(k,le,null,a,V),X.push({event:k,listeners:ue}))}}if((t&7)===0){e:{if(k=e==="mouseover"||e==="pointerover",L=e==="mouseout"||e==="pointerout",k&&a!==Wo&&(le=a.relatedTarget||a.fromElement)&&(hl(le)||le[dl]))break e;if((L||k)&&(k=V.window===V?V:(k=V.ownerDocument)?k.defaultView||k.parentWindow:window,L?(le=a.relatedTarget||a.toElement,L=D,le=le?hl(le):null,le!==null&&(qe=c(le),ue=le.tag,le!==qe||ue!==5&&ue!==27&&ue!==6)&&(le=null)):(L=null,le=D),L!==le)){if(ue=oh,G="onMouseLeave",j="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(ue=ch,G="onPointerLeave",j="onPointerEnter",N="pointer"),qe=L==null?k:pi(L),O=le==null?k:pi(le),k=new ue(G,N+"leave",L,a,V),k.target=qe,k.relatedTarget=O,G=null,hl(V)===D&&(ue=new ue(j,N+"enter",le,a,V),ue.target=O,ue.relatedTarget=qe,G=ue),qe=G,L&&le)t:{for(ue=nx,j=L,N=le,O=0,G=j;G;G=ue(G))O++;G=0;for(var oe=N;oe;oe=ue(oe))G++;for(;0<O-G;)j=ue(j),O--;for(;0<G-O;)N=ue(N),G--;for(;O--;){if(j===N||N!==null&&j===N.alternate){ue=j;break t}j=ue(j),N=ue(N)}ue=null}else ue=null;L!==null&&tg(X,k,L,ue,!1),le!==null&&qe!==null&&tg(X,qe,le,ue,!0)}}e:{if(k=D?pi(D):window,L=k.nodeName&&k.nodeName.toLowerCase(),L==="select"||L==="input"&&k.type==="file")var _e=yh;else if(gh(k))if(bh)_e=hS;else{_e=fS;var re=cS}else L=k.nodeName,!L||L.toLowerCase()!=="input"||k.type!=="checkbox"&&k.type!=="radio"?D&&Io(D.elementType)&&(_e=yh):_e=dS;if(_e&&(_e=_e(e,D))){vh(X,_e,a,V);break e}re&&re(e,k,D),e==="focusout"&&D&&k.type==="number"&&D.memoizedProps.value!=null&&Po(k,"number",k.value)}switch(re=D?pi(D):window,e){case"focusin":(gh(re)||re.contentEditable==="true")&&(El=re,du=D,wi=null);break;case"focusout":wi=du=El=null;break;case"mousedown":hu=!0;break;case"contextmenu":case"mouseup":case"dragend":hu=!1,Rh(X,a,V);break;case"selectionchange":if(mS)break;case"keydown":case"keyup":Rh(X,a,V)}var be;if(ou)e:{switch(e){case"compositionstart":var je="onCompositionStart";break e;case"compositionend":je="onCompositionEnd";break e;case"compositionupdate":je="onCompositionUpdate";break e}je=void 0}else xl?ph(e,a)&&(je="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(je="onCompositionStart");je&&(fh&&a.locale!=="ko"&&(xl||je!=="onCompositionStart"?je==="onCompositionEnd"&&xl&&(be=rh()):(ia=V,au="value"in ia?ia.value:ia.textContent,xl=!0)),re=Us(D,je),0<re.length&&(je=new uh(je,e,null,a,V),X.push({event:je,listeners:re}),be?je.data=be:(be=mh(a),be!==null&&(je.data=be)))),(be=iS?rS(e,a):sS(e,a))&&(je=Us(D,"onBeforeInput"),0<je.length&&(re=new uh("onBeforeInput","beforeinput",null,a,V),X.push({event:re,listeners:je}),re.data=be)),IS(X,e,D,a,V)}Wm(X,t)})}function Zi(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Us(e,t){for(var a=t+"Capture",r=[];e!==null;){var u=e,d=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||d===null||(u=mi(e,a),u!=null&&r.unshift(Zi(e,u,d)),u=mi(e,t),u!=null&&r.push(Zi(e,u,d))),e.tag===3)return r;e=e.return}return[]}function nx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function tg(e,t,a,r,u){for(var d=t._reactName,g=[];a!==null&&a!==r;){var S=a,C=S.alternate,D=S.stateNode;if(S=S.tag,C!==null&&C===r)break;S!==5&&S!==26&&S!==27||D===null||(C=D,u?(D=mi(a,d),D!=null&&g.unshift(Zi(a,D,C))):u||(D=mi(a,d),D!=null&&g.push(Zi(a,D,C)))),a=a.return}g.length!==0&&e.push({event:t,listeners:g})}var ax=/\r\n?/g,lx=/\u0000|\uFFFD/g;function ng(e){return(typeof e=="string"?e:""+e).replace(ax,`
24
+ `).replace(lx,"")}function ag(e,t){return t=ng(t),ng(e)===t}function Ve(e,t,a,r,u,d){switch(a){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||yl(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&yl(e,""+r);break;case"className":Vr(e,"class",r);break;case"tabIndex":Vr(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Vr(e,a,r);break;case"style":ah(e,r,d);break;case"data":if(t!=="object"){Vr(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=Gr(""+r),e.setAttribute(a,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof d=="function"&&(a==="formAction"?(t!=="input"&&Ve(e,t,"name",u.name,u,null),Ve(e,t,"formEncType",u.formEncType,u,null),Ve(e,t,"formMethod",u.formMethod,u,null),Ve(e,t,"formTarget",u.formTarget,u,null)):(Ve(e,t,"encType",u.encType,u,null),Ve(e,t,"method",u.method,u,null),Ve(e,t,"target",u.target,u,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=Gr(""+r),e.setAttribute(a,r);break;case"onClick":r!=null&&(e.onclick=Mn);break;case"onScroll":r!=null&&Te("scroll",e);break;case"onScrollEnd":r!=null&&Te("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(s(61));if(a=r.__html,a!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}a=Gr(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""+r):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":r===!0?e.setAttribute(a,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,r):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(a,r):e.removeAttribute(a);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(a):e.setAttribute(a,r);break;case"popover":Te("beforetoggle",e),Te("toggle",e),$r(e,"popover",r);break;case"xlinkActuate":kn(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":kn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":kn(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":kn(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":kn(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":kn(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":kn(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":kn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":kn(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":$r(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=_0.get(a)||a,$r(e,a,r))}}function Bc(e,t,a,r,u,d){switch(a){case"style":ah(e,r,d);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(s(61));if(a=r.__html,a!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof r=="string"?yl(e,r):(typeof r=="number"||typeof r=="bigint")&&yl(e,""+r);break;case"onScroll":r!=null&&Te("scroll",e);break;case"onScrollEnd":r!=null&&Te("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Mn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Zd.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),t=a.slice(2,u?a.length-7:void 0),d=e[Ot]||null,d=d!=null?d[a]:null,typeof d=="function"&&e.removeEventListener(t,d,u),typeof r=="function")){typeof d!="function"&&d!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,r,u);break e}a in e?e[a]=r:r===!0?e.setAttribute(a,""):$r(e,a,r)}}}function bt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Te("error",e),Te("load",e);var r=!1,u=!1,d;for(d in a)if(a.hasOwnProperty(d)){var g=a[d];if(g!=null)switch(d){case"src":r=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ve(e,t,d,g,a,null)}}u&&Ve(e,t,"srcSet",a.srcSet,a,null),r&&Ve(e,t,"src",a.src,a,null);return;case"input":Te("invalid",e);var S=d=g=u=null,C=null,D=null;for(r in a)if(a.hasOwnProperty(r)){var V=a[r];if(V!=null)switch(r){case"name":u=V;break;case"type":g=V;break;case"checked":C=V;break;case"defaultChecked":D=V;break;case"value":d=V;break;case"defaultValue":S=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(s(137,t));break;default:Ve(e,t,r,V,a,null)}}Wd(e,d,S,C,D,g,u,!1);return;case"select":Te("invalid",e),r=g=d=null;for(u in a)if(a.hasOwnProperty(u)&&(S=a[u],S!=null))switch(u){case"value":d=S;break;case"defaultValue":g=S;break;case"multiple":r=S;default:Ve(e,t,u,S,a,null)}t=d,a=g,e.multiple=!!r,t!=null?vl(e,!!r,t,!1):a!=null&&vl(e,!!r,a,!0);return;case"textarea":Te("invalid",e),d=u=r=null;for(g in a)if(a.hasOwnProperty(g)&&(S=a[g],S!=null))switch(g){case"value":r=S;break;case"defaultValue":u=S;break;case"children":d=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(s(91));break;default:Ve(e,t,g,S,a,null)}th(e,r,u,d);return;case"option":for(C in a)a.hasOwnProperty(C)&&(r=a[C],r!=null)&&(C==="selected"?e.selected=r&&typeof r!="function"&&typeof r!="symbol":Ve(e,t,C,r,a,null));return;case"dialog":Te("beforetoggle",e),Te("toggle",e),Te("cancel",e),Te("close",e);break;case"iframe":case"object":Te("load",e);break;case"video":case"audio":for(r=0;r<Ki.length;r++)Te(Ki[r],e);break;case"image":Te("error",e),Te("load",e);break;case"details":Te("toggle",e);break;case"embed":case"source":case"link":Te("error",e),Te("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(D in a)if(a.hasOwnProperty(D)&&(r=a[D],r!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ve(e,t,D,r,a,null)}return;default:if(Io(t)){for(V in a)a.hasOwnProperty(V)&&(r=a[V],r!==void 0&&Bc(e,t,V,r,a,void 0));return}}for(S in a)a.hasOwnProperty(S)&&(r=a[S],r!=null&&Ve(e,t,S,r,a,null))}function ix(e,t,a,r){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,g=null,S=null,C=null,D=null,V=null;for(L in a){var X=a[L];if(a.hasOwnProperty(L)&&X!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":C=X;default:r.hasOwnProperty(L)||Ve(e,t,L,null,r,X)}}for(var k in r){var L=r[k];if(X=a[k],r.hasOwnProperty(k)&&(L!=null||X!=null))switch(k){case"type":d=L;break;case"name":u=L;break;case"checked":D=L;break;case"defaultChecked":V=L;break;case"value":g=L;break;case"defaultValue":S=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(s(137,t));break;default:L!==X&&Ve(e,t,k,L,r,X)}}Fo(e,g,S,C,D,V,d,u);return;case"select":L=g=S=k=null;for(d in a)if(C=a[d],a.hasOwnProperty(d)&&C!=null)switch(d){case"value":break;case"multiple":L=C;default:r.hasOwnProperty(d)||Ve(e,t,d,null,r,C)}for(u in r)if(d=r[u],C=a[u],r.hasOwnProperty(u)&&(d!=null||C!=null))switch(u){case"value":k=d;break;case"defaultValue":S=d;break;case"multiple":g=d;default:d!==C&&Ve(e,t,u,d,r,C)}t=S,a=g,r=L,k!=null?vl(e,!!a,k,!1):!!r!=!!a&&(t!=null?vl(e,!!a,t,!0):vl(e,!!a,a?[]:"",!1));return;case"textarea":L=k=null;for(S in a)if(u=a[S],a.hasOwnProperty(S)&&u!=null&&!r.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Ve(e,t,S,null,r,u)}for(g in r)if(u=r[g],d=a[g],r.hasOwnProperty(g)&&(u!=null||d!=null))switch(g){case"value":k=u;break;case"defaultValue":L=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(s(91));break;default:u!==d&&Ve(e,t,g,u,r,d)}eh(e,k,L);return;case"option":for(var le in a)k=a[le],a.hasOwnProperty(le)&&k!=null&&!r.hasOwnProperty(le)&&(le==="selected"?e.selected=!1:Ve(e,t,le,null,r,k));for(C in r)k=r[C],L=a[C],r.hasOwnProperty(C)&&k!==L&&(k!=null||L!=null)&&(C==="selected"?e.selected=k&&typeof k!="function"&&typeof k!="symbol":Ve(e,t,C,k,r,L));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ue in a)k=a[ue],a.hasOwnProperty(ue)&&k!=null&&!r.hasOwnProperty(ue)&&Ve(e,t,ue,null,r,k);for(D in r)if(k=r[D],L=a[D],r.hasOwnProperty(D)&&k!==L&&(k!=null||L!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(s(137,t));break;default:Ve(e,t,D,k,r,L)}return;default:if(Io(t)){for(var qe in a)k=a[qe],a.hasOwnProperty(qe)&&k!==void 0&&!r.hasOwnProperty(qe)&&Bc(e,t,qe,void 0,r,k);for(V in r)k=r[V],L=a[V],!r.hasOwnProperty(V)||k===L||k===void 0&&L===void 0||Bc(e,t,V,k,r,L);return}}for(var j in a)k=a[j],a.hasOwnProperty(j)&&k!=null&&!r.hasOwnProperty(j)&&Ve(e,t,j,null,r,k);for(X in r)k=r[X],L=a[X],!r.hasOwnProperty(X)||k===L||k==null&&L==null||Ve(e,t,X,k,r,L)}function lg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function rx(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),r=0;r<a.length;r++){var u=a[r],d=u.transferSize,g=u.initiatorType,S=u.duration;if(d&&S&&lg(g)){for(g=0,S=u.responseEnd,r+=1;r<a.length;r++){var C=a[r],D=C.startTime;if(D>S)break;var V=C.transferSize,X=C.initiatorType;V&&lg(X)&&(C=C.responseEnd,g+=V*(C<S?1:(S-D)/(C-D)))}if(--r,t+=8*(d+g)/(u.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Hc=null,$c=null;function Bs(e){return e.nodeType===9?e:e.ownerDocument}function ig(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 rg(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 Vc(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 qc=null;function sx(){var e=window.event;return e&&e.type==="popstate"?e===qc?!1:(qc=e,!0):(qc=null,!1)}var sg=typeof setTimeout=="function"?setTimeout:void 0,ox=typeof clearTimeout=="function"?clearTimeout:void 0,og=typeof Promise=="function"?Promise:void 0,ux=typeof queueMicrotask=="function"?queueMicrotask:typeof og<"u"?function(e){return og.resolve(null).then(e).catch(cx)}:sg;function cx(e){setTimeout(function(){throw e})}function Ea(e){return e==="head"}function ug(e,t){var a=t,r=0;do{var u=a.nextSibling;if(e.removeChild(a),u&&u.nodeType===8)if(a=u.data,a==="/$"||a==="/&"){if(r===0){e.removeChild(u),Jl(t);return}r--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")r++;else if(a==="html")Ji(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Ji(a);for(var d=a.firstChild;d;){var g=d.nextSibling,S=d.nodeName;d[hi]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&d.rel.toLowerCase()==="stylesheet"||a.removeChild(d),d=g}}else a==="body"&&Ji(e.ownerDocument.body);a=u}while(a);Jl(t)}function cg(e,t){var a=e;e=0;do{var r=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),r&&r.nodeType===8)if(a=r.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=r}while(a)}function Gc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Gc(a),Zo(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function fx(e,t,a,r){for(;e.nodeType===1;){var u=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[hi])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=fn(e.nextSibling),e===null)break}return null}function dx(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=fn(e.nextSibling),e===null))return null;return e}function fg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=fn(e.nextSibling),e===null))return null;return e}function Yc(e){return e.data==="$?"||e.data==="$~"}function Xc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function hx(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var r=function(){t(),a.removeEventListener("DOMContentLoaded",r)};a.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function fn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Qc=null;function dg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return fn(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function hg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function pg(e,t,a){switch(t=Bs(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Ji(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Zo(e)}var dn=new Map,mg=new Set;function Hs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Fn=J.d;J.d={f:px,r:mx,D:gx,C:vx,L:yx,m:bx,X:xx,S:Sx,M:Ex};function px(){var e=Fn.f(),t=Os();return e||t}function mx(e){var t=pl(e);t!==null&&t.tag===5&&t.type==="form"?_p(t):Fn.r(e)}var Ql=typeof document>"u"?null:document;function gg(e,t,a){var r=Ql;if(r&&typeof t=="string"&&t){var u=an(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),mg.has(u)||(mg.add(u),e={rel:e,crossOrigin:a,href:t},r.querySelector(u)===null&&(t=r.createElement("link"),bt(t,"link",e),ht(t),r.head.appendChild(t)))}}function gx(e){Fn.D(e),gg("dns-prefetch",e,null)}function vx(e,t){Fn.C(e,t),gg("preconnect",e,t)}function yx(e,t,a){Fn.L(e,t,a);var r=Ql;if(r&&e&&t){var u='link[rel="preload"][as="'+an(t)+'"]';t==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+an(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+an(a.imageSizes)+'"]')):u+='[href="'+an(e)+'"]';var d=u;switch(t){case"style":d=Kl(e);break;case"script":d=Zl(e)}dn.has(d)||(e=v({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),dn.set(d,e),r.querySelector(u)!==null||t==="style"&&r.querySelector(Fi(d))||t==="script"&&r.querySelector(Pi(d))||(t=r.createElement("link"),bt(t,"link",e),ht(t),r.head.appendChild(t)))}}function bx(e,t){Fn.m(e,t);var a=Ql;if(a&&e){var r=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+an(r)+'"][href="'+an(e)+'"]',d=u;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Zl(e)}if(!dn.has(d)&&(e=v({rel:"modulepreload",href:e},t),dn.set(d,e),a.querySelector(u)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Pi(d)))return}r=a.createElement("link"),bt(r,"link",e),ht(r),a.head.appendChild(r)}}}function Sx(e,t,a){Fn.S(e,t,a);var r=Ql;if(r&&e){var u=ml(r).hoistableStyles,d=Kl(e);t=t||"default";var g=u.get(d);if(!g){var S={loading:0,preload:null};if(g=r.querySelector(Fi(d)))S.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},a),(a=dn.get(d))&&Kc(e,a);var C=g=r.createElement("link");ht(C),bt(C,"link",e),C._p=new Promise(function(D,V){C.onload=D,C.onerror=V}),C.addEventListener("load",function(){S.loading|=1}),C.addEventListener("error",function(){S.loading|=2}),S.loading|=4,$s(g,t,r)}g={type:"stylesheet",instance:g,count:1,state:S},u.set(d,g)}}}function xx(e,t){Fn.X(e,t);var a=Ql;if(a&&e){var r=ml(a).hoistableScripts,u=Zl(e),d=r.get(u);d||(d=a.querySelector(Pi(u)),d||(e=v({src:e,async:!0},t),(t=dn.get(u))&&Zc(e,t),d=a.createElement("script"),ht(d),bt(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},r.set(u,d))}}function Ex(e,t){Fn.M(e,t);var a=Ql;if(a&&e){var r=ml(a).hoistableScripts,u=Zl(e),d=r.get(u);d||(d=a.querySelector(Pi(u)),d||(e=v({src:e,async:!0,type:"module"},t),(t=dn.get(u))&&Zc(e,t),d=a.createElement("script"),ht(d),bt(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},r.set(u,d))}}function vg(e,t,a,r){var u=(u=we.current)?Hs(u):null;if(!u)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Kl(a.href),a=ml(u).hoistableStyles,r=a.get(t),r||(r={type:"style",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Kl(a.href);var d=ml(u).hoistableStyles,g=d.get(e);if(g||(u=u.ownerDocument||u,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,g),(d=u.querySelector(Fi(e)))&&!d._p&&(g.instance=d,g.state.loading=5),dn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},dn.set(e,a),d||wx(u,e,a,g.state))),t&&r===null)throw Error(s(528,""));return g}if(t&&r!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Zl(a),a=ml(u).hoistableScripts,r=a.get(t),r||(r={type:"script",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Kl(e){return'href="'+an(e)+'"'}function Fi(e){return'link[rel="stylesheet"]['+e+"]"}function yg(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function wx(e,t,a,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),bt(t,"link",a),ht(t),e.head.appendChild(t))}function Zl(e){return'[src="'+an(e)+'"]'}function Pi(e){return"script[async]"+e}function bg(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+an(a.href)+'"]');if(r)return t.instance=r,ht(r),r;var u=v({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),ht(r),bt(r,"style",u),$s(r,a.precedence,e),t.instance=r;case"stylesheet":u=Kl(a.href);var d=e.querySelector(Fi(u));if(d)return t.state.loading|=4,t.instance=d,ht(d),d;r=yg(a),(u=dn.get(u))&&Kc(r,u),d=(e.ownerDocument||e).createElement("link"),ht(d);var g=d;return g._p=new Promise(function(S,C){g.onload=S,g.onerror=C}),bt(d,"link",r),t.state.loading|=4,$s(d,a.precedence,e),t.instance=d;case"script":return d=Zl(a.src),(u=e.querySelector(Pi(d)))?(t.instance=u,ht(u),u):(r=a,(u=dn.get(d))&&(r=v({},a),Zc(r,u)),e=e.ownerDocument||e,u=e.createElement("script"),ht(u),bt(u,"link",r),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,$s(r,a.precedence,e));return t.instance}function $s(e,t,a){for(var r=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=r.length?r[r.length-1]:null,d=u,g=0;g<r.length;g++){var S=r[g];if(S.dataset.precedence===t)d=S;else if(d!==u)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Kc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Zc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Vs=null;function Sg(e,t,a){if(Vs===null){var r=new Map,u=Vs=new Map;u.set(a,r)}else u=Vs,r=u.get(a),r||(r=new Map,u.set(a,r));if(r.has(e))return r;for(r.set(e,null),a=a.getElementsByTagName(e),u=0;u<a.length;u++){var d=a[u];if(!(d[hi]||d[mt]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var g=d.getAttribute(t)||"";g=e+g;var S=r.get(g);S?S.push(d):r.set(g,[d])}}return r}function xg(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Cx(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Eg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Tx(e,t,a,r){if(a.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=Kl(r.href),d=t.querySelector(Fi(u));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=qs.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=d,ht(d);return}d=t.ownerDocument||t,r=yg(r),(u=dn.get(u))&&Kc(r,u),d=d.createElement("link"),ht(d);var g=d;g._p=new Promise(function(S,C){g.onload=S,g.onerror=C}),bt(d,"link",r),a.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=qs.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Jc=0;function Nx(e,t){return e.stylesheets&&e.count===0&&Ys(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var r=setTimeout(function(){if(e.stylesheets&&Ys(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+t);0<e.imgBytes&&Jc===0&&(Jc=62500*rx());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ys(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>Jc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(u)}}:null}function qs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ys(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Gs=null;function Ys(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Gs=new Map,t.forEach(Rx,e),Gs=null,qs.call(e))}function Rx(e,t){if(!(t.state.loading&4)){var a=Gs.get(e);if(a)var r=a.get(null);else{a=new Map,Gs.set(e,a);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<u.length;d++){var g=u[d];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(a.set(g.dataset.precedence,g),r=g)}r&&a.set(null,r)}u=t.instance,g=u.getAttribute("data-precedence"),d=a.get(g)||r,d===r&&a.set(null,u),a.set(g,u),this.count++,r=qs.bind(this),u.addEventListener("load",r),u.addEventListener("error",r),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:U,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function jx(e,t,a,r,u,d,g,S,C){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=Yo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yo(0),this.hiddenUpdates=Yo(null),this.identifierPrefix=r,this.onUncaughtError=u,this.onCaughtError=d,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function wg(e,t,a,r,u,d,g,S,C,D,V,X){return e=new jx(e,t,a,g,C,D,V,X,S),t=1,d===!0&&(t|=24),d=Xt(3,null,null,t),e.current=d,d.stateNode=e,t=ju(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:r,isDehydrated:a,cache:t},_u(d),e}function Cg(e){return e?(e=Tl,e):Tl}function Tg(e,t,a,r,u,d){u=Cg(u),r.context===null?r.context=u:r.pendingContext=u,r=fa(t),r.payload={element:a},d=d===void 0?null:d,d!==null&&(r.callback=d),a=da(e,r,t),a!==null&&(Lt(a,e,t),Oi(a,e,t))}function Ng(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Fc(e,t){Ng(e,t),(e=e.alternate)&&Ng(e,t)}function Rg(e){if(e.tag===13||e.tag===31){var t=Va(e,67108864);t!==null&&Lt(t,e,67108864),Fc(e,67108864)}}function jg(e){if(e.tag===13||e.tag===31){var t=Ft();t=Xo(t);var a=Va(e,t);a!==null&&Lt(a,e,t),Fc(e,t)}}var Xs=!0;function Ax(e,t,a,r){var u=z.T;z.T=null;var d=J.p;try{J.p=2,Pc(e,t,a,r)}finally{J.p=d,z.T=u}}function Ox(e,t,a,r){var u=z.T;z.T=null;var d=J.p;try{J.p=8,Pc(e,t,a,r)}finally{J.p=d,z.T=u}}function Pc(e,t,a,r){if(Xs){var u=Ic(r);if(u===null)Uc(e,t,r,Qs,a),Og(e,r);else if(_x(u,e,t,a,r))r.stopPropagation();else if(Og(e,r),t&4&&-1<Dx.indexOf(e)){for(;u!==null;){var d=pl(u);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var g=La(d.pendingLanes);if(g!==0){var S=d;for(S.pendingLanes|=2,S.entangledLanes|=2;g;){var C=1<<31-Gt(g);S.entanglements[1]|=C,g&=~C}jn(d),(Le&6)===0&&(js=Vt()+500,Qi(0))}}break;case 31:case 13:S=Va(d,2),S!==null&&Lt(S,d,2),Os(),Fc(d,2)}if(d=Ic(r),d===null&&Uc(e,t,r,Qs,a),d===u)break;u=d}u!==null&&r.stopPropagation()}else Uc(e,t,r,null,a)}}function Ic(e){return e=eu(e),Wc(e)}var Qs=null;function Wc(e){if(Qs=null,e=hl(e),e!==null){var t=c(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=f(t),e!==null)return e;e=null}else if(a===31){if(e=p(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Qs=e,null}function Ag(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(g0()){case Ud:return 2;case Bd:return 8;case zr:case v0:return 32;case Hd:return 268435456;default:return 32}default:return 32}}var ef=!1,wa=null,Ca=null,Ta=null,Wi=new Map,er=new Map,Na=[],Dx="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 Og(e,t){switch(e){case"focusin":case"focusout":wa=null;break;case"dragenter":case"dragleave":Ca=null;break;case"mouseover":case"mouseout":Ta=null;break;case"pointerover":case"pointerout":Wi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":er.delete(t.pointerId)}}function tr(e,t,a,r,u,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:a,eventSystemFlags:r,nativeEvent:d,targetContainers:[u]},t!==null&&(t=pl(t),t!==null&&Rg(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function _x(e,t,a,r,u){switch(t){case"focusin":return wa=tr(wa,e,t,a,r,u),!0;case"dragenter":return Ca=tr(Ca,e,t,a,r,u),!0;case"mouseover":return Ta=tr(Ta,e,t,a,r,u),!0;case"pointerover":var d=u.pointerId;return Wi.set(d,tr(Wi.get(d)||null,e,t,a,r,u)),!0;case"gotpointercapture":return d=u.pointerId,er.set(d,tr(er.get(d)||null,e,t,a,r,u)),!0}return!1}function Dg(e){var t=hl(e.target);if(t!==null){var a=c(t);if(a!==null){if(t=a.tag,t===13){if(t=f(a),t!==null){e.blockedOn=t,Xd(e.priority,function(){jg(a)});return}}else if(t===31){if(t=p(a),t!==null){e.blockedOn=t,Xd(e.priority,function(){jg(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ks(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Ic(e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);Wo=r,a.target.dispatchEvent(r),Wo=null}else return t=pl(a),t!==null&&Rg(t),e.blockedOn=a,!1;t.shift()}return!0}function _g(e,t,a){Ks(e)&&a.delete(t)}function kx(){ef=!1,wa!==null&&Ks(wa)&&(wa=null),Ca!==null&&Ks(Ca)&&(Ca=null),Ta!==null&&Ks(Ta)&&(Ta=null),Wi.forEach(_g),er.forEach(_g)}function Zs(e,t){e.blockedOn===t&&(e.blockedOn=null,ef||(ef=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,kx)))}var Js=null;function kg(e){Js!==e&&(Js=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Js===e&&(Js=null);for(var t=0;t<e.length;t+=3){var a=e[t],r=e[t+1],u=e[t+2];if(typeof r!="function"){if(Wc(r||a)===null)continue;break}var d=pl(a);d!==null&&(e.splice(t,3),t-=3,Iu(d,{pending:!0,data:u,method:a.method,action:r},r,u))}}))}function Jl(e){function t(C){return Zs(C,e)}wa!==null&&Zs(wa,e),Ca!==null&&Zs(Ca,e),Ta!==null&&Zs(Ta,e),Wi.forEach(t),er.forEach(t);for(var a=0;a<Na.length;a++){var r=Na[a];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Na.length&&(a=Na[0],a.blockedOn===null);)Dg(a),a.blockedOn===null&&Na.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(r=0;r<a.length;r+=3){var u=a[r],d=a[r+1],g=u[Ot]||null;if(typeof d=="function")g||kg(a);else if(g){var S=null;if(d&&d.hasAttribute("formAction")){if(u=d,g=d[Ot]||null)S=g.formAction;else if(Wc(u)!==null)continue}else S=g.action;typeof S=="function"?a[r+1]=S:(a.splice(r,3),r-=3),kg(a)}}}function Mg(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(g){return u=g})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),r||setTimeout(a,20)}function a(){if(!r&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function tf(e){this._internalRoot=e}Fs.prototype.render=tf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,r=Ft();Tg(a,r,e,t,null,null)},Fs.prototype.unmount=tf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Tg(e.current,2,null,e,null,null),Os(),t[dl]=null}};function Fs(e){this._internalRoot=e}Fs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Yd();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Na.length&&t!==0&&t<Na[a].priority;a++);Na.splice(a,0,e),a===0&&Dg(e)}};var zg=n.version;if(zg!=="19.2.3")throw Error(s(527,zg,"19.2.3"));J.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=m(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var Mx={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ps=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ps.isDisabled&&Ps.supportsFiber)try{ci=Ps.inject(Mx),qt=Ps}catch{}}return sr.createRoot=function(e,t){if(!o(e))throw Error(s(299));var a=!1,r="",u=qp,d=Gp,g=Yp;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError)),t=wg(e,1,!1,null,null,a,r,null,u,d,g,Mg),e[dl]=t.current,Lc(e),new tf(t)},sr.hydrateRoot=function(e,t,a){if(!o(e))throw Error(s(299));var r=!1,u="",d=qp,g=Gp,S=Yp,C=null;return a!=null&&(a.unstable_strictMode===!0&&(r=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(d=a.onUncaughtError),a.onCaughtError!==void 0&&(g=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError),a.formState!==void 0&&(C=a.formState)),t=wg(e,1,!0,t,a??null,r,u,C,d,g,S,Mg),t.context=Cg(null),a=t.current,r=Ft(),r=Xo(r),u=fa(r),u.callback=null,da(a,u,r),a=r,t.current.lanes=a,di(t,a),jn(t),e[dl]=t.current,Lc(e),new Fs(t)},sr.version="19.2.3",sr}var Ev;function h2(){if(Ev)return Cf.exports;Ev=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(n){console.error(n)}}return l(),Cf.exports=d2(),Cf.exports}var p2=h2();const m2=$v(p2);var wv="popstate";function g2(l={}){function n(o,c){let{pathname:f="/",search:p="",hash:h=""}=ol(o.location.hash.substring(1));return!f.startsWith("/")&&!f.startsWith(".")&&(f="/"+f),qf("",{pathname:f,search:p,hash:h},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function i(o,c){let f=o.document.querySelector("base"),p="";if(f&&f.getAttribute("href")){let h=o.location.href,m=h.indexOf("#");p=m===-1?h:h.slice(0,m)}return p+"#"+(typeof c=="string"?c:Nr(c))}function s(o,c){Wt(o.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(c)})`)}return y2(n,i,s,l)}function Pe(l,n){if(l===!1||l===null||typeof l>"u")throw new Error(n)}function Wt(l,n){if(!l){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function v2(){return Math.random().toString(36).substring(2,10)}function Cv(l,n){return{usr:l.state,key:l.key,idx:n}}function qf(l,n,i=null,s){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof n=="string"?ol(n):n,state:i,key:n&&n.key||s||v2()}}function Nr({pathname:l="/",search:n="",hash:i=""}){return n&&n!=="?"&&(l+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(l+=i.charAt(0)==="#"?i:"#"+i),l}function ol(l){let n={};if(l){let i=l.indexOf("#");i>=0&&(n.hash=l.substring(i),l=l.substring(0,i));let s=l.indexOf("?");s>=0&&(n.search=l.substring(s),l=l.substring(0,s)),l&&(n.pathname=l)}return n}function y2(l,n,i,s={}){let{window:o=document.defaultView,v5Compat:c=!1}=s,f=o.history,p="POP",h=null,m=y();m==null&&(m=0,f.replaceState({...f.state,idx:m},""));function y(){return(f.state||{idx:null}).idx}function v(){p="POP";let B=y(),Q=B==null?null:B-m;m=B,h&&h({action:p,location:A.location,delta:Q})}function x(B,Q){p="PUSH";let M=qf(A.location,B,Q);i&&i(M,B),m=y()+1;let U=Cv(M,m),P=A.createHref(M);try{f.pushState(U,"",P)}catch(ee){if(ee instanceof DOMException&&ee.name==="DataCloneError")throw ee;o.location.assign(P)}c&&h&&h({action:p,location:A.location,delta:1})}function E(B,Q){p="REPLACE";let M=qf(A.location,B,Q);i&&i(M,B),m=y();let U=Cv(M,m),P=A.createHref(M);f.replaceState(U,"",P),c&&h&&h({action:p,location:A.location,delta:0})}function R(B){return b2(B)}let A={get action(){return p},get location(){return l(o,f)},listen(B){if(h)throw new Error("A history only accepts one active listener");return o.addEventListener(wv,v),h=B,()=>{o.removeEventListener(wv,v),h=null}},createHref(B){return n(o,B)},createURL:R,encodeLocation(B){let Q=R(B);return{pathname:Q.pathname,search:Q.search,hash:Q.hash}},push:x,replace:E,go(B){return f.go(B)}};return A}function b2(l,n=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),Pe(i,"No window.location.(origin|href) available to create URL");let s=typeof l=="string"?l:Nr(l);return s=s.replace(/ $/,"%20"),!n&&s.startsWith("//")&&(s=i+s),new URL(s,i)}function hy(l,n,i="/"){return S2(l,n,i,!1)}function S2(l,n,i,s){let o=typeof n=="string"?ol(n):n,c=ta(o.pathname||"/",i);if(c==null)return null;let f=py(l);x2(f);let p=null;for(let h=0;p==null&&h<f.length;++h){let m=_2(c);p=O2(f[h],m,s)}return p}function py(l,n=[],i=[],s="",o=!1){let c=(f,p,h=o,m)=>{let y={relativePath:m===void 0?f.path||"":m,caseSensitive:f.caseSensitive===!0,childrenIndex:p,route:f};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(s)&&h)return;Pe(y.relativePath.startsWith(s),`Absolute route path "${y.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(s.length)}let v=Wn([s,y.relativePath]),x=i.concat(y);f.children&&f.children.length>0&&(Pe(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),py(f.children,n,x,v,h)),!(f.path==null&&!f.index)&&n.push({path:v,score:j2(v,f.index),routesMeta:x})};return l.forEach((f,p)=>{if(f.path===""||!f.path?.includes("?"))c(f,p);else for(let h of my(f.path))c(f,p,!0,h)}),n}function my(l){let n=l.split("/");if(n.length===0)return[];let[i,...s]=n,o=i.endsWith("?"),c=i.replace(/\?$/,"");if(s.length===0)return o?[c,""]:[c];let f=my(s.join("/")),p=[];return p.push(...f.map(h=>h===""?c:[c,h].join("/"))),o&&p.push(...f),p.map(h=>l.startsWith("/")&&h===""?"/":h)}function x2(l){l.sort((n,i)=>n.score!==i.score?i.score-n.score:A2(n.routesMeta.map(s=>s.childrenIndex),i.routesMeta.map(s=>s.childrenIndex)))}var E2=/^:[\w-]+$/,w2=3,C2=2,T2=1,N2=10,R2=-2,Tv=l=>l==="*";function j2(l,n){let i=l.split("/"),s=i.length;return i.some(Tv)&&(s+=R2),n&&(s+=C2),i.filter(o=>!Tv(o)).reduce((o,c)=>o+(E2.test(c)?w2:c===""?T2:N2),s)}function A2(l,n){return l.length===n.length&&l.slice(0,-1).every((s,o)=>s===n[o])?l[l.length-1]-n[n.length-1]:0}function O2(l,n,i=!1){let{routesMeta:s}=l,o={},c="/",f=[];for(let p=0;p<s.length;++p){let h=s[p],m=p===s.length-1,y=c==="/"?n:n.slice(c.length)||"/",v=No({path:h.relativePath,caseSensitive:h.caseSensitive,end:m},y),x=h.route;if(!v&&m&&i&&!s[s.length-1].route.index&&(v=No({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},y)),!v)return null;Object.assign(o,v.params),f.push({params:o,pathname:Wn([c,v.pathname]),pathnameBase:L2(Wn([c,v.pathnameBase])),route:x}),v.pathnameBase!=="/"&&(c=Wn([c,v.pathnameBase]))}return f}function No(l,n){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[i,s]=D2(l.path,l.caseSensitive,l.end),o=n.match(i);if(!o)return null;let c=o[0],f=c.replace(/(.)\/+$/,"$1"),p=o.slice(1);return{params:s.reduce((m,{paramName:y,isOptional:v},x)=>{if(y==="*"){let R=p[x]||"";f=c.slice(0,c.length-R.length).replace(/(.)\/+$/,"$1")}const E=p[x];return v&&!E?m[y]=void 0:m[y]=(E||"").replace(/%2F/g,"/"),m},{}),pathname:c,pathnameBase:f,pattern:l}}function D2(l,n=!1,i=!0){Wt(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let s=[],o="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,p,h)=>(s.push({paramName:p,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(s.push({paramName:"*"}),o+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?o+="\\/*$":l!==""&&l!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,n?void 0:"i"),s]}function _2(l){try{return l.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return Wt(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),l}}function ta(l,n){if(n==="/")return l;if(!l.toLowerCase().startsWith(n.toLowerCase()))return null;let i=n.endsWith("/")?n.length-1:n.length,s=l.charAt(i);return s&&s!=="/"?null:l.slice(i)||"/"}var gy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,k2=l=>gy.test(l);function M2(l,n="/"){let{pathname:i,search:s="",hash:o=""}=typeof l=="string"?ol(l):l,c;if(i)if(k2(i))c=i;else{if(i.includes("//")){let f=i;i=i.replace(/\/\/+/g,"/"),Wt(!1,`Pathnames cannot have embedded double slashes - normalizing ${f} -> ${i}`)}i.startsWith("/")?c=Nv(i.substring(1),"/"):c=Nv(i,n)}else c=n;return{pathname:c,search:U2(s),hash:B2(o)}}function Nv(l,n){let i=n.replace(/\/+$/,"").split("/");return l.split("/").forEach(o=>{o===".."?i.length>1&&i.pop():o!=="."&&i.push(o)}),i.length>1?i.join("/"):"/"}function jf(l,n,i,s){return`Cannot include a '${l}' character in a manually specified \`to.${n}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function z2(l){return l.filter((n,i)=>i===0||n.route.path&&n.route.path.length>0)}function id(l){let n=z2(l);return n.map((i,s)=>s===n.length-1?i.pathname:i.pathnameBase)}function rd(l,n,i,s=!1){let o;typeof l=="string"?o=ol(l):(o={...l},Pe(!o.pathname||!o.pathname.includes("?"),jf("?","pathname","search",o)),Pe(!o.pathname||!o.pathname.includes("#"),jf("#","pathname","hash",o)),Pe(!o.search||!o.search.includes("#"),jf("#","search","hash",o)));let c=l===""||o.pathname==="",f=c?"/":o.pathname,p;if(f==null)p=i;else{let v=n.length-1;if(!s&&f.startsWith("..")){let x=f.split("/");for(;x[0]==="..";)x.shift(),v-=1;o.pathname=x.join("/")}p=v>=0?n[v]:"/"}let h=M2(o,p),m=f&&f!=="/"&&f.endsWith("/"),y=(c||f===".")&&i.endsWith("/");return!h.pathname.endsWith("/")&&(m||y)&&(h.pathname+="/"),h}var Wn=l=>l.join("/").replace(/\/\/+/g,"/"),L2=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),U2=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,B2=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,H2=class{constructor(l,n,i,s=!1){this.status=l,this.statusText=n||"",this.internal=s,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}};function $2(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}function V2(l){return l.map(n=>n.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var vy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function yy(l,n){let i=l;if(typeof i!="string"||!gy.test(i))return{absoluteURL:void 0,isExternal:!1,to:i};let s=i,o=!1;if(vy)try{let c=new URL(window.location.href),f=i.startsWith("//")?new URL(c.protocol+i):new URL(i),p=ta(f.pathname,n);f.origin===c.origin&&p!=null?i=p+f.search+f.hash:o=!0}catch{Wt(!1,`<Link to="${i}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:o,to:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var by=["POST","PUT","PATCH","DELETE"];new Set(by);var q2=["GET",...by];new Set(q2);var ii=w.createContext(null);ii.displayName="DataRouter";var ko=w.createContext(null);ko.displayName="DataRouterState";var G2=w.createContext(!1),Sy=w.createContext({isTransitioning:!1});Sy.displayName="ViewTransition";var Y2=w.createContext(new Map);Y2.displayName="Fetchers";var X2=w.createContext(null);X2.displayName="Await";var en=w.createContext(null);en.displayName="Navigation";var Dr=w.createContext(null);Dr.displayName="Location";var wn=w.createContext({outlet:null,matches:[],isDataRoute:!1});wn.displayName="Route";var sd=w.createContext(null);sd.displayName="RouteError";var xy="REACT_ROUTER_ERROR",Q2="REDIRECT",K2="ROUTE_ERROR_RESPONSE";function Z2(l){if(l.startsWith(`${xy}:${Q2}:{`))try{let n=JSON.parse(l.slice(28));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.location=="string"&&typeof n.reloadDocument=="boolean"&&typeof n.replace=="boolean")return n}catch{}}function J2(l){if(l.startsWith(`${xy}:${K2}:{`))try{let n=JSON.parse(l.slice(40));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string")return new H2(n.status,n.statusText,n.data)}catch{}}function F2(l,{relative:n}={}){Pe(ri(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:s}=w.useContext(en),{hash:o,pathname:c,search:f}=_r(l,{relative:n}),p=c;return i!=="/"&&(p=c==="/"?i:Wn([i,c])),s.createHref({pathname:p,search:f,hash:o})}function ri(){return w.useContext(Dr)!=null}function ka(){return Pe(ri(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(Dr).location}var Ey="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function wy(l){w.useContext(en).static||w.useLayoutEffect(l)}function si(){let{isDataRoute:l}=w.useContext(wn);return l?cT():P2()}function P2(){Pe(ri(),"useNavigate() may be used only in the context of a <Router> component.");let l=w.useContext(ii),{basename:n,navigator:i}=w.useContext(en),{matches:s}=w.useContext(wn),{pathname:o}=ka(),c=JSON.stringify(id(s)),f=w.useRef(!1);return wy(()=>{f.current=!0}),w.useCallback((h,m={})=>{if(Wt(f.current,Ey),!f.current)return;if(typeof h=="number"){i.go(h);return}let y=rd(h,JSON.parse(c),o,m.relative==="path");l==null&&n!=="/"&&(y.pathname=y.pathname==="/"?n:Wn([n,y.pathname])),(m.replace?i.replace:i.push)(y,m.state,m)},[n,i,c,o,l])}w.createContext(null);function I2(){let{matches:l}=w.useContext(wn),n=l[l.length-1];return n?n.params:{}}function _r(l,{relative:n}={}){let{matches:i}=w.useContext(wn),{pathname:s}=ka(),o=JSON.stringify(id(i));return w.useMemo(()=>rd(l,JSON.parse(o),s,n==="path"),[l,o,s,n])}function W2(l,n){return Cy(l,n)}function Cy(l,n,i,s,o){Pe(ri(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=w.useContext(en),{matches:f}=w.useContext(wn),p=f[f.length-1],h=p?p.params:{},m=p?p.pathname:"/",y=p?p.pathnameBase:"/",v=p&&p.route;{let M=v&&v.path||"";Ny(m,!v||M.endsWith("*")||M.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${M}">) 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.
20
25
 
21
- Please change the parent <Route path="${M}"> to <Route path="${M==="/"?"*":`${M}/*`}">.`)}let x=_a(),E;if(n){let M=typeof n=="string"?il(n):n;Pe(v==="/"||M.pathname?.startsWith(v),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${v}" but pathname "${M.pathname}" was given in the \`location\` prop.`),E=M}else E=x;let N=E.pathname||"/",O=N;if(v!=="/"){let M=v.replace(/^\//,"").split("/");O="/"+N.replace(/^\//,"").split("/").slice(M.length).join("/")}let L=Yv(l,{pathname:O});Wt(y||L!=null,`No routes matched location "${E.pathname}${E.search}${E.hash}" `),Wt(L==null||L[L.length-1].route.element!==void 0||L[L.length-1].route.Component!==void 0||L[L.length-1].route.lazy!==void 0,`Matched leaf route at location "${E.pathname}${E.search}${E.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let Q=ZC(L&&L.map(M=>Object.assign({},M,{params:Object.assign({},h,M.params),pathname:In([v,c.encodeLocation?c.encodeLocation(M.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathname]),pathnameBase:M.pathnameBase==="/"?v:In([v,c.encodeLocation?c.encodeLocation(M.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathnameBase])})),d,i,s,o);return n&&Q?w.createElement(Nr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...E},navigationType:"POP"}},Q):Q}function YC(){let l=WC(),n=AC(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),i=l instanceof Error?l.stack:null,s="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:s},c={padding:"2px 4px",backgroundColor:s},d=null;return console.error("Error handled by React Router default ErrorBoundary:",l),d=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:c},"ErrorBoundary")," or"," ",w.createElement("code",{style:c},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},n),i?w.createElement("pre",{style:o},i):null,d)}var XC=w.createElement(YC,null),ny=class extends w.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,n){return n.location!==l.location||n.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:n.error,location:n.location,revalidation:l.revalidation||n.revalidation}}componentDidCatch(l,n){this.props.onError?this.props.onError(l,n):console.error("React Router caught the following error during render",l)}render(){let l=this.state.error;if(this.context&&typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){const i=HC(l.digest);i&&(l=i)}let n=l!==void 0?w.createElement(wn.Provider,{value:this.props.routeContext},w.createElement(Zf.Provider,{value:l,children:this.props.component})):this.props.children;return this.context?w.createElement(QC,{error:l},n):n}};ny.contextType=kC;var df=new WeakMap;function QC({children:l,error:n}){let{basename:i}=w.useContext(en);if(typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){let s=BC(n.digest);if(s){let o=df.get(n);if(o)throw o;let c=Jv(s.location,i);if(Zv&&!df.get(n))if(c.isExternal||s.reloadDocument)window.location.href=c.absoluteURL||c.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:s.replace}));throw df.set(n,d),d}return w.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return l}function KC({routeContext:l,match:n,children:i}){let s=w.useContext(ni);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),w.createElement(wn.Provider,{value:l},i)}function ZC(l,n=[],i=null,s=null,o=null){if(l==null){if(!i)return null;if(i.errors)l=i.matches;else if(n.length===0&&!i.initialized&&i.matches.length>0)l=i.matches;else return null}let c=l,d=i?.errors;if(d!=null){let v=c.findIndex(y=>y.route.id&&d?.[y.route.id]!==void 0);Pe(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),c=c.slice(0,Math.min(c.length,v+1))}let p=!1,h=-1;if(i)for(let v=0;v<c.length;v++){let y=c[v];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(h=v),y.route.id){let{loaderData:x,errors:E}=i,N=y.route.loader&&!x.hasOwnProperty(y.route.id)&&(!E||E[y.route.id]===void 0);if(y.route.lazy||N){p=!0,h>=0?c=c.slice(0,h+1):c=[c[0]];break}}}let m=i&&s?(v,y)=>{s(v,{location:i.location,params:i.matches?.[0]?.params??{},unstable_pattern:DC(i.matches),errorInfo:y})}:void 0;return c.reduceRight((v,y,x)=>{let E,N=!1,O=null,L=null;i&&(E=d&&y.route.id?d[y.route.id]:void 0,O=y.route.errorElement||XC,p&&(h<0&&x===0?(ay("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),N=!0,L=null):h===x&&(N=!0,L=y.route.hydrateFallbackElement||null)));let Q=n.concat(c.slice(0,x+1)),M=()=>{let B;return E?B=O:N?B=L:y.route.Component?B=w.createElement(y.route.Component,null):y.route.element?B=y.route.element:B=v,w.createElement(KC,{match:y,routeContext:{outlet:v,matches:Q,isDataRoute:i!=null},children:B})};return i&&(y.route.ErrorBoundary||y.route.errorElement||x===0)?w.createElement(ny,{location:i.location,revalidation:i.revalidation,component:O,error:E,children:M(),routeContext:{outlet:null,matches:Q,isDataRoute:!0},onError:m}):M()},null)}function Jf(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function JC(l){let n=w.useContext(ni);return Pe(n,Jf(l)),n}function FC(l){let n=w.useContext(jo);return Pe(n,Jf(l)),n}function PC(l){let n=w.useContext(wn);return Pe(n,Jf(l)),n}function Ff(l){let n=PC(l),i=n.matches[n.matches.length-1];return Pe(i.route.id,`${l} can only be used on routes that contain a unique "id"`),i.route.id}function IC(){return Ff("useRouteId")}function WC(){let l=w.useContext(Zf),n=FC("useRouteError"),i=Ff("useRouteError");return l!==void 0?l:n.errors?.[i]}function e2(){let{router:l}=JC("useNavigate"),n=Ff("useNavigate"),i=w.useRef(!1);return ey(()=>{i.current=!0}),w.useCallback(async(o,c={})=>{Wt(i.current,Wv),i.current&&(typeof o=="number"?await l.navigate(o):await l.navigate(o,{fromRouteId:n,...c}))},[l,n])}var sv={};function ay(l,n,i){!n&&!sv[l]&&(sv[l]=!0,Wt(!1,i))}w.memo(t2);function t2({routes:l,future:n,state:i,onError:s}){return ty(l,void 0,i,s,n)}function n2({to:l,replace:n,state:i,relative:s}){Pe(ai(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=w.useContext(en);Wt(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:c}=w.useContext(wn),{pathname:d}=_a(),p=li(),h=Kf(l,Qf(c),d,s==="path"),m=JSON.stringify(h);return w.useEffect(()=>{p(JSON.parse(m),{replace:n,state:i,relative:s})},[p,m,s,n,i]),null}function ro(l){Pe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function a2({basename:l="/",children:n=null,location:i,navigationType:s="POP",navigator:o,static:c=!1,unstable_useTransitions:d}){Pe(!ai(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=l.replace(/^\/*/,"/"),h=w.useMemo(()=>({basename:p,navigator:o,static:c,unstable_useTransitions:d,future:{}}),[p,o,c,d]);typeof i=="string"&&(i=il(i));let{pathname:m="/",search:v="",hash:y="",state:x=null,key:E="default"}=i,N=w.useMemo(()=>{let O=ea(m,p);return O==null?null:{location:{pathname:O,search:v,hash:y,state:x,key:E},navigationType:s}},[p,m,v,y,x,E,s]);return Wt(N!=null,`<Router basename="${p}"> is not able to match the URL "${m}${v}${y}" because it does not start with the basename, so the <Router> won't render anything.`),N==null?null:w.createElement(en.Provider,{value:h},w.createElement(Nr.Provider,{children:n,value:N}))}function l2({children:l,location:n}){return GC(zf(l),n)}function zf(l,n=[]){let i=[];return w.Children.forEach(l,(s,o)=>{if(!w.isValidElement(s))return;let c=[...n,o];if(s.type===w.Fragment){i.push.apply(i,zf(s.props.children,c));return}Pe(s.type===ro,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Pe(!s.props.index||!s.props.children,"An index route cannot have child routes.");let d={id:s.props.id||c.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(d.children=zf(s.props.children,c)),i.push(d)}),i}var so="get",oo="application/x-www-form-urlencoded";function Oo(l){return typeof HTMLElement<"u"&&l instanceof HTMLElement}function i2(l){return Oo(l)&&l.tagName.toLowerCase()==="button"}function r2(l){return Oo(l)&&l.tagName.toLowerCase()==="form"}function s2(l){return Oo(l)&&l.tagName.toLowerCase()==="input"}function o2(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function u2(l,n){return l.button===0&&(!n||n==="_self")&&!o2(l)}var Fs=null;function c2(){if(Fs===null)try{new FormData(document.createElement("form"),0),Fs=!1}catch{Fs=!0}return Fs}var f2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function hf(l){return l!=null&&!f2.has(l)?(Wt(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${oo}"`),null):l}function d2(l,n){let i,s,o,c,d;if(r2(l)){let p=l.getAttribute("action");s=p?ea(p,n):null,i=l.getAttribute("method")||so,o=hf(l.getAttribute("enctype"))||oo,c=new FormData(l)}else if(i2(l)||s2(l)&&(l.type==="submit"||l.type==="image")){let p=l.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=l.getAttribute("formaction")||p.getAttribute("action");if(s=h?ea(h,n):null,i=l.getAttribute("formmethod")||p.getAttribute("method")||so,o=hf(l.getAttribute("formenctype"))||hf(p.getAttribute("enctype"))||oo,c=new FormData(p,l),!c2()){let{name:m,type:v,value:y}=l;if(v==="image"){let x=m?`${m}.`:"";c.append(`${x}x`,"0"),c.append(`${x}y`,"0")}else m&&c.append(m,y)}}else{if(Oo(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=so,s=null,o=oo,d=l}return c&&o==="text/plain"&&(d=c,c=void 0),{action:s,method:i.toLowerCase(),encType:o,formData:c,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Pf(l,n){if(l===!1||l===null||typeof l>"u")throw new Error(n)}function h2(l,n,i,s){let o=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return i?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${s}`:o.pathname=`${o.pathname}.${s}`:o.pathname==="/"?o.pathname=`_root.${s}`:n&&ea(o.pathname,n)==="/"?o.pathname=`${n.replace(/\/$/,"")}/_root.${s}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${s}`,o}async function p2(l,n){if(l.id in n)return n[l.id];try{let i=await import(l.module);return n[l.id]=i,i}catch(i){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function m2(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function g2(l,n,i){let s=await Promise.all(l.map(async o=>{let c=n.routes[o.route.id];if(c){let d=await p2(c,i);return d.links?d.links():[]}return[]}));return S2(s.flat(1).filter(m2).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function ov(l,n,i,s,o,c){let d=(h,m)=>i[m]?h.route.id!==i[m].route.id:!0,p=(h,m)=>i[m].pathname!==h.pathname||i[m].route.path?.endsWith("*")&&i[m].params["*"]!==h.params["*"];return c==="assets"?n.filter((h,m)=>d(h,m)||p(h,m)):c==="data"?n.filter((h,m)=>{let v=s.routes[h.route.id];if(!v||!v.hasLoader)return!1;if(d(h,m)||p(h,m))return!0;if(h.route.shouldRevalidate){let y=h.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:i[0]?.params||{},nextUrl:new URL(l,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function v2(l,n,{includeHydrateFallback:i}={}){return y2(l.map(s=>{let o=n.routes[s.route.id];if(!o)return[];let c=[o.module];return o.clientActionModule&&(c=c.concat(o.clientActionModule)),o.clientLoaderModule&&(c=c.concat(o.clientLoaderModule)),i&&o.hydrateFallbackModule&&(c=c.concat(o.hydrateFallbackModule)),o.imports&&(c=c.concat(o.imports)),c}).flat(1))}function y2(l){return[...new Set(l)]}function b2(l){let n={},i=Object.keys(l).sort();for(let s of i)n[s]=l[s];return n}function S2(l,n){let i=new Set;return new Set(n),l.reduce((s,o)=>{let c=JSON.stringify(b2(o));return i.has(c)||(i.add(c),s.push({key:c,link:o})),s},[])}function ly(){let l=w.useContext(ni);return Pf(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function x2(){let l=w.useContext(jo);return Pf(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var If=w.createContext(void 0);If.displayName="FrameworkContext";function iy(){let l=w.useContext(If);return Pf(l,"You must render this element inside a <HydratedRouter> element"),l}function E2(l,n){let i=w.useContext(If),[s,o]=w.useState(!1),[c,d]=w.useState(!1),{onFocus:p,onBlur:h,onMouseEnter:m,onMouseLeave:v,onTouchStart:y}=n,x=w.useRef(null);w.useEffect(()=>{if(l==="render"&&d(!0),l==="viewport"){let O=Q=>{Q.forEach(M=>{d(M.isIntersecting)})},L=new IntersectionObserver(O,{threshold:.5});return x.current&&L.observe(x.current),()=>{L.disconnect()}}},[l]),w.useEffect(()=>{if(s){let O=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(O)}}},[s]);let E=()=>{o(!0)},N=()=>{o(!1),d(!1)};return i?l!=="intent"?[c,x,{}]:[c,x,{onFocus:nr(p,E),onBlur:nr(h,N),onMouseEnter:nr(m,E),onMouseLeave:nr(v,N),onTouchStart:nr(y,E)}]:[!1,x,{}]}function nr(l,n){return i=>{l&&l(i),i.defaultPrevented||n(i)}}function w2({page:l,...n}){let{router:i}=ly(),s=w.useMemo(()=>Yv(i.routes,l,i.basename),[i.routes,l,i.basename]);return s?w.createElement(T2,{page:l,matches:s,...n}):null}function C2(l){let{manifest:n,routeModules:i}=iy(),[s,o]=w.useState([]);return w.useEffect(()=>{let c=!1;return g2(l,n,i).then(d=>{c||o(d)}),()=>{c=!0}},[l,n,i]),s}function T2({page:l,matches:n,...i}){let s=_a(),{future:o,manifest:c,routeModules:d}=iy(),{basename:p}=ly(),{loaderData:h,matches:m}=x2(),v=w.useMemo(()=>ov(l,n,m,c,s,"data"),[l,n,m,c,s]),y=w.useMemo(()=>ov(l,n,m,c,s,"assets"),[l,n,m,c,s]),x=w.useMemo(()=>{if(l===s.pathname+s.search+s.hash)return[];let O=new Set,L=!1;if(n.forEach(M=>{let B=c.routes[M.route.id];!B||!B.hasLoader||(!v.some(P=>P.route.id===M.route.id)&&M.route.id in h&&d[M.route.id]?.shouldRevalidate||B.hasClientLoader?L=!0:O.add(M.route.id))}),O.size===0)return[];let Q=h2(l,p,o.unstable_trailingSlashAwareDataRequests,"data");return L&&O.size>0&&Q.searchParams.set("_routes",n.filter(M=>O.has(M.route.id)).map(M=>M.route.id).join(",")),[Q.pathname+Q.search]},[p,o.unstable_trailingSlashAwareDataRequests,h,s,c,v,n,l,d]),E=w.useMemo(()=>v2(y,c),[y,c]),N=C2(y);return w.createElement(w.Fragment,null,x.map(O=>w.createElement("link",{key:O,rel:"prefetch",as:"fetch",href:O,...i})),E.map(O=>w.createElement("link",{key:O,rel:"modulepreload",href:O,...i})),N.map(({key:O,link:L})=>w.createElement("link",{key:O,nonce:i.nonce,...L})))}function N2(...l){return n=>{l.forEach(i=>{typeof i=="function"?i(n):i!=null&&(i.current=n)})}}var R2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{R2&&(window.__reactRouterVersion="7.12.0")}catch{}function j2({basename:l,children:n,unstable_useTransitions:i,window:s}){let o=w.useRef();o.current==null&&(o.current=rC({window:s,v5Compat:!0}));let c=o.current,[d,p]=w.useState({action:c.action,location:c.location}),h=w.useCallback(m=>{i===!1?p(m):w.startTransition(()=>p(m))},[i]);return w.useLayoutEffect(()=>c.listen(h),[c,h]),w.createElement(a2,{basename:l,children:n,location:d.location,navigationType:d.action,navigator:c,unstable_useTransitions:i})}var ry=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sy=w.forwardRef(function({onClick:n,discover:i="render",prefetch:s="none",relative:o,reloadDocument:c,replace:d,state:p,target:h,to:m,preventScrollReset:v,viewTransition:y,unstable_defaultShouldRevalidate:x,...E},N){let{basename:O,unstable_useTransitions:L}=w.useContext(en),Q=typeof m=="string"&&ry.test(m),M=Jv(m,O);m=M.to;let B=$C(m,{relative:o}),[P,ee,Y]=E2(s,E),_=_2(m,{replace:d,state:p,target:h,preventScrollReset:v,relative:o,viewTransition:y,unstable_defaultShouldRevalidate:x,unstable_useTransitions:L});function K(Z){n&&n(Z),Z.defaultPrevented||_(Z)}let $=w.createElement("a",{...E,...Y,href:M.absoluteURL||B,onClick:M.isExternal||c?n:K,ref:N2(N,ee),target:h,"data-discover":!Q&&i==="render"?"true":void 0});return P&&!Q?w.createElement(w.Fragment,null,$,w.createElement(w2,{page:B})):$});sy.displayName="Link";var O2=w.forwardRef(function({"aria-current":n="page",caseSensitive:i=!1,className:s="",end:o=!1,style:c,to:d,viewTransition:p,children:h,...m},v){let y=Rr(d,{relative:m.relative}),x=_a(),E=w.useContext(jo),{navigator:N,basename:O}=w.useContext(en),L=E!=null&&U2(y)&&p===!0,Q=N.encodeLocation?N.encodeLocation(y).pathname:y.pathname,M=x.pathname,B=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;i||(M=M.toLowerCase(),B=B?B.toLowerCase():null,Q=Q.toLowerCase()),B&&O&&(B=ea(B,O)||B);const P=Q!=="/"&&Q.endsWith("/")?Q.length-1:Q.length;let ee=M===Q||!o&&M.startsWith(Q)&&M.charAt(P)==="/",Y=B!=null&&(B===Q||!o&&B.startsWith(Q)&&B.charAt(Q.length)==="/"),_={isActive:ee,isPending:Y,isTransitioning:L},K=ee?n:void 0,$;typeof s=="function"?$=s(_):$=[s,ee?"active":null,Y?"pending":null,L?"transitioning":null].filter(Boolean).join(" ");let Z=typeof c=="function"?c(_):c;return w.createElement(sy,{...m,"aria-current":K,className:$,ref:v,style:Z,to:d,viewTransition:p},typeof h=="function"?h(_):h)});O2.displayName="NavLink";var A2=w.forwardRef(({discover:l="render",fetcherKey:n,navigate:i,reloadDocument:s,replace:o,state:c,method:d=so,action:p,onSubmit:h,relative:m,preventScrollReset:v,viewTransition:y,unstable_defaultShouldRevalidate:x,...E},N)=>{let{unstable_useTransitions:O}=w.useContext(en),L=z2(),Q=L2(p,{relative:m}),M=d.toLowerCase()==="get"?"get":"post",B=typeof p=="string"&&ry.test(p),P=ee=>{if(h&&h(ee),ee.defaultPrevented)return;ee.preventDefault();let Y=ee.nativeEvent.submitter,_=Y?.getAttribute("formmethod")||d,K=()=>L(Y||ee.currentTarget,{fetcherKey:n,method:_,navigate:i,replace:o,state:c,relative:m,preventScrollReset:v,viewTransition:y,unstable_defaultShouldRevalidate:x});O&&i!==!1?w.startTransition(()=>K()):K()};return w.createElement("form",{ref:N,method:M,action:Q,onSubmit:s?h:P,...E,"data-discover":!B&&l==="render"?"true":void 0})});A2.displayName="Form";function D2(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function oy(l){let n=w.useContext(ni);return Pe(n,D2(l)),n}function _2(l,{target:n,replace:i,state:s,preventScrollReset:o,relative:c,viewTransition:d,unstable_defaultShouldRevalidate:p,unstable_useTransitions:h}={}){let m=li(),v=_a(),y=Rr(l,{relative:c});return w.useCallback(x=>{if(u2(x,n)){x.preventDefault();let E=i!==void 0?i:wr(v)===wr(y),N=()=>m(l,{replace:E,state:s,preventScrollReset:o,relative:c,viewTransition:d,unstable_defaultShouldRevalidate:p});h?w.startTransition(()=>N()):N()}},[v,m,y,i,s,n,l,o,c,d,p,h])}var k2=0,M2=()=>`__${String(++k2)}__`;function z2(){let{router:l}=oy("useSubmit"),{basename:n}=w.useContext(en),i=IC(),s=l.fetch,o=l.navigate;return w.useCallback(async(c,d={})=>{let{action:p,method:h,encType:m,formData:v,body:y}=d2(c,n);if(d.navigate===!1){let x=d.fetcherKey||M2();await s(x,i,d.action||p,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:v,body:y,formMethod:d.method||h,formEncType:d.encType||m,flushSync:d.flushSync})}else await o(d.action||p,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:v,body:y,formMethod:d.method||h,formEncType:d.encType||m,replace:d.replace,state:d.state,fromRouteId:i,flushSync:d.flushSync,viewTransition:d.viewTransition})},[s,o,n,i])}function L2(l,{relative:n}={}){let{basename:i}=w.useContext(en),s=w.useContext(wn);Pe(s,"useFormAction must be used inside a RouteContext");let[o]=s.matches.slice(-1),c={...Rr(l||".",{relative:n})},d=_a();if(l==null){c.search=d.search;let p=new URLSearchParams(c.search),h=p.getAll("index");if(h.some(v=>v==="")){p.delete("index"),h.filter(y=>y).forEach(y=>p.append("index",y));let v=p.toString();c.search=v?`?${v}`:""}}return(!l||l===".")&&o.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(c.pathname=c.pathname==="/"?i:In([i,c.pathname])),wr(c)}function U2(l,{relative:n}={}){let i=w.useContext(Pv);Pe(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=oy("useViewTransitionState"),o=Rr(l,{relative:n});if(!i.isTransitioning)return!1;let c=ea(i.currentLocation.pathname,s)||i.currentLocation.pathname,d=ea(i.nextLocation.pathname,s)||i.nextLocation.pathname;return yo(o.pathname,d)!=null||yo(o.pathname,c)!=null}function B2(l){if(l===null)return"null";if(l===void 0)return"undefined";if(l instanceof Error)return l.message;switch(typeof l){case"bigint":case"number":case"boolean":return String(l);case"string":return l;case"symbol":return`Symbol(${l.description??""})`;case"object":return String("message"in l?l.message:l);case"function":return`function ${l.name}`;default:return"invalid error type"}}const H2="/api/plugin/site-generator-plugin",$2=`${`//${document.location.host}`}${H2}`;let uy;const[Ps]=document.getElementsByClassName("js-script-site-generator");if(Ps&&Ps instanceof HTMLScriptElement){if(!Ps.dataset.googleRecaptchaSiteKey)throw new Error('missing "data-google-recaptcha-site-key" in ".js-script-site-generator" element');uy=Ps.dataset.googleRecaptchaSiteKey}const pf=uy;async function Da(l){try{const n=await fetch($2,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});return n.ok?n.json():{success:!1,userMessage:`Failed to execute command: ${n.statusText}`}}catch(n){return{success:!1,userMessage:`Communication error: ${B2(n)}`}}}function cy(l){var n,i,s="";if(typeof l=="string"||typeof l=="number")s+=l;else if(typeof l=="object")if(Array.isArray(l)){var o=l.length;for(n=0;n<o;n++)l[n]&&(i=cy(l[n]))&&(s&&(s+=" "),s+=i)}else for(i in l)l[i]&&(s&&(s+=" "),s+=i);return s}function An(){for(var l,n,i=0,s="",o=arguments.length;i<o;i++)(l=arguments[i])&&(n=cy(l))&&(s&&(s+=" "),s+=n);return s}function V2({checked:l,onChange:n,label:i,inputLabel:s,className:o,...c}){const d=h=>{n?.(h.target.checked,h)},p=s?b.jsxs("label",{className:An("PaCheckboxField",o),children:[b.jsx("input",{className:"PaCheckboxInput",type:"checkbox",checked:l,onChange:d,...c}),b.jsx("span",{className:"PaCheckboxField-label",children:s})]}):b.jsx("input",{className:An("PaCheckboxInput",o),type:"checkbox",checked:l,onChange:d,...c});return b.jsx(b.Fragment,{children:i?b.jsxs("label",{className:An("PaField",o),children:[b.jsx("span",{className:"PaField-label",children:i}),p]}):p})}const q2=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),G2=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,i,s)=>s?s.toUpperCase():i.toLowerCase()),uv=l=>{const n=G2(l);return n.charAt(0).toUpperCase()+n.slice(1)},fy=(...l)=>l.filter((n,i,s)=>!!n&&n.trim()!==""&&s.indexOf(n)===i).join(" ").trim(),Y2=l=>{for(const n in l)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};var X2={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Q2=w.forwardRef(({color:l="currentColor",size:n=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:o="",children:c,iconNode:d,...p},h)=>w.createElement("svg",{ref:h,...X2,width:n,height:n,stroke:l,strokeWidth:s?Number(i)*24/Number(n):i,className:fy("lucide",o),...!c&&!Y2(p)&&{"aria-hidden":"true"},...p},[...d.map(([m,v])=>w.createElement(m,v)),...Array.isArray(c)?c:[c]]));const Wf=(l,n)=>{const i=w.forwardRef(({className:s,...o},c)=>w.createElement(Q2,{ref:c,iconNode:n,className:fy(`lucide-${q2(uv(l))}`,`lucide-${l}`,s),...o}));return i.displayName=uv(l),i};const K2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Z2=Wf("check",K2);const J2=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],F2=Wf("loader-circle",J2);const P2=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],dy=Wf("x",P2);function I2({className:l,label:n,error:i,value:s,onChange:o,ref:c,...d}){const p=m=>{o?.(m.target.value,m)},h=b.jsx("textarea",{ref:c,className:An("PaTextarea",i&&"error",!n&&l),value:s,onChange:p,...d});return b.jsxs(b.Fragment,{children:[n?b.jsxs("label",{className:An("PaField",i&&"error",l),children:[b.jsx("span",{className:"PaField-label",children:n}),h]}):h,i&&b.jsx("span",{className:"PaFieldError",children:i})]})}const W2=w.createContext(void 0),mf={autoDismissAlertDurationMs:5e3,autoDismissInsideFeedbackDurationMs:2e3,logger:{error:console.error}};function eT(){const l=w.useContext(W2);return{autoDismissAlertDurationMs:l?.autoDismissAlertDurationMs??mf.autoDismissAlertDurationMs,autoDismissInsideFeedbackDurationMs:l?.autoDismissInsideFeedbackDurationMs??mf.autoDismissInsideFeedbackDurationMs,logger:l?.logger??mf.logger}}function ta(l){const{children:n,className:i,disabled:s,outlined:o,icon:c,severity:d="primary",ref:p,...h}=l,{autoDismissInsideFeedbackDurationMs:m}=eT(),[v,y]=w.useState(!1),[x,E]=w.useState(!1);w.useEffect(()=>{!s&&x&&E(!1)},[s,x]);const N=An("PaBtn",d,o&&"outlined",s&&"disabled",x&&"feedback",i),O=w.useCallback(async Y=>{if(l.as==="async"){y(!0),E(!1);try{await l.onClick(Y),l.insideFeedback&&(E(!0),l.insideFeedback.autoDismiss&&setTimeout(()=>E(!1),m))}catch(_){l.onError?.(_)}finally{y(!1)}}},[l.as,...l.as==="async"?[l.onClick,!!l.insideFeedback,l.insideFeedback?.autoDismiss,l.onError,m]:[]]),L=w.useCallback(Y=>{l.as&&l.as!=="button"||(l.onClick&&l.onClick(Y),l.insideFeedback&&(E(!0),l.insideFeedback.autoDismiss&&setTimeout(()=>E(!1),m)))},[l.as,l.onClick,...!l.as||l.as==="button"?[!!l.insideFeedback,l.insideFeedback?.autoDismiss,m]:[]]);if(l.as==="a"){const{as:Y,..._}=h;return b.jsxs("a",{ref:p,className:N,..._,children:[c&&b.jsx("span",{className:"PaBtn-icon",children:c}),n]})}const{as:Q,onClick:M,type:B="button",insideFeedback:P,...ee}=h;return b.jsx("button",{ref:p,className:N,disabled:s||v,onClick:Q==="async"?O:L,type:B,...ee,children:v?b.jsxs(b.Fragment,{children:[b.jsx(F2,{size:16,className:"PaBtn-spinner"}),n]}):x&&P?b.jsxs(b.Fragment,{children:[b.jsx(Z2,{size:16,className:"PaBtn-feedbackIcon"}),P.label]}):b.jsxs(b.Fragment,{children:[c&&b.jsx("span",{className:"PaBtn-icon",children:c}),n]})})}function Ao({children:l,severity:n="info",title:i,className:s,onClose:o}){return b.jsxs("div",{className:An("PaAlert",n,o&&"dismissible",s),children:[o&&b.jsx("button",{type:"button",className:"PaAlert-closeBtn",onClick:o,"aria-label":"Close",children:b.jsx(dy,{size:16})}),i&&b.jsx("div",{className:"PaAlert-title",children:i}),b.jsx("div",{className:"PaAlert-content",children:l})]})}function ed(){return b.jsx("div",{className:"PaSpinner"})}const tT=typeof HTMLElement<"u"&&"showPopover"in HTMLElement.prototype;tT||console?.error("PopupMenu: Popover API is not supported in this browser.");function nT({children:l,value:n,onChange:i,variant:s="default",className:o}){const c=[];return w.Children.forEach(l,d=>{w.isValidElement(d)&&d.props&&c.push(d.props)}),b.jsx("div",{className:An("PaTabs",s,o),role:"tablist",children:c.map(d=>b.jsxs("button",{type:"button",className:An("PaTab",n===d.value&&"active",d.disabled&&"disabled",d.className),onClick:()=>!d.disabled&&i(d.value),disabled:d.disabled,role:"tab","aria-selected":n===d.value,children:[d.icon&&b.jsx("span",{className:"PaTab-icon",children:d.icon}),d.label]},d.value))})}function gf(l){return null}function aT({visible:l,onHide:n,header:i,footer:s,children:o,className:c,closable:d=!0,size:p="md"}){const h=w.useRef(null);w.useEffect(()=>{const v=h.current;v&&(l?v.open||v.showModal():v.open&&v.close())},[l]),w.useEffect(()=>{const v=h.current;if(!v)return;const y=x=>{x.preventDefault(),d&&n()};return v.addEventListener("cancel",y),()=>v.removeEventListener("cancel",y)},[d,n]),w.useEffect(()=>(l?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[l]);const m=p==="innerContent"?void 0:p==="sm"?"sizeSm":p==="lg"?"sizeLg":"sizeMd";return b.jsxs("dialog",{ref:h,className:An("PaDialog",m,c),children:[(i||d)&&b.jsxs("div",{className:"PaDialog-header",children:[i&&b.jsx("div",{className:"PaDialog-title",children:i}),d&&b.jsx("button",{type:"button",className:"PaDialog-close",onClick:n,"aria-label":"Close",children:b.jsx(dy,{size:18})})]}),b.jsx("div",{className:"PaDialog-content",children:o}),s&&b.jsx("div",{className:"PaDialog-footer",children:s})]})}var vf={exports:{}};function cv(l,n){var i=Object.keys(l);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(l);n&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(l,o).enumerable})),i.push.apply(i,s)}return i}function _n(l){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?cv(Object(i),!0).forEach(function(s){lT(l,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(i)):cv(Object(i)).forEach(function(s){Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(i,s))})}return l}function uo(l){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?uo=function(n){return typeof n}:uo=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},uo(l)}function lT(l,n,i){return n in l?Object.defineProperty(l,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):l[n]=i,l}function pn(){return pn=Object.assign||function(l){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(l[s]=i[s])}return l},pn.apply(this,arguments)}function iT(l,n){if(l==null)return{};var i={},s=Object.keys(l),o,c;for(c=0;c<s.length;c++)o=s[c],!(n.indexOf(o)>=0)&&(i[o]=l[o]);return i}function rT(l,n){if(l==null)return{};var i=iT(l,n),s,o;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(l);for(o=0;o<c.length;o++)s=c[o],!(n.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(l,s)&&(i[s]=l[s])}return i}function sT(l){return oT(l)||uT(l)||cT(l)||fT()}function oT(l){if(Array.isArray(l))return Lf(l)}function uT(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}function cT(l,n){if(l){if(typeof l=="string")return Lf(l,n);var i=Object.prototype.toString.call(l).slice(8,-1);if(i==="Object"&&l.constructor&&(i=l.constructor.name),i==="Map"||i==="Set")return Array.from(l);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Lf(l,n)}}function Lf(l,n){(n==null||n>l.length)&&(n=l.length);for(var i=0,s=new Array(n);i<n;i++)s[i]=l[i];return s}function fT(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
22
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var dT="1.15.6";function Wn(l){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(l)}var na=Wn(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),jr=Wn(/Edge/i),fv=Wn(/firefox/i),gr=Wn(/safari/i)&&!Wn(/chrome/i)&&!Wn(/android/i),td=Wn(/iP(ad|od|hone)/i),hy=Wn(/chrome/i)&&Wn(/android/i),py={capture:!1,passive:!1};function xe(l,n,i){l.addEventListener(n,i,!na&&py)}function Se(l,n,i){l.removeEventListener(n,i,!na&&py)}function bo(l,n){if(n){if(n[0]===">"&&(n=n.substring(1)),l)try{if(l.matches)return l.matches(n);if(l.msMatchesSelector)return l.msMatchesSelector(n);if(l.webkitMatchesSelector)return l.webkitMatchesSelector(n)}catch{return!1}return!1}}function my(l){return l.host&&l!==document&&l.host.nodeType?l.host:l.parentNode}function Ht(l,n,i,s){if(l){i=i||document;do{if(n!=null&&(n[0]===">"?l.parentNode===i&&bo(l,n):bo(l,n))||s&&l===i)return l;if(l===i)break}while(l=my(l))}return null}var dv=/\s+/g;function et(l,n,i){if(l&&n)if(l.classList)l.classList[i?"add":"remove"](n);else{var s=(" "+l.className+" ").replace(dv," ").replace(" "+n+" "," ");l.className=(s+(i?" "+n:"")).replace(dv," ")}}function se(l,n,i){var s=l&&l.style;if(s){if(i===void 0)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(l,""):l.currentStyle&&(i=l.currentStyle),n===void 0?i:i[n];!(n in s)&&n.indexOf("webkit")===-1&&(n="-webkit-"+n),s[n]=i+(typeof i=="string"?"":"px")}}function nl(l,n){var i="";if(typeof l=="string")i=l;else do{var s=se(l,"transform");s&&s!=="none"&&(i=s+" "+i)}while(!n&&(l=l.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(i)}function gy(l,n,i){if(l){var s=l.getElementsByTagName(n),o=0,c=s.length;if(i)for(;o<c;o++)i(s[o],o);return s}return[]}function Dn(){var l=document.scrollingElement;return l||document.documentElement}function Ze(l,n,i,s,o){if(!(!l.getBoundingClientRect&&l!==window)){var c,d,p,h,m,v,y;if(l!==window&&l.parentNode&&l!==Dn()?(c=l.getBoundingClientRect(),d=c.top,p=c.left,h=c.bottom,m=c.right,v=c.height,y=c.width):(d=0,p=0,h=window.innerHeight,m=window.innerWidth,v=window.innerHeight,y=window.innerWidth),(n||i)&&l!==window&&(o=o||l.parentNode,!na))do if(o&&o.getBoundingClientRect&&(se(o,"transform")!=="none"||i&&se(o,"position")!=="static")){var x=o.getBoundingClientRect();d-=x.top+parseInt(se(o,"border-top-width")),p-=x.left+parseInt(se(o,"border-left-width")),h=d+c.height,m=p+c.width;break}while(o=o.parentNode);if(s&&l!==window){var E=nl(o||l),N=E&&E.a,O=E&&E.d;E&&(d/=O,p/=N,y/=N,v/=O,h=d+v,m=p+y)}return{top:d,left:p,bottom:h,right:m,width:y,height:v}}}function hv(l,n,i){for(var s=Aa(l,!0),o=Ze(l)[n];s;){var c=Ze(s)[i],d=void 0;if(d=o>=c,!d)return s;if(s===Dn())break;s=Aa(s,!1)}return!1}function Wl(l,n,i,s){for(var o=0,c=0,d=l.children;c<d.length;){if(d[c].style.display!=="none"&&d[c]!==fe.ghost&&(s||d[c]!==fe.dragged)&&Ht(d[c],i.draggable,l,!1)){if(o===n)return d[c];o++}c++}return null}function nd(l,n){for(var i=l.lastElementChild;i&&(i===fe.ghost||se(i,"display")==="none"||n&&!bo(i,n));)i=i.previousElementSibling;return i||null}function lt(l,n){var i=0;if(!l||!l.parentNode)return-1;for(;l=l.previousElementSibling;)l.nodeName.toUpperCase()!=="TEMPLATE"&&l!==fe.clone&&(!n||bo(l,n))&&i++;return i}function pv(l){var n=0,i=0,s=Dn();if(l)do{var o=nl(l),c=o.a,d=o.d;n+=l.scrollLeft*c,i+=l.scrollTop*d}while(l!==s&&(l=l.parentNode));return[n,i]}function hT(l,n){for(var i in l)if(l.hasOwnProperty(i)){for(var s in n)if(n.hasOwnProperty(s)&&n[s]===l[i][s])return Number(i)}return-1}function Aa(l,n){if(!l||!l.getBoundingClientRect)return Dn();var i=l,s=!1;do if(i.clientWidth<i.scrollWidth||i.clientHeight<i.scrollHeight){var o=se(i);if(i.clientWidth<i.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||i.clientHeight<i.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!i.getBoundingClientRect||i===document.body)return Dn();if(s||n)return i;s=!0}}while(i=i.parentNode);return Dn()}function pT(l,n){if(l&&n)for(var i in n)n.hasOwnProperty(i)&&(l[i]=n[i]);return l}function yf(l,n){return Math.round(l.top)===Math.round(n.top)&&Math.round(l.left)===Math.round(n.left)&&Math.round(l.height)===Math.round(n.height)&&Math.round(l.width)===Math.round(n.width)}var vr;function vy(l,n){return function(){if(!vr){var i=arguments,s=this;i.length===1?l.call(s,i[0]):l.apply(s,i),vr=setTimeout(function(){vr=void 0},n)}}}function mT(){clearTimeout(vr),vr=void 0}function yy(l,n,i){l.scrollLeft+=n,l.scrollTop+=i}function ad(l){var n=window.Polymer,i=window.jQuery||window.Zepto;return n&&n.dom?n.dom(l).cloneNode(!0):i?i(l).clone(!0)[0]:l.cloneNode(!0)}function mv(l,n){se(l,"position","absolute"),se(l,"top",n.top),se(l,"left",n.left),se(l,"width",n.width),se(l,"height",n.height)}function bf(l){se(l,"position",""),se(l,"top",""),se(l,"left",""),se(l,"width",""),se(l,"height","")}function by(l,n,i){var s={};return Array.from(l.children).forEach(function(o){var c,d,p,h;if(!(!Ht(o,n.draggable,l,!1)||o.animated||o===i)){var m=Ze(o);s.left=Math.min((c=s.left)!==null&&c!==void 0?c:1/0,m.left),s.top=Math.min((d=s.top)!==null&&d!==void 0?d:1/0,m.top),s.right=Math.max((p=s.right)!==null&&p!==void 0?p:-1/0,m.right),s.bottom=Math.max((h=s.bottom)!==null&&h!==void 0?h:-1/0,m.bottom)}}),s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}var xt="Sortable"+new Date().getTime();function gT(){var l=[],n;return{captureAnimationState:function(){if(l=[],!!this.options.animation){var s=[].slice.call(this.el.children);s.forEach(function(o){if(!(se(o,"display")==="none"||o===fe.ghost)){l.push({target:o,rect:Ze(o)});var c=_n({},l[l.length-1].rect);if(o.thisAnimationDuration){var d=nl(o,!0);d&&(c.top-=d.f,c.left-=d.e)}o.fromRect=c}})}},addAnimationState:function(s){l.push(s)},removeAnimationState:function(s){l.splice(hT(l,{target:s}),1)},animateAll:function(s){var o=this;if(!this.options.animation){clearTimeout(n),typeof s=="function"&&s();return}var c=!1,d=0;l.forEach(function(p){var h=0,m=p.target,v=m.fromRect,y=Ze(m),x=m.prevFromRect,E=m.prevToRect,N=p.rect,O=nl(m,!0);O&&(y.top-=O.f,y.left-=O.e),m.toRect=y,m.thisAnimationDuration&&yf(x,y)&&!yf(v,y)&&(N.top-y.top)/(N.left-y.left)===(v.top-y.top)/(v.left-y.left)&&(h=yT(N,x,E,o.options)),yf(y,v)||(m.prevFromRect=v,m.prevToRect=y,h||(h=o.options.animation),o.animate(m,N,y,h)),h&&(c=!0,d=Math.max(d,h),clearTimeout(m.animationResetTimer),m.animationResetTimer=setTimeout(function(){m.animationTime=0,m.prevFromRect=null,m.fromRect=null,m.prevToRect=null,m.thisAnimationDuration=null},h),m.thisAnimationDuration=h)}),clearTimeout(n),c?n=setTimeout(function(){typeof s=="function"&&s()},d):typeof s=="function"&&s(),l=[]},animate:function(s,o,c,d){if(d){se(s,"transition",""),se(s,"transform","");var p=nl(this.el),h=p&&p.a,m=p&&p.d,v=(o.left-c.left)/(h||1),y=(o.top-c.top)/(m||1);s.animatingX=!!v,s.animatingY=!!y,se(s,"transform","translate3d("+v+"px,"+y+"px,0)"),this.forRepaintDummy=vT(s),se(s,"transition","transform "+d+"ms"+(this.options.easing?" "+this.options.easing:"")),se(s,"transform","translate3d(0,0,0)"),typeof s.animated=="number"&&clearTimeout(s.animated),s.animated=setTimeout(function(){se(s,"transition",""),se(s,"transform",""),s.animated=!1,s.animatingX=!1,s.animatingY=!1},d)}}}}function vT(l){return l.offsetWidth}function yT(l,n,i,s){return Math.sqrt(Math.pow(n.top-l.top,2)+Math.pow(n.left-l.left,2))/Math.sqrt(Math.pow(n.top-i.top,2)+Math.pow(n.left-i.left,2))*s.animation}var Zl=[],Sf={initializeByDefault:!0},Or={mount:function(n){for(var i in Sf)Sf.hasOwnProperty(i)&&!(i in n)&&(n[i]=Sf[i]);Zl.forEach(function(s){if(s.pluginName===n.pluginName)throw"Sortable: Cannot mount plugin ".concat(n.pluginName," more than once")}),Zl.push(n)},pluginEvent:function(n,i,s){var o=this;this.eventCanceled=!1,s.cancel=function(){o.eventCanceled=!0};var c=n+"Global";Zl.forEach(function(d){i[d.pluginName]&&(i[d.pluginName][c]&&i[d.pluginName][c](_n({sortable:i},s)),i.options[d.pluginName]&&i[d.pluginName][n]&&i[d.pluginName][n](_n({sortable:i},s)))})},initializePlugins:function(n,i,s,o){Zl.forEach(function(p){var h=p.pluginName;if(!(!n.options[h]&&!p.initializeByDefault)){var m=new p(n,i,n.options);m.sortable=n,m.options=n.options,n[h]=m,pn(s,m.defaults)}});for(var c in n.options)if(n.options.hasOwnProperty(c)){var d=this.modifyOption(n,c,n.options[c]);typeof d<"u"&&(n.options[c]=d)}},getEventProperties:function(n,i){var s={};return Zl.forEach(function(o){typeof o.eventProperties=="function"&&pn(s,o.eventProperties.call(i[o.pluginName],n))}),s},modifyOption:function(n,i,s){var o;return Zl.forEach(function(c){n[c.pluginName]&&c.optionListeners&&typeof c.optionListeners[i]=="function"&&(o=c.optionListeners[i].call(n[c.pluginName],s))}),o}};function ur(l){var n=l.sortable,i=l.rootEl,s=l.name,o=l.targetEl,c=l.cloneEl,d=l.toEl,p=l.fromEl,h=l.oldIndex,m=l.newIndex,v=l.oldDraggableIndex,y=l.newDraggableIndex,x=l.originalEvent,E=l.putSortable,N=l.extraEventProperties;if(n=n||i&&i[xt],!!n){var O,L=n.options,Q="on"+s.charAt(0).toUpperCase()+s.substr(1);window.CustomEvent&&!na&&!jr?O=new CustomEvent(s,{bubbles:!0,cancelable:!0}):(O=document.createEvent("Event"),O.initEvent(s,!0,!0)),O.to=d||i,O.from=p||i,O.item=o||i,O.clone=c,O.oldIndex=h,O.newIndex=m,O.oldDraggableIndex=v,O.newDraggableIndex=y,O.originalEvent=x,O.pullMode=E?E.lastPutMode:void 0;var M=_n(_n({},N),Or.getEventProperties(s,n));for(var B in M)O[B]=M[B];i&&i.dispatchEvent(O),L[Q]&&L[Q].call(n,O)}}var bT=["evt"],Ut=function(n,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=s.evt,c=rT(s,bT);Or.pluginEvent.bind(fe)(n,i,_n({dragEl:W,parentEl:at,ghostEl:ge,rootEl:Fe,nextEl:tl,lastDownEl:co,cloneEl:We,cloneHidden:Oa,dragStarted:cr,putSortable:St,activeSortable:fe.active,originalEvent:o,oldIndex:Il,oldDraggableIndex:yr,newIndex:It,newDraggableIndex:ja,hideGhostForTarget:wy,unhideGhostForTarget:Cy,cloneNowHidden:function(){Oa=!0},cloneNowShown:function(){Oa=!1},dispatchSortableEvent:function(p){Rt({sortable:i,name:p,originalEvent:o})}},c))};function Rt(l){ur(_n({putSortable:St,cloneEl:We,targetEl:W,rootEl:Fe,oldIndex:Il,oldDraggableIndex:yr,newIndex:It,newDraggableIndex:ja},l))}var W,at,ge,Fe,tl,co,We,Oa,Il,It,yr,ja,Is,St,Pl=!1,So=!1,xo=[],Wa,bn,xf,Ef,gv,vv,cr,Jl,br,Sr=!1,Ws=!1,fo,Ct,wf=[],Uf=!1,Eo=[],Do=typeof document<"u",eo=td,yv=jr||na?"cssFloat":"float",ST=Do&&!hy&&!td&&"draggable"in document.createElement("div"),Sy=(function(){if(Do){if(na)return!1;var l=document.createElement("x");return l.style.cssText="pointer-events:auto",l.style.pointerEvents==="auto"}})(),xy=function(n,i){var s=se(n),o=parseInt(s.width)-parseInt(s.paddingLeft)-parseInt(s.paddingRight)-parseInt(s.borderLeftWidth)-parseInt(s.borderRightWidth),c=Wl(n,0,i),d=Wl(n,1,i),p=c&&se(c),h=d&&se(d),m=p&&parseInt(p.marginLeft)+parseInt(p.marginRight)+Ze(c).width,v=h&&parseInt(h.marginLeft)+parseInt(h.marginRight)+Ze(d).width;if(s.display==="flex")return s.flexDirection==="column"||s.flexDirection==="column-reverse"?"vertical":"horizontal";if(s.display==="grid")return s.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(c&&p.float&&p.float!=="none"){var y=p.float==="left"?"left":"right";return d&&(h.clear==="both"||h.clear===y)?"vertical":"horizontal"}return c&&(p.display==="block"||p.display==="flex"||p.display==="table"||p.display==="grid"||m>=o&&s[yv]==="none"||d&&s[yv]==="none"&&m+v>o)?"vertical":"horizontal"},xT=function(n,i,s){var o=s?n.left:n.top,c=s?n.right:n.bottom,d=s?n.width:n.height,p=s?i.left:i.top,h=s?i.right:i.bottom,m=s?i.width:i.height;return o===p||c===h||o+d/2===p+m/2},ET=function(n,i){var s;return xo.some(function(o){var c=o[xt].options.emptyInsertThreshold;if(!(!c||nd(o))){var d=Ze(o),p=n>=d.left-c&&n<=d.right+c,h=i>=d.top-c&&i<=d.bottom+c;if(p&&h)return s=o}}),s},Ey=function(n){function i(c,d){return function(p,h,m,v){var y=p.options.group.name&&h.options.group.name&&p.options.group.name===h.options.group.name;if(c==null&&(d||y))return!0;if(c==null||c===!1)return!1;if(d&&c==="clone")return c;if(typeof c=="function")return i(c(p,h,m,v),d)(p,h,m,v);var x=(d?p:h).options.group.name;return c===!0||typeof c=="string"&&c===x||c.join&&c.indexOf(x)>-1}}var s={},o=n.group;(!o||uo(o)!="object")&&(o={name:o}),s.name=o.name,s.checkPull=i(o.pull,!0),s.checkPut=i(o.put),s.revertClone=o.revertClone,n.group=s},wy=function(){!Sy&&ge&&se(ge,"display","none")},Cy=function(){!Sy&&ge&&se(ge,"display","")};Do&&!hy&&document.addEventListener("click",function(l){if(So)return l.preventDefault(),l.stopPropagation&&l.stopPropagation(),l.stopImmediatePropagation&&l.stopImmediatePropagation(),So=!1,!1},!0);var el=function(n){if(W){n=n.touches?n.touches[0]:n;var i=ET(n.clientX,n.clientY);if(i){var s={};for(var o in n)n.hasOwnProperty(o)&&(s[o]=n[o]);s.target=s.rootEl=i,s.preventDefault=void 0,s.stopPropagation=void 0,i[xt]._onDragOver(s)}}},wT=function(n){W&&W.parentNode[xt]._isOutsideThisEl(n.target)};function fe(l,n){if(!(l&&l.nodeType&&l.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(l));this.el=l,this.options=n=pn({},n),l[xt]=this;var i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(l.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return xy(l,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(d,p){d.setData("Text",p.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:fe.supportPointer!==!1&&"PointerEvent"in window&&(!gr||td),emptyInsertThreshold:5};Or.initializePlugins(this,l,i);for(var s in i)!(s in n)&&(n[s]=i[s]);Ey(n);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=n.forceFallback?!1:ST,this.nativeDraggable&&(this.options.touchStartThreshold=1),n.supportPointer?xe(l,"pointerdown",this._onTapStart):(xe(l,"mousedown",this._onTapStart),xe(l,"touchstart",this._onTapStart)),this.nativeDraggable&&(xe(l,"dragover",this),xe(l,"dragenter",this)),xo.push(this.el),n.store&&n.store.get&&this.sort(n.store.get(this)||[]),pn(this,gT())}fe.prototype={constructor:fe,_isOutsideThisEl:function(n){!this.el.contains(n)&&n!==this.el&&(Jl=null)},_getDirection:function(n,i){return typeof this.options.direction=="function"?this.options.direction.call(this,n,i,W):this.options.direction},_onTapStart:function(n){if(n.cancelable){var i=this,s=this.el,o=this.options,c=o.preventOnFilter,d=n.type,p=n.touches&&n.touches[0]||n.pointerType&&n.pointerType==="touch"&&n,h=(p||n).target,m=n.target.shadowRoot&&(n.path&&n.path[0]||n.composedPath&&n.composedPath()[0])||h,v=o.filter;if(DT(s),!W&&!(/mousedown|pointerdown/.test(d)&&n.button!==0||o.disabled)&&!m.isContentEditable&&!(!this.nativeDraggable&&gr&&h&&h.tagName.toUpperCase()==="SELECT")&&(h=Ht(h,o.draggable,s,!1),!(h&&h.animated)&&co!==h)){if(Il=lt(h),yr=lt(h,o.draggable),typeof v=="function"){if(v.call(this,n,h,this)){Rt({sortable:i,rootEl:m,name:"filter",targetEl:h,toEl:s,fromEl:s}),Ut("filter",i,{evt:n}),c&&n.preventDefault();return}}else if(v&&(v=v.split(",").some(function(y){if(y=Ht(m,y.trim(),s,!1),y)return Rt({sortable:i,rootEl:y,name:"filter",targetEl:h,fromEl:s,toEl:s}),Ut("filter",i,{evt:n}),!0}),v)){c&&n.preventDefault();return}o.handle&&!Ht(m,o.handle,s,!1)||this._prepareDragStart(n,p,h)}}},_prepareDragStart:function(n,i,s){var o=this,c=o.el,d=o.options,p=c.ownerDocument,h;if(s&&!W&&s.parentNode===c){var m=Ze(s);if(Fe=c,W=s,at=W.parentNode,tl=W.nextSibling,co=s,Is=d.group,fe.dragged=W,Wa={target:W,clientX:(i||n).clientX,clientY:(i||n).clientY},gv=Wa.clientX-m.left,vv=Wa.clientY-m.top,this._lastX=(i||n).clientX,this._lastY=(i||n).clientY,W.style["will-change"]="all",h=function(){if(Ut("delayEnded",o,{evt:n}),fe.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!fv&&o.nativeDraggable&&(W.draggable=!0),o._triggerDragStart(n,i),Rt({sortable:o,name:"choose",originalEvent:n}),et(W,d.chosenClass,!0)},d.ignore.split(",").forEach(function(v){gy(W,v.trim(),Cf)}),xe(p,"dragover",el),xe(p,"mousemove",el),xe(p,"touchmove",el),d.supportPointer?(xe(p,"pointerup",o._onDrop),!this.nativeDraggable&&xe(p,"pointercancel",o._onDrop)):(xe(p,"mouseup",o._onDrop),xe(p,"touchend",o._onDrop),xe(p,"touchcancel",o._onDrop)),fv&&this.nativeDraggable&&(this.options.touchStartThreshold=4,W.draggable=!0),Ut("delayStart",this,{evt:n}),d.delay&&(!d.delayOnTouchOnly||i)&&(!this.nativeDraggable||!(jr||na))){if(fe.eventCanceled){this._onDrop();return}d.supportPointer?(xe(p,"pointerup",o._disableDelayedDrag),xe(p,"pointercancel",o._disableDelayedDrag)):(xe(p,"mouseup",o._disableDelayedDrag),xe(p,"touchend",o._disableDelayedDrag),xe(p,"touchcancel",o._disableDelayedDrag)),xe(p,"mousemove",o._delayedDragTouchMoveHandler),xe(p,"touchmove",o._delayedDragTouchMoveHandler),d.supportPointer&&xe(p,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(h,d.delay)}else h()}},_delayedDragTouchMoveHandler:function(n){var i=n.touches?n.touches[0]:n;Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){W&&Cf(W),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var n=this.el.ownerDocument;Se(n,"mouseup",this._disableDelayedDrag),Se(n,"touchend",this._disableDelayedDrag),Se(n,"touchcancel",this._disableDelayedDrag),Se(n,"pointerup",this._disableDelayedDrag),Se(n,"pointercancel",this._disableDelayedDrag),Se(n,"mousemove",this._delayedDragTouchMoveHandler),Se(n,"touchmove",this._delayedDragTouchMoveHandler),Se(n,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(n,i){i=i||n.pointerType=="touch"&&n,!this.nativeDraggable||i?this.options.supportPointer?xe(document,"pointermove",this._onTouchMove):i?xe(document,"touchmove",this._onTouchMove):xe(document,"mousemove",this._onTouchMove):(xe(W,"dragend",this),xe(Fe,"dragstart",this._onDragStart));try{document.selection?ho(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(n,i){if(Pl=!1,Fe&&W){Ut("dragStarted",this,{evt:i}),this.nativeDraggable&&xe(document,"dragover",wT);var s=this.options;!n&&et(W,s.dragClass,!1),et(W,s.ghostClass,!0),fe.active=this,n&&this._appendGhost(),Rt({sortable:this,name:"start",originalEvent:i})}else this._nulling()},_emulateDragOver:function(){if(bn){this._lastX=bn.clientX,this._lastY=bn.clientY,wy();for(var n=document.elementFromPoint(bn.clientX,bn.clientY),i=n;n&&n.shadowRoot&&(n=n.shadowRoot.elementFromPoint(bn.clientX,bn.clientY),n!==i);)i=n;if(W.parentNode[xt]._isOutsideThisEl(n),i)do{if(i[xt]){var s=void 0;if(s=i[xt]._onDragOver({clientX:bn.clientX,clientY:bn.clientY,target:n,rootEl:i}),s&&!this.options.dragoverBubble)break}n=i}while(i=my(i));Cy()}},_onTouchMove:function(n){if(Wa){var i=this.options,s=i.fallbackTolerance,o=i.fallbackOffset,c=n.touches?n.touches[0]:n,d=ge&&nl(ge,!0),p=ge&&d&&d.a,h=ge&&d&&d.d,m=eo&&Ct&&pv(Ct),v=(c.clientX-Wa.clientX+o.x)/(p||1)+(m?m[0]-wf[0]:0)/(p||1),y=(c.clientY-Wa.clientY+o.y)/(h||1)+(m?m[1]-wf[1]:0)/(h||1);if(!fe.active&&!Pl){if(s&&Math.max(Math.abs(c.clientX-this._lastX),Math.abs(c.clientY-this._lastY))<s)return;this._onDragStart(n,!0)}if(ge){d?(d.e+=v-(xf||0),d.f+=y-(Ef||0)):d={a:1,b:0,c:0,d:1,e:v,f:y};var x="matrix(".concat(d.a,",").concat(d.b,",").concat(d.c,",").concat(d.d,",").concat(d.e,",").concat(d.f,")");se(ge,"webkitTransform",x),se(ge,"mozTransform",x),se(ge,"msTransform",x),se(ge,"transform",x),xf=v,Ef=y,bn=c}n.cancelable&&n.preventDefault()}},_appendGhost:function(){if(!ge){var n=this.options.fallbackOnBody?document.body:Fe,i=Ze(W,!0,eo,!0,n),s=this.options;if(eo){for(Ct=n;se(Ct,"position")==="static"&&se(Ct,"transform")==="none"&&Ct!==document;)Ct=Ct.parentNode;Ct!==document.body&&Ct!==document.documentElement?(Ct===document&&(Ct=Dn()),i.top+=Ct.scrollTop,i.left+=Ct.scrollLeft):Ct=Dn(),wf=pv(Ct)}ge=W.cloneNode(!0),et(ge,s.ghostClass,!1),et(ge,s.fallbackClass,!0),et(ge,s.dragClass,!0),se(ge,"transition",""),se(ge,"transform",""),se(ge,"box-sizing","border-box"),se(ge,"margin",0),se(ge,"top",i.top),se(ge,"left",i.left),se(ge,"width",i.width),se(ge,"height",i.height),se(ge,"opacity","0.8"),se(ge,"position",eo?"absolute":"fixed"),se(ge,"zIndex","100000"),se(ge,"pointerEvents","none"),fe.ghost=ge,n.appendChild(ge),se(ge,"transform-origin",gv/parseInt(ge.style.width)*100+"% "+vv/parseInt(ge.style.height)*100+"%")}},_onDragStart:function(n,i){var s=this,o=n.dataTransfer,c=s.options;if(Ut("dragStart",this,{evt:n}),fe.eventCanceled){this._onDrop();return}Ut("setupClone",this),fe.eventCanceled||(We=ad(W),We.removeAttribute("id"),We.draggable=!1,We.style["will-change"]="",this._hideClone(),et(We,this.options.chosenClass,!1),fe.clone=We),s.cloneId=ho(function(){Ut("clone",s),!fe.eventCanceled&&(s.options.removeCloneOnHide||Fe.insertBefore(We,W),s._hideClone(),Rt({sortable:s,name:"clone"}))}),!i&&et(W,c.dragClass,!0),i?(So=!0,s._loopId=setInterval(s._emulateDragOver,50)):(Se(document,"mouseup",s._onDrop),Se(document,"touchend",s._onDrop),Se(document,"touchcancel",s._onDrop),o&&(o.effectAllowed="move",c.setData&&c.setData.call(s,o,W)),xe(document,"drop",s),se(W,"transform","translateZ(0)")),Pl=!0,s._dragStartId=ho(s._dragStarted.bind(s,i,n)),xe(document,"selectstart",s),cr=!0,window.getSelection().removeAllRanges(),gr&&se(document.body,"user-select","none")},_onDragOver:function(n){var i=this.el,s=n.target,o,c,d,p=this.options,h=p.group,m=fe.active,v=Is===h,y=p.sort,x=St||m,E,N=this,O=!1;if(Uf)return;function L(ne,Ee){Ut(ne,N,_n({evt:n,isOwner:v,axis:E?"vertical":"horizontal",revert:d,dragRect:o,targetRect:c,canSort:y,fromSortable:x,target:s,completed:M,onMove:function(T,q){return to(Fe,i,W,o,T,Ze(T),n,q)},changed:B},Ee))}function Q(){L("dragOverAnimationCapture"),N.captureAnimationState(),N!==x&&x.captureAnimationState()}function M(ne){return L("dragOverCompleted",{insertion:ne}),ne&&(v?m._hideClone():m._showClone(N),N!==x&&(et(W,St?St.options.ghostClass:m.options.ghostClass,!1),et(W,p.ghostClass,!0)),St!==N&&N!==fe.active?St=N:N===fe.active&&St&&(St=null),x===N&&(N._ignoreWhileAnimating=s),N.animateAll(function(){L("dragOverAnimationComplete"),N._ignoreWhileAnimating=null}),N!==x&&(x.animateAll(),x._ignoreWhileAnimating=null)),(s===W&&!W.animated||s===i&&!s.animated)&&(Jl=null),!p.dragoverBubble&&!n.rootEl&&s!==document&&(W.parentNode[xt]._isOutsideThisEl(n.target),!ne&&el(n)),!p.dragoverBubble&&n.stopPropagation&&n.stopPropagation(),O=!0}function B(){It=lt(W),ja=lt(W,p.draggable),Rt({sortable:N,name:"change",toEl:i,newIndex:It,newDraggableIndex:ja,originalEvent:n})}if(n.preventDefault!==void 0&&n.cancelable&&n.preventDefault(),s=Ht(s,p.draggable,i,!0),L("dragOver"),fe.eventCanceled)return O;if(W.contains(n.target)||s.animated&&s.animatingX&&s.animatingY||N._ignoreWhileAnimating===s)return M(!1);if(So=!1,m&&!p.disabled&&(v?y||(d=at!==Fe):St===this||(this.lastPutMode=Is.checkPull(this,m,W,n))&&h.checkPut(this,m,W,n))){if(E=this._getDirection(n,s)==="vertical",o=Ze(W),L("dragOverValid"),fe.eventCanceled)return O;if(d)return at=Fe,Q(),this._hideClone(),L("revert"),fe.eventCanceled||(tl?Fe.insertBefore(W,tl):Fe.appendChild(W)),M(!0);var P=nd(i,p.draggable);if(!P||RT(n,E,this)&&!P.animated){if(P===W)return M(!1);if(P&&i===n.target&&(s=P),s&&(c=Ze(s)),to(Fe,i,W,o,s,c,n,!!s)!==!1)return Q(),P&&P.nextSibling?i.insertBefore(W,P.nextSibling):i.appendChild(W),at=i,B(),M(!0)}else if(P&&NT(n,E,this)){var ee=Wl(i,0,p,!0);if(ee===W)return M(!1);if(s=ee,c=Ze(s),to(Fe,i,W,o,s,c,n,!1)!==!1)return Q(),i.insertBefore(W,ee),at=i,B(),M(!0)}else if(s.parentNode===i){c=Ze(s);var Y=0,_,K=W.parentNode!==i,$=!xT(W.animated&&W.toRect||o,s.animated&&s.toRect||c,E),Z=E?"top":"left",F=hv(s,"top","top")||hv(W,"top","top"),te=F?F.scrollTop:void 0;Jl!==s&&(_=c[Z],Sr=!1,Ws=!$&&p.invertSwap||K),Y=jT(n,s,c,E,$?1:p.swapThreshold,p.invertedSwapThreshold==null?p.swapThreshold:p.invertedSwapThreshold,Ws,Jl===s);var ie;if(Y!==0){var ce=lt(W);do ce-=Y,ie=at.children[ce];while(ie&&(se(ie,"display")==="none"||ie===ge))}if(Y===0||ie===s)return M(!1);Jl=s,br=Y;var he=s.nextElementSibling,z=!1;z=Y===1;var J=to(Fe,i,W,o,s,c,n,z);if(J!==!1)return(J===1||J===-1)&&(z=J===1),Uf=!0,setTimeout(TT,30),Q(),z&&!he?i.appendChild(W):s.parentNode.insertBefore(W,z?he:s),F&&yy(F,0,te-F.scrollTop),at=W.parentNode,_!==void 0&&!Ws&&(fo=Math.abs(_-Ze(s)[Z])),B(),M(!0)}if(i.contains(W))return M(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Se(document,"mousemove",this._onTouchMove),Se(document,"touchmove",this._onTouchMove),Se(document,"pointermove",this._onTouchMove),Se(document,"dragover",el),Se(document,"mousemove",el),Se(document,"touchmove",el)},_offUpEvents:function(){var n=this.el.ownerDocument;Se(n,"mouseup",this._onDrop),Se(n,"touchend",this._onDrop),Se(n,"pointerup",this._onDrop),Se(n,"pointercancel",this._onDrop),Se(n,"touchcancel",this._onDrop),Se(document,"selectstart",this)},_onDrop:function(n){var i=this.el,s=this.options;if(It=lt(W),ja=lt(W,s.draggable),Ut("drop",this,{evt:n}),at=W&&W.parentNode,It=lt(W),ja=lt(W,s.draggable),fe.eventCanceled){this._nulling();return}Pl=!1,Ws=!1,Sr=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Bf(this.cloneId),Bf(this._dragStartId),this.nativeDraggable&&(Se(document,"drop",this),Se(i,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),gr&&se(document.body,"user-select",""),se(W,"transform",""),n&&(cr&&(n.cancelable&&n.preventDefault(),!s.dropBubble&&n.stopPropagation()),ge&&ge.parentNode&&ge.parentNode.removeChild(ge),(Fe===at||St&&St.lastPutMode!=="clone")&&We&&We.parentNode&&We.parentNode.removeChild(We),W&&(this.nativeDraggable&&Se(W,"dragend",this),Cf(W),W.style["will-change"]="",cr&&!Pl&&et(W,St?St.options.ghostClass:this.options.ghostClass,!1),et(W,this.options.chosenClass,!1),Rt({sortable:this,name:"unchoose",toEl:at,newIndex:null,newDraggableIndex:null,originalEvent:n}),Fe!==at?(It>=0&&(Rt({rootEl:at,name:"add",toEl:at,fromEl:Fe,originalEvent:n}),Rt({sortable:this,name:"remove",toEl:at,originalEvent:n}),Rt({rootEl:at,name:"sort",toEl:at,fromEl:Fe,originalEvent:n}),Rt({sortable:this,name:"sort",toEl:at,originalEvent:n})),St&&St.save()):It!==Il&&It>=0&&(Rt({sortable:this,name:"update",toEl:at,originalEvent:n}),Rt({sortable:this,name:"sort",toEl:at,originalEvent:n})),fe.active&&((It==null||It===-1)&&(It=Il,ja=yr),Rt({sortable:this,name:"end",toEl:at,originalEvent:n}),this.save()))),this._nulling()},_nulling:function(){Ut("nulling",this),Fe=W=at=ge=tl=We=co=Oa=Wa=bn=cr=It=ja=Il=yr=Jl=br=St=Is=fe.dragged=fe.ghost=fe.clone=fe.active=null,Eo.forEach(function(n){n.checked=!0}),Eo.length=xf=Ef=0},handleEvent:function(n){switch(n.type){case"drop":case"dragend":this._onDrop(n);break;case"dragenter":case"dragover":W&&(this._onDragOver(n),CT(n));break;case"selectstart":n.preventDefault();break}},toArray:function(){for(var n=[],i,s=this.el.children,o=0,c=s.length,d=this.options;o<c;o++)i=s[o],Ht(i,d.draggable,this.el,!1)&&n.push(i.getAttribute(d.dataIdAttr)||AT(i));return n},sort:function(n,i){var s={},o=this.el;this.toArray().forEach(function(c,d){var p=o.children[d];Ht(p,this.options.draggable,o,!1)&&(s[c]=p)},this),i&&this.captureAnimationState(),n.forEach(function(c){s[c]&&(o.removeChild(s[c]),o.appendChild(s[c]))}),i&&this.animateAll()},save:function(){var n=this.options.store;n&&n.set&&n.set(this)},closest:function(n,i){return Ht(n,i||this.options.draggable,this.el,!1)},option:function(n,i){var s=this.options;if(i===void 0)return s[n];var o=Or.modifyOption(this,n,i);typeof o<"u"?s[n]=o:s[n]=i,n==="group"&&Ey(s)},destroy:function(){Ut("destroy",this);var n=this.el;n[xt]=null,Se(n,"mousedown",this._onTapStart),Se(n,"touchstart",this._onTapStart),Se(n,"pointerdown",this._onTapStart),this.nativeDraggable&&(Se(n,"dragover",this),Se(n,"dragenter",this)),Array.prototype.forEach.call(n.querySelectorAll("[draggable]"),function(i){i.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),xo.splice(xo.indexOf(this.el),1),this.el=n=null},_hideClone:function(){if(!Oa){if(Ut("hideClone",this),fe.eventCanceled)return;se(We,"display","none"),this.options.removeCloneOnHide&&We.parentNode&&We.parentNode.removeChild(We),Oa=!0}},_showClone:function(n){if(n.lastPutMode!=="clone"){this._hideClone();return}if(Oa){if(Ut("showClone",this),fe.eventCanceled)return;W.parentNode==Fe&&!this.options.group.revertClone?Fe.insertBefore(We,W):tl?Fe.insertBefore(We,tl):Fe.appendChild(We),this.options.group.revertClone&&this.animate(W,We),se(We,"display",""),Oa=!1}}};function CT(l){l.dataTransfer&&(l.dataTransfer.dropEffect="move"),l.cancelable&&l.preventDefault()}function to(l,n,i,s,o,c,d,p){var h,m=l[xt],v=m.options.onMove,y;return window.CustomEvent&&!na&&!jr?h=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(h=document.createEvent("Event"),h.initEvent("move",!0,!0)),h.to=n,h.from=l,h.dragged=i,h.draggedRect=s,h.related=o||n,h.relatedRect=c||Ze(n),h.willInsertAfter=p,h.originalEvent=d,l.dispatchEvent(h),v&&(y=v.call(m,h,d)),y}function Cf(l){l.draggable=!1}function TT(){Uf=!1}function NT(l,n,i){var s=Ze(Wl(i.el,0,i.options,!0)),o=by(i.el,i.options,ge),c=10;return n?l.clientX<o.left-c||l.clientY<s.top&&l.clientX<s.right:l.clientY<o.top-c||l.clientY<s.bottom&&l.clientX<s.left}function RT(l,n,i){var s=Ze(nd(i.el,i.options.draggable)),o=by(i.el,i.options,ge),c=10;return n?l.clientX>o.right+c||l.clientY>s.bottom&&l.clientX>s.left:l.clientY>o.bottom+c||l.clientX>s.right&&l.clientY>s.top}function jT(l,n,i,s,o,c,d,p){var h=s?l.clientY:l.clientX,m=s?i.height:i.width,v=s?i.top:i.left,y=s?i.bottom:i.right,x=!1;if(!d){if(p&&fo<m*o){if(!Sr&&(br===1?h>v+m*c/2:h<y-m*c/2)&&(Sr=!0),Sr)x=!0;else if(br===1?h<v+fo:h>y-fo)return-br}else if(h>v+m*(1-o)/2&&h<y-m*(1-o)/2)return OT(n)}return x=x||d,x&&(h<v+m*c/2||h>y-m*c/2)?h>v+m/2?1:-1:0}function OT(l){return lt(W)<lt(l)?1:-1}function AT(l){for(var n=l.tagName+l.className+l.src+l.href+l.textContent,i=n.length,s=0;i--;)s+=n.charCodeAt(i);return s.toString(36)}function DT(l){Eo.length=0;for(var n=l.getElementsByTagName("input"),i=n.length;i--;){var s=n[i];s.checked&&Eo.push(s)}}function ho(l){return setTimeout(l,0)}function Bf(l){return clearTimeout(l)}Do&&xe(document,"touchmove",function(l){(fe.active||Pl)&&l.cancelable&&l.preventDefault()});fe.utils={on:xe,off:Se,css:se,find:gy,is:function(n,i){return!!Ht(n,i,n,!1)},extend:pT,throttle:vy,closest:Ht,toggleClass:et,clone:ad,index:lt,nextTick:ho,cancelNextTick:Bf,detectDirection:xy,getChild:Wl,expando:xt};fe.get=function(l){return l[xt]};fe.mount=function(){for(var l=arguments.length,n=new Array(l),i=0;i<l;i++)n[i]=arguments[i];n[0].constructor===Array&&(n=n[0]),n.forEach(function(s){if(!s.prototype||!s.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(s));s.utils&&(fe.utils=_n(_n({},fe.utils),s.utils)),Or.mount(s)})};fe.create=function(l,n){return new fe(l,n)};fe.version=dT;var ft=[],fr,Hf,$f=!1,Tf,Nf,wo,dr;function _T(){function l(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this))}return l.prototype={dragStarted:function(i){var s=i.originalEvent;this.sortable.nativeDraggable?xe(document,"dragover",this._handleAutoScroll):this.options.supportPointer?xe(document,"pointermove",this._handleFallbackAutoScroll):s.touches?xe(document,"touchmove",this._handleFallbackAutoScroll):xe(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(i){var s=i.originalEvent;!this.options.dragOverBubble&&!s.rootEl&&this._handleAutoScroll(s)},drop:function(){this.sortable.nativeDraggable?Se(document,"dragover",this._handleAutoScroll):(Se(document,"pointermove",this._handleFallbackAutoScroll),Se(document,"touchmove",this._handleFallbackAutoScroll),Se(document,"mousemove",this._handleFallbackAutoScroll)),bv(),po(),mT()},nulling:function(){wo=Hf=fr=$f=dr=Tf=Nf=null,ft.length=0},_handleFallbackAutoScroll:function(i){this._handleAutoScroll(i,!0)},_handleAutoScroll:function(i,s){var o=this,c=(i.touches?i.touches[0]:i).clientX,d=(i.touches?i.touches[0]:i).clientY,p=document.elementFromPoint(c,d);if(wo=i,s||this.options.forceAutoScrollFallback||jr||na||gr){Rf(i,this.options,p,s);var h=Aa(p,!0);$f&&(!dr||c!==Tf||d!==Nf)&&(dr&&bv(),dr=setInterval(function(){var m=Aa(document.elementFromPoint(c,d),!0);m!==h&&(h=m,po()),Rf(i,o.options,m,s)},10),Tf=c,Nf=d)}else{if(!this.options.bubbleScroll||Aa(p,!0)===Dn()){po();return}Rf(i,this.options,Aa(p,!1),!1)}}},pn(l,{pluginName:"scroll",initializeByDefault:!0})}function po(){ft.forEach(function(l){clearInterval(l.pid)}),ft=[]}function bv(){clearInterval(dr)}var Rf=vy(function(l,n,i,s){if(n.scroll){var o=(l.touches?l.touches[0]:l).clientX,c=(l.touches?l.touches[0]:l).clientY,d=n.scrollSensitivity,p=n.scrollSpeed,h=Dn(),m=!1,v;Hf!==i&&(Hf=i,po(),fr=n.scroll,v=n.scrollFn,fr===!0&&(fr=Aa(i,!0)));var y=0,x=fr;do{var E=x,N=Ze(E),O=N.top,L=N.bottom,Q=N.left,M=N.right,B=N.width,P=N.height,ee=void 0,Y=void 0,_=E.scrollWidth,K=E.scrollHeight,$=se(E),Z=E.scrollLeft,F=E.scrollTop;E===h?(ee=B<_&&($.overflowX==="auto"||$.overflowX==="scroll"||$.overflowX==="visible"),Y=P<K&&($.overflowY==="auto"||$.overflowY==="scroll"||$.overflowY==="visible")):(ee=B<_&&($.overflowX==="auto"||$.overflowX==="scroll"),Y=P<K&&($.overflowY==="auto"||$.overflowY==="scroll"));var te=ee&&(Math.abs(M-o)<=d&&Z+B<_)-(Math.abs(Q-o)<=d&&!!Z),ie=Y&&(Math.abs(L-c)<=d&&F+P<K)-(Math.abs(O-c)<=d&&!!F);if(!ft[y])for(var ce=0;ce<=y;ce++)ft[ce]||(ft[ce]={});(ft[y].vx!=te||ft[y].vy!=ie||ft[y].el!==E)&&(ft[y].el=E,ft[y].vx=te,ft[y].vy=ie,clearInterval(ft[y].pid),(te!=0||ie!=0)&&(m=!0,ft[y].pid=setInterval((function(){s&&this.layer===0&&fe.active._onTouchMove(wo);var he=ft[this.layer].vy?ft[this.layer].vy*p:0,z=ft[this.layer].vx?ft[this.layer].vx*p:0;typeof v=="function"&&v.call(fe.dragged.parentNode[xt],z,he,l,wo,ft[this.layer].el)!=="continue"||yy(ft[this.layer].el,z,he)}).bind({layer:y}),24))),y++}while(n.bubbleScroll&&x!==h&&(x=Aa(x,!1)));$f=m}},30),Ty=function(n){var i=n.originalEvent,s=n.putSortable,o=n.dragEl,c=n.activeSortable,d=n.dispatchSortableEvent,p=n.hideGhostForTarget,h=n.unhideGhostForTarget;if(i){var m=s||c;p();var v=i.changedTouches&&i.changedTouches.length?i.changedTouches[0]:i,y=document.elementFromPoint(v.clientX,v.clientY);h(),m&&!m.el.contains(y)&&(d("spill"),this.onSpill({dragEl:o,putSortable:s}))}};function ld(){}ld.prototype={startIndex:null,dragStart:function(n){var i=n.oldDraggableIndex;this.startIndex=i},onSpill:function(n){var i=n.dragEl,s=n.putSortable;this.sortable.captureAnimationState(),s&&s.captureAnimationState();var o=Wl(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(i,o):this.sortable.el.appendChild(i),this.sortable.animateAll(),s&&s.animateAll()},drop:Ty};pn(ld,{pluginName:"revertOnSpill"});function id(){}id.prototype={onSpill:function(n){var i=n.dragEl,s=n.putSortable,o=s||this.sortable;o.captureAnimationState(),i.parentNode&&i.parentNode.removeChild(i),o.animateAll()},drop:Ty};pn(id,{pluginName:"removeOnSpill"});var hn;function kT(){function l(){this.defaults={swapClass:"sortable-swap-highlight"}}return l.prototype={dragStart:function(i){var s=i.dragEl;hn=s},dragOverValid:function(i){var s=i.completed,o=i.target,c=i.onMove,d=i.activeSortable,p=i.changed,h=i.cancel;if(d.options.swap){var m=this.sortable.el,v=this.options;if(o&&o!==m){var y=hn;c(o)!==!1?(et(o,v.swapClass,!0),hn=o):hn=null,y&&y!==hn&&et(y,v.swapClass,!1)}p(),s(!0),h()}},drop:function(i){var s=i.activeSortable,o=i.putSortable,c=i.dragEl,d=o||this.sortable,p=this.options;hn&&et(hn,p.swapClass,!1),hn&&(p.swap||o&&o.options.swap)&&c!==hn&&(d.captureAnimationState(),d!==s&&s.captureAnimationState(),MT(c,hn),d.animateAll(),d!==s&&s.animateAll())},nulling:function(){hn=null}},pn(l,{pluginName:"swap",eventProperties:function(){return{swapItem:hn}}})}function MT(l,n){var i=l.parentNode,s=n.parentNode,o,c;!i||!s||i.isEqualNode(n)||s.isEqualNode(l)||(o=lt(l),c=lt(n),i.isEqualNode(s)&&o<c&&c++,i.insertBefore(n,i.children[o]),s.insertBefore(l,s.children[c]))}var me=[],Pt=[],ar,Sn,lr=!1,Bt=!1,Fl=!1,Ye,ir,no;function zT(){function l(n){for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));n.options.avoidImplicitDeselect||(n.options.supportPointer?xe(document,"pointerup",this._deselectMultiDrag):(xe(document,"mouseup",this._deselectMultiDrag),xe(document,"touchend",this._deselectMultiDrag))),xe(document,"keydown",this._checkKeyDown),xe(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,avoidImplicitDeselect:!1,setData:function(o,c){var d="";me.length&&Sn===n?me.forEach(function(p,h){d+=(h?", ":"")+p.textContent}):d=c.textContent,o.setData("Text",d)}}}return l.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(i){var s=i.dragEl;Ye=s},delayEnded:function(){this.isMultiDrag=~me.indexOf(Ye)},setupClone:function(i){var s=i.sortable,o=i.cancel;if(this.isMultiDrag){for(var c=0;c<me.length;c++)Pt.push(ad(me[c])),Pt[c].sortableIndex=me[c].sortableIndex,Pt[c].draggable=!1,Pt[c].style["will-change"]="",et(Pt[c],this.options.selectedClass,!1),me[c]===Ye&&et(Pt[c],this.options.chosenClass,!1);s._hideClone(),o()}},clone:function(i){var s=i.sortable,o=i.rootEl,c=i.dispatchSortableEvent,d=i.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||me.length&&Sn===s&&(Sv(!0,o),c("clone"),d()))},showClone:function(i){var s=i.cloneNowShown,o=i.rootEl,c=i.cancel;this.isMultiDrag&&(Sv(!1,o),Pt.forEach(function(d){se(d,"display","")}),s(),no=!1,c())},hideClone:function(i){var s=this;i.sortable;var o=i.cloneNowHidden,c=i.cancel;this.isMultiDrag&&(Pt.forEach(function(d){se(d,"display","none"),s.options.removeCloneOnHide&&d.parentNode&&d.parentNode.removeChild(d)}),o(),no=!0,c())},dragStartGlobal:function(i){i.sortable,!this.isMultiDrag&&Sn&&Sn.multiDrag._deselectMultiDrag(),me.forEach(function(s){s.sortableIndex=lt(s)}),me=me.sort(function(s,o){return s.sortableIndex-o.sortableIndex}),Fl=!0},dragStarted:function(i){var s=this,o=i.sortable;if(this.isMultiDrag){if(this.options.sort&&(o.captureAnimationState(),this.options.animation)){me.forEach(function(d){d!==Ye&&se(d,"position","absolute")});var c=Ze(Ye,!1,!0,!0);me.forEach(function(d){d!==Ye&&mv(d,c)}),Bt=!0,lr=!0}o.animateAll(function(){Bt=!1,lr=!1,s.options.animation&&me.forEach(function(d){bf(d)}),s.options.sort&&ao()})}},dragOver:function(i){var s=i.target,o=i.completed,c=i.cancel;Bt&&~me.indexOf(s)&&(o(!1),c())},revert:function(i){var s=i.fromSortable,o=i.rootEl,c=i.sortable,d=i.dragRect;me.length>1&&(me.forEach(function(p){c.addAnimationState({target:p,rect:Bt?Ze(p):d}),bf(p),p.fromRect=d,s.removeAnimationState(p)}),Bt=!1,LT(!this.options.removeCloneOnHide,o))},dragOverCompleted:function(i){var s=i.sortable,o=i.isOwner,c=i.insertion,d=i.activeSortable,p=i.parentEl,h=i.putSortable,m=this.options;if(c){if(o&&d._hideClone(),lr=!1,m.animation&&me.length>1&&(Bt||!o&&!d.options.sort&&!h)){var v=Ze(Ye,!1,!0,!0);me.forEach(function(x){x!==Ye&&(mv(x,v),p.appendChild(x))}),Bt=!0}if(!o)if(Bt||ao(),me.length>1){var y=no;d._showClone(s),d.options.animation&&!no&&y&&Pt.forEach(function(x){d.addAnimationState({target:x,rect:ir}),x.fromRect=ir,x.thisAnimationDuration=null})}else d._showClone(s)}},dragOverAnimationCapture:function(i){var s=i.dragRect,o=i.isOwner,c=i.activeSortable;if(me.forEach(function(p){p.thisAnimationDuration=null}),c.options.animation&&!o&&c.multiDrag.isMultiDrag){ir=pn({},s);var d=nl(Ye,!0);ir.top-=d.f,ir.left-=d.e}},dragOverAnimationComplete:function(){Bt&&(Bt=!1,ao())},drop:function(i){var s=i.originalEvent,o=i.rootEl,c=i.parentEl,d=i.sortable,p=i.dispatchSortableEvent,h=i.oldIndex,m=i.putSortable,v=m||this.sortable;if(s){var y=this.options,x=c.children;if(!Fl)if(y.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),et(Ye,y.selectedClass,!~me.indexOf(Ye)),~me.indexOf(Ye))me.splice(me.indexOf(Ye),1),ar=null,ur({sortable:d,rootEl:o,name:"deselect",targetEl:Ye,originalEvent:s});else{if(me.push(Ye),ur({sortable:d,rootEl:o,name:"select",targetEl:Ye,originalEvent:s}),s.shiftKey&&ar&&d.el.contains(ar)){var E=lt(ar),N=lt(Ye);~E&&~N&&E!==N&&(function(){var M,B;N>E?(B=E,M=N):(B=N,M=E+1);for(var P=y.filter;B<M;B++)if(!~me.indexOf(x[B])&&Ht(x[B],y.draggable,c,!1)){var ee=P&&(typeof P=="function"?P.call(d,s,x[B],d):P.split(",").some(function(Y){return Ht(x[B],Y.trim(),c,!1)}));ee||(et(x[B],y.selectedClass,!0),me.push(x[B]),ur({sortable:d,rootEl:o,name:"select",targetEl:x[B],originalEvent:s}))}})()}else ar=Ye;Sn=v}if(Fl&&this.isMultiDrag){if(Bt=!1,(c[xt].options.sort||c!==o)&&me.length>1){var O=Ze(Ye),L=lt(Ye,":not(."+this.options.selectedClass+")");if(!lr&&y.animation&&(Ye.thisAnimationDuration=null),v.captureAnimationState(),!lr&&(y.animation&&(Ye.fromRect=O,me.forEach(function(M){if(M.thisAnimationDuration=null,M!==Ye){var B=Bt?Ze(M):O;M.fromRect=B,v.addAnimationState({target:M,rect:B})}})),ao(),me.forEach(function(M){x[L]?c.insertBefore(M,x[L]):c.appendChild(M),L++}),h===lt(Ye))){var Q=!1;me.forEach(function(M){if(M.sortableIndex!==lt(M)){Q=!0;return}}),Q&&(p("update"),p("sort"))}me.forEach(function(M){bf(M)}),v.animateAll()}Sn=v}(o===c||m&&m.lastPutMode!=="clone")&&Pt.forEach(function(M){M.parentNode&&M.parentNode.removeChild(M)})}},nullingGlobal:function(){this.isMultiDrag=Fl=!1,Pt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),Se(document,"pointerup",this._deselectMultiDrag),Se(document,"mouseup",this._deselectMultiDrag),Se(document,"touchend",this._deselectMultiDrag),Se(document,"keydown",this._checkKeyDown),Se(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(i){if(!(typeof Fl<"u"&&Fl)&&Sn===this.sortable&&!(i&&Ht(i.target,this.options.draggable,this.sortable.el,!1))&&!(i&&i.button!==0))for(;me.length;){var s=me[0];et(s,this.options.selectedClass,!1),me.shift(),ur({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:s,originalEvent:i})}},_checkKeyDown:function(i){i.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(i){i.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},pn(l,{pluginName:"multiDrag",utils:{select:function(i){var s=i.parentNode[xt];!s||!s.options.multiDrag||~me.indexOf(i)||(Sn&&Sn!==s&&(Sn.multiDrag._deselectMultiDrag(),Sn=s),et(i,s.options.selectedClass,!0),me.push(i))},deselect:function(i){var s=i.parentNode[xt],o=me.indexOf(i);!s||!s.options.multiDrag||!~o||(et(i,s.options.selectedClass,!1),me.splice(o,1))}},eventProperties:function(){var i=this,s=[],o=[];return me.forEach(function(c){s.push({multiDragElement:c,index:c.sortableIndex});var d;Bt&&c!==Ye?d=-1:Bt?d=lt(c,":not(."+i.options.selectedClass+")"):d=lt(c),o.push({multiDragElement:c,index:d})}),{items:sT(me),clones:[].concat(Pt),oldIndicies:s,newIndicies:o}},optionListeners:{multiDragKey:function(i){return i=i.toLowerCase(),i==="ctrl"?i="Control":i.length>1&&(i=i.charAt(0).toUpperCase()+i.substr(1)),i}}})}function LT(l,n){me.forEach(function(i,s){var o=n.children[i.sortableIndex+(l?Number(s):0)];o?n.insertBefore(i,o):n.appendChild(i)})}function Sv(l,n){Pt.forEach(function(i,s){var o=n.children[i.sortableIndex+(l?Number(s):0)];o?n.insertBefore(i,o):n.appendChild(i)})}function ao(){me.forEach(function(l){l!==Ye&&l.parentNode&&l.parentNode.removeChild(l)})}fe.mount(new _T);fe.mount(id,ld);const UT=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:zT,Sortable:fe,Swap:kT,default:fe},Symbol.toStringTag,{value:"Module"})),BT=zv(UT);var jf={exports:{}};var xv;function HT(){return xv||(xv=1,(function(l){(function(){var n={}.hasOwnProperty;function i(){for(var s=[],o=0;o<arguments.length;o++){var c=arguments[o];if(c){var d=typeof c;if(d==="string"||d==="number")s.push(c);else if(Array.isArray(c)){if(c.length){var p=i.apply(null,c);p&&s.push(p)}}else if(d==="object")if(c.toString===Object.prototype.toString)for(var h in c)n.call(c,h)&&c[h]&&s.push(h);else s.push(c.toString())}}return s.join(" ")}l.exports?(i.default=i,l.exports=i):window.classNames=i})()})(jf)),jf.exports}var $T="Invariant failed";function VT(l,n){if(!l)throw new Error($T)}const qT=Object.freeze(Object.defineProperty({__proto__:null,default:VT},Symbol.toStringTag,{value:"Module"})),GT=zv(qT);var Ev;function YT(){return Ev||(Ev=1,(function(l){var n=BT,i=HT(),s=Tr(),o=GT;function c(Y){return Y&&Y.__esModule?Y.default:Y}function d(Y,_,K,$){Object.defineProperty(Y,_,{get:K,set:$,enumerable:!0,configurable:!0})}function p(Y,_){return Object.keys(_).forEach(function(K){K==="default"||K==="__esModule"||Y.hasOwnProperty(K)||Object.defineProperty(Y,K,{enumerable:!0,get:function(){return _[K]}})}),Y}d(l.exports,"Sortable",()=>$882b6d93070905b3$re_export$Sortable),d(l.exports,"Direction",()=>$882b6d93070905b3$re_export$Direction),d(l.exports,"DOMRect",()=>$882b6d93070905b3$re_export$DOMRect),d(l.exports,"GroupOptions",()=>$882b6d93070905b3$re_export$GroupOptions),d(l.exports,"MoveEvent",()=>$882b6d93070905b3$re_export$MoveEvent),d(l.exports,"Options",()=>$882b6d93070905b3$re_export$Options),d(l.exports,"PullResult",()=>$882b6d93070905b3$re_export$PullResult),d(l.exports,"PutResult",()=>$882b6d93070905b3$re_export$PutResult),d(l.exports,"SortableEvent",()=>$882b6d93070905b3$re_export$SortableEvent),d(l.exports,"SortableOptions",()=>$882b6d93070905b3$re_export$SortableOptions),d(l.exports,"Utils",()=>$882b6d93070905b3$re_export$Utils),d(l.exports,"ReactSortable",()=>P);function h(Y){Y.parentElement!==null&&Y.parentElement.removeChild(Y)}function m(Y,_,K){const $=Y.children[K]||null;Y.insertBefore(_,$)}function v(Y){Y.forEach(_=>h(_.element))}function y(Y){Y.forEach(_=>{m(_.parentElement,_.element,_.oldIndex)})}function x(Y,_){const K=L(Y),$={parentElement:Y.from};let Z=[];switch(K){case"normal":Z=[{element:Y.item,newIndex:Y.newIndex,oldIndex:Y.oldIndex,parentElement:Y.from}];break;case"swap":const ie={element:Y.item,oldIndex:Y.oldIndex,newIndex:Y.newIndex,...$},ce={element:Y.swapItem,oldIndex:Y.newIndex,newIndex:Y.oldIndex,...$};Z=[ie,ce];break;case"multidrag":Z=Y.oldIndicies.map((he,z)=>({element:he.multiDragElement,oldIndex:he.index,newIndex:Y.newIndicies[z].index,...$}));break}return Q(Z,_)}function E(Y,_){const K=N(Y,_);return O(Y,K)}function N(Y,_){const K=[..._];return Y.concat().reverse().forEach($=>K.splice($.oldIndex,1)),K}function O(Y,_,K,$){const Z=[..._];return Y.forEach(F=>{const te=$&&K&&$(F.item,K);Z.splice(F.newIndex,0,te||F.item)}),Z}function L(Y){return Y.oldIndicies&&Y.oldIndicies.length>0?"multidrag":Y.swapItem?"swap":"normal"}function Q(Y,_){return Y.map($=>({...$,item:_[$.oldIndex]})).sort(($,Z)=>$.oldIndex-Z.oldIndex)}function M(Y){const{list:_,setList:K,children:$,tag:Z,style:F,className:te,clone:ie,onAdd:ce,onChange:he,onChoose:z,onClone:J,onEnd:ne,onFilter:Ee,onRemove:Ne,onSort:T,onStart:q,onUnchoose:I,onUpdate:ae,onMove:ve,onSpill:we,onSelect:ze,onDeselect:Et,...Ie}=Y;return Ie}const B={dragging:null};class P extends s.Component{static defaultProps={clone:_=>_};constructor(_){super(_),this.ref=(0,s.createRef)();const K=[..._.list].map($=>Object.assign($,{chosen:!1,selected:!1}));_.setList(K,this.sortable,B),c(o)(!_.plugins,`
23
- Plugins prop is no longer supported.
24
- Instead, mount it with "Sortable.mount(new MultiDrag())"
25
- Please read the updated README.md at https://github.com/SortableJS/react-sortablejs.
26
- `)}componentDidMount(){if(this.ref.current===null)return;const _=this.makeOptions();c(n).create(this.ref.current,_)}componentDidUpdate(_){_.disabled!==this.props.disabled&&this.sortable&&this.sortable.option("disabled",this.props.disabled)}render(){const{tag:_,style:K,className:$,id:Z}=this.props,F={style:K,className:$,id:Z},te=!_||_===null?"div":_;return(0,s.createElement)(te,{ref:this.ref,...F},this.getChildren())}getChildren(){const{children:_,dataIdAttr:K,selectedClass:$="sortable-selected",chosenClass:Z="sortable-chosen",dragClass:F="sortable-drag",fallbackClass:te="sortable-falback",ghostClass:ie="sortable-ghost",swapClass:ce="sortable-swap-highlight",filter:he="sortable-filter",list:z}=this.props;if(!_||_==null)return null;const J=K||"data-id";return s.Children.map(_,(ne,Ee)=>{if(ne===void 0)return;const Ne=z[Ee]||{},{className:T}=ne.props,q=typeof he=="string"&&{[he.replace(".","")]:!!Ne.filtered},I=c(i)(T,{[$]:Ne.selected,[Z]:Ne.chosen,...q});return(0,s.cloneElement)(ne,{[J]:ne.key,className:I})})}get sortable(){const _=this.ref.current;if(_===null)return null;const K=Object.keys(_).find($=>$.includes("Sortable"));return K?_[K]:null}makeOptions(){const _=["onAdd","onChoose","onDeselect","onEnd","onRemove","onSelect","onSpill","onStart","onUnchoose","onUpdate"],K=["onChange","onClone","onFilter","onSort"],$=M(this.props);return _.forEach(F=>$[F]=this.prepareOnHandlerPropAndDOM(F)),K.forEach(F=>$[F]=this.prepareOnHandlerProp(F)),{...$,onMove:(F,te)=>{const{onMove:ie}=this.props,ce=F.willInsertAfter||-1;if(!ie)return ce;const he=ie(F,te,this.sortable,B);return typeof he>"u"?!1:he}}}prepareOnHandlerPropAndDOM(_){return K=>{this.callOnHandlerProp(K,_),this[_](K)}}prepareOnHandlerProp(_){return K=>{this.callOnHandlerProp(K,_)}}callOnHandlerProp(_,K){const $=this.props[K];$&&$(_,this.sortable,B)}onAdd(_){const{list:K,setList:$,clone:Z}=this.props,F=[...B.dragging.props.list],te=x(_,F);v(te);const ie=O(te,K,_,Z).map(ce=>Object.assign(ce,{selected:!1}));$(ie,this.sortable,B)}onRemove(_){const{list:K,setList:$}=this.props,Z=L(_),F=x(_,K);y(F);let te=[...K];if(_.pullMode!=="clone")te=N(F,te);else{let ie=F;switch(Z){case"multidrag":ie=F.map((ce,he)=>({...ce,element:_.clones[he]}));break;case"normal":ie=F.map(ce=>({...ce,element:_.clone}));break;default:c(o)(!0,`mode "${Z}" cannot clone. Please remove "props.clone" from <ReactSortable/> when using the "${Z}" plugin`)}v(ie),F.forEach(ce=>{const he=ce.oldIndex,z=this.props.clone(ce.item,_);te.splice(he,1,z)})}te=te.map(ie=>Object.assign(ie,{selected:!1})),$(te,this.sortable,B)}onUpdate(_){const{list:K,setList:$}=this.props,Z=x(_,K);v(Z),y(Z);const F=E(Z,K);return $(F,this.sortable,B)}onStart(){B.dragging=this}onEnd(){B.dragging=null}onChoose(_){const{list:K,setList:$}=this.props,Z=K.map((F,te)=>{let ie=F;return te===_.oldIndex&&(ie=Object.assign(F,{chosen:!0})),ie});$(Z,this.sortable,B)}onUnchoose(_){const{list:K,setList:$}=this.props,Z=K.map((F,te)=>{let ie=F;return te===_.oldIndex&&(ie=Object.assign(ie,{chosen:!1})),ie});$(Z,this.sortable,B)}onSpill(_){const{removeOnSpill:K,revertOnSpill:$}=this.props;K&&!$&&h(_.item)}onSelect(_){const{list:K,setList:$}=this.props,Z=K.map(F=>Object.assign(F,{selected:!1}));_.newIndicies.forEach(F=>{const te=F.index;if(te===-1){console.log(`"${_.type}" had indice of "${F.index}", which is probably -1 and doesn't usually happen here.`),console.log(_);return}Z[te].selected=!0}),$(Z,this.sortable,B)}onDeselect(_){const{list:K,setList:$}=this.props,Z=K.map(F=>Object.assign(F,{selected:!1}));_.newIndicies.forEach(F=>{const te=F.index;te!==-1&&(Z[te].selected=!0)}),$(Z,this.sortable,B)}}var ee={};p(l.exports,ee)})(vf)),vf.exports}YT();w.createContext(void 0);function Ny({placeholder:l,submitLabel:n,onSubmit:i,isLoading:s=!1,error:o,onCancel:c}){const{t:d}=Ot(),[p,h]=w.useState(""),m=async v=>{v.preventDefault(),!(!p.trim()||s)&&await i(p.trim())};return b.jsxs("form",{className:"PromptForm",onSubmit:m,children:[b.jsx(I2,{className:"PromptForm-textarea",placeholder:l,value:p,onChange:h,disabled:s,rows:6,style:{minHeight:"160px"}}),o&&b.jsx(Ao,{severity:"error",children:o}),b.jsxs("div",{className:"PromptForm-actions",children:[b.jsx(ta,{type:"submit",disabled:!p.trim()||s,children:n}),c&&b.jsx(ta,{severity:"secondary",onClick:c,type:"button",children:d("cancel")})]})]})}function XT({onSubmit:l,isLoading:n,error:i}){const{t:s}=Ot();return b.jsxs("div",{className:"WelcomePage",children:[b.jsxs("div",{className:"WelcomePage-header",children:[b.jsx("h1",{className:"WelcomePage-title",children:s("welcomeTitle")}),b.jsx("p",{className:"WelcomePage-description",children:s("welcomeDescription")})]}),b.jsx("div",{className:"SgSection",style:{borderBottom:"none"},children:b.jsx(Ny,{submitLabel:s("createSchema"),onSubmit:l,isLoading:n,error:i})}),b.jsx("footer",{className:"WelcomePage-footer",children:b.jsx("span",{dangerouslySetInnerHTML:{__html:s("footerLinks")}})})]})}const wv=l=>{let n;const i=new Set,s=(m,v)=>{const y=typeof m=="function"?m(n):m;if(!Object.is(y,n)){const x=n;n=v??(typeof y!="object"||y===null)?y:Object.assign({},n,y),i.forEach(E=>E(n,x))}},o=()=>n,p={setState:s,getState:o,getInitialState:()=>h,subscribe:m=>(i.add(m),()=>i.delete(m))},h=n=l(s,o,p);return p},QT=(l=>l?wv(l):wv),KT=l=>l;function ZT(l,n=KT){const i=or.useSyncExternalStore(l.subscribe,or.useCallback(()=>n(l.getState()),[l,n]),or.useCallback(()=>n(l.getInitialState()),[l,n]));return or.useDebugValue(i),i}const Cv=l=>{const n=QT(l),i=s=>ZT(n,s);return Object.assign(i,n),i},JT=(l=>l?Cv(l):Cv),rd="site-generator-session-token";function Tv(l){try{sessionStorage.setItem(rd,l)}catch(n){console.error("Failed to save session token",n)}}function ei(){try{return sessionStorage.getItem(rd)??void 0}catch(l){console.error("Failed to get session token",l)}}function FT(){try{sessionStorage.removeItem(rd)}catch(l){console.error("Failed to remove session token",l)}}const PT=2e3,ti=new Map;function IT(l){if(ti.has(l))return;const n=window.setInterval(()=>{WT(l)},PT);ti.set(l,n)}function lo(l){const n=ti.get(l);n&&(window.clearInterval(n),ti.delete(l))}function sd(){ti.forEach(l=>{window.clearInterval(l)}),ti.clear()}async function WT(l){const n=ei();if(!n){lo(l);return}try{const i=await Da({command:"loadStep",sessionToken:n,stepNumber:l});if(i.success&&i.result){const s=i.result;eN(s),s.status!=="pending"&&lo(l)}else console.error("Error polling step:",i),lo(l)}catch(i){console.error("Error polling step:",i),lo(l)}}function eN(l){const{updateStep:n}=rl.getState();n(l)}function Of(l){sd(),l.steps.forEach(n=>{n.status==="pending"&&IT(n.stepNumber)})}const rl=JT((l,n)=>({workSession:void 0,isLoading:!1,error:void 0,activeStepNumber:void 0,setWorkSession:i=>{l({workSession:i}),i&&Of(i)},updateStep:i=>{const{workSession:s}=n();if(!s)return;const o=s.steps.map(d=>d.stepNumber===i.stepNumber?i:d),c={...s,steps:o};l({workSession:c}),i.status==="pending"&&Of(c)},appendNewStep:i=>{const{workSession:s}=n();if(!s)return;const o={...s,steps:[...s.steps,i]};l({workSession:o}),i.status==="pending"&&Of(o)},setIsLoading:i=>l({isLoading:i}),setError:i=>l({error:i}),setActiveStepNumber:i=>l({activeStepNumber:i}),resetSession:()=>{sd(),l({workSession:void 0,isLoading:!1,error:void 0,activeStepNumber:void 0})}}));function tN(){const{t:l}=Ot(),n=li(),[i,s]=w.useState(!1),[o,c]=w.useState(),{appendNewStep:d}=rl(),p=async h=>{s(!0),c(void 0);const m=ei();if(!m){c(l("sessionExpired")),s(!1);return}try{const v=await Da({command:"createSiteSchema",sessionToken:m,prompt:h});if(v.success&&v.result){const y=v.result;d(y),n(`/step/${y.stepNumber}`)}else c(l("promptSubmissionFailed"))}catch{c(l("errorOccurred"))}finally{s(!1)}};return b.jsx(XT,{onSubmit:p,isLoading:i,error:o})}function nN(l){return"siteId"in l}function od(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var sl=od();function Ry(l){sl=l}var xr={exec:()=>null};function Me(l,n=""){let i=typeof l=="string"?l:l.source,s={replace:(o,c)=>{let d=typeof c=="string"?c:c.source;return d=d.replace(jt.caret,"$1"),i=i.replace(o,d),s},getRegex:()=>new RegExp(i,n)};return s}var aN=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),jt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:l=>new RegExp(`^( {0,3}${l})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:l=>new RegExp(`^ {0,${Math.min(3,l-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:l=>new RegExp(`^ {0,${Math.min(3,l-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:l=>new RegExp(`^ {0,${Math.min(3,l-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:l=>new RegExp(`^ {0,${Math.min(3,l-1)}}#`),htmlBeginRegex:l=>new RegExp(`^ {0,${Math.min(3,l-1)}}<(?:[a-z].*>|!--)`,"i")},lN=/^(?:[ \t]*(?:\n|$))+/,iN=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,rN=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ar=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,sN=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ud=/(?:[*+-]|\d{1,9}[.)])/,jy=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Oy=Me(jy).replace(/bull/g,ud).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),oN=Me(jy).replace(/bull/g,ud).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),cd=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,uN=/^[^\n]+/,fd=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,cN=Me(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",fd).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),fN=Me(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ud).getRegex(),_o="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",dd=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,dN=Me("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",dd).replace("tag",_o).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ay=Me(cd).replace("hr",Ar).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_o).getRegex(),hN=Me(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ay).getRegex(),hd={blockquote:hN,code:iN,def:cN,fences:rN,heading:sN,hr:Ar,html:dN,lheading:Oy,list:fN,newline:lN,paragraph:Ay,table:xr,text:uN},Nv=Me("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ar).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_o).getRegex(),pN={...hd,lheading:oN,table:Nv,paragraph:Me(cd).replace("hr",Ar).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Nv).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_o).getRegex()},mN={...hd,html:Me(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",dd).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:xr,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Me(cd).replace("hr",Ar).replace("heading",` *#{1,6} *[^
27
- ]`).replace("lheading",Oy).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},gN=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,vN=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Dy=/^( {2,}|\\)\n(?!\s*$)/,yN=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ko=/[\p{P}\p{S}]/u,pd=/[\s\p{P}\p{S}]/u,_y=/[^\s\p{P}\p{S}]/u,bN=Me(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,pd).getRegex(),ky=/(?!~)[\p{P}\p{S}]/u,SN=/(?!~)[\s\p{P}\p{S}]/u,xN=/(?:[^\s\p{P}\p{S}]|~)/u,EN=Me(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",aN?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),My=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,wN=Me(My,"u").replace(/punct/g,ko).getRegex(),CN=Me(My,"u").replace(/punct/g,ky).getRegex(),zy="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",TN=Me(zy,"gu").replace(/notPunctSpace/g,_y).replace(/punctSpace/g,pd).replace(/punct/g,ko).getRegex(),NN=Me(zy,"gu").replace(/notPunctSpace/g,xN).replace(/punctSpace/g,SN).replace(/punct/g,ky).getRegex(),RN=Me("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,_y).replace(/punctSpace/g,pd).replace(/punct/g,ko).getRegex(),jN=Me(/\\(punct)/,"gu").replace(/punct/g,ko).getRegex(),ON=Me(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),AN=Me(dd).replace("(?:-->|$)","-->").getRegex(),DN=Me("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",AN).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Co=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,_N=Me(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Co).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ly=Me(/^!?\[(label)\]\[(ref)\]/).replace("label",Co).replace("ref",fd).getRegex(),Uy=Me(/^!?\[(ref)\](?:\[\])?/).replace("ref",fd).getRegex(),kN=Me("reflink|nolink(?!\\()","g").replace("reflink",Ly).replace("nolink",Uy).getRegex(),Rv=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,md={_backpedal:xr,anyPunctuation:jN,autolink:ON,blockSkip:EN,br:Dy,code:vN,del:xr,emStrongLDelim:wN,emStrongRDelimAst:TN,emStrongRDelimUnd:RN,escape:gN,link:_N,nolink:Uy,punctuation:bN,reflink:Ly,reflinkSearch:kN,tag:DN,text:yN,url:xr},MN={...md,link:Me(/^!?\[(label)\]\((.*?)\)/).replace("label",Co).getRegex(),reflink:Me(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Co).getRegex()},Vf={...md,emStrongRDelimAst:NN,emStrongLDelim:CN,url:Me(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Rv).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Me(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Rv).getRegex()},zN={...Vf,br:Me(Dy).replace("{2,}","*").getRegex(),text:Me(Vf.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},io={normal:hd,gfm:pN,pedantic:mN},rr={normal:md,gfm:Vf,breaks:zN,pedantic:MN},LN={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},jv=l=>LN[l];function Pn(l,n){if(n){if(jt.escapeTest.test(l))return l.replace(jt.escapeReplace,jv)}else if(jt.escapeTestNoEncode.test(l))return l.replace(jt.escapeReplaceNoEncode,jv);return l}function Ov(l){try{l=encodeURI(l).replace(jt.percentDecode,"%")}catch{return null}return l}function Av(l,n){let i=l.replace(jt.findPipe,(c,d,p)=>{let h=!1,m=d;for(;--m>=0&&p[m]==="\\";)h=!h;return h?"|":" |"}),s=i.split(jt.splitPipe),o=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),n)if(s.length>n)s.splice(n);else for(;s.length<n;)s.push("");for(;o<s.length;o++)s[o]=s[o].trim().replace(jt.slashPipe,"|");return s}function sr(l,n,i){let s=l.length;if(s===0)return"";let o=0;for(;o<s&&l.charAt(s-o-1)===n;)o++;return l.slice(0,s-o)}function UN(l,n){if(l.indexOf(n[1])===-1)return-1;let i=0;for(let s=0;s<l.length;s++)if(l[s]==="\\")s++;else if(l[s]===n[0])i++;else if(l[s]===n[1]&&(i--,i<0))return s;return i>0?-2:-1}function Dv(l,n,i,s,o){let c=n.href,d=n.title||null,p=l[1].replace(o.other.outputLinkReplace,"$1");s.state.inLink=!0;let h={type:l[0].charAt(0)==="!"?"image":"link",raw:i,href:c,title:d,text:p,tokens:s.inlineTokens(p)};return s.state.inLink=!1,h}function BN(l,n,i){let s=l.match(i.other.indentCodeCompensation);if(s===null)return n;let o=s[1];return n.split(`
28
- `).map(c=>{let d=c.match(i.other.beginningSpace);if(d===null)return c;let[p]=d;return p.length>=o.length?c.slice(o.length):c}).join(`
29
- `)}var To=class{options;rules;lexer;constructor(l){this.options=l||sl}space(l){let n=this.rules.block.newline.exec(l);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(l){let n=this.rules.block.code.exec(l);if(n){let i=n[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?i:sr(i,`
30
- `)}}}fences(l){let n=this.rules.block.fences.exec(l);if(n){let i=n[0],s=BN(i,n[3]||"",this.rules);return{type:"code",raw:i,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:s}}}heading(l){let n=this.rules.block.heading.exec(l);if(n){let i=n[2].trim();if(this.rules.other.endingHash.test(i)){let s=sr(i,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(i=s.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(l){let n=this.rules.block.hr.exec(l);if(n)return{type:"hr",raw:sr(n[0],`
31
- `)}}blockquote(l){let n=this.rules.block.blockquote.exec(l);if(n){let i=sr(n[0],`
26
+ Please change the parent <Route path="${M}"> to <Route path="${M==="/"?"*":`${M}/*`}">.`)}let x=ka(),E;if(n){let M=typeof n=="string"?ol(n):n;Pe(y==="/"||M.pathname?.startsWith(y),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${y}" but pathname "${M.pathname}" was given in the \`location\` prop.`),E=M}else E=x;let R=E.pathname||"/",A=R;if(y!=="/"){let M=y.replace(/^\//,"").split("/");A="/"+R.replace(/^\//,"").split("/").slice(M.length).join("/")}let B=hy(l,{pathname:A});Wt(v||B!=null,`No routes matched location "${E.pathname}${E.search}${E.hash}" `),Wt(B==null||B[B.length-1].route.element!==void 0||B[B.length-1].route.Component!==void 0||B[B.length-1].route.lazy!==void 0,`Matched leaf route at location "${E.pathname}${E.search}${E.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let Q=lT(B&&B.map(M=>Object.assign({},M,{params:Object.assign({},h,M.params),pathname:Wn([y,c.encodeLocation?c.encodeLocation(M.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathname]),pathnameBase:M.pathnameBase==="/"?y:Wn([y,c.encodeLocation?c.encodeLocation(M.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathnameBase])})),f,i,s,o);return n&&Q?w.createElement(Dr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...E},navigationType:"POP"}},Q):Q}function eT(){let l=uT(),n=$2(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),i=l instanceof Error?l.stack:null,s="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:s},c={padding:"2px 4px",backgroundColor:s},f=null;return console.error("Error handled by React Router default ErrorBoundary:",l),f=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:c},"ErrorBoundary")," or"," ",w.createElement("code",{style:c},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},n),i?w.createElement("pre",{style:o},i):null,f)}var tT=w.createElement(eT,null),Ty=class extends w.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,n){return n.location!==l.location||n.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:n.error,location:n.location,revalidation:l.revalidation||n.revalidation}}componentDidCatch(l,n){this.props.onError?this.props.onError(l,n):console.error("React Router caught the following error during render",l)}render(){let l=this.state.error;if(this.context&&typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){const i=J2(l.digest);i&&(l=i)}let n=l!==void 0?w.createElement(wn.Provider,{value:this.props.routeContext},w.createElement(sd.Provider,{value:l,children:this.props.component})):this.props.children;return this.context?w.createElement(nT,{error:l},n):n}};Ty.contextType=G2;var Af=new WeakMap;function nT({children:l,error:n}){let{basename:i}=w.useContext(en);if(typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){let s=Z2(n.digest);if(s){let o=Af.get(n);if(o)throw o;let c=yy(s.location,i);if(vy&&!Af.get(n))if(c.isExternal||s.reloadDocument)window.location.href=c.absoluteURL||c.to;else{const f=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:s.replace}));throw Af.set(n,f),f}return w.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return l}function aT({routeContext:l,match:n,children:i}){let s=w.useContext(ii);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),w.createElement(wn.Provider,{value:l},i)}function lT(l,n=[],i=null,s=null,o=null){if(l==null){if(!i)return null;if(i.errors)l=i.matches;else if(n.length===0&&!i.initialized&&i.matches.length>0)l=i.matches;else return null}let c=l,f=i?.errors;if(f!=null){let y=c.findIndex(v=>v.route.id&&f?.[v.route.id]!==void 0);Pe(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),c=c.slice(0,Math.min(c.length,y+1))}let p=!1,h=-1;if(i)for(let y=0;y<c.length;y++){let v=c[y];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(h=y),v.route.id){let{loaderData:x,errors:E}=i,R=v.route.loader&&!x.hasOwnProperty(v.route.id)&&(!E||E[v.route.id]===void 0);if(v.route.lazy||R){p=!0,h>=0?c=c.slice(0,h+1):c=[c[0]];break}}}let m=i&&s?(y,v)=>{s(y,{location:i.location,params:i.matches?.[0]?.params??{},unstable_pattern:V2(i.matches),errorInfo:v})}:void 0;return c.reduceRight((y,v,x)=>{let E,R=!1,A=null,B=null;i&&(E=f&&v.route.id?f[v.route.id]:void 0,A=v.route.errorElement||tT,p&&(h<0&&x===0?(Ny("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),R=!0,B=null):h===x&&(R=!0,B=v.route.hydrateFallbackElement||null)));let Q=n.concat(c.slice(0,x+1)),M=()=>{let U;return E?U=A:R?U=B:v.route.Component?U=w.createElement(v.route.Component,null):v.route.element?U=v.route.element:U=y,w.createElement(aT,{match:v,routeContext:{outlet:y,matches:Q,isDataRoute:i!=null},children:U})};return i&&(v.route.ErrorBoundary||v.route.errorElement||x===0)?w.createElement(Ty,{location:i.location,revalidation:i.revalidation,component:A,error:E,children:M(),routeContext:{outlet:null,matches:Q,isDataRoute:!0},onError:m}):M()},null)}function od(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function iT(l){let n=w.useContext(ii);return Pe(n,od(l)),n}function rT(l){let n=w.useContext(ko);return Pe(n,od(l)),n}function sT(l){let n=w.useContext(wn);return Pe(n,od(l)),n}function ud(l){let n=sT(l),i=n.matches[n.matches.length-1];return Pe(i.route.id,`${l} can only be used on routes that contain a unique "id"`),i.route.id}function oT(){return ud("useRouteId")}function uT(){let l=w.useContext(sd),n=rT("useRouteError"),i=ud("useRouteError");return l!==void 0?l:n.errors?.[i]}function cT(){let{router:l}=iT("useNavigate"),n=ud("useNavigate"),i=w.useRef(!1);return wy(()=>{i.current=!0}),w.useCallback(async(o,c={})=>{Wt(i.current,Ey),i.current&&(typeof o=="number"?await l.navigate(o):await l.navigate(o,{fromRouteId:n,...c}))},[l,n])}var Rv={};function Ny(l,n,i){!n&&!Rv[l]&&(Rv[l]=!0,Wt(!1,i))}w.memo(fT);function fT({routes:l,future:n,state:i,onError:s}){return Cy(l,void 0,i,s,n)}function dT({to:l,replace:n,state:i,relative:s}){Pe(ri(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=w.useContext(en);Wt(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:c}=w.useContext(wn),{pathname:f}=ka(),p=si(),h=rd(l,id(c),f,s==="path"),m=JSON.stringify(h);return w.useEffect(()=>{p(JSON.parse(m),{replace:n,state:i,relative:s})},[p,m,s,n,i]),null}function mo(l){Pe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function hT({basename:l="/",children:n=null,location:i,navigationType:s="POP",navigator:o,static:c=!1,unstable_useTransitions:f}){Pe(!ri(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=l.replace(/^\/*/,"/"),h=w.useMemo(()=>({basename:p,navigator:o,static:c,unstable_useTransitions:f,future:{}}),[p,o,c,f]);typeof i=="string"&&(i=ol(i));let{pathname:m="/",search:y="",hash:v="",state:x=null,key:E="default"}=i,R=w.useMemo(()=>{let A=ta(m,p);return A==null?null:{location:{pathname:A,search:y,hash:v,state:x,key:E},navigationType:s}},[p,m,y,v,x,E,s]);return Wt(R!=null,`<Router basename="${p}"> is not able to match the URL "${m}${y}${v}" because it does not start with the basename, so the <Router> won't render anything.`),R==null?null:w.createElement(en.Provider,{value:h},w.createElement(Dr.Provider,{children:n,value:R}))}function pT({children:l,location:n}){return W2(Gf(l),n)}function Gf(l,n=[]){let i=[];return w.Children.forEach(l,(s,o)=>{if(!w.isValidElement(s))return;let c=[...n,o];if(s.type===w.Fragment){i.push.apply(i,Gf(s.props.children,c));return}Pe(s.type===mo,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Pe(!s.props.index||!s.props.children,"An index route cannot have child routes.");let f={id:s.props.id||c.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(f.children=Gf(s.props.children,c)),i.push(f)}),i}var go="get",vo="application/x-www-form-urlencoded";function Mo(l){return typeof HTMLElement<"u"&&l instanceof HTMLElement}function mT(l){return Mo(l)&&l.tagName.toLowerCase()==="button"}function gT(l){return Mo(l)&&l.tagName.toLowerCase()==="form"}function vT(l){return Mo(l)&&l.tagName.toLowerCase()==="input"}function yT(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function bT(l,n){return l.button===0&&(!n||n==="_self")&&!yT(l)}var io=null;function ST(){if(io===null)try{new FormData(document.createElement("form"),0),io=!1}catch{io=!0}return io}var xT=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Of(l){return l!=null&&!xT.has(l)?(Wt(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${vo}"`),null):l}function ET(l,n){let i,s,o,c,f;if(gT(l)){let p=l.getAttribute("action");s=p?ta(p,n):null,i=l.getAttribute("method")||go,o=Of(l.getAttribute("enctype"))||vo,c=new FormData(l)}else if(mT(l)||vT(l)&&(l.type==="submit"||l.type==="image")){let p=l.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=l.getAttribute("formaction")||p.getAttribute("action");if(s=h?ta(h,n):null,i=l.getAttribute("formmethod")||p.getAttribute("method")||go,o=Of(l.getAttribute("formenctype"))||Of(p.getAttribute("enctype"))||vo,c=new FormData(p,l),!ST()){let{name:m,type:y,value:v}=l;if(y==="image"){let x=m?`${m}.`:"";c.append(`${x}x`,"0"),c.append(`${x}y`,"0")}else m&&c.append(m,v)}}else{if(Mo(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=go,s=null,o=vo,f=l}return c&&o==="text/plain"&&(f=c,c=void 0),{action:s,method:i.toLowerCase(),encType:o,formData:c,body:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function cd(l,n){if(l===!1||l===null||typeof l>"u")throw new Error(n)}function wT(l,n,i,s){let o=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return i?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${s}`:o.pathname=`${o.pathname}.${s}`:o.pathname==="/"?o.pathname=`_root.${s}`:n&&ta(o.pathname,n)==="/"?o.pathname=`${n.replace(/\/$/,"")}/_root.${s}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${s}`,o}async function CT(l,n){if(l.id in n)return n[l.id];try{let i=await import(l.module);return n[l.id]=i,i}catch(i){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function TT(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function NT(l,n,i){let s=await Promise.all(l.map(async o=>{let c=n.routes[o.route.id];if(c){let f=await CT(c,i);return f.links?f.links():[]}return[]}));return OT(s.flat(1).filter(TT).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function jv(l,n,i,s,o,c){let f=(h,m)=>i[m]?h.route.id!==i[m].route.id:!0,p=(h,m)=>i[m].pathname!==h.pathname||i[m].route.path?.endsWith("*")&&i[m].params["*"]!==h.params["*"];return c==="assets"?n.filter((h,m)=>f(h,m)||p(h,m)):c==="data"?n.filter((h,m)=>{let y=s.routes[h.route.id];if(!y||!y.hasLoader)return!1;if(f(h,m)||p(h,m))return!0;if(h.route.shouldRevalidate){let v=h.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:i[0]?.params||{},nextUrl:new URL(l,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function RT(l,n,{includeHydrateFallback:i}={}){return jT(l.map(s=>{let o=n.routes[s.route.id];if(!o)return[];let c=[o.module];return o.clientActionModule&&(c=c.concat(o.clientActionModule)),o.clientLoaderModule&&(c=c.concat(o.clientLoaderModule)),i&&o.hydrateFallbackModule&&(c=c.concat(o.hydrateFallbackModule)),o.imports&&(c=c.concat(o.imports)),c}).flat(1))}function jT(l){return[...new Set(l)]}function AT(l){let n={},i=Object.keys(l).sort();for(let s of i)n[s]=l[s];return n}function OT(l,n){let i=new Set;return new Set(n),l.reduce((s,o)=>{let c=JSON.stringify(AT(o));return i.has(c)||(i.add(c),s.push({key:c,link:o})),s},[])}function Ry(){let l=w.useContext(ii);return cd(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function DT(){let l=w.useContext(ko);return cd(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var fd=w.createContext(void 0);fd.displayName="FrameworkContext";function jy(){let l=w.useContext(fd);return cd(l,"You must render this element inside a <HydratedRouter> element"),l}function _T(l,n){let i=w.useContext(fd),[s,o]=w.useState(!1),[c,f]=w.useState(!1),{onFocus:p,onBlur:h,onMouseEnter:m,onMouseLeave:y,onTouchStart:v}=n,x=w.useRef(null);w.useEffect(()=>{if(l==="render"&&f(!0),l==="viewport"){let A=Q=>{Q.forEach(M=>{f(M.isIntersecting)})},B=new IntersectionObserver(A,{threshold:.5});return x.current&&B.observe(x.current),()=>{B.disconnect()}}},[l]),w.useEffect(()=>{if(s){let A=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(A)}}},[s]);let E=()=>{o(!0)},R=()=>{o(!1),f(!1)};return i?l!=="intent"?[c,x,{}]:[c,x,{onFocus:or(p,E),onBlur:or(h,R),onMouseEnter:or(m,E),onMouseLeave:or(y,R),onTouchStart:or(v,E)}]:[!1,x,{}]}function or(l,n){return i=>{l&&l(i),i.defaultPrevented||n(i)}}function kT({page:l,...n}){let{router:i}=Ry(),s=w.useMemo(()=>hy(i.routes,l,i.basename),[i.routes,l,i.basename]);return s?w.createElement(zT,{page:l,matches:s,...n}):null}function MT(l){let{manifest:n,routeModules:i}=jy(),[s,o]=w.useState([]);return w.useEffect(()=>{let c=!1;return NT(l,n,i).then(f=>{c||o(f)}),()=>{c=!0}},[l,n,i]),s}function zT({page:l,matches:n,...i}){let s=ka(),{future:o,manifest:c,routeModules:f}=jy(),{basename:p}=Ry(),{loaderData:h,matches:m}=DT(),y=w.useMemo(()=>jv(l,n,m,c,s,"data"),[l,n,m,c,s]),v=w.useMemo(()=>jv(l,n,m,c,s,"assets"),[l,n,m,c,s]),x=w.useMemo(()=>{if(l===s.pathname+s.search+s.hash)return[];let A=new Set,B=!1;if(n.forEach(M=>{let U=c.routes[M.route.id];!U||!U.hasLoader||(!y.some(P=>P.route.id===M.route.id)&&M.route.id in h&&f[M.route.id]?.shouldRevalidate||U.hasClientLoader?B=!0:A.add(M.route.id))}),A.size===0)return[];let Q=wT(l,p,o.unstable_trailingSlashAwareDataRequests,"data");return B&&A.size>0&&Q.searchParams.set("_routes",n.filter(M=>A.has(M.route.id)).map(M=>M.route.id).join(",")),[Q.pathname+Q.search]},[p,o.unstable_trailingSlashAwareDataRequests,h,s,c,y,n,l,f]),E=w.useMemo(()=>RT(v,c),[v,c]),R=MT(v);return w.createElement(w.Fragment,null,x.map(A=>w.createElement("link",{key:A,rel:"prefetch",as:"fetch",href:A,...i})),E.map(A=>w.createElement("link",{key:A,rel:"modulepreload",href:A,...i})),R.map(({key:A,link:B})=>w.createElement("link",{key:A,nonce:i.nonce,...B})))}function LT(...l){return n=>{l.forEach(i=>{typeof i=="function"?i(n):i!=null&&(i.current=n)})}}var UT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{UT&&(window.__reactRouterVersion="7.12.0")}catch{}function BT({basename:l,children:n,unstable_useTransitions:i,window:s}){let o=w.useRef();o.current==null&&(o.current=g2({window:s,v5Compat:!0}));let c=o.current,[f,p]=w.useState({action:c.action,location:c.location}),h=w.useCallback(m=>{i===!1?p(m):w.startTransition(()=>p(m))},[i]);return w.useLayoutEffect(()=>c.listen(h),[c,h]),w.createElement(hT,{basename:l,children:n,location:f.location,navigationType:f.action,navigator:c,unstable_useTransitions:i})}var Ay=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Oy=w.forwardRef(function({onClick:n,discover:i="render",prefetch:s="none",relative:o,reloadDocument:c,replace:f,state:p,target:h,to:m,preventScrollReset:y,viewTransition:v,unstable_defaultShouldRevalidate:x,...E},R){let{basename:A,unstable_useTransitions:B}=w.useContext(en),Q=typeof m=="string"&&Ay.test(m),M=yy(m,A);m=M.to;let U=F2(m,{relative:o}),[P,ee,Y]=_T(s,E),_=qT(m,{replace:f,state:p,target:h,preventScrollReset:y,relative:o,viewTransition:v,unstable_defaultShouldRevalidate:x,unstable_useTransitions:B});function K(Z){n&&n(Z),Z.defaultPrevented||_(Z)}let $=w.createElement("a",{...E,...Y,href:M.absoluteURL||U,onClick:M.isExternal||c?n:K,ref:LT(R,ee),target:h,"data-discover":!Q&&i==="render"?"true":void 0});return P&&!Q?w.createElement(w.Fragment,null,$,w.createElement(kT,{page:U})):$});Oy.displayName="Link";var HT=w.forwardRef(function({"aria-current":n="page",caseSensitive:i=!1,className:s="",end:o=!1,style:c,to:f,viewTransition:p,children:h,...m},y){let v=_r(f,{relative:m.relative}),x=ka(),E=w.useContext(ko),{navigator:R,basename:A}=w.useContext(en),B=E!=null&&KT(v)&&p===!0,Q=R.encodeLocation?R.encodeLocation(v).pathname:v.pathname,M=x.pathname,U=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;i||(M=M.toLowerCase(),U=U?U.toLowerCase():null,Q=Q.toLowerCase()),U&&A&&(U=ta(U,A)||U);const P=Q!=="/"&&Q.endsWith("/")?Q.length-1:Q.length;let ee=M===Q||!o&&M.startsWith(Q)&&M.charAt(P)==="/",Y=U!=null&&(U===Q||!o&&U.startsWith(Q)&&U.charAt(Q.length)==="/"),_={isActive:ee,isPending:Y,isTransitioning:B},K=ee?n:void 0,$;typeof s=="function"?$=s(_):$=[s,ee?"active":null,Y?"pending":null,B?"transitioning":null].filter(Boolean).join(" ");let Z=typeof c=="function"?c(_):c;return w.createElement(Oy,{...m,"aria-current":K,className:$,ref:y,style:Z,to:f,viewTransition:p},typeof h=="function"?h(_):h)});HT.displayName="NavLink";var $T=w.forwardRef(({discover:l="render",fetcherKey:n,navigate:i,reloadDocument:s,replace:o,state:c,method:f=go,action:p,onSubmit:h,relative:m,preventScrollReset:y,viewTransition:v,unstable_defaultShouldRevalidate:x,...E},R)=>{let{unstable_useTransitions:A}=w.useContext(en),B=XT(),Q=QT(p,{relative:m}),M=f.toLowerCase()==="get"?"get":"post",U=typeof p=="string"&&Ay.test(p),P=ee=>{if(h&&h(ee),ee.defaultPrevented)return;ee.preventDefault();let Y=ee.nativeEvent.submitter,_=Y?.getAttribute("formmethod")||f,K=()=>B(Y||ee.currentTarget,{fetcherKey:n,method:_,navigate:i,replace:o,state:c,relative:m,preventScrollReset:y,viewTransition:v,unstable_defaultShouldRevalidate:x});A&&i!==!1?w.startTransition(()=>K()):K()};return w.createElement("form",{ref:R,method:M,action:Q,onSubmit:s?h:P,...E,"data-discover":!U&&l==="render"?"true":void 0})});$T.displayName="Form";function VT(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Dy(l){let n=w.useContext(ii);return Pe(n,VT(l)),n}function qT(l,{target:n,replace:i,state:s,preventScrollReset:o,relative:c,viewTransition:f,unstable_defaultShouldRevalidate:p,unstable_useTransitions:h}={}){let m=si(),y=ka(),v=_r(l,{relative:c});return w.useCallback(x=>{if(bT(x,n)){x.preventDefault();let E=i!==void 0?i:Nr(y)===Nr(v),R=()=>m(l,{replace:E,state:s,preventScrollReset:o,relative:c,viewTransition:f,unstable_defaultShouldRevalidate:p});h?w.startTransition(()=>R()):R()}},[y,m,v,i,s,n,l,o,c,f,p,h])}var GT=0,YT=()=>`__${String(++GT)}__`;function XT(){let{router:l}=Dy("useSubmit"),{basename:n}=w.useContext(en),i=oT(),s=l.fetch,o=l.navigate;return w.useCallback(async(c,f={})=>{let{action:p,method:h,encType:m,formData:y,body:v}=ET(c,n);if(f.navigate===!1){let x=f.fetcherKey||YT();await s(x,i,f.action||p,{unstable_defaultShouldRevalidate:f.unstable_defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:y,body:v,formMethod:f.method||h,formEncType:f.encType||m,flushSync:f.flushSync})}else await o(f.action||p,{unstable_defaultShouldRevalidate:f.unstable_defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:y,body:v,formMethod:f.method||h,formEncType:f.encType||m,replace:f.replace,state:f.state,fromRouteId:i,flushSync:f.flushSync,viewTransition:f.viewTransition})},[s,o,n,i])}function QT(l,{relative:n}={}){let{basename:i}=w.useContext(en),s=w.useContext(wn);Pe(s,"useFormAction must be used inside a RouteContext");let[o]=s.matches.slice(-1),c={..._r(l||".",{relative:n})},f=ka();if(l==null){c.search=f.search;let p=new URLSearchParams(c.search),h=p.getAll("index");if(h.some(y=>y==="")){p.delete("index"),h.filter(v=>v).forEach(v=>p.append("index",v));let y=p.toString();c.search=y?`?${y}`:""}}return(!l||l===".")&&o.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(c.pathname=c.pathname==="/"?i:Wn([i,c.pathname])),Nr(c)}function KT(l,{relative:n}={}){let i=w.useContext(Sy);Pe(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Dy("useViewTransitionState"),o=_r(l,{relative:n});if(!i.isTransitioning)return!1;let c=ta(i.currentLocation.pathname,s)||i.currentLocation.pathname,f=ta(i.nextLocation.pathname,s)||i.nextLocation.pathname;return No(o.pathname,f)!=null||No(o.pathname,c)!=null}const ZT="/api/plugin/site-generator-plugin",JT=`${`//${document.location.host}`}${ZT}`;let _y;const[ro]=document.getElementsByClassName("js-script-site-generator");if(ro&&ro instanceof HTMLScriptElement){if(!ro.dataset.googleRecaptchaSiteKey)throw new Error('missing "data-google-recaptcha-site-key" in ".js-script-site-generator" element');_y=ro.dataset.googleRecaptchaSiteKey}const Df=_y;async function Da(l){try{const n=await fetch(JT,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});return n.ok?n.json():{success:!1,userMessage:`Failed to execute command: ${n.statusText}`}}catch(n){return{success:!1,userMessage:`Communication error: ${ad(n)}`}}}function ky({placeholder:l,submitLabel:n,onSubmit:i,onCancel:s}){const{t:o}=At(),[c,f]=w.useState(""),{showError:p}=sl(),h=w.useRef(null),m=async()=>{c.trim()&&await i(c.trim())};return b.jsxs("form",{className:"PromptForm",onSubmit:y=>{y.preventDefault(),h.current?.click()},children:[b.jsx(gC,{className:"PromptForm-textarea",placeholder:l,value:c,onChange:f,rows:6,style:{minHeight:"160px"}}),b.jsx(_a,{}),b.jsxs("div",{className:"PromptForm-actions",children:[b.jsx(ea,{ref:h,as:"async",onClick:m,disabled:!c.trim(),onError:p,children:n}),s&&b.jsx(ea,{severity:"secondary",onClick:s,type:"button",children:o("cancel")})]})]})}function FT({onSubmit:l}){const{t:n}=At();return b.jsxs("div",{className:"WelcomePage",children:[b.jsxs("div",{className:"WelcomePage-header",children:[b.jsx("h1",{className:"WelcomePage-title",children:n("welcomeTitle")}),b.jsx("p",{className:"WelcomePage-description",children:n("welcomeDescription")})]}),b.jsx("div",{className:"SgSection",style:{borderBottom:"none"},children:b.jsx(ky,{submitLabel:n("createSchema"),onSubmit:l})}),b.jsx("footer",{className:"WelcomePage-footer",children:b.jsx("span",{dangerouslySetInnerHTML:{__html:n("footerLinks")}})})]})}const Av=l=>{let n;const i=new Set,s=(m,y)=>{const v=typeof m=="function"?m(n):m;if(!Object.is(v,n)){const x=n;n=y??(typeof v!="object"||v===null)?v:Object.assign({},n,v),i.forEach(E=>E(n,x))}},o=()=>n,p={setState:s,getState:o,getInitialState:()=>h,subscribe:m=>(i.add(m),()=>i.delete(m))},h=n=l(s,o,p);return p},PT=(l=>l?Av(l):Av),IT=l=>l;function WT(l,n=IT){const i=fr.useSyncExternalStore(l.subscribe,fr.useCallback(()=>n(l.getState()),[l,n]),fr.useCallback(()=>n(l.getInitialState()),[l,n]));return fr.useDebugValue(i),i}const Ov=l=>{const n=PT(l),i=s=>WT(n,s);return Object.assign(i,n),i},eN=(l=>l?Ov(l):Ov),dd="site-generator-session-token";function Dv(l){try{sessionStorage.setItem(dd,l)}catch(n){console.error("Failed to save session token",n)}}function ai(){try{return sessionStorage.getItem(dd)??void 0}catch(l){console.error("Failed to get session token",l)}}function tN(){try{sessionStorage.removeItem(dd)}catch(l){console.error("Failed to remove session token",l)}}const nN=2e3,li=new Map;function aN(l){if(li.has(l))return;const n=window.setInterval(()=>{lN(l)},nN);li.set(l,n)}function so(l){const n=li.get(l);n&&(window.clearInterval(n),li.delete(l))}function hd(){li.forEach(l=>{window.clearInterval(l)}),li.clear()}async function lN(l){const n=ai();if(!n){so(l);return}try{const i=await Da({command:"loadStep",sessionToken:n,stepNumber:l});if(i.success&&i.result){const s=i.result;iN(s),s.status!=="pending"&&so(l)}else console.error("Error polling step:",i),so(l)}catch(i){console.error("Error polling step:",i),so(l)}}function iN(l){const{updateStep:n}=ul.getState();n(l)}function _f(l){hd(),l.steps.forEach(n=>{n.status==="pending"&&aN(n.stepNumber)})}const ul=eN((l,n)=>({workSession:void 0,isLoading:!1,error:void 0,activeStepNumber:void 0,setWorkSession:i=>{l({workSession:i}),i&&_f(i)},updateStep:i=>{const{workSession:s}=n();if(!s)return;const o=s.steps.map(f=>f.stepNumber===i.stepNumber?i:f),c={...s,steps:o};l({workSession:c}),i.status==="pending"&&_f(c)},appendNewStep:i=>{const{workSession:s}=n();if(!s)return;const o={...s,steps:[...s.steps,i]};l({workSession:o}),i.status==="pending"&&_f(o)},setIsLoading:i=>l({isLoading:i}),setError:i=>l({error:i}),setActiveStepNumber:i=>l({activeStepNumber:i}),resetSession:()=>{hd(),l({workSession:void 0,isLoading:!1,error:void 0,activeStepNumber:void 0})}}));function rN(){return b.jsxs(rl,{children:[b.jsx(_a,{}),b.jsx(sN,{})]})}function sN(){const{t:l}=At(),n=si(),{appendNewStep:i}=ul(),{showAlert:s}=sl(),o=async c=>{const f=ai();if(!f){s(l("sessionExpired"),{severity:"error"});return}const p=await Da({command:"createSiteSchema",sessionToken:f,prompt:c});if(p.success){const h=p.result;i(h),n(`/step/${h.stepNumber}`)}else s(p.userMessage??l("promptSubmissionFailed"),{severity:"error"})};return b.jsx(FT,{onSubmit:o})}function oN(l){return"siteId"in l}function pd(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var cl=pd();function My(l){cl=l}var Cr={exec:()=>null};function Me(l,n=""){let i=typeof l=="string"?l:l.source,s={replace:(o,c)=>{let f=typeof c=="string"?c:c.source;return f=f.replace(jt.caret,"$1"),i=i.replace(o,f),s},getRegex:()=>new RegExp(i,n)};return s}var uN=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),jt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:l=>new RegExp(`^( {0,3}${l})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:l=>new RegExp(`^ {0,${Math.min(3,l-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:l=>new RegExp(`^ {0,${Math.min(3,l-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:l=>new RegExp(`^ {0,${Math.min(3,l-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:l=>new RegExp(`^ {0,${Math.min(3,l-1)}}#`),htmlBeginRegex:l=>new RegExp(`^ {0,${Math.min(3,l-1)}}<(?:[a-z].*>|!--)`,"i")},cN=/^(?:[ \t]*(?:\n|$))+/,fN=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,dN=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,kr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,hN=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,md=/(?:[*+-]|\d{1,9}[.)])/,zy=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ly=Me(zy).replace(/bull/g,md).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),pN=Me(zy).replace(/bull/g,md).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),gd=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,mN=/^[^\n]+/,vd=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,gN=Me(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",vd).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),vN=Me(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,md).getRegex(),zo="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",yd=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,yN=Me("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",yd).replace("tag",zo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Uy=Me(gd).replace("hr",kr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",zo).getRegex(),bN=Me(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Uy).getRegex(),bd={blockquote:bN,code:fN,def:gN,fences:dN,heading:hN,hr:kr,html:yN,lheading:Ly,list:vN,newline:cN,paragraph:Uy,table:Cr,text:mN},_v=Me("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",kr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",zo).getRegex(),SN={...bd,lheading:pN,table:_v,paragraph:Me(gd).replace("hr",kr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",_v).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",zo).getRegex()},xN={...bd,html:Me(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",yd).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Cr,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Me(gd).replace("hr",kr).replace("heading",` *#{1,6} *[^
27
+ ]`).replace("lheading",Ly).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},EN=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,wN=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,By=/^( {2,}|\\)\n(?!\s*$)/,CN=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Lo=/[\p{P}\p{S}]/u,Sd=/[\s\p{P}\p{S}]/u,Hy=/[^\s\p{P}\p{S}]/u,TN=Me(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Sd).getRegex(),$y=/(?!~)[\p{P}\p{S}]/u,NN=/(?!~)[\s\p{P}\p{S}]/u,RN=/(?:[^\s\p{P}\p{S}]|~)/u,jN=Me(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",uN?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Vy=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,AN=Me(Vy,"u").replace(/punct/g,Lo).getRegex(),ON=Me(Vy,"u").replace(/punct/g,$y).getRegex(),qy="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",DN=Me(qy,"gu").replace(/notPunctSpace/g,Hy).replace(/punctSpace/g,Sd).replace(/punct/g,Lo).getRegex(),_N=Me(qy,"gu").replace(/notPunctSpace/g,RN).replace(/punctSpace/g,NN).replace(/punct/g,$y).getRegex(),kN=Me("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Hy).replace(/punctSpace/g,Sd).replace(/punct/g,Lo).getRegex(),MN=Me(/\\(punct)/,"gu").replace(/punct/g,Lo).getRegex(),zN=Me(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),LN=Me(yd).replace("(?:-->|$)","-->").getRegex(),UN=Me("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",LN).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ro=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,BN=Me(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Ro).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Gy=Me(/^!?\[(label)\]\[(ref)\]/).replace("label",Ro).replace("ref",vd).getRegex(),Yy=Me(/^!?\[(ref)\](?:\[\])?/).replace("ref",vd).getRegex(),HN=Me("reflink|nolink(?!\\()","g").replace("reflink",Gy).replace("nolink",Yy).getRegex(),kv=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,xd={_backpedal:Cr,anyPunctuation:MN,autolink:zN,blockSkip:jN,br:By,code:wN,del:Cr,emStrongLDelim:AN,emStrongRDelimAst:DN,emStrongRDelimUnd:kN,escape:EN,link:BN,nolink:Yy,punctuation:TN,reflink:Gy,reflinkSearch:HN,tag:UN,text:CN,url:Cr},$N={...xd,link:Me(/^!?\[(label)\]\((.*?)\)/).replace("label",Ro).getRegex(),reflink:Me(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ro).getRegex()},Yf={...xd,emStrongRDelimAst:_N,emStrongLDelim:ON,url:Me(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",kv).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Me(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",kv).getRegex()},VN={...Yf,br:Me(By).replace("{2,}","*").getRegex(),text:Me(Yf.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},oo={normal:bd,gfm:SN,pedantic:xN},ur={normal:xd,gfm:Yf,breaks:VN,pedantic:$N},qN={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Mv=l=>qN[l];function Pn(l,n){if(n){if(jt.escapeTest.test(l))return l.replace(jt.escapeReplace,Mv)}else if(jt.escapeTestNoEncode.test(l))return l.replace(jt.escapeReplaceNoEncode,Mv);return l}function zv(l){try{l=encodeURI(l).replace(jt.percentDecode,"%")}catch{return null}return l}function Lv(l,n){let i=l.replace(jt.findPipe,(c,f,p)=>{let h=!1,m=f;for(;--m>=0&&p[m]==="\\";)h=!h;return h?"|":" |"}),s=i.split(jt.splitPipe),o=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),n)if(s.length>n)s.splice(n);else for(;s.length<n;)s.push("");for(;o<s.length;o++)s[o]=s[o].trim().replace(jt.slashPipe,"|");return s}function cr(l,n,i){let s=l.length;if(s===0)return"";let o=0;for(;o<s&&l.charAt(s-o-1)===n;)o++;return l.slice(0,s-o)}function GN(l,n){if(l.indexOf(n[1])===-1)return-1;let i=0;for(let s=0;s<l.length;s++)if(l[s]==="\\")s++;else if(l[s]===n[0])i++;else if(l[s]===n[1]&&(i--,i<0))return s;return i>0?-2:-1}function Uv(l,n,i,s,o){let c=n.href,f=n.title||null,p=l[1].replace(o.other.outputLinkReplace,"$1");s.state.inLink=!0;let h={type:l[0].charAt(0)==="!"?"image":"link",raw:i,href:c,title:f,text:p,tokens:s.inlineTokens(p)};return s.state.inLink=!1,h}function YN(l,n,i){let s=l.match(i.other.indentCodeCompensation);if(s===null)return n;let o=s[1];return n.split(`
28
+ `).map(c=>{let f=c.match(i.other.beginningSpace);if(f===null)return c;let[p]=f;return p.length>=o.length?c.slice(o.length):c}).join(`
29
+ `)}var jo=class{options;rules;lexer;constructor(l){this.options=l||cl}space(l){let n=this.rules.block.newline.exec(l);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(l){let n=this.rules.block.code.exec(l);if(n){let i=n[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?i:cr(i,`
30
+ `)}}}fences(l){let n=this.rules.block.fences.exec(l);if(n){let i=n[0],s=YN(i,n[3]||"",this.rules);return{type:"code",raw:i,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:s}}}heading(l){let n=this.rules.block.heading.exec(l);if(n){let i=n[2].trim();if(this.rules.other.endingHash.test(i)){let s=cr(i,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(i=s.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(l){let n=this.rules.block.hr.exec(l);if(n)return{type:"hr",raw:cr(n[0],`
31
+ `)}}blockquote(l){let n=this.rules.block.blockquote.exec(l);if(n){let i=cr(n[0],`
32
32
  `).split(`
33
- `),s="",o="",c=[];for(;i.length>0;){let d=!1,p=[],h;for(h=0;h<i.length;h++)if(this.rules.other.blockquoteStart.test(i[h]))p.push(i[h]),d=!0;else if(!d)p.push(i[h]);else break;i=i.slice(h);let m=p.join(`
34
- `),v=m.replace(this.rules.other.blockquoteSetextReplace,`
33
+ `),s="",o="",c=[];for(;i.length>0;){let f=!1,p=[],h;for(h=0;h<i.length;h++)if(this.rules.other.blockquoteStart.test(i[h]))p.push(i[h]),f=!0;else if(!f)p.push(i[h]);else break;i=i.slice(h);let m=p.join(`
34
+ `),y=m.replace(this.rules.other.blockquoteSetextReplace,`
35
35
  $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
36
36
  ${m}`:m,o=o?`${o}
37
- ${v}`:v;let y=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(v,c,!0),this.lexer.state.top=y,i.length===0)break;let x=c.at(-1);if(x?.type==="code")break;if(x?.type==="blockquote"){let E=x,N=E.raw+`
37
+ ${y}`:y;let v=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(y,c,!0),this.lexer.state.top=v,i.length===0)break;let x=c.at(-1);if(x?.type==="code")break;if(x?.type==="blockquote"){let E=x,R=E.raw+`
38
38
  `+i.join(`
39
- `),O=this.blockquote(N);c[c.length-1]=O,s=s.substring(0,s.length-E.raw.length)+O.raw,o=o.substring(0,o.length-E.text.length)+O.text;break}else if(x?.type==="list"){let E=x,N=E.raw+`
39
+ `),A=this.blockquote(R);c[c.length-1]=A,s=s.substring(0,s.length-E.raw.length)+A.raw,o=o.substring(0,o.length-E.text.length)+A.text;break}else if(x?.type==="list"){let E=x,R=E.raw+`
40
40
  `+i.join(`
41
- `),O=this.list(N);c[c.length-1]=O,s=s.substring(0,s.length-x.raw.length)+O.raw,o=o.substring(0,o.length-E.raw.length)+O.raw,i=N.substring(c.at(-1).raw.length).split(`
42
- `);continue}}return{type:"blockquote",raw:s,tokens:c,text:o}}}list(l){let n=this.rules.block.list.exec(l);if(n){let i=n[1].trim(),s=i.length>1,o={type:"list",raw:"",ordered:s,start:s?+i.slice(0,-1):"",loose:!1,items:[]};i=s?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=s?i:"[*+-]");let c=this.rules.other.listItemRegex(i),d=!1;for(;l;){let h=!1,m="",v="";if(!(n=c.exec(l))||this.rules.block.hr.test(l))break;m=n[0],l=l.substring(m.length);let y=n[2].split(`
43
- `,1)[0].replace(this.rules.other.listReplaceTabs,O=>" ".repeat(3*O.length)),x=l.split(`
44
- `,1)[0],E=!y.trim(),N=0;if(this.options.pedantic?(N=2,v=y.trimStart()):E?N=n[1].length+1:(N=n[2].search(this.rules.other.nonSpaceChar),N=N>4?1:N,v=y.slice(N),N+=n[1].length),E&&this.rules.other.blankLine.test(x)&&(m+=x+`
45
- `,l=l.substring(x.length+1),h=!0),!h){let O=this.rules.other.nextBulletRegex(N),L=this.rules.other.hrRegex(N),Q=this.rules.other.fencesBeginRegex(N),M=this.rules.other.headingBeginRegex(N),B=this.rules.other.htmlBeginRegex(N);for(;l;){let P=l.split(`
46
- `,1)[0],ee;if(x=P,this.options.pedantic?(x=x.replace(this.rules.other.listReplaceNesting," "),ee=x):ee=x.replace(this.rules.other.tabCharGlobal," "),Q.test(x)||M.test(x)||B.test(x)||O.test(x)||L.test(x))break;if(ee.search(this.rules.other.nonSpaceChar)>=N||!x.trim())v+=`
47
- `+ee.slice(N);else{if(E||y.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||Q.test(y)||M.test(y)||L.test(y))break;v+=`
41
+ `),A=this.list(R);c[c.length-1]=A,s=s.substring(0,s.length-x.raw.length)+A.raw,o=o.substring(0,o.length-E.raw.length)+A.raw,i=R.substring(c.at(-1).raw.length).split(`
42
+ `);continue}}return{type:"blockquote",raw:s,tokens:c,text:o}}}list(l){let n=this.rules.block.list.exec(l);if(n){let i=n[1].trim(),s=i.length>1,o={type:"list",raw:"",ordered:s,start:s?+i.slice(0,-1):"",loose:!1,items:[]};i=s?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=s?i:"[*+-]");let c=this.rules.other.listItemRegex(i),f=!1;for(;l;){let h=!1,m="",y="";if(!(n=c.exec(l))||this.rules.block.hr.test(l))break;m=n[0],l=l.substring(m.length);let v=n[2].split(`
43
+ `,1)[0].replace(this.rules.other.listReplaceTabs,A=>" ".repeat(3*A.length)),x=l.split(`
44
+ `,1)[0],E=!v.trim(),R=0;if(this.options.pedantic?(R=2,y=v.trimStart()):E?R=n[1].length+1:(R=n[2].search(this.rules.other.nonSpaceChar),R=R>4?1:R,y=v.slice(R),R+=n[1].length),E&&this.rules.other.blankLine.test(x)&&(m+=x+`
45
+ `,l=l.substring(x.length+1),h=!0),!h){let A=this.rules.other.nextBulletRegex(R),B=this.rules.other.hrRegex(R),Q=this.rules.other.fencesBeginRegex(R),M=this.rules.other.headingBeginRegex(R),U=this.rules.other.htmlBeginRegex(R);for(;l;){let P=l.split(`
46
+ `,1)[0],ee;if(x=P,this.options.pedantic?(x=x.replace(this.rules.other.listReplaceNesting," "),ee=x):ee=x.replace(this.rules.other.tabCharGlobal," "),Q.test(x)||M.test(x)||U.test(x)||A.test(x)||B.test(x))break;if(ee.search(this.rules.other.nonSpaceChar)>=R||!x.trim())y+=`
47
+ `+ee.slice(R);else{if(E||v.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||Q.test(v)||M.test(v)||B.test(v))break;y+=`
48
48
  `+x}!E&&!x.trim()&&(E=!0),m+=P+`
49
- `,l=l.substring(P.length+1),y=ee.slice(N)}}o.loose||(d?o.loose=!0:this.rules.other.doubleBlankLine.test(m)&&(d=!0)),o.items.push({type:"list_item",raw:m,task:!!this.options.gfm&&this.rules.other.listIsTask.test(v),loose:!1,text:v,tokens:[]}),o.raw+=m}let p=o.items.at(-1);if(p)p.raw=p.raw.trimEnd(),p.text=p.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let h of o.items){if(this.lexer.state.top=!1,h.tokens=this.lexer.blockTokens(h.text,[]),h.task){if(h.text=h.text.replace(this.rules.other.listReplaceTask,""),h.tokens[0]?.type==="text"||h.tokens[0]?.type==="paragraph"){h.tokens[0].raw=h.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),h.tokens[0].text=h.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let v=this.lexer.inlineQueue.length-1;v>=0;v--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[v].src)){this.lexer.inlineQueue[v].src=this.lexer.inlineQueue[v].src.replace(this.rules.other.listReplaceTask,"");break}}let m=this.rules.other.listTaskCheckbox.exec(h.raw);if(m){let v={type:"checkbox",raw:m[0]+" ",checked:m[0]!=="[ ]"};h.checked=v.checked,o.loose?h.tokens[0]&&["paragraph","text"].includes(h.tokens[0].type)&&"tokens"in h.tokens[0]&&h.tokens[0].tokens?(h.tokens[0].raw=v.raw+h.tokens[0].raw,h.tokens[0].text=v.raw+h.tokens[0].text,h.tokens[0].tokens.unshift(v)):h.tokens.unshift({type:"paragraph",raw:v.raw,text:v.raw,tokens:[v]}):h.tokens.unshift(v)}}if(!o.loose){let m=h.tokens.filter(y=>y.type==="space"),v=m.length>0&&m.some(y=>this.rules.other.anyLine.test(y.raw));o.loose=v}}if(o.loose)for(let h of o.items){h.loose=!0;for(let m of h.tokens)m.type==="text"&&(m.type="paragraph")}return o}}html(l){let n=this.rules.block.html.exec(l);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(l){let n=this.rules.block.def.exec(l);if(n){let i=n[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:i,raw:n[0],href:s,title:o}}}table(l){let n=this.rules.block.table.exec(l);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let i=Av(n[1]),s=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=n[3]?.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
50
- `):[],c={type:"table",raw:n[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let d of s)this.rules.other.tableAlignRight.test(d)?c.align.push("right"):this.rules.other.tableAlignCenter.test(d)?c.align.push("center"):this.rules.other.tableAlignLeft.test(d)?c.align.push("left"):c.align.push(null);for(let d=0;d<i.length;d++)c.header.push({text:i[d],tokens:this.lexer.inline(i[d]),header:!0,align:c.align[d]});for(let d of o)c.rows.push(Av(d,c.header.length).map((p,h)=>({text:p,tokens:this.lexer.inline(p),header:!1,align:c.align[h]})));return c}}lheading(l){let n=this.rules.block.lheading.exec(l);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(l){let n=this.rules.block.paragraph.exec(l);if(n){let i=n[1].charAt(n[1].length-1)===`
51
- `?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:i,tokens:this.lexer.inline(i)}}}text(l){let n=this.rules.block.text.exec(l);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(l){let n=this.rules.inline.escape.exec(l);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(l){let n=this.rules.inline.tag.exec(l);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(l){let n=this.rules.inline.link.exec(l);if(n){let i=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let c=sr(i.slice(0,-1),"\\");if((i.length-c.length)%2===0)return}else{let c=UN(n[2],"()");if(c===-2)return;if(c>-1){let d=(n[0].indexOf("!")===0?5:4)+n[1].length+c;n[2]=n[2].substring(0,c),n[0]=n[0].substring(0,d).trim(),n[3]=""}}let s=n[2],o="";if(this.options.pedantic){let c=this.rules.other.pedanticHrefTitle.exec(s);c&&(s=c[1],o=c[3])}else o=n[3]?n[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s=s.slice(1):s=s.slice(1,-1)),Dv(n,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(l,n){let i;if((i=this.rules.inline.reflink.exec(l))||(i=this.rules.inline.nolink.exec(l))){let s=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=n[s.toLowerCase()];if(!o){let c=i[0].charAt(0);return{type:"text",raw:c,text:c}}return Dv(i,o,i[0],this.lexer,this.rules)}}emStrong(l,n,i=""){let s=this.rules.inline.emStrongLDelim.exec(l);if(!(!s||s[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!i||this.rules.inline.punctuation.exec(i))){let o=[...s[0]].length-1,c,d,p=o,h=0,m=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,n=n.slice(-1*l.length+o);(s=m.exec(n))!=null;){if(c=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!c)continue;if(d=[...c].length,s[3]||s[4]){p+=d;continue}else if((s[5]||s[6])&&o%3&&!((o+d)%3)){h+=d;continue}if(p-=d,p>0)continue;d=Math.min(d,d+p+h);let v=[...s[0]][0].length,y=l.slice(0,o+s.index+v+d);if(Math.min(o,d)%2){let E=y.slice(1,-1);return{type:"em",raw:y,text:E,tokens:this.lexer.inlineTokens(E)}}let x=y.slice(2,-2);return{type:"strong",raw:y,text:x,tokens:this.lexer.inlineTokens(x)}}}}codespan(l){let n=this.rules.inline.code.exec(l);if(n){let i=n[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(i),o=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return s&&o&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:n[0],text:i}}}br(l){let n=this.rules.inline.br.exec(l);if(n)return{type:"br",raw:n[0]}}del(l){let n=this.rules.inline.del.exec(l);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(l){let n=this.rules.inline.autolink.exec(l);if(n){let i,s;return n[2]==="@"?(i=n[1],s="mailto:"+i):(i=n[1],s=i),{type:"link",raw:n[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(l){let n;if(n=this.rules.inline.url.exec(l)){let i,s;if(n[2]==="@")i=n[0],s="mailto:"+i;else{let o;do o=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])?.[0]??"";while(o!==n[0]);i=n[0],n[1]==="www."?s="http://"+n[0]:s=n[0]}return{type:"link",raw:n[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(l){let n=this.rules.inline.text.exec(l);if(n){let i=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:i}}}},xn=class qf{tokens;options;state;inlineQueue;tokenizer;constructor(n){this.tokens=[],this.tokens.links=Object.create(null),this.options=n||sl,this.options.tokenizer=this.options.tokenizer||new To,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let i={other:jt,block:io.normal,inline:rr.normal};this.options.pedantic?(i.block=io.pedantic,i.inline=rr.pedantic):this.options.gfm&&(i.block=io.gfm,this.options.breaks?i.inline=rr.breaks:i.inline=rr.gfm),this.tokenizer.rules=i}static get rules(){return{block:io,inline:rr}}static lex(n,i){return new qf(i).lex(n)}static lexInline(n,i){return new qf(i).inlineTokens(n)}lex(n){n=n.replace(jt.carriageReturn,`
52
- `),this.blockTokens(n,this.tokens);for(let i=0;i<this.inlineQueue.length;i++){let s=this.inlineQueue[i];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(n,i=[],s=!1){for(this.options.pedantic&&(n=n.replace(jt.tabCharGlobal," ").replace(jt.spaceLine,""));n;){let o;if(this.options.extensions?.block?.some(d=>(o=d.call({lexer:this},n,i))?(n=n.substring(o.raw.length),i.push(o),!0):!1))continue;if(o=this.tokenizer.space(n)){n=n.substring(o.raw.length);let d=i.at(-1);o.raw.length===1&&d!==void 0?d.raw+=`
53
- `:i.push(o);continue}if(o=this.tokenizer.code(n)){n=n.substring(o.raw.length);let d=i.at(-1);d?.type==="paragraph"||d?.type==="text"?(d.raw+=(d.raw.endsWith(`
49
+ `,l=l.substring(P.length+1),v=ee.slice(R)}}o.loose||(f?o.loose=!0:this.rules.other.doubleBlankLine.test(m)&&(f=!0)),o.items.push({type:"list_item",raw:m,task:!!this.options.gfm&&this.rules.other.listIsTask.test(y),loose:!1,text:y,tokens:[]}),o.raw+=m}let p=o.items.at(-1);if(p)p.raw=p.raw.trimEnd(),p.text=p.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let h of o.items){if(this.lexer.state.top=!1,h.tokens=this.lexer.blockTokens(h.text,[]),h.task){if(h.text=h.text.replace(this.rules.other.listReplaceTask,""),h.tokens[0]?.type==="text"||h.tokens[0]?.type==="paragraph"){h.tokens[0].raw=h.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),h.tokens[0].text=h.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let y=this.lexer.inlineQueue.length-1;y>=0;y--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[y].src)){this.lexer.inlineQueue[y].src=this.lexer.inlineQueue[y].src.replace(this.rules.other.listReplaceTask,"");break}}let m=this.rules.other.listTaskCheckbox.exec(h.raw);if(m){let y={type:"checkbox",raw:m[0]+" ",checked:m[0]!=="[ ]"};h.checked=y.checked,o.loose?h.tokens[0]&&["paragraph","text"].includes(h.tokens[0].type)&&"tokens"in h.tokens[0]&&h.tokens[0].tokens?(h.tokens[0].raw=y.raw+h.tokens[0].raw,h.tokens[0].text=y.raw+h.tokens[0].text,h.tokens[0].tokens.unshift(y)):h.tokens.unshift({type:"paragraph",raw:y.raw,text:y.raw,tokens:[y]}):h.tokens.unshift(y)}}if(!o.loose){let m=h.tokens.filter(v=>v.type==="space"),y=m.length>0&&m.some(v=>this.rules.other.anyLine.test(v.raw));o.loose=y}}if(o.loose)for(let h of o.items){h.loose=!0;for(let m of h.tokens)m.type==="text"&&(m.type="paragraph")}return o}}html(l){let n=this.rules.block.html.exec(l);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(l){let n=this.rules.block.def.exec(l);if(n){let i=n[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:i,raw:n[0],href:s,title:o}}}table(l){let n=this.rules.block.table.exec(l);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let i=Lv(n[1]),s=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=n[3]?.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
50
+ `):[],c={type:"table",raw:n[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let f of s)this.rules.other.tableAlignRight.test(f)?c.align.push("right"):this.rules.other.tableAlignCenter.test(f)?c.align.push("center"):this.rules.other.tableAlignLeft.test(f)?c.align.push("left"):c.align.push(null);for(let f=0;f<i.length;f++)c.header.push({text:i[f],tokens:this.lexer.inline(i[f]),header:!0,align:c.align[f]});for(let f of o)c.rows.push(Lv(f,c.header.length).map((p,h)=>({text:p,tokens:this.lexer.inline(p),header:!1,align:c.align[h]})));return c}}lheading(l){let n=this.rules.block.lheading.exec(l);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(l){let n=this.rules.block.paragraph.exec(l);if(n){let i=n[1].charAt(n[1].length-1)===`
51
+ `?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:i,tokens:this.lexer.inline(i)}}}text(l){let n=this.rules.block.text.exec(l);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(l){let n=this.rules.inline.escape.exec(l);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(l){let n=this.rules.inline.tag.exec(l);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(l){let n=this.rules.inline.link.exec(l);if(n){let i=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let c=cr(i.slice(0,-1),"\\");if((i.length-c.length)%2===0)return}else{let c=GN(n[2],"()");if(c===-2)return;if(c>-1){let f=(n[0].indexOf("!")===0?5:4)+n[1].length+c;n[2]=n[2].substring(0,c),n[0]=n[0].substring(0,f).trim(),n[3]=""}}let s=n[2],o="";if(this.options.pedantic){let c=this.rules.other.pedanticHrefTitle.exec(s);c&&(s=c[1],o=c[3])}else o=n[3]?n[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s=s.slice(1):s=s.slice(1,-1)),Uv(n,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(l,n){let i;if((i=this.rules.inline.reflink.exec(l))||(i=this.rules.inline.nolink.exec(l))){let s=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=n[s.toLowerCase()];if(!o){let c=i[0].charAt(0);return{type:"text",raw:c,text:c}}return Uv(i,o,i[0],this.lexer,this.rules)}}emStrong(l,n,i=""){let s=this.rules.inline.emStrongLDelim.exec(l);if(!(!s||s[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!i||this.rules.inline.punctuation.exec(i))){let o=[...s[0]].length-1,c,f,p=o,h=0,m=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,n=n.slice(-1*l.length+o);(s=m.exec(n))!=null;){if(c=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!c)continue;if(f=[...c].length,s[3]||s[4]){p+=f;continue}else if((s[5]||s[6])&&o%3&&!((o+f)%3)){h+=f;continue}if(p-=f,p>0)continue;f=Math.min(f,f+p+h);let y=[...s[0]][0].length,v=l.slice(0,o+s.index+y+f);if(Math.min(o,f)%2){let E=v.slice(1,-1);return{type:"em",raw:v,text:E,tokens:this.lexer.inlineTokens(E)}}let x=v.slice(2,-2);return{type:"strong",raw:v,text:x,tokens:this.lexer.inlineTokens(x)}}}}codespan(l){let n=this.rules.inline.code.exec(l);if(n){let i=n[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(i),o=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return s&&o&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:n[0],text:i}}}br(l){let n=this.rules.inline.br.exec(l);if(n)return{type:"br",raw:n[0]}}del(l){let n=this.rules.inline.del.exec(l);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(l){let n=this.rules.inline.autolink.exec(l);if(n){let i,s;return n[2]==="@"?(i=n[1],s="mailto:"+i):(i=n[1],s=i),{type:"link",raw:n[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(l){let n;if(n=this.rules.inline.url.exec(l)){let i,s;if(n[2]==="@")i=n[0],s="mailto:"+i;else{let o;do o=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])?.[0]??"";while(o!==n[0]);i=n[0],n[1]==="www."?s="http://"+n[0]:s=n[0]}return{type:"link",raw:n[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(l){let n=this.rules.inline.text.exec(l);if(n){let i=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:i}}}},xn=class Xf{tokens;options;state;inlineQueue;tokenizer;constructor(n){this.tokens=[],this.tokens.links=Object.create(null),this.options=n||cl,this.options.tokenizer=this.options.tokenizer||new jo,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let i={other:jt,block:oo.normal,inline:ur.normal};this.options.pedantic?(i.block=oo.pedantic,i.inline=ur.pedantic):this.options.gfm&&(i.block=oo.gfm,this.options.breaks?i.inline=ur.breaks:i.inline=ur.gfm),this.tokenizer.rules=i}static get rules(){return{block:oo,inline:ur}}static lex(n,i){return new Xf(i).lex(n)}static lexInline(n,i){return new Xf(i).inlineTokens(n)}lex(n){n=n.replace(jt.carriageReturn,`
52
+ `),this.blockTokens(n,this.tokens);for(let i=0;i<this.inlineQueue.length;i++){let s=this.inlineQueue[i];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(n,i=[],s=!1){for(this.options.pedantic&&(n=n.replace(jt.tabCharGlobal," ").replace(jt.spaceLine,""));n;){let o;if(this.options.extensions?.block?.some(f=>(o=f.call({lexer:this},n,i))?(n=n.substring(o.raw.length),i.push(o),!0):!1))continue;if(o=this.tokenizer.space(n)){n=n.substring(o.raw.length);let f=i.at(-1);o.raw.length===1&&f!==void 0?f.raw+=`
53
+ `:i.push(o);continue}if(o=this.tokenizer.code(n)){n=n.substring(o.raw.length);let f=i.at(-1);f?.type==="paragraph"||f?.type==="text"?(f.raw+=(f.raw.endsWith(`
54
54
  `)?"":`
55
- `)+o.raw,d.text+=`
56
- `+o.text,this.inlineQueue.at(-1).src=d.text):i.push(o);continue}if(o=this.tokenizer.fences(n)){n=n.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.heading(n)){n=n.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.hr(n)){n=n.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.blockquote(n)){n=n.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.list(n)){n=n.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.html(n)){n=n.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.def(n)){n=n.substring(o.raw.length);let d=i.at(-1);d?.type==="paragraph"||d?.type==="text"?(d.raw+=(d.raw.endsWith(`
55
+ `)+o.raw,f.text+=`
56
+ `+o.text,this.inlineQueue.at(-1).src=f.text):i.push(o);continue}if(o=this.tokenizer.fences(n)){n=n.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.heading(n)){n=n.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.hr(n)){n=n.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.blockquote(n)){n=n.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.list(n)){n=n.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.html(n)){n=n.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.def(n)){n=n.substring(o.raw.length);let f=i.at(-1);f?.type==="paragraph"||f?.type==="text"?(f.raw+=(f.raw.endsWith(`
57
57
  `)?"":`
58
- `)+o.raw,d.text+=`
59
- `+o.raw,this.inlineQueue.at(-1).src=d.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},i.push(o));continue}if(o=this.tokenizer.table(n)){n=n.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.lheading(n)){n=n.substring(o.raw.length),i.push(o);continue}let c=n;if(this.options.extensions?.startBlock){let d=1/0,p=n.slice(1),h;this.options.extensions.startBlock.forEach(m=>{h=m.call({lexer:this},p),typeof h=="number"&&h>=0&&(d=Math.min(d,h))}),d<1/0&&d>=0&&(c=n.substring(0,d+1))}if(this.state.top&&(o=this.tokenizer.paragraph(c))){let d=i.at(-1);s&&d?.type==="paragraph"?(d.raw+=(d.raw.endsWith(`
58
+ `)+o.raw,f.text+=`
59
+ `+o.raw,this.inlineQueue.at(-1).src=f.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},i.push(o));continue}if(o=this.tokenizer.table(n)){n=n.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.lheading(n)){n=n.substring(o.raw.length),i.push(o);continue}let c=n;if(this.options.extensions?.startBlock){let f=1/0,p=n.slice(1),h;this.options.extensions.startBlock.forEach(m=>{h=m.call({lexer:this},p),typeof h=="number"&&h>=0&&(f=Math.min(f,h))}),f<1/0&&f>=0&&(c=n.substring(0,f+1))}if(this.state.top&&(o=this.tokenizer.paragraph(c))){let f=i.at(-1);s&&f?.type==="paragraph"?(f.raw+=(f.raw.endsWith(`
60
60
  `)?"":`
61
- `)+o.raw,d.text+=`
62
- `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=d.text):i.push(o),s=c.length!==n.length,n=n.substring(o.raw.length);continue}if(o=this.tokenizer.text(n)){n=n.substring(o.raw.length);let d=i.at(-1);d?.type==="text"?(d.raw+=(d.raw.endsWith(`
61
+ `)+o.raw,f.text+=`
62
+ `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text):i.push(o),s=c.length!==n.length,n=n.substring(o.raw.length);continue}if(o=this.tokenizer.text(n)){n=n.substring(o.raw.length);let f=i.at(-1);f?.type==="text"?(f.raw+=(f.raw.endsWith(`
63
63
  `)?"":`
64
- `)+o.raw,d.text+=`
65
- `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=d.text):i.push(o);continue}if(n){let d="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return this.state.top=!0,i}inline(n,i=[]){return this.inlineQueue.push({src:n,tokens:i}),i}inlineTokens(n,i=[]){let s=n,o=null;if(this.tokens.links){let h=Object.keys(this.tokens.links);if(h.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)h.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,o.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let c;for(;(o=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)c=o[2]?o[2].length:0,s=s.slice(0,o.index+c)+"["+"a".repeat(o[0].length-c-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=this.options.hooks?.emStrongMask?.call({lexer:this},s)??s;let d=!1,p="";for(;n;){d||(p=""),d=!1;let h;if(this.options.extensions?.inline?.some(v=>(h=v.call({lexer:this},n,i))?(n=n.substring(h.raw.length),i.push(h),!0):!1))continue;if(h=this.tokenizer.escape(n)){n=n.substring(h.raw.length),i.push(h);continue}if(h=this.tokenizer.tag(n)){n=n.substring(h.raw.length),i.push(h);continue}if(h=this.tokenizer.link(n)){n=n.substring(h.raw.length),i.push(h);continue}if(h=this.tokenizer.reflink(n,this.tokens.links)){n=n.substring(h.raw.length);let v=i.at(-1);h.type==="text"&&v?.type==="text"?(v.raw+=h.raw,v.text+=h.text):i.push(h);continue}if(h=this.tokenizer.emStrong(n,s,p)){n=n.substring(h.raw.length),i.push(h);continue}if(h=this.tokenizer.codespan(n)){n=n.substring(h.raw.length),i.push(h);continue}if(h=this.tokenizer.br(n)){n=n.substring(h.raw.length),i.push(h);continue}if(h=this.tokenizer.del(n)){n=n.substring(h.raw.length),i.push(h);continue}if(h=this.tokenizer.autolink(n)){n=n.substring(h.raw.length),i.push(h);continue}if(!this.state.inLink&&(h=this.tokenizer.url(n))){n=n.substring(h.raw.length),i.push(h);continue}let m=n;if(this.options.extensions?.startInline){let v=1/0,y=n.slice(1),x;this.options.extensions.startInline.forEach(E=>{x=E.call({lexer:this},y),typeof x=="number"&&x>=0&&(v=Math.min(v,x))}),v<1/0&&v>=0&&(m=n.substring(0,v+1))}if(h=this.tokenizer.inlineText(m)){n=n.substring(h.raw.length),h.raw.slice(-1)!=="_"&&(p=h.raw.slice(-1)),d=!0;let v=i.at(-1);v?.type==="text"?(v.raw+=h.raw,v.text+=h.text):i.push(h);continue}if(n){let v="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(v);break}else throw new Error(v)}}return i}},No=class{options;parser;constructor(l){this.options=l||sl}space(l){return""}code({text:l,lang:n,escaped:i}){let s=(n||"").match(jt.notSpaceStart)?.[0],o=l.replace(jt.endingNewline,"")+`
64
+ `)+o.raw,f.text+=`
65
+ `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text):i.push(o);continue}if(n){let f="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return this.state.top=!0,i}inline(n,i=[]){return this.inlineQueue.push({src:n,tokens:i}),i}inlineTokens(n,i=[]){let s=n,o=null;if(this.tokens.links){let h=Object.keys(this.tokens.links);if(h.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)h.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,o.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let c;for(;(o=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)c=o[2]?o[2].length:0,s=s.slice(0,o.index+c)+"["+"a".repeat(o[0].length-c-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=this.options.hooks?.emStrongMask?.call({lexer:this},s)??s;let f=!1,p="";for(;n;){f||(p=""),f=!1;let h;if(this.options.extensions?.inline?.some(y=>(h=y.call({lexer:this},n,i))?(n=n.substring(h.raw.length),i.push(h),!0):!1))continue;if(h=this.tokenizer.escape(n)){n=n.substring(h.raw.length),i.push(h);continue}if(h=this.tokenizer.tag(n)){n=n.substring(h.raw.length),i.push(h);continue}if(h=this.tokenizer.link(n)){n=n.substring(h.raw.length),i.push(h);continue}if(h=this.tokenizer.reflink(n,this.tokens.links)){n=n.substring(h.raw.length);let y=i.at(-1);h.type==="text"&&y?.type==="text"?(y.raw+=h.raw,y.text+=h.text):i.push(h);continue}if(h=this.tokenizer.emStrong(n,s,p)){n=n.substring(h.raw.length),i.push(h);continue}if(h=this.tokenizer.codespan(n)){n=n.substring(h.raw.length),i.push(h);continue}if(h=this.tokenizer.br(n)){n=n.substring(h.raw.length),i.push(h);continue}if(h=this.tokenizer.del(n)){n=n.substring(h.raw.length),i.push(h);continue}if(h=this.tokenizer.autolink(n)){n=n.substring(h.raw.length),i.push(h);continue}if(!this.state.inLink&&(h=this.tokenizer.url(n))){n=n.substring(h.raw.length),i.push(h);continue}let m=n;if(this.options.extensions?.startInline){let y=1/0,v=n.slice(1),x;this.options.extensions.startInline.forEach(E=>{x=E.call({lexer:this},v),typeof x=="number"&&x>=0&&(y=Math.min(y,x))}),y<1/0&&y>=0&&(m=n.substring(0,y+1))}if(h=this.tokenizer.inlineText(m)){n=n.substring(h.raw.length),h.raw.slice(-1)!=="_"&&(p=h.raw.slice(-1)),f=!0;let y=i.at(-1);y?.type==="text"?(y.raw+=h.raw,y.text+=h.text):i.push(h);continue}if(n){let y="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(y);break}else throw new Error(y)}}return i}},Ao=class{options;parser;constructor(l){this.options=l||cl}space(l){return""}code({text:l,lang:n,escaped:i}){let s=(n||"").match(jt.notSpaceStart)?.[0],o=l.replace(jt.endingNewline,"")+`
66
66
  `;return s?'<pre><code class="language-'+Pn(s)+'">'+(i?o:Pn(o,!0))+`</code></pre>
67
67
  `:"<pre><code>"+(i?o:Pn(o,!0))+`</code></pre>
68
68
  `}blockquote({tokens:l}){return`<blockquote>
69
69
  ${this.parser.parse(l)}</blockquote>
70
70
  `}html({text:l}){return l}def(l){return""}heading({tokens:l,depth:n}){return`<h${n}>${this.parser.parseInline(l)}</h${n}>
71
71
  `}hr(l){return`<hr>
72
- `}list(l){let n=l.ordered,i=l.start,s="";for(let d=0;d<l.items.length;d++){let p=l.items[d];s+=this.listitem(p)}let o=n?"ol":"ul",c=n&&i!==1?' start="'+i+'"':"";return"<"+o+c+`>
72
+ `}list(l){let n=l.ordered,i=l.start,s="";for(let f=0;f<l.items.length;f++){let p=l.items[f];s+=this.listitem(p)}let o=n?"ol":"ul",c=n&&i!==1?' start="'+i+'"':"";return"<"+o+c+`>
73
73
  `+s+"</"+o+`>
74
74
  `}listitem(l){return`<li>${this.parser.parse(l.tokens)}</li>
75
75
  `}checkbox({checked:l}){return"<input "+(l?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:l}){return`<p>${this.parser.parseInline(l)}</p>
76
- `}table(l){let n="",i="";for(let o=0;o<l.header.length;o++)i+=this.tablecell(l.header[o]);n+=this.tablerow({text:i});let s="";for(let o=0;o<l.rows.length;o++){let c=l.rows[o];i="";for(let d=0;d<c.length;d++)i+=this.tablecell(c[d]);s+=this.tablerow({text:i})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
76
+ `}table(l){let n="",i="";for(let o=0;o<l.header.length;o++)i+=this.tablecell(l.header[o]);n+=this.tablerow({text:i});let s="";for(let o=0;o<l.rows.length;o++){let c=l.rows[o];i="";for(let f=0;f<c.length;f++)i+=this.tablecell(c[f]);s+=this.tablerow({text:i})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
77
77
  <thead>
78
78
  `+n+`</thead>
79
79
  `+s+`</table>
80
80
  `}tablerow({text:l}){return`<tr>
81
81
  ${l}</tr>
82
82
  `}tablecell(l){let n=this.parser.parseInline(l.tokens),i=l.header?"th":"td";return(l.align?`<${i} align="${l.align}">`:`<${i}>`)+n+`</${i}>
83
- `}strong({tokens:l}){return`<strong>${this.parser.parseInline(l)}</strong>`}em({tokens:l}){return`<em>${this.parser.parseInline(l)}</em>`}codespan({text:l}){return`<code>${Pn(l,!0)}</code>`}br(l){return"<br>"}del({tokens:l}){return`<del>${this.parser.parseInline(l)}</del>`}link({href:l,title:n,tokens:i}){let s=this.parser.parseInline(i),o=Ov(l);if(o===null)return s;l=o;let c='<a href="'+l+'"';return n&&(c+=' title="'+Pn(n)+'"'),c+=">"+s+"</a>",c}image({href:l,title:n,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let o=Ov(l);if(o===null)return Pn(i);l=o;let c=`<img src="${l}" alt="${i}"`;return n&&(c+=` title="${Pn(n)}"`),c+=">",c}text(l){return"tokens"in l&&l.tokens?this.parser.parseInline(l.tokens):"escaped"in l&&l.escaped?l.text:Pn(l.text)}},gd=class{strong({text:l}){return l}em({text:l}){return l}codespan({text:l}){return l}del({text:l}){return l}html({text:l}){return l}text({text:l}){return l}link({text:l}){return""+l}image({text:l}){return""+l}br(){return""}checkbox({raw:l}){return l}},En=class Gf{options;renderer;textRenderer;constructor(n){this.options=n||sl,this.options.renderer=this.options.renderer||new No,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new gd}static parse(n,i){return new Gf(i).parse(n)}static parseInline(n,i){return new Gf(i).parseInline(n)}parse(n){let i="";for(let s=0;s<n.length;s++){let o=n[s];if(this.options.extensions?.renderers?.[o.type]){let d=o,p=this.options.extensions.renderers[d.type].call({parser:this},d);if(p!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(d.type)){i+=p||"";continue}}let c=o;switch(c.type){case"space":{i+=this.renderer.space(c);break}case"hr":{i+=this.renderer.hr(c);break}case"heading":{i+=this.renderer.heading(c);break}case"code":{i+=this.renderer.code(c);break}case"table":{i+=this.renderer.table(c);break}case"blockquote":{i+=this.renderer.blockquote(c);break}case"list":{i+=this.renderer.list(c);break}case"checkbox":{i+=this.renderer.checkbox(c);break}case"html":{i+=this.renderer.html(c);break}case"def":{i+=this.renderer.def(c);break}case"paragraph":{i+=this.renderer.paragraph(c);break}case"text":{i+=this.renderer.text(c);break}default:{let d='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}return i}parseInline(n,i=this.renderer){let s="";for(let o=0;o<n.length;o++){let c=n[o];if(this.options.extensions?.renderers?.[c.type]){let p=this.options.extensions.renderers[c.type].call({parser:this},c);if(p!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(c.type)){s+=p||"";continue}}let d=c;switch(d.type){case"escape":{s+=i.text(d);break}case"html":{s+=i.html(d);break}case"link":{s+=i.link(d);break}case"image":{s+=i.image(d);break}case"checkbox":{s+=i.checkbox(d);break}case"strong":{s+=i.strong(d);break}case"em":{s+=i.em(d);break}case"codespan":{s+=i.codespan(d);break}case"br":{s+=i.br(d);break}case"del":{s+=i.del(d);break}case"text":{s+=i.text(d);break}default:{let p='Token with "'+d.type+'" type was not found.';if(this.options.silent)return console.error(p),"";throw new Error(p)}}}return s}},hr=class{options;block;constructor(l){this.options=l||sl}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(l){return l}postprocess(l){return l}processAllTokens(l){return l}emStrongMask(l){return l}provideLexer(){return this.block?xn.lex:xn.lexInline}provideParser(){return this.block?En.parse:En.parseInline}},HN=class{defaults=od();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=En;Renderer=No;TextRenderer=gd;Lexer=xn;Tokenizer=To;Hooks=hr;constructor(...l){this.use(...l)}walkTokens(l,n){let i=[];for(let s of l)switch(i=i.concat(n.call(this,s)),s.type){case"table":{let o=s;for(let c of o.header)i=i.concat(this.walkTokens(c.tokens,n));for(let c of o.rows)for(let d of c)i=i.concat(this.walkTokens(d.tokens,n));break}case"list":{let o=s;i=i.concat(this.walkTokens(o.items,n));break}default:{let o=s;this.defaults.extensions?.childTokens?.[o.type]?this.defaults.extensions.childTokens[o.type].forEach(c=>{let d=o[c].flat(1/0);i=i.concat(this.walkTokens(d,n))}):o.tokens&&(i=i.concat(this.walkTokens(o.tokens,n)))}}return i}use(...l){let n=this.defaults.extensions||{renderers:{},childTokens:{}};return l.forEach(i=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let c=n.renderers[o.name];c?n.renderers[o.name]=function(...d){let p=o.renderer.apply(this,d);return p===!1&&(p=c.apply(this,d)),p}:n.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let c=n[o.level];c?c.unshift(o.tokenizer):n[o.level]=[o.tokenizer],o.start&&(o.level==="block"?n.startBlock?n.startBlock.push(o.start):n.startBlock=[o.start]:o.level==="inline"&&(n.startInline?n.startInline.push(o.start):n.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(n.childTokens[o.name]=o.childTokens)}),s.extensions=n),i.renderer){let o=this.defaults.renderer||new No(this.defaults);for(let c in i.renderer){if(!(c in o))throw new Error(`renderer '${c}' does not exist`);if(["options","parser"].includes(c))continue;let d=c,p=i.renderer[d],h=o[d];o[d]=(...m)=>{let v=p.apply(o,m);return v===!1&&(v=h.apply(o,m)),v||""}}s.renderer=o}if(i.tokenizer){let o=this.defaults.tokenizer||new To(this.defaults);for(let c in i.tokenizer){if(!(c in o))throw new Error(`tokenizer '${c}' does not exist`);if(["options","rules","lexer"].includes(c))continue;let d=c,p=i.tokenizer[d],h=o[d];o[d]=(...m)=>{let v=p.apply(o,m);return v===!1&&(v=h.apply(o,m)),v}}s.tokenizer=o}if(i.hooks){let o=this.defaults.hooks||new hr;for(let c in i.hooks){if(!(c in o))throw new Error(`hook '${c}' does not exist`);if(["options","block"].includes(c))continue;let d=c,p=i.hooks[d],h=o[d];hr.passThroughHooks.has(c)?o[d]=m=>{if(this.defaults.async&&hr.passThroughHooksRespectAsync.has(c))return(async()=>{let y=await p.call(o,m);return h.call(o,y)})();let v=p.call(o,m);return h.call(o,v)}:o[d]=(...m)=>{if(this.defaults.async)return(async()=>{let y=await p.apply(o,m);return y===!1&&(y=await h.apply(o,m)),y})();let v=p.apply(o,m);return v===!1&&(v=h.apply(o,m)),v}}s.hooks=o}if(i.walkTokens){let o=this.defaults.walkTokens,c=i.walkTokens;s.walkTokens=function(d){let p=[];return p.push(c.call(this,d)),o&&(p=p.concat(o.call(this,d))),p}}this.defaults={...this.defaults,...s}}),this}setOptions(l){return this.defaults={...this.defaults,...l},this}lexer(l,n){return xn.lex(l,n??this.defaults)}parser(l,n){return En.parse(l,n??this.defaults)}parseMarkdown(l){return(n,i)=>{let s={...i},o={...this.defaults,...s},c=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&s.async===!1)return c(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return c(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return c(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=l),o.async)return(async()=>{let d=o.hooks?await o.hooks.preprocess(n):n,p=await(o.hooks?await o.hooks.provideLexer():l?xn.lex:xn.lexInline)(d,o),h=o.hooks?await o.hooks.processAllTokens(p):p;o.walkTokens&&await Promise.all(this.walkTokens(h,o.walkTokens));let m=await(o.hooks?await o.hooks.provideParser():l?En.parse:En.parseInline)(h,o);return o.hooks?await o.hooks.postprocess(m):m})().catch(c);try{o.hooks&&(n=o.hooks.preprocess(n));let d=(o.hooks?o.hooks.provideLexer():l?xn.lex:xn.lexInline)(n,o);o.hooks&&(d=o.hooks.processAllTokens(d)),o.walkTokens&&this.walkTokens(d,o.walkTokens);let p=(o.hooks?o.hooks.provideParser():l?En.parse:En.parseInline)(d,o);return o.hooks&&(p=o.hooks.postprocess(p)),p}catch(d){return c(d)}}}onError(l,n){return i=>{if(i.message+=`
84
- Please report this to https://github.com/markedjs/marked.`,l){let s="<p>An error occurred:</p><pre>"+Pn(i.message+"",!0)+"</pre>";return n?Promise.resolve(s):s}if(n)return Promise.reject(i);throw i}}},ll=new HN;function He(l,n){return ll.parse(l,n)}He.options=He.setOptions=function(l){return ll.setOptions(l),He.defaults=ll.defaults,Ry(He.defaults),He};He.getDefaults=od;He.defaults=sl;He.use=function(...l){return ll.use(...l),He.defaults=ll.defaults,Ry(He.defaults),He};He.walkTokens=function(l,n){return ll.walkTokens(l,n)};He.parseInline=ll.parseInline;He.Parser=En;He.parser=En.parse;He.Renderer=No;He.TextRenderer=gd;He.Lexer=xn;He.lexer=xn.lex;He.Tokenizer=To;He.Hooks=hr;He.parse=He;He.options;He.setOptions;He.use;He.walkTokens;He.parseInline;En.parse;xn.lex;function $N(l){if(!l)return"";try{return He.parse(l,{async:!1,gfm:!0,breaks:!0})}catch(n){return console.error("Error rendering markdown:",n),l}}function vd({content:l,title:n,variant:i="info"}){const s=i==="error"?"error":i==="warning"?"warning":"primary";return b.jsx(Ao,{severity:s,title:n,className:"SgSection-alert",children:b.jsx("div",{dangerouslySetInnerHTML:{__html:$N(l)}})})}function VN({isOpen:l,title:n,message:i,confirmLabel:s,onConfirm:o,onCancel:c}){const{t:d}=Ot(),[p,h]=w.useState(!0),m=async()=>{await o({withSampleData:p})},v=b.jsxs(b.Fragment,{children:[b.jsx(ta,{severity:"secondary",onClick:c,children:d("cancel")}),b.jsx(ta,{onClick:m,children:s??d("confirm")})]});return b.jsxs(aT,{visible:l,onHide:c,header:n,footer:v,size:"sm",children:[b.jsx("div",{className:"Text",children:b.jsx("p",{style:{marginBottom:"var(--space-4)"},children:i})}),b.jsx(V2,{checked:p,onChange:h,label:d("generateSiteWithData")})]})}function H(){return H=Object.assign?Object.assign.bind():function(l){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var s in i)({}).hasOwnProperty.call(i,s)&&(l[s]=i[s])}return l},H.apply(null,arguments)}function Ae(l,n){if(l==null)return{};var i={};for(var s in l)if({}.hasOwnProperty.call(l,s)){if(n.indexOf(s)!==-1)continue;i[s]=l[s]}return i}var By={},Hy=w.createContext(By),qN=(l,n)=>H({},l,n),GN=()=>w.useContext(Hy),yd=w.createContext(()=>{});yd.displayName="JVR.DispatchShowTools";function YN(){return w.useReducer(qN,By)}function $y(){return w.useContext(yd)}var Vy=l=>{var{initial:n,dispatch:i,children:s}=l;return b.jsx(Hy.Provider,{value:n,children:b.jsx(yd.Provider,{value:i,children:s})})};Vy.displayName="JVR.ShowTools";var qy={},Gy=w.createContext(qy),XN=(l,n)=>H({},l,n),Mo=()=>w.useContext(Gy),bd=w.createContext(()=>{});bd.displayName="JVR.DispatchExpands";function QN(){return w.useReducer(XN,qy)}function KN(){return w.useContext(bd)}var Yy=l=>{var{initial:n,dispatch:i,children:s}=l;return b.jsx(Gy.Provider,{value:n,children:b.jsx(bd.Provider,{value:i,children:s})})};Yy.displayName="JVR.Expands";var Xy={Str:{as:"span","data-type":"string",style:{color:"var(--w-rjv-type-string-color, #cb4b16)"},className:"w-rjv-type",children:"string"},Url:{as:"a",style:{color:"var(--w-rjv-type-url-color, #0969da)"},"data-type":"url",className:"w-rjv-type",children:"url"},Undefined:{style:{color:"var(--w-rjv-type-undefined-color, #586e75)"},as:"span","data-type":"undefined",className:"w-rjv-type",children:"undefined"},Null:{style:{color:"var(--w-rjv-type-null-color, #d33682)"},as:"span","data-type":"null",className:"w-rjv-type",children:"null"},Map:{style:{color:"var(--w-rjv-type-map-color, #268bd2)",marginRight:3},as:"span","data-type":"map",className:"w-rjv-type",children:"Map"},Nan:{style:{color:"var(--w-rjv-type-nan-color, #859900)"},as:"span","data-type":"nan",className:"w-rjv-type",children:"NaN"},Bigint:{style:{color:"var(--w-rjv-type-bigint-color, #268bd2)"},as:"span","data-type":"bigint",className:"w-rjv-type",children:"bigint"},Int:{style:{color:"var(--w-rjv-type-int-color, #268bd2)"},as:"span","data-type":"int",className:"w-rjv-type",children:"int"},Set:{style:{color:"var(--w-rjv-type-set-color, #268bd2)",marginRight:3},as:"span","data-type":"set",className:"w-rjv-type",children:"Set"},Float:{style:{color:"var(--w-rjv-type-float-color, #859900)"},as:"span","data-type":"float",className:"w-rjv-type",children:"float"},True:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},False:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},Date:{style:{color:"var(--w-rjv-type-date-color, #268bd2)"},as:"span","data-type":"date",className:"w-rjv-type",children:"date"}},Qy=w.createContext(Xy),ZN=(l,n)=>H({},l,n),Xe=()=>w.useContext(Qy),Sd=w.createContext(()=>{});Sd.displayName="JVR.DispatchTypes";function JN(){return w.useReducer(ZN,Xy)}function FN(){return w.useContext(Sd)}function Ky(l){var{initial:n,dispatch:i,children:s}=l;return b.jsx(Qy.Provider,{value:n,children:b.jsx(Sd.Provider,{value:i,children:s})})}Ky.displayName="JVR.Types";var PN=["style"];function Zy(l){var{style:n}=l,i=Ae(l,PN),s=H({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},n);return b.jsx("svg",H({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:s},i,{children:b.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}Zy.displayName="JVR.TriangleArrow";var Jy={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:b.jsx(Zy,{})},Colon:{as:"span",style:{color:"var(--w-rjv-colon-color, var(--w-rjv-color))",marginLeft:0,marginRight:2},className:"w-rjv-colon",children:":"},Quote:{as:"span",style:{color:"var(--w-rjv-quotes-color, #236a7c)"},className:"w-rjv-quotes",children:'"'},ValueQuote:{as:"span",style:{color:"var(--w-rjv-quotes-string-color, #cb4b16)"},className:"w-rjv-quotes",children:'"'},BracketsLeft:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-start",children:"["},BracketsRight:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-end",children:"]"},BraceLeft:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-start",children:"{"},BraceRight:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-end",children:"}"}},Fy=w.createContext(Jy),IN=(l,n)=>H({},l,n),$t=()=>w.useContext(Fy),xd=w.createContext(()=>{});xd.displayName="JVR.DispatchSymbols";function WN(){return w.useReducer(IN,Jy)}function eR(){return w.useContext(xd)}var Py=l=>{var{initial:n,dispatch:i,children:s}=l;return b.jsx(Fy.Provider,{value:n,children:b.jsx(xd.Provider,{value:i,children:s})})};Py.displayName="JVR.Symbols";var Iy={Copied:{className:"w-rjv-copied",style:{height:"1em",width:"1em",cursor:"pointer",verticalAlign:"middle",marginLeft:5}},CountInfo:{as:"span",className:"w-rjv-object-size",style:{color:"var(--w-rjv-info-color, #0000004d)",paddingLeft:8,fontStyle:"italic"}},CountInfoExtra:{as:"span",className:"w-rjv-object-extra",style:{paddingLeft:8}},Ellipsis:{as:"span",style:{cursor:"pointer",color:"var(--w-rjv-ellipsis-color, #cb4b16)",userSelect:"none"},className:"w-rjv-ellipsis",children:"..."},Row:{as:"div",className:"w-rjv-line"},KeyName:{as:"span",className:"w-rjv-object-key"}},Wy=w.createContext(Iy),tR=(l,n)=>H({},l,n),mn=()=>w.useContext(Wy),Ed=w.createContext(()=>{});Ed.displayName="JVR.DispatchSection";function nR(){return w.useReducer(tR,Iy)}function aR(){return w.useContext(Ed)}var eb=l=>{var{initial:n,dispatch:i,children:s}=l;return b.jsx(Wy.Provider,{value:n,children:b.jsx(Ed.Provider,{value:i,children:s})})};eb.displayName="JVR.Section";var tb={objectSortKeys:!1,indentWidth:15},wd=w.createContext(tb);wd.displayName="JVR.Context";var nb=w.createContext(()=>{});nb.displayName="JVR.DispatchContext";function lR(l,n){return H({},l,n)}var ol=()=>w.useContext(wd),ab=l=>{var{children:n,initialState:i,initialTypes:s}=l,[o,c]=w.useReducer(lR,Object.assign({},tb,i)),[d,p]=YN(),[h,m]=QN(),[v,y]=JN(),[x,E]=WN(),[N,O]=nR();return w.useEffect(()=>c(H({},i)),[i]),b.jsx(wd.Provider,{value:o,children:b.jsx(nb.Provider,{value:c,children:b.jsx(Vy,{initial:d,dispatch:p,children:b.jsx(Yy,{initial:h,dispatch:m,children:b.jsx(Ky,{initial:H({},v,s),dispatch:y,children:b.jsx(Py,{initial:x,dispatch:E,children:b.jsx(eb,{initial:N,dispatch:O,children:n})})})})})})})};ab.displayName="JVR.Provider";function iR(l){if(l==null)throw new TypeError("Cannot destructure "+l)}var rR=["isNumber","value","parentValue","keyName","keys"],sR=["as","render"],oR=["as","render"],uR=["as","render"],cR=["as","style","render"],fR=["as","render"],dR=["as","render"],hR=["as","render"],pR=["as","render"],Yf=l=>{var{Quote:n={}}=$t(),{isNumber:i,value:s,parentValue:o,keyName:c,keys:d}=l,p=Ae(l,rR);if(i)return null;var{as:h,render:m}=n,v=Ae(n,sR),y=h||"span",x=H({},p,v),E={value:s,parentValue:o,keyName:c,keys:d||(c?[c]:[])},N=m&&typeof m=="function"&&m(x,E);return N||b.jsx(y,H({},x))};Yf.displayName="JVR.Quote";var Cr=l=>{var{ValueQuote:n={}}=$t(),i=H({},(iR(l),l)),{as:s,render:o}=n,c=Ae(n,oR),d=s||"span",p=H({},i,c),h=o&&typeof o=="function"&&o(p,{});return h||b.jsx(d,H({},p))};Cr.displayName="JVR.ValueQuote";var lb=l=>{var{value:n,parentValue:i,keyName:s,keys:o}=l,{Colon:c={}}=$t(),{as:d,render:p}=c,h=Ae(c,uR),m=d||"span",v=p&&typeof p=="function"&&p(h,{value:n,parentValue:i,keyName:s,keys:o||(s?[s]:[])});return v||b.jsx(m,H({},h))};lb.displayName="JVR.Colon";var ib=l=>{var{Arrow:n={}}=$t(),i=Mo(),{expandKey:s,style:o,value:c,parentValue:d,keyName:p,keys:h}=l,m=!!i[s],{as:v,style:y,render:x}=n,E=Ae(n,cR),N=v||"span",O=x&&typeof x=="function",L=H({},E,{"data-expanded":m,style:H({},y,o)}),Q={value:c,parentValue:d,keyName:p,keys:h||(p?[p]:[])},M=O&&x(L,Q);return M||b.jsx(N,H({},E,{style:H({},y,o)}))};ib.displayName="JVR.Arrow";var rb=l=>{var{isBrackets:n,value:i,parentValue:s,keyName:o,keys:c}=l,{BracketsLeft:d={},BraceLeft:p={}}=$t(),h={value:i,parentValue:s,keyName:o,keys:c||(o?[o]:[])};if(n){var{as:m,render:v}=d,y=Ae(d,fR),x=m||"span",E=v&&typeof v=="function"&&v(y,h);return E||b.jsx(x,H({},y))}var{as:N,render:O}=p,L=Ae(p,dR),Q=N||"span",M=O&&typeof O=="function"&&O(L,h);return M||b.jsx(Q,H({},L))};rb.displayName="JVR.BracketsOpen";var Cd=l=>{var{isBrackets:n,isVisiable:i,value:s,parentValue:o,keyName:c,keys:d}=l,p={value:s,parentValue:o,keyName:c,keys:d||(c?[c]:[])};if(!i)return null;var{BracketsRight:h={},BraceRight:m={}}=$t();if(n){var{as:v,render:y}=h,x=Ae(h,hR),E=v||"span",N=y&&typeof y=="function"&&y(x,p);return N||b.jsx(E,H({},x))}var{as:O,render:L}=m,Q=Ae(m,pR),M=O||"span",B=L&&typeof L=="function"&&L(Q,p);return B||b.jsx(M,H({},Q))};Cd.displayName="JVR.BracketsClose";var sb=l=>{var n,{keyName:i,value:s,expandKey:o,parentValue:c,level:d,keys:p=[]}=l,h=Mo(),{collapsed:m,shouldExpandNodeInitially:v}=ol(),y=typeof m=="boolean"?m:typeof m=="number"?d>m:!1,x=(n=h[o])!=null?n:v?!1:y,E=v&&v(!x,{value:s,keys:p,level:d,keyName:i,parentValue:c});if(v&&m===!1){if(h[o]===void 0&&!E)return null}else if(h[o]===void 0&&E)return null;var N=Object.keys(s).length;if(x||N===0)return null;var O={paddingLeft:4},L={keyName:i,value:s,keys:p,parentValue:c},Q=Array.isArray(s),M=s instanceof Set;return b.jsx("div",{style:O,children:b.jsx(Cd,H({isBrackets:Q||M},L,{isVisiable:!0}))})};sb.displayName="JVR.NestedClose";var mR=["as","render"],gR=["as","render"],vR=["as","render"],yR=["as","render"],bR=["as","render"],SR=["as","render"],xR=["as","render"],ER=["as","render"],wR=["as","render"],CR=["as","render"],TR=["as","render"],NR=["as","render"],RR=["as","render"],Xf=l=>{if(l===void 0)return"0n";if(typeof l=="string")try{l=BigInt(l)}catch{return"0n"}return l?l.toString()+"n":"0n"},ob=l=>{var{value:n,keyName:i}=l,{Set:s={},displayDataTypes:o}=Xe(),c=n instanceof Set;if(!c||!o)return null;var{as:d,render:p}=s,h=Ae(s,mR),m=p&&typeof p=="function",v=m&&p(h,{type:"type",value:n,keyName:i});if(v)return v;var y=d||"span";return b.jsx(y,H({},h))};ob.displayName="JVR.SetComp";var ub=l=>{var{value:n,keyName:i}=l,{Map:s={},displayDataTypes:o}=Xe(),c=n instanceof Map;if(!c||!o)return null;var{as:d,render:p}=s,h=Ae(s,gR),m=p&&typeof p=="function",v=m&&p(h,{type:"type",value:n,keyName:i});if(v)return v;var y=d||"span";return b.jsx(y,H({},h))};ub.displayName="JVR.MapComp";var Cn={opacity:.75,paddingRight:4},cb=l=>{var{children:n="",keyName:i,keys:s}=l,{Str:o={},displayDataTypes:c}=Xe(),{shortenTextAfterLength:d=30,stringEllipsis:p="..."}=ol(),{as:h,render:m}=o,v=Ae(o,vR),y=n,[x,E]=w.useState(d&&y.length>d);w.useEffect(()=>E(d&&y.length>d),[d]);var N=h||"span",O=H({},Cn,o.style||{});d>0&&(v.style=H({},v.style,{cursor:y.length<=d?"initial":"pointer"}),y.length>d&&(v.onClick=()=>{E(!x)}));var L=x?""+y.slice(0,d)+p:y,Q=m&&typeof m=="function",M=Q&&m(H({},v,{style:O}),{type:"type",value:n,keyName:i,keys:s}),B=x?"w-rjv-value w-rjv-value-short":"w-rjv-value",P=Q&&m(H({},v,{children:L,className:B}),{type:"value",value:n,keyName:i,keys:s});return b.jsxs(w.Fragment,{children:[c&&(M||b.jsx(N,H({},v,{style:O}))),P||b.jsxs(w.Fragment,{children:[b.jsx(Cr,{}),b.jsx(N,H({},v,{className:B,children:L})),b.jsx(Cr,{})]})]})};cb.displayName="JVR.TypeString";var fb=l=>{var{children:n,keyName:i,keys:s}=l,{True:o={},displayDataTypes:c}=Xe(),{as:d,render:p}=o,h=Ae(o,yR),m=d||"span",v=H({},Cn,o.style||{}),y=p&&typeof p=="function",x=y&&p(H({},h,{style:v}),{type:"type",value:n,keyName:i,keys:s}),E=y&&p(H({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:i,keys:s});return b.jsxs(w.Fragment,{children:[c&&(x||b.jsx(m,H({},h,{style:v}))),E||b.jsx(m,H({},h,{className:"w-rjv-value",children:n?.toString()}))]})};fb.displayName="JVR.TypeTrue";var db=l=>{var{children:n,keyName:i,keys:s}=l,{False:o={},displayDataTypes:c}=Xe(),{as:d,render:p}=o,h=Ae(o,bR),m=d||"span",v=H({},Cn,o.style||{}),y=p&&typeof p=="function",x=y&&p(H({},h,{style:v}),{type:"type",value:n,keyName:i,keys:s}),E=y&&p(H({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:i,keys:s});return b.jsxs(w.Fragment,{children:[c&&(x||b.jsx(m,H({},h,{style:v}))),E||b.jsx(m,H({},h,{className:"w-rjv-value",children:n?.toString()}))]})};db.displayName="JVR.TypeFalse";var hb=l=>{var{children:n,keyName:i,keys:s}=l,{Float:o={},displayDataTypes:c}=Xe(),{as:d,render:p}=o,h=Ae(o,SR),m=d||"span",v=H({},Cn,o.style||{}),y=p&&typeof p=="function",x=y&&p(H({},h,{style:v}),{type:"type",value:n,keyName:i,keys:s}),E=y&&p(H({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:i,keys:s});return b.jsxs(w.Fragment,{children:[c&&(x||b.jsx(m,H({},h,{style:v}))),E||b.jsx(m,H({},h,{className:"w-rjv-value",children:n?.toString()}))]})};hb.displayName="JVR.TypeFloat";var pb=l=>{var{children:n,keyName:i,keys:s}=l,{Int:o={},displayDataTypes:c}=Xe(),{as:d,render:p}=o,h=Ae(o,xR),m=d||"span",v=H({},Cn,o.style||{}),y=p&&typeof p=="function",x=y&&p(H({},h,{style:v}),{type:"type",value:n,keyName:i,keys:s}),E=y&&p(H({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:i,keys:s});return b.jsxs(w.Fragment,{children:[c&&(x||b.jsx(m,H({},h,{style:v}))),E||b.jsx(m,H({},h,{className:"w-rjv-value",children:n?.toString()}))]})};pb.displayName="JVR.TypeInt";var mb=l=>{var{children:n,keyName:i,keys:s}=l,{Bigint:o={},displayDataTypes:c}=Xe(),{as:d,render:p}=o,h=Ae(o,ER),m=d||"span",v=H({},Cn,o.style||{}),y=p&&typeof p=="function",x=y&&p(H({},h,{style:v}),{type:"type",value:n,keyName:i,keys:s}),E=y&&p(H({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:i,keys:s});return b.jsxs(w.Fragment,{children:[c&&(x||b.jsx(m,H({},h,{style:v}))),E||b.jsx(m,H({},h,{className:"w-rjv-value",children:Xf(n?.toString())}))]})};mb.displayName="JVR.TypeFloat";var gb=l=>{var{children:n,keyName:i,keys:s}=l,{Url:o={},displayDataTypes:c}=Xe(),{as:d,render:p}=o,h=Ae(o,wR),m=d||"span",v=H({},Cn,o.style),y=p&&typeof p=="function",x=y&&p(H({},h,{style:v}),{type:"type",value:n,keyName:i,keys:s}),E=y&&p(H({},h,{children:n?.href,className:"w-rjv-value"}),{type:"value",value:n,keyName:i,keys:s});return b.jsxs(w.Fragment,{children:[c&&(x||b.jsx(m,H({},h,{style:v}))),E||b.jsxs("a",H({href:n?.href,target:"_blank"},h,{className:"w-rjv-value",children:[b.jsx(Cr,{}),n?.href,b.jsx(Cr,{})]}))]})};gb.displayName="JVR.TypeUrl";var vb=l=>{var{children:n,keyName:i,keys:s}=l,{Date:o={},displayDataTypes:c}=Xe(),{as:d,render:p}=o,h=Ae(o,CR),m=d||"span",v=H({},Cn,o.style||{}),y=p&&typeof p=="function",x=y&&p(H({},h,{style:v}),{type:"type",value:n,keyName:i,keys:s}),E=n instanceof Date?n.toLocaleString():n,N=y&&p(H({},h,{children:E,className:"w-rjv-value"}),{type:"value",value:n,keyName:i,keys:s});return b.jsxs(w.Fragment,{children:[c&&(x||b.jsx(m,H({},h,{style:v}))),N||b.jsx(m,H({},h,{className:"w-rjv-value",children:E}))]})};vb.displayName="JVR.TypeDate";var yb=l=>{var{children:n,keyName:i,keys:s}=l,{Undefined:o={},displayDataTypes:c}=Xe(),{as:d,render:p}=o,h=Ae(o,TR),m=d||"span",v=H({},Cn,o.style||{}),y=p&&typeof p=="function",x=y&&p(H({},h,{style:v}),{type:"type",value:n,keyName:i,keys:s}),E=y&&p(H({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:i,keys:s});return b.jsxs(w.Fragment,{children:[c&&(x||b.jsx(m,H({},h,{style:v}))),E]})};yb.displayName="JVR.TypeUndefined";var bb=l=>{var{children:n,keyName:i,keys:s}=l,{Null:o={},displayDataTypes:c}=Xe(),{as:d,render:p}=o,h=Ae(o,NR),m=d||"span",v=H({},Cn,o.style||{}),y=p&&typeof p=="function",x=y&&p(H({},h,{style:v}),{type:"type",value:n,keyName:i,keys:s}),E=y&&p(H({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:i,keys:s});return b.jsxs(w.Fragment,{children:[c&&(x||b.jsx(m,H({},h,{style:v}))),E]})};bb.displayName="JVR.TypeNull";var Sb=l=>{var{children:n,keyName:i,keys:s}=l,{Nan:o={},displayDataTypes:c}=Xe(),{as:d,render:p}=o,h=Ae(o,RR),m=d||"span",v=H({},Cn,o.style||{}),y=p&&typeof p=="function",x=y&&p(H({},h,{style:v}),{type:"type",value:n,keyName:i,keys:s}),E=y&&p(H({},h,{children:n?.toString(),className:"w-rjv-value"}),{type:"value",value:n,keyName:i,keys:s});return b.jsxs(w.Fragment,{children:[c&&(x||b.jsx(m,H({},h,{style:v}))),E]})};Sb.displayName="JVR.TypeNan";var jR=l=>Number(l)===l&&l%1!==0||isNaN(l),xb=l=>{var{value:n,keyName:i,keys:s}=l,o={keyName:i,keys:s};return n instanceof URL?b.jsx(gb,H({},o,{children:n})):typeof n=="string"?b.jsx(cb,H({},o,{children:n})):n===!0?b.jsx(fb,H({},o,{children:n})):n===!1?b.jsx(db,H({},o,{children:n})):n===null?b.jsx(bb,H({},o,{children:n})):n===void 0?b.jsx(yb,H({},o,{children:n})):n instanceof Date?b.jsx(vb,H({},o,{children:n})):typeof n=="number"&&isNaN(n)?b.jsx(Sb,H({},o,{children:n})):typeof n=="number"&&jR(n)?b.jsx(hb,H({},o,{children:n})):typeof n=="bigint"?b.jsx(mb,H({},o,{children:n})):typeof n=="number"?b.jsx(pb,H({},o,{children:n})):null};xb.displayName="JVR.Value";function ka(l,n,i){var s=eR(),o=[l.className,n.className].filter(Boolean).join(" "),c=H({},l,n,{className:o,style:H({},l.style,n.style),children:n.children||l.children});w.useEffect(()=>s({[i]:c}),[n])}function tn(l,n,i){var s=FN(),o=[l.className,n.className].filter(Boolean).join(" "),c=H({},l,n,{className:o,style:H({},l.style,n.style),children:n.children||l.children});w.useEffect(()=>s({[i]:c}),[n])}function ii(l,n,i){var s=aR(),o=[l.className,n.className].filter(Boolean).join(" "),c=H({},l,n,{className:o,style:H({},l.style,n.style),children:n.children||l.children});w.useEffect(()=>s({[i]:c}),[n])}var OR=["as","render"],Eb=l=>{var{KeyName:n={}}=mn();return ii(n,l,"KeyName"),null};Eb.displayName="JVR.KeyName";var wb=l=>{var{children:n,value:i,parentValue:s,keyName:o,keys:c}=l,d=typeof n=="number",p={color:d?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:h={}}=mn(),{as:m,render:v}=h,y=Ae(h,OR);y.style=H({},y.style,p);var x=m||"span",E=v&&typeof v=="function"&&v(H({},y,{children:n}),{value:i,parentValue:s,keyName:o,keys:c||(o?[o]:[])});return E||b.jsx(x,H({},y,{children:n}))};wb.displayName="JVR.KeyNameComp";var AR=["children","value","parentValue","keyName","keys"],DR=["as","render","children"],Cb=l=>{var{Row:n={}}=mn();return ii(n,l,"Row"),null};Cb.displayName="JVR.Row";var Tb=l=>{var{children:n,value:i,parentValue:s,keyName:o,keys:c}=l,d=Ae(l,AR),{Row:p={}}=mn(),{as:h,render:m}=p,v=Ae(p,DR),y=h||"div",x=m&&typeof m=="function"&&m(H({},d,v,{children:n}),{value:i,keyName:o,parentValue:s,keys:c});return x||b.jsx(y,H({},d,v,{children:n}))};Tb.displayName="JVR.RowComp";function _R(l){var n=w.useRef();return w.useEffect(()=>{n.current=l}),n.current}function kR(l){var{value:n,highlightUpdates:i,highlightContainer:s}=l,o=_R(n),c=w.useMemo(()=>{if(!i||o===void 0)return!1;if(typeof n!=typeof o)return!0;if(typeof n=="number")return isNaN(n)&&isNaN(o)?!1:n!==o;if(Array.isArray(n)!==Array.isArray(o))return!0;if(typeof n=="object"||typeof n=="function")return!1;if(n!==o)return!0},[i,n]);w.useEffect(()=>{s&&s.current&&c&&"animate"in s.current&&s.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[c,n,s])}var MR=["keyName","value","parentValue","expandKey","keys","beforeCopy"],zR=["as","render"],Td=l=>{var{keyName:n,value:i,parentValue:s,expandKey:o,keys:c,beforeCopy:d}=l,p=Ae(l,MR),{onCopied:h,enableClipboard:m,beforeCopy:v}=ol(),y=GN(),x=y[o],[E,N]=w.useState(!1),{Copied:O={}}=mn(),L=O?.beforeCopy;if(m===!1||!x)return null;var Q=K=>{K.stopPropagation();var $="";typeof i=="number"&&i===1/0?$="Infinity":typeof i=="number"&&isNaN(i)?$="NaN":typeof i=="bigint"?$=Xf(i):i instanceof Date?$=i.toLocaleString():$=JSON.stringify(i,(te,ie)=>typeof ie=="bigint"?Xf(ie):ie,2);var Z=d||L||v;Z&&typeof Z=="function"&&($=Z($,n,i,s,o,c)),h&&h($,i),N(!0);var F=navigator.clipboard||{writeText(te){return new Promise((ie,ce)=>{var he=document.createElement("textarea");he.style.position="absolute",he.style.opacity="0",he.style.left="-99999999px",he.value=te,document.body.appendChild(he),he.select(),document.execCommand("copy")?ie():ce(),he.remove()})}};F.writeText($).then(()=>{var te=setTimeout(()=>{N(!1),clearTimeout(te)},3e3)}).catch(te=>{})},M={style:{display:"inline-flex"},fill:E?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:Q},{render:B}=O,P=Ae(O,zR),ee=H({},P,p,M,{style:H({},P.style,p.style,M.style)}),Y=B&&typeof B=="function",_=Y&&B(H({},ee,{"data-copied":E}),{value:i,keyName:n,keys:c,parentValue:s});return _||(E?b.jsx("svg",H({viewBox:"0 0 32 36"},ee,{children:b.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})):b.jsx("svg",H({viewBox:"0 0 32 36"},ee,{children:b.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})))};Td.displayName="JVR.Copied";function Nb(){var l=w.useRef(null);return l.current===null&&(l.current="custom-id-"+Math.random().toString(36).substr(2,9)),l.current}var Rb=l=>{var n,{keyName:i,value:s,expandKey:o="",level:c,keys:d=[],parentValue:p}=l,h=Mo(),{objectSortKeys:m,indentWidth:v,collapsed:y,shouldExpandNodeInitially:x}=ol(),E=typeof y=="boolean"?y:typeof y=="number"?c>y:!1,N=(n=h[o])!=null?n:x?!1:E,O=x&&x(!N,{value:s,keys:d,level:c,keyName:i,parentValue:p});if(x&&y===!1){if(h[o]===void 0&&!O)return null}else if(h[o]===void 0&&O)return null;if(N)return null;var L=Array.isArray(s),Q=L?Object.entries(s).map(B=>[Number(B[0]),B[1]]):Object.entries(s);m&&(Q=m===!0?Q.sort((B,P)=>{var[ee]=B,[Y]=P;return typeof ee=="string"&&typeof Y=="string"?ee.localeCompare(Y):0}):Q.sort((B,P)=>{var[ee,Y]=B,[_,K]=P;return typeof ee=="string"&&typeof _=="string"?m(ee,_,Y,K):0}));var M={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:v,marginLeft:6};return b.jsx("div",{className:"w-rjv-wrap",style:M,children:Q.map((B,P)=>{var[ee,Y]=B;return b.jsx(jb,{parentValue:s,keyName:ee,keys:[...d,ee],value:Y,level:c},P)})})};Rb.displayName="JVR.KeyValues";var Nd=l=>{var{keyName:n,parentValue:i,keys:s,value:o}=l,{highlightUpdates:c}=ol(),d=typeof n=="number",p=w.useRef(null);kR({value:o,highlightUpdates:c,highlightContainer:p});var h={keyName:n,value:o,keys:s,parentValue:i};return b.jsxs(w.Fragment,{children:[b.jsxs("span",{ref:p,children:[b.jsx(Yf,H({isNumber:d,"data-placement":"left"},h)),b.jsx(wb,H({},h,{children:n})),b.jsx(Yf,H({isNumber:d,"data-placement":"right"},h))]}),b.jsx(lb,H({},h))]})};Nd.displayName="JVR.KayName";var jb=l=>{var{keyName:n,value:i,parentValue:s,level:o=0,keys:c=[]}=l,d=$y(),p=Nb(),h=Array.isArray(i),m=i instanceof Set,v=i instanceof Map,y=i instanceof Date,x=i instanceof URL,E=i&&typeof i=="object"&&!h&&!m&&!v&&!y&&!x,N=E||h||m||v;if(N){var O=m?Array.from(i):v?Object.fromEntries(i):i;return b.jsx(Rd,{keyName:n,value:O,parentValue:s,initialValue:i,keys:c,level:o+1})}var L={onMouseEnter:()=>d({[p]:!0}),onMouseLeave:()=>d({[p]:!1})};return b.jsxs(Tb,H({className:"w-rjv-line",value:i,keyName:n,keys:c,parentValue:s},L,{children:[b.jsx(Nd,{keyName:n,value:i,keys:c,parentValue:s}),b.jsx(xb,{keyName:n,value:i,keys:c}),b.jsx(Td,{keyName:n,value:i,keys:c,parentValue:s,expandKey:p})]}))};jb.displayName="JVR.KeyValuesItem";var LR=["value","keyName"],UR=["as","render"],Ob=l=>{var{CountInfoExtra:n={}}=mn();return ii(n,l,"CountInfoExtra"),null};Ob.displayName="JVR.CountInfoExtra";var Ab=l=>{var{value:n={},keyName:i}=l,s=Ae(l,LR),{CountInfoExtra:o={}}=mn(),{as:c,render:d}=o,p=Ae(o,UR);if(!d&&!p.children)return null;var h=c||"span",m=d&&typeof d=="function",v=H({},p,s),y=m&&d(v,{value:n,keyName:i});return y||b.jsx(h,H({},v))};Ab.displayName="JVR.CountInfoExtraComps";var BR=["value","keyName"],HR=["as","render"],Db=l=>{var{CountInfo:n={}}=mn();return ii(n,l,"CountInfo"),null};Db.displayName="JVR.CountInfo";var _b=l=>{var{value:n={},keyName:i}=l,s=Ae(l,BR),{displayObjectSize:o}=ol(),{CountInfo:c={}}=mn();if(!o)return null;var{as:d,render:p}=c,h=Ae(c,HR),m=d||"span";h.style=H({},h.style,l.style);var v=Object.keys(n).length;h.children||(h.children=v+" item"+(v===1?"":"s"));var y=H({},h,s),x=p&&typeof p=="function",E=x&&p(H({},y,{"data-length":v}),{value:n,keyName:i});return E||b.jsx(m,H({},y))};_b.displayName="JVR.CountInfoComp";var $R=["as","render"],kb=l=>{var{Ellipsis:n={}}=mn();return ii(n,l,"Ellipsis"),null};kb.displayName="JVR.Ellipsis";var Mb=l=>{var{isExpanded:n,value:i,keyName:s}=l,{Ellipsis:o={}}=mn(),{as:c,render:d}=o,p=Ae(o,$R),h=c||"span",m=d&&typeof d=="function"&&d(H({},p,{"data-expanded":n}),{value:i,keyName:s});return m||(!n||typeof i=="object"&&Object.keys(i).length==0?null:b.jsx(h,H({},p)))};Mb.displayName="JVR.EllipsisComp";var zb=l=>{var n,{keyName:i,expandKey:s,keys:o=[],initialValue:c,value:d,parentValue:p,level:h}=l,m=Mo(),v=KN(),{onExpand:y,collapsed:x,shouldExpandNodeInitially:E}=ol(),N=typeof x=="boolean"?x:typeof x=="number"?h>x:!1,O=(n=m[s])!=null?n:E?!1:N,L=E&&E(!O,{value:d,keys:o,level:h,keyName:i,parentValue:p});m[s]===void 0&&E&&(O=!L);var Q=()=>{var F={expand:!O,value:d,keyid:s,keyName:i};y&&y(F),v({[s]:F.expand})},M={display:"inline-flex",alignItems:"center"},B={transform:"rotate("+(O?"-90":"0")+"deg)",transition:"all 0.3s"},P=Object.keys(d).length,ee=typeof d=="object",Y=Array.isArray(d),_=d instanceof Set,K=P!==0&&(Y||_||ee),$={style:M};K&&($.onClick=Q);var Z={keyName:i,value:d,keys:o,parentValue:p};return b.jsxs("span",H({},$,{children:[K&&b.jsx(ib,H({style:B,expandKey:s},Z)),(i||typeof i=="number")&&b.jsx(Nd,H({},Z)),b.jsx(ob,{value:c,keyName:i}),b.jsx(ub,{value:c,keyName:i}),b.jsx(rb,H({isBrackets:Y||_},Z)),b.jsx(Mb,{keyName:i,value:d,isExpanded:O}),b.jsx(Cd,H({isVisiable:O||!K,isBrackets:Y||_},Z)),b.jsx(_b,{value:d,keyName:i}),b.jsx(Ab,{value:d,keyName:i}),b.jsx(Td,{keyName:i,value:d,expandKey:s,parentValue:p,keys:o})]}))};zb.displayName="JVR.NestedOpen";var VR=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],Rd=w.forwardRef((l,n)=>{var{className:i="",parentValue:s,level:o=1,value:c,initialValue:d,keys:p,keyName:h}=l,m=Ae(l,VR),v=$y(),y=Nb(),x=[i,"w-rjv-inner"].filter(Boolean).join(" "),E={onMouseEnter:()=>v({[y]:!0}),onMouseLeave:()=>v({[y]:!1})};return b.jsxs("div",H({className:x,ref:n},m,E,{children:[b.jsx(zb,{expandKey:y,value:c,level:o,keys:p,parentValue:s,keyName:h,initialValue:d}),b.jsx(Rb,{expandKey:y,value:c,level:o,keys:p,parentValue:s,keyName:h}),b.jsx(sb,{expandKey:y,value:c,level:o,keys:p,parentValue:s,keyName:h})]}))});Rd.displayName="JVR.Container";var Lb=l=>{var{BraceLeft:n={}}=$t();return ka(n,l,"BraceLeft"),null};Lb.displayName="JVR.BraceLeft";var Ub=l=>{var{BraceRight:n={}}=$t();return ka(n,l,"BraceRight"),null};Ub.displayName="JVR.BraceRight";var Bb=l=>{var{BracketsLeft:n={}}=$t();return ka(n,l,"BracketsLeft"),null};Bb.displayName="JVR.BracketsLeft";var Hb=l=>{var{BracketsRight:n={}}=$t();return ka(n,l,"BracketsRight"),null};Hb.displayName="JVR.BracketsRight";var $b=l=>{var{Arrow:n={}}=$t();return ka(n,l,"Arrow"),null};$b.displayName="JVR.Arrow";var Vb=l=>{var{Colon:n={}}=$t();return ka(n,l,"Colon"),null};Vb.displayName="JVR.Colon";var qb=l=>{var{Quote:n={}}=$t();return ka(n,l,"Quote"),null};qb.displayName="JVR.Quote";var Gb=l=>{var{ValueQuote:n={}}=$t();return ka(n,l,"ValueQuote"),null};Gb.displayName="JVR.ValueQuote";var Yb=l=>{var{Bigint:n={}}=Xe();return tn(n,l,"Bigint"),null};Yb.displayName="JVR.Bigint";var Xb=l=>{var{Date:n={}}=Xe();return tn(n,l,"Date"),null};Xb.displayName="JVR.Date";var Qb=l=>{var{False:n={}}=Xe();return tn(n,l,"False"),null};Qb.displayName="JVR.False";var Kb=l=>{var{Float:n={}}=Xe();return tn(n,l,"Float"),null};Kb.displayName="JVR.Float";var Zb=l=>{var{Int:n={}}=Xe();return tn(n,l,"Int"),null};Zb.displayName="JVR.Int";var Jb=l=>{var{Map:n={}}=Xe();return tn(n,l,"Map"),null};Jb.displayName="JVR.Map";var Fb=l=>{var{Nan:n={}}=Xe();return tn(n,l,"Nan"),null};Fb.displayName="JVR.Nan";var Pb=l=>{var{Null:n={}}=Xe();return tn(n,l,"Null"),null};Pb.displayName="JVR.Null";var Ib=l=>{var{Set:n={}}=Xe();return tn(n,l,"Set"),null};Ib.displayName="JVR.Set";var Wb=l=>{var{Str:n={}}=Xe();return tn(n,l,"Str"),null};Wb.displayName="JVR.StringText";var e0=l=>{var{True:n={}}=Xe();return tn(n,l,"True"),null};e0.displayName="JVR.True";var t0=l=>{var{Undefined:n={}}=Xe();return tn(n,l,"Undefined"),null};t0.displayName="JVR.Undefined";var n0=l=>{var{Url:n={}}=Xe();return tn(n,l,"Url"),null};n0.displayName="JVR.Url";var a0=l=>{var{Copied:n={}}=mn();return ii(n,l,"Copied"),null};a0.displayName="JVR.Copied";var qR=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","stringEllipsis","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied","beforeCopy"],De=w.forwardRef((l,n)=>{var{className:i="",style:s,value:o,children:c,collapsed:d=!1,shouldExpandNodeInitially:p,indentWidth:h=15,displayObjectSize:m=!0,shortenTextAfterLength:v=30,stringEllipsis:y,highlightUpdates:x=!0,enableClipboard:E=!0,displayDataTypes:N=!0,objectSortKeys:O=!1,onExpand:L,onCopied:Q,beforeCopy:M}=l,B=Ae(l,qR),P=H({lineHeight:1.4,fontFamily:"var(--w-rjv-font-family, Menlo, monospace)",color:"var(--w-rjv-color, #002b36)",backgroundColor:"var(--w-rjv-background-color, #00000000)",fontSize:13},s),ee=["w-json-view-container","w-rjv",i].filter(Boolean).join(" ");return b.jsxs(ab,{initialState:{value:o,objectSortKeys:O,indentWidth:h,shouldExpandNodeInitially:d===!1?p:void 0,displayObjectSize:m,collapsed:d,enableClipboard:E,shortenTextAfterLength:v,stringEllipsis:y,highlightUpdates:x,onCopied:Q,onExpand:L,beforeCopy:M},initialTypes:{displayDataTypes:N},children:[b.jsx(Rd,H({value:o},B,{ref:n,className:ee,style:P})),c]})});De.Bigint=Yb;De.Date=Xb;De.False=Qb;De.Float=Kb;De.Int=Zb;De.Map=Jb;De.Nan=Fb;De.Null=Pb;De.Set=Ib;De.String=Wb;De.True=e0;De.Undefined=t0;De.Url=n0;De.ValueQuote=Gb;De.Arrow=$b;De.Colon=Vb;De.Quote=qb;De.Ellipsis=kb;De.BraceLeft=Lb;De.BraceRight=Ub;De.BracketsLeft=Bb;De.BracketsRight=Hb;De.Copied=a0;De.CountInfo=Db;De.CountInfoExtra=Ob;De.KeyName=Eb;De.Row=Cb;De.displayName="JVR.JsonView";var _v={"--w-rjv-font-family":"monospace","--w-rjv-color":"#002b36","--w-rjv-key-string":"#002b36","--w-rjv-background-color":"#ffffff","--w-rjv-line-color":"#ebebeb","--w-rjv-arrow-color":"var(--w-rjv-color)","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#0000004d","--w-rjv-update-color":"#ebcb8b","--w-rjv-copied-color":"#002b36","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#236a7c","--w-rjv-colon-color":"#002b36","--w-rjv-brackets-color":"#236a7c","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#cb4b16","--w-rjv-type-int-color":"#268bd2","--w-rjv-type-float-color":"#859900","--w-rjv-type-bigint-color":"#268bd2","--w-rjv-type-boolean-color":"#2aa198","--w-rjv-type-date-color":"#586e75","--w-rjv-type-url-color":"#0969da","--w-rjv-type-null-color":"#d33682","--w-rjv-type-nan-color":"#859900","--w-rjv-type-undefined-color":"#586e75"};function GR(l){const n=Object.keys(l),i=n.length>0?n[0]:void 0;return(s,o,c={})=>{if(!i)return c.default??s;const d=l[o]??l[i],p=s.split(".");let h=d;for(const m of p){if(typeof h=="string"||!h||!Object.hasOwn(h,m))return c.default??s;h=h[m]}return typeof h=="string"?h:c.default??s}}function YR({siteSchema:l,schemaTranslate:n}){const i=new Set;return b.jsx("div",{className:"Tree",children:b.jsx("ul",{children:b.jsx(l0,{schema:l,schemaT:n,typeName:"home",displayedNodeTypeNames:i})})})}function l0({schema:l,schemaT:n,typeName:i,displayedNodeTypeNames:s}){const{i18n:o}=Ot(),c=XR(l,i);if(!c)return null;const d=c.routingChildren??[],p=c.regularChildren??[],h=[...d,...p],m=n(`nodeTypes.${i}.label`,o.language,{default:i});return s.has(i)?b.jsxs("li",{children:[b.jsx("span",{className:"Tree-label",children:m}),b.jsx("span",{className:"Tree-type",children:i})]}):(s.add(i),b.jsxs("li",{children:[b.jsx("span",{className:"Tree-label",children:m}),b.jsx("span",{className:"Tree-type",children:i}),h.length>0&&b.jsx("ul",{children:h.map(v=>b.jsx(l0,{schema:l,schemaT:n,typeName:v,displayedNodeTypeNames:s},v))})]}))}function XR(l,n){return l.nodeTypes?.find(i=>i.kind==="document"&&i.typeName===n)}function QR({step:l}){const{t:n}=Ot(),[i,s]=w.useState("tree"),{siteSchema:o,l10n:c}=l,d=GR(c),p=h=>{s(h)};return b.jsxs(b.Fragment,{children:[b.jsxs(nT,{value:i,onChange:p,className:"SgSection-tabs",children:[b.jsx(gf,{value:"tree",label:n("treeView")}),b.jsx(gf,{value:"schema",label:n("siteSchema")}),b.jsx(gf,{value:"locales",label:n("labels")})]}),i==="tree"&&b.jsx(YR,{siteSchema:o,schemaTranslate:d}),i==="locales"&&b.jsxs(De,{value:c,style:_v,displayObjectSize:!1,displayDataTypes:!1,shortenTextAfterLength:0,children:[b.jsx(De.KeyName,{render:(h,{parentValue:m})=>Array.isArray(m)&&Number.isFinite(h.children)?b.jsx("span",{}):b.jsx("span",{...h})}),b.jsx(De.Colon,{render:(h,{parentValue:m})=>Array.isArray(m)&&h.children===":"?b.jsx("span",{}):b.jsx("span",{...h})})]}),i==="schema"&&b.jsxs(De,{value:o,style:_v,displayObjectSize:!1,displayDataTypes:!1,shortenTextAfterLength:0,shouldExpandNodeInitially:(h,m)=>m.keyName!=="plugins",children:[b.jsx(De.KeyName,{render:(h,{parentValue:m})=>Array.isArray(m)&&Number.isFinite(h.children)?b.jsx("span",{}):b.jsx("span",{...h})}),b.jsx(De.Colon,{render:(h,{parentValue:m})=>Array.isArray(m)&&h.children===":"?b.jsx("span",{}):b.jsx("span",{...h})})]})]})}function KR({step:l}){const{t:n}=Ot(),{appendNewStep:i}=rl(),[s,o]=w.useState(!1),[c,d]=w.useState(!1),[p,h]=w.useState(!1),[m,v]=w.useState(),y=li(),x=async N=>{h(!0),v(void 0);const O=ei();if(!O){v(n("sessionExpired")),h(!1);return}try{const L=await Da({command:"updateSiteSchema",sessionToken:O,prompt:N,fromStepNumber:l.stepNumber});L.success&&L.result?(o(!1),i(L.result),y(`/step/${L.result.stepNumber}`)):v(n("promptSubmissionFailed"))}catch{v(n("errorOccurred"))}finally{h(!1)}},E=async({withSampleData:N})=>{h(!0),v(void 0),d(!1);const O=ei();if(!O){v(n("sessionExpired")),h(!1);return}try{const L=await Da({command:"generateSite",sessionToken:O,fromStepNumber:l.stepNumber,withSampleData:N});L.success&&L.result?(i(L.result),y(`/step/${L.result.stepNumber}`)):v(n("generationFailed"))}catch{v(n("errorOccurred"))}finally{h(!1)}};return b.jsxs("div",{className:"SgSection",children:[b.jsx("h1",{className:"SgSection-title",children:n("stepTitle",{stepNumber:l.stepNumber,kind:n(l.kind)})}),b.jsx(QR,{step:l}),l.explanation&&b.jsx(vd,{content:l.explanation,title:n("explanation")}),!s&&b.jsxs("div",{className:"SgActions",children:[b.jsx(ta,{severity:"warning",onClick:()=>o(!0),children:n("modifySchema")}),b.jsx(ta,{onClick:()=>d(!0),children:n("generateTheWebsite")})]}),s&&b.jsxs("div",{className:"ModifySection",children:[b.jsx("h3",{className:"ModifySection-title",children:n("modifySchema")}),b.jsx(Ny,{placeholder:n("updatePromptPlaceholder"),submitLabel:n("applyChanges"),onSubmit:x,isLoading:p,error:m,onCancel:()=>o(!1)})]}),b.jsx(VN,{isOpen:c,title:n("generateTheWebsite"),message:n("aboutToGenerateWebsite"),confirmLabel:n("confirm"),onConfirm:E,onCancel:()=>d(!1)})]})}function ZR({step:l}){const{t:n}=Ot();return b.jsxs("div",{className:"SgSection",children:[b.jsx("h1",{className:"SgSection-title",children:n("stepTitle",{stepNumber:l.stepNumber,kind:n(l.kind)})}),b.jsx(Ao,{severity:"error",title:n("stepFailed"),children:l.explanation?b.jsx("div",{dangerouslySetInnerHTML:{__html:l.explanation}}):n("unknownError")})]})}function JR({step:l}){const{t:n}=Ot(),i=`${l.adminUiUrl}?unsafe-login=${btoa(`${l.loginEmail}:${l.loginPassword}`)}&local=1`,s=async()=>{const o=`
83
+ `}strong({tokens:l}){return`<strong>${this.parser.parseInline(l)}</strong>`}em({tokens:l}){return`<em>${this.parser.parseInline(l)}</em>`}codespan({text:l}){return`<code>${Pn(l,!0)}</code>`}br(l){return"<br>"}del({tokens:l}){return`<del>${this.parser.parseInline(l)}</del>`}link({href:l,title:n,tokens:i}){let s=this.parser.parseInline(i),o=zv(l);if(o===null)return s;l=o;let c='<a href="'+l+'"';return n&&(c+=' title="'+Pn(n)+'"'),c+=">"+s+"</a>",c}image({href:l,title:n,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let o=zv(l);if(o===null)return Pn(i);l=o;let c=`<img src="${l}" alt="${i}"`;return n&&(c+=` title="${Pn(n)}"`),c+=">",c}text(l){return"tokens"in l&&l.tokens?this.parser.parseInline(l.tokens):"escaped"in l&&l.escaped?l.text:Pn(l.text)}},Ed=class{strong({text:l}){return l}em({text:l}){return l}codespan({text:l}){return l}del({text:l}){return l}html({text:l}){return l}text({text:l}){return l}link({text:l}){return""+l}image({text:l}){return""+l}br(){return""}checkbox({raw:l}){return l}},En=class Qf{options;renderer;textRenderer;constructor(n){this.options=n||cl,this.options.renderer=this.options.renderer||new Ao,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ed}static parse(n,i){return new Qf(i).parse(n)}static parseInline(n,i){return new Qf(i).parseInline(n)}parse(n){let i="";for(let s=0;s<n.length;s++){let o=n[s];if(this.options.extensions?.renderers?.[o.type]){let f=o,p=this.options.extensions.renderers[f.type].call({parser:this},f);if(p!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(f.type)){i+=p||"";continue}}let c=o;switch(c.type){case"space":{i+=this.renderer.space(c);break}case"hr":{i+=this.renderer.hr(c);break}case"heading":{i+=this.renderer.heading(c);break}case"code":{i+=this.renderer.code(c);break}case"table":{i+=this.renderer.table(c);break}case"blockquote":{i+=this.renderer.blockquote(c);break}case"list":{i+=this.renderer.list(c);break}case"checkbox":{i+=this.renderer.checkbox(c);break}case"html":{i+=this.renderer.html(c);break}case"def":{i+=this.renderer.def(c);break}case"paragraph":{i+=this.renderer.paragraph(c);break}case"text":{i+=this.renderer.text(c);break}default:{let f='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(f),"";throw new Error(f)}}}return i}parseInline(n,i=this.renderer){let s="";for(let o=0;o<n.length;o++){let c=n[o];if(this.options.extensions?.renderers?.[c.type]){let p=this.options.extensions.renderers[c.type].call({parser:this},c);if(p!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(c.type)){s+=p||"";continue}}let f=c;switch(f.type){case"escape":{s+=i.text(f);break}case"html":{s+=i.html(f);break}case"link":{s+=i.link(f);break}case"image":{s+=i.image(f);break}case"checkbox":{s+=i.checkbox(f);break}case"strong":{s+=i.strong(f);break}case"em":{s+=i.em(f);break}case"codespan":{s+=i.codespan(f);break}case"br":{s+=i.br(f);break}case"del":{s+=i.del(f);break}case"text":{s+=i.text(f);break}default:{let p='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(p),"";throw new Error(p)}}}return s}},gr=class{options;block;constructor(l){this.options=l||cl}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(l){return l}postprocess(l){return l}processAllTokens(l){return l}emStrongMask(l){return l}provideLexer(){return this.block?xn.lex:xn.lexInline}provideParser(){return this.block?En.parse:En.parseInline}},XN=class{defaults=pd();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=En;Renderer=Ao;TextRenderer=Ed;Lexer=xn;Tokenizer=jo;Hooks=gr;constructor(...l){this.use(...l)}walkTokens(l,n){let i=[];for(let s of l)switch(i=i.concat(n.call(this,s)),s.type){case"table":{let o=s;for(let c of o.header)i=i.concat(this.walkTokens(c.tokens,n));for(let c of o.rows)for(let f of c)i=i.concat(this.walkTokens(f.tokens,n));break}case"list":{let o=s;i=i.concat(this.walkTokens(o.items,n));break}default:{let o=s;this.defaults.extensions?.childTokens?.[o.type]?this.defaults.extensions.childTokens[o.type].forEach(c=>{let f=o[c].flat(1/0);i=i.concat(this.walkTokens(f,n))}):o.tokens&&(i=i.concat(this.walkTokens(o.tokens,n)))}}return i}use(...l){let n=this.defaults.extensions||{renderers:{},childTokens:{}};return l.forEach(i=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let c=n.renderers[o.name];c?n.renderers[o.name]=function(...f){let p=o.renderer.apply(this,f);return p===!1&&(p=c.apply(this,f)),p}:n.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let c=n[o.level];c?c.unshift(o.tokenizer):n[o.level]=[o.tokenizer],o.start&&(o.level==="block"?n.startBlock?n.startBlock.push(o.start):n.startBlock=[o.start]:o.level==="inline"&&(n.startInline?n.startInline.push(o.start):n.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(n.childTokens[o.name]=o.childTokens)}),s.extensions=n),i.renderer){let o=this.defaults.renderer||new Ao(this.defaults);for(let c in i.renderer){if(!(c in o))throw new Error(`renderer '${c}' does not exist`);if(["options","parser"].includes(c))continue;let f=c,p=i.renderer[f],h=o[f];o[f]=(...m)=>{let y=p.apply(o,m);return y===!1&&(y=h.apply(o,m)),y||""}}s.renderer=o}if(i.tokenizer){let o=this.defaults.tokenizer||new jo(this.defaults);for(let c in i.tokenizer){if(!(c in o))throw new Error(`tokenizer '${c}' does not exist`);if(["options","rules","lexer"].includes(c))continue;let f=c,p=i.tokenizer[f],h=o[f];o[f]=(...m)=>{let y=p.apply(o,m);return y===!1&&(y=h.apply(o,m)),y}}s.tokenizer=o}if(i.hooks){let o=this.defaults.hooks||new gr;for(let c in i.hooks){if(!(c in o))throw new Error(`hook '${c}' does not exist`);if(["options","block"].includes(c))continue;let f=c,p=i.hooks[f],h=o[f];gr.passThroughHooks.has(c)?o[f]=m=>{if(this.defaults.async&&gr.passThroughHooksRespectAsync.has(c))return(async()=>{let v=await p.call(o,m);return h.call(o,v)})();let y=p.call(o,m);return h.call(o,y)}:o[f]=(...m)=>{if(this.defaults.async)return(async()=>{let v=await p.apply(o,m);return v===!1&&(v=await h.apply(o,m)),v})();let y=p.apply(o,m);return y===!1&&(y=h.apply(o,m)),y}}s.hooks=o}if(i.walkTokens){let o=this.defaults.walkTokens,c=i.walkTokens;s.walkTokens=function(f){let p=[];return p.push(c.call(this,f)),o&&(p=p.concat(o.call(this,f))),p}}this.defaults={...this.defaults,...s}}),this}setOptions(l){return this.defaults={...this.defaults,...l},this}lexer(l,n){return xn.lex(l,n??this.defaults)}parser(l,n){return En.parse(l,n??this.defaults)}parseMarkdown(l){return(n,i)=>{let s={...i},o={...this.defaults,...s},c=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&s.async===!1)return c(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return c(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return c(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=l),o.async)return(async()=>{let f=o.hooks?await o.hooks.preprocess(n):n,p=await(o.hooks?await o.hooks.provideLexer():l?xn.lex:xn.lexInline)(f,o),h=o.hooks?await o.hooks.processAllTokens(p):p;o.walkTokens&&await Promise.all(this.walkTokens(h,o.walkTokens));let m=await(o.hooks?await o.hooks.provideParser():l?En.parse:En.parseInline)(h,o);return o.hooks?await o.hooks.postprocess(m):m})().catch(c);try{o.hooks&&(n=o.hooks.preprocess(n));let f=(o.hooks?o.hooks.provideLexer():l?xn.lex:xn.lexInline)(n,o);o.hooks&&(f=o.hooks.processAllTokens(f)),o.walkTokens&&this.walkTokens(f,o.walkTokens);let p=(o.hooks?o.hooks.provideParser():l?En.parse:En.parseInline)(f,o);return o.hooks&&(p=o.hooks.postprocess(p)),p}catch(f){return c(f)}}}onError(l,n){return i=>{if(i.message+=`
84
+ Please report this to https://github.com/markedjs/marked.`,l){let s="<p>An error occurred:</p><pre>"+Pn(i.message+"",!0)+"</pre>";return n?Promise.resolve(s):s}if(n)return Promise.reject(i);throw i}}},il=new XN;function He(l,n){return il.parse(l,n)}He.options=He.setOptions=function(l){return il.setOptions(l),He.defaults=il.defaults,My(He.defaults),He};He.getDefaults=pd;He.defaults=cl;He.use=function(...l){return il.use(...l),He.defaults=il.defaults,My(He.defaults),He};He.walkTokens=function(l,n){return il.walkTokens(l,n)};He.parseInline=il.parseInline;He.Parser=En;He.parser=En.parse;He.Renderer=Ao;He.TextRenderer=Ed;He.Lexer=xn;He.lexer=xn.lex;He.Tokenizer=jo;He.Hooks=gr;He.parse=He;He.options;He.setOptions;He.use;He.walkTokens;He.parseInline;En.parse;xn.lex;function QN(l){if(!l)return"";try{return He.parse(l,{async:!1,gfm:!0,breaks:!0})}catch(n){return console.error("Error rendering markdown:",n),l}}function wd({content:l,title:n,variant:i="info"}){const s=i==="error"?"error":i==="warning"?"warning":"primary";return b.jsx(Do,{severity:s,title:n,className:"SgSection-alert",children:b.jsx("div",{dangerouslySetInnerHTML:{__html:QN(l)}})})}function KN(l){return b.jsx(rl,{children:b.jsx(ZN,{...l})})}function ZN({isOpen:l,title:n,message:i,confirmLabel:s,onConfirm:o,onCancel:c}){const{t:f}=At(),[p,h]=w.useState(!0),{showError:m}=sl(),y=async()=>{await o({withSampleData:p})},v=b.jsxs(b.Fragment,{children:[b.jsx(ea,{severity:"secondary",onClick:c,children:f("cancel")}),b.jsx(ea,{as:"async",onClick:y,onError:m,children:s??f("confirm")})]});return b.jsxs(SC,{visible:l,onHide:c,header:n,footer:v,size:"sm",children:[b.jsx(_a,{}),b.jsx("div",{className:"Text",children:b.jsx("p",{style:{marginBottom:"var(--space-4)"},children:i})}),b.jsx(iC,{checked:p,onChange:h,inputLabel:f("generateSiteWithData")})]})}function H(){return H=Object.assign?Object.assign.bind():function(l){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var s in i)({}).hasOwnProperty.call(i,s)&&(l[s]=i[s])}return l},H.apply(null,arguments)}function Oe(l,n){if(l==null)return{};var i={};for(var s in l)if({}.hasOwnProperty.call(l,s)){if(n.indexOf(s)!==-1)continue;i[s]=l[s]}return i}var Xy={},Qy=w.createContext(Xy),JN=(l,n)=>H({},l,n),FN=()=>w.useContext(Qy),Cd=w.createContext(()=>{});Cd.displayName="JVR.DispatchShowTools";function PN(){return w.useReducer(JN,Xy)}function Ky(){return w.useContext(Cd)}var Zy=l=>{var{initial:n,dispatch:i,children:s}=l;return b.jsx(Qy.Provider,{value:n,children:b.jsx(Cd.Provider,{value:i,children:s})})};Zy.displayName="JVR.ShowTools";var Jy={},Fy=w.createContext(Jy),IN=(l,n)=>H({},l,n),Uo=()=>w.useContext(Fy),Td=w.createContext(()=>{});Td.displayName="JVR.DispatchExpands";function WN(){return w.useReducer(IN,Jy)}function eR(){return w.useContext(Td)}var Py=l=>{var{initial:n,dispatch:i,children:s}=l;return b.jsx(Fy.Provider,{value:n,children:b.jsx(Td.Provider,{value:i,children:s})})};Py.displayName="JVR.Expands";var Iy={Str:{as:"span","data-type":"string",style:{color:"var(--w-rjv-type-string-color, #cb4b16)"},className:"w-rjv-type",children:"string"},Url:{as:"a",style:{color:"var(--w-rjv-type-url-color, #0969da)"},"data-type":"url",className:"w-rjv-type",children:"url"},Undefined:{style:{color:"var(--w-rjv-type-undefined-color, #586e75)"},as:"span","data-type":"undefined",className:"w-rjv-type",children:"undefined"},Null:{style:{color:"var(--w-rjv-type-null-color, #d33682)"},as:"span","data-type":"null",className:"w-rjv-type",children:"null"},Map:{style:{color:"var(--w-rjv-type-map-color, #268bd2)",marginRight:3},as:"span","data-type":"map",className:"w-rjv-type",children:"Map"},Nan:{style:{color:"var(--w-rjv-type-nan-color, #859900)"},as:"span","data-type":"nan",className:"w-rjv-type",children:"NaN"},Bigint:{style:{color:"var(--w-rjv-type-bigint-color, #268bd2)"},as:"span","data-type":"bigint",className:"w-rjv-type",children:"bigint"},Int:{style:{color:"var(--w-rjv-type-int-color, #268bd2)"},as:"span","data-type":"int",className:"w-rjv-type",children:"int"},Set:{style:{color:"var(--w-rjv-type-set-color, #268bd2)",marginRight:3},as:"span","data-type":"set",className:"w-rjv-type",children:"Set"},Float:{style:{color:"var(--w-rjv-type-float-color, #859900)"},as:"span","data-type":"float",className:"w-rjv-type",children:"float"},True:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},False:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},Date:{style:{color:"var(--w-rjv-type-date-color, #268bd2)"},as:"span","data-type":"date",className:"w-rjv-type",children:"date"}},Wy=w.createContext(Iy),tR=(l,n)=>H({},l,n),Xe=()=>w.useContext(Wy),Nd=w.createContext(()=>{});Nd.displayName="JVR.DispatchTypes";function nR(){return w.useReducer(tR,Iy)}function aR(){return w.useContext(Nd)}function eb(l){var{initial:n,dispatch:i,children:s}=l;return b.jsx(Wy.Provider,{value:n,children:b.jsx(Nd.Provider,{value:i,children:s})})}eb.displayName="JVR.Types";var lR=["style"];function tb(l){var{style:n}=l,i=Oe(l,lR),s=H({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},n);return b.jsx("svg",H({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:s},i,{children:b.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}tb.displayName="JVR.TriangleArrow";var nb={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:b.jsx(tb,{})},Colon:{as:"span",style:{color:"var(--w-rjv-colon-color, var(--w-rjv-color))",marginLeft:0,marginRight:2},className:"w-rjv-colon",children:":"},Quote:{as:"span",style:{color:"var(--w-rjv-quotes-color, #236a7c)"},className:"w-rjv-quotes",children:'"'},ValueQuote:{as:"span",style:{color:"var(--w-rjv-quotes-string-color, #cb4b16)"},className:"w-rjv-quotes",children:'"'},BracketsLeft:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-start",children:"["},BracketsRight:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-end",children:"]"},BraceLeft:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-start",children:"{"},BraceRight:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-end",children:"}"}},ab=w.createContext(nb),iR=(l,n)=>H({},l,n),$t=()=>w.useContext(ab),Rd=w.createContext(()=>{});Rd.displayName="JVR.DispatchSymbols";function rR(){return w.useReducer(iR,nb)}function sR(){return w.useContext(Rd)}var lb=l=>{var{initial:n,dispatch:i,children:s}=l;return b.jsx(ab.Provider,{value:n,children:b.jsx(Rd.Provider,{value:i,children:s})})};lb.displayName="JVR.Symbols";var ib={Copied:{className:"w-rjv-copied",style:{height:"1em",width:"1em",cursor:"pointer",verticalAlign:"middle",marginLeft:5}},CountInfo:{as:"span",className:"w-rjv-object-size",style:{color:"var(--w-rjv-info-color, #0000004d)",paddingLeft:8,fontStyle:"italic"}},CountInfoExtra:{as:"span",className:"w-rjv-object-extra",style:{paddingLeft:8}},Ellipsis:{as:"span",style:{cursor:"pointer",color:"var(--w-rjv-ellipsis-color, #cb4b16)",userSelect:"none"},className:"w-rjv-ellipsis",children:"..."},Row:{as:"div",className:"w-rjv-line"},KeyName:{as:"span",className:"w-rjv-object-key"}},rb=w.createContext(ib),oR=(l,n)=>H({},l,n),mn=()=>w.useContext(rb),jd=w.createContext(()=>{});jd.displayName="JVR.DispatchSection";function uR(){return w.useReducer(oR,ib)}function cR(){return w.useContext(jd)}var sb=l=>{var{initial:n,dispatch:i,children:s}=l;return b.jsx(rb.Provider,{value:n,children:b.jsx(jd.Provider,{value:i,children:s})})};sb.displayName="JVR.Section";var ob={objectSortKeys:!1,indentWidth:15},Ad=w.createContext(ob);Ad.displayName="JVR.Context";var ub=w.createContext(()=>{});ub.displayName="JVR.DispatchContext";function fR(l,n){return H({},l,n)}var fl=()=>w.useContext(Ad),cb=l=>{var{children:n,initialState:i,initialTypes:s}=l,[o,c]=w.useReducer(fR,Object.assign({},ob,i)),[f,p]=PN(),[h,m]=WN(),[y,v]=nR(),[x,E]=rR(),[R,A]=uR();return w.useEffect(()=>c(H({},i)),[i]),b.jsx(Ad.Provider,{value:o,children:b.jsx(ub.Provider,{value:c,children:b.jsx(Zy,{initial:f,dispatch:p,children:b.jsx(Py,{initial:h,dispatch:m,children:b.jsx(eb,{initial:H({},y,s),dispatch:v,children:b.jsx(lb,{initial:x,dispatch:E,children:b.jsx(sb,{initial:R,dispatch:A,children:n})})})})})})})};cb.displayName="JVR.Provider";function dR(l){if(l==null)throw new TypeError("Cannot destructure "+l)}var hR=["isNumber","value","parentValue","keyName","keys"],pR=["as","render"],mR=["as","render"],gR=["as","render"],vR=["as","style","render"],yR=["as","render"],bR=["as","render"],SR=["as","render"],xR=["as","render"],Kf=l=>{var{Quote:n={}}=$t(),{isNumber:i,value:s,parentValue:o,keyName:c,keys:f}=l,p=Oe(l,hR);if(i)return null;var{as:h,render:m}=n,y=Oe(n,pR),v=h||"span",x=H({},p,y),E={value:s,parentValue:o,keyName:c,keys:f||(c?[c]:[])},R=m&&typeof m=="function"&&m(x,E);return R||b.jsx(v,H({},x))};Kf.displayName="JVR.Quote";var Rr=l=>{var{ValueQuote:n={}}=$t(),i=H({},(dR(l),l)),{as:s,render:o}=n,c=Oe(n,mR),f=s||"span",p=H({},i,c),h=o&&typeof o=="function"&&o(p,{});return h||b.jsx(f,H({},p))};Rr.displayName="JVR.ValueQuote";var fb=l=>{var{value:n,parentValue:i,keyName:s,keys:o}=l,{Colon:c={}}=$t(),{as:f,render:p}=c,h=Oe(c,gR),m=f||"span",y=p&&typeof p=="function"&&p(h,{value:n,parentValue:i,keyName:s,keys:o||(s?[s]:[])});return y||b.jsx(m,H({},h))};fb.displayName="JVR.Colon";var db=l=>{var{Arrow:n={}}=$t(),i=Uo(),{expandKey:s,style:o,value:c,parentValue:f,keyName:p,keys:h}=l,m=!!i[s],{as:y,style:v,render:x}=n,E=Oe(n,vR),R=y||"span",A=x&&typeof x=="function",B=H({},E,{"data-expanded":m,style:H({},v,o)}),Q={value:c,parentValue:f,keyName:p,keys:h||(p?[p]:[])},M=A&&x(B,Q);return M||b.jsx(R,H({},E,{style:H({},v,o)}))};db.displayName="JVR.Arrow";var hb=l=>{var{isBrackets:n,value:i,parentValue:s,keyName:o,keys:c}=l,{BracketsLeft:f={},BraceLeft:p={}}=$t(),h={value:i,parentValue:s,keyName:o,keys:c||(o?[o]:[])};if(n){var{as:m,render:y}=f,v=Oe(f,yR),x=m||"span",E=y&&typeof y=="function"&&y(v,h);return E||b.jsx(x,H({},v))}var{as:R,render:A}=p,B=Oe(p,bR),Q=R||"span",M=A&&typeof A=="function"&&A(B,h);return M||b.jsx(Q,H({},B))};hb.displayName="JVR.BracketsOpen";var Od=l=>{var{isBrackets:n,isVisiable:i,value:s,parentValue:o,keyName:c,keys:f}=l,p={value:s,parentValue:o,keyName:c,keys:f||(c?[c]:[])};if(!i)return null;var{BracketsRight:h={},BraceRight:m={}}=$t();if(n){var{as:y,render:v}=h,x=Oe(h,SR),E=y||"span",R=v&&typeof v=="function"&&v(x,p);return R||b.jsx(E,H({},x))}var{as:A,render:B}=m,Q=Oe(m,xR),M=A||"span",U=B&&typeof B=="function"&&B(Q,p);return U||b.jsx(M,H({},Q))};Od.displayName="JVR.BracketsClose";var pb=l=>{var n,{keyName:i,value:s,expandKey:o,parentValue:c,level:f,keys:p=[]}=l,h=Uo(),{collapsed:m,shouldExpandNodeInitially:y}=fl(),v=typeof m=="boolean"?m:typeof m=="number"?f>m:!1,x=(n=h[o])!=null?n:y?!1:v,E=y&&y(!x,{value:s,keys:p,level:f,keyName:i,parentValue:c});if(y&&m===!1){if(h[o]===void 0&&!E)return null}else if(h[o]===void 0&&E)return null;var R=Object.keys(s).length;if(x||R===0)return null;var A={paddingLeft:4},B={keyName:i,value:s,keys:p,parentValue:c},Q=Array.isArray(s),M=s instanceof Set;return b.jsx("div",{style:A,children:b.jsx(Od,H({isBrackets:Q||M},B,{isVisiable:!0}))})};pb.displayName="JVR.NestedClose";var ER=["as","render"],wR=["as","render"],CR=["as","render"],TR=["as","render"],NR=["as","render"],RR=["as","render"],jR=["as","render"],AR=["as","render"],OR=["as","render"],DR=["as","render"],_R=["as","render"],kR=["as","render"],MR=["as","render"],Zf=l=>{if(l===void 0)return"0n";if(typeof l=="string")try{l=BigInt(l)}catch{return"0n"}return l?l.toString()+"n":"0n"},mb=l=>{var{value:n,keyName:i}=l,{Set:s={},displayDataTypes:o}=Xe(),c=n instanceof Set;if(!c||!o)return null;var{as:f,render:p}=s,h=Oe(s,ER),m=p&&typeof p=="function",y=m&&p(h,{type:"type",value:n,keyName:i});if(y)return y;var v=f||"span";return b.jsx(v,H({},h))};mb.displayName="JVR.SetComp";var gb=l=>{var{value:n,keyName:i}=l,{Map:s={},displayDataTypes:o}=Xe(),c=n instanceof Map;if(!c||!o)return null;var{as:f,render:p}=s,h=Oe(s,wR),m=p&&typeof p=="function",y=m&&p(h,{type:"type",value:n,keyName:i});if(y)return y;var v=f||"span";return b.jsx(v,H({},h))};gb.displayName="JVR.MapComp";var Cn={opacity:.75,paddingRight:4},vb=l=>{var{children:n="",keyName:i,keys:s}=l,{Str:o={},displayDataTypes:c}=Xe(),{shortenTextAfterLength:f=30,stringEllipsis:p="..."}=fl(),{as:h,render:m}=o,y=Oe(o,CR),v=n,[x,E]=w.useState(f&&v.length>f);w.useEffect(()=>E(f&&v.length>f),[f]);var R=h||"span",A=H({},Cn,o.style||{});f>0&&(y.style=H({},y.style,{cursor:v.length<=f?"initial":"pointer"}),v.length>f&&(y.onClick=()=>{E(!x)}));var B=x?""+v.slice(0,f)+p:v,Q=m&&typeof m=="function",M=Q&&m(H({},y,{style:A}),{type:"type",value:n,keyName:i,keys:s}),U=x?"w-rjv-value w-rjv-value-short":"w-rjv-value",P=Q&&m(H({},y,{children:B,className:U}),{type:"value",value:n,keyName:i,keys:s});return b.jsxs(w.Fragment,{children:[c&&(M||b.jsx(R,H({},y,{style:A}))),P||b.jsxs(w.Fragment,{children:[b.jsx(Rr,{}),b.jsx(R,H({},y,{className:U,children:B})),b.jsx(Rr,{})]})]})};vb.displayName="JVR.TypeString";var yb=l=>{var{children:n,keyName:i,keys:s}=l,{True:o={},displayDataTypes:c}=Xe(),{as:f,render:p}=o,h=Oe(o,TR),m=f||"span",y=H({},Cn,o.style||{}),v=p&&typeof p=="function",x=v&&p(H({},h,{style:y}),{type:"type",value:n,keyName:i,keys:s}),E=v&&p(H({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:i,keys:s});return b.jsxs(w.Fragment,{children:[c&&(x||b.jsx(m,H({},h,{style:y}))),E||b.jsx(m,H({},h,{className:"w-rjv-value",children:n?.toString()}))]})};yb.displayName="JVR.TypeTrue";var bb=l=>{var{children:n,keyName:i,keys:s}=l,{False:o={},displayDataTypes:c}=Xe(),{as:f,render:p}=o,h=Oe(o,NR),m=f||"span",y=H({},Cn,o.style||{}),v=p&&typeof p=="function",x=v&&p(H({},h,{style:y}),{type:"type",value:n,keyName:i,keys:s}),E=v&&p(H({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:i,keys:s});return b.jsxs(w.Fragment,{children:[c&&(x||b.jsx(m,H({},h,{style:y}))),E||b.jsx(m,H({},h,{className:"w-rjv-value",children:n?.toString()}))]})};bb.displayName="JVR.TypeFalse";var Sb=l=>{var{children:n,keyName:i,keys:s}=l,{Float:o={},displayDataTypes:c}=Xe(),{as:f,render:p}=o,h=Oe(o,RR),m=f||"span",y=H({},Cn,o.style||{}),v=p&&typeof p=="function",x=v&&p(H({},h,{style:y}),{type:"type",value:n,keyName:i,keys:s}),E=v&&p(H({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:i,keys:s});return b.jsxs(w.Fragment,{children:[c&&(x||b.jsx(m,H({},h,{style:y}))),E||b.jsx(m,H({},h,{className:"w-rjv-value",children:n?.toString()}))]})};Sb.displayName="JVR.TypeFloat";var xb=l=>{var{children:n,keyName:i,keys:s}=l,{Int:o={},displayDataTypes:c}=Xe(),{as:f,render:p}=o,h=Oe(o,jR),m=f||"span",y=H({},Cn,o.style||{}),v=p&&typeof p=="function",x=v&&p(H({},h,{style:y}),{type:"type",value:n,keyName:i,keys:s}),E=v&&p(H({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:i,keys:s});return b.jsxs(w.Fragment,{children:[c&&(x||b.jsx(m,H({},h,{style:y}))),E||b.jsx(m,H({},h,{className:"w-rjv-value",children:n?.toString()}))]})};xb.displayName="JVR.TypeInt";var Eb=l=>{var{children:n,keyName:i,keys:s}=l,{Bigint:o={},displayDataTypes:c}=Xe(),{as:f,render:p}=o,h=Oe(o,AR),m=f||"span",y=H({},Cn,o.style||{}),v=p&&typeof p=="function",x=v&&p(H({},h,{style:y}),{type:"type",value:n,keyName:i,keys:s}),E=v&&p(H({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:i,keys:s});return b.jsxs(w.Fragment,{children:[c&&(x||b.jsx(m,H({},h,{style:y}))),E||b.jsx(m,H({},h,{className:"w-rjv-value",children:Zf(n?.toString())}))]})};Eb.displayName="JVR.TypeFloat";var wb=l=>{var{children:n,keyName:i,keys:s}=l,{Url:o={},displayDataTypes:c}=Xe(),{as:f,render:p}=o,h=Oe(o,OR),m=f||"span",y=H({},Cn,o.style),v=p&&typeof p=="function",x=v&&p(H({},h,{style:y}),{type:"type",value:n,keyName:i,keys:s}),E=v&&p(H({},h,{children:n?.href,className:"w-rjv-value"}),{type:"value",value:n,keyName:i,keys:s});return b.jsxs(w.Fragment,{children:[c&&(x||b.jsx(m,H({},h,{style:y}))),E||b.jsxs("a",H({href:n?.href,target:"_blank"},h,{className:"w-rjv-value",children:[b.jsx(Rr,{}),n?.href,b.jsx(Rr,{})]}))]})};wb.displayName="JVR.TypeUrl";var Cb=l=>{var{children:n,keyName:i,keys:s}=l,{Date:o={},displayDataTypes:c}=Xe(),{as:f,render:p}=o,h=Oe(o,DR),m=f||"span",y=H({},Cn,o.style||{}),v=p&&typeof p=="function",x=v&&p(H({},h,{style:y}),{type:"type",value:n,keyName:i,keys:s}),E=n instanceof Date?n.toLocaleString():n,R=v&&p(H({},h,{children:E,className:"w-rjv-value"}),{type:"value",value:n,keyName:i,keys:s});return b.jsxs(w.Fragment,{children:[c&&(x||b.jsx(m,H({},h,{style:y}))),R||b.jsx(m,H({},h,{className:"w-rjv-value",children:E}))]})};Cb.displayName="JVR.TypeDate";var Tb=l=>{var{children:n,keyName:i,keys:s}=l,{Undefined:o={},displayDataTypes:c}=Xe(),{as:f,render:p}=o,h=Oe(o,_R),m=f||"span",y=H({},Cn,o.style||{}),v=p&&typeof p=="function",x=v&&p(H({},h,{style:y}),{type:"type",value:n,keyName:i,keys:s}),E=v&&p(H({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:i,keys:s});return b.jsxs(w.Fragment,{children:[c&&(x||b.jsx(m,H({},h,{style:y}))),E]})};Tb.displayName="JVR.TypeUndefined";var Nb=l=>{var{children:n,keyName:i,keys:s}=l,{Null:o={},displayDataTypes:c}=Xe(),{as:f,render:p}=o,h=Oe(o,kR),m=f||"span",y=H({},Cn,o.style||{}),v=p&&typeof p=="function",x=v&&p(H({},h,{style:y}),{type:"type",value:n,keyName:i,keys:s}),E=v&&p(H({},h,{children:n,className:"w-rjv-value"}),{type:"value",value:n,keyName:i,keys:s});return b.jsxs(w.Fragment,{children:[c&&(x||b.jsx(m,H({},h,{style:y}))),E]})};Nb.displayName="JVR.TypeNull";var Rb=l=>{var{children:n,keyName:i,keys:s}=l,{Nan:o={},displayDataTypes:c}=Xe(),{as:f,render:p}=o,h=Oe(o,MR),m=f||"span",y=H({},Cn,o.style||{}),v=p&&typeof p=="function",x=v&&p(H({},h,{style:y}),{type:"type",value:n,keyName:i,keys:s}),E=v&&p(H({},h,{children:n?.toString(),className:"w-rjv-value"}),{type:"value",value:n,keyName:i,keys:s});return b.jsxs(w.Fragment,{children:[c&&(x||b.jsx(m,H({},h,{style:y}))),E]})};Rb.displayName="JVR.TypeNan";var zR=l=>Number(l)===l&&l%1!==0||isNaN(l),jb=l=>{var{value:n,keyName:i,keys:s}=l,o={keyName:i,keys:s};return n instanceof URL?b.jsx(wb,H({},o,{children:n})):typeof n=="string"?b.jsx(vb,H({},o,{children:n})):n===!0?b.jsx(yb,H({},o,{children:n})):n===!1?b.jsx(bb,H({},o,{children:n})):n===null?b.jsx(Nb,H({},o,{children:n})):n===void 0?b.jsx(Tb,H({},o,{children:n})):n instanceof Date?b.jsx(Cb,H({},o,{children:n})):typeof n=="number"&&isNaN(n)?b.jsx(Rb,H({},o,{children:n})):typeof n=="number"&&zR(n)?b.jsx(Sb,H({},o,{children:n})):typeof n=="bigint"?b.jsx(Eb,H({},o,{children:n})):typeof n=="number"?b.jsx(xb,H({},o,{children:n})):null};jb.displayName="JVR.Value";function Ma(l,n,i){var s=sR(),o=[l.className,n.className].filter(Boolean).join(" "),c=H({},l,n,{className:o,style:H({},l.style,n.style),children:n.children||l.children});w.useEffect(()=>s({[i]:c}),[n])}function tn(l,n,i){var s=aR(),o=[l.className,n.className].filter(Boolean).join(" "),c=H({},l,n,{className:o,style:H({},l.style,n.style),children:n.children||l.children});w.useEffect(()=>s({[i]:c}),[n])}function oi(l,n,i){var s=cR(),o=[l.className,n.className].filter(Boolean).join(" "),c=H({},l,n,{className:o,style:H({},l.style,n.style),children:n.children||l.children});w.useEffect(()=>s({[i]:c}),[n])}var LR=["as","render"],Ab=l=>{var{KeyName:n={}}=mn();return oi(n,l,"KeyName"),null};Ab.displayName="JVR.KeyName";var Ob=l=>{var{children:n,value:i,parentValue:s,keyName:o,keys:c}=l,f=typeof n=="number",p={color:f?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:h={}}=mn(),{as:m,render:y}=h,v=Oe(h,LR);v.style=H({},v.style,p);var x=m||"span",E=y&&typeof y=="function"&&y(H({},v,{children:n}),{value:i,parentValue:s,keyName:o,keys:c||(o?[o]:[])});return E||b.jsx(x,H({},v,{children:n}))};Ob.displayName="JVR.KeyNameComp";var UR=["children","value","parentValue","keyName","keys"],BR=["as","render","children"],Db=l=>{var{Row:n={}}=mn();return oi(n,l,"Row"),null};Db.displayName="JVR.Row";var _b=l=>{var{children:n,value:i,parentValue:s,keyName:o,keys:c}=l,f=Oe(l,UR),{Row:p={}}=mn(),{as:h,render:m}=p,y=Oe(p,BR),v=h||"div",x=m&&typeof m=="function"&&m(H({},f,y,{children:n}),{value:i,keyName:o,parentValue:s,keys:c});return x||b.jsx(v,H({},f,y,{children:n}))};_b.displayName="JVR.RowComp";function HR(l){var n=w.useRef();return w.useEffect(()=>{n.current=l}),n.current}function $R(l){var{value:n,highlightUpdates:i,highlightContainer:s}=l,o=HR(n),c=w.useMemo(()=>{if(!i||o===void 0)return!1;if(typeof n!=typeof o)return!0;if(typeof n=="number")return isNaN(n)&&isNaN(o)?!1:n!==o;if(Array.isArray(n)!==Array.isArray(o))return!0;if(typeof n=="object"||typeof n=="function")return!1;if(n!==o)return!0},[i,n]);w.useEffect(()=>{s&&s.current&&c&&"animate"in s.current&&s.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[c,n,s])}var VR=["keyName","value","parentValue","expandKey","keys","beforeCopy"],qR=["as","render"],Dd=l=>{var{keyName:n,value:i,parentValue:s,expandKey:o,keys:c,beforeCopy:f}=l,p=Oe(l,VR),{onCopied:h,enableClipboard:m,beforeCopy:y}=fl(),v=FN(),x=v[o],[E,R]=w.useState(!1),{Copied:A={}}=mn(),B=A?.beforeCopy;if(m===!1||!x)return null;var Q=K=>{K.stopPropagation();var $="";typeof i=="number"&&i===1/0?$="Infinity":typeof i=="number"&&isNaN(i)?$="NaN":typeof i=="bigint"?$=Zf(i):i instanceof Date?$=i.toLocaleString():$=JSON.stringify(i,(te,ie)=>typeof ie=="bigint"?Zf(ie):ie,2);var Z=f||B||y;Z&&typeof Z=="function"&&($=Z($,n,i,s,o,c)),h&&h($,i),R(!0);var F=navigator.clipboard||{writeText(te){return new Promise((ie,ce)=>{var he=document.createElement("textarea");he.style.position="absolute",he.style.opacity="0",he.style.left="-99999999px",he.value=te,document.body.appendChild(he),he.select(),document.execCommand("copy")?ie():ce(),he.remove()})}};F.writeText($).then(()=>{var te=setTimeout(()=>{R(!1),clearTimeout(te)},3e3)}).catch(te=>{})},M={style:{display:"inline-flex"},fill:E?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:Q},{render:U}=A,P=Oe(A,qR),ee=H({},P,p,M,{style:H({},P.style,p.style,M.style)}),Y=U&&typeof U=="function",_=Y&&U(H({},ee,{"data-copied":E}),{value:i,keyName:n,keys:c,parentValue:s});return _||(E?b.jsx("svg",H({viewBox:"0 0 32 36"},ee,{children:b.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})):b.jsx("svg",H({viewBox:"0 0 32 36"},ee,{children:b.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})))};Dd.displayName="JVR.Copied";function kb(){var l=w.useRef(null);return l.current===null&&(l.current="custom-id-"+Math.random().toString(36).substr(2,9)),l.current}var Mb=l=>{var n,{keyName:i,value:s,expandKey:o="",level:c,keys:f=[],parentValue:p}=l,h=Uo(),{objectSortKeys:m,indentWidth:y,collapsed:v,shouldExpandNodeInitially:x}=fl(),E=typeof v=="boolean"?v:typeof v=="number"?c>v:!1,R=(n=h[o])!=null?n:x?!1:E,A=x&&x(!R,{value:s,keys:f,level:c,keyName:i,parentValue:p});if(x&&v===!1){if(h[o]===void 0&&!A)return null}else if(h[o]===void 0&&A)return null;if(R)return null;var B=Array.isArray(s),Q=B?Object.entries(s).map(U=>[Number(U[0]),U[1]]):Object.entries(s);m&&(Q=m===!0?Q.sort((U,P)=>{var[ee]=U,[Y]=P;return typeof ee=="string"&&typeof Y=="string"?ee.localeCompare(Y):0}):Q.sort((U,P)=>{var[ee,Y]=U,[_,K]=P;return typeof ee=="string"&&typeof _=="string"?m(ee,_,Y,K):0}));var M={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:y,marginLeft:6};return b.jsx("div",{className:"w-rjv-wrap",style:M,children:Q.map((U,P)=>{var[ee,Y]=U;return b.jsx(zb,{parentValue:s,keyName:ee,keys:[...f,ee],value:Y,level:c},P)})})};Mb.displayName="JVR.KeyValues";var _d=l=>{var{keyName:n,parentValue:i,keys:s,value:o}=l,{highlightUpdates:c}=fl(),f=typeof n=="number",p=w.useRef(null);$R({value:o,highlightUpdates:c,highlightContainer:p});var h={keyName:n,value:o,keys:s,parentValue:i};return b.jsxs(w.Fragment,{children:[b.jsxs("span",{ref:p,children:[b.jsx(Kf,H({isNumber:f,"data-placement":"left"},h)),b.jsx(Ob,H({},h,{children:n})),b.jsx(Kf,H({isNumber:f,"data-placement":"right"},h))]}),b.jsx(fb,H({},h))]})};_d.displayName="JVR.KayName";var zb=l=>{var{keyName:n,value:i,parentValue:s,level:o=0,keys:c=[]}=l,f=Ky(),p=kb(),h=Array.isArray(i),m=i instanceof Set,y=i instanceof Map,v=i instanceof Date,x=i instanceof URL,E=i&&typeof i=="object"&&!h&&!m&&!y&&!v&&!x,R=E||h||m||y;if(R){var A=m?Array.from(i):y?Object.fromEntries(i):i;return b.jsx(kd,{keyName:n,value:A,parentValue:s,initialValue:i,keys:c,level:o+1})}var B={onMouseEnter:()=>f({[p]:!0}),onMouseLeave:()=>f({[p]:!1})};return b.jsxs(_b,H({className:"w-rjv-line",value:i,keyName:n,keys:c,parentValue:s},B,{children:[b.jsx(_d,{keyName:n,value:i,keys:c,parentValue:s}),b.jsx(jb,{keyName:n,value:i,keys:c}),b.jsx(Dd,{keyName:n,value:i,keys:c,parentValue:s,expandKey:p})]}))};zb.displayName="JVR.KeyValuesItem";var GR=["value","keyName"],YR=["as","render"],Lb=l=>{var{CountInfoExtra:n={}}=mn();return oi(n,l,"CountInfoExtra"),null};Lb.displayName="JVR.CountInfoExtra";var Ub=l=>{var{value:n={},keyName:i}=l,s=Oe(l,GR),{CountInfoExtra:o={}}=mn(),{as:c,render:f}=o,p=Oe(o,YR);if(!f&&!p.children)return null;var h=c||"span",m=f&&typeof f=="function",y=H({},p,s),v=m&&f(y,{value:n,keyName:i});return v||b.jsx(h,H({},y))};Ub.displayName="JVR.CountInfoExtraComps";var XR=["value","keyName"],QR=["as","render"],Bb=l=>{var{CountInfo:n={}}=mn();return oi(n,l,"CountInfo"),null};Bb.displayName="JVR.CountInfo";var Hb=l=>{var{value:n={},keyName:i}=l,s=Oe(l,XR),{displayObjectSize:o}=fl(),{CountInfo:c={}}=mn();if(!o)return null;var{as:f,render:p}=c,h=Oe(c,QR),m=f||"span";h.style=H({},h.style,l.style);var y=Object.keys(n).length;h.children||(h.children=y+" item"+(y===1?"":"s"));var v=H({},h,s),x=p&&typeof p=="function",E=x&&p(H({},v,{"data-length":y}),{value:n,keyName:i});return E||b.jsx(m,H({},v))};Hb.displayName="JVR.CountInfoComp";var KR=["as","render"],$b=l=>{var{Ellipsis:n={}}=mn();return oi(n,l,"Ellipsis"),null};$b.displayName="JVR.Ellipsis";var Vb=l=>{var{isExpanded:n,value:i,keyName:s}=l,{Ellipsis:o={}}=mn(),{as:c,render:f}=o,p=Oe(o,KR),h=c||"span",m=f&&typeof f=="function"&&f(H({},p,{"data-expanded":n}),{value:i,keyName:s});return m||(!n||typeof i=="object"&&Object.keys(i).length==0?null:b.jsx(h,H({},p)))};Vb.displayName="JVR.EllipsisComp";var qb=l=>{var n,{keyName:i,expandKey:s,keys:o=[],initialValue:c,value:f,parentValue:p,level:h}=l,m=Uo(),y=eR(),{onExpand:v,collapsed:x,shouldExpandNodeInitially:E}=fl(),R=typeof x=="boolean"?x:typeof x=="number"?h>x:!1,A=(n=m[s])!=null?n:E?!1:R,B=E&&E(!A,{value:f,keys:o,level:h,keyName:i,parentValue:p});m[s]===void 0&&E&&(A=!B);var Q=()=>{var F={expand:!A,value:f,keyid:s,keyName:i};v&&v(F),y({[s]:F.expand})},M={display:"inline-flex",alignItems:"center"},U={transform:"rotate("+(A?"-90":"0")+"deg)",transition:"all 0.3s"},P=Object.keys(f).length,ee=typeof f=="object",Y=Array.isArray(f),_=f instanceof Set,K=P!==0&&(Y||_||ee),$={style:M};K&&($.onClick=Q);var Z={keyName:i,value:f,keys:o,parentValue:p};return b.jsxs("span",H({},$,{children:[K&&b.jsx(db,H({style:U,expandKey:s},Z)),(i||typeof i=="number")&&b.jsx(_d,H({},Z)),b.jsx(mb,{value:c,keyName:i}),b.jsx(gb,{value:c,keyName:i}),b.jsx(hb,H({isBrackets:Y||_},Z)),b.jsx(Vb,{keyName:i,value:f,isExpanded:A}),b.jsx(Od,H({isVisiable:A||!K,isBrackets:Y||_},Z)),b.jsx(Hb,{value:f,keyName:i}),b.jsx(Ub,{value:f,keyName:i}),b.jsx(Dd,{keyName:i,value:f,expandKey:s,parentValue:p,keys:o})]}))};qb.displayName="JVR.NestedOpen";var ZR=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],kd=w.forwardRef((l,n)=>{var{className:i="",parentValue:s,level:o=1,value:c,initialValue:f,keys:p,keyName:h}=l,m=Oe(l,ZR),y=Ky(),v=kb(),x=[i,"w-rjv-inner"].filter(Boolean).join(" "),E={onMouseEnter:()=>y({[v]:!0}),onMouseLeave:()=>y({[v]:!1})};return b.jsxs("div",H({className:x,ref:n},m,E,{children:[b.jsx(qb,{expandKey:v,value:c,level:o,keys:p,parentValue:s,keyName:h,initialValue:f}),b.jsx(Mb,{expandKey:v,value:c,level:o,keys:p,parentValue:s,keyName:h}),b.jsx(pb,{expandKey:v,value:c,level:o,keys:p,parentValue:s,keyName:h})]}))});kd.displayName="JVR.Container";var Gb=l=>{var{BraceLeft:n={}}=$t();return Ma(n,l,"BraceLeft"),null};Gb.displayName="JVR.BraceLeft";var Yb=l=>{var{BraceRight:n={}}=$t();return Ma(n,l,"BraceRight"),null};Yb.displayName="JVR.BraceRight";var Xb=l=>{var{BracketsLeft:n={}}=$t();return Ma(n,l,"BracketsLeft"),null};Xb.displayName="JVR.BracketsLeft";var Qb=l=>{var{BracketsRight:n={}}=$t();return Ma(n,l,"BracketsRight"),null};Qb.displayName="JVR.BracketsRight";var Kb=l=>{var{Arrow:n={}}=$t();return Ma(n,l,"Arrow"),null};Kb.displayName="JVR.Arrow";var Zb=l=>{var{Colon:n={}}=$t();return Ma(n,l,"Colon"),null};Zb.displayName="JVR.Colon";var Jb=l=>{var{Quote:n={}}=$t();return Ma(n,l,"Quote"),null};Jb.displayName="JVR.Quote";var Fb=l=>{var{ValueQuote:n={}}=$t();return Ma(n,l,"ValueQuote"),null};Fb.displayName="JVR.ValueQuote";var Pb=l=>{var{Bigint:n={}}=Xe();return tn(n,l,"Bigint"),null};Pb.displayName="JVR.Bigint";var Ib=l=>{var{Date:n={}}=Xe();return tn(n,l,"Date"),null};Ib.displayName="JVR.Date";var Wb=l=>{var{False:n={}}=Xe();return tn(n,l,"False"),null};Wb.displayName="JVR.False";var e0=l=>{var{Float:n={}}=Xe();return tn(n,l,"Float"),null};e0.displayName="JVR.Float";var t0=l=>{var{Int:n={}}=Xe();return tn(n,l,"Int"),null};t0.displayName="JVR.Int";var n0=l=>{var{Map:n={}}=Xe();return tn(n,l,"Map"),null};n0.displayName="JVR.Map";var a0=l=>{var{Nan:n={}}=Xe();return tn(n,l,"Nan"),null};a0.displayName="JVR.Nan";var l0=l=>{var{Null:n={}}=Xe();return tn(n,l,"Null"),null};l0.displayName="JVR.Null";var i0=l=>{var{Set:n={}}=Xe();return tn(n,l,"Set"),null};i0.displayName="JVR.Set";var r0=l=>{var{Str:n={}}=Xe();return tn(n,l,"Str"),null};r0.displayName="JVR.StringText";var s0=l=>{var{True:n={}}=Xe();return tn(n,l,"True"),null};s0.displayName="JVR.True";var o0=l=>{var{Undefined:n={}}=Xe();return tn(n,l,"Undefined"),null};o0.displayName="JVR.Undefined";var u0=l=>{var{Url:n={}}=Xe();return tn(n,l,"Url"),null};u0.displayName="JVR.Url";var c0=l=>{var{Copied:n={}}=mn();return oi(n,l,"Copied"),null};c0.displayName="JVR.Copied";var JR=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","stringEllipsis","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied","beforeCopy"],De=w.forwardRef((l,n)=>{var{className:i="",style:s,value:o,children:c,collapsed:f=!1,shouldExpandNodeInitially:p,indentWidth:h=15,displayObjectSize:m=!0,shortenTextAfterLength:y=30,stringEllipsis:v,highlightUpdates:x=!0,enableClipboard:E=!0,displayDataTypes:R=!0,objectSortKeys:A=!1,onExpand:B,onCopied:Q,beforeCopy:M}=l,U=Oe(l,JR),P=H({lineHeight:1.4,fontFamily:"var(--w-rjv-font-family, Menlo, monospace)",color:"var(--w-rjv-color, #002b36)",backgroundColor:"var(--w-rjv-background-color, #00000000)",fontSize:13},s),ee=["w-json-view-container","w-rjv",i].filter(Boolean).join(" ");return b.jsxs(cb,{initialState:{value:o,objectSortKeys:A,indentWidth:h,shouldExpandNodeInitially:f===!1?p:void 0,displayObjectSize:m,collapsed:f,enableClipboard:E,shortenTextAfterLength:y,stringEllipsis:v,highlightUpdates:x,onCopied:Q,onExpand:B,beforeCopy:M},initialTypes:{displayDataTypes:R},children:[b.jsx(kd,H({value:o},U,{ref:n,className:ee,style:P})),c]})});De.Bigint=Pb;De.Date=Ib;De.False=Wb;De.Float=e0;De.Int=t0;De.Map=n0;De.Nan=a0;De.Null=l0;De.Set=i0;De.String=r0;De.True=s0;De.Undefined=o0;De.Url=u0;De.ValueQuote=Fb;De.Arrow=Kb;De.Colon=Zb;De.Quote=Jb;De.Ellipsis=$b;De.BraceLeft=Gb;De.BraceRight=Yb;De.BracketsLeft=Xb;De.BracketsRight=Qb;De.Copied=c0;De.CountInfo=Bb;De.CountInfoExtra=Lb;De.KeyName=Ab;De.Row=Db;De.displayName="JVR.JsonView";var Bv={"--w-rjv-font-family":"monospace","--w-rjv-color":"#002b36","--w-rjv-key-string":"#002b36","--w-rjv-background-color":"#ffffff","--w-rjv-line-color":"#ebebeb","--w-rjv-arrow-color":"var(--w-rjv-color)","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#0000004d","--w-rjv-update-color":"#ebcb8b","--w-rjv-copied-color":"#002b36","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#236a7c","--w-rjv-colon-color":"#002b36","--w-rjv-brackets-color":"#236a7c","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#cb4b16","--w-rjv-type-int-color":"#268bd2","--w-rjv-type-float-color":"#859900","--w-rjv-type-bigint-color":"#268bd2","--w-rjv-type-boolean-color":"#2aa198","--w-rjv-type-date-color":"#586e75","--w-rjv-type-url-color":"#0969da","--w-rjv-type-null-color":"#d33682","--w-rjv-type-nan-color":"#859900","--w-rjv-type-undefined-color":"#586e75"};function FR(l){const n=Object.keys(l),i=n.length>0?n[0]:void 0;return(s,o,c={})=>{if(!i)return c.default??s;const f=l[o]??l[i],p=s.split(".");let h=f;for(const m of p){if(typeof h=="string"||!h||!Object.hasOwn(h,m))return c.default??s;h=h[m]}return typeof h=="string"?h:c.default??s}}function PR({siteSchema:l,schemaTranslate:n}){const i=new Set;return b.jsx("div",{className:"Tree",children:b.jsx("ul",{children:b.jsx(f0,{schema:l,schemaT:n,typeName:"home",displayedNodeTypeNames:i})})})}function f0({schema:l,schemaT:n,typeName:i,displayedNodeTypeNames:s}){const{i18n:o}=At(),c=IR(l,i);if(!c)return null;const f=c.routingChildren??[],p=c.regularChildren??[],h=[...f,...p],m=n(`nodeTypes.${i}.label`,o.language,{default:i});return s.has(i)?b.jsxs("li",{children:[b.jsx("span",{className:"Tree-label",children:m}),b.jsx("span",{className:"Tree-type",children:i})]}):(s.add(i),b.jsxs("li",{children:[b.jsx("span",{className:"Tree-label",children:m}),b.jsx("span",{className:"Tree-type",children:i}),h.length>0&&b.jsx("ul",{children:h.map(y=>b.jsx(f0,{schema:l,schemaT:n,typeName:y,displayedNodeTypeNames:s},y))})]}))}function IR(l,n){return l.nodeTypes?.find(i=>i.kind==="document"&&i.typeName===n)}function WR({step:l}){const{t:n}=At(),[i,s]=w.useState("tree"),{siteSchema:o,l10n:c}=l,f=FR(c),p=h=>{s(h)};return b.jsxs(b.Fragment,{children:[b.jsxs(bC,{value:i,onChange:p,className:"SgSection-tabs",children:[b.jsx(ff,{value:"tree",label:n("treeView")}),b.jsx(ff,{value:"schema",label:n("siteSchema")}),b.jsx(ff,{value:"locales",label:n("labels")})]}),i==="tree"&&b.jsx(PR,{siteSchema:o,schemaTranslate:f}),i==="locales"&&b.jsxs(De,{value:c,style:Bv,displayObjectSize:!1,displayDataTypes:!1,shortenTextAfterLength:0,children:[b.jsx(De.KeyName,{render:(h,{parentValue:m})=>Array.isArray(m)&&Number.isFinite(h.children)?b.jsx("span",{}):b.jsx("span",{...h})}),b.jsx(De.Colon,{render:(h,{parentValue:m})=>Array.isArray(m)&&h.children===":"?b.jsx("span",{}):b.jsx("span",{...h})})]}),i==="schema"&&b.jsxs(De,{value:o,style:Bv,displayObjectSize:!1,displayDataTypes:!1,shortenTextAfterLength:0,shouldExpandNodeInitially:(h,m)=>m.keyName!=="plugins",children:[b.jsx(De.KeyName,{render:(h,{parentValue:m})=>Array.isArray(m)&&Number.isFinite(h.children)?b.jsx("span",{}):b.jsx("span",{...h})}),b.jsx(De.Colon,{render:(h,{parentValue:m})=>Array.isArray(m)&&h.children===":"?b.jsx("span",{}):b.jsx("span",{...h})})]})]})}function ej(l){return b.jsx(rl,{children:b.jsx(tj,{...l})})}function tj({step:l}){const{t:n}=At(),{appendNewStep:i}=ul(),[s,o]=w.useState(!1),[c,f]=w.useState(!1),p=si(),{showAlert:h}=sl(),m=async v=>{const x=ai();if(!x){h(n("sessionExpired"),{severity:"error"});return}const E=await Da({command:"updateSiteSchema",sessionToken:x,prompt:v,fromStepNumber:l.stepNumber});E.success?(o(!1),i(E.result),p(`/step/${E.result.stepNumber}`)):h(E.userMessage??n("promptSubmissionFailed"),{severity:"error"})},y=async({withSampleData:v})=>{const x=ai();if(!x){h(n("sessionExpired"),{severity:"error"});return}const E=await Da({command:"generateSite",sessionToken:x,fromStepNumber:l.stepNumber,withSampleData:v});E.success&&E.result?(f(!1),i(E.result),p(`/step/${E.result.stepNumber}`)):h(n("generationFailed"),{severity:"error"})};return b.jsxs("div",{className:"SgSection",children:[b.jsx("h1",{className:"SgSection-title",children:n("stepTitle",{stepNumber:l.stepNumber,kind:n(l.kind)})}),b.jsx(WR,{step:l}),l.explanation&&b.jsx(wd,{content:l.explanation,title:n("explanation")}),!s&&b.jsxs(b.Fragment,{children:[b.jsx(_a,{}),b.jsxs("div",{className:"SgActions",children:[b.jsx(ea,{severity:"warning",onClick:()=>o(!0),children:n("modifySchema")}),b.jsx(ea,{onClick:()=>f(!0),children:n("generateTheWebsite")})]})]}),s&&b.jsxs("div",{className:"ModifySection",children:[b.jsx("h3",{className:"ModifySection-title",children:n("modifySchema")}),b.jsx(ky,{placeholder:n("updatePromptPlaceholder"),submitLabel:n("applyChanges"),onSubmit:m,onCancel:()=>o(!1)})]}),b.jsx(KN,{isOpen:c,title:n("generateTheWebsite"),message:n("aboutToGenerateWebsite"),confirmLabel:n("confirm"),onConfirm:y,onCancel:()=>f(!1)})]})}function nj({step:l}){const{t:n}=At();return b.jsxs("div",{className:"SgSection",children:[b.jsx("h1",{className:"SgSection-title",children:n("stepTitle",{stepNumber:l.stepNumber,kind:n(l.kind)})}),b.jsx(Do,{severity:"error",title:n("stepFailed"),children:l.explanation?b.jsx("div",{dangerouslySetInnerHTML:{__html:l.explanation}}):n("unknownError")})]})}function aj(l){return b.jsx(rl,{children:b.jsx(lj,{...l})})}function lj({step:l}){const{t:n}=At(),{showError:i}=sl(),s=`${l.adminUiUrl}?unsafe-login=${btoa(`${l.loginEmail}:${l.loginPassword}`)}&local=1`,o=async()=>{const c=`
85
85
  ${n("siteGenerated")}
86
86
  ${n("loginEmail")}: ${l.loginEmail}
87
87
  ${n("loginPassword")}: ${l.loginPassword}
88
88
  ${n("siteUrl")}: ${l.siteUrl}
89
89
  ${n("adminUrl")}: ${l.adminUiUrl}
90
- ${n("quickLoginUrl")}: ${i}
91
- `.trim();await navigator.clipboard.writeText(o)};return b.jsxs("div",{className:"SgSection GeneratedSite",children:[b.jsx("h1",{className:"SgSection-title",children:n("generatedSite")}),l.status==="pending"&&b.jsxs("div",{className:"GeneratedSite-pending",children:[b.jsx(ed,{}),b.jsx("p",{children:n("generatingContent")})]}),l.explanation&&b.jsx(vd,{content:l.explanation,title:n("explanation")}),b.jsxs("div",{className:"GeneratedSite-credentials",children:[b.jsxs("div",{className:"GeneratedSite-field",children:[b.jsx("span",{className:"GeneratedSite-label",children:n("loginEmail")}),b.jsx("div",{className:"GeneratedSite-value",children:b.jsx("code",{children:l.loginEmail})})]}),b.jsxs("div",{className:"GeneratedSite-field",children:[b.jsx("span",{className:"GeneratedSite-label",children:n("loginPassword")}),b.jsx("div",{className:"GeneratedSite-value",children:b.jsx("code",{children:l.loginPassword})})]}),b.jsxs("div",{className:"GeneratedSite-field",children:[b.jsx("span",{className:"GeneratedSite-label",children:n("adminUrl")}),b.jsx("div",{className:"GeneratedSite-value",children:b.jsx("code",{children:l.adminUiUrl})})]}),b.jsxs("div",{className:"GeneratedSite-field",children:[b.jsx("span",{className:"GeneratedSite-label",children:n("siteUrl")}),b.jsx("div",{className:"GeneratedSite-value",children:b.jsx("code",{children:l.siteUrl})})]})]}),b.jsxs("div",{className:"SgActions column",children:[b.jsx(ta,{severity:"secondary",onClick:s,insideFeedback:{label:n("copied"),autoDismiss:!0},children:n("copyToClipboard")}),b.jsx(ta,{as:"a",href:i,target:"_blank",rel:"noopener noreferrer",children:n("openAdminUI")})]})]})}function FR({step:l}){const{t:n}=Ot();return b.jsxs("div",{className:"SgSection",children:[b.jsx("h1",{className:"SgSection-title",children:n("stepTitle",{stepNumber:l.stepNumber,kind:n(l.kind)})}),b.jsx(Ao,{severity:"warning",title:n("stepNoEffect"),children:l.explanation?b.jsx("div",{dangerouslySetInnerHTML:{__html:l.explanation}}):n("noChangesApplied")})]})}function kv({step:l}){const{t:n}=Ot();return b.jsxs("div",{className:"SgSection",children:[b.jsx("h1",{className:"SgSection-title",children:n("stepTitle",{stepNumber:l.stepNumber,kind:n(l.kind)})}),b.jsxs("div",{className:"LoadingState",children:[b.jsx(ed,{}),l.currentActivity&&b.jsxs("div",{className:"LoadingState-status",children:[b.jsx("strong",{children:n("currentActivity")}),b.jsx("span",{children:n(`activity.${l.currentActivity}`)})]})]}),l.explanation&&b.jsx(vd,{content:l.explanation,title:n("explanation")})]})}function PR({step:l}){if(l.status==="failed")return b.jsx(ZR,{step:l});if(l.status==="noEffect")return b.jsx(FR,{step:l});if(l.kind==="initialSchema"||l.kind==="updateSchema")return l.status==="pending"?b.jsx(kv,{step:l}):b.jsx(KR,{step:l});if(l.kind==="generateSite")return l.status==="pending"&&!nN(l)?b.jsx(kv,{step:l}):b.jsx(JR,{step:l});throw new Error(`Unknown step kind: ${l.kind}`)}function IR(){const l=li(),{stepNumber:n}=qC(),{workSession:i,setActiveStepNumber:s}=rl(),o=n===void 0?void 0:Number.parseInt(n,10);if(w.useEffect(()=>(s(o),()=>s(void 0)),[o,s]),Gv(async()=>{if(!i?.steps)return;i.steps.some(p=>p.stepNumber===o)||l("/")},[o,i,l]),!i?.steps)return null;const c=i.steps.find(d=>d.stepNumber===o);return c?b.jsx(PR,{step:c}):null}function jd(){const{i18n:l}=Ot(),n=async i=>{const s=i.target.value;await l.changeLanguage(s);const o=ei();o&&await Da({command:"setLanguage",sessionToken:o,language:s})};return b.jsx("div",{className:"LangSwitcher",children:b.jsxs("select",{value:l.language,onChange:n,children:[b.jsx("option",{value:"en",children:"English"}),b.jsx("option",{value:"fr",children:"Français"})]})})}function WR({activeStepNumber:l}){const{t:n}=Ot(),i=li(),{workSession:s}=rl(),o=()=>{i("/")},c=p=>{i(`/step/${p}`)},d=p=>p.stepNumber===l?"StepPill active":p.status==="pending"?"StepPill loading":"StepPill step";return b.jsxs("nav",{className:"StepNav",children:[b.jsxs("button",{type:"button",className:`StepPill new ${l===void 0?"active":""}`,onClick:o,children:["+ ",n("new")]}),s?.steps.map(p=>b.jsxs("button",{type:"button",className:d(p),onClick:()=>c(p.stepNumber),children:[n("stepNumber",{stepNumber:p.stepNumber}),b.jsx("span",{className:"StepPill-tooltip",children:n(p.kind)})]},p.stepNumber))]})}function ej({activeStepNumber:l}){return b.jsx("header",{className:"SgHeader",children:b.jsxs("div",{className:"SgHeader-inner",children:[b.jsx(WR,{activeStepNumber:l}),b.jsx(jd,{})]})})}function tj({sessionToken:l,onSessionExpired:n}){const{workSession:i,isLoading:s,error:o,activeStepNumber:c,setWorkSession:d,setIsLoading:p,setError:h,resetSession:m}=rl();return w.useEffect(()=>()=>{sd()},[]),Gv(async()=>{p(!0),h(void 0);try{const v=await Da({command:"loadWorkSession",sessionToken:l});v.success&&v.result?(d(v.result),Tt.changeLanguage(v.result.language)):(h(v.userMessage||"Failed to load session"),v.success||(m(),FT(),n()))}catch(v){h("Error connecting to server"),console.error(v)}finally{p(!1)}},[l,d,p,h,n]),s?b.jsx("main",{className:"SgMain",children:b.jsx("div",{className:"SgMain-inner",children:b.jsx("div",{className:"LoadingState",children:b.jsx("div",{className:"LoadingState-status",children:b.jsx("span",{children:"Loading session..."})})})})}):o?b.jsx("main",{className:"SgMain",children:b.jsx("div",{className:"SgMain-inner",children:b.jsx("div",{className:"SgSection",children:b.jsx("div",{className:"PaAlert error",children:b.jsx("div",{className:"PaAlert-content",children:o})})})})}):i?b.jsxs(j2,{children:[b.jsx(ej,{activeStepNumber:c}),b.jsx("main",{className:"SgMain",children:b.jsx("div",{className:"SgMain-inner",children:b.jsxs(l2,{children:[b.jsx(ro,{path:"/",element:b.jsx(tN,{})}),b.jsx(ro,{path:"/step/:stepNumber",element:b.jsx(IR,{})}),b.jsx(ro,{path:"*",element:b.jsx(n2,{to:"/",replace:!0})})]})})})]}):b.jsx("main",{className:"SgMain",children:b.jsx("div",{className:"SgMain-inner",children:b.jsx("div",{className:"LoadingState",children:b.jsx("div",{className:"LoadingState-status",children:b.jsx("span",{children:"Session not available."})})})})})}function i0({onTokenReceived:l}){const[n,i]=w.useState(!!window.grecaptcha),s=pf;return w.useEffect(()=>{if(s){if(window.onRecaptchaSubmitted=o=>{l(o)},window.onRecaptchaExpired=()=>{l("")},n===!1&&!window.grecaptcha){i("loading");const o=document.createElement("script");o.src="https://www.google.com/recaptcha/api.js",o.async=!0,o.defer=!0,o.onload=()=>i(!0),document.head.appendChild(o)}else i(!0);return()=>{window.onRecaptchaSubmitted=void 0,window.onRecaptchaExpired=void 0}}},[s,l]),b.jsx(b.Fragment,{children:pf&&n===!0?b.jsx("div",{className:"g-recaptcha","data-sitekey":pf,"data-callback":"onRecaptchaSubmitted","data-expired-callback":"onRecaptchaExpired"}):b.jsx("div",{className:"RecaptchaBox",children:b.jsx(ed,{})})})}function nj({onVerified:l}){const{t:n,i18n:i}=Ot(),[s,o]=w.useState(""),[c,d]=w.useState(),p=async()=>{if(s){d(void 0);try{const h=await Da({command:"newSession",recaptchaToken:s,language:i.language});h.success&&h.result?.token?l(h.result.token):d("Failed to create session")}catch{d("Error connecting to server")}}};return b.jsxs(b.Fragment,{children:[b.jsx("header",{className:"SgHeader",children:b.jsxs("div",{className:"SgHeader-inner",children:[b.jsx("div",{}),b.jsx(jd,{})]})}),b.jsx("main",{className:"SgMain",children:b.jsx("div",{className:"SgMain-inner",children:b.jsxs("div",{className:"WelcomePage",children:[b.jsxs("div",{className:"WelcomePage-header",children:[b.jsx("h1",{className:"WelcomePage-title",children:n("title")}),b.jsx("div",{className:"WelcomePage-description",dangerouslySetInnerHTML:{__html:n("introduction")}})]}),b.jsx("div",{className:"SgSection",style:{borderBottom:"none"},children:b.jsxs("div",{className:"AuthScreen-card",children:[c&&b.jsx("div",{className:"PaAlert error",style:{marginBottom:"var(--space-4)"},children:b.jsx("div",{className:"PaAlert-content",children:c})}),b.jsxs("div",{className:"AuthScreen-actions",children:[b.jsx(i0,{onTokenReceived:o}),b.jsx(ta,{onClick:p,disabled:!s,children:n("start")})]})]})}),b.jsx("footer",{className:"WelcomePage-footer",children:b.jsx("span",{dangerouslySetInnerHTML:{__html:n("footerLinks")}})})]})})})]})}function aj({expiredToken:l,onTokenRefreshed:n}){const{t:i}=Ot(),[s,o]=w.useState(),c=async d=>{if(d){o(void 0);try{const p=await Da({command:"renewSession",sessionToken:l,recaptchaToken:d});p.success&&p.result?.token?n(p.result.token):o(i("sessionRenewalFailed"))}catch{o(i("errorConnectingToServer"))}}};return b.jsxs(b.Fragment,{children:[b.jsx("header",{className:"SgHeader",children:b.jsx("div",{className:"SgHeader-inner",children:b.jsx("div",{style:{marginLeft:"auto"},children:b.jsx(jd,{})})})}),b.jsx("main",{className:"SgMain",children:b.jsx("div",{className:"SgMain-inner",children:b.jsxs("div",{className:"WelcomePage",children:[b.jsx("div",{className:"WelcomePage-header",children:b.jsx("h1",{className:"WelcomePage-title",children:i("extendYourSession")})}),b.jsx("div",{className:"SgSection",style:{borderBottom:"none"},children:b.jsxs("div",{className:"AuthScreen-card",children:[s&&b.jsx("div",{className:"PaAlert error",style:{marginBottom:"var(--space-4)"},children:b.jsx("div",{className:"PaAlert-content",children:s})}),b.jsx("div",{className:"AuthScreen-actions",children:b.jsx(i0,{onTokenReceived:c})}),b.jsx("p",{className:"AuthScreen-info",children:i("newTabRestartMessage")})]})}),b.jsx("footer",{className:"WelcomePage-footer",children:b.jsx("span",{dangerouslySetInnerHTML:{__html:i("footerLinks")}})})]})})})]})}function lj(l){if(!l)return!1;try{const n=l.split(".");if(n.length!==3)return!1;const i=JSON.parse(atob(n[1]));if(!i.exp)return!1;const s=i.exp*1e3;return Date.now()<s?!0:"expired"}catch(n){return console.error("Error checking JWT token validity:",n),!1}}function ij(){const[l,n]=w.useState(),[i,s]=w.useState(),o=rl(p=>p.resetSession);w.useEffect(()=>{const p=ei(),h=lj(p);if(!p||!h){o();return}h==="expired"?s(p):n(p)},[o]);const c=p=>{Tv(p),n(p)},d=p=>{Tv(p),n(p),s(void 0)};return b.jsx("div",{className:"SgApp",children:l?b.jsx(tj,{sessionToken:l,onSessionExpired:()=>n(void 0)}):i?b.jsx(aj,{expiredToken:i,onTokenRefreshed:d}):b.jsx(nj,{onVerified:c})})}async function rj(){const l=document.getElementById("site-generator-app");l&&iC.createRoot(l).render(b.jsx(or.StrictMode,{children:b.jsx(ij,{})}))}rj().catch(l=>console.error(l));
90
+ ${n("quickLoginUrl")}: ${s}
91
+ `.trim();await navigator.clipboard.writeText(c)};return b.jsxs("div",{className:"SgSection GeneratedSite",children:[b.jsx("h1",{className:"SgSection-title",children:n("generatedSite")}),b.jsx(_a,{}),l.status==="pending"&&b.jsxs("div",{className:"GeneratedSite-pending",children:[b.jsx(Pf,{}),b.jsx("p",{children:n("generatingContent")})]}),l.explanation&&b.jsx(wd,{content:l.explanation,title:n("explanation")}),b.jsxs("div",{className:"GeneratedSite-credentials",children:[b.jsxs("div",{className:"GeneratedSite-field",children:[b.jsx("span",{className:"GeneratedSite-label",children:n("loginEmail")}),b.jsx("div",{className:"GeneratedSite-value",children:b.jsx("code",{children:l.loginEmail})})]}),b.jsxs("div",{className:"GeneratedSite-field",children:[b.jsx("span",{className:"GeneratedSite-label",children:n("loginPassword")}),b.jsx("div",{className:"GeneratedSite-value",children:b.jsx("code",{children:l.loginPassword})})]}),b.jsxs("div",{className:"GeneratedSite-field",children:[b.jsx("span",{className:"GeneratedSite-label",children:n("adminUrl")}),b.jsx("div",{className:"GeneratedSite-value",children:b.jsx("code",{children:l.adminUiUrl})})]}),b.jsxs("div",{className:"GeneratedSite-field",children:[b.jsx("span",{className:"GeneratedSite-label",children:n("siteUrl")}),b.jsx("div",{className:"GeneratedSite-value",children:b.jsx("code",{children:l.siteUrl})})]})]}),b.jsxs("div",{className:"SgActions column",children:[b.jsx(ea,{as:"async",severity:"secondary",onClick:o,insideFeedback:{label:n("copied"),autoDismiss:!0},onError:i,children:n("copyToClipboard")}),b.jsx(ea,{as:"a",href:s,target:"_blank",rel:"noopener noreferrer",children:n("openAdminUI")})]})]})}function ij({step:l}){const{t:n}=At();return b.jsxs("div",{className:"SgSection",children:[b.jsx("h1",{className:"SgSection-title",children:n("stepTitle",{stepNumber:l.stepNumber,kind:n(l.kind)})}),b.jsx(Do,{severity:"warning",title:n("stepNoEffect"),children:l.explanation?b.jsx("div",{dangerouslySetInnerHTML:{__html:l.explanation}}):n("noChangesApplied")})]})}function Hv({step:l}){const{t:n}=At();return b.jsxs("div",{className:"SgSection",children:[b.jsx("h1",{className:"SgSection-title",children:n("stepTitle",{stepNumber:l.stepNumber,kind:n(l.kind)})}),b.jsxs("div",{className:"LoadingState",children:[b.jsx(Pf,{}),l.currentActivity&&b.jsxs("div",{className:"LoadingState-status",children:[b.jsx("strong",{children:n("currentActivity")}),b.jsx("span",{children:n(`activity.${l.currentActivity}`)})]})]}),l.explanation&&b.jsx(wd,{content:l.explanation,title:n("explanation")})]})}function rj({step:l}){if(l.status==="failed")return b.jsx(nj,{step:l});if(l.status==="noEffect")return b.jsx(ij,{step:l});if(l.kind==="initialSchema"||l.kind==="updateSchema")return l.status==="pending"?b.jsx(Hv,{step:l}):b.jsx(ej,{step:l});if(l.kind==="generateSite")return l.status==="pending"&&!oN(l)?b.jsx(Hv,{step:l}):b.jsx(aj,{step:l});throw new Error(`Unknown step kind: ${l.kind}`)}function sj(){const l=si(),{stepNumber:n}=I2(),{workSession:i,setActiveStepNumber:s}=ul(),o=n===void 0?void 0:Number.parseInt(n,10);if(w.useEffect(()=>(s(o),()=>s(void 0)),[o,s]),Wv(async()=>{if(!i?.steps)return;i.steps.some(p=>p.stepNumber===o)||l("/")},[o,i,l]),!i?.steps)return null;const c=i.steps.find(f=>f.stepNumber===o);return c?b.jsx(rj,{step:c}):null}function Md(){const{i18n:l}=At(),n=async i=>{const s=i.target.value;await l.changeLanguage(s);const o=ai();o&&await Da({command:"setLanguage",sessionToken:o,language:s})};return b.jsx("div",{className:"LangSwitcher",children:b.jsxs("select",{value:l.language,onChange:n,children:[b.jsx("option",{value:"en",children:"English"}),b.jsx("option",{value:"fr",children:"Français"})]})})}function oj({activeStepNumber:l}){const{t:n}=At(),i=si(),{workSession:s}=ul(),o=()=>{i("/")},c=p=>{i(`/step/${p}`)},f=p=>p.stepNumber===l?"StepPill active":p.status==="pending"?"StepPill loading":"StepPill step";return b.jsxs("nav",{className:"StepNav",children:[b.jsxs("button",{type:"button",className:`StepPill new ${l===void 0?"active":""}`,onClick:o,children:["+ ",n("new")]}),s?.steps.map(p=>b.jsxs("button",{type:"button",className:f(p),onClick:()=>c(p.stepNumber),children:[n("stepNumber",{stepNumber:p.stepNumber}),b.jsx("span",{className:"StepPill-tooltip",children:n(p.kind)})]},p.stepNumber))]})}function uj({activeStepNumber:l}){return b.jsx("header",{className:"SgHeader",children:b.jsxs("div",{className:"SgHeader-inner",children:[b.jsx(oj,{activeStepNumber:l}),b.jsx(Md,{})]})})}function cj({sessionToken:l,onSessionExpired:n}){const{workSession:i,isLoading:s,error:o,activeStepNumber:c,setWorkSession:f,setIsLoading:p,setError:h,resetSession:m}=ul();return w.useEffect(()=>()=>{hd()},[]),Wv(async()=>{p(!0),h(void 0);try{const y=await Da({command:"loadWorkSession",sessionToken:l});y.success&&y.result?(f(y.result),Tt.changeLanguage(y.result.language)):(h(y.userMessage||"Failed to load session"),y.success||(m(),tN(),n()))}catch(y){h("Error connecting to server"),console.error(y)}finally{p(!1)}},[l,f,p,h,n]),s?b.jsx("main",{className:"SgMain",children:b.jsx("div",{className:"SgMain-inner",children:b.jsx("div",{className:"LoadingState",children:b.jsx("div",{className:"LoadingState-status",children:b.jsx("span",{children:"Loading session..."})})})})}):o?b.jsx("main",{className:"SgMain",children:b.jsx("div",{className:"SgMain-inner",children:b.jsx("div",{className:"SgSection",children:b.jsx("div",{className:"PaAlert error",children:b.jsx("div",{className:"PaAlert-content",children:o})})})})}):i?b.jsxs(BT,{children:[b.jsx(uj,{activeStepNumber:c}),b.jsx("main",{className:"SgMain",children:b.jsx("div",{className:"SgMain-inner",children:b.jsxs(pT,{children:[b.jsx(mo,{path:"/",element:b.jsx(rN,{})}),b.jsx(mo,{path:"/step/:stepNumber",element:b.jsx(sj,{})}),b.jsx(mo,{path:"*",element:b.jsx(dT,{to:"/",replace:!0})})]})})})]}):b.jsx("main",{className:"SgMain",children:b.jsx("div",{className:"SgMain-inner",children:b.jsx("div",{className:"LoadingState",children:b.jsx("div",{className:"LoadingState-status",children:b.jsx("span",{children:"Session not available."})})})})})}function d0({onTokenReceived:l}){const[n,i]=w.useState(!!window.grecaptcha),s=Df;return w.useEffect(()=>{if(s){if(window.onRecaptchaSubmitted=o=>{l(o)},window.onRecaptchaExpired=()=>{l("")},n===!1&&!window.grecaptcha){i("loading");const o=document.createElement("script");o.src="https://www.google.com/recaptcha/api.js",o.async=!0,o.defer=!0,o.onload=()=>i(!0),document.head.appendChild(o)}else i(!0);return()=>{window.onRecaptchaSubmitted=void 0,window.onRecaptchaExpired=void 0}}},[s,l]),b.jsx(b.Fragment,{children:Df&&n===!0?b.jsx("div",{className:"g-recaptcha","data-sitekey":Df,"data-callback":"onRecaptchaSubmitted","data-expired-callback":"onRecaptchaExpired"}):b.jsx("div",{className:"RecaptchaBox",children:b.jsx(Pf,{})})})}function fj(l){return b.jsx(rl,{children:b.jsx(dj,{...l})})}function dj({onVerified:l}){const{t:n,i18n:i}=At(),[s,o]=w.useState(""),{showError:c}=sl(),f=async()=>{if(!s)return;const p=await Da({command:"newSession",recaptchaToken:s,language:i.language});if(p.success&&p.result?.token)l(p.result.token);else throw new Error("Failed to create session")};return b.jsxs(b.Fragment,{children:[b.jsx("header",{className:"SgHeader",children:b.jsxs("div",{className:"SgHeader-inner",children:[b.jsx("div",{}),b.jsx(Md,{})]})}),b.jsx("main",{className:"SgMain",children:b.jsx("div",{className:"SgMain-inner",children:b.jsxs("div",{className:"WelcomePage",children:[b.jsxs("div",{className:"WelcomePage-header",children:[b.jsx("h1",{className:"WelcomePage-title",children:n("title")}),b.jsx("div",{className:"WelcomePage-description",dangerouslySetInnerHTML:{__html:n("introduction")}})]}),b.jsx("div",{className:"SgSection",style:{borderBottom:"none"},children:b.jsxs("div",{className:"AuthScreen-card",children:[b.jsx(_a,{}),b.jsxs("div",{className:"AuthScreen-actions",children:[b.jsx(d0,{onTokenReceived:o}),b.jsx(ea,{as:"async",onClick:f,disabled:!s,onError:c,children:n("start")})]})]})}),b.jsx("footer",{className:"WelcomePage-footer",children:b.jsx("span",{dangerouslySetInnerHTML:{__html:n("footerLinks")}})})]})})})]})}function hj(l){return b.jsx(rl,{children:b.jsx(pj,{...l})})}function pj({expiredToken:l,onTokenRefreshed:n}){const{t:i}=At(),{showAlert:s}=sl(),o=async c=>{if(c)try{const f=await Da({command:"renewSession",sessionToken:l,recaptchaToken:c});f.success&&f.result?.token?n(f.result.token):s(i("sessionRenewalFailed"),{severity:"error"})}catch{s(i("errorConnectingToServer"),{severity:"error"})}};return b.jsxs(b.Fragment,{children:[b.jsx("header",{className:"SgHeader",children:b.jsx("div",{className:"SgHeader-inner",children:b.jsx("div",{style:{marginLeft:"auto"},children:b.jsx(Md,{})})})}),b.jsx("main",{className:"SgMain",children:b.jsx("div",{className:"SgMain-inner",children:b.jsxs("div",{className:"WelcomePage",children:[b.jsx("div",{className:"WelcomePage-header",children:b.jsx("h1",{className:"WelcomePage-title",children:i("extendYourSession")})}),b.jsx("div",{className:"SgSection",style:{borderBottom:"none"},children:b.jsxs("div",{className:"AuthScreen-card",children:[b.jsx(_a,{}),b.jsx("div",{className:"AuthScreen-actions",children:b.jsx(d0,{onTokenReceived:o})}),b.jsx("p",{className:"AuthScreen-info",children:i("newTabRestartMessage")})]})}),b.jsx("footer",{className:"WelcomePage-footer",children:b.jsx("span",{dangerouslySetInnerHTML:{__html:i("footerLinks")}})})]})})})]})}function mj(l){if(!l)return!1;try{const n=l.split(".");if(n.length!==3)return!1;const i=JSON.parse(atob(n[1]));if(!i.exp)return!1;const s=i.exp*1e3;return Date.now()<s?!0:"expired"}catch(n){return console.error("Error checking JWT token validity:",n),!1}}function gj(){const[l,n]=w.useState(),[i,s]=w.useState(),o=ul(p=>p.resetSession);w.useEffect(()=>{const p=ai(),h=mj(p);if(!p||!h){o();return}h==="expired"?s(p):n(p)},[o]);const c=p=>{Dv(p),n(p)},f=p=>{Dv(p),n(p),s(void 0)};return b.jsx("div",{className:"SgApp",children:l?b.jsx(cj,{sessionToken:l,onSessionExpired:()=>n(void 0)}):i?b.jsx(hj,{expiredToken:i,onTokenRefreshed:f}):b.jsx(fj,{onVerified:c})})}async function vj(){const l=document.getElementById("site-generator-app");l&&m2.createRoot(l).render(b.jsx(fr.StrictMode,{children:b.jsx(vC,{config:{logger:console,autoDismissAlertDurationMs:5e3,autoDismissInsideFeedbackDurationMs:2e3},children:b.jsxs(rl,{children:[b.jsx(_a,{className:"NoMargin"}),b.jsx(gj,{})]})})}))}vj().catch(l=>console.error(l));