ode-explorer 1.1.0-dev-dev.202311231149 → 1.1.0-dev-dev.202311231552

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- var jy=Object.defineProperty;var Ty=(e,t,n)=>t in e?jy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var cr=(e,t,n)=>(Ty(e,typeof t!="symbol"?t+"":t,n),n);import{odeServices as X,APP as ho,FOLDER as Ge,ACTION as $e,TransportFrameworkFactory as _y}from"/assets/js/edifice-ts-client/index.js";function sm(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();const Iy="modulepreload",Ay=function(e){return"/"+e},vf={},ve=function(t,n,r){if(!n||n.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=Ay(i),i in vf)return;vf[i]=!0;const o=i.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!r)for(let c=s.length-1;c>=0;c--){const d=s[c];if(d.href===i&&(!o||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":Iy,o||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),o)return new Promise((c,d)=>{u.addEventListener("load",c),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})};var _e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var im={exports:{}},Oa={},om={exports:{}},Q={};/**
1
+ var jy=Object.defineProperty;var Ty=(e,t,n)=>t in e?jy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var cr=(e,t,n)=>(Ty(e,typeof t!="symbol"?t+"":t,n),n);import{odeServices as X,APP as ho,FOLDER as Ge,ACTION as $e,TransportFrameworkFactory as _y}from"/assets/js/edifice-ts-client/index.js";function sm(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();const Iy="modulepreload",Ay=function(e){return"/"+e},vf={},ye=function(t,n,r){if(!n||n.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=Ay(i),i in vf)return;vf[i]=!0;const o=i.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!r)for(let c=s.length-1;c>=0;c--){const d=s[c];if(d.href===i&&(!o||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":Iy,o||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),o)return new Promise((c,d)=>{u.addEventListener("load",c),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})};var _e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var im={exports:{}},Oa={},om={exports:{}},Q={};/**
2
2
  * @license React
3
3
  * react.production.min.js
4
4
  *
@@ -14,8 +14,8 @@ var jy=Object.defineProperty;var Ty=(e,t,n)=>t in e?jy(e,t,{enumerable:!0,config
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Gy=x,Xy=Symbol.for("react.element"),Yy=Symbol.for("react.fragment"),Jy=Object.prototype.hasOwnProperty,e2=Gy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,t2={key:!0,ref:!0,__self:!0,__source:!0};function gm(e,t,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Jy.call(t,r)&&!t2.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:Xy,type:e,key:i,ref:o,props:s,_owner:e2.current}}Oa.Fragment=Yy;Oa.jsx=gm;Oa.jsxs=gm;im.exports=Oa;var f=im.exports;const n2={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Io{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||n2,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,s){return s&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Io(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Io(this.logger,t)}}var $t=new Io;class Na{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]=this.observers[r]||[],this.observers[r].push(n)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t]=this.observers[t].filter(r=>r!==n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];this.observers[t]&&[].concat(this.observers[t]).forEach(o=>{o(...r)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(o=>{o.apply(o,[t,...r])})}}function ss(){let e,t;const n=new Promise((r,s)=>{e=r,t=s});return n.resolve=e,n.reject=t,n}function Sf(e){return e==null?"":""+e}function r2(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}function $c(e,t,n){function r(o){return o&&o.indexOf("###")>-1?o.replace(/###/g,"."):o}function s(){return!e||typeof e=="string"}const i=typeof t!="string"?[].concat(t):t.split(".");for(;i.length>1;){if(s())return{};const o=r(i.shift());!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={}}return s()?{}:{obj:e,k:r(i.shift())}}function bf(e,t,n){const{obj:r,k:s}=$c(e,t,Object);r[s]=n}function s2(e,t,n,r){const{obj:s,k:i}=$c(e,t,Object);s[i]=s[i]||[],r&&(s[i]=s[i].concat(n)),r||s[i].push(n)}function Ao(e,t){const{obj:n,k:r}=$c(e,t);if(n)return n[r]}function i2(e,t,n){const r=Ao(e,n);return r!==void 0?r:Ao(t,n)}function vm(e,t,n){for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):vm(e[r],t[r],n):e[r]=t[r]);return e}function dr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var o2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function a2(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>o2[t]):e}const l2=[" ",",","?","!",";"];function u2(e,t,n){t=t||"",n=n||"";const r=l2.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const s=new RegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let i=!s.test(e);if(!i){const o=e.indexOf(n);o>0&&!s.test(e.substring(0,o))&&(i=!0)}return i}function Lo(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let s=e;for(let i=0;i<r.length;++i){if(!s||typeof s[r[i]]=="string"&&i+1<r.length)return;if(s[r[i]]===void 0){let o=2,a=r.slice(i,i+o).join(n),l=s[a];for(;l===void 0&&r.length>i+o;)o++,a=r.slice(i,i+o).join(n),l=s[a];if(l===void 0)return;if(l===null)return null;if(t.endsWith(a)){if(typeof l=="string")return l;if(a&&typeof l[a]=="string")return l[a]}const u=r.slice(i+o).join(n);return u?Lo(l,u,n):void 0}s=s[r[i]]}return s}function Mo(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class Ef extends Na{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,o=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let a=[t,n];r&&typeof r!="string"&&(a=a.concat(r)),r&&typeof r=="string"&&(a=a.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(a=t.split("."));const l=Ao(this.data,a);return l||!o||typeof r!="string"?l:Lo(this.data&&this.data[t]&&this.data[t][n],r,i)}addResource(t,n,r,s){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=[t,n];r&&(a=a.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(a=t.split("."),s=n,n=a[1]),this.addNamespaces(n),bf(this.data,a,s),i.silent||this.emit("added",t,n,r,s)}addResources(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in r)(typeof r[i]=="string"||Object.prototype.toString.apply(r[i])==="[object Array]")&&this.addResource(t,n,i,r[i],{silent:!0});s.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,s,i){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},a=[t,n];t.indexOf(".")>-1&&(a=t.split("."),s=r,r=n,n=a[1]),this.addNamespaces(n);let l=Ao(this.data,a)||{};s?vm(l,r,i):l={...l,...r},bf(this.data,a,l),o.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(s=>n[s]&&Object.keys(n[s]).length>0)}toJSON(){return this.data}}var ym={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,s){return e.forEach(i=>{this.processors[i]&&(t=this.processors[i].process(t,n,r,s))}),t}};const Cf={};class Do extends Na{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),r2(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=$t.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!u2(t,r,s);if(o&&!a){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:i};const u=t.split(r);(r!==s||r===s&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),t=u.join(s)}return typeof i=="string"&&(i=[i]),{key:t,namespaces:i}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const s=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:o,namespaces:a}=this.extractFromKey(t[t.length-1],n),l=a[a.length-1],u=n.lng||this.language,c=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(c){const b=n.nsSeparator||this.options.nsSeparator;return s?{res:`${l}${b}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${b}${o}`}return s?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:o}const d=this.resolve(t,n);let h=d&&d.res;const m=d&&d.usedKey||o,g=d&&d.exactUsedKey||o,y=Object.prototype.toString.apply(h),S=["[object Number]","[object Function]","[object RegExp]"],p=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&h&&(typeof h!="string"&&typeof h!="boolean"&&typeof h!="number")&&S.indexOf(y)<0&&!(typeof p=="string"&&y==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const b=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,h,{...n,ns:a}):`key '${o} (${this.language})' returned an object instead of string.`;return s?(d.res=b,d.usedParams=this.getUsedParamsDetails(n),d):b}if(i){const b=y==="[object Array]",C=b?[]:{},R=b?g:m;for(const k in h)if(Object.prototype.hasOwnProperty.call(h,k)){const P=`${R}${i}${k}`;C[k]=this.translate(P,{...n,joinArrays:!1,ns:a}),C[k]===P&&(C[k]=h[k])}h=C}}else if(v&&typeof p=="string"&&y==="[object Array]")h=h.join(p),h&&(h=this.extendTranslation(h,t,n,r));else{let b=!1,C=!1;const R=n.count!==void 0&&typeof n.count!="string",k=Do.hasDefaultValue(n),P=R?this.pluralResolver.getSuffix(u,n.count,n):"",_=n.ordinal&&R?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",F=n[`defaultValue${P}`]||n[`defaultValue${_}`]||n.defaultValue;!this.isValidLookup(h)&&k&&(b=!0,h=F),this.isValidLookup(h)||(C=!0,h=o);const I=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:h,U=k&&F!==h&&this.options.updateMissing;if(C||b||U){if(this.logger.log(U?"updateKey":"missingKey",u,l,o,U?F:h),i){const L=this.resolve(o,{...n,keySeparator:!1});L&&L.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 $=[];const E=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&E&&E[0])for(let L=0;L<E.length;L++)$.push(E[L]);else this.options.saveMissingTo==="all"?$=this.languageUtils.toResolveHierarchy(n.lng||this.language):$.push(n.lng||this.language);const O=(L,N,D)=>{const M=k&&D!==h?D:I;this.options.missingKeyHandler?this.options.missingKeyHandler(L,l,N,M,U,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(L,l,N,M,U,n),this.emit("missingKey",L,l,N,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&R?$.forEach(L=>{this.pluralResolver.getSuffixes(L,n).forEach(N=>{O([L],o+N,n[`defaultValue${N}`]||F)})}):O($,o,F))}h=this.extendTranslation(h,t,n,d,r),C&&h===o&&this.options.appendNamespaceToMissingKey&&(h=`${l}:${o}`),(C||b)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,b?h:void 0):h=this.options.parseMissingKeyHandler(h))}return s?(d.res=h,d.usedParams=this.getUsedParamsDetails(n),d):h}extendTranslation(t,n,r,s,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const h=t.match(this.interpolator.nestingRegexp);c=h&&h.length}let d=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,r.lng||this.language,r),u){const h=t.match(this.interpolator.nestingRegexp),m=h&&h.length;c<m&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&s&&s.res&&(r.lng=s.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var h=arguments.length,m=new Array(h),g=0;g<h;g++)m[g]=arguments[g];return i&&i[0]===m[0]&&!r.context?(o.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${n[0]}`),null):o.translate(...m,n)},r)),r.interpolation&&this.interpolator.reset()}const a=r.postProcess||this.options.postProcess,l=typeof a=="string"?[a]:a;return t!=null&&l&&l.length&&r.applyPostProcessor!==!1&&(t=ym.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,s,i,o,a;return typeof t=="string"&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(l,n),c=u.key;s=c;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const h=n.count!==void 0&&typeof n.count!="string",m=h&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),g=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",y=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(S=>{this.isValidLookup(r)||(a=S,!Cf[`${y[0]}-${S}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(Cf[`${y[0]}-${S}`]=!0,this.logger.warn(`key "${s}" for languages "${y.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),y.forEach(p=>{if(this.isValidLookup(r))return;o=p;const v=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(v,c,p,S,n);else{let b;h&&(b=this.pluralResolver.getSuffix(p,n.count,n));const C=`${this.options.pluralSeparator}zero`,R=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(v.push(c+b),n.ordinal&&b.indexOf(R)===0&&v.push(c+b.replace(R,this.options.pluralSeparator)),m&&v.push(c+C)),g){const k=`${c}${this.options.contextSeparator}${n.context}`;v.push(k),h&&(v.push(k+b),n.ordinal&&b.indexOf(R)===0&&v.push(k+b.replace(R,this.options.pluralSeparator)),m&&v.push(k+C))}}let w;for(;w=v.pop();)this.isValidLookup(r)||(i=w,r=this.getResource(p,S,w,n))}))})}),{res:r,usedKey:s,exactUsedKey:i,usedLng:o,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,s):this.resourceStore.getResource(t,n,r,s)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let s=r?t.replace:t;if(r&&typeof t.count<"u"&&(s.count=t.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!r){s={...s};for(const i of n)delete s[i]}return s}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}function Sl(e){return e.charAt(0).toUpperCase()+e.slice(1)}class Rf{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=$t.create("languageUtils")}getScriptPartFromCode(t){if(t=Mo(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Mo(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(s=>s.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Sl(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Sl(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Sl(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const s=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(s))&&(n=s)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(i=>{if(i===s)return i;if(!(i.indexOf("-")<0&&s.indexOf("-")<0)&&i.indexOf(s)===0)return i})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),s=[],i=o=>{o&&(this.isSupportedCode(o)?s.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):typeof t=="string"&&i(this.formatLanguageCode(t)),r.forEach(o=>{s.indexOf(o)<0&&i(this.formatLanguageCode(o))}),s}}let c2=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],d2={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const f2=["v1","v2","v3"],h2=["v4"],kf={zero:0,one:1,two:2,few:3,many:4,other:5};function p2(){const e={};return c2.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:d2[t.fc]}})}),e}class m2{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=$t.create("pluralResolver"),(!this.options.compatibilityJSON||h2.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=p2()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Mo(t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(s=>`${n}${s}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((s,i)=>kf[s]-kf[i]).map(s=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s}`):r.numbers.map(s=>this.getSuffix(t,s,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(t,r);return s?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${s.select(n)}`:this.getSuffixRetroCompatible(s,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let s=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));const i=()=>this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString();return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?`_plural_${s.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!f2.includes(this.options.compatibilityJSON)}}function Pf(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=i2(e,t,n);return!i&&s&&typeof n=="string"&&(i=Lo(e,n,r),i===void 0&&(i=Lo(t,n,r))),i}class g2{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=$t.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const n=t.interpolation;this.escape=n.escape!==void 0?n.escape:a2,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?dr(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?dr(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?dr(n.nestingPrefix):n.nestingPrefixEscaped||dr("$t("),this.nestingSuffix=n.nestingSuffix?dr(n.nestingSuffix):n.nestingSuffixEscaped||dr(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(t,"g");const n=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(n,"g");const r=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(r,"g")}interpolate(t,n,r,s){let i,o,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(g){return g.replace(/\$/g,"$$$$")}const c=g=>{if(g.indexOf(this.formatSeparator)<0){const v=Pf(n,l,g,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(v,void 0,r,{...s,...n,interpolationkey:g}):v}const y=g.split(this.formatSeparator),S=y.shift().trim(),p=y.join(this.formatSeparator).trim();return this.format(Pf(n,l,S,this.options.keySeparator,this.options.ignoreJSONStructure),p,r,{...s,...n,interpolationkey:S})};this.resetRegExp();const d=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,h=s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:g=>u(g)},{regex:this.regexp,safeValue:g=>this.escapeValue?u(this.escape(g)):u(g)}].forEach(g=>{for(a=0;i=g.regex.exec(t);){const y=i[1].trim();if(o=c(y),o===void 0)if(typeof d=="function"){const p=d(t,i,s);o=typeof p=="string"?p:""}else if(s&&Object.prototype.hasOwnProperty.call(s,y))o="";else if(h){o=i[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),o="";else typeof o!="string"&&!this.useRawValueToEscape&&(o=Sf(o));const S=g.safeValue(o);if(t=t.replace(i[0],S),h?(g.regex.lastIndex+=o.length,g.regex.lastIndex-=i[0].length):g.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,i,o;function a(l,u){const c=this.nestingOptionsSeparator;if(l.indexOf(c)<0)return l;const d=l.split(new RegExp(`${c}[ ]*{`));let h=`{${d[1]}`;l=d[0],h=this.interpolate(h,o);const m=h.match(/'/g),g=h.match(/"/g);(m&&m.length%2===0&&!g||g.length%2!==0)&&(h=h.replace(/'/g,'"'));try{o=JSON.parse(h),u&&(o={...u,...o})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,y),`${l}${c}${h}`}return delete o.defaultValue,l}for(;s=this.nestingRegexp.exec(t);){let l=[];o={...r},o=o.replace&&typeof o.replace!="string"?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const c=s[1].split(this.formatSeparator).map(d=>d.trim());s[1]=c.shift(),l=c,u=!0}if(i=n(a.call(this,s[1].trim(),o),o),i&&s[0]===t&&typeof i!="string")return i;typeof i!="string"&&(i=Sf(i)),i||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${t}`),i=""),u&&(i=l.reduce((c,d)=>this.format(c,d,r.lng,{...r,interpolationkey:s[1].trim()}),i.trim())),t=t.replace(s[0],i),this.regexp.lastIndex=0}return t}}function v2(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const s=r[1].substring(0,r[1].length-1);t==="currency"&&s.indexOf(":")<0?n.currency||(n.currency=s.trim()):t==="relativetime"&&s.indexOf(":")<0?n.range||(n.range=s.trim()):s.split(";").forEach(o=>{if(!o)return;const[a,...l]=o.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,"");n[a.trim()]||(n[a.trim()]=u),u==="false"&&(n[a.trim()]=!1),u==="true"&&(n[a.trim()]=!0),isNaN(u)||(n[a.trim()]=parseInt(u,10))})}return{formatName:t,formatOptions:n}}function fr(e){const t={};return function(r,s,i){const o=s+JSON.stringify(i);let a=t[o];return a||(a=e(Mo(s),i),t[o]=a),a(r)}}class y2{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=$t.create("formatter"),this.options=t,this.formats={number:fr((n,r)=>{const s=new Intl.NumberFormat(n,{...r});return i=>s.format(i)}),currency:fr((n,r)=>{const s=new Intl.NumberFormat(n,{...r,style:"currency"});return i=>s.format(i)}),datetime:fr((n,r)=>{const s=new Intl.DateTimeFormat(n,{...r});return i=>s.format(i)}),relativetime:fr((n,r)=>{const s=new Intl.RelativeTimeFormat(n,{...r});return i=>s.format(i,r.range||"day")}),list:fr((n,r)=>{const s=new Intl.ListFormat(n,{...r});return i=>s.format(i)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=fr(n)}format(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((a,l)=>{const{formatName:u,formatOptions:c}=v2(l);if(this.formats[u]){let d=a;try{const h=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},m=h.locale||h.lng||s.locale||s.lng||r;d=this.formats[u](a,m,{...c,...s,...h})}catch(h){this.logger.warn(h)}return d}else this.logger.warn(`there was no format function for ${u}`);return a},t)}}function w2(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class x2 extends Na{constructor(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=s,this.logger=$t.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,s.backend,s)}queueLoad(t,n,r,s){const i={},o={},a={},l={};return t.forEach(u=>{let c=!0;n.forEach(d=>{const h=`${u}|${d}`;!r.reload&&this.store.hasResourceBundle(u,d)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?o[h]===void 0&&(o[h]=!0):(this.state[h]=1,c=!1,o[h]===void 0&&(o[h]=!0),i[h]===void 0&&(i[h]=!0),l[d]===void 0&&(l[d]=!0)))}),c||(a[u]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const s=t.split("|"),i=s[0],o=s[1];n&&this.emit("failedLoading",i,o,n),r&&this.store.addResourceBundle(i,o,r),this.state[t]=n?-1:2;const a={};this.queue.forEach(l=>{s2(l.loaded,[i],o),w2(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{a[u]||(a[u]={});const c=l.loaded[u];c.length&&c.forEach(d=>{a[u][d]===void 0&&(a[u][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:s,wait:i,callback:o});return}this.readingCalls++;const a=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&c&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,s+1,i*2,o)},i);return}o(u,c)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const u=l(t,n);u&&typeof u.then=="function"?u.then(c=>a(null,c)).catch(a):a(null,u)}catch(u){a(u)}return}return l(t,n,a)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const i=this.queueLoad(t,n,r,s);if(!i.toLoad.length)return i.pending.length||s(),null;i.toLoad.forEach(o=>{this.loadOne(o)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),s=r[0],i=r[1];this.read(s,i,"read",void 0,void 0,(o,a)=>{o&&this.logger.warn(`${n}loading namespace ${i} for language ${s} failed`,o),!o&&a&&this.logger.log(`${n}loaded namespace ${i} for language ${s}`,a),this.loaded(t,o,a)})}saveMissing(t,n,r,s,i){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" 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(!(r==null||r==="")){if(this.backend&&this.backend.create){const l={...o,isUpdate:i},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(t,n,r,s,l):c=u(t,n,r,s),c&&typeof c.then=="function"?c.then(d=>a(null,d)).catch(a):a(null,c)}catch(c){a(c)}else u(t,n,r,s,a,l)}!t||!t[0]||this.store.addResource(t[0],n,r,s)}}}function Of(){return{debug:!1,initImmediate:!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:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(s=>{n[s]=r[s]})}return n},interpolation:{escapeValue:!0,format:(e,t,n,r)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Nf(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function zi(){}function S2(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class Bs extends Na{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Nf(t),this.services={},this.logger=$t,this.modules={external:[]},S2(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const s=Of();this.options={...s,...this.options,...Nf(n)},this.options.compatibilityAPI!=="v1"&&(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);function i(c){return c?typeof c=="function"?new c:c:null}if(!this.options.isClone){this.modules.logger?$t.init(i(this.modules.logger),this.options):$t.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=y2);const d=new Rf(this.options);this.store=new Ef(this.options.resources,this.options);const h=this.services;h.logger=$t,h.resourceStore=this.store,h.languageUtils=d,h.pluralResolver=new m2(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(h.formatter=i(c),h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new g2(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new x2(i(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(m){for(var g=arguments.length,y=new Array(g>1?g-1:0),S=1;S<g;S++)y[S-1]=arguments[S];t.emit(m,...y)}),this.modules.languageDetector&&(h.languageDetector=i(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=i(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new Do(this.services,this.options),this.translator.on("*",function(m){for(var g=arguments.length,y=new Array(g>1?g-1:0),S=1;S<g;S++)y[S-1]=arguments[S];t.emit(m,...y)}),this.modules.external.forEach(m=>{m.init&&m.init(this)})}if(this.format=this.options.interpolation.format,r||(r=zi),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[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(c=>{this[c]=function(){return t.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return t.store[c](...arguments),t}});const l=ss(),u=()=>{const c=(d,h)=>{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),l.resolve(h),r(d,h)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zi;const s=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(s&&s.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const i=[],o=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(u=>{u!=="cimode"&&i.indexOf(u)<0&&i.push(u)})};s?o(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>o(l)),this.options.preload&&this.options.preload.forEach(a=>o(a)),this.services.backendConnector.load(i,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(a)})}else r(null)}reloadResources(t,n,r){const s=ss();return t||(t=this.languages),n||(n=this.options.ns),r||(r=zi),this.services.backendConnector.reload(t,n,i=>{s.resolve(),r(i)}),s}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&ym.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const s=ss();this.emit("languageChanging",t);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},o=(l,u)=>{u?(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,s.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},a=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const u=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,c=>{o(c,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),s}getFixedT(t,n,r){var s=this;const i=function(o,a){let l;if(typeof a!="object"){for(var u=arguments.length,c=new Array(u>2?u-2:0),d=2;d<u;d++)c[d-2]=arguments[d];l=s.options.overloadTranslationOptionHandler([o,a].concat(c))}else l={...a};l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix=l.keyPrefix||r||i.keyPrefix;const h=s.options.keySeparator||".";let m;return l.keyPrefix&&Array.isArray(o)?m=o.map(g=>`${l.keyPrefix}${h}${g}`):m=l.keyPrefix?`${l.keyPrefix}${h}${o}`:o,s.t(m,l)};return typeof t=="string"?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};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 r=n.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(a,l)=>{const u=this.services.backendConnector.state[`${a}|${l}`];return u===-1||u===2};if(n.precheck){const a=n.precheck(this,o);if(a!==void 0)return a}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,t)&&(!s||o(i,t)))}loadNamespaces(t,n){const r=ss();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=ss();typeof t=="string"&&(t=[t]);const s=this.options.preload||[],i=t.filter(o=>s.indexOf(o)<0);return i.length?(this.options.preload=s.concat(i),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["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"],r=this.services&&this.services.languageUtils||new Rf(Of());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Bs(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zi;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const s={...this.options,...t,isClone:!0},i=new Bs(s);return(t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new Ef(this.store.data,s),i.services.resourceStore=i.store),i.translator=new Do(i.services,s),i.translator.on("*",function(a){for(var l=arguments.length,u=new Array(l>1?l-1:0),c=1;c<l;c++)u[c-1]=arguments[c];i.emit(a,...u)}),i.init(s,n),i.translator.options=s,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ne=Bs.createInstance();Ne.createInstance=Bs.createInstance;Ne.createInstance;Ne.dir;Ne.init;Ne.loadResources;Ne.reloadResources;Ne.use;Ne.changeLanguage;Ne.getFixedT;const qt=Ne.t;Ne.exists;Ne.setDefaultNamespace;Ne.hasLoadedNamespace;Ne.loadNamespaces;Ne.loadLanguages;function uu(e){"@babel/helpers - typeof";return uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uu(e)}var wm=[],b2=wm.forEach,E2=wm.slice;function cu(e){return b2.call(E2.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function xm(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":uu(XMLHttpRequest))==="object"}function C2(e){return!!e&&typeof e.then=="function"}function R2(e){return C2(e)?e:Promise.resolve(e)}function k2(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var du={exports:{}},Ui={exports:{}},jf;function P2(){return jf||(jf=1,function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof _e<"u"&&_e,r=function(){function i(){this.fetch=!1,this.DOMException=n.DOMException}return i.prototype=n,new i}();(function(i){(function(o){var a=typeof i<"u"&&i||typeof self<"u"&&self||typeof a<"u"&&a,l={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function u(E){return E&&DataView.prototype.isPrototypeOf(E)}if(l.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(E){return E&&c.indexOf(Object.prototype.toString.call(E))>-1};function h(E){if(typeof E!="string"&&(E=String(E)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(E)||E==="")throw new TypeError('Invalid character in header field name: "'+E+'"');return E.toLowerCase()}function m(E){return typeof E!="string"&&(E=String(E)),E}function g(E){var O={next:function(){var L=E.shift();return{done:L===void 0,value:L}}};return l.iterable&&(O[Symbol.iterator]=function(){return O}),O}function y(E){this.map={},E instanceof y?E.forEach(function(O,L){this.append(L,O)},this):Array.isArray(E)?E.forEach(function(O){this.append(O[0],O[1])},this):E&&Object.getOwnPropertyNames(E).forEach(function(O){this.append(O,E[O])},this)}y.prototype.append=function(E,O){E=h(E),O=m(O);var L=this.map[E];this.map[E]=L?L+", "+O:O},y.prototype.delete=function(E){delete this.map[h(E)]},y.prototype.get=function(E){return E=h(E),this.has(E)?this.map[E]:null},y.prototype.has=function(E){return this.map.hasOwnProperty(h(E))},y.prototype.set=function(E,O){this.map[h(E)]=m(O)},y.prototype.forEach=function(E,O){for(var L in this.map)this.map.hasOwnProperty(L)&&E.call(O,this.map[L],L,this)},y.prototype.keys=function(){var E=[];return this.forEach(function(O,L){E.push(L)}),g(E)},y.prototype.values=function(){var E=[];return this.forEach(function(O){E.push(O)}),g(E)},y.prototype.entries=function(){var E=[];return this.forEach(function(O,L){E.push([L,O])}),g(E)},l.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function S(E){if(E.bodyUsed)return Promise.reject(new TypeError("Already read"));E.bodyUsed=!0}function p(E){return new Promise(function(O,L){E.onload=function(){O(E.result)},E.onerror=function(){L(E.error)}})}function v(E){var O=new FileReader,L=p(O);return O.readAsArrayBuffer(E),L}function w(E){var O=new FileReader,L=p(O);return O.readAsText(E),L}function b(E){for(var O=new Uint8Array(E),L=new Array(O.length),N=0;N<O.length;N++)L[N]=String.fromCharCode(O[N]);return L.join("")}function C(E){if(E.slice)return E.slice(0);var O=new Uint8Array(E.byteLength);return O.set(new Uint8Array(E)),O.buffer}function R(){return this.bodyUsed=!1,this._initBody=function(E){this.bodyUsed=this.bodyUsed,this._bodyInit=E,E?typeof E=="string"?this._bodyText=E:l.blob&&Blob.prototype.isPrototypeOf(E)?this._bodyBlob=E:l.formData&&FormData.prototype.isPrototypeOf(E)?this._bodyFormData=E:l.searchParams&&URLSearchParams.prototype.isPrototypeOf(E)?this._bodyText=E.toString():l.arrayBuffer&&l.blob&&u(E)?(this._bodyArrayBuffer=C(E.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(E)||d(E))?this._bodyArrayBuffer=C(E):this._bodyText=E=Object.prototype.toString.call(E):this._bodyText="",this.headers.get("content-type")||(typeof E=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):l.searchParams&&URLSearchParams.prototype.isPrototypeOf(E)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},l.blob&&(this.blob=function(){var E=S(this);if(E)return E;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var E=S(this);return E||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(v)}),this.text=function(){var E=S(this);if(E)return E;if(this._bodyBlob)return w(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(b(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},l.formData&&(this.formData=function(){return this.text().then(F)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function P(E){var O=E.toUpperCase();return k.indexOf(O)>-1?O:E}function _(E,O){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');O=O||{};var L=O.body;if(E instanceof _){if(E.bodyUsed)throw new TypeError("Already read");this.url=E.url,this.credentials=E.credentials,O.headers||(this.headers=new y(E.headers)),this.method=E.method,this.mode=E.mode,this.signal=E.signal,!L&&E._bodyInit!=null&&(L=E._bodyInit,E.bodyUsed=!0)}else this.url=String(E);if(this.credentials=O.credentials||this.credentials||"same-origin",(O.headers||!this.headers)&&(this.headers=new y(O.headers)),this.method=P(O.method||this.method||"GET"),this.mode=O.mode||this.mode||null,this.signal=O.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&L)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(L),(this.method==="GET"||this.method==="HEAD")&&(O.cache==="no-store"||O.cache==="no-cache")){var N=/([?&])_=[^&]*/;if(N.test(this.url))this.url=this.url.replace(N,"$1_="+new Date().getTime());else{var D=/\?/;this.url+=(D.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})};function F(E){var O=new FormData;return E.trim().split("&").forEach(function(L){if(L){var N=L.split("="),D=N.shift().replace(/\+/g," "),M=N.join("=").replace(/\+/g," ");O.append(decodeURIComponent(D),decodeURIComponent(M))}}),O}function A(E){var O=new y,L=E.replace(/\r?\n[\t ]+/g," ");return L.split("\r").map(function(N){return N.indexOf(`
18
- `)===0?N.substr(1,N.length):N}).forEach(function(N){var D=N.split(":"),M=D.shift().trim();if(M){var K=D.join(":").trim();O.append(M,K)}}),O}R.call(_.prototype);function I(E,O){if(!(this instanceof I))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');O||(O={}),this.type="default",this.status=O.status===void 0?200:O.status,this.ok=this.status>=200&&this.status<300,this.statusText=O.statusText===void 0?"":""+O.statusText,this.headers=new y(O.headers),this.url=O.url||"",this._initBody(E)}R.call(I.prototype),I.prototype.clone=function(){return new I(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},I.error=function(){var E=new I(null,{status:0,statusText:""});return E.type="error",E};var U=[301,302,303,307,308];I.redirect=function(E,O){if(U.indexOf(O)===-1)throw new RangeError("Invalid status code");return new I(null,{status:O,headers:{location:E}})},o.DOMException=a.DOMException;try{new o.DOMException}catch{o.DOMException=function(O,L){this.message=O,this.name=L;var N=Error(O);this.stack=N.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function $(E,O){return new Promise(function(L,N){var D=new _(E,O);if(D.signal&&D.signal.aborted)return N(new o.DOMException("Aborted","AbortError"));var M=new XMLHttpRequest;function K(){M.abort()}M.onload=function(){var le={status:M.status,statusText:M.statusText,headers:A(M.getAllResponseHeaders()||"")};le.url="responseURL"in M?M.responseURL:le.headers.get("X-Request-URL");var we="response"in M?M.response:M.responseText;setTimeout(function(){L(new I(we,le))},0)},M.onerror=function(){setTimeout(function(){N(new TypeError("Network request failed"))},0)},M.ontimeout=function(){setTimeout(function(){N(new TypeError("Network request failed"))},0)},M.onabort=function(){setTimeout(function(){N(new o.DOMException("Aborted","AbortError"))},0)};function Z(le){try{return le===""&&a.location.href?a.location.href:le}catch{return le}}M.open(D.method,Z(D.url),!0),D.credentials==="include"?M.withCredentials=!0:D.credentials==="omit"&&(M.withCredentials=!1),"responseType"in M&&(l.blob?M.responseType="blob":l.arrayBuffer&&D.headers.get("Content-Type")&&D.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(M.responseType="arraybuffer")),O&&typeof O.headers=="object"&&!(O.headers instanceof y)?Object.getOwnPropertyNames(O.headers).forEach(function(le){M.setRequestHeader(le,m(O.headers[le]))}):D.headers.forEach(function(le,we){M.setRequestHeader(we,le)}),D.signal&&(D.signal.addEventListener("abort",K),M.onreadystatechange=function(){M.readyState===4&&D.signal.removeEventListener("abort",K)}),M.send(typeof D._bodyInit>"u"?null:D._bodyInit)})}return $.polyfill=!0,a.fetch||(a.fetch=$,a.Headers=y,a.Request=_,a.Response=I),o.Headers=y,o.Request=_,o.Response=I,o.fetch=$,o})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var s=n.fetch?n:r;t=s.fetch,t.default=s.fetch,t.fetch=s.fetch,t.Headers=s.Headers,t.Request=s.Request,t.Response=s.Response,e.exports=t}(Ui,Ui.exports)),Ui.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof _e<"u"&&_e.fetch?n=_e.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof k2<"u"&&(typeof window>"u"||typeof window.document>"u")){var r=n||P2();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(du,du.exports);var Sm=du.exports;const bm=Pa(Sm),Tf=sm({__proto__:null,default:bm},[Sm]);function Fo(e){"@babel/helpers - typeof";return Fo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fo(e)}var Yt;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Yt=global.fetch:typeof window<"u"&&window.fetch?Yt=window.fetch:Yt=fetch);var Vs;xm()&&(typeof global<"u"&&global.XMLHttpRequest?Vs=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Vs=window.XMLHttpRequest));var $o;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?$o=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&($o=window.ActiveXObject));!Yt&&Tf&&!Vs&&!$o&&(Yt=bm||Tf);typeof Yt!="function"&&(Yt=void 0);var fu=function(t,n){if(n&&Fo(n)==="object"){var r="";for(var s in n)r+="&"+encodeURIComponent(s)+"="+encodeURIComponent(n[s]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},_f=function(t,n,r){var s=function(o){if(!o.ok)return r(o.statusText||"Error",{status:o.status});o.text().then(function(a){r(null,{status:o.status,data:a})}).catch(r)};typeof fetch=="function"?fetch(t,n).then(s).catch(r):Yt(t,n).then(s).catch(r)},If=!1,O2=function(t,n,r,s){t.queryStringParams&&(n=fu(n,t.queryStringParams));var i=cu({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(i["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(i["Content-Type"]="application/json");var o=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,a=cu({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:i},If?{}:o);try{_f(n,a,s)}catch(l){if(!o||Object.keys(o).length===0||!l.message||l.message.indexOf("not implemented")<0)return s(l);try{Object.keys(o).forEach(function(u){delete a[u]}),_f(n,a,s),If=!0}catch(u){s(u)}}},N2=function(t,n,r,s){r&&Fo(r)==="object"&&(r=fu("",r).slice(1)),t.queryStringParams&&(n=fu(n,t.queryStringParams));try{var i;Vs?i=new Vs:i=new $o("MSXML2.XMLHTTP.3.0"),i.open(r?"POST":"GET",n,1),t.crossDomain||i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.withCredentials=!!t.withCredentials,r&&i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.overrideMimeType&&i.overrideMimeType("application/json");var o=t.customHeaders;if(o=typeof o=="function"?o():o,o)for(var a in o)i.setRequestHeader(a,o[a]);i.onreadystatechange=function(){i.readyState>3&&s(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(r)}catch(l){console&&console.log(l)}},j2=function(t,n,r,s){if(typeof r=="function"&&(s=r,r=void 0),s=s||function(){},Yt&&n.indexOf("file:")!==0)return O2(t,n,r,s);if(xm()||typeof ActiveXObject=="function")return N2(t,n,r,s);s(new Error("No fetch and no xhr implementation found!"))};function Hs(e){"@babel/helpers - typeof";return Hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hs(e)}function T2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Af(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Em(r.key),r)}}function _2(e,t,n){return t&&Af(e.prototype,t),n&&Af(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function I2(e,t,n){return t=Em(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Em(e){var t=A2(e,"string");return Hs(t)==="symbol"?t:String(t)}function A2(e,t){if(Hs(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Hs(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var L2=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,s){return I2({},r,s||"")},parseLoadPayload:function(n,r){},request:j2,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},Cm=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};T2(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return _2(e,[{key:"init",value:function(n){var r=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=cu(s,this.options||{},L2()),this.allOptions=i,this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(n,r,s){this._readAny(n,n,r,r,s)}},{key:"read",value:function(n,r,s){this._readAny([n],n,[r],r,s)}},{key:"_readAny",value:function(n,r,s,i,o){var a=this,l=this.options.loadPath;typeof this.options.loadPath=="function"&&(l=this.options.loadPath(n,s)),l=R2(l),l.then(function(u){if(!u)return o(null,{});var c=a.services.interpolator.interpolate(u,{lng:n.join("+"),ns:s.join("+")});a.loadUrl(c,o,r,i)})}},{key:"loadUrl",value:function(n,r,s,i){var o=this,a=typeof s=="string"?[s]:s,l=typeof i=="string"?[i]:i,u=this.options.parseLoadPayload(a,l);this.options.request(this.options,n,u,function(c,d){if(d&&(d.status>=500&&d.status<600||!d.status))return r("failed loading "+n+"; status code: "+d.status,!0);if(d&&d.status>=400&&d.status<500)return r("failed loading "+n+"; status code: "+d.status,!1);if(!d&&c&&c.message&&c.message.indexOf("Failed to fetch")>-1)return r("failed loading "+n+": "+c.message,!0);if(c)return r(c,!1);var h,m;try{typeof d.data=="string"?h=o.options.parse(d.data,s,i):h=d.data}catch{m="failed parsing "+n+" to json"}if(m)return r(m,!1);r(null,h)})}},{key:"create",value:function(n,r,s,i,o){var a=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var l=this.options.parsePayload(r,s,i),u=0,c=[],d=[];n.forEach(function(h){var m=a.options.addPath;typeof a.options.addPath=="function"&&(m=a.options.addPath(h,r));var g=a.services.interpolator.interpolate(m,{lng:h,ns:r});a.options.request(a.options,g,l,function(y,S){u+=1,c.push(y),d.push(S),u===n.length&&typeof o=="function"&&o(c,d)})})}}},{key:"reload",value:function(){var n=this,r=this.services,s=r.backendConnector,i=r.languageUtils,o=r.logger,a=s.language;if(!(a&&a.toLowerCase()==="cimode")){var l=[],u=function(d){var h=i.toResolveHierarchy(d);h.forEach(function(m){l.indexOf(m)<0&&l.push(m)})};u(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(c){return u(c)}),l.forEach(function(c){n.allOptions.ns.forEach(function(d){s.read(c,d,"read",null,null,function(h,m){h&&o.warn("loading namespace ".concat(d," for language ").concat(c," failed"),h),!h&&m&&o.log("loaded namespace ".concat(d," for language ").concat(c),m),s.loaded("".concat(c,"|").concat(d),h,m)})})})}}}]),e}();Cm.type="backend";function M2(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const Lf={};function hu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&Lf[t[0]]||(typeof t[0]=="string"&&(Lf[t[0]]=new Date),M2(...t))}const Rm=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function Mf(e,t,n){e.loadNamespaces(t,Rm(e,n))}function Df(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(s=>{e.options.ns.indexOf(s)<0&&e.options.ns.push(s)}),e.loadLanguages(t,Rm(e,r))}function D2(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],s=t.options?t.options.fallbackLng:!1,i=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(a,l)=>{const u=t.services.backendConnector.state[`${a}|${l}`];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(r,e)&&(!s||o(i,e)))}function F2(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(hu("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(s,i)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!i(s.isLanguageChangingTo,e))return!1}}):D2(e,t,n)}const $2=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,z2={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},U2=e=>z2[e],B2=e=>e.replace($2,U2);let pu={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:B2};function V2(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};pu={...pu,...e}}function H2(){return pu}let km;function q2(e){km=e}function Q2(){return km}const W2={type:"3rdParty",init(e){V2(e.options.react),q2(e)}},K2=x.createContext();class Z2{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const G2=(e,t)=>{const n=x.useRef();return x.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function ye(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:s}=x.useContext(K2)||{},i=n||r||Q2();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new Z2),!i){hu("You will need to pass in an i18next instance by using initReactI18next");const w=(C,R)=>typeof R=="string"?R:R&&typeof R=="object"&&typeof R.defaultValue=="string"?R.defaultValue:Array.isArray(C)?C[C.length-1]:C,b=[w,{},!1];return b.t=w,b.i18n={},b.ready=!1,b}i.options.react&&i.options.react.wait!==void 0&&hu("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...H2(),...i.options.react,...t},{useSuspense:a,keyPrefix:l}=o;let u=e||s||i.options&&i.options.defaultNS;u=typeof u=="string"?[u]:u||["translation"],i.reportNamespaces.addUsedNamespaces&&i.reportNamespaces.addUsedNamespaces(u);const c=(i.isInitialized||i.initializedStoreOnce)&&u.every(w=>F2(w,i,o));function d(){return i.getFixedT(t.lng||null,o.nsMode==="fallback"?u:u[0],l)}const[h,m]=x.useState(d);let g=u.join();t.lng&&(g=`${t.lng}${g}`);const y=G2(g),S=x.useRef(!0);x.useEffect(()=>{const{bindI18n:w,bindI18nStore:b}=o;S.current=!0,!c&&!a&&(t.lng?Df(i,t.lng,u,()=>{S.current&&m(d)}):Mf(i,u,()=>{S.current&&m(d)})),c&&y&&y!==g&&S.current&&m(d);function C(){S.current&&m(d)}return w&&i&&i.on(w,C),b&&i&&i.store.on(b,C),()=>{S.current=!1,w&&i&&w.split(" ").forEach(R=>i.off(R,C)),b&&i&&b.split(" ").forEach(R=>i.store.off(R,C))}},[i,g]);const p=x.useRef(!0);x.useEffect(()=>{S.current&&!p.current&&m(d),p.current=!1},[i,l]);const v=[h,i,c];if(v.t=h,v.i18n=i,v.ready=c,c||!c&&!a)return v;throw new Promise(w=>{t.lng?Df(i,t.lng,u,()=>w()):Mf(i,u,()=>w())})}Ne.use(Cm).use(W2).init({backend:{loadPath:(e,t)=>t.map(r=>r==="common"?"/i18n":`/${r}/i18n`),parse:e=>JSON.parse(e)},defaultNS:"common",ns:["common"],fallbackLng:"fr",lng:"fr",interpolation:{escapeValue:!1,prefix:"[[",suffix:"]]"},debug:!1});class Gr{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const n={listener:t};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const qs=typeof window>"u"||"Deno"in window;function at(){}function X2(e,t){return typeof e=="function"?e(t):e}function mu(e){return typeof e=="number"&&e>=0&&e!==1/0}function Pm(e,t){return Math.max(e+(t||0)-Date.now(),0)}function gr(e,t,n){return bi(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Y2(e,t,n){return bi(e)?typeof t=="function"?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function fn(e,t,n){return bi(e)?[{...t,queryKey:e},n]:[e||{},t]}function Ff(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(bi(o)){if(r){if(t.queryHash!==zc(o,t.options))return!1}else if(!zo(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||typeof s<"u"&&s!==t.state.fetchStatus||i&&!i(t))}function $f(e,t){const{exact:n,fetching:r,predicate:s,mutationKey:i}=e;if(bi(i)){if(!t.options.mutationKey)return!1;if(n){if(Qn(t.options.mutationKey)!==Qn(i))return!1}else if(!zo(t.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||s&&!s(t))}function zc(e,t){return((t==null?void 0:t.queryKeyHashFn)||Qn)(e)}function Qn(e){return JSON.stringify(e,(t,n)=>gu(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function zo(e,t){return Om(e,t)}function Om(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Om(e[n],t[n])):!1}function Nm(e,t){if(e===t)return e;const n=zf(e)&&zf(t);if(n||gu(e)&&gu(t)){const r=n?e.length:Object.keys(e).length,s=n?t:Object.keys(t),i=s.length,o=n?[]:{};let a=0;for(let l=0;l<i;l++){const u=n?l:s[l];o[u]=Nm(e[u],t[u]),o[u]===e[u]&&a++}return r===i&&a===r?e:o}return t}function Uo(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function zf(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function gu(e){if(!Uf(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!Uf(n)||!n.hasOwnProperty("isPrototypeOf"))}function Uf(e){return Object.prototype.toString.call(e)==="[object Object]"}function bi(e){return Array.isArray(e)}function jm(e){return new Promise(t=>{setTimeout(t,e)})}function Bf(e){jm(0).then(e)}function J2(){if(typeof AbortController=="function")return new AbortController}function vu(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Nm(e,t):t}class ew extends Gr{constructor(){super(),this.setup=t=>{if(!qs&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const Bo=new ew,Vf=["online","offline"];class tw extends Gr{constructor(){super(),this.setup=t=>{if(!qs&&window.addEventListener){const n=()=>t();return Vf.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{Vf.forEach(r=>{window.removeEventListener(r,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const Vo=new tw;function nw(e){return Math.min(1e3*2**e,3e4)}function ja(e){return(e??"online")==="online"?Vo.isOnline():!0}class Tm{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function go(e){return e instanceof Tm}function _m(e){let t=!1,n=0,r=!1,s,i,o;const a=new Promise((S,p)=>{i=S,o=p}),l=S=>{r||(m(new Tm(S)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},d=()=>!Bo.isFocused()||e.networkMode!=="always"&&!Vo.isOnline(),h=S=>{r||(r=!0,e.onSuccess==null||e.onSuccess(S),s==null||s(),i(S))},m=S=>{r||(r=!0,e.onError==null||e.onError(S),s==null||s(),o(S))},g=()=>new Promise(S=>{s=p=>{const v=r||!d();return v&&S(p),v},e.onPause==null||e.onPause()}).then(()=>{s=void 0,r||e.onContinue==null||e.onContinue()}),y=()=>{if(r)return;let S;try{S=e.fn()}catch(p){S=Promise.reject(p)}Promise.resolve(S).then(h).catch(p=>{var v,w;if(r)return;const b=(v=e.retry)!=null?v:3,C=(w=e.retryDelay)!=null?w:nw,R=typeof C=="function"?C(n,p):C,k=b===!0||typeof b=="number"&&n<b||typeof b=="function"&&b(n,p);if(t||!k){m(p);return}n++,e.onFail==null||e.onFail(n,p),jm(R).then(()=>{if(d())return g()}).then(()=>{t?m(p):y()})})};return ja(e.networkMode)?y():g().then(y),{promise:a,cancel:l,continue:()=>(s==null?void 0:s())?a:Promise.resolve(),cancelRetry:u,continueRetry:c}}const Uc=console;function rw(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const s=c=>{let d;t++;try{d=c()}finally{t--,t||a()}return d},i=c=>{t?e.push(c):Bf(()=>{n(c)})},o=c=>(...d)=>{i(()=>{c(...d)})},a=()=>{const c=e;e=[],c.length&&Bf(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:s,batchCalls:o,schedule:i,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}const ae=rw();class Im{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mu(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(qs?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class sw extends Im{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||Uc,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||iw(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=vu(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(at).catch(at):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Pm(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,s;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const m=this.observers.find(g=>g.options.queryFn);m&&this.setOptions(m.options)}const o=J2(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};l(a);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(a)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),c={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};if(l(c),(r=this.options.behavior)==null||r.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((s=c.fetchOptions)==null?void 0:s.meta)){var d;this.dispatch({type:"fetch",meta:(d=c.fetchOptions)==null?void 0:d.meta})}const h=m=>{if(go(m)&&m.silent||this.dispatch({type:"error",error:m}),!go(m)){var g,y,S,p;(g=(y=this.cache.config).onError)==null||g.call(y,m,this),(S=(p=this.cache.config).onSettled)==null||S.call(p,this.state.data,m,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=_m({fn:c.fetchFn,abort:o==null?void 0:o.abort.bind(o),onSuccess:m=>{var g,y,S,p;if(typeof m>"u"){h(new Error(this.queryHash+" data is undefined"));return}this.setData(m),(g=(y=this.cache.config).onSuccess)==null||g.call(y,m,this),(S=(p=this.cache.config).onSettled)==null||S.call(p,m,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:h,onFail:(m,g)=>{this.dispatch({type:"failed",failureCount:m,error:g})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var s,i;switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(s=t.meta)!=null?s:null,fetchStatus:ja(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(i=t.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return go(o)&&o.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ae.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function iw(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}class Am extends Gr{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var s;const i=n.queryKey,o=(s=n.queryHash)!=null?s:zc(i,n);let a=this.get(o);return a||(a=new sw({cache:this,logger:t.getLogger(),queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){ae.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=fn(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(s=>Ff(r,s))}findAll(t,n){const[r]=fn(t,n);return Object.keys(r).length>0?this.queries.filter(s=>Ff(r,s)):this.queries}notify(t){ae.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){ae.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){ae.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class ow extends Im{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||Uc,this.observers=[],this.state=t.state||Lm(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,n;return(t=(n=this.retryer)==null?void 0:n.continue())!=null?t:this.execute()}async execute(){const t=()=>{var k;return this.retryer=_m({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(P,_)=>{this.dispatch({type:"failed",failureCount:P,error:_})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(k=this.options.retry)!=null?k:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,s,i,o,a,l,u,c;if(!n){var d,h,m,g;this.dispatch({type:"loading",variables:this.options.variables}),await((d=(h=this.mutationCache.config).onMutate)==null?void 0:d.call(h,this.state.variables,this));const P=await((m=(g=this.options).onMutate)==null?void 0:m.call(g,this.state.variables));P!==this.state.context&&this.dispatch({type:"loading",context:P,variables:this.state.variables})}const k=await t();return await((r=(s=this.mutationCache.config).onSuccess)==null?void 0:r.call(s,k,this.state.variables,this.state.context,this)),await((i=(o=this.options).onSuccess)==null?void 0:i.call(o,k,this.state.variables,this.state.context)),await((a=(l=this.mutationCache.config).onSettled)==null?void 0:a.call(l,k,null,this.state.variables,this.state.context,this)),await((u=(c=this.options).onSettled)==null?void 0:u.call(c,k,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:k}),k}catch(k){try{var y,S,p,v,w,b,C,R;throw await((y=(S=this.mutationCache.config).onError)==null?void 0:y.call(S,k,this.state.variables,this.state.context,this)),await((p=(v=this.options).onError)==null?void 0:p.call(v,k,this.state.variables,this.state.context)),await((w=(b=this.mutationCache.config).onSettled)==null?void 0:w.call(b,void 0,k,this.state.variables,this.state.context,this)),await((C=(R=this.options).onSettled)==null?void 0:C.call(R,void 0,k,this.state.variables,this.state.context)),k}finally{this.dispatch({type:"error",error:k})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!ja(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),ae.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function Lm(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class aw extends Gr{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const s=new ow({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0});return this.add(s),s}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){ae.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>$f(t,n))}findAll(t){return this.mutations.filter(n=>$f(t,n))}notify(t){ae.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(r=>r.state.isPaused);return ae.batch(()=>n.reduce((r,s)=>r.then(()=>s.continue().catch(at)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function yu(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,s,i,o;const a=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,l=(r=e.fetchOptions)==null||(s=r.meta)==null?void 0:s.fetchMore,u=l==null?void 0:l.pageParam,c=(l==null?void 0:l.direction)==="forward",d=(l==null?void 0:l.direction)==="backward",h=((i=e.state.data)==null?void 0:i.pages)||[],m=((o=e.state.data)==null?void 0:o.pageParams)||[];let g=m,y=!1;const S=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>{var k;if((k=e.signal)!=null&&k.aborted)y=!0;else{var P;(P=e.signal)==null||P.addEventListener("abort",()=>{y=!0})}return e.signal}})},p=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),v=(R,k,P,_)=>(g=_?[k,...g]:[...g,k],_?[P,...R]:[...R,P]),w=(R,k,P,_)=>{if(y)return Promise.reject("Cancelled");if(typeof P>"u"&&!k&&R.length)return Promise.resolve(R);const F={queryKey:e.queryKey,pageParam:P,meta:e.options.meta};S(F);const A=p(F);return Promise.resolve(A).then(U=>v(R,P,U,_))};let b;if(!h.length)b=w([]);else if(c){const R=typeof u<"u",k=R?u:wu(e.options,h);b=w(h,R,k)}else if(d){const R=typeof u<"u",k=R?u:Mm(e.options,h);b=w(h,R,k,!0)}else{g=[];const R=typeof e.options.getNextPageParam>"u";b=(a&&h[0]?a(h[0],0,h):!0)?w([],R,m[0]):Promise.resolve(v([],m[0],h[0]));for(let P=1;P<h.length;P++)b=b.then(_=>{if(a&&h[P]?a(h[P],P,h):!0){const A=R?m[P]:wu(e.options,_);return w(_,R,A)}return Promise.resolve(v(_,m[P],h[P]))})}return b.then(R=>({pages:R,pageParams:g}))}}}}function wu(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function Mm(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}function lw(e,t){if(e.getNextPageParam&&Array.isArray(t)){const n=wu(e,t);return typeof n<"u"&&n!==null&&n!==!1}}function uw(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const n=Mm(e,t);return typeof n<"u"&&n!==null&&n!==!1}}class cw{constructor(t={}){this.queryCache=t.queryCache||new Am,this.mutationCache=t.mutationCache||new aw,this.logger=t.logger||Uc,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=Bo.subscribe(()=>{Bo.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Vo.subscribe(()=>{Vo.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,n;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(t,n){const[r]=fn(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}ensureQueryData(t,n,r){const s=gr(t,n,r),i=this.getQueryData(s.queryKey);return i?Promise.resolve(i):this.fetchQuery(s)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const s=r.data;return[n,s]})}setQueryData(t,n,r){const s=this.queryCache.find(t),i=s==null?void 0:s.state.data,o=X2(n,i);if(typeof o>"u")return;const a=gr(t),l=this.defaultQueryOptions(a);return this.queryCache.build(this,l).setData(o,{...r,manual:!0})}setQueriesData(t,n,r){return ae.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:s})=>[s,this.setQueryData(s,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=fn(t,n),s=this.queryCache;ae.batch(()=>{s.findAll(r).forEach(i=>{s.remove(i)})})}resetQueries(t,n,r){const[s,i]=fn(t,n,r),o=this.queryCache,a={type:"active",...s};return ae.batch(()=>(o.findAll(s).forEach(l=>{l.reset()}),this.refetchQueries(a,i)))}cancelQueries(t,n,r){const[s,i={}]=fn(t,n,r);typeof i.revert>"u"&&(i.revert=!0);const o=ae.batch(()=>this.queryCache.findAll(s).map(a=>a.cancel(i)));return Promise.all(o).then(at).catch(at)}invalidateQueries(t,n,r){const[s,i]=fn(t,n,r);return ae.batch(()=>{var o,a;if(this.queryCache.findAll(s).forEach(u=>{u.invalidate()}),s.refetchType==="none")return Promise.resolve();const l={...s,type:(o=(a=s.refetchType)!=null?a:s.type)!=null?o:"active"};return this.refetchQueries(l,i)})}refetchQueries(t,n,r){const[s,i]=fn(t,n,r),o=ae.batch(()=>this.queryCache.findAll(s).filter(l=>!l.isDisabled()).map(l=>{var u;return l.fetch(void 0,{...i,cancelRefetch:(u=i==null?void 0:i.cancelRefetch)!=null?u:!0,meta:{refetchPage:s.refetchPage}})}));let a=Promise.all(o).then(at);return i!=null&&i.throwOnError||(a=a.catch(at)),a}fetchQuery(t,n,r){const s=gr(t,n,r),i=this.defaultQueryOptions(s);typeof i.retry>"u"&&(i.retry=!1);const o=this.queryCache.build(this,i);return o.isStaleByTime(i.staleTime)?o.fetch(i):Promise.resolve(o.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(at).catch(at)}fetchInfiniteQuery(t,n,r){const s=gr(t,n,r);return s.behavior=yu(),this.fetchQuery(s)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(at).catch(at)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(s=>Qn(t)===Qn(s.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>zo(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(s=>Qn(t)===Qn(s.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>zo(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=zc(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class Dm extends Gr{constructor(t,n){super(),this.client=t,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),Hf(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return xu(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return xu(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const r=this.options,s=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),Uo(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const i=this.hasListeners();i&&qf(this.currentQuery,s,this.options,r)&&this.executeFetch(),this.updateResult(n),i&&(this.currentQuery!==s||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const o=this.computeRefetchInterval();i&&(this.currentQuery!==s||this.options.enabled!==r.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t),r=this.createResult(n,t);return fw(this,r,t)&&(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),t[r])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...n}={}){return this.fetch({...n,meta:{refetchPage:t}})}fetchOptimistic(t){const n=this.client.defaultQueryOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){var n;return this.executeFetch({...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let n=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(at)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),qs||this.currentResult.isStale||!mu(this.options.staleTime))return;const n=Pm(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},n)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(qs||this.options.enabled===!1||!mu(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Bo.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,n){const r=this.currentQuery,s=this.options,i=this.currentResult,o=this.currentResultState,a=this.currentResultOptions,l=t!==r,u=l?t.state:this.currentQueryInitialState,c=l?this.currentResult:this.previousQueryResult,{state:d}=t;let{dataUpdatedAt:h,error:m,errorUpdatedAt:g,fetchStatus:y,status:S}=d,p=!1,v=!1,w;if(n._optimisticResults){const P=this.hasListeners(),_=!P&&Hf(t,n),F=P&&qf(t,r,n,s);(_||F)&&(y=ja(t.options.networkMode)?"fetching":"paused",h||(S="loading")),n._optimisticResults==="isRestoring"&&(y="idle")}if(n.keepPreviousData&&!d.dataUpdatedAt&&c!=null&&c.isSuccess&&S!=="error")w=c.data,h=c.dataUpdatedAt,S=c.status,p=!0;else if(n.select&&typeof d.data<"u")if(i&&d.data===(o==null?void 0:o.data)&&n.select===this.selectFn)w=this.selectResult;else try{this.selectFn=n.select,w=n.select(d.data),w=vu(i==null?void 0:i.data,w,n),this.selectResult=w,this.selectError=null}catch(P){this.selectError=P}else w=d.data;if(typeof n.placeholderData<"u"&&typeof w>"u"&&S==="loading"){let P;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))P=i.data;else if(P=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof P<"u")try{P=n.select(P),this.selectError=null}catch(_){this.selectError=_}typeof P<"u"&&(S="success",w=vu(i==null?void 0:i.data,P,n),v=!0)}this.selectError&&(m=this.selectError,w=this.selectResult,g=Date.now(),S="error");const b=y==="fetching",C=S==="loading",R=S==="error";return{status:S,fetchStatus:y,isLoading:C,isSuccess:S==="success",isError:R,isInitialLoading:C&&b,data:w,dataUpdatedAt:h,error:m,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:b,isRefetching:b&&!C,isLoadingError:R&&d.dataUpdatedAt===0,isPaused:y==="paused",isPlaceholderData:v,isPreviousData:p,isRefetchError:R&&d.dataUpdatedAt!==0,isStale:Bc(t,n),refetch:this.refetch,remove:this.remove}}updateResult(t){const n=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Uo(r,n))return;this.currentResult=r;const s={cache:!0},i=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!this.trackedProps.size)return!0;const l=new Set(a??this.trackedProps);return this.options.useErrorBoundary&&l.add("error"),Object.keys(this.currentResult).some(u=>{const c=u;return this.currentResult[c]!==n[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&i()&&(s.listeners=!0),this.notify({...s,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const n={};t.type==="success"?n.onSuccess=!t.manual:t.type==="error"&&!go(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){ae.batch(()=>{if(t.onSuccess){var n,r,s,i;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(s=(i=this.options).onSettled)==null||s.call(i,this.currentResult.data,null)}else if(t.onError){var o,a,l,u;(o=(a=this.options).onError)==null||o.call(a,this.currentResult.error),(l=(u=this.options).onSettled)==null||l.call(u,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function dw(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Hf(e,t){return dw(e,t)||e.state.dataUpdatedAt>0&&xu(e,t,t.refetchOnMount)}function xu(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Bc(e,t)}return!1}function qf(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&Bc(e,n)}function Bc(e,t){return e.isStaleByTime(t.staleTime)}function fw(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!Uo(e.getCurrentResult(),t)}class hw extends Dm{constructor(t,n){super(t,n)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,n){super.setOptions({...t,behavior:yu()},n)}getOptimisticResult(t){return t.behavior=yu(),super.getOptimisticResult(t)}fetchNextPage({pageParam:t,...n}={}){return this.fetch({...n,meta:{fetchMore:{direction:"forward",pageParam:t}}})}fetchPreviousPage({pageParam:t,...n}={}){return this.fetch({...n,meta:{fetchMore:{direction:"backward",pageParam:t}}})}createResult(t,n){var r,s,i,o,a,l;const{state:u}=t,c=super.createResult(t,n),{isFetching:d,isRefetching:h}=c,m=d&&((r=u.fetchMeta)==null||(s=r.fetchMore)==null?void 0:s.direction)==="forward",g=d&&((i=u.fetchMeta)==null||(o=i.fetchMore)==null?void 0:o.direction)==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:lw(n,(a=u.data)==null?void 0:a.pages),hasPreviousPage:uw(n,(l=u.data)==null?void 0:l.pages),isFetchingNextPage:m,isFetchingPreviousPage:g,isRefetching:h&&!m&&!g}}}let pw=class extends Gr{constructor(t,n){super(),this.client=t,this.setOptions(n),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=this.client.defaultMutationOptions(t),Uo(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(n=this.currentMutation)==null||n.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.currentMutation)==null||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();const n={listeners:!0};t.type==="success"?n.onSuccess=!0:t.type==="error"&&(n.onError=!0),this.notify(n)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,n){return this.mutateOptions=n,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof t<"u"?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const t=this.currentMutation?this.currentMutation.state:Lm(),n={...t,isLoading:t.status==="loading",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=n}notify(t){ae.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(t.onSuccess){var n,r,s,i;(n=(r=this.mutateOptions).onSuccess)==null||n.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(s=(i=this.mutateOptions).onSettled)==null||s.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(t.onError){var o,a,l,u;(o=(a=this.mutateOptions).onError)==null||o.call(a,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(l=(u=this.mutateOptions).onSettled)==null||l.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}t.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)})})}};var Fm={exports:{}},rt={},$m={exports:{}},zm={};/**
17
+ */var Gy=x,Xy=Symbol.for("react.element"),Yy=Symbol.for("react.fragment"),Jy=Object.prototype.hasOwnProperty,e2=Gy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,t2={key:!0,ref:!0,__self:!0,__source:!0};function gm(e,t,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Jy.call(t,r)&&!t2.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:Xy,type:e,key:i,ref:o,props:s,_owner:e2.current}}Oa.Fragment=Yy;Oa.jsx=gm;Oa.jsxs=gm;im.exports=Oa;var f=im.exports;const n2={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Io{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||n2,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,s){return s&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Io(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Io(this.logger,t)}}var $t=new Io;class Na{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]=this.observers[r]||[],this.observers[r].push(n)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t]=this.observers[t].filter(r=>r!==n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];this.observers[t]&&[].concat(this.observers[t]).forEach(o=>{o(...r)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(o=>{o.apply(o,[t,...r])})}}function ss(){let e,t;const n=new Promise((r,s)=>{e=r,t=s});return n.resolve=e,n.reject=t,n}function Sf(e){return e==null?"":""+e}function r2(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}function $c(e,t,n){function r(o){return o&&o.indexOf("###")>-1?o.replace(/###/g,"."):o}function s(){return!e||typeof e=="string"}const i=typeof t!="string"?[].concat(t):t.split(".");for(;i.length>1;){if(s())return{};const o=r(i.shift());!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={}}return s()?{}:{obj:e,k:r(i.shift())}}function bf(e,t,n){const{obj:r,k:s}=$c(e,t,Object);r[s]=n}function s2(e,t,n,r){const{obj:s,k:i}=$c(e,t,Object);s[i]=s[i]||[],r&&(s[i]=s[i].concat(n)),r||s[i].push(n)}function Ao(e,t){const{obj:n,k:r}=$c(e,t);if(n)return n[r]}function i2(e,t,n){const r=Ao(e,n);return r!==void 0?r:Ao(t,n)}function vm(e,t,n){for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):vm(e[r],t[r],n):e[r]=t[r]);return e}function dr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var o2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function a2(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>o2[t]):e}const l2=[" ",",","?","!",";"];function u2(e,t,n){t=t||"",n=n||"";const r=l2.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const s=new RegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let i=!s.test(e);if(!i){const o=e.indexOf(n);o>0&&!s.test(e.substring(0,o))&&(i=!0)}return i}function Lo(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let s=e;for(let i=0;i<r.length;++i){if(!s||typeof s[r[i]]=="string"&&i+1<r.length)return;if(s[r[i]]===void 0){let o=2,a=r.slice(i,i+o).join(n),l=s[a];for(;l===void 0&&r.length>i+o;)o++,a=r.slice(i,i+o).join(n),l=s[a];if(l===void 0)return;if(l===null)return null;if(t.endsWith(a)){if(typeof l=="string")return l;if(a&&typeof l[a]=="string")return l[a]}const u=r.slice(i+o).join(n);return u?Lo(l,u,n):void 0}s=s[r[i]]}return s}function Mo(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class Ef extends Na{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,o=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let a=[t,n];r&&typeof r!="string"&&(a=a.concat(r)),r&&typeof r=="string"&&(a=a.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(a=t.split("."));const l=Ao(this.data,a);return l||!o||typeof r!="string"?l:Lo(this.data&&this.data[t]&&this.data[t][n],r,i)}addResource(t,n,r,s){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=[t,n];r&&(a=a.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(a=t.split("."),s=n,n=a[1]),this.addNamespaces(n),bf(this.data,a,s),i.silent||this.emit("added",t,n,r,s)}addResources(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in r)(typeof r[i]=="string"||Object.prototype.toString.apply(r[i])==="[object Array]")&&this.addResource(t,n,i,r[i],{silent:!0});s.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,s,i){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},a=[t,n];t.indexOf(".")>-1&&(a=t.split("."),s=r,r=n,n=a[1]),this.addNamespaces(n);let l=Ao(this.data,a)||{};s?vm(l,r,i):l={...l,...r},bf(this.data,a,l),o.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(s=>n[s]&&Object.keys(n[s]).length>0)}toJSON(){return this.data}}var ym={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,s){return e.forEach(i=>{this.processors[i]&&(t=this.processors[i].process(t,n,r,s))}),t}};const Cf={};class Do extends Na{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),r2(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=$t.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!u2(t,r,s);if(o&&!a){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:i};const u=t.split(r);(r!==s||r===s&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),t=u.join(s)}return typeof i=="string"&&(i=[i]),{key:t,namespaces:i}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const s=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:o,namespaces:a}=this.extractFromKey(t[t.length-1],n),l=a[a.length-1],u=n.lng||this.language,c=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(c){const b=n.nsSeparator||this.options.nsSeparator;return s?{res:`${l}${b}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${b}${o}`}return s?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:o}const d=this.resolve(t,n);let h=d&&d.res;const p=d&&d.usedKey||o,g=d&&d.exactUsedKey||o,y=Object.prototype.toString.apply(h),S=["[object Number]","[object Function]","[object RegExp]"],m=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&h&&(typeof h!="string"&&typeof h!="boolean"&&typeof h!="number")&&S.indexOf(y)<0&&!(typeof m=="string"&&y==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const b=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,h,{...n,ns:a}):`key '${o} (${this.language})' returned an object instead of string.`;return s?(d.res=b,d.usedParams=this.getUsedParamsDetails(n),d):b}if(i){const b=y==="[object Array]",C=b?[]:{},R=b?g:p;for(const k in h)if(Object.prototype.hasOwnProperty.call(h,k)){const P=`${R}${i}${k}`;C[k]=this.translate(P,{...n,joinArrays:!1,ns:a}),C[k]===P&&(C[k]=h[k])}h=C}}else if(v&&typeof m=="string"&&y==="[object Array]")h=h.join(m),h&&(h=this.extendTranslation(h,t,n,r));else{let b=!1,C=!1;const R=n.count!==void 0&&typeof n.count!="string",k=Do.hasDefaultValue(n),P=R?this.pluralResolver.getSuffix(u,n.count,n):"",_=n.ordinal&&R?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",F=n[`defaultValue${P}`]||n[`defaultValue${_}`]||n.defaultValue;!this.isValidLookup(h)&&k&&(b=!0,h=F),this.isValidLookup(h)||(C=!0,h=o);const I=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:h,U=k&&F!==h&&this.options.updateMissing;if(C||b||U){if(this.logger.log(U?"updateKey":"missingKey",u,l,o,U?F:h),i){const L=this.resolve(o,{...n,keySeparator:!1});L&&L.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 $=[];const E=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&E&&E[0])for(let L=0;L<E.length;L++)$.push(E[L]);else this.options.saveMissingTo==="all"?$=this.languageUtils.toResolveHierarchy(n.lng||this.language):$.push(n.lng||this.language);const O=(L,N,D)=>{const M=k&&D!==h?D:I;this.options.missingKeyHandler?this.options.missingKeyHandler(L,l,N,M,U,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(L,l,N,M,U,n),this.emit("missingKey",L,l,N,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&R?$.forEach(L=>{this.pluralResolver.getSuffixes(L,n).forEach(N=>{O([L],o+N,n[`defaultValue${N}`]||F)})}):O($,o,F))}h=this.extendTranslation(h,t,n,d,r),C&&h===o&&this.options.appendNamespaceToMissingKey&&(h=`${l}:${o}`),(C||b)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,b?h:void 0):h=this.options.parseMissingKeyHandler(h))}return s?(d.res=h,d.usedParams=this.getUsedParamsDetails(n),d):h}extendTranslation(t,n,r,s,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const h=t.match(this.interpolator.nestingRegexp);c=h&&h.length}let d=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,r.lng||this.language,r),u){const h=t.match(this.interpolator.nestingRegexp),p=h&&h.length;c<p&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&s&&s.res&&(r.lng=s.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var h=arguments.length,p=new Array(h),g=0;g<h;g++)p[g]=arguments[g];return i&&i[0]===p[0]&&!r.context?(o.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${n[0]}`),null):o.translate(...p,n)},r)),r.interpolation&&this.interpolator.reset()}const a=r.postProcess||this.options.postProcess,l=typeof a=="string"?[a]:a;return t!=null&&l&&l.length&&r.applyPostProcessor!==!1&&(t=ym.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,s,i,o,a;return typeof t=="string"&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(l,n),c=u.key;s=c;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const h=n.count!==void 0&&typeof n.count!="string",p=h&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),g=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",y=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(S=>{this.isValidLookup(r)||(a=S,!Cf[`${y[0]}-${S}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(Cf[`${y[0]}-${S}`]=!0,this.logger.warn(`key "${s}" for languages "${y.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),y.forEach(m=>{if(this.isValidLookup(r))return;o=m;const v=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(v,c,m,S,n);else{let b;h&&(b=this.pluralResolver.getSuffix(m,n.count,n));const C=`${this.options.pluralSeparator}zero`,R=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(v.push(c+b),n.ordinal&&b.indexOf(R)===0&&v.push(c+b.replace(R,this.options.pluralSeparator)),p&&v.push(c+C)),g){const k=`${c}${this.options.contextSeparator}${n.context}`;v.push(k),h&&(v.push(k+b),n.ordinal&&b.indexOf(R)===0&&v.push(k+b.replace(R,this.options.pluralSeparator)),p&&v.push(k+C))}}let w;for(;w=v.pop();)this.isValidLookup(r)||(i=w,r=this.getResource(m,S,w,n))}))})}),{res:r,usedKey:s,exactUsedKey:i,usedLng:o,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,s):this.resourceStore.getResource(t,n,r,s)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let s=r?t.replace:t;if(r&&typeof t.count<"u"&&(s.count=t.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!r){s={...s};for(const i of n)delete s[i]}return s}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}function Sl(e){return e.charAt(0).toUpperCase()+e.slice(1)}class Rf{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=$t.create("languageUtils")}getScriptPartFromCode(t){if(t=Mo(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Mo(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(s=>s.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Sl(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Sl(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Sl(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const s=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(s))&&(n=s)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(i=>{if(i===s)return i;if(!(i.indexOf("-")<0&&s.indexOf("-")<0)&&i.indexOf(s)===0)return i})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),s=[],i=o=>{o&&(this.isSupportedCode(o)?s.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):typeof t=="string"&&i(this.formatLanguageCode(t)),r.forEach(o=>{s.indexOf(o)<0&&i(this.formatLanguageCode(o))}),s}}let c2=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],d2={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const f2=["v1","v2","v3"],h2=["v4"],kf={zero:0,one:1,two:2,few:3,many:4,other:5};function p2(){const e={};return c2.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:d2[t.fc]}})}),e}class m2{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=$t.create("pluralResolver"),(!this.options.compatibilityJSON||h2.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=p2()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Mo(t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(s=>`${n}${s}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((s,i)=>kf[s]-kf[i]).map(s=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s}`):r.numbers.map(s=>this.getSuffix(t,s,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(t,r);return s?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${s.select(n)}`:this.getSuffixRetroCompatible(s,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let s=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));const i=()=>this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString();return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?`_plural_${s.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!f2.includes(this.options.compatibilityJSON)}}function Pf(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=i2(e,t,n);return!i&&s&&typeof n=="string"&&(i=Lo(e,n,r),i===void 0&&(i=Lo(t,n,r))),i}class g2{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=$t.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const n=t.interpolation;this.escape=n.escape!==void 0?n.escape:a2,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?dr(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?dr(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?dr(n.nestingPrefix):n.nestingPrefixEscaped||dr("$t("),this.nestingSuffix=n.nestingSuffix?dr(n.nestingSuffix):n.nestingSuffixEscaped||dr(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(t,"g");const n=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(n,"g");const r=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(r,"g")}interpolate(t,n,r,s){let i,o,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(g){return g.replace(/\$/g,"$$$$")}const c=g=>{if(g.indexOf(this.formatSeparator)<0){const v=Pf(n,l,g,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(v,void 0,r,{...s,...n,interpolationkey:g}):v}const y=g.split(this.formatSeparator),S=y.shift().trim(),m=y.join(this.formatSeparator).trim();return this.format(Pf(n,l,S,this.options.keySeparator,this.options.ignoreJSONStructure),m,r,{...s,...n,interpolationkey:S})};this.resetRegExp();const d=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,h=s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:g=>u(g)},{regex:this.regexp,safeValue:g=>this.escapeValue?u(this.escape(g)):u(g)}].forEach(g=>{for(a=0;i=g.regex.exec(t);){const y=i[1].trim();if(o=c(y),o===void 0)if(typeof d=="function"){const m=d(t,i,s);o=typeof m=="string"?m:""}else if(s&&Object.prototype.hasOwnProperty.call(s,y))o="";else if(h){o=i[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),o="";else typeof o!="string"&&!this.useRawValueToEscape&&(o=Sf(o));const S=g.safeValue(o);if(t=t.replace(i[0],S),h?(g.regex.lastIndex+=o.length,g.regex.lastIndex-=i[0].length):g.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,i,o;function a(l,u){const c=this.nestingOptionsSeparator;if(l.indexOf(c)<0)return l;const d=l.split(new RegExp(`${c}[ ]*{`));let h=`{${d[1]}`;l=d[0],h=this.interpolate(h,o);const p=h.match(/'/g),g=h.match(/"/g);(p&&p.length%2===0&&!g||g.length%2!==0)&&(h=h.replace(/'/g,'"'));try{o=JSON.parse(h),u&&(o={...u,...o})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,y),`${l}${c}${h}`}return delete o.defaultValue,l}for(;s=this.nestingRegexp.exec(t);){let l=[];o={...r},o=o.replace&&typeof o.replace!="string"?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const c=s[1].split(this.formatSeparator).map(d=>d.trim());s[1]=c.shift(),l=c,u=!0}if(i=n(a.call(this,s[1].trim(),o),o),i&&s[0]===t&&typeof i!="string")return i;typeof i!="string"&&(i=Sf(i)),i||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${t}`),i=""),u&&(i=l.reduce((c,d)=>this.format(c,d,r.lng,{...r,interpolationkey:s[1].trim()}),i.trim())),t=t.replace(s[0],i),this.regexp.lastIndex=0}return t}}function v2(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const s=r[1].substring(0,r[1].length-1);t==="currency"&&s.indexOf(":")<0?n.currency||(n.currency=s.trim()):t==="relativetime"&&s.indexOf(":")<0?n.range||(n.range=s.trim()):s.split(";").forEach(o=>{if(!o)return;const[a,...l]=o.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,"");n[a.trim()]||(n[a.trim()]=u),u==="false"&&(n[a.trim()]=!1),u==="true"&&(n[a.trim()]=!0),isNaN(u)||(n[a.trim()]=parseInt(u,10))})}return{formatName:t,formatOptions:n}}function fr(e){const t={};return function(r,s,i){const o=s+JSON.stringify(i);let a=t[o];return a||(a=e(Mo(s),i),t[o]=a),a(r)}}class y2{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=$t.create("formatter"),this.options=t,this.formats={number:fr((n,r)=>{const s=new Intl.NumberFormat(n,{...r});return i=>s.format(i)}),currency:fr((n,r)=>{const s=new Intl.NumberFormat(n,{...r,style:"currency"});return i=>s.format(i)}),datetime:fr((n,r)=>{const s=new Intl.DateTimeFormat(n,{...r});return i=>s.format(i)}),relativetime:fr((n,r)=>{const s=new Intl.RelativeTimeFormat(n,{...r});return i=>s.format(i,r.range||"day")}),list:fr((n,r)=>{const s=new Intl.ListFormat(n,{...r});return i=>s.format(i)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=fr(n)}format(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((a,l)=>{const{formatName:u,formatOptions:c}=v2(l);if(this.formats[u]){let d=a;try{const h=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},p=h.locale||h.lng||s.locale||s.lng||r;d=this.formats[u](a,p,{...c,...s,...h})}catch(h){this.logger.warn(h)}return d}else this.logger.warn(`there was no format function for ${u}`);return a},t)}}function w2(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class x2 extends Na{constructor(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=s,this.logger=$t.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,s.backend,s)}queueLoad(t,n,r,s){const i={},o={},a={},l={};return t.forEach(u=>{let c=!0;n.forEach(d=>{const h=`${u}|${d}`;!r.reload&&this.store.hasResourceBundle(u,d)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?o[h]===void 0&&(o[h]=!0):(this.state[h]=1,c=!1,o[h]===void 0&&(o[h]=!0),i[h]===void 0&&(i[h]=!0),l[d]===void 0&&(l[d]=!0)))}),c||(a[u]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const s=t.split("|"),i=s[0],o=s[1];n&&this.emit("failedLoading",i,o,n),r&&this.store.addResourceBundle(i,o,r),this.state[t]=n?-1:2;const a={};this.queue.forEach(l=>{s2(l.loaded,[i],o),w2(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{a[u]||(a[u]={});const c=l.loaded[u];c.length&&c.forEach(d=>{a[u][d]===void 0&&(a[u][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:s,wait:i,callback:o});return}this.readingCalls++;const a=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&c&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,s+1,i*2,o)},i);return}o(u,c)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const u=l(t,n);u&&typeof u.then=="function"?u.then(c=>a(null,c)).catch(a):a(null,u)}catch(u){a(u)}return}return l(t,n,a)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const i=this.queueLoad(t,n,r,s);if(!i.toLoad.length)return i.pending.length||s(),null;i.toLoad.forEach(o=>{this.loadOne(o)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),s=r[0],i=r[1];this.read(s,i,"read",void 0,void 0,(o,a)=>{o&&this.logger.warn(`${n}loading namespace ${i} for language ${s} failed`,o),!o&&a&&this.logger.log(`${n}loaded namespace ${i} for language ${s}`,a),this.loaded(t,o,a)})}saveMissing(t,n,r,s,i){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" 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(!(r==null||r==="")){if(this.backend&&this.backend.create){const l={...o,isUpdate:i},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(t,n,r,s,l):c=u(t,n,r,s),c&&typeof c.then=="function"?c.then(d=>a(null,d)).catch(a):a(null,c)}catch(c){a(c)}else u(t,n,r,s,a,l)}!t||!t[0]||this.store.addResource(t[0],n,r,s)}}}function Of(){return{debug:!1,initImmediate:!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:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(s=>{n[s]=r[s]})}return n},interpolation:{escapeValue:!0,format:(e,t,n,r)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Nf(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function zi(){}function S2(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class Bs extends Na{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Nf(t),this.services={},this.logger=$t,this.modules={external:[]},S2(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const s=Of();this.options={...s,...this.options,...Nf(n)},this.options.compatibilityAPI!=="v1"&&(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);function i(c){return c?typeof c=="function"?new c:c:null}if(!this.options.isClone){this.modules.logger?$t.init(i(this.modules.logger),this.options):$t.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=y2);const d=new Rf(this.options);this.store=new Ef(this.options.resources,this.options);const h=this.services;h.logger=$t,h.resourceStore=this.store,h.languageUtils=d,h.pluralResolver=new m2(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(h.formatter=i(c),h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new g2(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new x2(i(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(p){for(var g=arguments.length,y=new Array(g>1?g-1:0),S=1;S<g;S++)y[S-1]=arguments[S];t.emit(p,...y)}),this.modules.languageDetector&&(h.languageDetector=i(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=i(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new Do(this.services,this.options),this.translator.on("*",function(p){for(var g=arguments.length,y=new Array(g>1?g-1:0),S=1;S<g;S++)y[S-1]=arguments[S];t.emit(p,...y)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,r||(r=zi),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[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(c=>{this[c]=function(){return t.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return t.store[c](...arguments),t}});const l=ss(),u=()=>{const c=(d,h)=>{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),l.resolve(h),r(d,h)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zi;const s=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(s&&s.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const i=[],o=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(u=>{u!=="cimode"&&i.indexOf(u)<0&&i.push(u)})};s?o(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>o(l)),this.options.preload&&this.options.preload.forEach(a=>o(a)),this.services.backendConnector.load(i,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(a)})}else r(null)}reloadResources(t,n,r){const s=ss();return t||(t=this.languages),n||(n=this.options.ns),r||(r=zi),this.services.backendConnector.reload(t,n,i=>{s.resolve(),r(i)}),s}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&ym.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const s=ss();this.emit("languageChanging",t);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},o=(l,u)=>{u?(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,s.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},a=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const u=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,c=>{o(c,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),s}getFixedT(t,n,r){var s=this;const i=function(o,a){let l;if(typeof a!="object"){for(var u=arguments.length,c=new Array(u>2?u-2:0),d=2;d<u;d++)c[d-2]=arguments[d];l=s.options.overloadTranslationOptionHandler([o,a].concat(c))}else l={...a};l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix=l.keyPrefix||r||i.keyPrefix;const h=s.options.keySeparator||".";let p;return l.keyPrefix&&Array.isArray(o)?p=o.map(g=>`${l.keyPrefix}${h}${g}`):p=l.keyPrefix?`${l.keyPrefix}${h}${o}`:o,s.t(p,l)};return typeof t=="string"?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};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 r=n.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(a,l)=>{const u=this.services.backendConnector.state[`${a}|${l}`];return u===-1||u===2};if(n.precheck){const a=n.precheck(this,o);if(a!==void 0)return a}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,t)&&(!s||o(i,t)))}loadNamespaces(t,n){const r=ss();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=ss();typeof t=="string"&&(t=[t]);const s=this.options.preload||[],i=t.filter(o=>s.indexOf(o)<0);return i.length?(this.options.preload=s.concat(i),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["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"],r=this.services&&this.services.languageUtils||new Rf(Of());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Bs(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zi;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const s={...this.options,...t,isClone:!0},i=new Bs(s);return(t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new Ef(this.store.data,s),i.services.resourceStore=i.store),i.translator=new Do(i.services,s),i.translator.on("*",function(a){for(var l=arguments.length,u=new Array(l>1?l-1:0),c=1;c<l;c++)u[c-1]=arguments[c];i.emit(a,...u)}),i.init(s,n),i.translator.options=s,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ne=Bs.createInstance();Ne.createInstance=Bs.createInstance;Ne.createInstance;Ne.dir;Ne.init;Ne.loadResources;Ne.reloadResources;Ne.use;Ne.changeLanguage;Ne.getFixedT;const qt=Ne.t;Ne.exists;Ne.setDefaultNamespace;Ne.hasLoadedNamespace;Ne.loadNamespaces;Ne.loadLanguages;function uu(e){"@babel/helpers - typeof";return uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uu(e)}var wm=[],b2=wm.forEach,E2=wm.slice;function cu(e){return b2.call(E2.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function xm(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":uu(XMLHttpRequest))==="object"}function C2(e){return!!e&&typeof e.then=="function"}function R2(e){return C2(e)?e:Promise.resolve(e)}function k2(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var du={exports:{}},Ui={exports:{}},jf;function P2(){return jf||(jf=1,function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof _e<"u"&&_e,r=function(){function i(){this.fetch=!1,this.DOMException=n.DOMException}return i.prototype=n,new i}();(function(i){(function(o){var a=typeof i<"u"&&i||typeof self<"u"&&self||typeof a<"u"&&a,l={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function u(E){return E&&DataView.prototype.isPrototypeOf(E)}if(l.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(E){return E&&c.indexOf(Object.prototype.toString.call(E))>-1};function h(E){if(typeof E!="string"&&(E=String(E)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(E)||E==="")throw new TypeError('Invalid character in header field name: "'+E+'"');return E.toLowerCase()}function p(E){return typeof E!="string"&&(E=String(E)),E}function g(E){var O={next:function(){var L=E.shift();return{done:L===void 0,value:L}}};return l.iterable&&(O[Symbol.iterator]=function(){return O}),O}function y(E){this.map={},E instanceof y?E.forEach(function(O,L){this.append(L,O)},this):Array.isArray(E)?E.forEach(function(O){this.append(O[0],O[1])},this):E&&Object.getOwnPropertyNames(E).forEach(function(O){this.append(O,E[O])},this)}y.prototype.append=function(E,O){E=h(E),O=p(O);var L=this.map[E];this.map[E]=L?L+", "+O:O},y.prototype.delete=function(E){delete this.map[h(E)]},y.prototype.get=function(E){return E=h(E),this.has(E)?this.map[E]:null},y.prototype.has=function(E){return this.map.hasOwnProperty(h(E))},y.prototype.set=function(E,O){this.map[h(E)]=p(O)},y.prototype.forEach=function(E,O){for(var L in this.map)this.map.hasOwnProperty(L)&&E.call(O,this.map[L],L,this)},y.prototype.keys=function(){var E=[];return this.forEach(function(O,L){E.push(L)}),g(E)},y.prototype.values=function(){var E=[];return this.forEach(function(O){E.push(O)}),g(E)},y.prototype.entries=function(){var E=[];return this.forEach(function(O,L){E.push([L,O])}),g(E)},l.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function S(E){if(E.bodyUsed)return Promise.reject(new TypeError("Already read"));E.bodyUsed=!0}function m(E){return new Promise(function(O,L){E.onload=function(){O(E.result)},E.onerror=function(){L(E.error)}})}function v(E){var O=new FileReader,L=m(O);return O.readAsArrayBuffer(E),L}function w(E){var O=new FileReader,L=m(O);return O.readAsText(E),L}function b(E){for(var O=new Uint8Array(E),L=new Array(O.length),N=0;N<O.length;N++)L[N]=String.fromCharCode(O[N]);return L.join("")}function C(E){if(E.slice)return E.slice(0);var O=new Uint8Array(E.byteLength);return O.set(new Uint8Array(E)),O.buffer}function R(){return this.bodyUsed=!1,this._initBody=function(E){this.bodyUsed=this.bodyUsed,this._bodyInit=E,E?typeof E=="string"?this._bodyText=E:l.blob&&Blob.prototype.isPrototypeOf(E)?this._bodyBlob=E:l.formData&&FormData.prototype.isPrototypeOf(E)?this._bodyFormData=E:l.searchParams&&URLSearchParams.prototype.isPrototypeOf(E)?this._bodyText=E.toString():l.arrayBuffer&&l.blob&&u(E)?(this._bodyArrayBuffer=C(E.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(E)||d(E))?this._bodyArrayBuffer=C(E):this._bodyText=E=Object.prototype.toString.call(E):this._bodyText="",this.headers.get("content-type")||(typeof E=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):l.searchParams&&URLSearchParams.prototype.isPrototypeOf(E)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},l.blob&&(this.blob=function(){var E=S(this);if(E)return E;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var E=S(this);return E||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(v)}),this.text=function(){var E=S(this);if(E)return E;if(this._bodyBlob)return w(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(b(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},l.formData&&(this.formData=function(){return this.text().then(F)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function P(E){var O=E.toUpperCase();return k.indexOf(O)>-1?O:E}function _(E,O){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');O=O||{};var L=O.body;if(E instanceof _){if(E.bodyUsed)throw new TypeError("Already read");this.url=E.url,this.credentials=E.credentials,O.headers||(this.headers=new y(E.headers)),this.method=E.method,this.mode=E.mode,this.signal=E.signal,!L&&E._bodyInit!=null&&(L=E._bodyInit,E.bodyUsed=!0)}else this.url=String(E);if(this.credentials=O.credentials||this.credentials||"same-origin",(O.headers||!this.headers)&&(this.headers=new y(O.headers)),this.method=P(O.method||this.method||"GET"),this.mode=O.mode||this.mode||null,this.signal=O.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&L)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(L),(this.method==="GET"||this.method==="HEAD")&&(O.cache==="no-store"||O.cache==="no-cache")){var N=/([?&])_=[^&]*/;if(N.test(this.url))this.url=this.url.replace(N,"$1_="+new Date().getTime());else{var D=/\?/;this.url+=(D.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})};function F(E){var O=new FormData;return E.trim().split("&").forEach(function(L){if(L){var N=L.split("="),D=N.shift().replace(/\+/g," "),M=N.join("=").replace(/\+/g," ");O.append(decodeURIComponent(D),decodeURIComponent(M))}}),O}function A(E){var O=new y,L=E.replace(/\r?\n[\t ]+/g," ");return L.split("\r").map(function(N){return N.indexOf(`
18
+ `)===0?N.substr(1,N.length):N}).forEach(function(N){var D=N.split(":"),M=D.shift().trim();if(M){var K=D.join(":").trim();O.append(M,K)}}),O}R.call(_.prototype);function I(E,O){if(!(this instanceof I))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');O||(O={}),this.type="default",this.status=O.status===void 0?200:O.status,this.ok=this.status>=200&&this.status<300,this.statusText=O.statusText===void 0?"":""+O.statusText,this.headers=new y(O.headers),this.url=O.url||"",this._initBody(E)}R.call(I.prototype),I.prototype.clone=function(){return new I(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},I.error=function(){var E=new I(null,{status:0,statusText:""});return E.type="error",E};var U=[301,302,303,307,308];I.redirect=function(E,O){if(U.indexOf(O)===-1)throw new RangeError("Invalid status code");return new I(null,{status:O,headers:{location:E}})},o.DOMException=a.DOMException;try{new o.DOMException}catch{o.DOMException=function(O,L){this.message=O,this.name=L;var N=Error(O);this.stack=N.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function $(E,O){return new Promise(function(L,N){var D=new _(E,O);if(D.signal&&D.signal.aborted)return N(new o.DOMException("Aborted","AbortError"));var M=new XMLHttpRequest;function K(){M.abort()}M.onload=function(){var le={status:M.status,statusText:M.statusText,headers:A(M.getAllResponseHeaders()||"")};le.url="responseURL"in M?M.responseURL:le.headers.get("X-Request-URL");var we="response"in M?M.response:M.responseText;setTimeout(function(){L(new I(we,le))},0)},M.onerror=function(){setTimeout(function(){N(new TypeError("Network request failed"))},0)},M.ontimeout=function(){setTimeout(function(){N(new TypeError("Network request failed"))},0)},M.onabort=function(){setTimeout(function(){N(new o.DOMException("Aborted","AbortError"))},0)};function Z(le){try{return le===""&&a.location.href?a.location.href:le}catch{return le}}M.open(D.method,Z(D.url),!0),D.credentials==="include"?M.withCredentials=!0:D.credentials==="omit"&&(M.withCredentials=!1),"responseType"in M&&(l.blob?M.responseType="blob":l.arrayBuffer&&D.headers.get("Content-Type")&&D.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(M.responseType="arraybuffer")),O&&typeof O.headers=="object"&&!(O.headers instanceof y)?Object.getOwnPropertyNames(O.headers).forEach(function(le){M.setRequestHeader(le,p(O.headers[le]))}):D.headers.forEach(function(le,we){M.setRequestHeader(we,le)}),D.signal&&(D.signal.addEventListener("abort",K),M.onreadystatechange=function(){M.readyState===4&&D.signal.removeEventListener("abort",K)}),M.send(typeof D._bodyInit>"u"?null:D._bodyInit)})}return $.polyfill=!0,a.fetch||(a.fetch=$,a.Headers=y,a.Request=_,a.Response=I),o.Headers=y,o.Request=_,o.Response=I,o.fetch=$,o})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var s=n.fetch?n:r;t=s.fetch,t.default=s.fetch,t.fetch=s.fetch,t.Headers=s.Headers,t.Request=s.Request,t.Response=s.Response,e.exports=t}(Ui,Ui.exports)),Ui.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof _e<"u"&&_e.fetch?n=_e.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof k2<"u"&&(typeof window>"u"||typeof window.document>"u")){var r=n||P2();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(du,du.exports);var Sm=du.exports;const bm=Pa(Sm),Tf=sm({__proto__:null,default:bm},[Sm]);function Fo(e){"@babel/helpers - typeof";return Fo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fo(e)}var Yt;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Yt=global.fetch:typeof window<"u"&&window.fetch?Yt=window.fetch:Yt=fetch);var Vs;xm()&&(typeof global<"u"&&global.XMLHttpRequest?Vs=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Vs=window.XMLHttpRequest));var $o;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?$o=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&($o=window.ActiveXObject));!Yt&&Tf&&!Vs&&!$o&&(Yt=bm||Tf);typeof Yt!="function"&&(Yt=void 0);var fu=function(t,n){if(n&&Fo(n)==="object"){var r="";for(var s in n)r+="&"+encodeURIComponent(s)+"="+encodeURIComponent(n[s]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},_f=function(t,n,r){var s=function(o){if(!o.ok)return r(o.statusText||"Error",{status:o.status});o.text().then(function(a){r(null,{status:o.status,data:a})}).catch(r)};typeof fetch=="function"?fetch(t,n).then(s).catch(r):Yt(t,n).then(s).catch(r)},If=!1,O2=function(t,n,r,s){t.queryStringParams&&(n=fu(n,t.queryStringParams));var i=cu({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(i["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(i["Content-Type"]="application/json");var o=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,a=cu({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:i},If?{}:o);try{_f(n,a,s)}catch(l){if(!o||Object.keys(o).length===0||!l.message||l.message.indexOf("not implemented")<0)return s(l);try{Object.keys(o).forEach(function(u){delete a[u]}),_f(n,a,s),If=!0}catch(u){s(u)}}},N2=function(t,n,r,s){r&&Fo(r)==="object"&&(r=fu("",r).slice(1)),t.queryStringParams&&(n=fu(n,t.queryStringParams));try{var i;Vs?i=new Vs:i=new $o("MSXML2.XMLHTTP.3.0"),i.open(r?"POST":"GET",n,1),t.crossDomain||i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.withCredentials=!!t.withCredentials,r&&i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.overrideMimeType&&i.overrideMimeType("application/json");var o=t.customHeaders;if(o=typeof o=="function"?o():o,o)for(var a in o)i.setRequestHeader(a,o[a]);i.onreadystatechange=function(){i.readyState>3&&s(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(r)}catch(l){console&&console.log(l)}},j2=function(t,n,r,s){if(typeof r=="function"&&(s=r,r=void 0),s=s||function(){},Yt&&n.indexOf("file:")!==0)return O2(t,n,r,s);if(xm()||typeof ActiveXObject=="function")return N2(t,n,r,s);s(new Error("No fetch and no xhr implementation found!"))};function Hs(e){"@babel/helpers - typeof";return Hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hs(e)}function T2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Af(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Em(r.key),r)}}function _2(e,t,n){return t&&Af(e.prototype,t),n&&Af(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function I2(e,t,n){return t=Em(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Em(e){var t=A2(e,"string");return Hs(t)==="symbol"?t:String(t)}function A2(e,t){if(Hs(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Hs(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var L2=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,s){return I2({},r,s||"")},parseLoadPayload:function(n,r){},request:j2,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},Cm=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};T2(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return _2(e,[{key:"init",value:function(n){var r=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=cu(s,this.options||{},L2()),this.allOptions=i,this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(n,r,s){this._readAny(n,n,r,r,s)}},{key:"read",value:function(n,r,s){this._readAny([n],n,[r],r,s)}},{key:"_readAny",value:function(n,r,s,i,o){var a=this,l=this.options.loadPath;typeof this.options.loadPath=="function"&&(l=this.options.loadPath(n,s)),l=R2(l),l.then(function(u){if(!u)return o(null,{});var c=a.services.interpolator.interpolate(u,{lng:n.join("+"),ns:s.join("+")});a.loadUrl(c,o,r,i)})}},{key:"loadUrl",value:function(n,r,s,i){var o=this,a=typeof s=="string"?[s]:s,l=typeof i=="string"?[i]:i,u=this.options.parseLoadPayload(a,l);this.options.request(this.options,n,u,function(c,d){if(d&&(d.status>=500&&d.status<600||!d.status))return r("failed loading "+n+"; status code: "+d.status,!0);if(d&&d.status>=400&&d.status<500)return r("failed loading "+n+"; status code: "+d.status,!1);if(!d&&c&&c.message&&c.message.indexOf("Failed to fetch")>-1)return r("failed loading "+n+": "+c.message,!0);if(c)return r(c,!1);var h,p;try{typeof d.data=="string"?h=o.options.parse(d.data,s,i):h=d.data}catch{p="failed parsing "+n+" to json"}if(p)return r(p,!1);r(null,h)})}},{key:"create",value:function(n,r,s,i,o){var a=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var l=this.options.parsePayload(r,s,i),u=0,c=[],d=[];n.forEach(function(h){var p=a.options.addPath;typeof a.options.addPath=="function"&&(p=a.options.addPath(h,r));var g=a.services.interpolator.interpolate(p,{lng:h,ns:r});a.options.request(a.options,g,l,function(y,S){u+=1,c.push(y),d.push(S),u===n.length&&typeof o=="function"&&o(c,d)})})}}},{key:"reload",value:function(){var n=this,r=this.services,s=r.backendConnector,i=r.languageUtils,o=r.logger,a=s.language;if(!(a&&a.toLowerCase()==="cimode")){var l=[],u=function(d){var h=i.toResolveHierarchy(d);h.forEach(function(p){l.indexOf(p)<0&&l.push(p)})};u(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(c){return u(c)}),l.forEach(function(c){n.allOptions.ns.forEach(function(d){s.read(c,d,"read",null,null,function(h,p){h&&o.warn("loading namespace ".concat(d," for language ").concat(c," failed"),h),!h&&p&&o.log("loaded namespace ".concat(d," for language ").concat(c),p),s.loaded("".concat(c,"|").concat(d),h,p)})})})}}}]),e}();Cm.type="backend";function M2(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const Lf={};function hu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&Lf[t[0]]||(typeof t[0]=="string"&&(Lf[t[0]]=new Date),M2(...t))}const Rm=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function Mf(e,t,n){e.loadNamespaces(t,Rm(e,n))}function Df(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(s=>{e.options.ns.indexOf(s)<0&&e.options.ns.push(s)}),e.loadLanguages(t,Rm(e,r))}function D2(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],s=t.options?t.options.fallbackLng:!1,i=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(a,l)=>{const u=t.services.backendConnector.state[`${a}|${l}`];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(r,e)&&(!s||o(i,e)))}function F2(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(hu("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(s,i)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!i(s.isLanguageChangingTo,e))return!1}}):D2(e,t,n)}const $2=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,z2={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},U2=e=>z2[e],B2=e=>e.replace($2,U2);let pu={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:B2};function V2(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};pu={...pu,...e}}function H2(){return pu}let km;function q2(e){km=e}function Q2(){return km}const W2={type:"3rdParty",init(e){V2(e.options.react),q2(e)}},K2=x.createContext();class Z2{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const G2=(e,t)=>{const n=x.useRef();return x.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function pe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:s}=x.useContext(K2)||{},i=n||r||Q2();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new Z2),!i){hu("You will need to pass in an i18next instance by using initReactI18next");const w=(C,R)=>typeof R=="string"?R:R&&typeof R=="object"&&typeof R.defaultValue=="string"?R.defaultValue:Array.isArray(C)?C[C.length-1]:C,b=[w,{},!1];return b.t=w,b.i18n={},b.ready=!1,b}i.options.react&&i.options.react.wait!==void 0&&hu("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...H2(),...i.options.react,...t},{useSuspense:a,keyPrefix:l}=o;let u=e||s||i.options&&i.options.defaultNS;u=typeof u=="string"?[u]:u||["translation"],i.reportNamespaces.addUsedNamespaces&&i.reportNamespaces.addUsedNamespaces(u);const c=(i.isInitialized||i.initializedStoreOnce)&&u.every(w=>F2(w,i,o));function d(){return i.getFixedT(t.lng||null,o.nsMode==="fallback"?u:u[0],l)}const[h,p]=x.useState(d);let g=u.join();t.lng&&(g=`${t.lng}${g}`);const y=G2(g),S=x.useRef(!0);x.useEffect(()=>{const{bindI18n:w,bindI18nStore:b}=o;S.current=!0,!c&&!a&&(t.lng?Df(i,t.lng,u,()=>{S.current&&p(d)}):Mf(i,u,()=>{S.current&&p(d)})),c&&y&&y!==g&&S.current&&p(d);function C(){S.current&&p(d)}return w&&i&&i.on(w,C),b&&i&&i.store.on(b,C),()=>{S.current=!1,w&&i&&w.split(" ").forEach(R=>i.off(R,C)),b&&i&&b.split(" ").forEach(R=>i.store.off(R,C))}},[i,g]);const m=x.useRef(!0);x.useEffect(()=>{S.current&&!m.current&&p(d),m.current=!1},[i,l]);const v=[h,i,c];if(v.t=h,v.i18n=i,v.ready=c,c||!c&&!a)return v;throw new Promise(w=>{t.lng?Df(i,t.lng,u,()=>w()):Mf(i,u,()=>w())})}Ne.use(Cm).use(W2).init({backend:{loadPath:(e,t)=>t.map(r=>r==="common"?"/i18n":`/${r}/i18n`),parse:e=>JSON.parse(e)},defaultNS:"common",ns:["common"],fallbackLng:"fr",lng:"fr",interpolation:{escapeValue:!1,prefix:"[[",suffix:"]]"},debug:!1});class Gr{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const n={listener:t};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const qs=typeof window>"u"||"Deno"in window;function at(){}function X2(e,t){return typeof e=="function"?e(t):e}function mu(e){return typeof e=="number"&&e>=0&&e!==1/0}function Pm(e,t){return Math.max(e+(t||0)-Date.now(),0)}function gr(e,t,n){return bi(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Y2(e,t,n){return bi(e)?typeof t=="function"?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function fn(e,t,n){return bi(e)?[{...t,queryKey:e},n]:[e||{},t]}function Ff(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(bi(o)){if(r){if(t.queryHash!==zc(o,t.options))return!1}else if(!zo(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||typeof s<"u"&&s!==t.state.fetchStatus||i&&!i(t))}function $f(e,t){const{exact:n,fetching:r,predicate:s,mutationKey:i}=e;if(bi(i)){if(!t.options.mutationKey)return!1;if(n){if(Qn(t.options.mutationKey)!==Qn(i))return!1}else if(!zo(t.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||s&&!s(t))}function zc(e,t){return((t==null?void 0:t.queryKeyHashFn)||Qn)(e)}function Qn(e){return JSON.stringify(e,(t,n)=>gu(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function zo(e,t){return Om(e,t)}function Om(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Om(e[n],t[n])):!1}function Nm(e,t){if(e===t)return e;const n=zf(e)&&zf(t);if(n||gu(e)&&gu(t)){const r=n?e.length:Object.keys(e).length,s=n?t:Object.keys(t),i=s.length,o=n?[]:{};let a=0;for(let l=0;l<i;l++){const u=n?l:s[l];o[u]=Nm(e[u],t[u]),o[u]===e[u]&&a++}return r===i&&a===r?e:o}return t}function Uo(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function zf(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function gu(e){if(!Uf(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!Uf(n)||!n.hasOwnProperty("isPrototypeOf"))}function Uf(e){return Object.prototype.toString.call(e)==="[object Object]"}function bi(e){return Array.isArray(e)}function jm(e){return new Promise(t=>{setTimeout(t,e)})}function Bf(e){jm(0).then(e)}function J2(){if(typeof AbortController=="function")return new AbortController}function vu(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Nm(e,t):t}class ew extends Gr{constructor(){super(),this.setup=t=>{if(!qs&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const Bo=new ew,Vf=["online","offline"];class tw extends Gr{constructor(){super(),this.setup=t=>{if(!qs&&window.addEventListener){const n=()=>t();return Vf.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{Vf.forEach(r=>{window.removeEventListener(r,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const Vo=new tw;function nw(e){return Math.min(1e3*2**e,3e4)}function ja(e){return(e??"online")==="online"?Vo.isOnline():!0}class Tm{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function go(e){return e instanceof Tm}function _m(e){let t=!1,n=0,r=!1,s,i,o;const a=new Promise((S,m)=>{i=S,o=m}),l=S=>{r||(p(new Tm(S)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},d=()=>!Bo.isFocused()||e.networkMode!=="always"&&!Vo.isOnline(),h=S=>{r||(r=!0,e.onSuccess==null||e.onSuccess(S),s==null||s(),i(S))},p=S=>{r||(r=!0,e.onError==null||e.onError(S),s==null||s(),o(S))},g=()=>new Promise(S=>{s=m=>{const v=r||!d();return v&&S(m),v},e.onPause==null||e.onPause()}).then(()=>{s=void 0,r||e.onContinue==null||e.onContinue()}),y=()=>{if(r)return;let S;try{S=e.fn()}catch(m){S=Promise.reject(m)}Promise.resolve(S).then(h).catch(m=>{var v,w;if(r)return;const b=(v=e.retry)!=null?v:3,C=(w=e.retryDelay)!=null?w:nw,R=typeof C=="function"?C(n,m):C,k=b===!0||typeof b=="number"&&n<b||typeof b=="function"&&b(n,m);if(t||!k){p(m);return}n++,e.onFail==null||e.onFail(n,m),jm(R).then(()=>{if(d())return g()}).then(()=>{t?p(m):y()})})};return ja(e.networkMode)?y():g().then(y),{promise:a,cancel:l,continue:()=>(s==null?void 0:s())?a:Promise.resolve(),cancelRetry:u,continueRetry:c}}const Uc=console;function rw(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const s=c=>{let d;t++;try{d=c()}finally{t--,t||a()}return d},i=c=>{t?e.push(c):Bf(()=>{n(c)})},o=c=>(...d)=>{i(()=>{c(...d)})},a=()=>{const c=e;e=[],c.length&&Bf(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:s,batchCalls:o,schedule:i,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}const ae=rw();class Im{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mu(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(qs?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class sw extends Im{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||Uc,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||iw(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=vu(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(at).catch(at):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Pm(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,s;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(g=>g.options.queryFn);p&&this.setOptions(p.options)}const o=J2(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};l(a);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(a)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),c={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};if(l(c),(r=this.options.behavior)==null||r.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((s=c.fetchOptions)==null?void 0:s.meta)){var d;this.dispatch({type:"fetch",meta:(d=c.fetchOptions)==null?void 0:d.meta})}const h=p=>{if(go(p)&&p.silent||this.dispatch({type:"error",error:p}),!go(p)){var g,y,S,m;(g=(y=this.cache.config).onError)==null||g.call(y,p,this),(S=(m=this.cache.config).onSettled)==null||S.call(m,this.state.data,p,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=_m({fn:c.fetchFn,abort:o==null?void 0:o.abort.bind(o),onSuccess:p=>{var g,y,S,m;if(typeof p>"u"){h(new Error(this.queryHash+" data is undefined"));return}this.setData(p),(g=(y=this.cache.config).onSuccess)==null||g.call(y,p,this),(S=(m=this.cache.config).onSettled)==null||S.call(m,p,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:h,onFail:(p,g)=>{this.dispatch({type:"failed",failureCount:p,error:g})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var s,i;switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(s=t.meta)!=null?s:null,fetchStatus:ja(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(i=t.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return go(o)&&o.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ae.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function iw(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}class Am extends Gr{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var s;const i=n.queryKey,o=(s=n.queryHash)!=null?s:zc(i,n);let a=this.get(o);return a||(a=new sw({cache:this,logger:t.getLogger(),queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){ae.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=fn(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(s=>Ff(r,s))}findAll(t,n){const[r]=fn(t,n);return Object.keys(r).length>0?this.queries.filter(s=>Ff(r,s)):this.queries}notify(t){ae.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){ae.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){ae.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class ow extends Im{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||Uc,this.observers=[],this.state=t.state||Lm(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,n;return(t=(n=this.retryer)==null?void 0:n.continue())!=null?t:this.execute()}async execute(){const t=()=>{var k;return this.retryer=_m({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(P,_)=>{this.dispatch({type:"failed",failureCount:P,error:_})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(k=this.options.retry)!=null?k:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,s,i,o,a,l,u,c;if(!n){var d,h,p,g;this.dispatch({type:"loading",variables:this.options.variables}),await((d=(h=this.mutationCache.config).onMutate)==null?void 0:d.call(h,this.state.variables,this));const P=await((p=(g=this.options).onMutate)==null?void 0:p.call(g,this.state.variables));P!==this.state.context&&this.dispatch({type:"loading",context:P,variables:this.state.variables})}const k=await t();return await((r=(s=this.mutationCache.config).onSuccess)==null?void 0:r.call(s,k,this.state.variables,this.state.context,this)),await((i=(o=this.options).onSuccess)==null?void 0:i.call(o,k,this.state.variables,this.state.context)),await((a=(l=this.mutationCache.config).onSettled)==null?void 0:a.call(l,k,null,this.state.variables,this.state.context,this)),await((u=(c=this.options).onSettled)==null?void 0:u.call(c,k,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:k}),k}catch(k){try{var y,S,m,v,w,b,C,R;throw await((y=(S=this.mutationCache.config).onError)==null?void 0:y.call(S,k,this.state.variables,this.state.context,this)),await((m=(v=this.options).onError)==null?void 0:m.call(v,k,this.state.variables,this.state.context)),await((w=(b=this.mutationCache.config).onSettled)==null?void 0:w.call(b,void 0,k,this.state.variables,this.state.context,this)),await((C=(R=this.options).onSettled)==null?void 0:C.call(R,void 0,k,this.state.variables,this.state.context)),k}finally{this.dispatch({type:"error",error:k})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!ja(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),ae.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function Lm(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class aw extends Gr{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const s=new ow({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0});return this.add(s),s}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){ae.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>$f(t,n))}findAll(t){return this.mutations.filter(n=>$f(t,n))}notify(t){ae.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(r=>r.state.isPaused);return ae.batch(()=>n.reduce((r,s)=>r.then(()=>s.continue().catch(at)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function yu(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,s,i,o;const a=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,l=(r=e.fetchOptions)==null||(s=r.meta)==null?void 0:s.fetchMore,u=l==null?void 0:l.pageParam,c=(l==null?void 0:l.direction)==="forward",d=(l==null?void 0:l.direction)==="backward",h=((i=e.state.data)==null?void 0:i.pages)||[],p=((o=e.state.data)==null?void 0:o.pageParams)||[];let g=p,y=!1;const S=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>{var k;if((k=e.signal)!=null&&k.aborted)y=!0;else{var P;(P=e.signal)==null||P.addEventListener("abort",()=>{y=!0})}return e.signal}})},m=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),v=(R,k,P,_)=>(g=_?[k,...g]:[...g,k],_?[P,...R]:[...R,P]),w=(R,k,P,_)=>{if(y)return Promise.reject("Cancelled");if(typeof P>"u"&&!k&&R.length)return Promise.resolve(R);const F={queryKey:e.queryKey,pageParam:P,meta:e.options.meta};S(F);const A=m(F);return Promise.resolve(A).then(U=>v(R,P,U,_))};let b;if(!h.length)b=w([]);else if(c){const R=typeof u<"u",k=R?u:wu(e.options,h);b=w(h,R,k)}else if(d){const R=typeof u<"u",k=R?u:Mm(e.options,h);b=w(h,R,k,!0)}else{g=[];const R=typeof e.options.getNextPageParam>"u";b=(a&&h[0]?a(h[0],0,h):!0)?w([],R,p[0]):Promise.resolve(v([],p[0],h[0]));for(let P=1;P<h.length;P++)b=b.then(_=>{if(a&&h[P]?a(h[P],P,h):!0){const A=R?p[P]:wu(e.options,_);return w(_,R,A)}return Promise.resolve(v(_,p[P],h[P]))})}return b.then(R=>({pages:R,pageParams:g}))}}}}function wu(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function Mm(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}function lw(e,t){if(e.getNextPageParam&&Array.isArray(t)){const n=wu(e,t);return typeof n<"u"&&n!==null&&n!==!1}}function uw(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const n=Mm(e,t);return typeof n<"u"&&n!==null&&n!==!1}}class cw{constructor(t={}){this.queryCache=t.queryCache||new Am,this.mutationCache=t.mutationCache||new aw,this.logger=t.logger||Uc,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=Bo.subscribe(()=>{Bo.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Vo.subscribe(()=>{Vo.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,n;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(t,n){const[r]=fn(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}ensureQueryData(t,n,r){const s=gr(t,n,r),i=this.getQueryData(s.queryKey);return i?Promise.resolve(i):this.fetchQuery(s)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const s=r.data;return[n,s]})}setQueryData(t,n,r){const s=this.queryCache.find(t),i=s==null?void 0:s.state.data,o=X2(n,i);if(typeof o>"u")return;const a=gr(t),l=this.defaultQueryOptions(a);return this.queryCache.build(this,l).setData(o,{...r,manual:!0})}setQueriesData(t,n,r){return ae.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:s})=>[s,this.setQueryData(s,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=fn(t,n),s=this.queryCache;ae.batch(()=>{s.findAll(r).forEach(i=>{s.remove(i)})})}resetQueries(t,n,r){const[s,i]=fn(t,n,r),o=this.queryCache,a={type:"active",...s};return ae.batch(()=>(o.findAll(s).forEach(l=>{l.reset()}),this.refetchQueries(a,i)))}cancelQueries(t,n,r){const[s,i={}]=fn(t,n,r);typeof i.revert>"u"&&(i.revert=!0);const o=ae.batch(()=>this.queryCache.findAll(s).map(a=>a.cancel(i)));return Promise.all(o).then(at).catch(at)}invalidateQueries(t,n,r){const[s,i]=fn(t,n,r);return ae.batch(()=>{var o,a;if(this.queryCache.findAll(s).forEach(u=>{u.invalidate()}),s.refetchType==="none")return Promise.resolve();const l={...s,type:(o=(a=s.refetchType)!=null?a:s.type)!=null?o:"active"};return this.refetchQueries(l,i)})}refetchQueries(t,n,r){const[s,i]=fn(t,n,r),o=ae.batch(()=>this.queryCache.findAll(s).filter(l=>!l.isDisabled()).map(l=>{var u;return l.fetch(void 0,{...i,cancelRefetch:(u=i==null?void 0:i.cancelRefetch)!=null?u:!0,meta:{refetchPage:s.refetchPage}})}));let a=Promise.all(o).then(at);return i!=null&&i.throwOnError||(a=a.catch(at)),a}fetchQuery(t,n,r){const s=gr(t,n,r),i=this.defaultQueryOptions(s);typeof i.retry>"u"&&(i.retry=!1);const o=this.queryCache.build(this,i);return o.isStaleByTime(i.staleTime)?o.fetch(i):Promise.resolve(o.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(at).catch(at)}fetchInfiniteQuery(t,n,r){const s=gr(t,n,r);return s.behavior=yu(),this.fetchQuery(s)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(at).catch(at)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(s=>Qn(t)===Qn(s.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>zo(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(s=>Qn(t)===Qn(s.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>zo(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=zc(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class Dm extends Gr{constructor(t,n){super(),this.client=t,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),Hf(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return xu(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return xu(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const r=this.options,s=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),Uo(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const i=this.hasListeners();i&&qf(this.currentQuery,s,this.options,r)&&this.executeFetch(),this.updateResult(n),i&&(this.currentQuery!==s||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const o=this.computeRefetchInterval();i&&(this.currentQuery!==s||this.options.enabled!==r.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t),r=this.createResult(n,t);return fw(this,r,t)&&(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),t[r])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...n}={}){return this.fetch({...n,meta:{refetchPage:t}})}fetchOptimistic(t){const n=this.client.defaultQueryOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){var n;return this.executeFetch({...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let n=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(at)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),qs||this.currentResult.isStale||!mu(this.options.staleTime))return;const n=Pm(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},n)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(qs||this.options.enabled===!1||!mu(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Bo.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,n){const r=this.currentQuery,s=this.options,i=this.currentResult,o=this.currentResultState,a=this.currentResultOptions,l=t!==r,u=l?t.state:this.currentQueryInitialState,c=l?this.currentResult:this.previousQueryResult,{state:d}=t;let{dataUpdatedAt:h,error:p,errorUpdatedAt:g,fetchStatus:y,status:S}=d,m=!1,v=!1,w;if(n._optimisticResults){const P=this.hasListeners(),_=!P&&Hf(t,n),F=P&&qf(t,r,n,s);(_||F)&&(y=ja(t.options.networkMode)?"fetching":"paused",h||(S="loading")),n._optimisticResults==="isRestoring"&&(y="idle")}if(n.keepPreviousData&&!d.dataUpdatedAt&&c!=null&&c.isSuccess&&S!=="error")w=c.data,h=c.dataUpdatedAt,S=c.status,m=!0;else if(n.select&&typeof d.data<"u")if(i&&d.data===(o==null?void 0:o.data)&&n.select===this.selectFn)w=this.selectResult;else try{this.selectFn=n.select,w=n.select(d.data),w=vu(i==null?void 0:i.data,w,n),this.selectResult=w,this.selectError=null}catch(P){this.selectError=P}else w=d.data;if(typeof n.placeholderData<"u"&&typeof w>"u"&&S==="loading"){let P;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))P=i.data;else if(P=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof P<"u")try{P=n.select(P),this.selectError=null}catch(_){this.selectError=_}typeof P<"u"&&(S="success",w=vu(i==null?void 0:i.data,P,n),v=!0)}this.selectError&&(p=this.selectError,w=this.selectResult,g=Date.now(),S="error");const b=y==="fetching",C=S==="loading",R=S==="error";return{status:S,fetchStatus:y,isLoading:C,isSuccess:S==="success",isError:R,isInitialLoading:C&&b,data:w,dataUpdatedAt:h,error:p,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:b,isRefetching:b&&!C,isLoadingError:R&&d.dataUpdatedAt===0,isPaused:y==="paused",isPlaceholderData:v,isPreviousData:m,isRefetchError:R&&d.dataUpdatedAt!==0,isStale:Bc(t,n),refetch:this.refetch,remove:this.remove}}updateResult(t){const n=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Uo(r,n))return;this.currentResult=r;const s={cache:!0},i=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!this.trackedProps.size)return!0;const l=new Set(a??this.trackedProps);return this.options.useErrorBoundary&&l.add("error"),Object.keys(this.currentResult).some(u=>{const c=u;return this.currentResult[c]!==n[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&i()&&(s.listeners=!0),this.notify({...s,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const n={};t.type==="success"?n.onSuccess=!t.manual:t.type==="error"&&!go(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){ae.batch(()=>{if(t.onSuccess){var n,r,s,i;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(s=(i=this.options).onSettled)==null||s.call(i,this.currentResult.data,null)}else if(t.onError){var o,a,l,u;(o=(a=this.options).onError)==null||o.call(a,this.currentResult.error),(l=(u=this.options).onSettled)==null||l.call(u,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function dw(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Hf(e,t){return dw(e,t)||e.state.dataUpdatedAt>0&&xu(e,t,t.refetchOnMount)}function xu(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Bc(e,t)}return!1}function qf(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&Bc(e,n)}function Bc(e,t){return e.isStaleByTime(t.staleTime)}function fw(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!Uo(e.getCurrentResult(),t)}class hw extends Dm{constructor(t,n){super(t,n)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,n){super.setOptions({...t,behavior:yu()},n)}getOptimisticResult(t){return t.behavior=yu(),super.getOptimisticResult(t)}fetchNextPage({pageParam:t,...n}={}){return this.fetch({...n,meta:{fetchMore:{direction:"forward",pageParam:t}}})}fetchPreviousPage({pageParam:t,...n}={}){return this.fetch({...n,meta:{fetchMore:{direction:"backward",pageParam:t}}})}createResult(t,n){var r,s,i,o,a,l;const{state:u}=t,c=super.createResult(t,n),{isFetching:d,isRefetching:h}=c,p=d&&((r=u.fetchMeta)==null||(s=r.fetchMore)==null?void 0:s.direction)==="forward",g=d&&((i=u.fetchMeta)==null||(o=i.fetchMore)==null?void 0:o.direction)==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:lw(n,(a=u.data)==null?void 0:a.pages),hasPreviousPage:uw(n,(l=u.data)==null?void 0:l.pages),isFetchingNextPage:p,isFetchingPreviousPage:g,isRefetching:h&&!p&&!g}}}let pw=class extends Gr{constructor(t,n){super(),this.client=t,this.setOptions(n),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=this.client.defaultMutationOptions(t),Uo(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(n=this.currentMutation)==null||n.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.currentMutation)==null||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();const n={listeners:!0};t.type==="success"?n.onSuccess=!0:t.type==="error"&&(n.onError=!0),this.notify(n)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,n){return this.mutateOptions=n,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof t<"u"?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const t=this.currentMutation?this.currentMutation.state:Lm(),n={...t,isLoading:t.status==="loading",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=n}notify(t){ae.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(t.onSuccess){var n,r,s,i;(n=(r=this.mutateOptions).onSuccess)==null||n.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(s=(i=this.mutateOptions).onSettled)==null||s.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(t.onError){var o,a,l,u;(o=(a=this.mutateOptions).onError)==null||o.call(a,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(l=(u=this.mutateOptions).onSettled)==null||l.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}t.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)})})}};var Fm={exports:{}},rt={},$m={exports:{}},zm={};/**
19
19
  * @license React
20
20
  * scheduler.production.min.js
21
21
  *
@@ -23,7 +23,7 @@ var jy=Object.defineProperty;var Ty=(e,t,n)=>t in e?jy(e,t,{enumerable:!0,config
23
23
  *
24
24
  * This source code is licensed under the MIT license found in the
25
25
  * LICENSE file in the root directory of this source tree.
26
- */(function(e){function t(N,D){var M=N.length;N.push(D);e:for(;0<M;){var K=M-1>>>1,Z=N[K];if(0<s(Z,D))N[K]=D,N[M]=Z,M=K;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var D=N[0],M=N.pop();if(M!==D){N[0]=M;e:for(var K=0,Z=N.length,le=Z>>>1;K<le;){var we=2*(K+1)-1,xe=N[we],G=we+1,pe=N[G];if(0>s(xe,M))G<Z&&0>s(pe,xe)?(N[K]=pe,N[G]=M,K=G):(N[K]=xe,N[we]=M,K=we);else if(G<Z&&0>s(pe,M))N[K]=pe,N[G]=M,K=G;else break e}}return D}function s(N,D){var M=N.sortIndex-D.sortIndex;return M!==0?M:N.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,d=null,h=3,m=!1,g=!1,y=!1,S=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(N){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=N)r(u),D.sortIndex=D.expirationTime,t(l,D);else break;D=n(u)}}function b(N){if(y=!1,w(N),!g)if(n(l)!==null)g=!0,O(C);else{var D=n(u);D!==null&&L(b,D.startTime-N)}}function C(N,D){g=!1,y&&(y=!1,p(P),P=-1),m=!0;var M=h;try{for(w(D),d=n(l);d!==null&&(!(d.expirationTime>D)||N&&!A());){var K=d.callback;if(typeof K=="function"){d.callback=null,h=d.priorityLevel;var Z=K(d.expirationTime<=D);D=e.unstable_now(),typeof Z=="function"?d.callback=Z:d===n(l)&&r(l),w(D)}else r(l);d=n(l)}if(d!==null)var le=!0;else{var we=n(u);we!==null&&L(b,we.startTime-D),le=!1}return le}finally{d=null,h=M,m=!1}}var R=!1,k=null,P=-1,_=5,F=-1;function A(){return!(e.unstable_now()-F<_)}function I(){if(k!==null){var N=e.unstable_now();F=N;var D=!0;try{D=k(!0,N)}finally{D?U():(R=!1,k=null)}}else R=!1}var U;if(typeof v=="function")U=function(){v(I)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,E=$.port2;$.port1.onmessage=I,U=function(){E.postMessage(null)}}else U=function(){S(I,0)};function O(N){k=N,R||(R=!0,U())}function L(N,D){P=S(function(){N(e.unstable_now())},D)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_continueExecution=function(){g||m||(g=!0,O(C))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(N){switch(h){case 1:case 2:case 3:var D=3;break;default:D=h}var M=h;h=D;try{return N()}finally{h=M}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,D){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var M=h;h=N;try{return D()}finally{h=M}},e.unstable_scheduleCallback=function(N,D,M){var K=e.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?K+M:K):M=K,N){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=M+Z,N={id:c++,callback:D,priorityLevel:N,startTime:M,expirationTime:Z,sortIndex:-1},M>K?(N.sortIndex=M,t(u,N),n(l)===null&&N===n(u)&&(y?(p(P),P=-1):y=!0,L(b,M-K))):(N.sortIndex=Z,t(l,N),g||m||(g=!0,O(C))),N},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(N){var D=h;return function(){var M=h;h=D;try{return N.apply(this,arguments)}finally{h=M}}}})(zm);$m.exports=zm;var mw=$m.exports;/**
26
+ */(function(e){function t(N,D){var M=N.length;N.push(D);e:for(;0<M;){var K=M-1>>>1,Z=N[K];if(0<s(Z,D))N[K]=D,N[M]=Z,M=K;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var D=N[0],M=N.pop();if(M!==D){N[0]=M;e:for(var K=0,Z=N.length,le=Z>>>1;K<le;){var we=2*(K+1)-1,xe=N[we],G=we+1,me=N[G];if(0>s(xe,M))G<Z&&0>s(me,xe)?(N[K]=me,N[G]=M,K=G):(N[K]=xe,N[we]=M,K=we);else if(G<Z&&0>s(me,M))N[K]=me,N[G]=M,K=G;else break e}}return D}function s(N,D){var M=N.sortIndex-D.sortIndex;return M!==0?M:N.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,d=null,h=3,p=!1,g=!1,y=!1,S=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(N){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=N)r(u),D.sortIndex=D.expirationTime,t(l,D);else break;D=n(u)}}function b(N){if(y=!1,w(N),!g)if(n(l)!==null)g=!0,O(C);else{var D=n(u);D!==null&&L(b,D.startTime-N)}}function C(N,D){g=!1,y&&(y=!1,m(P),P=-1),p=!0;var M=h;try{for(w(D),d=n(l);d!==null&&(!(d.expirationTime>D)||N&&!A());){var K=d.callback;if(typeof K=="function"){d.callback=null,h=d.priorityLevel;var Z=K(d.expirationTime<=D);D=e.unstable_now(),typeof Z=="function"?d.callback=Z:d===n(l)&&r(l),w(D)}else r(l);d=n(l)}if(d!==null)var le=!0;else{var we=n(u);we!==null&&L(b,we.startTime-D),le=!1}return le}finally{d=null,h=M,p=!1}}var R=!1,k=null,P=-1,_=5,F=-1;function A(){return!(e.unstable_now()-F<_)}function I(){if(k!==null){var N=e.unstable_now();F=N;var D=!0;try{D=k(!0,N)}finally{D?U():(R=!1,k=null)}}else R=!1}var U;if(typeof v=="function")U=function(){v(I)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,E=$.port2;$.port1.onmessage=I,U=function(){E.postMessage(null)}}else U=function(){S(I,0)};function O(N){k=N,R||(R=!0,U())}function L(N,D){P=S(function(){N(e.unstable_now())},D)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_continueExecution=function(){g||p||(g=!0,O(C))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(N){switch(h){case 1:case 2:case 3:var D=3;break;default:D=h}var M=h;h=D;try{return N()}finally{h=M}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,D){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var M=h;h=N;try{return D()}finally{h=M}},e.unstable_scheduleCallback=function(N,D,M){var K=e.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?K+M:K):M=K,N){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=M+Z,N={id:c++,callback:D,priorityLevel:N,startTime:M,expirationTime:Z,sortIndex:-1},M>K?(N.sortIndex=M,t(u,N),n(l)===null&&N===n(u)&&(y?(m(P),P=-1):y=!0,L(b,M-K))):(N.sortIndex=Z,t(l,N),g||p||(g=!0,O(C))),N},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(N){var D=h;return function(){var M=h;h=D;try{return N.apply(this,arguments)}finally{h=M}}}})(zm);$m.exports=zm;var mw=$m.exports;/**
27
27
  * @license React
28
28
  * react-dom.production.min.js
29
29
  *
@@ -35,10 +35,10 @@ var jy=Object.defineProperty;var Ty=(e,t,n)=>t in e?jy(e,t,{enumerable:!0,config
35
35
  `+bl+e}var El=!1;function Cl(e,t){if(!e||El)return"";El=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(`
36
36
  `),i=r.stack.split(`
37
37
  `),o=s.length-1,a=i.length-1;1<=o&&0<=a&&s[o]!==i[a];)a--;for(;1<=o&&0<=a;o--,a--)if(s[o]!==i[a]){if(o!==1||a!==1)do if(o--,a--,0>a||s[o]!==i[a]){var l=`
38
- `+s[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{El=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ws(e):""}function xw(e){switch(e.tag){case 5:return ws(e.type);case 16:return ws("Lazy");case 13:return ws("Suspense");case 19:return ws("SuspenseList");case 0:case 2:case 15:return e=Cl(e.type,!1),e;case 11:return e=Cl(e.type.render,!1),e;case 1:return e=Cl(e.type,!0),e;default:return""}}function Ru(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case yr:return"Fragment";case vr:return"Portal";case bu:return"Profiler";case Qc:return"StrictMode";case Eu:return"Suspense";case Cu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Hm:return(e.displayName||"Context")+".Consumer";case Vm:return(e._context.displayName||"Context")+".Provider";case Wc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Kc:return t=e.displayName||null,t!==null?t:Ru(e.type)||"Memo";case hn:t=e._payload,e=e._init;try{return Ru(e(t))}catch{}}return null}function Sw(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ru(t);case 8:return t===Qc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function _n(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Qm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function bw(e){var t=Qm(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vi(e){e._valueTracker||(e._valueTracker=bw(e))}function Wm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Qm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ho(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}}function ku(e,t){var n=t.checked;return ie({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Zf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=_n(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Km(e,t){t=t.checked,t!=null&&qc(e,"checked",t,!1)}function Pu(e,t){Km(e,t);var n=_n(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ou(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ou(e,t.type,_n(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Gf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ou(e,t,n){(t!=="number"||Ho(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var xs=Array.isArray;function jr(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+_n(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Nu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(T(91));return ie({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Xf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(T(92));if(xs(n)){if(1<n.length)throw Error(T(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:_n(n)}}function Zm(e,t){var n=_n(t.value),r=_n(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Yf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Gm(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ju(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Gm(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Hi,Xm=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Hi=Hi||document.createElement("div"),Hi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Hi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ws(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ks={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ew=["Webkit","ms","Moz","O"];Object.keys(ks).forEach(function(e){Ew.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ks[t]=ks[e]})});function Ym(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ks.hasOwnProperty(e)&&ks[e]?(""+t).trim():t+"px"}function Jm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Ym(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var Cw=ie({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Tu(e,t){if(t){if(Cw[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function _u(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Iu=null;function Zc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Au=null,Tr=null,_r=null;function Jf(e){if(e=Ri(e)){if(typeof Au!="function")throw Error(T(280));var t=e.stateNode;t&&(t=La(t),Au(e.stateNode,e.type,t))}}function e1(e){Tr?_r?_r.push(e):_r=[e]:Tr=e}function t1(){if(Tr){var e=Tr,t=_r;if(_r=Tr=null,Jf(e),t)for(e=0;e<t.length;e++)Jf(t[e])}}function n1(e,t){return e(t)}function r1(){}var Rl=!1;function s1(e,t,n){if(Rl)return e(t,n);Rl=!0;try{return n1(e,t,n)}finally{Rl=!1,(Tr!==null||_r!==null)&&(r1(),t1())}}function Ks(e,t){var n=e.stateNode;if(n===null)return null;var r=La(n);if(r===null)return null;n=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(n&&typeof n!="function")throw Error(T(231,t,typeof n));return n}var Lu=!1;if(en)try{var os={};Object.defineProperty(os,"passive",{get:function(){Lu=!0}}),window.addEventListener("test",os,os),window.removeEventListener("test",os,os)}catch{Lu=!1}function Rw(e,t,n,r,s,i,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Ps=!1,qo=null,Qo=!1,Mu=null,kw={onError:function(e){Ps=!0,qo=e}};function Pw(e,t,n,r,s,i,o,a,l){Ps=!1,qo=null,Rw.apply(kw,arguments)}function Ow(e,t,n,r,s,i,o,a,l){if(Pw.apply(this,arguments),Ps){if(Ps){var u=qo;Ps=!1,qo=null}else throw Error(T(198));Qo||(Qo=!0,Mu=u)}}function lr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function i1(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 eh(e){if(lr(e)!==e)throw Error(T(188))}function Nw(e){var t=e.alternate;if(!t){if(t=lr(e),t===null)throw Error(T(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return eh(s),e;if(i===r)return eh(s),t;i=i.sibling}throw Error(T(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o){for(a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o)throw Error(T(189))}}if(n.alternate!==r)throw Error(T(190))}if(n.tag!==3)throw Error(T(188));return n.stateNode.current===n?e:t}function o1(e){return e=Nw(e),e!==null?a1(e):null}function a1(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=a1(e);if(t!==null)return t;e=e.sibling}return null}var l1=nt.unstable_scheduleCallback,th=nt.unstable_cancelCallback,jw=nt.unstable_shouldYield,Tw=nt.unstable_requestPaint,ue=nt.unstable_now,_w=nt.unstable_getCurrentPriorityLevel,Gc=nt.unstable_ImmediatePriority,u1=nt.unstable_UserBlockingPriority,Wo=nt.unstable_NormalPriority,Iw=nt.unstable_LowPriority,c1=nt.unstable_IdlePriority,Ta=null,zt=null;function Aw(e){if(zt&&typeof zt.onCommitFiberRoot=="function")try{zt.onCommitFiberRoot(Ta,e,void 0,(e.current.flags&128)===128)}catch{}}var kt=Math.clz32?Math.clz32:Dw,Lw=Math.log,Mw=Math.LN2;function Dw(e){return e>>>=0,e===0?32:31-(Lw(e)/Mw|0)|0}var qi=64,Qi=4194304;function Ss(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ko(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=Ss(a):(i&=o,i!==0&&(r=Ss(i)))}else o=n&~s,o!==0?r=Ss(o):i!==0&&(r=Ss(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-kt(t),s=1<<n,r|=e[n],t&=~s;return r}function Fw(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function $w(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-kt(i),a=1<<o,l=s[o];l===-1?(!(a&n)||a&r)&&(s[o]=Fw(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function Du(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function d1(){var e=qi;return qi<<=1,!(qi&4194240)&&(qi=64),e}function kl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ei(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-kt(t),e[t]=n}function zw(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-kt(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Xc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-kt(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var Y=0;function f1(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var h1,Yc,p1,m1,g1,Fu=!1,Wi=[],En=null,Cn=null,Rn=null,Zs=new Map,Gs=new Map,mn=[],Uw="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 submit".split(" ");function nh(e,t){switch(e){case"focusin":case"focusout":En=null;break;case"dragenter":case"dragleave":Cn=null;break;case"mouseover":case"mouseout":Rn=null;break;case"pointerover":case"pointerout":Zs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gs.delete(t.pointerId)}}function as(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=Ri(t),t!==null&&Yc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Bw(e,t,n,r,s){switch(t){case"focusin":return En=as(En,e,t,n,r,s),!0;case"dragenter":return Cn=as(Cn,e,t,n,r,s),!0;case"mouseover":return Rn=as(Rn,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return Zs.set(i,as(Zs.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,Gs.set(i,as(Gs.get(i)||null,e,t,n,r,s)),!0}return!1}function v1(e){var t=Wn(e.target);if(t!==null){var n=lr(t);if(n!==null){if(t=n.tag,t===13){if(t=i1(n),t!==null){e.blockedOn=t,g1(e.priority,function(){p1(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function vo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=$u(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Iu=r,n.target.dispatchEvent(r),Iu=null}else return t=Ri(n),t!==null&&Yc(t),e.blockedOn=n,!1;t.shift()}return!0}function rh(e,t,n){vo(e)&&n.delete(t)}function Vw(){Fu=!1,En!==null&&vo(En)&&(En=null),Cn!==null&&vo(Cn)&&(Cn=null),Rn!==null&&vo(Rn)&&(Rn=null),Zs.forEach(rh),Gs.forEach(rh)}function ls(e,t){e.blockedOn===t&&(e.blockedOn=null,Fu||(Fu=!0,nt.unstable_scheduleCallback(nt.unstable_NormalPriority,Vw)))}function Xs(e){function t(s){return ls(s,e)}if(0<Wi.length){ls(Wi[0],e);for(var n=1;n<Wi.length;n++){var r=Wi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(En!==null&&ls(En,e),Cn!==null&&ls(Cn,e),Rn!==null&&ls(Rn,e),Zs.forEach(t),Gs.forEach(t),n=0;n<mn.length;n++)r=mn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<mn.length&&(n=mn[0],n.blockedOn===null);)v1(n),n.blockedOn===null&&mn.shift()}var Ir=on.ReactCurrentBatchConfig,Zo=!0;function Hw(e,t,n,r){var s=Y,i=Ir.transition;Ir.transition=null;try{Y=1,Jc(e,t,n,r)}finally{Y=s,Ir.transition=i}}function qw(e,t,n,r){var s=Y,i=Ir.transition;Ir.transition=null;try{Y=4,Jc(e,t,n,r)}finally{Y=s,Ir.transition=i}}function Jc(e,t,n,r){if(Zo){var s=$u(e,t,n,r);if(s===null)Ml(e,t,r,Go,n),nh(e,r);else if(Bw(s,e,t,n,r))r.stopPropagation();else if(nh(e,r),t&4&&-1<Uw.indexOf(e)){for(;s!==null;){var i=Ri(s);if(i!==null&&h1(i),i=$u(e,t,n,r),i===null&&Ml(e,t,r,Go,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else Ml(e,t,r,null,n)}}var Go=null;function $u(e,t,n,r){if(Go=null,e=Zc(r),e=Wn(e),e!==null)if(t=lr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=i1(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Go=e,null}function y1(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(_w()){case Gc:return 1;case u1:return 4;case Wo:case Iw:return 16;case c1:return 536870912;default:return 16}default:return 16}}var yn=null,ed=null,yo=null;function w1(){if(yo)return yo;var e,t=ed,n=t.length,r,s="value"in yn?yn.value:yn.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[i-r];r++);return yo=s.slice(e,1<r?1-r:void 0)}function wo(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 Ki(){return!0}function sh(){return!1}function st(e){function t(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Ki:sh,this.isPropagationStopped=sh,this}return ie(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ki)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ki)},persist:function(){},isPersistent:Ki}),t}var Xr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td=st(Xr),Ci=ie({},Xr,{view:0,detail:0}),Qw=st(Ci),Pl,Ol,us,_a=ie({},Ci,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nd,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!==us&&(us&&e.type==="mousemove"?(Pl=e.screenX-us.screenX,Ol=e.screenY-us.screenY):Ol=Pl=0,us=e),Pl)},movementY:function(e){return"movementY"in e?e.movementY:Ol}}),ih=st(_a),Ww=ie({},_a,{dataTransfer:0}),Kw=st(Ww),Zw=ie({},Ci,{relatedTarget:0}),Nl=st(Zw),Gw=ie({},Xr,{animationName:0,elapsedTime:0,pseudoElement:0}),Xw=st(Gw),Yw=ie({},Xr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Jw=st(Yw),ex=ie({},Xr,{data:0}),oh=st(ex),tx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nx={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"},rx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=rx[e])?!!t[e]:!1}function nd(){return sx}var ix=ie({},Ci,{key:function(e){if(e.key){var t=tx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=wo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?nx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nd,charCode:function(e){return e.type==="keypress"?wo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?wo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ox=st(ix),ax=ie({},_a,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ah=st(ax),lx=ie({},Ci,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nd}),ux=st(lx),cx=ie({},Xr,{propertyName:0,elapsedTime:0,pseudoElement:0}),dx=st(cx),fx=ie({},_a,{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}),hx=st(fx),px=[9,13,27,32],rd=en&&"CompositionEvent"in window,Os=null;en&&"documentMode"in document&&(Os=document.documentMode);var mx=en&&"TextEvent"in window&&!Os,x1=en&&(!rd||Os&&8<Os&&11>=Os),lh=String.fromCharCode(32),uh=!1;function S1(e,t){switch(e){case"keyup":return px.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function b1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wr=!1;function gx(e,t){switch(e){case"compositionend":return b1(t);case"keypress":return t.which!==32?null:(uh=!0,lh);case"textInput":return e=t.data,e===lh&&uh?null:e;default:return null}}function vx(e,t){if(wr)return e==="compositionend"||!rd&&S1(e,t)?(e=w1(),yo=ed=yn=null,wr=!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 x1&&t.locale!=="ko"?null:t.data;default:return null}}var yx={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"?!!yx[e.type]:t==="textarea"}function E1(e,t,n,r){e1(r),t=Xo(t,"onChange"),0<t.length&&(n=new td("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ns=null,Ys=null;function wx(e){A1(e,0)}function Ia(e){var t=br(e);if(Wm(t))return e}function xx(e,t){if(e==="change")return t}var C1=!1;if(en){var jl;if(en){var Tl="oninput"in document;if(!Tl){var dh=document.createElement("div");dh.setAttribute("oninput","return;"),Tl=typeof dh.oninput=="function"}jl=Tl}else jl=!1;C1=jl&&(!document.documentMode||9<document.documentMode)}function fh(){Ns&&(Ns.detachEvent("onpropertychange",R1),Ys=Ns=null)}function R1(e){if(e.propertyName==="value"&&Ia(Ys)){var t=[];E1(t,Ys,e,Zc(e)),s1(wx,t)}}function Sx(e,t,n){e==="focusin"?(fh(),Ns=t,Ys=n,Ns.attachEvent("onpropertychange",R1)):e==="focusout"&&fh()}function bx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ia(Ys)}function Ex(e,t){if(e==="click")return Ia(t)}function Cx(e,t){if(e==="input"||e==="change")return Ia(t)}function Rx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ot=typeof Object.is=="function"?Object.is:Rx;function Js(e,t){if(Ot(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!Su.call(t,s)||!Ot(e[s],t[s]))return!1}return!0}function hh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ph(e,t){var n=hh(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=hh(n)}}function k1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?k1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function P1(){for(var e=window,t=Ho();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ho(e.document)}return t}function sd(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")}function kx(e){var t=P1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&k1(n.ownerDocument.documentElement,n)){if(r!==null&&sd(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=ph(n,i);var o=ph(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Px=en&&"documentMode"in document&&11>=document.documentMode,xr=null,zu=null,js=null,Uu=!1;function mh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Uu||xr==null||xr!==Ho(r)||(r=xr,"selectionStart"in r&&sd(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}),js&&Js(js,r)||(js=r,r=Xo(zu,"onSelect"),0<r.length&&(t=new td("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=xr)))}function Zi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:Zi("Animation","AnimationEnd"),animationiteration:Zi("Animation","AnimationIteration"),animationstart:Zi("Animation","AnimationStart"),transitionend:Zi("Transition","TransitionEnd")},_l={},O1={};en&&(O1=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);function Aa(e){if(_l[e])return _l[e];if(!Sr[e])return e;var t=Sr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in O1)return _l[e]=t[n];return e}var N1=Aa("animationend"),j1=Aa("animationiteration"),T1=Aa("animationstart"),_1=Aa("transitionend"),I1=new Map,gh="abort auxClick 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(" ");function Mn(e,t){I1.set(e,t),ar(t,[e])}for(var Il=0;Il<gh.length;Il++){var Al=gh[Il],Ox=Al.toLowerCase(),Nx=Al[0].toUpperCase()+Al.slice(1);Mn(Ox,"on"+Nx)}Mn(N1,"onAnimationEnd");Mn(j1,"onAnimationIteration");Mn(T1,"onAnimationStart");Mn("dblclick","onDoubleClick");Mn("focusin","onFocus");Mn("focusout","onBlur");Mn(_1,"onTransitionEnd");$r("onMouseEnter",["mouseout","mouseover"]);$r("onMouseLeave",["mouseout","mouseover"]);$r("onPointerEnter",["pointerout","pointerover"]);$r("onPointerLeave",["pointerout","pointerover"]);ar("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ar("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ar("onBeforeInput",["compositionend","keypress","textInput","paste"]);ar("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ar("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ar("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bs="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(" "),jx=new Set("cancel close invalid load scroll toggle".split(" ").concat(bs));function vh(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Ow(r,t,void 0,e),e.currentTarget=null}function A1(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&s.isPropagationStopped())break e;vh(s,a,u),i=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&s.isPropagationStopped())break e;vh(s,a,u),i=l}}}if(Qo)throw e=Mu,Qo=!1,Mu=null,e}function ee(e,t){var n=t[Qu];n===void 0&&(n=t[Qu]=new Set);var r=e+"__bubble";n.has(r)||(L1(t,e,2,!1),n.add(r))}function Ll(e,t,n){var r=0;t&&(r|=4),L1(n,e,r,t)}var Gi="_reactListening"+Math.random().toString(36).slice(2);function ei(e){if(!e[Gi]){e[Gi]=!0,Bm.forEach(function(n){n!=="selectionchange"&&(jx.has(n)||Ll(n,!1,e),Ll(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Gi]||(t[Gi]=!0,Ll("selectionchange",!1,t))}}function L1(e,t,n,r){switch(y1(t)){case 1:var s=Hw;break;case 4:s=qw;break;default:s=Jc}n=s.bind(null,t,n,e),s=void 0,!Lu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Ml(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;o=o.return}for(;a!==null;){if(o=Wn(a),o===null)return;if(l=o.tag,l===5||l===6){r=i=o;continue e}a=a.parentNode}}r=r.return}s1(function(){var u=i,c=Zc(n),d=[];e:{var h=I1.get(e);if(h!==void 0){var m=td,g=e;switch(e){case"keypress":if(wo(n)===0)break e;case"keydown":case"keyup":m=ox;break;case"focusin":g="focus",m=Nl;break;case"focusout":g="blur",m=Nl;break;case"beforeblur":case"afterblur":m=Nl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=ih;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=Kw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=ux;break;case N1:case j1:case T1:m=Xw;break;case _1:m=dx;break;case"scroll":m=Qw;break;case"wheel":m=hx;break;case"copy":case"cut":case"paste":m=Jw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=ah}var y=(t&4)!==0,S=!y&&e==="scroll",p=y?h!==null?h+"Capture":null:h;y=[];for(var v=u,w;v!==null;){w=v;var b=w.stateNode;if(w.tag===5&&b!==null&&(w=b,p!==null&&(b=Ks(v,p),b!=null&&y.push(ti(v,b,w)))),S)break;v=v.return}0<y.length&&(h=new m(h,g,null,n,c),d.push({event:h,listeners:y}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",h&&n!==Iu&&(g=n.relatedTarget||n.fromElement)&&(Wn(g)||g[tn]))break e;if((m||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,m?(g=n.relatedTarget||n.toElement,m=u,g=g?Wn(g):null,g!==null&&(S=lr(g),g!==S||g.tag!==5&&g.tag!==6)&&(g=null)):(m=null,g=u),m!==g)){if(y=ih,b="onMouseLeave",p="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(y=ah,b="onPointerLeave",p="onPointerEnter",v="pointer"),S=m==null?h:br(m),w=g==null?h:br(g),h=new y(b,v+"leave",m,n,c),h.target=S,h.relatedTarget=w,b=null,Wn(c)===u&&(y=new y(p,v+"enter",g,n,c),y.target=w,y.relatedTarget=S,b=y),S=b,m&&g)t:{for(y=m,p=g,v=0,w=y;w;w=hr(w))v++;for(w=0,b=p;b;b=hr(b))w++;for(;0<v-w;)y=hr(y),v--;for(;0<w-v;)p=hr(p),w--;for(;v--;){if(y===p||p!==null&&y===p.alternate)break t;y=hr(y),p=hr(p)}y=null}else y=null;m!==null&&yh(d,h,m,y,!1),g!==null&&S!==null&&yh(d,S,g,y,!0)}}e:{if(h=u?br(u):window,m=h.nodeName&&h.nodeName.toLowerCase(),m==="select"||m==="input"&&h.type==="file")var C=xx;else if(ch(h))if(C1)C=Cx;else{C=bx;var R=Sx}else(m=h.nodeName)&&m.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(C=Ex);if(C&&(C=C(e,u))){E1(d,C,n,c);break e}R&&R(e,h,u),e==="focusout"&&(R=h._wrapperState)&&R.controlled&&h.type==="number"&&Ou(h,"number",h.value)}switch(R=u?br(u):window,e){case"focusin":(ch(R)||R.contentEditable==="true")&&(xr=R,zu=u,js=null);break;case"focusout":js=zu=xr=null;break;case"mousedown":Uu=!0;break;case"contextmenu":case"mouseup":case"dragend":Uu=!1,mh(d,n,c);break;case"selectionchange":if(Px)break;case"keydown":case"keyup":mh(d,n,c)}var k;if(rd)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else wr?S1(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(x1&&n.locale!=="ko"&&(wr||P!=="onCompositionStart"?P==="onCompositionEnd"&&wr&&(k=w1()):(yn=c,ed="value"in yn?yn.value:yn.textContent,wr=!0)),R=Xo(u,P),0<R.length&&(P=new oh(P,e,null,n,c),d.push({event:P,listeners:R}),k?P.data=k:(k=b1(n),k!==null&&(P.data=k)))),(k=mx?gx(e,n):vx(e,n))&&(u=Xo(u,"onBeforeInput"),0<u.length&&(c=new oh("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=k))}A1(d,t)})}function ti(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Xo(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=Ks(e,n),i!=null&&r.unshift(ti(e,i,s)),i=Ks(e,t),i!=null&&r.push(ti(e,i,s))),e=e.return}return r}function hr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function yh(e,t,n,r,s){for(var i=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,s?(l=Ks(n,i),l!=null&&o.unshift(ti(n,l,a))):s||(l=Ks(n,i),l!=null&&o.push(ti(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Tx=/\r\n?/g,_x=/\u0000|\uFFFD/g;function wh(e){return(typeof e=="string"?e:""+e).replace(Tx,`
39
- `).replace(_x,"")}function Xi(e,t,n){if(t=wh(t),wh(e)!==t&&n)throw Error(T(425))}function Yo(){}var Bu=null,Vu=null;function Hu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var qu=typeof setTimeout=="function"?setTimeout:void 0,Ix=typeof clearTimeout=="function"?clearTimeout:void 0,xh=typeof Promise=="function"?Promise:void 0,Ax=typeof queueMicrotask=="function"?queueMicrotask:typeof xh<"u"?function(e){return xh.resolve(null).then(e).catch(Lx)}:qu;function Lx(e){setTimeout(function(){throw e})}function Dl(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),Xs(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Xs(t)}function kn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Sh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Yr=Math.random().toString(36).slice(2),Ft="__reactFiber$"+Yr,ni="__reactProps$"+Yr,tn="__reactContainer$"+Yr,Qu="__reactEvents$"+Yr,Mx="__reactListeners$"+Yr,Dx="__reactHandles$"+Yr;function Wn(e){var t=e[Ft];if(t)return t;for(var n=e.parentNode;n;){if(t=n[tn]||n[Ft]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Sh(e);e!==null;){if(n=e[Ft])return n;e=Sh(e)}return t}e=n,n=e.parentNode}return null}function Ri(e){return e=e[Ft]||e[tn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function br(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(T(33))}function La(e){return e[ni]||null}var Wu=[],Er=-1;function Dn(e){return{current:e}}function te(e){0>Er||(e.current=Wu[Er],Wu[Er]=null,Er--)}function J(e,t){Er++,Wu[Er]=e.current,e.current=t}var In={},Oe=Dn(In),qe=Dn(!1),Jn=In;function zr(e,t){var n=e.type.contextTypes;if(!n)return In;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Qe(e){return e=e.childContextTypes,e!=null}function Jo(){te(qe),te(Oe)}function bh(e,t,n){if(Oe.current!==In)throw Error(T(168));J(Oe,t),J(qe,n)}function M1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(T(108,Sw(e)||"Unknown",s));return ie({},n,r)}function ea(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||In,Jn=Oe.current,J(Oe,e),J(qe,qe.current),!0}function Eh(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=M1(e,t,Jn),r.__reactInternalMemoizedMergedChildContext=e,te(qe),te(Oe),J(Oe,e)):te(qe),J(qe,n)}var Zt=null,Ma=!1,Fl=!1;function D1(e){Zt===null?Zt=[e]:Zt.push(e)}function Fx(e){Ma=!0,D1(e)}function Fn(){if(!Fl&&Zt!==null){Fl=!0;var e=0,t=Y;try{var n=Zt;for(Y=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Zt=null,Ma=!1}catch(s){throw Zt!==null&&(Zt=Zt.slice(e+1)),l1(Gc,Fn),s}finally{Y=t,Fl=!1}}return null}var Cr=[],Rr=0,ta=null,na=0,lt=[],ut=0,er=null,Gt=1,Xt="";function Vn(e,t){Cr[Rr++]=na,Cr[Rr++]=ta,ta=e,na=t}function F1(e,t,n){lt[ut++]=Gt,lt[ut++]=Xt,lt[ut++]=er,er=e;var r=Gt;e=Xt;var s=32-kt(r)-1;r&=~(1<<s),n+=1;var i=32-kt(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,Gt=1<<32-kt(t)+s|n<<s|r,Xt=i+e}else Gt=1<<i|n<<s|r,Xt=e}function id(e){e.return!==null&&(Vn(e,1),F1(e,1,0))}function od(e){for(;e===ta;)ta=Cr[--Rr],Cr[Rr]=null,na=Cr[--Rr],Cr[Rr]=null;for(;e===er;)er=lt[--ut],lt[ut]=null,Xt=lt[--ut],lt[ut]=null,Gt=lt[--ut],lt[ut]=null}var et=null,Xe=null,ne=!1,Et=null;function $1(e,t){var n=ht(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Ch(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,et=e,Xe=kn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,et=e,Xe=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=er!==null?{id:Gt,overflow:Xt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ht(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,et=e,Xe=null,!0):!1;default:return!1}}function Ku(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Zu(e){if(ne){var t=Xe;if(t){var n=t;if(!Ch(e,t)){if(Ku(e))throw Error(T(418));t=kn(n.nextSibling);var r=et;t&&Ch(e,t)?$1(r,n):(e.flags=e.flags&-4097|2,ne=!1,et=e)}}else{if(Ku(e))throw Error(T(418));e.flags=e.flags&-4097|2,ne=!1,et=e}}}function Rh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;et=e}function Yi(e){if(e!==et)return!1;if(!ne)return Rh(e),ne=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Hu(e.type,e.memoizedProps)),t&&(t=Xe)){if(Ku(e))throw z1(),Error(T(418));for(;t;)$1(e,t),t=kn(t.nextSibling)}if(Rh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(T(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Xe=kn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Xe=null}}else Xe=et?kn(e.stateNode.nextSibling):null;return!0}function z1(){for(var e=Xe;e;)e=kn(e.nextSibling)}function Ur(){Xe=et=null,ne=!1}function ad(e){Et===null?Et=[e]:Et.push(e)}var $x=on.ReactCurrentBatchConfig;function St(e,t){if(e&&e.defaultProps){t=ie({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var ra=Dn(null),sa=null,kr=null,ld=null;function ud(){ld=kr=sa=null}function cd(e){var t=ra.current;te(ra),e._currentValue=t}function Gu(e,t,n){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===n)break;e=e.return}}function Ar(e,t){sa=e,ld=kr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(He=!0),e.firstContext=null)}function mt(e){var t=e._currentValue;if(ld!==e)if(e={context:e,memoizedValue:t,next:null},kr===null){if(sa===null)throw Error(T(308));kr=e,sa.dependencies={lanes:0,firstContext:e}}else kr=kr.next=e;return t}var Kn=null;function dd(e){Kn===null?Kn=[e]:Kn.push(e)}function U1(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,dd(t)):(n.next=s.next,s.next=n),t.interleaved=n,nn(e,r)}function nn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var pn=!1;function fd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function B1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Jt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Pn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,nn(e,n)}return s=r.interleaved,s===null?(t.next=t,dd(r)):(t.next=s.next,s.next=t),r.interleaved=t,nn(e,n)}function xo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xc(e,n)}}function kh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ia(e,t,n,r){var s=e.updateQueue;pn=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?i=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=s.baseState;o=0,c=u=l=null,a=i;do{var h=a.lane,m=a.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,y=a;switch(h=t,m=n,y.tag){case 1:if(g=y.payload,typeof g=="function"){d=g.call(m,d,h);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,h=typeof g=="function"?g.call(m,d,h):g,h==null)break e;d=ie({},d,h);break e;case 2:pn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else m={eventTime:m,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=m,l=d):c=c.next=m,o|=h;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;h=a,a=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(1);if(c===null&&(l=d),s.baseState=l,s.firstBaseUpdate=u,s.lastBaseUpdate=c,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);nr|=o,e.lanes=o,e.memoizedState=d}}function Ph(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(T(191,s));s.call(r)}}}var V1=new Um.Component().refs;function Xu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ie({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Da={isMounted:function(e){return(e=e._reactInternals)?lr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ae(),s=Nn(e),i=Jt(r,s);i.payload=t,n!=null&&(i.callback=n),t=Pn(e,i,s),t!==null&&(Pt(t,e,s,r),xo(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ae(),s=Nn(e),i=Jt(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Pn(e,i,s),t!==null&&(Pt(t,e,s,r),xo(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ae(),r=Nn(e),s=Jt(n,r);s.tag=2,t!=null&&(s.callback=t),t=Pn(e,s,r),t!==null&&(Pt(t,e,r,n),xo(t,e,r))}};function Oh(e,t,n,r,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!Js(n,r)||!Js(s,i):!0}function H1(e,t,n){var r=!1,s=In,i=t.contextType;return typeof i=="object"&&i!==null?i=mt(i):(s=Qe(t)?Jn:Oe.current,r=t.contextTypes,i=(r=r!=null)?zr(e,s):In),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Da,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function Nh(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Da.enqueueReplaceState(t,t.state,null)}function Yu(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs=V1,fd(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=mt(i):(i=Qe(t)?Jn:Oe.current,s.context=zr(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Xu(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Da.enqueueReplaceState(s,s.state,null),ia(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function cs(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(T(309));var r=n.stateNode}if(!r)throw Error(T(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=s.refs;a===V1&&(a=s.refs={}),o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(T(284));if(!n._owner)throw Error(T(290,e))}return e}function Ji(e,t){throw e=Object.prototype.toString.call(t),Error(T(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function jh(e){var t=e._init;return t(e._payload)}function q1(e){function t(p,v){if(e){var w=p.deletions;w===null?(p.deletions=[v],p.flags|=16):w.push(v)}}function n(p,v){if(!e)return null;for(;v!==null;)t(p,v),v=v.sibling;return null}function r(p,v){for(p=new Map;v!==null;)v.key!==null?p.set(v.key,v):p.set(v.index,v),v=v.sibling;return p}function s(p,v){return p=jn(p,v),p.index=0,p.sibling=null,p}function i(p,v,w){return p.index=w,e?(w=p.alternate,w!==null?(w=w.index,w<v?(p.flags|=2,v):w):(p.flags|=2,v)):(p.flags|=1048576,v)}function o(p){return e&&p.alternate===null&&(p.flags|=2),p}function a(p,v,w,b){return v===null||v.tag!==6?(v=ql(w,p.mode,b),v.return=p,v):(v=s(v,w),v.return=p,v)}function l(p,v,w,b){var C=w.type;return C===yr?c(p,v,w.props.children,b,w.key):v!==null&&(v.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===hn&&jh(C)===v.type)?(b=s(v,w.props),b.ref=cs(p,v,w),b.return=p,b):(b=ko(w.type,w.key,w.props,null,p.mode,b),b.ref=cs(p,v,w),b.return=p,b)}function u(p,v,w,b){return v===null||v.tag!==4||v.stateNode.containerInfo!==w.containerInfo||v.stateNode.implementation!==w.implementation?(v=Ql(w,p.mode,b),v.return=p,v):(v=s(v,w.children||[]),v.return=p,v)}function c(p,v,w,b,C){return v===null||v.tag!==7?(v=Yn(w,p.mode,b,C),v.return=p,v):(v=s(v,w),v.return=p,v)}function d(p,v,w){if(typeof v=="string"&&v!==""||typeof v=="number")return v=ql(""+v,p.mode,w),v.return=p,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Bi:return w=ko(v.type,v.key,v.props,null,p.mode,w),w.ref=cs(p,null,v),w.return=p,w;case vr:return v=Ql(v,p.mode,w),v.return=p,v;case hn:var b=v._init;return d(p,b(v._payload),w)}if(xs(v)||is(v))return v=Yn(v,p.mode,w,null),v.return=p,v;Ji(p,v)}return null}function h(p,v,w,b){var C=v!==null?v.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return C!==null?null:a(p,v,""+w,b);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Bi:return w.key===C?l(p,v,w,b):null;case vr:return w.key===C?u(p,v,w,b):null;case hn:return C=w._init,h(p,v,C(w._payload),b)}if(xs(w)||is(w))return C!==null?null:c(p,v,w,b,null);Ji(p,w)}return null}function m(p,v,w,b,C){if(typeof b=="string"&&b!==""||typeof b=="number")return p=p.get(w)||null,a(v,p,""+b,C);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Bi:return p=p.get(b.key===null?w:b.key)||null,l(v,p,b,C);case vr:return p=p.get(b.key===null?w:b.key)||null,u(v,p,b,C);case hn:var R=b._init;return m(p,v,w,R(b._payload),C)}if(xs(b)||is(b))return p=p.get(w)||null,c(v,p,b,C,null);Ji(v,b)}return null}function g(p,v,w,b){for(var C=null,R=null,k=v,P=v=0,_=null;k!==null&&P<w.length;P++){k.index>P?(_=k,k=null):_=k.sibling;var F=h(p,k,w[P],b);if(F===null){k===null&&(k=_);break}e&&k&&F.alternate===null&&t(p,k),v=i(F,v,P),R===null?C=F:R.sibling=F,R=F,k=_}if(P===w.length)return n(p,k),ne&&Vn(p,P),C;if(k===null){for(;P<w.length;P++)k=d(p,w[P],b),k!==null&&(v=i(k,v,P),R===null?C=k:R.sibling=k,R=k);return ne&&Vn(p,P),C}for(k=r(p,k);P<w.length;P++)_=m(k,p,P,w[P],b),_!==null&&(e&&_.alternate!==null&&k.delete(_.key===null?P:_.key),v=i(_,v,P),R===null?C=_:R.sibling=_,R=_);return e&&k.forEach(function(A){return t(p,A)}),ne&&Vn(p,P),C}function y(p,v,w,b){var C=is(w);if(typeof C!="function")throw Error(T(150));if(w=C.call(w),w==null)throw Error(T(151));for(var R=C=null,k=v,P=v=0,_=null,F=w.next();k!==null&&!F.done;P++,F=w.next()){k.index>P?(_=k,k=null):_=k.sibling;var A=h(p,k,F.value,b);if(A===null){k===null&&(k=_);break}e&&k&&A.alternate===null&&t(p,k),v=i(A,v,P),R===null?C=A:R.sibling=A,R=A,k=_}if(F.done)return n(p,k),ne&&Vn(p,P),C;if(k===null){for(;!F.done;P++,F=w.next())F=d(p,F.value,b),F!==null&&(v=i(F,v,P),R===null?C=F:R.sibling=F,R=F);return ne&&Vn(p,P),C}for(k=r(p,k);!F.done;P++,F=w.next())F=m(k,p,P,F.value,b),F!==null&&(e&&F.alternate!==null&&k.delete(F.key===null?P:F.key),v=i(F,v,P),R===null?C=F:R.sibling=F,R=F);return e&&k.forEach(function(I){return t(p,I)}),ne&&Vn(p,P),C}function S(p,v,w,b){if(typeof w=="object"&&w!==null&&w.type===yr&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Bi:e:{for(var C=w.key,R=v;R!==null;){if(R.key===C){if(C=w.type,C===yr){if(R.tag===7){n(p,R.sibling),v=s(R,w.props.children),v.return=p,p=v;break e}}else if(R.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===hn&&jh(C)===R.type){n(p,R.sibling),v=s(R,w.props),v.ref=cs(p,R,w),v.return=p,p=v;break e}n(p,R);break}else t(p,R);R=R.sibling}w.type===yr?(v=Yn(w.props.children,p.mode,b,w.key),v.return=p,p=v):(b=ko(w.type,w.key,w.props,null,p.mode,b),b.ref=cs(p,v,w),b.return=p,p=b)}return o(p);case vr:e:{for(R=w.key;v!==null;){if(v.key===R)if(v.tag===4&&v.stateNode.containerInfo===w.containerInfo&&v.stateNode.implementation===w.implementation){n(p,v.sibling),v=s(v,w.children||[]),v.return=p,p=v;break e}else{n(p,v);break}else t(p,v);v=v.sibling}v=Ql(w,p.mode,b),v.return=p,p=v}return o(p);case hn:return R=w._init,S(p,v,R(w._payload),b)}if(xs(w))return g(p,v,w,b);if(is(w))return y(p,v,w,b);Ji(p,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,v!==null&&v.tag===6?(n(p,v.sibling),v=s(v,w),v.return=p,p=v):(n(p,v),v=ql(w,p.mode,b),v.return=p,p=v),o(p)):n(p,v)}return S}var Br=q1(!0),Q1=q1(!1),ki={},Ut=Dn(ki),ri=Dn(ki),si=Dn(ki);function Zn(e){if(e===ki)throw Error(T(174));return e}function hd(e,t){switch(J(si,t),J(ri,e),J(Ut,ki),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ju(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ju(t,e)}te(Ut),J(Ut,t)}function Vr(){te(Ut),te(ri),te(si)}function W1(e){Zn(si.current);var t=Zn(Ut.current),n=ju(t,e.type);t!==n&&(J(ri,e),J(Ut,n))}function pd(e){ri.current===e&&(te(Ut),te(ri))}var re=Dn(0);function oa(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 $l=[];function md(){for(var e=0;e<$l.length;e++)$l[e]._workInProgressVersionPrimary=null;$l.length=0}var So=on.ReactCurrentDispatcher,zl=on.ReactCurrentBatchConfig,tr=0,se=null,fe=null,me=null,aa=!1,Ts=!1,ii=0,zx=0;function Re(){throw Error(T(321))}function gd(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ot(e[n],t[n]))return!1;return!0}function vd(e,t,n,r,s,i){if(tr=i,se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,So.current=e===null||e.memoizedState===null?Hx:qx,e=n(r,s),Ts){i=0;do{if(Ts=!1,ii=0,25<=i)throw Error(T(301));i+=1,me=fe=null,t.updateQueue=null,So.current=Qx,e=n(r,s)}while(Ts)}if(So.current=la,t=fe!==null&&fe.next!==null,tr=0,me=fe=se=null,aa=!1,t)throw Error(T(300));return e}function yd(){var e=ii!==0;return ii=0,e}function Mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return me===null?se.memoizedState=me=e:me=me.next=e,me}function gt(){if(fe===null){var e=se.alternate;e=e!==null?e.memoizedState:null}else e=fe.next;var t=me===null?se.memoizedState:me.next;if(t!==null)me=t,fe=e;else{if(e===null)throw Error(T(310));fe=e,e={memoizedState:fe.memoizedState,baseState:fe.baseState,baseQueue:fe.baseQueue,queue:fe.queue,next:null},me===null?se.memoizedState=me=e:me=me.next=e}return me}function oi(e,t){return typeof t=="function"?t(e):t}function Ul(e){var t=gt(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=fe,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var a=o=null,l=null,u=i;do{var c=u.lane;if((tr&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=d,o=r):l=l.next=d,se.lanes|=c,nr|=c}u=u.next}while(u!==null&&u!==i);l===null?o=r:l.next=a,Ot(r,t.memoizedState)||(He=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,se.lanes|=i,nr|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Bl(e){var t=gt(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);Ot(i,t.memoizedState)||(He=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function K1(){}function Z1(e,t){var n=se,r=gt(),s=t(),i=!Ot(r.memoizedState,s);if(i&&(r.memoizedState=s,He=!0),r=r.queue,wd(Y1.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||me!==null&&me.memoizedState.tag&1){if(n.flags|=2048,ai(9,X1.bind(null,n,r,s,t),void 0,null),ge===null)throw Error(T(349));tr&30||G1(n,t,s)}return s}function G1(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=se.updateQueue,t===null?(t={lastEffect:null,stores:null},se.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function X1(e,t,n,r){t.value=n,t.getSnapshot=r,J1(t)&&eg(e)}function Y1(e,t,n){return n(function(){J1(t)&&eg(e)})}function J1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ot(e,n)}catch{return!0}}function eg(e){var t=nn(e,1);t!==null&&Pt(t,e,1,-1)}function Th(e){var t=Mt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:oi,lastRenderedState:e},t.queue=e,e=e.dispatch=Vx.bind(null,se,e),[t.memoizedState,e]}function ai(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=se.updateQueue,t===null?(t={lastEffect:null,stores:null},se.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function tg(){return gt().memoizedState}function bo(e,t,n,r){var s=Mt();se.flags|=e,s.memoizedState=ai(1|t,n,void 0,r===void 0?null:r)}function Fa(e,t,n,r){var s=gt();r=r===void 0?null:r;var i=void 0;if(fe!==null){var o=fe.memoizedState;if(i=o.destroy,r!==null&&gd(r,o.deps)){s.memoizedState=ai(t,n,i,r);return}}se.flags|=e,s.memoizedState=ai(1|t,n,i,r)}function _h(e,t){return bo(8390656,8,e,t)}function wd(e,t){return Fa(2048,8,e,t)}function ng(e,t){return Fa(4,2,e,t)}function rg(e,t){return Fa(4,4,e,t)}function sg(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ig(e,t,n){return n=n!=null?n.concat([e]):null,Fa(4,4,sg.bind(null,t,e),n)}function xd(){}function og(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&gd(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ag(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&gd(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function lg(e,t,n){return tr&21?(Ot(n,t)||(n=d1(),se.lanes|=n,nr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,He=!0),e.memoizedState=n)}function Ux(e,t){var n=Y;Y=n!==0&&4>n?n:4,e(!0);var r=zl.transition;zl.transition={};try{e(!1),t()}finally{Y=n,zl.transition=r}}function ug(){return gt().memoizedState}function Bx(e,t,n){var r=Nn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},cg(e))dg(t,n);else if(n=U1(e,t,n,r),n!==null){var s=Ae();Pt(n,e,r,s),fg(n,t,r)}}function Vx(e,t,n){var r=Nn(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(cg(e))dg(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,n);if(s.hasEagerState=!0,s.eagerState=a,Ot(a,o)){var l=t.interleaved;l===null?(s.next=s,dd(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}n=U1(e,t,s,r),n!==null&&(s=Ae(),Pt(n,e,r,s),fg(n,t,r))}}function cg(e){var t=e.alternate;return e===se||t!==null&&t===se}function dg(e,t){Ts=aa=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xc(e,n)}}var la={readContext:mt,useCallback:Re,useContext:Re,useEffect:Re,useImperativeHandle:Re,useInsertionEffect:Re,useLayoutEffect:Re,useMemo:Re,useReducer:Re,useRef:Re,useState:Re,useDebugValue:Re,useDeferredValue:Re,useTransition:Re,useMutableSource:Re,useSyncExternalStore:Re,useId:Re,unstable_isNewReconciler:!1},Hx={readContext:mt,useCallback:function(e,t){return Mt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:_h,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,bo(4194308,4,sg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return bo(4194308,4,e,t)},useInsertionEffect:function(e,t){return bo(4,2,e,t)},useMemo:function(e,t){var n=Mt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Mt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Bx.bind(null,se,e),[r.memoizedState,e]},useRef:function(e){var t=Mt();return e={current:e},t.memoizedState=e},useState:Th,useDebugValue:xd,useDeferredValue:function(e){return Mt().memoizedState=e},useTransition:function(){var e=Th(!1),t=e[0];return e=Ux.bind(null,e[1]),Mt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=se,s=Mt();if(ne){if(n===void 0)throw Error(T(407));n=n()}else{if(n=t(),ge===null)throw Error(T(349));tr&30||G1(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,_h(Y1.bind(null,r,i,e),[e]),r.flags|=2048,ai(9,X1.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Mt(),t=ge.identifierPrefix;if(ne){var n=Xt,r=Gt;n=(r&~(1<<32-kt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ii++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=zx++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},qx={readContext:mt,useCallback:og,useContext:mt,useEffect:wd,useImperativeHandle:ig,useInsertionEffect:ng,useLayoutEffect:rg,useMemo:ag,useReducer:Ul,useRef:tg,useState:function(){return Ul(oi)},useDebugValue:xd,useDeferredValue:function(e){var t=gt();return lg(t,fe.memoizedState,e)},useTransition:function(){var e=Ul(oi)[0],t=gt().memoizedState;return[e,t]},useMutableSource:K1,useSyncExternalStore:Z1,useId:ug,unstable_isNewReconciler:!1},Qx={readContext:mt,useCallback:og,useContext:mt,useEffect:wd,useImperativeHandle:ig,useInsertionEffect:ng,useLayoutEffect:rg,useMemo:ag,useReducer:Bl,useRef:tg,useState:function(){return Bl(oi)},useDebugValue:xd,useDeferredValue:function(e){var t=gt();return fe===null?t.memoizedState=e:lg(t,fe.memoizedState,e)},useTransition:function(){var e=Bl(oi)[0],t=gt().memoizedState;return[e,t]},useMutableSource:K1,useSyncExternalStore:Z1,useId:ug,unstable_isNewReconciler:!1};function Hr(e,t){try{var n="",r=t;do n+=xw(r),r=r.return;while(r);var s=n}catch(i){s=`
38
+ `+s[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{El=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ws(e):""}function xw(e){switch(e.tag){case 5:return ws(e.type);case 16:return ws("Lazy");case 13:return ws("Suspense");case 19:return ws("SuspenseList");case 0:case 2:case 15:return e=Cl(e.type,!1),e;case 11:return e=Cl(e.type.render,!1),e;case 1:return e=Cl(e.type,!0),e;default:return""}}function Ru(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case yr:return"Fragment";case vr:return"Portal";case bu:return"Profiler";case Qc:return"StrictMode";case Eu:return"Suspense";case Cu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Hm:return(e.displayName||"Context")+".Consumer";case Vm:return(e._context.displayName||"Context")+".Provider";case Wc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Kc:return t=e.displayName||null,t!==null?t:Ru(e.type)||"Memo";case hn:t=e._payload,e=e._init;try{return Ru(e(t))}catch{}}return null}function Sw(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ru(t);case 8:return t===Qc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function _n(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Qm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function bw(e){var t=Qm(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vi(e){e._valueTracker||(e._valueTracker=bw(e))}function Wm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Qm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ho(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}}function ku(e,t){var n=t.checked;return ie({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Zf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=_n(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Km(e,t){t=t.checked,t!=null&&qc(e,"checked",t,!1)}function Pu(e,t){Km(e,t);var n=_n(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ou(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ou(e,t.type,_n(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Gf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ou(e,t,n){(t!=="number"||Ho(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var xs=Array.isArray;function jr(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+_n(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Nu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(T(91));return ie({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Xf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(T(92));if(xs(n)){if(1<n.length)throw Error(T(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:_n(n)}}function Zm(e,t){var n=_n(t.value),r=_n(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Yf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Gm(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ju(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Gm(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Hi,Xm=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Hi=Hi||document.createElement("div"),Hi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Hi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ws(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ks={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ew=["Webkit","ms","Moz","O"];Object.keys(ks).forEach(function(e){Ew.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ks[t]=ks[e]})});function Ym(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ks.hasOwnProperty(e)&&ks[e]?(""+t).trim():t+"px"}function Jm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Ym(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var Cw=ie({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Tu(e,t){if(t){if(Cw[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function _u(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Iu=null;function Zc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Au=null,Tr=null,_r=null;function Jf(e){if(e=Ri(e)){if(typeof Au!="function")throw Error(T(280));var t=e.stateNode;t&&(t=La(t),Au(e.stateNode,e.type,t))}}function e1(e){Tr?_r?_r.push(e):_r=[e]:Tr=e}function t1(){if(Tr){var e=Tr,t=_r;if(_r=Tr=null,Jf(e),t)for(e=0;e<t.length;e++)Jf(t[e])}}function n1(e,t){return e(t)}function r1(){}var Rl=!1;function s1(e,t,n){if(Rl)return e(t,n);Rl=!0;try{return n1(e,t,n)}finally{Rl=!1,(Tr!==null||_r!==null)&&(r1(),t1())}}function Ks(e,t){var n=e.stateNode;if(n===null)return null;var r=La(n);if(r===null)return null;n=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(n&&typeof n!="function")throw Error(T(231,t,typeof n));return n}var Lu=!1;if(en)try{var os={};Object.defineProperty(os,"passive",{get:function(){Lu=!0}}),window.addEventListener("test",os,os),window.removeEventListener("test",os,os)}catch{Lu=!1}function Rw(e,t,n,r,s,i,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Ps=!1,qo=null,Qo=!1,Mu=null,kw={onError:function(e){Ps=!0,qo=e}};function Pw(e,t,n,r,s,i,o,a,l){Ps=!1,qo=null,Rw.apply(kw,arguments)}function Ow(e,t,n,r,s,i,o,a,l){if(Pw.apply(this,arguments),Ps){if(Ps){var u=qo;Ps=!1,qo=null}else throw Error(T(198));Qo||(Qo=!0,Mu=u)}}function lr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function i1(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 eh(e){if(lr(e)!==e)throw Error(T(188))}function Nw(e){var t=e.alternate;if(!t){if(t=lr(e),t===null)throw Error(T(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return eh(s),e;if(i===r)return eh(s),t;i=i.sibling}throw Error(T(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o){for(a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o)throw Error(T(189))}}if(n.alternate!==r)throw Error(T(190))}if(n.tag!==3)throw Error(T(188));return n.stateNode.current===n?e:t}function o1(e){return e=Nw(e),e!==null?a1(e):null}function a1(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=a1(e);if(t!==null)return t;e=e.sibling}return null}var l1=nt.unstable_scheduleCallback,th=nt.unstable_cancelCallback,jw=nt.unstable_shouldYield,Tw=nt.unstable_requestPaint,ue=nt.unstable_now,_w=nt.unstable_getCurrentPriorityLevel,Gc=nt.unstable_ImmediatePriority,u1=nt.unstable_UserBlockingPriority,Wo=nt.unstable_NormalPriority,Iw=nt.unstable_LowPriority,c1=nt.unstable_IdlePriority,Ta=null,zt=null;function Aw(e){if(zt&&typeof zt.onCommitFiberRoot=="function")try{zt.onCommitFiberRoot(Ta,e,void 0,(e.current.flags&128)===128)}catch{}}var kt=Math.clz32?Math.clz32:Dw,Lw=Math.log,Mw=Math.LN2;function Dw(e){return e>>>=0,e===0?32:31-(Lw(e)/Mw|0)|0}var qi=64,Qi=4194304;function Ss(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ko(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=Ss(a):(i&=o,i!==0&&(r=Ss(i)))}else o=n&~s,o!==0?r=Ss(o):i!==0&&(r=Ss(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-kt(t),s=1<<n,r|=e[n],t&=~s;return r}function Fw(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function $w(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-kt(i),a=1<<o,l=s[o];l===-1?(!(a&n)||a&r)&&(s[o]=Fw(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function Du(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function d1(){var e=qi;return qi<<=1,!(qi&4194240)&&(qi=64),e}function kl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ei(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-kt(t),e[t]=n}function zw(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-kt(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Xc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-kt(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var Y=0;function f1(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var h1,Yc,p1,m1,g1,Fu=!1,Wi=[],En=null,Cn=null,Rn=null,Zs=new Map,Gs=new Map,mn=[],Uw="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 submit".split(" ");function nh(e,t){switch(e){case"focusin":case"focusout":En=null;break;case"dragenter":case"dragleave":Cn=null;break;case"mouseover":case"mouseout":Rn=null;break;case"pointerover":case"pointerout":Zs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gs.delete(t.pointerId)}}function as(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=Ri(t),t!==null&&Yc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Bw(e,t,n,r,s){switch(t){case"focusin":return En=as(En,e,t,n,r,s),!0;case"dragenter":return Cn=as(Cn,e,t,n,r,s),!0;case"mouseover":return Rn=as(Rn,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return Zs.set(i,as(Zs.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,Gs.set(i,as(Gs.get(i)||null,e,t,n,r,s)),!0}return!1}function v1(e){var t=Wn(e.target);if(t!==null){var n=lr(t);if(n!==null){if(t=n.tag,t===13){if(t=i1(n),t!==null){e.blockedOn=t,g1(e.priority,function(){p1(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function vo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=$u(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Iu=r,n.target.dispatchEvent(r),Iu=null}else return t=Ri(n),t!==null&&Yc(t),e.blockedOn=n,!1;t.shift()}return!0}function rh(e,t,n){vo(e)&&n.delete(t)}function Vw(){Fu=!1,En!==null&&vo(En)&&(En=null),Cn!==null&&vo(Cn)&&(Cn=null),Rn!==null&&vo(Rn)&&(Rn=null),Zs.forEach(rh),Gs.forEach(rh)}function ls(e,t){e.blockedOn===t&&(e.blockedOn=null,Fu||(Fu=!0,nt.unstable_scheduleCallback(nt.unstable_NormalPriority,Vw)))}function Xs(e){function t(s){return ls(s,e)}if(0<Wi.length){ls(Wi[0],e);for(var n=1;n<Wi.length;n++){var r=Wi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(En!==null&&ls(En,e),Cn!==null&&ls(Cn,e),Rn!==null&&ls(Rn,e),Zs.forEach(t),Gs.forEach(t),n=0;n<mn.length;n++)r=mn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<mn.length&&(n=mn[0],n.blockedOn===null);)v1(n),n.blockedOn===null&&mn.shift()}var Ir=on.ReactCurrentBatchConfig,Zo=!0;function Hw(e,t,n,r){var s=Y,i=Ir.transition;Ir.transition=null;try{Y=1,Jc(e,t,n,r)}finally{Y=s,Ir.transition=i}}function qw(e,t,n,r){var s=Y,i=Ir.transition;Ir.transition=null;try{Y=4,Jc(e,t,n,r)}finally{Y=s,Ir.transition=i}}function Jc(e,t,n,r){if(Zo){var s=$u(e,t,n,r);if(s===null)Ml(e,t,r,Go,n),nh(e,r);else if(Bw(s,e,t,n,r))r.stopPropagation();else if(nh(e,r),t&4&&-1<Uw.indexOf(e)){for(;s!==null;){var i=Ri(s);if(i!==null&&h1(i),i=$u(e,t,n,r),i===null&&Ml(e,t,r,Go,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else Ml(e,t,r,null,n)}}var Go=null;function $u(e,t,n,r){if(Go=null,e=Zc(r),e=Wn(e),e!==null)if(t=lr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=i1(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Go=e,null}function y1(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(_w()){case Gc:return 1;case u1:return 4;case Wo:case Iw:return 16;case c1:return 536870912;default:return 16}default:return 16}}var yn=null,ed=null,yo=null;function w1(){if(yo)return yo;var e,t=ed,n=t.length,r,s="value"in yn?yn.value:yn.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[i-r];r++);return yo=s.slice(e,1<r?1-r:void 0)}function wo(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 Ki(){return!0}function sh(){return!1}function st(e){function t(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Ki:sh,this.isPropagationStopped=sh,this}return ie(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ki)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ki)},persist:function(){},isPersistent:Ki}),t}var Xr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td=st(Xr),Ci=ie({},Xr,{view:0,detail:0}),Qw=st(Ci),Pl,Ol,us,_a=ie({},Ci,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nd,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!==us&&(us&&e.type==="mousemove"?(Pl=e.screenX-us.screenX,Ol=e.screenY-us.screenY):Ol=Pl=0,us=e),Pl)},movementY:function(e){return"movementY"in e?e.movementY:Ol}}),ih=st(_a),Ww=ie({},_a,{dataTransfer:0}),Kw=st(Ww),Zw=ie({},Ci,{relatedTarget:0}),Nl=st(Zw),Gw=ie({},Xr,{animationName:0,elapsedTime:0,pseudoElement:0}),Xw=st(Gw),Yw=ie({},Xr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Jw=st(Yw),ex=ie({},Xr,{data:0}),oh=st(ex),tx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nx={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"},rx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=rx[e])?!!t[e]:!1}function nd(){return sx}var ix=ie({},Ci,{key:function(e){if(e.key){var t=tx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=wo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?nx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nd,charCode:function(e){return e.type==="keypress"?wo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?wo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ox=st(ix),ax=ie({},_a,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ah=st(ax),lx=ie({},Ci,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nd}),ux=st(lx),cx=ie({},Xr,{propertyName:0,elapsedTime:0,pseudoElement:0}),dx=st(cx),fx=ie({},_a,{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}),hx=st(fx),px=[9,13,27,32],rd=en&&"CompositionEvent"in window,Os=null;en&&"documentMode"in document&&(Os=document.documentMode);var mx=en&&"TextEvent"in window&&!Os,x1=en&&(!rd||Os&&8<Os&&11>=Os),lh=String.fromCharCode(32),uh=!1;function S1(e,t){switch(e){case"keyup":return px.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function b1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wr=!1;function gx(e,t){switch(e){case"compositionend":return b1(t);case"keypress":return t.which!==32?null:(uh=!0,lh);case"textInput":return e=t.data,e===lh&&uh?null:e;default:return null}}function vx(e,t){if(wr)return e==="compositionend"||!rd&&S1(e,t)?(e=w1(),yo=ed=yn=null,wr=!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 x1&&t.locale!=="ko"?null:t.data;default:return null}}var yx={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"?!!yx[e.type]:t==="textarea"}function E1(e,t,n,r){e1(r),t=Xo(t,"onChange"),0<t.length&&(n=new td("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ns=null,Ys=null;function wx(e){A1(e,0)}function Ia(e){var t=br(e);if(Wm(t))return e}function xx(e,t){if(e==="change")return t}var C1=!1;if(en){var jl;if(en){var Tl="oninput"in document;if(!Tl){var dh=document.createElement("div");dh.setAttribute("oninput","return;"),Tl=typeof dh.oninput=="function"}jl=Tl}else jl=!1;C1=jl&&(!document.documentMode||9<document.documentMode)}function fh(){Ns&&(Ns.detachEvent("onpropertychange",R1),Ys=Ns=null)}function R1(e){if(e.propertyName==="value"&&Ia(Ys)){var t=[];E1(t,Ys,e,Zc(e)),s1(wx,t)}}function Sx(e,t,n){e==="focusin"?(fh(),Ns=t,Ys=n,Ns.attachEvent("onpropertychange",R1)):e==="focusout"&&fh()}function bx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ia(Ys)}function Ex(e,t){if(e==="click")return Ia(t)}function Cx(e,t){if(e==="input"||e==="change")return Ia(t)}function Rx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ot=typeof Object.is=="function"?Object.is:Rx;function Js(e,t){if(Ot(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!Su.call(t,s)||!Ot(e[s],t[s]))return!1}return!0}function hh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ph(e,t){var n=hh(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=hh(n)}}function k1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?k1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function P1(){for(var e=window,t=Ho();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ho(e.document)}return t}function sd(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")}function kx(e){var t=P1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&k1(n.ownerDocument.documentElement,n)){if(r!==null&&sd(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=ph(n,i);var o=ph(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Px=en&&"documentMode"in document&&11>=document.documentMode,xr=null,zu=null,js=null,Uu=!1;function mh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Uu||xr==null||xr!==Ho(r)||(r=xr,"selectionStart"in r&&sd(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}),js&&Js(js,r)||(js=r,r=Xo(zu,"onSelect"),0<r.length&&(t=new td("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=xr)))}function Zi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:Zi("Animation","AnimationEnd"),animationiteration:Zi("Animation","AnimationIteration"),animationstart:Zi("Animation","AnimationStart"),transitionend:Zi("Transition","TransitionEnd")},_l={},O1={};en&&(O1=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);function Aa(e){if(_l[e])return _l[e];if(!Sr[e])return e;var t=Sr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in O1)return _l[e]=t[n];return e}var N1=Aa("animationend"),j1=Aa("animationiteration"),T1=Aa("animationstart"),_1=Aa("transitionend"),I1=new Map,gh="abort auxClick 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(" ");function Mn(e,t){I1.set(e,t),ar(t,[e])}for(var Il=0;Il<gh.length;Il++){var Al=gh[Il],Ox=Al.toLowerCase(),Nx=Al[0].toUpperCase()+Al.slice(1);Mn(Ox,"on"+Nx)}Mn(N1,"onAnimationEnd");Mn(j1,"onAnimationIteration");Mn(T1,"onAnimationStart");Mn("dblclick","onDoubleClick");Mn("focusin","onFocus");Mn("focusout","onBlur");Mn(_1,"onTransitionEnd");$r("onMouseEnter",["mouseout","mouseover"]);$r("onMouseLeave",["mouseout","mouseover"]);$r("onPointerEnter",["pointerout","pointerover"]);$r("onPointerLeave",["pointerout","pointerover"]);ar("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ar("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ar("onBeforeInput",["compositionend","keypress","textInput","paste"]);ar("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ar("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ar("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bs="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(" "),jx=new Set("cancel close invalid load scroll toggle".split(" ").concat(bs));function vh(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Ow(r,t,void 0,e),e.currentTarget=null}function A1(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&s.isPropagationStopped())break e;vh(s,a,u),i=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&s.isPropagationStopped())break e;vh(s,a,u),i=l}}}if(Qo)throw e=Mu,Qo=!1,Mu=null,e}function ee(e,t){var n=t[Qu];n===void 0&&(n=t[Qu]=new Set);var r=e+"__bubble";n.has(r)||(L1(t,e,2,!1),n.add(r))}function Ll(e,t,n){var r=0;t&&(r|=4),L1(n,e,r,t)}var Gi="_reactListening"+Math.random().toString(36).slice(2);function ei(e){if(!e[Gi]){e[Gi]=!0,Bm.forEach(function(n){n!=="selectionchange"&&(jx.has(n)||Ll(n,!1,e),Ll(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Gi]||(t[Gi]=!0,Ll("selectionchange",!1,t))}}function L1(e,t,n,r){switch(y1(t)){case 1:var s=Hw;break;case 4:s=qw;break;default:s=Jc}n=s.bind(null,t,n,e),s=void 0,!Lu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Ml(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;o=o.return}for(;a!==null;){if(o=Wn(a),o===null)return;if(l=o.tag,l===5||l===6){r=i=o;continue e}a=a.parentNode}}r=r.return}s1(function(){var u=i,c=Zc(n),d=[];e:{var h=I1.get(e);if(h!==void 0){var p=td,g=e;switch(e){case"keypress":if(wo(n)===0)break e;case"keydown":case"keyup":p=ox;break;case"focusin":g="focus",p=Nl;break;case"focusout":g="blur",p=Nl;break;case"beforeblur":case"afterblur":p=Nl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=ih;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=Kw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=ux;break;case N1:case j1:case T1:p=Xw;break;case _1:p=dx;break;case"scroll":p=Qw;break;case"wheel":p=hx;break;case"copy":case"cut":case"paste":p=Jw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=ah}var y=(t&4)!==0,S=!y&&e==="scroll",m=y?h!==null?h+"Capture":null:h;y=[];for(var v=u,w;v!==null;){w=v;var b=w.stateNode;if(w.tag===5&&b!==null&&(w=b,m!==null&&(b=Ks(v,m),b!=null&&y.push(ti(v,b,w)))),S)break;v=v.return}0<y.length&&(h=new p(h,g,null,n,c),d.push({event:h,listeners:y}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==Iu&&(g=n.relatedTarget||n.fromElement)&&(Wn(g)||g[tn]))break e;if((p||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,p?(g=n.relatedTarget||n.toElement,p=u,g=g?Wn(g):null,g!==null&&(S=lr(g),g!==S||g.tag!==5&&g.tag!==6)&&(g=null)):(p=null,g=u),p!==g)){if(y=ih,b="onMouseLeave",m="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(y=ah,b="onPointerLeave",m="onPointerEnter",v="pointer"),S=p==null?h:br(p),w=g==null?h:br(g),h=new y(b,v+"leave",p,n,c),h.target=S,h.relatedTarget=w,b=null,Wn(c)===u&&(y=new y(m,v+"enter",g,n,c),y.target=w,y.relatedTarget=S,b=y),S=b,p&&g)t:{for(y=p,m=g,v=0,w=y;w;w=hr(w))v++;for(w=0,b=m;b;b=hr(b))w++;for(;0<v-w;)y=hr(y),v--;for(;0<w-v;)m=hr(m),w--;for(;v--;){if(y===m||m!==null&&y===m.alternate)break t;y=hr(y),m=hr(m)}y=null}else y=null;p!==null&&yh(d,h,p,y,!1),g!==null&&S!==null&&yh(d,S,g,y,!0)}}e:{if(h=u?br(u):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var C=xx;else if(ch(h))if(C1)C=Cx;else{C=bx;var R=Sx}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(C=Ex);if(C&&(C=C(e,u))){E1(d,C,n,c);break e}R&&R(e,h,u),e==="focusout"&&(R=h._wrapperState)&&R.controlled&&h.type==="number"&&Ou(h,"number",h.value)}switch(R=u?br(u):window,e){case"focusin":(ch(R)||R.contentEditable==="true")&&(xr=R,zu=u,js=null);break;case"focusout":js=zu=xr=null;break;case"mousedown":Uu=!0;break;case"contextmenu":case"mouseup":case"dragend":Uu=!1,mh(d,n,c);break;case"selectionchange":if(Px)break;case"keydown":case"keyup":mh(d,n,c)}var k;if(rd)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else wr?S1(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(x1&&n.locale!=="ko"&&(wr||P!=="onCompositionStart"?P==="onCompositionEnd"&&wr&&(k=w1()):(yn=c,ed="value"in yn?yn.value:yn.textContent,wr=!0)),R=Xo(u,P),0<R.length&&(P=new oh(P,e,null,n,c),d.push({event:P,listeners:R}),k?P.data=k:(k=b1(n),k!==null&&(P.data=k)))),(k=mx?gx(e,n):vx(e,n))&&(u=Xo(u,"onBeforeInput"),0<u.length&&(c=new oh("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=k))}A1(d,t)})}function ti(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Xo(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=Ks(e,n),i!=null&&r.unshift(ti(e,i,s)),i=Ks(e,t),i!=null&&r.push(ti(e,i,s))),e=e.return}return r}function hr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function yh(e,t,n,r,s){for(var i=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,s?(l=Ks(n,i),l!=null&&o.unshift(ti(n,l,a))):s||(l=Ks(n,i),l!=null&&o.push(ti(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Tx=/\r\n?/g,_x=/\u0000|\uFFFD/g;function wh(e){return(typeof e=="string"?e:""+e).replace(Tx,`
39
+ `).replace(_x,"")}function Xi(e,t,n){if(t=wh(t),wh(e)!==t&&n)throw Error(T(425))}function Yo(){}var Bu=null,Vu=null;function Hu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var qu=typeof setTimeout=="function"?setTimeout:void 0,Ix=typeof clearTimeout=="function"?clearTimeout:void 0,xh=typeof Promise=="function"?Promise:void 0,Ax=typeof queueMicrotask=="function"?queueMicrotask:typeof xh<"u"?function(e){return xh.resolve(null).then(e).catch(Lx)}:qu;function Lx(e){setTimeout(function(){throw e})}function Dl(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),Xs(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Xs(t)}function kn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Sh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Yr=Math.random().toString(36).slice(2),Ft="__reactFiber$"+Yr,ni="__reactProps$"+Yr,tn="__reactContainer$"+Yr,Qu="__reactEvents$"+Yr,Mx="__reactListeners$"+Yr,Dx="__reactHandles$"+Yr;function Wn(e){var t=e[Ft];if(t)return t;for(var n=e.parentNode;n;){if(t=n[tn]||n[Ft]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Sh(e);e!==null;){if(n=e[Ft])return n;e=Sh(e)}return t}e=n,n=e.parentNode}return null}function Ri(e){return e=e[Ft]||e[tn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function br(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(T(33))}function La(e){return e[ni]||null}var Wu=[],Er=-1;function Dn(e){return{current:e}}function te(e){0>Er||(e.current=Wu[Er],Wu[Er]=null,Er--)}function J(e,t){Er++,Wu[Er]=e.current,e.current=t}var In={},Oe=Dn(In),qe=Dn(!1),Jn=In;function zr(e,t){var n=e.type.contextTypes;if(!n)return In;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Qe(e){return e=e.childContextTypes,e!=null}function Jo(){te(qe),te(Oe)}function bh(e,t,n){if(Oe.current!==In)throw Error(T(168));J(Oe,t),J(qe,n)}function M1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(T(108,Sw(e)||"Unknown",s));return ie({},n,r)}function ea(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||In,Jn=Oe.current,J(Oe,e),J(qe,qe.current),!0}function Eh(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=M1(e,t,Jn),r.__reactInternalMemoizedMergedChildContext=e,te(qe),te(Oe),J(Oe,e)):te(qe),J(qe,n)}var Zt=null,Ma=!1,Fl=!1;function D1(e){Zt===null?Zt=[e]:Zt.push(e)}function Fx(e){Ma=!0,D1(e)}function Fn(){if(!Fl&&Zt!==null){Fl=!0;var e=0,t=Y;try{var n=Zt;for(Y=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Zt=null,Ma=!1}catch(s){throw Zt!==null&&(Zt=Zt.slice(e+1)),l1(Gc,Fn),s}finally{Y=t,Fl=!1}}return null}var Cr=[],Rr=0,ta=null,na=0,lt=[],ut=0,er=null,Gt=1,Xt="";function Vn(e,t){Cr[Rr++]=na,Cr[Rr++]=ta,ta=e,na=t}function F1(e,t,n){lt[ut++]=Gt,lt[ut++]=Xt,lt[ut++]=er,er=e;var r=Gt;e=Xt;var s=32-kt(r)-1;r&=~(1<<s),n+=1;var i=32-kt(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,Gt=1<<32-kt(t)+s|n<<s|r,Xt=i+e}else Gt=1<<i|n<<s|r,Xt=e}function id(e){e.return!==null&&(Vn(e,1),F1(e,1,0))}function od(e){for(;e===ta;)ta=Cr[--Rr],Cr[Rr]=null,na=Cr[--Rr],Cr[Rr]=null;for(;e===er;)er=lt[--ut],lt[ut]=null,Xt=lt[--ut],lt[ut]=null,Gt=lt[--ut],lt[ut]=null}var et=null,Xe=null,ne=!1,Et=null;function $1(e,t){var n=ht(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Ch(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,et=e,Xe=kn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,et=e,Xe=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=er!==null?{id:Gt,overflow:Xt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ht(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,et=e,Xe=null,!0):!1;default:return!1}}function Ku(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Zu(e){if(ne){var t=Xe;if(t){var n=t;if(!Ch(e,t)){if(Ku(e))throw Error(T(418));t=kn(n.nextSibling);var r=et;t&&Ch(e,t)?$1(r,n):(e.flags=e.flags&-4097|2,ne=!1,et=e)}}else{if(Ku(e))throw Error(T(418));e.flags=e.flags&-4097|2,ne=!1,et=e}}}function Rh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;et=e}function Yi(e){if(e!==et)return!1;if(!ne)return Rh(e),ne=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Hu(e.type,e.memoizedProps)),t&&(t=Xe)){if(Ku(e))throw z1(),Error(T(418));for(;t;)$1(e,t),t=kn(t.nextSibling)}if(Rh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(T(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Xe=kn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Xe=null}}else Xe=et?kn(e.stateNode.nextSibling):null;return!0}function z1(){for(var e=Xe;e;)e=kn(e.nextSibling)}function Ur(){Xe=et=null,ne=!1}function ad(e){Et===null?Et=[e]:Et.push(e)}var $x=on.ReactCurrentBatchConfig;function St(e,t){if(e&&e.defaultProps){t=ie({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var ra=Dn(null),sa=null,kr=null,ld=null;function ud(){ld=kr=sa=null}function cd(e){var t=ra.current;te(ra),e._currentValue=t}function Gu(e,t,n){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===n)break;e=e.return}}function Ar(e,t){sa=e,ld=kr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(He=!0),e.firstContext=null)}function mt(e){var t=e._currentValue;if(ld!==e)if(e={context:e,memoizedValue:t,next:null},kr===null){if(sa===null)throw Error(T(308));kr=e,sa.dependencies={lanes:0,firstContext:e}}else kr=kr.next=e;return t}var Kn=null;function dd(e){Kn===null?Kn=[e]:Kn.push(e)}function U1(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,dd(t)):(n.next=s.next,s.next=n),t.interleaved=n,nn(e,r)}function nn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var pn=!1;function fd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function B1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Jt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Pn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,nn(e,n)}return s=r.interleaved,s===null?(t.next=t,dd(r)):(t.next=s.next,s.next=t),r.interleaved=t,nn(e,n)}function xo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xc(e,n)}}function kh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ia(e,t,n,r){var s=e.updateQueue;pn=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?i=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=s.baseState;o=0,c=u=l=null,a=i;do{var h=a.lane,p=a.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,y=a;switch(h=t,p=n,y.tag){case 1:if(g=y.payload,typeof g=="function"){d=g.call(p,d,h);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,h=typeof g=="function"?g.call(p,d,h):g,h==null)break e;d=ie({},d,h);break e;case 2:pn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else p={eventTime:p,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=p,l=d):c=c.next=p,o|=h;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;h=a,a=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(1);if(c===null&&(l=d),s.baseState=l,s.firstBaseUpdate=u,s.lastBaseUpdate=c,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);nr|=o,e.lanes=o,e.memoizedState=d}}function Ph(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(T(191,s));s.call(r)}}}var V1=new Um.Component().refs;function Xu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ie({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Da={isMounted:function(e){return(e=e._reactInternals)?lr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ae(),s=Nn(e),i=Jt(r,s);i.payload=t,n!=null&&(i.callback=n),t=Pn(e,i,s),t!==null&&(Pt(t,e,s,r),xo(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ae(),s=Nn(e),i=Jt(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Pn(e,i,s),t!==null&&(Pt(t,e,s,r),xo(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ae(),r=Nn(e),s=Jt(n,r);s.tag=2,t!=null&&(s.callback=t),t=Pn(e,s,r),t!==null&&(Pt(t,e,r,n),xo(t,e,r))}};function Oh(e,t,n,r,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!Js(n,r)||!Js(s,i):!0}function H1(e,t,n){var r=!1,s=In,i=t.contextType;return typeof i=="object"&&i!==null?i=mt(i):(s=Qe(t)?Jn:Oe.current,r=t.contextTypes,i=(r=r!=null)?zr(e,s):In),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Da,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function Nh(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Da.enqueueReplaceState(t,t.state,null)}function Yu(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs=V1,fd(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=mt(i):(i=Qe(t)?Jn:Oe.current,s.context=zr(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Xu(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Da.enqueueReplaceState(s,s.state,null),ia(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function cs(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(T(309));var r=n.stateNode}if(!r)throw Error(T(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=s.refs;a===V1&&(a=s.refs={}),o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(T(284));if(!n._owner)throw Error(T(290,e))}return e}function Ji(e,t){throw e=Object.prototype.toString.call(t),Error(T(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function jh(e){var t=e._init;return t(e._payload)}function q1(e){function t(m,v){if(e){var w=m.deletions;w===null?(m.deletions=[v],m.flags|=16):w.push(v)}}function n(m,v){if(!e)return null;for(;v!==null;)t(m,v),v=v.sibling;return null}function r(m,v){for(m=new Map;v!==null;)v.key!==null?m.set(v.key,v):m.set(v.index,v),v=v.sibling;return m}function s(m,v){return m=jn(m,v),m.index=0,m.sibling=null,m}function i(m,v,w){return m.index=w,e?(w=m.alternate,w!==null?(w=w.index,w<v?(m.flags|=2,v):w):(m.flags|=2,v)):(m.flags|=1048576,v)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,v,w,b){return v===null||v.tag!==6?(v=ql(w,m.mode,b),v.return=m,v):(v=s(v,w),v.return=m,v)}function l(m,v,w,b){var C=w.type;return C===yr?c(m,v,w.props.children,b,w.key):v!==null&&(v.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===hn&&jh(C)===v.type)?(b=s(v,w.props),b.ref=cs(m,v,w),b.return=m,b):(b=ko(w.type,w.key,w.props,null,m.mode,b),b.ref=cs(m,v,w),b.return=m,b)}function u(m,v,w,b){return v===null||v.tag!==4||v.stateNode.containerInfo!==w.containerInfo||v.stateNode.implementation!==w.implementation?(v=Ql(w,m.mode,b),v.return=m,v):(v=s(v,w.children||[]),v.return=m,v)}function c(m,v,w,b,C){return v===null||v.tag!==7?(v=Yn(w,m.mode,b,C),v.return=m,v):(v=s(v,w),v.return=m,v)}function d(m,v,w){if(typeof v=="string"&&v!==""||typeof v=="number")return v=ql(""+v,m.mode,w),v.return=m,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Bi:return w=ko(v.type,v.key,v.props,null,m.mode,w),w.ref=cs(m,null,v),w.return=m,w;case vr:return v=Ql(v,m.mode,w),v.return=m,v;case hn:var b=v._init;return d(m,b(v._payload),w)}if(xs(v)||is(v))return v=Yn(v,m.mode,w,null),v.return=m,v;Ji(m,v)}return null}function h(m,v,w,b){var C=v!==null?v.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return C!==null?null:a(m,v,""+w,b);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Bi:return w.key===C?l(m,v,w,b):null;case vr:return w.key===C?u(m,v,w,b):null;case hn:return C=w._init,h(m,v,C(w._payload),b)}if(xs(w)||is(w))return C!==null?null:c(m,v,w,b,null);Ji(m,w)}return null}function p(m,v,w,b,C){if(typeof b=="string"&&b!==""||typeof b=="number")return m=m.get(w)||null,a(v,m,""+b,C);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Bi:return m=m.get(b.key===null?w:b.key)||null,l(v,m,b,C);case vr:return m=m.get(b.key===null?w:b.key)||null,u(v,m,b,C);case hn:var R=b._init;return p(m,v,w,R(b._payload),C)}if(xs(b)||is(b))return m=m.get(w)||null,c(v,m,b,C,null);Ji(v,b)}return null}function g(m,v,w,b){for(var C=null,R=null,k=v,P=v=0,_=null;k!==null&&P<w.length;P++){k.index>P?(_=k,k=null):_=k.sibling;var F=h(m,k,w[P],b);if(F===null){k===null&&(k=_);break}e&&k&&F.alternate===null&&t(m,k),v=i(F,v,P),R===null?C=F:R.sibling=F,R=F,k=_}if(P===w.length)return n(m,k),ne&&Vn(m,P),C;if(k===null){for(;P<w.length;P++)k=d(m,w[P],b),k!==null&&(v=i(k,v,P),R===null?C=k:R.sibling=k,R=k);return ne&&Vn(m,P),C}for(k=r(m,k);P<w.length;P++)_=p(k,m,P,w[P],b),_!==null&&(e&&_.alternate!==null&&k.delete(_.key===null?P:_.key),v=i(_,v,P),R===null?C=_:R.sibling=_,R=_);return e&&k.forEach(function(A){return t(m,A)}),ne&&Vn(m,P),C}function y(m,v,w,b){var C=is(w);if(typeof C!="function")throw Error(T(150));if(w=C.call(w),w==null)throw Error(T(151));for(var R=C=null,k=v,P=v=0,_=null,F=w.next();k!==null&&!F.done;P++,F=w.next()){k.index>P?(_=k,k=null):_=k.sibling;var A=h(m,k,F.value,b);if(A===null){k===null&&(k=_);break}e&&k&&A.alternate===null&&t(m,k),v=i(A,v,P),R===null?C=A:R.sibling=A,R=A,k=_}if(F.done)return n(m,k),ne&&Vn(m,P),C;if(k===null){for(;!F.done;P++,F=w.next())F=d(m,F.value,b),F!==null&&(v=i(F,v,P),R===null?C=F:R.sibling=F,R=F);return ne&&Vn(m,P),C}for(k=r(m,k);!F.done;P++,F=w.next())F=p(k,m,P,F.value,b),F!==null&&(e&&F.alternate!==null&&k.delete(F.key===null?P:F.key),v=i(F,v,P),R===null?C=F:R.sibling=F,R=F);return e&&k.forEach(function(I){return t(m,I)}),ne&&Vn(m,P),C}function S(m,v,w,b){if(typeof w=="object"&&w!==null&&w.type===yr&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Bi:e:{for(var C=w.key,R=v;R!==null;){if(R.key===C){if(C=w.type,C===yr){if(R.tag===7){n(m,R.sibling),v=s(R,w.props.children),v.return=m,m=v;break e}}else if(R.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===hn&&jh(C)===R.type){n(m,R.sibling),v=s(R,w.props),v.ref=cs(m,R,w),v.return=m,m=v;break e}n(m,R);break}else t(m,R);R=R.sibling}w.type===yr?(v=Yn(w.props.children,m.mode,b,w.key),v.return=m,m=v):(b=ko(w.type,w.key,w.props,null,m.mode,b),b.ref=cs(m,v,w),b.return=m,m=b)}return o(m);case vr:e:{for(R=w.key;v!==null;){if(v.key===R)if(v.tag===4&&v.stateNode.containerInfo===w.containerInfo&&v.stateNode.implementation===w.implementation){n(m,v.sibling),v=s(v,w.children||[]),v.return=m,m=v;break e}else{n(m,v);break}else t(m,v);v=v.sibling}v=Ql(w,m.mode,b),v.return=m,m=v}return o(m);case hn:return R=w._init,S(m,v,R(w._payload),b)}if(xs(w))return g(m,v,w,b);if(is(w))return y(m,v,w,b);Ji(m,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,v!==null&&v.tag===6?(n(m,v.sibling),v=s(v,w),v.return=m,m=v):(n(m,v),v=ql(w,m.mode,b),v.return=m,m=v),o(m)):n(m,v)}return S}var Br=q1(!0),Q1=q1(!1),ki={},Ut=Dn(ki),ri=Dn(ki),si=Dn(ki);function Zn(e){if(e===ki)throw Error(T(174));return e}function hd(e,t){switch(J(si,t),J(ri,e),J(Ut,ki),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ju(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ju(t,e)}te(Ut),J(Ut,t)}function Vr(){te(Ut),te(ri),te(si)}function W1(e){Zn(si.current);var t=Zn(Ut.current),n=ju(t,e.type);t!==n&&(J(ri,e),J(Ut,n))}function pd(e){ri.current===e&&(te(Ut),te(ri))}var re=Dn(0);function oa(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 $l=[];function md(){for(var e=0;e<$l.length;e++)$l[e]._workInProgressVersionPrimary=null;$l.length=0}var So=on.ReactCurrentDispatcher,zl=on.ReactCurrentBatchConfig,tr=0,se=null,fe=null,ge=null,aa=!1,Ts=!1,ii=0,zx=0;function Re(){throw Error(T(321))}function gd(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ot(e[n],t[n]))return!1;return!0}function vd(e,t,n,r,s,i){if(tr=i,se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,So.current=e===null||e.memoizedState===null?Hx:qx,e=n(r,s),Ts){i=0;do{if(Ts=!1,ii=0,25<=i)throw Error(T(301));i+=1,ge=fe=null,t.updateQueue=null,So.current=Qx,e=n(r,s)}while(Ts)}if(So.current=la,t=fe!==null&&fe.next!==null,tr=0,ge=fe=se=null,aa=!1,t)throw Error(T(300));return e}function yd(){var e=ii!==0;return ii=0,e}function Mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ge===null?se.memoizedState=ge=e:ge=ge.next=e,ge}function gt(){if(fe===null){var e=se.alternate;e=e!==null?e.memoizedState:null}else e=fe.next;var t=ge===null?se.memoizedState:ge.next;if(t!==null)ge=t,fe=e;else{if(e===null)throw Error(T(310));fe=e,e={memoizedState:fe.memoizedState,baseState:fe.baseState,baseQueue:fe.baseQueue,queue:fe.queue,next:null},ge===null?se.memoizedState=ge=e:ge=ge.next=e}return ge}function oi(e,t){return typeof t=="function"?t(e):t}function Ul(e){var t=gt(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=fe,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var a=o=null,l=null,u=i;do{var c=u.lane;if((tr&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=d,o=r):l=l.next=d,se.lanes|=c,nr|=c}u=u.next}while(u!==null&&u!==i);l===null?o=r:l.next=a,Ot(r,t.memoizedState)||(He=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,se.lanes|=i,nr|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Bl(e){var t=gt(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);Ot(i,t.memoizedState)||(He=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function K1(){}function Z1(e,t){var n=se,r=gt(),s=t(),i=!Ot(r.memoizedState,s);if(i&&(r.memoizedState=s,He=!0),r=r.queue,wd(Y1.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||ge!==null&&ge.memoizedState.tag&1){if(n.flags|=2048,ai(9,X1.bind(null,n,r,s,t),void 0,null),ve===null)throw Error(T(349));tr&30||G1(n,t,s)}return s}function G1(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=se.updateQueue,t===null?(t={lastEffect:null,stores:null},se.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function X1(e,t,n,r){t.value=n,t.getSnapshot=r,J1(t)&&eg(e)}function Y1(e,t,n){return n(function(){J1(t)&&eg(e)})}function J1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ot(e,n)}catch{return!0}}function eg(e){var t=nn(e,1);t!==null&&Pt(t,e,1,-1)}function Th(e){var t=Mt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:oi,lastRenderedState:e},t.queue=e,e=e.dispatch=Vx.bind(null,se,e),[t.memoizedState,e]}function ai(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=se.updateQueue,t===null?(t={lastEffect:null,stores:null},se.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function tg(){return gt().memoizedState}function bo(e,t,n,r){var s=Mt();se.flags|=e,s.memoizedState=ai(1|t,n,void 0,r===void 0?null:r)}function Fa(e,t,n,r){var s=gt();r=r===void 0?null:r;var i=void 0;if(fe!==null){var o=fe.memoizedState;if(i=o.destroy,r!==null&&gd(r,o.deps)){s.memoizedState=ai(t,n,i,r);return}}se.flags|=e,s.memoizedState=ai(1|t,n,i,r)}function _h(e,t){return bo(8390656,8,e,t)}function wd(e,t){return Fa(2048,8,e,t)}function ng(e,t){return Fa(4,2,e,t)}function rg(e,t){return Fa(4,4,e,t)}function sg(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ig(e,t,n){return n=n!=null?n.concat([e]):null,Fa(4,4,sg.bind(null,t,e),n)}function xd(){}function og(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&gd(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ag(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&gd(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function lg(e,t,n){return tr&21?(Ot(n,t)||(n=d1(),se.lanes|=n,nr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,He=!0),e.memoizedState=n)}function Ux(e,t){var n=Y;Y=n!==0&&4>n?n:4,e(!0);var r=zl.transition;zl.transition={};try{e(!1),t()}finally{Y=n,zl.transition=r}}function ug(){return gt().memoizedState}function Bx(e,t,n){var r=Nn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},cg(e))dg(t,n);else if(n=U1(e,t,n,r),n!==null){var s=Ae();Pt(n,e,r,s),fg(n,t,r)}}function Vx(e,t,n){var r=Nn(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(cg(e))dg(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,n);if(s.hasEagerState=!0,s.eagerState=a,Ot(a,o)){var l=t.interleaved;l===null?(s.next=s,dd(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}n=U1(e,t,s,r),n!==null&&(s=Ae(),Pt(n,e,r,s),fg(n,t,r))}}function cg(e){var t=e.alternate;return e===se||t!==null&&t===se}function dg(e,t){Ts=aa=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xc(e,n)}}var la={readContext:mt,useCallback:Re,useContext:Re,useEffect:Re,useImperativeHandle:Re,useInsertionEffect:Re,useLayoutEffect:Re,useMemo:Re,useReducer:Re,useRef:Re,useState:Re,useDebugValue:Re,useDeferredValue:Re,useTransition:Re,useMutableSource:Re,useSyncExternalStore:Re,useId:Re,unstable_isNewReconciler:!1},Hx={readContext:mt,useCallback:function(e,t){return Mt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:_h,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,bo(4194308,4,sg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return bo(4194308,4,e,t)},useInsertionEffect:function(e,t){return bo(4,2,e,t)},useMemo:function(e,t){var n=Mt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Mt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Bx.bind(null,se,e),[r.memoizedState,e]},useRef:function(e){var t=Mt();return e={current:e},t.memoizedState=e},useState:Th,useDebugValue:xd,useDeferredValue:function(e){return Mt().memoizedState=e},useTransition:function(){var e=Th(!1),t=e[0];return e=Ux.bind(null,e[1]),Mt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=se,s=Mt();if(ne){if(n===void 0)throw Error(T(407));n=n()}else{if(n=t(),ve===null)throw Error(T(349));tr&30||G1(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,_h(Y1.bind(null,r,i,e),[e]),r.flags|=2048,ai(9,X1.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Mt(),t=ve.identifierPrefix;if(ne){var n=Xt,r=Gt;n=(r&~(1<<32-kt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ii++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=zx++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},qx={readContext:mt,useCallback:og,useContext:mt,useEffect:wd,useImperativeHandle:ig,useInsertionEffect:ng,useLayoutEffect:rg,useMemo:ag,useReducer:Ul,useRef:tg,useState:function(){return Ul(oi)},useDebugValue:xd,useDeferredValue:function(e){var t=gt();return lg(t,fe.memoizedState,e)},useTransition:function(){var e=Ul(oi)[0],t=gt().memoizedState;return[e,t]},useMutableSource:K1,useSyncExternalStore:Z1,useId:ug,unstable_isNewReconciler:!1},Qx={readContext:mt,useCallback:og,useContext:mt,useEffect:wd,useImperativeHandle:ig,useInsertionEffect:ng,useLayoutEffect:rg,useMemo:ag,useReducer:Bl,useRef:tg,useState:function(){return Bl(oi)},useDebugValue:xd,useDeferredValue:function(e){var t=gt();return fe===null?t.memoizedState=e:lg(t,fe.memoizedState,e)},useTransition:function(){var e=Bl(oi)[0],t=gt().memoizedState;return[e,t]},useMutableSource:K1,useSyncExternalStore:Z1,useId:ug,unstable_isNewReconciler:!1};function Hr(e,t){try{var n="",r=t;do n+=xw(r),r=r.return;while(r);var s=n}catch(i){s=`
40
40
  Error generating stack: `+i.message+`
41
- `+i.stack}return{value:e,source:t,stack:s,digest:null}}function Vl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ju(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Wx=typeof WeakMap=="function"?WeakMap:Map;function hg(e,t,n){n=Jt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ca||(ca=!0,uc=r),Ju(e,t)},n}function pg(e,t,n){n=Jt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){Ju(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ju(e,t),typeof r!="function"&&(On===null?On=new Set([this]):On.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ih(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Wx;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=aS.bind(null,e,t,n),t.then(e,e))}function Ah(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Lh(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Jt(-1,1),t.tag=2,Pn(n,t,1))),n.lanes|=1),e)}var Kx=on.ReactCurrentOwner,He=!1;function Te(e,t,n,r){t.child=e===null?Q1(t,null,n,r):Br(t,e.child,n,r)}function Mh(e,t,n,r,s){n=n.render;var i=t.ref;return Ar(t,s),r=vd(e,t,n,r,i,s),n=yd(),e!==null&&!He?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,rn(e,t,s)):(ne&&n&&id(t),t.flags|=1,Te(e,t,r,s),t.child)}function Dh(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!Od(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,mg(e,t,i,r,s)):(e=ko(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Js,n(o,r)&&e.ref===t.ref)return rn(e,t,s)}return t.flags|=1,e=jn(i,r),e.ref=t.ref,e.return=t,t.child=e}function mg(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(Js(i,r)&&e.ref===t.ref)if(He=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(He=!0);else return t.lanes=e.lanes,rn(e,t,s)}return ec(e,t,n,r,s)}function gg(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},J(Or,Ze),Ze|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,J(Or,Ze),Ze|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,J(Or,Ze),Ze|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,J(Or,Ze),Ze|=r;return Te(e,t,s,n),t.child}function vg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ec(e,t,n,r,s){var i=Qe(n)?Jn:Oe.current;return i=zr(t,i),Ar(t,s),n=vd(e,t,n,r,i,s),r=yd(),e!==null&&!He?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,rn(e,t,s)):(ne&&r&&id(t),t.flags|=1,Te(e,t,n,s),t.child)}function Fh(e,t,n,r,s){if(Qe(n)){var i=!0;ea(t)}else i=!1;if(Ar(t,s),t.stateNode===null)Eo(e,t),H1(t,n,r),Yu(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=mt(u):(u=Qe(n)?Jn:Oe.current,u=zr(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Nh(t,o,r,u),pn=!1;var h=t.memoizedState;o.state=h,ia(t,r,o,s),l=t.memoizedState,a!==r||h!==l||qe.current||pn?(typeof c=="function"&&(Xu(t,n,c,r),l=t.memoizedState),(a=pn||Oh(t,n,a,r,h,l,u))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,B1(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:St(t.type,a),o.props=u,d=t.pendingProps,h=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=mt(l):(l=Qe(n)?Jn:Oe.current,l=zr(t,l));var m=n.getDerivedStateFromProps;(c=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||h!==l)&&Nh(t,o,r,l),pn=!1,h=t.memoizedState,o.state=h,ia(t,r,o,s);var g=t.memoizedState;a!==d||h!==g||qe.current||pn?(typeof m=="function"&&(Xu(t,n,m,r),g=t.memoizedState),(u=pn||Oh(t,n,u,r,h,g,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,g,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,g,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),o.props=r,o.state=g,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return tc(e,t,n,r,i,s)}function tc(e,t,n,r,s,i){vg(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&Eh(t,n,!1),rn(e,t,i);r=t.stateNode,Kx.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Br(t,e.child,null,i),t.child=Br(t,null,a,i)):Te(e,t,a,i),t.memoizedState=r.state,s&&Eh(t,n,!0),t.child}function yg(e){var t=e.stateNode;t.pendingContext?bh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&bh(e,t.context,!1),hd(e,t.containerInfo)}function $h(e,t,n,r,s){return Ur(),ad(s),t.flags|=256,Te(e,t,n,r),t.child}var nc={dehydrated:null,treeContext:null,retryLane:0};function rc(e){return{baseLanes:e,cachePool:null,transitions:null}}function wg(e,t,n){var r=t.pendingProps,s=re.current,i=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),J(re,s&1),e===null)return Zu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Ua(o,r,0,null),e=Yn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=rc(n),t.memoizedState=nc,e):Sd(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return Zx(e,t,o,r,a,s,n);if(i){i=r.fallback,o=t.mode,s=e.child,a=s.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=jn(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=jn(a,i):(i=Yn(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?rc(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=nc,r}return i=e.child,e=i.sibling,r=jn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Sd(e,t){return t=Ua({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function eo(e,t,n,r){return r!==null&&ad(r),Br(t,e.child,null,n),e=Sd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Zx(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=Vl(Error(T(422))),eo(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=Ua({mode:"visible",children:r.children},s,0,null),i=Yn(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Br(t,e.child,null,o),t.child.memoizedState=rc(o),t.memoizedState=nc,i);if(!(t.mode&1))return eo(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(T(419)),r=Vl(i,r,void 0),eo(e,t,o,r)}if(a=(o&e.childLanes)!==0,He||a){if(r=ge,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,nn(e,s),Pt(r,e,s,-1))}return Pd(),r=Vl(Error(T(421))),eo(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=lS.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,Xe=kn(s.nextSibling),et=t,ne=!0,Et=null,e!==null&&(lt[ut++]=Gt,lt[ut++]=Xt,lt[ut++]=er,Gt=e.id,Xt=e.overflow,er=t),t=Sd(t,r.children),t.flags|=4096,t)}function zh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Gu(e.return,t,n)}function Hl(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function xg(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(Te(e,t,r.children,n),r=re.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&zh(e,n,t);else if(e.tag===19)zh(e,n,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}r&=1}if(J(re,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&oa(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Hl(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&oa(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Hl(t,!0,n,null,i);break;case"together":Hl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Eo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function rn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),nr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(T(153));if(t.child!==null){for(e=t.child,n=jn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=jn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Gx(e,t,n){switch(t.tag){case 3:yg(t),Ur();break;case 5:W1(t);break;case 1:Qe(t.type)&&ea(t);break;case 4:hd(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;J(ra,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(J(re,re.current&1),t.flags|=128,null):n&t.child.childLanes?wg(e,t,n):(J(re,re.current&1),e=rn(e,t,n),e!==null?e.sibling:null);J(re,re.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return xg(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),J(re,re.current),r)break;return null;case 22:case 23:return t.lanes=0,gg(e,t,n)}return rn(e,t,n)}var Sg,sc,bg,Eg;Sg=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};sc=function(){};bg=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Zn(Ut.current);var i=null;switch(n){case"input":s=ku(e,s),r=ku(e,r),i=[];break;case"select":s=ie({},s,{value:void 0}),r=ie({},r,{value:void 0}),i=[];break;case"textarea":s=Nu(e,s),r=Nu(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Yo)}Tu(n,r);var o;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var a=s[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Qs.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(a=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Qs.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ee("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Eg=function(e,t,n,r){n!==r&&(t.flags|=4)};function ds(e,t){if(!ne)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.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,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Xx(e,t,n){var r=t.pendingProps;switch(od(t),t.tag){case 2: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 Qe(t.type)&&Jo(),ke(t),null;case 3:return r=t.stateNode,Vr(),te(qe),te(Oe),md(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Yi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Et!==null&&(fc(Et),Et=null))),sc(e,t),ke(t),null;case 5:pd(t);var s=Zn(si.current);if(n=t.type,e!==null&&t.stateNode!=null)bg(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(T(166));return ke(t),null}if(e=Zn(Ut.current),Yi(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Ft]=t,r[ni]=i,e=(t.mode&1)!==0,n){case"dialog":ee("cancel",r),ee("close",r);break;case"iframe":case"object":case"embed":ee("load",r);break;case"video":case"audio":for(s=0;s<bs.length;s++)ee(bs[s],r);break;case"source":ee("error",r);break;case"img":case"image":case"link":ee("error",r),ee("load",r);break;case"details":ee("toggle",r);break;case"input":Zf(r,i),ee("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ee("invalid",r);break;case"textarea":Xf(r,i),ee("invalid",r)}Tu(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];o==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Xi(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Xi(r.textContent,a,e),s=["children",""+a]):Qs.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&ee("scroll",r)}switch(n){case"input":Vi(r),Gf(r,i,!0);break;case"textarea":Vi(r),Yf(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Yo)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Gm(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ft]=t,e[ni]=r,Sg(e,t,!1,!1),t.stateNode=e;e:{switch(o=_u(n,r),n){case"dialog":ee("cancel",e),ee("close",e),s=r;break;case"iframe":case"object":case"embed":ee("load",e),s=r;break;case"video":case"audio":for(s=0;s<bs.length;s++)ee(bs[s],e);s=r;break;case"source":ee("error",e),s=r;break;case"img":case"image":case"link":ee("error",e),ee("load",e),s=r;break;case"details":ee("toggle",e),s=r;break;case"input":Zf(e,r),s=ku(e,r),ee("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=ie({},r,{value:void 0}),ee("invalid",e);break;case"textarea":Xf(e,r),s=Nu(e,r),ee("invalid",e);break;default:s=r}Tu(n,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?Jm(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Xm(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Ws(e,l):typeof l=="number"&&Ws(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Qs.hasOwnProperty(i)?l!=null&&i==="onScroll"&&ee("scroll",e):l!=null&&qc(e,i,l,o))}switch(n){case"input":Vi(e),Gf(e,r,!1);break;case"textarea":Vi(e),Yf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+_n(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?jr(e,!!r.multiple,i,!1):r.defaultValue!=null&&jr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Yo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ke(t),null;case 6:if(e&&t.stateNode!=null)Eg(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(T(166));if(n=Zn(si.current),Zn(Ut.current),Yi(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ft]=t,(i=r.nodeValue!==n)&&(e=et,e!==null))switch(e.tag){case 3:Xi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Xi(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ft]=t,t.stateNode=r}return ke(t),null;case 13:if(te(re),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ne&&Xe!==null&&t.mode&1&&!(t.flags&128))z1(),Ur(),t.flags|=98560,i=!1;else if(i=Yi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(T(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(T(317));i[Ft]=t}else Ur(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ke(t),i=!1}else Et!==null&&(fc(Et),Et=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||re.current&1?he===0&&(he=3):Pd())),t.updateQueue!==null&&(t.flags|=4),ke(t),null);case 4:return Vr(),sc(e,t),e===null&&ei(t.stateNode.containerInfo),ke(t),null;case 10:return cd(t.type._context),ke(t),null;case 17:return Qe(t.type)&&Jo(),ke(t),null;case 19:if(te(re),i=t.memoizedState,i===null)return ke(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)ds(i,!1);else{if(he!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=oa(e),o!==null){for(t.flags|=128,ds(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return J(re,re.current&1|2),t.child}e=e.sibling}i.tail!==null&&ue()>qr&&(t.flags|=128,r=!0,ds(i,!1),t.lanes=4194304)}else{if(!r)if(e=oa(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ds(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!ne)return ke(t),null}else 2*ue()-i.renderingStartTime>qr&&n!==1073741824&&(t.flags|=128,r=!0,ds(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ue(),t.sibling=null,n=re.current,J(re,r?n&1|2:n&1),t):(ke(t),null);case 22:case 23:return kd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ze&1073741824&&(ke(t),t.subtreeFlags&6&&(t.flags|=8192)):ke(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function Yx(e,t){switch(od(t),t.tag){case 1:return Qe(t.type)&&Jo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vr(),te(qe),te(Oe),md(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return pd(t),null;case 13:if(te(re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));Ur()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return te(re),null;case 4:return Vr(),null;case 10:return cd(t.type._context),null;case 22:case 23:return kd(),null;case 24:return null;default:return null}}var to=!1,Pe=!1,Jx=typeof WeakSet=="function"?WeakSet:Set,z=null;function Pr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){oe(e,t,r)}else n.current=null}function ic(e,t,n){try{n()}catch(r){oe(e,t,r)}}var Uh=!1;function eS(e,t){if(Bu=Zo,e=P1(),sd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,d=e,h=null;t:for(;;){for(var m;d!==n||s!==0&&d.nodeType!==3||(a=o+s),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(m=d.firstChild)!==null;)h=d,d=m;for(;;){if(d===e)break t;if(h===n&&++u===s&&(a=o),h===i&&++c===r&&(l=o),(m=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Vu={focusedElem:e,selectionRange:n},Zo=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,S=g.memoizedState,p=t.stateNode,v=p.getSnapshotBeforeUpdate(t.elementType===t.type?y:St(t.type,y),S);p.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(b){oe(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return g=Uh,Uh=!1,g}function _s(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&ic(t,n,i)}s=s.next}while(s!==r)}}function $a(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function oc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Cg(e){var t=e.alternate;t!==null&&(e.alternate=null,Cg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ft],delete t[ni],delete t[Qu],delete t[Mx],delete t[Dx])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Rg(e){return e.tag===5||e.tag===3||e.tag===4}function Bh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rg(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.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 ac(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Yo));else if(r!==4&&(e=e.child,e!==null))for(ac(e,t,n),e=e.sibling;e!==null;)ac(e,t,n),e=e.sibling}function lc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(lc(e,t,n),e=e.sibling;e!==null;)lc(e,t,n),e=e.sibling}var Se=null,bt=!1;function cn(e,t,n){for(n=n.child;n!==null;)kg(e,t,n),n=n.sibling}function kg(e,t,n){if(zt&&typeof zt.onCommitFiberUnmount=="function")try{zt.onCommitFiberUnmount(Ta,n)}catch{}switch(n.tag){case 5:Pe||Pr(n,t);case 6:var r=Se,s=bt;Se=null,cn(e,t,n),Se=r,bt=s,Se!==null&&(bt?(e=Se,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Se.removeChild(n.stateNode));break;case 18:Se!==null&&(bt?(e=Se,n=n.stateNode,e.nodeType===8?Dl(e.parentNode,n):e.nodeType===1&&Dl(e,n),Xs(e)):Dl(Se,n.stateNode));break;case 4:r=Se,s=bt,Se=n.stateNode.containerInfo,bt=!0,cn(e,t,n),Se=r,bt=s;break;case 0:case 11:case 14:case 15:if(!Pe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&ic(n,t,o),s=s.next}while(s!==r)}cn(e,t,n);break;case 1:if(!Pe&&(Pr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){oe(n,t,a)}cn(e,t,n);break;case 21:cn(e,t,n);break;case 22:n.mode&1?(Pe=(r=Pe)||n.memoizedState!==null,cn(e,t,n),Pe=r):cn(e,t,n);break;default:cn(e,t,n)}}function Vh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Jx),t.forEach(function(r){var s=uS.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function xt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:Se=a.stateNode,bt=!1;break e;case 3:Se=a.stateNode.containerInfo,bt=!0;break e;case 4:Se=a.stateNode.containerInfo,bt=!0;break e}a=a.return}if(Se===null)throw Error(T(160));kg(i,o,s),Se=null,bt=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(u){oe(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Pg(t,e),t=t.sibling}function Pg(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(xt(t,e),At(e),r&4){try{_s(3,e,e.return),$a(3,e)}catch(y){oe(e,e.return,y)}try{_s(5,e,e.return)}catch(y){oe(e,e.return,y)}}break;case 1:xt(t,e),At(e),r&512&&n!==null&&Pr(n,n.return);break;case 5:if(xt(t,e),At(e),r&512&&n!==null&&Pr(n,n.return),e.flags&32){var s=e.stateNode;try{Ws(s,"")}catch(y){oe(e,e.return,y)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&Km(s,i),_u(a,o);var u=_u(a,i);for(o=0;o<l.length;o+=2){var c=l[o],d=l[o+1];c==="style"?Jm(s,d):c==="dangerouslySetInnerHTML"?Xm(s,d):c==="children"?Ws(s,d):qc(s,c,d,u)}switch(a){case"input":Pu(s,i);break;case"textarea":Zm(s,i);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var m=i.value;m!=null?jr(s,!!i.multiple,m,!1):h!==!!i.multiple&&(i.defaultValue!=null?jr(s,!!i.multiple,i.defaultValue,!0):jr(s,!!i.multiple,i.multiple?[]:"",!1))}s[ni]=i}catch(y){oe(e,e.return,y)}}break;case 6:if(xt(t,e),At(e),r&4){if(e.stateNode===null)throw Error(T(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(y){oe(e,e.return,y)}}break;case 3:if(xt(t,e),At(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Xs(t.containerInfo)}catch(y){oe(e,e.return,y)}break;case 4:xt(t,e),At(e);break;case 13:xt(t,e),At(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(Cd=ue())),r&4&&Vh(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Pe=(u=Pe)||c,xt(t,e),Pe=u):xt(t,e),At(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(z=e,c=e.child;c!==null;){for(d=z=c;z!==null;){switch(h=z,m=h.child,h.tag){case 0:case 11:case 14:case 15:_s(4,h,h.return);break;case 1:Pr(h,h.return);var g=h.stateNode;if(typeof g.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(y){oe(r,n,y)}}break;case 5:Pr(h,h.return);break;case 22:if(h.memoizedState!==null){qh(d);continue}}m!==null?(m.return=h,z=m):qh(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{s=d.stateNode,u?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=d.stateNode,l=d.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Ym("display",o))}catch(y){oe(e,e.return,y)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(y){oe(e,e.return,y)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:xt(t,e),At(e),r&4&&Vh(e);break;case 21:break;default:xt(t,e),At(e)}}function At(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Rg(n)){var r=n;break e}n=n.return}throw Error(T(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Ws(s,""),r.flags&=-33);var i=Bh(e);lc(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Bh(e);ac(e,a,o);break;default:throw Error(T(161))}}catch(l){oe(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function tS(e,t,n){z=e,Og(e)}function Og(e,t,n){for(var r=(e.mode&1)!==0;z!==null;){var s=z,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||to;if(!o){var a=s.alternate,l=a!==null&&a.memoizedState!==null||Pe;a=to;var u=Pe;if(to=o,(Pe=l)&&!u)for(z=s;z!==null;)o=z,l=o.child,o.tag===22&&o.memoizedState!==null?Qh(s):l!==null?(l.return=o,z=l):Qh(s);for(;i!==null;)z=i,Og(i),i=i.sibling;z=s,to=a,Pe=u}Hh(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,z=i):Hh(e)}}function Hh(e){for(;z!==null;){var t=z;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Pe||$a(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Pe)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:St(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Ph(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ph(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Xs(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(T(163))}Pe||t.flags&512&&oc(t)}catch(h){oe(t,t.return,h)}}if(t===e){z=null;break}if(n=t.sibling,n!==null){n.return=t.return,z=n;break}z=t.return}}function qh(e){for(;z!==null;){var t=z;if(t===e){z=null;break}var n=t.sibling;if(n!==null){n.return=t.return,z=n;break}z=t.return}}function Qh(e){for(;z!==null;){var t=z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{$a(4,t)}catch(l){oe(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(l){oe(t,s,l)}}var i=t.return;try{oc(t)}catch(l){oe(t,i,l)}break;case 5:var o=t.return;try{oc(t)}catch(l){oe(t,o,l)}}}catch(l){oe(t,t.return,l)}if(t===e){z=null;break}var a=t.sibling;if(a!==null){a.return=t.return,z=a;break}z=t.return}}var nS=Math.ceil,ua=on.ReactCurrentDispatcher,bd=on.ReactCurrentOwner,pt=on.ReactCurrentBatchConfig,W=0,ge=null,de=null,be=0,Ze=0,Or=Dn(0),he=0,li=null,nr=0,za=0,Ed=0,Is=null,Be=null,Cd=0,qr=1/0,Wt=null,ca=!1,uc=null,On=null,no=!1,wn=null,da=0,As=0,cc=null,Co=-1,Ro=0;function Ae(){return W&6?ue():Co!==-1?Co:Co=ue()}function Nn(e){return e.mode&1?W&2&&be!==0?be&-be:$x.transition!==null?(Ro===0&&(Ro=d1()),Ro):(e=Y,e!==0||(e=window.event,e=e===void 0?16:y1(e.type)),e):1}function Pt(e,t,n,r){if(50<As)throw As=0,cc=null,Error(T(185));Ei(e,n,r),(!(W&2)||e!==ge)&&(e===ge&&(!(W&2)&&(za|=n),he===4&&gn(e,be)),We(e,r),n===1&&W===0&&!(t.mode&1)&&(qr=ue()+500,Ma&&Fn()))}function We(e,t){var n=e.callbackNode;$w(e,t);var r=Ko(e,e===ge?be:0);if(r===0)n!==null&&th(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&th(n),t===1)e.tag===0?Fx(Wh.bind(null,e)):D1(Wh.bind(null,e)),Ax(function(){!(W&6)&&Fn()}),n=null;else{switch(f1(r)){case 1:n=Gc;break;case 4:n=u1;break;case 16:n=Wo;break;case 536870912:n=c1;break;default:n=Wo}n=Mg(n,Ng.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ng(e,t){if(Co=-1,Ro=0,W&6)throw Error(T(327));var n=e.callbackNode;if(Lr()&&e.callbackNode!==n)return null;var r=Ko(e,e===ge?be:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=fa(e,r);else{t=r;var s=W;W|=2;var i=Tg();(ge!==e||be!==t)&&(Wt=null,qr=ue()+500,Xn(e,t));do try{iS();break}catch(a){jg(e,a)}while(1);ud(),ua.current=i,W=s,de!==null?t=0:(ge=null,be=0,t=he)}if(t!==0){if(t===2&&(s=Du(e),s!==0&&(r=s,t=dc(e,s))),t===1)throw n=li,Xn(e,0),gn(e,r),We(e,ue()),n;if(t===6)gn(e,r);else{if(s=e.current.alternate,!(r&30)&&!rS(s)&&(t=fa(e,r),t===2&&(i=Du(e),i!==0&&(r=i,t=dc(e,i))),t===1))throw n=li,Xn(e,0),gn(e,r),We(e,ue()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(T(345));case 2:Hn(e,Be,Wt);break;case 3:if(gn(e,r),(r&130023424)===r&&(t=Cd+500-ue(),10<t)){if(Ko(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){Ae(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=qu(Hn.bind(null,e,Be,Wt),t);break}Hn(e,Be,Wt);break;case 4:if(gn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-kt(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=ue()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*nS(r/1960))-r,10<r){e.timeoutHandle=qu(Hn.bind(null,e,Be,Wt),r);break}Hn(e,Be,Wt);break;case 5:Hn(e,Be,Wt);break;default:throw Error(T(329))}}}return We(e,ue()),e.callbackNode===n?Ng.bind(null,e):null}function dc(e,t){var n=Is;return e.current.memoizedState.isDehydrated&&(Xn(e,t).flags|=256),e=fa(e,t),e!==2&&(t=Be,Be=n,t!==null&&fc(t)),e}function fc(e){Be===null?Be=e:Be.push.apply(Be,e)}function rS(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],i=s.getSnapshot;s=s.value;try{if(!Ot(i(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 gn(e,t){for(t&=~Ed,t&=~za,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-kt(t),r=1<<n;e[n]=-1,t&=~r}}function Wh(e){if(W&6)throw Error(T(327));Lr();var t=Ko(e,0);if(!(t&1))return We(e,ue()),null;var n=fa(e,t);if(e.tag!==0&&n===2){var r=Du(e);r!==0&&(t=r,n=dc(e,r))}if(n===1)throw n=li,Xn(e,0),gn(e,t),We(e,ue()),n;if(n===6)throw Error(T(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Hn(e,Be,Wt),We(e,ue()),null}function Rd(e,t){var n=W;W|=1;try{return e(t)}finally{W=n,W===0&&(qr=ue()+500,Ma&&Fn())}}function rr(e){wn!==null&&wn.tag===0&&!(W&6)&&Lr();var t=W;W|=1;var n=pt.transition,r=Y;try{if(pt.transition=null,Y=1,e)return e()}finally{Y=r,pt.transition=n,W=t,!(W&6)&&Fn()}}function kd(){Ze=Or.current,te(Or)}function Xn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Ix(n)),de!==null)for(n=de.return;n!==null;){var r=n;switch(od(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Jo();break;case 3:Vr(),te(qe),te(Oe),md();break;case 5:pd(r);break;case 4:Vr();break;case 13:te(re);break;case 19:te(re);break;case 10:cd(r.type._context);break;case 22:case 23:kd()}n=n.return}if(ge=e,de=e=jn(e.current,null),be=Ze=t,he=0,li=null,Ed=za=nr=0,Be=Is=null,Kn!==null){for(t=0;t<Kn.length;t++)if(n=Kn[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}Kn=null}return e}function jg(e,t){do{var n=de;try{if(ud(),So.current=la,aa){for(var r=se.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}aa=!1}if(tr=0,me=fe=se=null,Ts=!1,ii=0,bd.current=null,n===null||n.return===null){he=1,li=t,de=null;break}e:{var i=e,o=n.return,a=n,l=t;if(t=be,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var m=Ah(o);if(m!==null){m.flags&=-257,Lh(m,o,a,i,t),m.mode&1&&Ih(i,u,t),t=m,l=u;var g=t.updateQueue;if(g===null){var y=new Set;y.add(l),t.updateQueue=y}else g.add(l);break e}else{if(!(t&1)){Ih(i,u,t),Pd();break e}l=Error(T(426))}}else if(ne&&a.mode&1){var S=Ah(o);if(S!==null){!(S.flags&65536)&&(S.flags|=256),Lh(S,o,a,i,t),ad(Hr(l,a));break e}}i=l=Hr(l,a),he!==4&&(he=2),Is===null?Is=[i]:Is.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var p=hg(i,l,t);kh(i,p);break e;case 1:a=l;var v=i.type,w=i.stateNode;if(!(i.flags&128)&&(typeof v.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(On===null||!On.has(w)))){i.flags|=65536,t&=-t,i.lanes|=t;var b=pg(i,a,t);kh(i,b);break e}}i=i.return}while(i!==null)}Ig(n)}catch(C){t=C,de===n&&n!==null&&(de=n=n.return);continue}break}while(1)}function Tg(){var e=ua.current;return ua.current=la,e===null?la:e}function Pd(){(he===0||he===3||he===2)&&(he=4),ge===null||!(nr&268435455)&&!(za&268435455)||gn(ge,be)}function fa(e,t){var n=W;W|=2;var r=Tg();(ge!==e||be!==t)&&(Wt=null,Xn(e,t));do try{sS();break}catch(s){jg(e,s)}while(1);if(ud(),W=n,ua.current=r,de!==null)throw Error(T(261));return ge=null,be=0,he}function sS(){for(;de!==null;)_g(de)}function iS(){for(;de!==null&&!jw();)_g(de)}function _g(e){var t=Lg(e.alternate,e,Ze);e.memoizedProps=e.pendingProps,t===null?Ig(e):de=t,bd.current=null}function Ig(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Yx(n,t),n!==null){n.flags&=32767,de=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{he=6,de=null;return}}else if(n=Xx(n,t,Ze),n!==null){de=n;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);he===0&&(he=5)}function Hn(e,t,n){var r=Y,s=pt.transition;try{pt.transition=null,Y=1,oS(e,t,n,r)}finally{pt.transition=s,Y=r}return null}function oS(e,t,n,r){do Lr();while(wn!==null);if(W&6)throw Error(T(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(T(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(zw(e,i),e===ge&&(de=ge=null,be=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||no||(no=!0,Mg(Wo,function(){return Lr(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=pt.transition,pt.transition=null;var o=Y;Y=1;var a=W;W|=4,bd.current=null,eS(e,n),Pg(n,e),kx(Vu),Zo=!!Bu,Vu=Bu=null,e.current=n,tS(n),Tw(),W=a,Y=o,pt.transition=i}else e.current=n;if(no&&(no=!1,wn=e,da=s),i=e.pendingLanes,i===0&&(On=null),Aw(n.stateNode),We(e,ue()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(ca)throw ca=!1,e=uc,uc=null,e;return da&1&&e.tag!==0&&Lr(),i=e.pendingLanes,i&1?e===cc?As++:(As=0,cc=e):As=0,Fn(),null}function Lr(){if(wn!==null){var e=f1(da),t=pt.transition,n=Y;try{if(pt.transition=null,Y=16>e?16:e,wn===null)var r=!1;else{if(e=wn,wn=null,da=0,W&6)throw Error(T(331));var s=W;for(W|=4,z=e.current;z!==null;){var i=z,o=i.child;if(z.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(z=u;z!==null;){var c=z;switch(c.tag){case 0:case 11:case 15:_s(8,c,i)}var d=c.child;if(d!==null)d.return=c,z=d;else for(;z!==null;){c=z;var h=c.sibling,m=c.return;if(Cg(c),c===u){z=null;break}if(h!==null){h.return=m,z=h;break}z=m}}}var g=i.alternate;if(g!==null){var y=g.child;if(y!==null){g.child=null;do{var S=y.sibling;y.sibling=null,y=S}while(y!==null)}}z=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,z=o;else e:for(;z!==null;){if(i=z,i.flags&2048)switch(i.tag){case 0:case 11:case 15:_s(9,i,i.return)}var p=i.sibling;if(p!==null){p.return=i.return,z=p;break e}z=i.return}}var v=e.current;for(z=v;z!==null;){o=z;var w=o.child;if(o.subtreeFlags&2064&&w!==null)w.return=o,z=w;else e:for(o=v;z!==null;){if(a=z,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:$a(9,a)}}catch(C){oe(a,a.return,C)}if(a===o){z=null;break e}var b=a.sibling;if(b!==null){b.return=a.return,z=b;break e}z=a.return}}if(W=s,Fn(),zt&&typeof zt.onPostCommitFiberRoot=="function")try{zt.onPostCommitFiberRoot(Ta,e)}catch{}r=!0}return r}finally{Y=n,pt.transition=t}}return!1}function Kh(e,t,n){t=Hr(n,t),t=hg(e,t,1),e=Pn(e,t,1),t=Ae(),e!==null&&(Ei(e,1,t),We(e,t))}function oe(e,t,n){if(e.tag===3)Kh(e,e,n);else for(;t!==null;){if(t.tag===3){Kh(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(On===null||!On.has(r))){e=Hr(n,e),e=pg(t,e,1),t=Pn(t,e,1),e=Ae(),t!==null&&(Ei(t,1,e),We(t,e));break}}t=t.return}}function aS(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ae(),e.pingedLanes|=e.suspendedLanes&n,ge===e&&(be&n)===n&&(he===4||he===3&&(be&130023424)===be&&500>ue()-Cd?Xn(e,0):Ed|=n),We(e,t)}function Ag(e,t){t===0&&(e.mode&1?(t=Qi,Qi<<=1,!(Qi&130023424)&&(Qi=4194304)):t=1);var n=Ae();e=nn(e,t),e!==null&&(Ei(e,t,n),We(e,n))}function lS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ag(e,n)}function uS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(T(314))}r!==null&&r.delete(t),Ag(e,n)}var Lg;Lg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||qe.current)He=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return He=!1,Gx(e,t,n);He=!!(e.flags&131072)}else He=!1,ne&&t.flags&1048576&&F1(t,na,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Eo(e,t),e=t.pendingProps;var s=zr(t,Oe.current);Ar(t,n),s=vd(null,t,r,e,s,n);var i=yd();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Qe(r)?(i=!0,ea(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,fd(t),s.updater=Da,t.stateNode=s,s._reactInternals=t,Yu(t,r,e,n),t=tc(null,t,r,!0,i,n)):(t.tag=0,ne&&i&&id(t),Te(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Eo(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=dS(r),e=St(r,e),s){case 0:t=ec(null,t,r,e,n);break e;case 1:t=Fh(null,t,r,e,n);break e;case 11:t=Mh(null,t,r,e,n);break e;case 14:t=Dh(null,t,r,St(r.type,e),n);break e}throw Error(T(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:St(r,s),ec(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:St(r,s),Fh(e,t,r,s,n);case 3:e:{if(yg(t),e===null)throw Error(T(387));r=t.pendingProps,i=t.memoizedState,s=i.element,B1(e,t),ia(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=Hr(Error(T(423)),t),t=$h(e,t,r,n,s);break e}else if(r!==s){s=Hr(Error(T(424)),t),t=$h(e,t,r,n,s);break e}else for(Xe=kn(t.stateNode.containerInfo.firstChild),et=t,ne=!0,Et=null,n=Q1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ur(),r===s){t=rn(e,t,n);break e}Te(e,t,r,n)}t=t.child}return t;case 5:return W1(t),e===null&&Zu(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,Hu(r,s)?o=null:i!==null&&Hu(r,i)&&(t.flags|=32),vg(e,t),Te(e,t,o,n),t.child;case 6:return e===null&&Zu(t),null;case 13:return wg(e,t,n);case 4:return hd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Br(t,null,r,n):Te(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:St(r,s),Mh(e,t,r,s,n);case 7:return Te(e,t,t.pendingProps,n),t.child;case 8:return Te(e,t,t.pendingProps.children,n),t.child;case 12:return Te(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,J(ra,r._currentValue),r._currentValue=o,i!==null)if(Ot(i.value,o)){if(i.children===s.children&&!qe.current){t=rn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Jt(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Gu(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(T(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Gu(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Te(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Ar(t,n),s=mt(s),r=r(s),t.flags|=1,Te(e,t,r,n),t.child;case 14:return r=t.type,s=St(r,t.pendingProps),s=St(r.type,s),Dh(e,t,r,s,n);case 15:return mg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:St(r,s),Eo(e,t),t.tag=1,Qe(r)?(e=!0,ea(t)):e=!1,Ar(t,n),H1(t,r,s),Yu(t,r,s,n),tc(null,t,r,!0,e,n);case 19:return xg(e,t,n);case 22:return gg(e,t,n)}throw Error(T(156,t.tag))};function Mg(e,t){return l1(e,t)}function cS(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,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 ht(e,t,n,r){return new cS(e,t,n,r)}function Od(e){return e=e.prototype,!(!e||!e.isReactComponent)}function dS(e){if(typeof e=="function")return Od(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Wc)return 11;if(e===Kc)return 14}return 2}function jn(e,t){var n=e.alternate;return n===null?(n=ht(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ko(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")Od(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case yr:return Yn(n.children,s,i,t);case Qc:o=8,s|=8;break;case bu:return e=ht(12,n,t,s|2),e.elementType=bu,e.lanes=i,e;case Eu:return e=ht(13,n,t,s),e.elementType=Eu,e.lanes=i,e;case Cu:return e=ht(19,n,t,s),e.elementType=Cu,e.lanes=i,e;case qm:return Ua(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Vm:o=10;break e;case Hm:o=9;break e;case Wc:o=11;break e;case Kc:o=14;break e;case hn:o=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=ht(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function Yn(e,t,n,r){return e=ht(7,e,r,t),e.lanes=n,e}function Ua(e,t,n,r){return e=ht(22,e,r,t),e.elementType=qm,e.lanes=n,e.stateNode={isHidden:!1},e}function ql(e,t,n){return e=ht(6,e,null,t),e.lanes=n,e}function Ql(e,t,n){return t=ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function fS(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=kl(0),this.expirationTimes=kl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kl(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Nd(e,t,n,r,s,i,o,a,l){return e=new fS(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ht(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},fd(i),e}function hS(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:vr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Dg(e){if(!e)return In;e=e._reactInternals;e:{if(lr(e)!==e||e.tag!==1)throw Error(T(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Qe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(T(171))}if(e.tag===1){var n=e.type;if(Qe(n))return M1(e,n,t)}return t}function Fg(e,t,n,r,s,i,o,a,l){return e=Nd(n,r,!0,e,s,i,o,a,l),e.context=Dg(null),n=e.current,r=Ae(),s=Nn(n),i=Jt(r,s),i.callback=t??null,Pn(n,i,s),e.current.lanes=s,Ei(e,s,r),We(e,r),e}function Ba(e,t,n,r){var s=t.current,i=Ae(),o=Nn(s);return n=Dg(n),t.context===null?t.context=n:t.pendingContext=n,t=Jt(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Pn(s,t,o),e!==null&&(Pt(e,s,o,i),xo(e,s,o)),o}function ha(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Zh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function jd(e,t){Zh(e,t),(e=e.alternate)&&Zh(e,t)}function pS(){return null}var $g=typeof reportError=="function"?reportError:function(e){console.error(e)};function Td(e){this._internalRoot=e}Va.prototype.render=Td.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(T(409));Ba(e,t,null,null)};Va.prototype.unmount=Td.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rr(function(){Ba(null,e,null,null)}),t[tn]=null}};function Va(e){this._internalRoot=e}Va.prototype.unstable_scheduleHydration=function(e){if(e){var t=m1();e={blockedOn:null,target:e,priority:t};for(var n=0;n<mn.length&&t!==0&&t<mn[n].priority;n++);mn.splice(n,0,e),n===0&&v1(e)}};function _d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ha(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Gh(){}function mS(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var u=ha(o);i.call(u)}}var o=Fg(t,r,e,0,null,!1,!1,"",Gh);return e._reactRootContainer=o,e[tn]=o.current,ei(e.nodeType===8?e.parentNode:e),rr(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var u=ha(l);a.call(u)}}var l=Nd(e,0,!1,null,null,!1,!1,"",Gh);return e._reactRootContainer=l,e[tn]=l.current,ei(e.nodeType===8?e.parentNode:e),rr(function(){Ba(t,l,n,r)}),l}function qa(e,t,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var a=s;s=function(){var l=ha(o);a.call(l)}}Ba(t,o,e,s)}else o=mS(n,t,e,s,r);return ha(o)}h1=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ss(t.pendingLanes);n!==0&&(Xc(t,n|1),We(t,ue()),!(W&6)&&(qr=ue()+500,Fn()))}break;case 13:rr(function(){var r=nn(e,1);if(r!==null){var s=Ae();Pt(r,e,1,s)}}),jd(e,1)}};Yc=function(e){if(e.tag===13){var t=nn(e,134217728);if(t!==null){var n=Ae();Pt(t,e,134217728,n)}jd(e,134217728)}};p1=function(e){if(e.tag===13){var t=Nn(e),n=nn(e,t);if(n!==null){var r=Ae();Pt(n,e,t,r)}jd(e,t)}};m1=function(){return Y};g1=function(e,t){var n=Y;try{return Y=e,t()}finally{Y=n}};Au=function(e,t,n){switch(t){case"input":if(Pu(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=La(r);if(!s)throw Error(T(90));Wm(r),Pu(r,s)}}}break;case"textarea":Zm(e,n);break;case"select":t=n.value,t!=null&&jr(e,!!n.multiple,t,!1)}};n1=Rd;r1=rr;var gS={usingClientEntryPoint:!1,Events:[Ri,br,La,e1,t1,Rd]},fs={findFiberByHostInstance:Wn,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},vS={bundleType:fs.bundleType,version:fs.version,rendererPackageName:fs.rendererPackageName,rendererConfig:fs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:on.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=o1(e),e===null?null:e.stateNode},findFiberByHostInstance:fs.findFiberByHostInstance||pS,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ro=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ro.isDisabled&&ro.supportsFiber)try{Ta=ro.inject(vS),zt=ro}catch{}}rt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gS;rt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_d(t))throw Error(T(200));return hS(e,t,null,n)};rt.createRoot=function(e,t){if(!_d(e))throw Error(T(299));var n=!1,r="",s=$g;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Nd(e,1,!1,null,null,n,!1,r,s),e[tn]=t.current,ei(e.nodeType===8?e.parentNode:e),new Td(t)};rt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(T(188)):(e=Object.keys(e).join(","),Error(T(268,e)));return e=o1(t),e=e===null?null:e.stateNode,e};rt.flushSync=function(e){return rr(e)};rt.hydrate=function(e,t,n){if(!Ha(t))throw Error(T(200));return qa(null,e,t,!0,n)};rt.hydrateRoot=function(e,t,n){if(!_d(e))throw Error(T(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=$g;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Fg(t,null,e,1,n??null,s,!1,i,o),e[tn]=t.current,ei(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Va(t)};rt.render=function(e,t,n){if(!Ha(t))throw Error(T(200));return qa(null,e,t,!1,n)};rt.unmountComponentAtNode=function(e){if(!Ha(e))throw Error(T(40));return e._reactRootContainer?(rr(function(){qa(null,null,e,!1,function(){e._reactRootContainer=null,e[tn]=null})}),!0):!1};rt.unstable_batchedUpdates=Rd;rt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ha(n))throw Error(T(200));if(e==null||e._reactInternals===void 0)throw Error(T(38));return qa(e,t,n,!1,r)};rt.version="18.2.0-next-9e3b772b8-20220608";function zg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zg)}catch(e){console.error(e)}}zg(),Fm.exports=rt;var Pi=Fm.exports,Ug={exports:{}},Bg={};/**
41
+ `+i.stack}return{value:e,source:t,stack:s,digest:null}}function Vl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ju(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Wx=typeof WeakMap=="function"?WeakMap:Map;function hg(e,t,n){n=Jt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ca||(ca=!0,uc=r),Ju(e,t)},n}function pg(e,t,n){n=Jt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){Ju(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ju(e,t),typeof r!="function"&&(On===null?On=new Set([this]):On.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ih(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Wx;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=aS.bind(null,e,t,n),t.then(e,e))}function Ah(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Lh(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Jt(-1,1),t.tag=2,Pn(n,t,1))),n.lanes|=1),e)}var Kx=on.ReactCurrentOwner,He=!1;function Te(e,t,n,r){t.child=e===null?Q1(t,null,n,r):Br(t,e.child,n,r)}function Mh(e,t,n,r,s){n=n.render;var i=t.ref;return Ar(t,s),r=vd(e,t,n,r,i,s),n=yd(),e!==null&&!He?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,rn(e,t,s)):(ne&&n&&id(t),t.flags|=1,Te(e,t,r,s),t.child)}function Dh(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!Od(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,mg(e,t,i,r,s)):(e=ko(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Js,n(o,r)&&e.ref===t.ref)return rn(e,t,s)}return t.flags|=1,e=jn(i,r),e.ref=t.ref,e.return=t,t.child=e}function mg(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(Js(i,r)&&e.ref===t.ref)if(He=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(He=!0);else return t.lanes=e.lanes,rn(e,t,s)}return ec(e,t,n,r,s)}function gg(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},J(Or,Ze),Ze|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,J(Or,Ze),Ze|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,J(Or,Ze),Ze|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,J(Or,Ze),Ze|=r;return Te(e,t,s,n),t.child}function vg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ec(e,t,n,r,s){var i=Qe(n)?Jn:Oe.current;return i=zr(t,i),Ar(t,s),n=vd(e,t,n,r,i,s),r=yd(),e!==null&&!He?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,rn(e,t,s)):(ne&&r&&id(t),t.flags|=1,Te(e,t,n,s),t.child)}function Fh(e,t,n,r,s){if(Qe(n)){var i=!0;ea(t)}else i=!1;if(Ar(t,s),t.stateNode===null)Eo(e,t),H1(t,n,r),Yu(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=mt(u):(u=Qe(n)?Jn:Oe.current,u=zr(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Nh(t,o,r,u),pn=!1;var h=t.memoizedState;o.state=h,ia(t,r,o,s),l=t.memoizedState,a!==r||h!==l||qe.current||pn?(typeof c=="function"&&(Xu(t,n,c,r),l=t.memoizedState),(a=pn||Oh(t,n,a,r,h,l,u))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,B1(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:St(t.type,a),o.props=u,d=t.pendingProps,h=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=mt(l):(l=Qe(n)?Jn:Oe.current,l=zr(t,l));var p=n.getDerivedStateFromProps;(c=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||h!==l)&&Nh(t,o,r,l),pn=!1,h=t.memoizedState,o.state=h,ia(t,r,o,s);var g=t.memoizedState;a!==d||h!==g||qe.current||pn?(typeof p=="function"&&(Xu(t,n,p,r),g=t.memoizedState),(u=pn||Oh(t,n,u,r,h,g,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,g,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,g,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),o.props=r,o.state=g,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return tc(e,t,n,r,i,s)}function tc(e,t,n,r,s,i){vg(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&Eh(t,n,!1),rn(e,t,i);r=t.stateNode,Kx.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Br(t,e.child,null,i),t.child=Br(t,null,a,i)):Te(e,t,a,i),t.memoizedState=r.state,s&&Eh(t,n,!0),t.child}function yg(e){var t=e.stateNode;t.pendingContext?bh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&bh(e,t.context,!1),hd(e,t.containerInfo)}function $h(e,t,n,r,s){return Ur(),ad(s),t.flags|=256,Te(e,t,n,r),t.child}var nc={dehydrated:null,treeContext:null,retryLane:0};function rc(e){return{baseLanes:e,cachePool:null,transitions:null}}function wg(e,t,n){var r=t.pendingProps,s=re.current,i=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),J(re,s&1),e===null)return Zu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Ua(o,r,0,null),e=Yn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=rc(n),t.memoizedState=nc,e):Sd(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return Zx(e,t,o,r,a,s,n);if(i){i=r.fallback,o=t.mode,s=e.child,a=s.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=jn(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=jn(a,i):(i=Yn(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?rc(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=nc,r}return i=e.child,e=i.sibling,r=jn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Sd(e,t){return t=Ua({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function eo(e,t,n,r){return r!==null&&ad(r),Br(t,e.child,null,n),e=Sd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Zx(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=Vl(Error(T(422))),eo(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=Ua({mode:"visible",children:r.children},s,0,null),i=Yn(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Br(t,e.child,null,o),t.child.memoizedState=rc(o),t.memoizedState=nc,i);if(!(t.mode&1))return eo(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(T(419)),r=Vl(i,r,void 0),eo(e,t,o,r)}if(a=(o&e.childLanes)!==0,He||a){if(r=ve,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,nn(e,s),Pt(r,e,s,-1))}return Pd(),r=Vl(Error(T(421))),eo(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=lS.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,Xe=kn(s.nextSibling),et=t,ne=!0,Et=null,e!==null&&(lt[ut++]=Gt,lt[ut++]=Xt,lt[ut++]=er,Gt=e.id,Xt=e.overflow,er=t),t=Sd(t,r.children),t.flags|=4096,t)}function zh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Gu(e.return,t,n)}function Hl(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function xg(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(Te(e,t,r.children,n),r=re.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&zh(e,n,t);else if(e.tag===19)zh(e,n,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}r&=1}if(J(re,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&oa(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Hl(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&oa(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Hl(t,!0,n,null,i);break;case"together":Hl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Eo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function rn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),nr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(T(153));if(t.child!==null){for(e=t.child,n=jn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=jn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Gx(e,t,n){switch(t.tag){case 3:yg(t),Ur();break;case 5:W1(t);break;case 1:Qe(t.type)&&ea(t);break;case 4:hd(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;J(ra,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(J(re,re.current&1),t.flags|=128,null):n&t.child.childLanes?wg(e,t,n):(J(re,re.current&1),e=rn(e,t,n),e!==null?e.sibling:null);J(re,re.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return xg(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),J(re,re.current),r)break;return null;case 22:case 23:return t.lanes=0,gg(e,t,n)}return rn(e,t,n)}var Sg,sc,bg,Eg;Sg=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};sc=function(){};bg=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Zn(Ut.current);var i=null;switch(n){case"input":s=ku(e,s),r=ku(e,r),i=[];break;case"select":s=ie({},s,{value:void 0}),r=ie({},r,{value:void 0}),i=[];break;case"textarea":s=Nu(e,s),r=Nu(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Yo)}Tu(n,r);var o;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var a=s[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Qs.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(a=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Qs.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ee("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Eg=function(e,t,n,r){n!==r&&(t.flags|=4)};function ds(e,t){if(!ne)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.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,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Xx(e,t,n){var r=t.pendingProps;switch(od(t),t.tag){case 2: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 Qe(t.type)&&Jo(),ke(t),null;case 3:return r=t.stateNode,Vr(),te(qe),te(Oe),md(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Yi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Et!==null&&(fc(Et),Et=null))),sc(e,t),ke(t),null;case 5:pd(t);var s=Zn(si.current);if(n=t.type,e!==null&&t.stateNode!=null)bg(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(T(166));return ke(t),null}if(e=Zn(Ut.current),Yi(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Ft]=t,r[ni]=i,e=(t.mode&1)!==0,n){case"dialog":ee("cancel",r),ee("close",r);break;case"iframe":case"object":case"embed":ee("load",r);break;case"video":case"audio":for(s=0;s<bs.length;s++)ee(bs[s],r);break;case"source":ee("error",r);break;case"img":case"image":case"link":ee("error",r),ee("load",r);break;case"details":ee("toggle",r);break;case"input":Zf(r,i),ee("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ee("invalid",r);break;case"textarea":Xf(r,i),ee("invalid",r)}Tu(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];o==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Xi(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Xi(r.textContent,a,e),s=["children",""+a]):Qs.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&ee("scroll",r)}switch(n){case"input":Vi(r),Gf(r,i,!0);break;case"textarea":Vi(r),Yf(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Yo)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Gm(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ft]=t,e[ni]=r,Sg(e,t,!1,!1),t.stateNode=e;e:{switch(o=_u(n,r),n){case"dialog":ee("cancel",e),ee("close",e),s=r;break;case"iframe":case"object":case"embed":ee("load",e),s=r;break;case"video":case"audio":for(s=0;s<bs.length;s++)ee(bs[s],e);s=r;break;case"source":ee("error",e),s=r;break;case"img":case"image":case"link":ee("error",e),ee("load",e),s=r;break;case"details":ee("toggle",e),s=r;break;case"input":Zf(e,r),s=ku(e,r),ee("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=ie({},r,{value:void 0}),ee("invalid",e);break;case"textarea":Xf(e,r),s=Nu(e,r),ee("invalid",e);break;default:s=r}Tu(n,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?Jm(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Xm(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Ws(e,l):typeof l=="number"&&Ws(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Qs.hasOwnProperty(i)?l!=null&&i==="onScroll"&&ee("scroll",e):l!=null&&qc(e,i,l,o))}switch(n){case"input":Vi(e),Gf(e,r,!1);break;case"textarea":Vi(e),Yf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+_n(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?jr(e,!!r.multiple,i,!1):r.defaultValue!=null&&jr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Yo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ke(t),null;case 6:if(e&&t.stateNode!=null)Eg(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(T(166));if(n=Zn(si.current),Zn(Ut.current),Yi(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ft]=t,(i=r.nodeValue!==n)&&(e=et,e!==null))switch(e.tag){case 3:Xi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Xi(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ft]=t,t.stateNode=r}return ke(t),null;case 13:if(te(re),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ne&&Xe!==null&&t.mode&1&&!(t.flags&128))z1(),Ur(),t.flags|=98560,i=!1;else if(i=Yi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(T(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(T(317));i[Ft]=t}else Ur(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ke(t),i=!1}else Et!==null&&(fc(Et),Et=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||re.current&1?he===0&&(he=3):Pd())),t.updateQueue!==null&&(t.flags|=4),ke(t),null);case 4:return Vr(),sc(e,t),e===null&&ei(t.stateNode.containerInfo),ke(t),null;case 10:return cd(t.type._context),ke(t),null;case 17:return Qe(t.type)&&Jo(),ke(t),null;case 19:if(te(re),i=t.memoizedState,i===null)return ke(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)ds(i,!1);else{if(he!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=oa(e),o!==null){for(t.flags|=128,ds(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return J(re,re.current&1|2),t.child}e=e.sibling}i.tail!==null&&ue()>qr&&(t.flags|=128,r=!0,ds(i,!1),t.lanes=4194304)}else{if(!r)if(e=oa(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ds(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!ne)return ke(t),null}else 2*ue()-i.renderingStartTime>qr&&n!==1073741824&&(t.flags|=128,r=!0,ds(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ue(),t.sibling=null,n=re.current,J(re,r?n&1|2:n&1),t):(ke(t),null);case 22:case 23:return kd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ze&1073741824&&(ke(t),t.subtreeFlags&6&&(t.flags|=8192)):ke(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function Yx(e,t){switch(od(t),t.tag){case 1:return Qe(t.type)&&Jo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vr(),te(qe),te(Oe),md(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return pd(t),null;case 13:if(te(re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));Ur()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return te(re),null;case 4:return Vr(),null;case 10:return cd(t.type._context),null;case 22:case 23:return kd(),null;case 24:return null;default:return null}}var to=!1,Pe=!1,Jx=typeof WeakSet=="function"?WeakSet:Set,z=null;function Pr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){oe(e,t,r)}else n.current=null}function ic(e,t,n){try{n()}catch(r){oe(e,t,r)}}var Uh=!1;function eS(e,t){if(Bu=Zo,e=P1(),sd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,d=e,h=null;t:for(;;){for(var p;d!==n||s!==0&&d.nodeType!==3||(a=o+s),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(p=d.firstChild)!==null;)h=d,d=p;for(;;){if(d===e)break t;if(h===n&&++u===s&&(a=o),h===i&&++c===r&&(l=o),(p=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Vu={focusedElem:e,selectionRange:n},Zo=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,S=g.memoizedState,m=t.stateNode,v=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:St(t.type,y),S);m.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(b){oe(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return g=Uh,Uh=!1,g}function _s(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&ic(t,n,i)}s=s.next}while(s!==r)}}function $a(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function oc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Cg(e){var t=e.alternate;t!==null&&(e.alternate=null,Cg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ft],delete t[ni],delete t[Qu],delete t[Mx],delete t[Dx])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Rg(e){return e.tag===5||e.tag===3||e.tag===4}function Bh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rg(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.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 ac(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Yo));else if(r!==4&&(e=e.child,e!==null))for(ac(e,t,n),e=e.sibling;e!==null;)ac(e,t,n),e=e.sibling}function lc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(lc(e,t,n),e=e.sibling;e!==null;)lc(e,t,n),e=e.sibling}var Se=null,bt=!1;function cn(e,t,n){for(n=n.child;n!==null;)kg(e,t,n),n=n.sibling}function kg(e,t,n){if(zt&&typeof zt.onCommitFiberUnmount=="function")try{zt.onCommitFiberUnmount(Ta,n)}catch{}switch(n.tag){case 5:Pe||Pr(n,t);case 6:var r=Se,s=bt;Se=null,cn(e,t,n),Se=r,bt=s,Se!==null&&(bt?(e=Se,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Se.removeChild(n.stateNode));break;case 18:Se!==null&&(bt?(e=Se,n=n.stateNode,e.nodeType===8?Dl(e.parentNode,n):e.nodeType===1&&Dl(e,n),Xs(e)):Dl(Se,n.stateNode));break;case 4:r=Se,s=bt,Se=n.stateNode.containerInfo,bt=!0,cn(e,t,n),Se=r,bt=s;break;case 0:case 11:case 14:case 15:if(!Pe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&ic(n,t,o),s=s.next}while(s!==r)}cn(e,t,n);break;case 1:if(!Pe&&(Pr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){oe(n,t,a)}cn(e,t,n);break;case 21:cn(e,t,n);break;case 22:n.mode&1?(Pe=(r=Pe)||n.memoizedState!==null,cn(e,t,n),Pe=r):cn(e,t,n);break;default:cn(e,t,n)}}function Vh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Jx),t.forEach(function(r){var s=uS.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function xt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:Se=a.stateNode,bt=!1;break e;case 3:Se=a.stateNode.containerInfo,bt=!0;break e;case 4:Se=a.stateNode.containerInfo,bt=!0;break e}a=a.return}if(Se===null)throw Error(T(160));kg(i,o,s),Se=null,bt=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(u){oe(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Pg(t,e),t=t.sibling}function Pg(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(xt(t,e),At(e),r&4){try{_s(3,e,e.return),$a(3,e)}catch(y){oe(e,e.return,y)}try{_s(5,e,e.return)}catch(y){oe(e,e.return,y)}}break;case 1:xt(t,e),At(e),r&512&&n!==null&&Pr(n,n.return);break;case 5:if(xt(t,e),At(e),r&512&&n!==null&&Pr(n,n.return),e.flags&32){var s=e.stateNode;try{Ws(s,"")}catch(y){oe(e,e.return,y)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&Km(s,i),_u(a,o);var u=_u(a,i);for(o=0;o<l.length;o+=2){var c=l[o],d=l[o+1];c==="style"?Jm(s,d):c==="dangerouslySetInnerHTML"?Xm(s,d):c==="children"?Ws(s,d):qc(s,c,d,u)}switch(a){case"input":Pu(s,i);break;case"textarea":Zm(s,i);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?jr(s,!!i.multiple,p,!1):h!==!!i.multiple&&(i.defaultValue!=null?jr(s,!!i.multiple,i.defaultValue,!0):jr(s,!!i.multiple,i.multiple?[]:"",!1))}s[ni]=i}catch(y){oe(e,e.return,y)}}break;case 6:if(xt(t,e),At(e),r&4){if(e.stateNode===null)throw Error(T(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(y){oe(e,e.return,y)}}break;case 3:if(xt(t,e),At(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Xs(t.containerInfo)}catch(y){oe(e,e.return,y)}break;case 4:xt(t,e),At(e);break;case 13:xt(t,e),At(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(Cd=ue())),r&4&&Vh(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Pe=(u=Pe)||c,xt(t,e),Pe=u):xt(t,e),At(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(z=e,c=e.child;c!==null;){for(d=z=c;z!==null;){switch(h=z,p=h.child,h.tag){case 0:case 11:case 14:case 15:_s(4,h,h.return);break;case 1:Pr(h,h.return);var g=h.stateNode;if(typeof g.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(y){oe(r,n,y)}}break;case 5:Pr(h,h.return);break;case 22:if(h.memoizedState!==null){qh(d);continue}}p!==null?(p.return=h,z=p):qh(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{s=d.stateNode,u?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=d.stateNode,l=d.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Ym("display",o))}catch(y){oe(e,e.return,y)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(y){oe(e,e.return,y)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:xt(t,e),At(e),r&4&&Vh(e);break;case 21:break;default:xt(t,e),At(e)}}function At(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Rg(n)){var r=n;break e}n=n.return}throw Error(T(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Ws(s,""),r.flags&=-33);var i=Bh(e);lc(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Bh(e);ac(e,a,o);break;default:throw Error(T(161))}}catch(l){oe(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function tS(e,t,n){z=e,Og(e)}function Og(e,t,n){for(var r=(e.mode&1)!==0;z!==null;){var s=z,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||to;if(!o){var a=s.alternate,l=a!==null&&a.memoizedState!==null||Pe;a=to;var u=Pe;if(to=o,(Pe=l)&&!u)for(z=s;z!==null;)o=z,l=o.child,o.tag===22&&o.memoizedState!==null?Qh(s):l!==null?(l.return=o,z=l):Qh(s);for(;i!==null;)z=i,Og(i),i=i.sibling;z=s,to=a,Pe=u}Hh(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,z=i):Hh(e)}}function Hh(e){for(;z!==null;){var t=z;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Pe||$a(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Pe)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:St(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Ph(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ph(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Xs(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(T(163))}Pe||t.flags&512&&oc(t)}catch(h){oe(t,t.return,h)}}if(t===e){z=null;break}if(n=t.sibling,n!==null){n.return=t.return,z=n;break}z=t.return}}function qh(e){for(;z!==null;){var t=z;if(t===e){z=null;break}var n=t.sibling;if(n!==null){n.return=t.return,z=n;break}z=t.return}}function Qh(e){for(;z!==null;){var t=z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{$a(4,t)}catch(l){oe(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(l){oe(t,s,l)}}var i=t.return;try{oc(t)}catch(l){oe(t,i,l)}break;case 5:var o=t.return;try{oc(t)}catch(l){oe(t,o,l)}}}catch(l){oe(t,t.return,l)}if(t===e){z=null;break}var a=t.sibling;if(a!==null){a.return=t.return,z=a;break}z=t.return}}var nS=Math.ceil,ua=on.ReactCurrentDispatcher,bd=on.ReactCurrentOwner,pt=on.ReactCurrentBatchConfig,W=0,ve=null,de=null,be=0,Ze=0,Or=Dn(0),he=0,li=null,nr=0,za=0,Ed=0,Is=null,Be=null,Cd=0,qr=1/0,Wt=null,ca=!1,uc=null,On=null,no=!1,wn=null,da=0,As=0,cc=null,Co=-1,Ro=0;function Ae(){return W&6?ue():Co!==-1?Co:Co=ue()}function Nn(e){return e.mode&1?W&2&&be!==0?be&-be:$x.transition!==null?(Ro===0&&(Ro=d1()),Ro):(e=Y,e!==0||(e=window.event,e=e===void 0?16:y1(e.type)),e):1}function Pt(e,t,n,r){if(50<As)throw As=0,cc=null,Error(T(185));Ei(e,n,r),(!(W&2)||e!==ve)&&(e===ve&&(!(W&2)&&(za|=n),he===4&&gn(e,be)),We(e,r),n===1&&W===0&&!(t.mode&1)&&(qr=ue()+500,Ma&&Fn()))}function We(e,t){var n=e.callbackNode;$w(e,t);var r=Ko(e,e===ve?be:0);if(r===0)n!==null&&th(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&th(n),t===1)e.tag===0?Fx(Wh.bind(null,e)):D1(Wh.bind(null,e)),Ax(function(){!(W&6)&&Fn()}),n=null;else{switch(f1(r)){case 1:n=Gc;break;case 4:n=u1;break;case 16:n=Wo;break;case 536870912:n=c1;break;default:n=Wo}n=Mg(n,Ng.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ng(e,t){if(Co=-1,Ro=0,W&6)throw Error(T(327));var n=e.callbackNode;if(Lr()&&e.callbackNode!==n)return null;var r=Ko(e,e===ve?be:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=fa(e,r);else{t=r;var s=W;W|=2;var i=Tg();(ve!==e||be!==t)&&(Wt=null,qr=ue()+500,Xn(e,t));do try{iS();break}catch(a){jg(e,a)}while(1);ud(),ua.current=i,W=s,de!==null?t=0:(ve=null,be=0,t=he)}if(t!==0){if(t===2&&(s=Du(e),s!==0&&(r=s,t=dc(e,s))),t===1)throw n=li,Xn(e,0),gn(e,r),We(e,ue()),n;if(t===6)gn(e,r);else{if(s=e.current.alternate,!(r&30)&&!rS(s)&&(t=fa(e,r),t===2&&(i=Du(e),i!==0&&(r=i,t=dc(e,i))),t===1))throw n=li,Xn(e,0),gn(e,r),We(e,ue()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(T(345));case 2:Hn(e,Be,Wt);break;case 3:if(gn(e,r),(r&130023424)===r&&(t=Cd+500-ue(),10<t)){if(Ko(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){Ae(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=qu(Hn.bind(null,e,Be,Wt),t);break}Hn(e,Be,Wt);break;case 4:if(gn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-kt(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=ue()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*nS(r/1960))-r,10<r){e.timeoutHandle=qu(Hn.bind(null,e,Be,Wt),r);break}Hn(e,Be,Wt);break;case 5:Hn(e,Be,Wt);break;default:throw Error(T(329))}}}return We(e,ue()),e.callbackNode===n?Ng.bind(null,e):null}function dc(e,t){var n=Is;return e.current.memoizedState.isDehydrated&&(Xn(e,t).flags|=256),e=fa(e,t),e!==2&&(t=Be,Be=n,t!==null&&fc(t)),e}function fc(e){Be===null?Be=e:Be.push.apply(Be,e)}function rS(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],i=s.getSnapshot;s=s.value;try{if(!Ot(i(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 gn(e,t){for(t&=~Ed,t&=~za,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-kt(t),r=1<<n;e[n]=-1,t&=~r}}function Wh(e){if(W&6)throw Error(T(327));Lr();var t=Ko(e,0);if(!(t&1))return We(e,ue()),null;var n=fa(e,t);if(e.tag!==0&&n===2){var r=Du(e);r!==0&&(t=r,n=dc(e,r))}if(n===1)throw n=li,Xn(e,0),gn(e,t),We(e,ue()),n;if(n===6)throw Error(T(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Hn(e,Be,Wt),We(e,ue()),null}function Rd(e,t){var n=W;W|=1;try{return e(t)}finally{W=n,W===0&&(qr=ue()+500,Ma&&Fn())}}function rr(e){wn!==null&&wn.tag===0&&!(W&6)&&Lr();var t=W;W|=1;var n=pt.transition,r=Y;try{if(pt.transition=null,Y=1,e)return e()}finally{Y=r,pt.transition=n,W=t,!(W&6)&&Fn()}}function kd(){Ze=Or.current,te(Or)}function Xn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Ix(n)),de!==null)for(n=de.return;n!==null;){var r=n;switch(od(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Jo();break;case 3:Vr(),te(qe),te(Oe),md();break;case 5:pd(r);break;case 4:Vr();break;case 13:te(re);break;case 19:te(re);break;case 10:cd(r.type._context);break;case 22:case 23:kd()}n=n.return}if(ve=e,de=e=jn(e.current,null),be=Ze=t,he=0,li=null,Ed=za=nr=0,Be=Is=null,Kn!==null){for(t=0;t<Kn.length;t++)if(n=Kn[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}Kn=null}return e}function jg(e,t){do{var n=de;try{if(ud(),So.current=la,aa){for(var r=se.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}aa=!1}if(tr=0,ge=fe=se=null,Ts=!1,ii=0,bd.current=null,n===null||n.return===null){he=1,li=t,de=null;break}e:{var i=e,o=n.return,a=n,l=t;if(t=be,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=Ah(o);if(p!==null){p.flags&=-257,Lh(p,o,a,i,t),p.mode&1&&Ih(i,u,t),t=p,l=u;var g=t.updateQueue;if(g===null){var y=new Set;y.add(l),t.updateQueue=y}else g.add(l);break e}else{if(!(t&1)){Ih(i,u,t),Pd();break e}l=Error(T(426))}}else if(ne&&a.mode&1){var S=Ah(o);if(S!==null){!(S.flags&65536)&&(S.flags|=256),Lh(S,o,a,i,t),ad(Hr(l,a));break e}}i=l=Hr(l,a),he!==4&&(he=2),Is===null?Is=[i]:Is.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=hg(i,l,t);kh(i,m);break e;case 1:a=l;var v=i.type,w=i.stateNode;if(!(i.flags&128)&&(typeof v.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(On===null||!On.has(w)))){i.flags|=65536,t&=-t,i.lanes|=t;var b=pg(i,a,t);kh(i,b);break e}}i=i.return}while(i!==null)}Ig(n)}catch(C){t=C,de===n&&n!==null&&(de=n=n.return);continue}break}while(1)}function Tg(){var e=ua.current;return ua.current=la,e===null?la:e}function Pd(){(he===0||he===3||he===2)&&(he=4),ve===null||!(nr&268435455)&&!(za&268435455)||gn(ve,be)}function fa(e,t){var n=W;W|=2;var r=Tg();(ve!==e||be!==t)&&(Wt=null,Xn(e,t));do try{sS();break}catch(s){jg(e,s)}while(1);if(ud(),W=n,ua.current=r,de!==null)throw Error(T(261));return ve=null,be=0,he}function sS(){for(;de!==null;)_g(de)}function iS(){for(;de!==null&&!jw();)_g(de)}function _g(e){var t=Lg(e.alternate,e,Ze);e.memoizedProps=e.pendingProps,t===null?Ig(e):de=t,bd.current=null}function Ig(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Yx(n,t),n!==null){n.flags&=32767,de=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{he=6,de=null;return}}else if(n=Xx(n,t,Ze),n!==null){de=n;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);he===0&&(he=5)}function Hn(e,t,n){var r=Y,s=pt.transition;try{pt.transition=null,Y=1,oS(e,t,n,r)}finally{pt.transition=s,Y=r}return null}function oS(e,t,n,r){do Lr();while(wn!==null);if(W&6)throw Error(T(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(T(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(zw(e,i),e===ve&&(de=ve=null,be=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||no||(no=!0,Mg(Wo,function(){return Lr(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=pt.transition,pt.transition=null;var o=Y;Y=1;var a=W;W|=4,bd.current=null,eS(e,n),Pg(n,e),kx(Vu),Zo=!!Bu,Vu=Bu=null,e.current=n,tS(n),Tw(),W=a,Y=o,pt.transition=i}else e.current=n;if(no&&(no=!1,wn=e,da=s),i=e.pendingLanes,i===0&&(On=null),Aw(n.stateNode),We(e,ue()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(ca)throw ca=!1,e=uc,uc=null,e;return da&1&&e.tag!==0&&Lr(),i=e.pendingLanes,i&1?e===cc?As++:(As=0,cc=e):As=0,Fn(),null}function Lr(){if(wn!==null){var e=f1(da),t=pt.transition,n=Y;try{if(pt.transition=null,Y=16>e?16:e,wn===null)var r=!1;else{if(e=wn,wn=null,da=0,W&6)throw Error(T(331));var s=W;for(W|=4,z=e.current;z!==null;){var i=z,o=i.child;if(z.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(z=u;z!==null;){var c=z;switch(c.tag){case 0:case 11:case 15:_s(8,c,i)}var d=c.child;if(d!==null)d.return=c,z=d;else for(;z!==null;){c=z;var h=c.sibling,p=c.return;if(Cg(c),c===u){z=null;break}if(h!==null){h.return=p,z=h;break}z=p}}}var g=i.alternate;if(g!==null){var y=g.child;if(y!==null){g.child=null;do{var S=y.sibling;y.sibling=null,y=S}while(y!==null)}}z=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,z=o;else e:for(;z!==null;){if(i=z,i.flags&2048)switch(i.tag){case 0:case 11:case 15:_s(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,z=m;break e}z=i.return}}var v=e.current;for(z=v;z!==null;){o=z;var w=o.child;if(o.subtreeFlags&2064&&w!==null)w.return=o,z=w;else e:for(o=v;z!==null;){if(a=z,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:$a(9,a)}}catch(C){oe(a,a.return,C)}if(a===o){z=null;break e}var b=a.sibling;if(b!==null){b.return=a.return,z=b;break e}z=a.return}}if(W=s,Fn(),zt&&typeof zt.onPostCommitFiberRoot=="function")try{zt.onPostCommitFiberRoot(Ta,e)}catch{}r=!0}return r}finally{Y=n,pt.transition=t}}return!1}function Kh(e,t,n){t=Hr(n,t),t=hg(e,t,1),e=Pn(e,t,1),t=Ae(),e!==null&&(Ei(e,1,t),We(e,t))}function oe(e,t,n){if(e.tag===3)Kh(e,e,n);else for(;t!==null;){if(t.tag===3){Kh(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(On===null||!On.has(r))){e=Hr(n,e),e=pg(t,e,1),t=Pn(t,e,1),e=Ae(),t!==null&&(Ei(t,1,e),We(t,e));break}}t=t.return}}function aS(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ae(),e.pingedLanes|=e.suspendedLanes&n,ve===e&&(be&n)===n&&(he===4||he===3&&(be&130023424)===be&&500>ue()-Cd?Xn(e,0):Ed|=n),We(e,t)}function Ag(e,t){t===0&&(e.mode&1?(t=Qi,Qi<<=1,!(Qi&130023424)&&(Qi=4194304)):t=1);var n=Ae();e=nn(e,t),e!==null&&(Ei(e,t,n),We(e,n))}function lS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ag(e,n)}function uS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(T(314))}r!==null&&r.delete(t),Ag(e,n)}var Lg;Lg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||qe.current)He=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return He=!1,Gx(e,t,n);He=!!(e.flags&131072)}else He=!1,ne&&t.flags&1048576&&F1(t,na,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Eo(e,t),e=t.pendingProps;var s=zr(t,Oe.current);Ar(t,n),s=vd(null,t,r,e,s,n);var i=yd();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Qe(r)?(i=!0,ea(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,fd(t),s.updater=Da,t.stateNode=s,s._reactInternals=t,Yu(t,r,e,n),t=tc(null,t,r,!0,i,n)):(t.tag=0,ne&&i&&id(t),Te(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Eo(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=dS(r),e=St(r,e),s){case 0:t=ec(null,t,r,e,n);break e;case 1:t=Fh(null,t,r,e,n);break e;case 11:t=Mh(null,t,r,e,n);break e;case 14:t=Dh(null,t,r,St(r.type,e),n);break e}throw Error(T(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:St(r,s),ec(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:St(r,s),Fh(e,t,r,s,n);case 3:e:{if(yg(t),e===null)throw Error(T(387));r=t.pendingProps,i=t.memoizedState,s=i.element,B1(e,t),ia(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=Hr(Error(T(423)),t),t=$h(e,t,r,n,s);break e}else if(r!==s){s=Hr(Error(T(424)),t),t=$h(e,t,r,n,s);break e}else for(Xe=kn(t.stateNode.containerInfo.firstChild),et=t,ne=!0,Et=null,n=Q1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ur(),r===s){t=rn(e,t,n);break e}Te(e,t,r,n)}t=t.child}return t;case 5:return W1(t),e===null&&Zu(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,Hu(r,s)?o=null:i!==null&&Hu(r,i)&&(t.flags|=32),vg(e,t),Te(e,t,o,n),t.child;case 6:return e===null&&Zu(t),null;case 13:return wg(e,t,n);case 4:return hd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Br(t,null,r,n):Te(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:St(r,s),Mh(e,t,r,s,n);case 7:return Te(e,t,t.pendingProps,n),t.child;case 8:return Te(e,t,t.pendingProps.children,n),t.child;case 12:return Te(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,J(ra,r._currentValue),r._currentValue=o,i!==null)if(Ot(i.value,o)){if(i.children===s.children&&!qe.current){t=rn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Jt(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Gu(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(T(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Gu(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Te(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Ar(t,n),s=mt(s),r=r(s),t.flags|=1,Te(e,t,r,n),t.child;case 14:return r=t.type,s=St(r,t.pendingProps),s=St(r.type,s),Dh(e,t,r,s,n);case 15:return mg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:St(r,s),Eo(e,t),t.tag=1,Qe(r)?(e=!0,ea(t)):e=!1,Ar(t,n),H1(t,r,s),Yu(t,r,s,n),tc(null,t,r,!0,e,n);case 19:return xg(e,t,n);case 22:return gg(e,t,n)}throw Error(T(156,t.tag))};function Mg(e,t){return l1(e,t)}function cS(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,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 ht(e,t,n,r){return new cS(e,t,n,r)}function Od(e){return e=e.prototype,!(!e||!e.isReactComponent)}function dS(e){if(typeof e=="function")return Od(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Wc)return 11;if(e===Kc)return 14}return 2}function jn(e,t){var n=e.alternate;return n===null?(n=ht(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ko(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")Od(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case yr:return Yn(n.children,s,i,t);case Qc:o=8,s|=8;break;case bu:return e=ht(12,n,t,s|2),e.elementType=bu,e.lanes=i,e;case Eu:return e=ht(13,n,t,s),e.elementType=Eu,e.lanes=i,e;case Cu:return e=ht(19,n,t,s),e.elementType=Cu,e.lanes=i,e;case qm:return Ua(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Vm:o=10;break e;case Hm:o=9;break e;case Wc:o=11;break e;case Kc:o=14;break e;case hn:o=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=ht(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function Yn(e,t,n,r){return e=ht(7,e,r,t),e.lanes=n,e}function Ua(e,t,n,r){return e=ht(22,e,r,t),e.elementType=qm,e.lanes=n,e.stateNode={isHidden:!1},e}function ql(e,t,n){return e=ht(6,e,null,t),e.lanes=n,e}function Ql(e,t,n){return t=ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function fS(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=kl(0),this.expirationTimes=kl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kl(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Nd(e,t,n,r,s,i,o,a,l){return e=new fS(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ht(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},fd(i),e}function hS(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:vr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Dg(e){if(!e)return In;e=e._reactInternals;e:{if(lr(e)!==e||e.tag!==1)throw Error(T(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Qe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(T(171))}if(e.tag===1){var n=e.type;if(Qe(n))return M1(e,n,t)}return t}function Fg(e,t,n,r,s,i,o,a,l){return e=Nd(n,r,!0,e,s,i,o,a,l),e.context=Dg(null),n=e.current,r=Ae(),s=Nn(n),i=Jt(r,s),i.callback=t??null,Pn(n,i,s),e.current.lanes=s,Ei(e,s,r),We(e,r),e}function Ba(e,t,n,r){var s=t.current,i=Ae(),o=Nn(s);return n=Dg(n),t.context===null?t.context=n:t.pendingContext=n,t=Jt(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Pn(s,t,o),e!==null&&(Pt(e,s,o,i),xo(e,s,o)),o}function ha(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Zh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function jd(e,t){Zh(e,t),(e=e.alternate)&&Zh(e,t)}function pS(){return null}var $g=typeof reportError=="function"?reportError:function(e){console.error(e)};function Td(e){this._internalRoot=e}Va.prototype.render=Td.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(T(409));Ba(e,t,null,null)};Va.prototype.unmount=Td.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rr(function(){Ba(null,e,null,null)}),t[tn]=null}};function Va(e){this._internalRoot=e}Va.prototype.unstable_scheduleHydration=function(e){if(e){var t=m1();e={blockedOn:null,target:e,priority:t};for(var n=0;n<mn.length&&t!==0&&t<mn[n].priority;n++);mn.splice(n,0,e),n===0&&v1(e)}};function _d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ha(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Gh(){}function mS(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var u=ha(o);i.call(u)}}var o=Fg(t,r,e,0,null,!1,!1,"",Gh);return e._reactRootContainer=o,e[tn]=o.current,ei(e.nodeType===8?e.parentNode:e),rr(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var u=ha(l);a.call(u)}}var l=Nd(e,0,!1,null,null,!1,!1,"",Gh);return e._reactRootContainer=l,e[tn]=l.current,ei(e.nodeType===8?e.parentNode:e),rr(function(){Ba(t,l,n,r)}),l}function qa(e,t,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var a=s;s=function(){var l=ha(o);a.call(l)}}Ba(t,o,e,s)}else o=mS(n,t,e,s,r);return ha(o)}h1=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ss(t.pendingLanes);n!==0&&(Xc(t,n|1),We(t,ue()),!(W&6)&&(qr=ue()+500,Fn()))}break;case 13:rr(function(){var r=nn(e,1);if(r!==null){var s=Ae();Pt(r,e,1,s)}}),jd(e,1)}};Yc=function(e){if(e.tag===13){var t=nn(e,134217728);if(t!==null){var n=Ae();Pt(t,e,134217728,n)}jd(e,134217728)}};p1=function(e){if(e.tag===13){var t=Nn(e),n=nn(e,t);if(n!==null){var r=Ae();Pt(n,e,t,r)}jd(e,t)}};m1=function(){return Y};g1=function(e,t){var n=Y;try{return Y=e,t()}finally{Y=n}};Au=function(e,t,n){switch(t){case"input":if(Pu(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=La(r);if(!s)throw Error(T(90));Wm(r),Pu(r,s)}}}break;case"textarea":Zm(e,n);break;case"select":t=n.value,t!=null&&jr(e,!!n.multiple,t,!1)}};n1=Rd;r1=rr;var gS={usingClientEntryPoint:!1,Events:[Ri,br,La,e1,t1,Rd]},fs={findFiberByHostInstance:Wn,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},vS={bundleType:fs.bundleType,version:fs.version,rendererPackageName:fs.rendererPackageName,rendererConfig:fs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:on.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=o1(e),e===null?null:e.stateNode},findFiberByHostInstance:fs.findFiberByHostInstance||pS,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ro=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ro.isDisabled&&ro.supportsFiber)try{Ta=ro.inject(vS),zt=ro}catch{}}rt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gS;rt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_d(t))throw Error(T(200));return hS(e,t,null,n)};rt.createRoot=function(e,t){if(!_d(e))throw Error(T(299));var n=!1,r="",s=$g;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Nd(e,1,!1,null,null,n,!1,r,s),e[tn]=t.current,ei(e.nodeType===8?e.parentNode:e),new Td(t)};rt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(T(188)):(e=Object.keys(e).join(","),Error(T(268,e)));return e=o1(t),e=e===null?null:e.stateNode,e};rt.flushSync=function(e){return rr(e)};rt.hydrate=function(e,t,n){if(!Ha(t))throw Error(T(200));return qa(null,e,t,!0,n)};rt.hydrateRoot=function(e,t,n){if(!_d(e))throw Error(T(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=$g;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Fg(t,null,e,1,n??null,s,!1,i,o),e[tn]=t.current,ei(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Va(t)};rt.render=function(e,t,n){if(!Ha(t))throw Error(T(200));return qa(null,e,t,!1,n)};rt.unmountComponentAtNode=function(e){if(!Ha(e))throw Error(T(40));return e._reactRootContainer?(rr(function(){qa(null,null,e,!1,function(){e._reactRootContainer=null,e[tn]=null})}),!0):!1};rt.unstable_batchedUpdates=Rd;rt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ha(n))throw Error(T(200));if(e==null||e._reactInternals===void 0)throw Error(T(38));return qa(e,t,n,!1,r)};rt.version="18.2.0-next-9e3b772b8-20220608";function zg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zg)}catch(e){console.error(e)}}zg(),Fm.exports=rt;var Pi=Fm.exports,Ug={exports:{}},Bg={};/**
42
42
  * @license React
43
43
  * use-sync-external-store-shim.production.min.js
44
44
  *
@@ -46,7 +46,7 @@ Error generating stack: `+i.message+`
46
46
  *
47
47
  * This source code is licensed under the MIT license found in the
48
48
  * LICENSE file in the root directory of this source tree.
49
- */var Qr=x;function yS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wS=typeof Object.is=="function"?Object.is:yS,xS=Qr.useState,SS=Qr.useEffect,bS=Qr.useLayoutEffect,ES=Qr.useDebugValue;function CS(e,t){var n=t(),r=xS({inst:{value:n,getSnapshot:t}}),s=r[0].inst,i=r[1];return bS(function(){s.value=n,s.getSnapshot=t,Wl(s)&&i({inst:s})},[e,n,t]),SS(function(){return Wl(s)&&i({inst:s}),e(function(){Wl(s)&&i({inst:s})})},[e]),ES(n),n}function Wl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!wS(e,n)}catch{return!0}}function RS(e,t){return t()}var kS=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?RS:CS;Bg.useSyncExternalStore=Qr.useSyncExternalStore!==void 0?Qr.useSyncExternalStore:kS;Ug.exports=Bg;var Vg=Ug.exports;const Hg=Vg.useSyncExternalStore,Xh=x.createContext(void 0),qg=x.createContext(!1);function Qg(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Xh),window.ReactQueryClientContext):Xh)}const it=({context:e}={})=>{const t=x.useContext(Qg(e,x.useContext(qg)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},PS=({client:e,children:t,context:n,contextSharing:r=!1})=>{x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const s=Qg(n,r);return x.createElement(qg.Provider,{value:!n&&r},x.createElement(s.Provider,{value:e},t))},Wg=x.createContext(!1),OS=()=>x.useContext(Wg);Wg.Provider;function NS(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const jS=x.createContext(NS()),TS=()=>x.useContext(jS);function Kg(e,t){return typeof e=="function"?e(...t):!!e}const _S=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},IS=e=>{x.useEffect(()=>{e.clearReset()},[e])},AS=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&Kg(n,[e.error,r]),LS=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},MS=(e,t)=>e.isLoading&&e.isFetching&&!t,DS=(e,t,n)=>(e==null?void 0:e.suspense)&&MS(t,n),FS=(e,t,n)=>t.fetchOptimistic(e).then(({data:r})=>{e.onSuccess==null||e.onSuccess(r),e.onSettled==null||e.onSettled(r,null)}).catch(r=>{n.clearReset(),e.onError==null||e.onError(r),e.onSettled==null||e.onSettled(void 0,r)});function Zg(e,t){const n=it({context:e.context}),r=OS(),s=TS(),i=n.defaultQueryOptions(e);i._optimisticResults=r?"isRestoring":"optimistic",i.onError&&(i.onError=ae.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=ae.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=ae.batchCalls(i.onSettled)),LS(i),_S(i,s),IS(s);const[o]=x.useState(()=>new t(n,i)),a=o.getOptimisticResult(i);if(Hg(x.useCallback(l=>{const u=r?()=>{}:o.subscribe(ae.batchCalls(l));return o.updateResult(),u},[o,r]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),x.useEffect(()=>{o.setOptions(i,{listeners:!1})},[i,o]),DS(i,a,r))throw FS(i,o,s);if(AS({result:a,errorResetBoundary:s,useErrorBoundary:i.useErrorBoundary,query:o.getCurrentQuery()}))throw a.error;return i.notifyOnChangeProps?a:o.trackResult(a)}function Id(e,t,n){const r=gr(e,t,n);return Zg(r,Dm)}function an(e,t,n){const r=Y2(e,t,n),s=it({context:r.context}),[i]=x.useState(()=>new pw(s,r));x.useEffect(()=>{i.setOptions(r)},[i,r]);const o=Hg(x.useCallback(l=>i.subscribe(ae.batchCalls(l)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),a=x.useCallback((l,u)=>{i.mutate(l,u).catch($S)},[i]);if(o.error&&Kg(i.options.useErrorBoundary,[o.error]))throw o.error;return{...o,mutate:a,mutateAsync:o.mutate}}function $S(){}function zS(e,t,n){const r=gr(e,t,n);return Zg(r,hw)}function US(){return Id({queryKey:["session"],queryFn:async()=>await X.session().getSession(),suspense:!0})}function Gg({appCode:e}){return Id({queryKey:["conf"],queryFn:async()=>await X.conf().getConf(e),suspense:!0})}const Xg=x.createContext(null);function BS({children:e,params:t}){const n=t.app,r=US(),s=Gg({appCode:n}),i=(s==null?void 0:s.isSuccess)&&(r==null?void 0:r.isSuccess);x.useEffect(()=>{var a,l;(l=document.querySelector("html"))==null||l.setAttribute("lang",((a=r==null?void 0:r.data)==null?void 0:a.currentLanguage)||"fr")},[r==null?void 0:r.data]);const o=x.useMemo(()=>{var a,l,u,c,d,h;return{appCode:n,applications:(a=s==null?void 0:s.data)==null?void 0:a.applications,confQuery:s,currentApp:(l=s==null?void 0:s.data)==null?void 0:l.currentApp,currentLanguage:(u=r==null?void 0:r.data)==null?void 0:u.currentLanguage,init:i,sessionQuery:r,user:(c=r==null?void 0:r.data)==null?void 0:c.user,userDescription:(d=r==null?void 0:r.data)==null?void 0:d.userDescription,userProfile:(h=r==null?void 0:r.data)==null?void 0:h.userProfile}},[n,s,i,r]);return f.jsx(Xg.Provider,{value:o,children:e})}function yt(){const e=x.useContext(Xg);if(!e)throw new Error("Cannot be used outside of OdeClientProvider");return e}function VS(){var r;const{sessionQuery:e}=yt(),t=new Set;return(r=e==null?void 0:e.data)==null?void 0:r.bookmarkedApps.filter(s=>{const i=t.has(s.displayName);return t.add(s.displayName),!i})}function Ls(e){const[t,n]=x.useState();return x.useEffect(()=>{(async()=>{let r;typeof e=="string"?r=await X.rights().sessionHasWorkflowRight(e):await X.rights().sessionHasWorkflowRights(e),n(r)})()},[e]),t}function HS(){const e=typeof document<"u",[t,n]=x.useState(()=>document.title);return x.useEffect(()=>{e&&n(document.title)},[e]),t}function Yg(){const[e,t]=x.useState(!1),n=x.useRef(null),r=()=>{t(!0)},s=()=>{t(!1)};return x.useEffect(()=>{const i=n.current;if(i)return i.addEventListener("mouseover",r),i.addEventListener("mouseout",s),()=>{i.removeEventListener("mouseover",r),i.removeEventListener("mouseout",s)}},[n]),[n,e]}function qS({user:e,avatar:t}){const{t:n}=ye(),r=HS(),[s,i]=x.useState(!0),[o,a]=Yg(),l=x.useId(),u=x.useId(),c=t,d=e==null?void 0:e.username,h=n("welcome",{username:e==null?void 0:e.firstName}),m=VS(),g=Ls("net.atos.entng.community.controllers.CommunityController|view"),y=Ls("org.entcore.conversation.controllers.ConversationController|view"),S=Ls("fr.openent.searchengine.controllers.SearchEngineController|view"),p=x.useCallback(()=>{i(!s)},[s]),v=async()=>{await X.session().logout(),window.location.href="/auth/login"};return x.useMemo(()=>({title:r,bookmarkedApps:m,appsRef:o,isAppsHovered:a,popoverAppsId:l,popoverSearchId:u,userAvatar:c,userName:d,welcomeUser:h,communityWorkflow:g,conversationWorflow:y,searchWorkflow:S,isCollapsed:s,toggleCollapsedNav:p,handleLogout:v}),[o,m,g,y,a,s,l,u,S,r,p,c,d,h])}function Jg(){const e={"last-infos-widget":"ic-widget-actualites",birthday:"ic-star","calendar-widget":"ic-widget-calendar","carnet-de-bord":"ic-widget-carnet-de-bord","record-me":"ic-widget-microphone",mood:"ic-star","my-apps":"ic-widget-apps",notes:"ic-widget-notes","rss-widget":"ic-widget-rss","bookmark-widget":"ic-widget-signets",qwant:"ic-widget-qwant","qwant-junior":"ic-widget-qwant","agenda-widget":"ic-widget-agenda","cursus-widget":"ic-widget-aide-devoirs","maxicours-widget":"ic-widget-maxicours","school-widget":"ic-widget-schoolbook","universalis-widget":"ic-widget-universalis","briefme-widget":"ic-widget-briefme"};function t(a){let l="";switch(l=(a==null?void 0:a.icon)!==void 0?a==null?void 0:a.icon.trim().toLowerCase():"placeholder",l&&l.length>0?l.endsWith("-large")&&(l=l.replace("-large","")):l=(a==null?void 0:a.displayName)!==void 0?a==null?void 0:a.displayName.trim().toLowerCase():"",l){case"admin.title":l="admin";break;case"banques des savoirs":l="banquesavoir";break;case"collaborativewall":l="collaborative-wall";break;case"communautés":l="community";break;case"directory.user":l="userbook";break;case"emploi du temps":l="edt";break;case"messagerie":l="conversation";break;case"news":l="actualites";break;case"homeworks":case"cahier de texte":l="cahier-de-texte";break;case"diary":case"cahier de texte 2d":l="cahier-textes";break}return l}function n(a){return a&&(a.startsWith("/")||a.startsWith("http://")||a.startsWith("https://"))}function r(a){const l=t(a);return l?`color-app-${l}`:"color-app-placeholder"}function s(a){const l=t(a);return l?`bg-app-${l}`:"bg-app-placeholder"}function i(a){const l=t(a);return l?`bg-light-${l}`:"bg-light-placeholder"}function o(a){return e[a.platformConf.name]}return{getIconClass:r,getBackgroundIconClass:s,getBackgroundLightIconClass:i,getIconCode:t,getWidgetIconClass:o,isIconUrl:n}}function Qa(){return["/assets/themes/edifice-bootstrap/images","/assets/themes/edifice-bootstrap/icons","/assets/themes/edifice-bootstrap/fonts"]}const e0=x.createContext(null);function QS({children:e}){var s;const{appCode:t}=yt(),n=Gg({appCode:t});x.useEffect(()=>{var u,c,d,h,m,g,y,S,p;const i=document.getElementById("favicon");i.href=`${(c=(u=n==null?void 0:n.data)==null?void 0:u.theme)==null?void 0:c.basePath}/img/illustrations/favicon.ico`;const o=(m=(h=(d=n==null?void 0:n.data)==null?void 0:d.theme)==null?void 0:h.bootstrapVersion)==null?void 0:m.split("-"),a=o?o[o.length-1]:void 0;[{data:"data-skin",value:(y=(g=n==null?void 0:n.data)==null?void 0:g.theme)==null?void 0:y.skinName},{data:"data-theme",value:(p=(S=n==null?void 0:n.data)==null?void 0:S.theme)==null?void 0:p.themeName},{data:"data-product",value:a}].forEach(v=>{var w;return(w=document.querySelector("html"))==null?void 0:w.setAttribute(v.data,v.value)})},[n==null?void 0:n.data]);const r=x.useMemo(()=>{var i;return{theme:(i=n==null?void 0:n.data)==null?void 0:i.theme}},[(s=n==null?void 0:n.data)==null?void 0:s.theme]);return f.jsx(e0.Provider,{value:r,children:e})}function Ad(){const e=x.useContext(e0);if(!e)throw new Error("Cannot be used outside of OdeClientProvider");return e}function Ld(){const{user:e,userDescription:t,userProfile:n}=yt(),{theme:r}=Ad();function s(){let i=t==null?void 0:t.picture;return(!i||i==="no-avatar.jpg"||i==="no-avatar.svg")&&(i=`${r==null?void 0:r.basePath}/img/illustrations/no-avatar.svg`),i}return{user:{...e,type:n},avatar:s(),userDescription:t}}function WS(){const[e,t]=x.useState("pending"),{currentApp:n}=yt();x.useEffect(()=>{r()},[]);const r=async()=>{if(!n){t("[Xiti] Error, currentApp is not defined.");return}try{await X.analytics().trackPageLoad(window.location.pathname,n),console.info(`[Xiti] Success tracking page ${window.location.pathname}`),t(`[Xiti] Success tracking page ${window.location.pathname}`)}catch(s){console.error("[Xiti] Error Tracking Page Load",s),t(`[Xiti] Error Tracking Page Load: ${s}`)}};return{xitiStatus:e}}const Yh=["mousedown","touchstart"];function t0(e,t,n){const r=x.useRef();return x.useEffect(()=>{const s=i=>{const{target:o}=i??{};if(Array.isArray(n)){const a=(o==null?void 0:o.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(o)&&o.tagName!=="HTML";n.every(u=>!!u&&!i.composedPath().includes(u))&&!a&&e()}else r.current&&!r.current.contains(o)&&e()};return(t||Yh).forEach(i=>{document.addEventListener(i,s)}),()=>{(t||Yh).forEach(i=>{document.removeEventListener(i,s)})}},[r,e,n,t]),r}let KS={data:""},ZS=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||KS,GS=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,XS=/\/\*[^]*?\*\/| +/g,Jh=/\n+/g,vn=(e,t)=>{let n="",r="",s="";for(let i in e){let o=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+o+";":r+=i[1]=="f"?vn(o,i):i+"{"+vn(o,i[1]=="k"?"":t)+"}":typeof o=="object"?r+=vn(o,t?t.replace(/([^,])+/g,a=>i.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):i):o!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),s+=vn.p?vn.p(i,o):i+":"+o+";")}return n+(t&&s?t+"{"+s+"}":s)+r},Qt={},n0=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+n0(e[n]);return t}return e},YS=(e,t,n,r,s)=>{let i=n0(e),o=Qt[i]||(Qt[i]=(l=>{let u=0,c=11;for(;u<l.length;)c=101*c+l.charCodeAt(u++)>>>0;return"go"+c})(i));if(!Qt[o]){let l=i!==e?e:(u=>{let c,d,h=[{}];for(;c=GS.exec(u.replace(XS,""));)c[4]?h.shift():c[3]?(d=c[3].replace(Jh," ").trim(),h.unshift(h[0][d]=h[0][d]||{})):h[0][c[1]]=c[2].replace(Jh," ").trim();return h[0]})(e);Qt[o]=vn(s?{["@keyframes "+o]:l}:l,n?"":"."+o)}let a=n&&Qt.g?Qt.g:null;return n&&(Qt.g=Qt[o]),((l,u,c,d)=>{d?u.data=u.data.replace(d,l):u.data.indexOf(l)===-1&&(u.data=c?l+u.data:u.data+l)})(Qt[o],t,r,a),o},JS=(e,t,n)=>e.reduce((r,s,i)=>{let o=t[i];if(o&&o.call){let a=o(n),l=a&&a.props&&a.props.className||/^go/.test(a)&&a;o=l?"."+l:a&&typeof a=="object"?a.props?"":vn(a,""):a===!1?"":a}return r+s+(o??"")},"");function Wa(e){let t=this||{},n=e.call?e(t.p):e;return YS(n.unshift?n.raw?JS(n,[].slice.call(arguments,1),t.p):n.reduce((r,s)=>Object.assign(r,s&&s.call?s(t.p):s),{}):n,ZS(t.target),t.g,t.o,t.k)}let r0,hc,pc;Wa.bind({g:1});let sn=Wa.bind({k:1});function e4(e,t,n,r){vn.p=t,r0=e,hc=n,pc=r}function $n(e,t){let n=this||{};return function(){let r=arguments;function s(i,o){let a=Object.assign({},i),l=a.className||s.className;n.p=Object.assign({theme:hc&&hc()},a),n.o=/ *go\d+/.test(l),a.className=Wa.apply(n,r)+(l?" "+l:""),t&&(a.ref=o);let u=e;return e[0]&&(u=a.as||e,delete a.as),pc&&u[0]&&pc(a),r0(u,a)}return t?t(s):s}}var t4=e=>typeof e=="function",pa=(e,t)=>t4(e)?e(t):e,n4=(()=>{let e=0;return()=>(++e).toString()})(),s0=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),r4=20,Po=new Map,s4=1e3,ep=e=>{if(Po.has(e))return;let t=setTimeout(()=>{Po.delete(e),ur({type:4,toastId:e})},s4);Po.set(e,t)},i4=e=>{let t=Po.get(e);t&&clearTimeout(t)},mc=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,r4)};case 1:return t.toast.id&&i4(t.toast.id),{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:n}=t;return e.toasts.find(i=>i.id===n.id)?mc(e,{type:1,toast:n}):mc(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?ep(r):e.toasts.forEach(i=>{ep(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===r||r===void 0?{...i,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let s=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(i=>({...i,pauseDuration:i.pauseDuration+s}))}}},Oo=[],No={toasts:[],pausedAt:void 0},ur=e=>{No=mc(No,e),Oo.forEach(t=>{t(No)})},o4={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},a4=(e={})=>{let[t,n]=x.useState(No);x.useEffect(()=>(Oo.push(n),()=>{let s=Oo.indexOf(n);s>-1&&Oo.splice(s,1)}),[t]);let r=t.toasts.map(s=>{var i,o;return{...e,...e[s.type],...s,duration:s.duration||((i=e[s.type])==null?void 0:i.duration)||(e==null?void 0:e.duration)||o4[s.type],style:{...e.style,...(o=e[s.type])==null?void 0:o.style,...s.style}}});return{...t,toasts:r}},l4=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||n4()}),Oi=e=>(t,n)=>{let r=l4(t,e,n);return ur({type:2,toast:r}),r.id},Ye=(e,t)=>Oi("blank")(e,t);Ye.error=Oi("error");Ye.success=Oi("success");Ye.loading=Oi("loading");Ye.custom=Oi("custom");Ye.dismiss=e=>{ur({type:3,toastId:e})};Ye.remove=e=>ur({type:4,toastId:e});Ye.promise=(e,t,n)=>{let r=Ye.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(s=>(Ye.success(pa(t.success,s),{id:r,...n,...n==null?void 0:n.success}),s)).catch(s=>{Ye.error(pa(t.error,s),{id:r,...n,...n==null?void 0:n.error})}),e};var u4=(e,t)=>{ur({type:1,toast:{id:e,height:t}})},c4=()=>{ur({type:5,time:Date.now()})},d4=e=>{let{toasts:t,pausedAt:n}=a4(e);x.useEffect(()=>{if(n)return;let i=Date.now(),o=t.map(a=>{if(a.duration===1/0)return;let l=(a.duration||0)+a.pauseDuration-(i-a.createdAt);if(l<0){a.visible&&Ye.dismiss(a.id);return}return setTimeout(()=>Ye.dismiss(a.id),l)});return()=>{o.forEach(a=>a&&clearTimeout(a))}},[t,n]);let r=x.useCallback(()=>{n&&ur({type:6,time:Date.now()})},[n]),s=x.useCallback((i,o)=>{let{reverseOrder:a=!1,gutter:l=8,defaultPosition:u}=o||{},c=t.filter(m=>(m.position||u)===(i.position||u)&&m.height),d=c.findIndex(m=>m.id===i.id),h=c.filter((m,g)=>g<d&&m.visible).length;return c.filter(m=>m.visible).slice(...a?[h+1]:[0,h]).reduce((m,g)=>m+(g.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:u4,startPause:c4,endPause:r,calculateOffset:s}}},f4=sn`
49
+ */var Qr=x;function yS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wS=typeof Object.is=="function"?Object.is:yS,xS=Qr.useState,SS=Qr.useEffect,bS=Qr.useLayoutEffect,ES=Qr.useDebugValue;function CS(e,t){var n=t(),r=xS({inst:{value:n,getSnapshot:t}}),s=r[0].inst,i=r[1];return bS(function(){s.value=n,s.getSnapshot=t,Wl(s)&&i({inst:s})},[e,n,t]),SS(function(){return Wl(s)&&i({inst:s}),e(function(){Wl(s)&&i({inst:s})})},[e]),ES(n),n}function Wl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!wS(e,n)}catch{return!0}}function RS(e,t){return t()}var kS=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?RS:CS;Bg.useSyncExternalStore=Qr.useSyncExternalStore!==void 0?Qr.useSyncExternalStore:kS;Ug.exports=Bg;var Vg=Ug.exports;const Hg=Vg.useSyncExternalStore,Xh=x.createContext(void 0),qg=x.createContext(!1);function Qg(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Xh),window.ReactQueryClientContext):Xh)}const it=({context:e}={})=>{const t=x.useContext(Qg(e,x.useContext(qg)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},PS=({client:e,children:t,context:n,contextSharing:r=!1})=>{x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const s=Qg(n,r);return x.createElement(qg.Provider,{value:!n&&r},x.createElement(s.Provider,{value:e},t))},Wg=x.createContext(!1),OS=()=>x.useContext(Wg);Wg.Provider;function NS(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const jS=x.createContext(NS()),TS=()=>x.useContext(jS);function Kg(e,t){return typeof e=="function"?e(...t):!!e}const _S=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},IS=e=>{x.useEffect(()=>{e.clearReset()},[e])},AS=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&Kg(n,[e.error,r]),LS=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},MS=(e,t)=>e.isLoading&&e.isFetching&&!t,DS=(e,t,n)=>(e==null?void 0:e.suspense)&&MS(t,n),FS=(e,t,n)=>t.fetchOptimistic(e).then(({data:r})=>{e.onSuccess==null||e.onSuccess(r),e.onSettled==null||e.onSettled(r,null)}).catch(r=>{n.clearReset(),e.onError==null||e.onError(r),e.onSettled==null||e.onSettled(void 0,r)});function Zg(e,t){const n=it({context:e.context}),r=OS(),s=TS(),i=n.defaultQueryOptions(e);i._optimisticResults=r?"isRestoring":"optimistic",i.onError&&(i.onError=ae.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=ae.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=ae.batchCalls(i.onSettled)),LS(i),_S(i,s),IS(s);const[o]=x.useState(()=>new t(n,i)),a=o.getOptimisticResult(i);if(Hg(x.useCallback(l=>{const u=r?()=>{}:o.subscribe(ae.batchCalls(l));return o.updateResult(),u},[o,r]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),x.useEffect(()=>{o.setOptions(i,{listeners:!1})},[i,o]),DS(i,a,r))throw FS(i,o,s);if(AS({result:a,errorResetBoundary:s,useErrorBoundary:i.useErrorBoundary,query:o.getCurrentQuery()}))throw a.error;return i.notifyOnChangeProps?a:o.trackResult(a)}function Id(e,t,n){const r=gr(e,t,n);return Zg(r,Dm)}function an(e,t,n){const r=Y2(e,t,n),s=it({context:r.context}),[i]=x.useState(()=>new pw(s,r));x.useEffect(()=>{i.setOptions(r)},[i,r]);const o=Hg(x.useCallback(l=>i.subscribe(ae.batchCalls(l)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),a=x.useCallback((l,u)=>{i.mutate(l,u).catch($S)},[i]);if(o.error&&Kg(i.options.useErrorBoundary,[o.error]))throw o.error;return{...o,mutate:a,mutateAsync:o.mutate}}function $S(){}function zS(e,t,n){const r=gr(e,t,n);return Zg(r,hw)}function US(){return Id({queryKey:["session"],queryFn:async()=>await X.session().getSession(),suspense:!0})}function Gg({appCode:e}){return Id({queryKey:["conf"],queryFn:async()=>await X.conf().getConf(e),suspense:!0})}const Xg=x.createContext(null);function BS({children:e,params:t}){const n=t.app,{t:r}=pe(),s=r(n),i=US(),o=Gg({appCode:n}),a=(o==null?void 0:o.isSuccess)&&(i==null?void 0:i.isSuccess);x.useEffect(()=>{var u,c;(c=document.querySelector("html"))==null||c.setAttribute("lang",((u=i==null?void 0:i.data)==null?void 0:u.currentLanguage)||"fr")},[i==null?void 0:i.data]),x.useEffect(()=>{document.title=`${s}`},[n,i.data,s]);const l=x.useMemo(()=>{var u,c,d,h,p,g;return{appCode:n,applications:(u=o==null?void 0:o.data)==null?void 0:u.applications,confQuery:o,currentApp:(c=o==null?void 0:o.data)==null?void 0:c.currentApp,currentLanguage:(d=i==null?void 0:i.data)==null?void 0:d.currentLanguage,init:a,sessionQuery:i,user:(h=i==null?void 0:i.data)==null?void 0:h.user,userDescription:(p=i==null?void 0:i.data)==null?void 0:p.userDescription,userProfile:(g=i==null?void 0:i.data)==null?void 0:g.userProfile}},[n,o,a,i]);return f.jsx(Xg.Provider,{value:l,children:e})}function yt(){const e=x.useContext(Xg);if(!e)throw new Error("Cannot be used outside of OdeClientProvider");return e}function VS(){var r;const{sessionQuery:e}=yt(),t=new Set;return(r=e==null?void 0:e.data)==null?void 0:r.bookmarkedApps.filter(s=>{const i=t.has(s.displayName);return t.add(s.displayName),!i})}function Ls(e){const[t,n]=x.useState();return x.useEffect(()=>{(async()=>{let r;typeof e=="string"?r=await X.rights().sessionHasWorkflowRight(e):await X.rights().sessionHasWorkflowRights(e),n(r)})()},[e]),t}function HS(){const e=typeof document<"u",[t,n]=x.useState(()=>document.title);return x.useEffect(()=>{e&&n(document.title)},[e]),t}function Yg(){const[e,t]=x.useState(!1),n=x.useRef(null),r=()=>{t(!0)},s=()=>{t(!1)};return x.useEffect(()=>{const i=n.current;if(i)return i.addEventListener("mouseover",r),i.addEventListener("mouseout",s),()=>{i.removeEventListener("mouseover",r),i.removeEventListener("mouseout",s)}},[n]),[n,e]}function qS({user:e,avatar:t}){const{t:n}=pe(),r=HS(),[s,i]=x.useState(!0),[o,a]=Yg(),l=x.useId(),u=x.useId(),c=t,d=e==null?void 0:e.username,h=n("welcome",{username:e==null?void 0:e.firstName}),p=VS(),g=Ls("net.atos.entng.community.controllers.CommunityController|view"),y=Ls("org.entcore.conversation.controllers.ConversationController|view"),S=Ls("fr.openent.searchengine.controllers.SearchEngineController|view"),m=x.useCallback(()=>{i(!s)},[s]),v=async()=>{await X.session().logout(),window.location.href="/auth/login"};return x.useMemo(()=>({title:r,bookmarkedApps:p,appsRef:o,isAppsHovered:a,popoverAppsId:l,popoverSearchId:u,userAvatar:c,userName:d,welcomeUser:h,communityWorkflow:g,conversationWorflow:y,searchWorkflow:S,isCollapsed:s,toggleCollapsedNav:m,handleLogout:v}),[o,p,g,y,a,s,l,u,S,r,m,c,d,h])}function Jg(){const e={"last-infos-widget":"ic-widget-actualites",birthday:"ic-star","calendar-widget":"ic-widget-calendar","carnet-de-bord":"ic-widget-carnet-de-bord","record-me":"ic-widget-microphone",mood:"ic-star","my-apps":"ic-widget-apps",notes:"ic-widget-notes","rss-widget":"ic-widget-rss","bookmark-widget":"ic-widget-signets",qwant:"ic-widget-qwant","qwant-junior":"ic-widget-qwant","agenda-widget":"ic-widget-agenda","cursus-widget":"ic-widget-aide-devoirs","maxicours-widget":"ic-widget-maxicours","school-widget":"ic-widget-schoolbook","universalis-widget":"ic-widget-universalis","briefme-widget":"ic-widget-briefme"};function t(a){let l="";switch(l=(a==null?void 0:a.icon)!==void 0?a==null?void 0:a.icon.trim().toLowerCase():"placeholder",l&&l.length>0?l.endsWith("-large")&&(l=l.replace("-large","")):l=(a==null?void 0:a.displayName)!==void 0?a==null?void 0:a.displayName.trim().toLowerCase():"",l){case"admin.title":l="admin";break;case"banques des savoirs":l="banquesavoir";break;case"collaborativewall":l="collaborative-wall";break;case"communautés":l="community";break;case"directory.user":l="userbook";break;case"emploi du temps":l="edt";break;case"messagerie":l="conversation";break;case"news":l="actualites";break;case"homeworks":case"cahier de texte":l="cahier-de-texte";break;case"diary":case"cahier de texte 2d":l="cahier-textes";break}return l}function n(a){return a&&(a.startsWith("/")||a.startsWith("http://")||a.startsWith("https://"))}function r(a){const l=t(a);return l?`color-app-${l}`:"color-app-placeholder"}function s(a){const l=t(a);return l?`bg-app-${l}`:"bg-app-placeholder"}function i(a){const l=t(a);return l?`bg-light-${l}`:"bg-light-placeholder"}function o(a){return e[a.platformConf.name]}return{getIconClass:r,getBackgroundIconClass:s,getBackgroundLightIconClass:i,getIconCode:t,getWidgetIconClass:o,isIconUrl:n}}function Qa(){return["/assets/themes/edifice-bootstrap/images","/assets/themes/edifice-bootstrap/icons","/assets/themes/edifice-bootstrap/fonts"]}const e0=x.createContext(null);function QS({children:e}){var s;const{appCode:t}=yt(),n=Gg({appCode:t});x.useEffect(()=>{var u,c,d,h,p,g,y,S,m;const i=document.getElementById("favicon");i.href=`${(c=(u=n==null?void 0:n.data)==null?void 0:u.theme)==null?void 0:c.basePath}/img/illustrations/favicon.ico`;const o=(p=(h=(d=n==null?void 0:n.data)==null?void 0:d.theme)==null?void 0:h.bootstrapVersion)==null?void 0:p.split("-"),a=o?o[o.length-1]:void 0;[{data:"data-skin",value:(y=(g=n==null?void 0:n.data)==null?void 0:g.theme)==null?void 0:y.skinName},{data:"data-theme",value:(m=(S=n==null?void 0:n.data)==null?void 0:S.theme)==null?void 0:m.themeName},{data:"data-product",value:a}].forEach(v=>{var w;return(w=document.querySelector("html"))==null?void 0:w.setAttribute(v.data,v.value)})},[n==null?void 0:n.data]);const r=x.useMemo(()=>{var i;return{theme:(i=n==null?void 0:n.data)==null?void 0:i.theme}},[(s=n==null?void 0:n.data)==null?void 0:s.theme]);return f.jsx(e0.Provider,{value:r,children:e})}function Ad(){const e=x.useContext(e0);if(!e)throw new Error("Cannot be used outside of OdeClientProvider");return e}function Ld(){const{user:e,userDescription:t,userProfile:n}=yt(),{theme:r}=Ad();function s(){let i=t==null?void 0:t.picture;return(!i||i==="no-avatar.jpg"||i==="no-avatar.svg")&&(i=`${r==null?void 0:r.basePath}/img/illustrations/no-avatar.svg`),i}return{user:{...e,type:n},avatar:s(),userDescription:t}}function WS(){const[e,t]=x.useState("pending"),{currentApp:n}=yt();x.useEffect(()=>{r()},[]);const r=async()=>{if(!n){t("[Xiti] Error, currentApp is not defined.");return}try{await X.analytics().trackPageLoad(window.location.pathname,n),console.info(`[Xiti] Success tracking page ${window.location.pathname}`),t(`[Xiti] Success tracking page ${window.location.pathname}`)}catch(s){console.error("[Xiti] Error Tracking Page Load",s),t(`[Xiti] Error Tracking Page Load: ${s}`)}};return{xitiStatus:e}}const Yh=["mousedown","touchstart"];function t0(e,t,n){const r=x.useRef();return x.useEffect(()=>{const s=i=>{const{target:o}=i??{};if(Array.isArray(n)){const a=(o==null?void 0:o.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(o)&&o.tagName!=="HTML";n.every(u=>!!u&&!i.composedPath().includes(u))&&!a&&e()}else r.current&&!r.current.contains(o)&&e()};return(t||Yh).forEach(i=>{document.addEventListener(i,s)}),()=>{(t||Yh).forEach(i=>{document.removeEventListener(i,s)})}},[r,e,n,t]),r}let KS={data:""},ZS=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||KS,GS=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,XS=/\/\*[^]*?\*\/| +/g,Jh=/\n+/g,vn=(e,t)=>{let n="",r="",s="";for(let i in e){let o=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+o+";":r+=i[1]=="f"?vn(o,i):i+"{"+vn(o,i[1]=="k"?"":t)+"}":typeof o=="object"?r+=vn(o,t?t.replace(/([^,])+/g,a=>i.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):i):o!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),s+=vn.p?vn.p(i,o):i+":"+o+";")}return n+(t&&s?t+"{"+s+"}":s)+r},Qt={},n0=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+n0(e[n]);return t}return e},YS=(e,t,n,r,s)=>{let i=n0(e),o=Qt[i]||(Qt[i]=(l=>{let u=0,c=11;for(;u<l.length;)c=101*c+l.charCodeAt(u++)>>>0;return"go"+c})(i));if(!Qt[o]){let l=i!==e?e:(u=>{let c,d,h=[{}];for(;c=GS.exec(u.replace(XS,""));)c[4]?h.shift():c[3]?(d=c[3].replace(Jh," ").trim(),h.unshift(h[0][d]=h[0][d]||{})):h[0][c[1]]=c[2].replace(Jh," ").trim();return h[0]})(e);Qt[o]=vn(s?{["@keyframes "+o]:l}:l,n?"":"."+o)}let a=n&&Qt.g?Qt.g:null;return n&&(Qt.g=Qt[o]),((l,u,c,d)=>{d?u.data=u.data.replace(d,l):u.data.indexOf(l)===-1&&(u.data=c?l+u.data:u.data+l)})(Qt[o],t,r,a),o},JS=(e,t,n)=>e.reduce((r,s,i)=>{let o=t[i];if(o&&o.call){let a=o(n),l=a&&a.props&&a.props.className||/^go/.test(a)&&a;o=l?"."+l:a&&typeof a=="object"?a.props?"":vn(a,""):a===!1?"":a}return r+s+(o??"")},"");function Wa(e){let t=this||{},n=e.call?e(t.p):e;return YS(n.unshift?n.raw?JS(n,[].slice.call(arguments,1),t.p):n.reduce((r,s)=>Object.assign(r,s&&s.call?s(t.p):s),{}):n,ZS(t.target),t.g,t.o,t.k)}let r0,hc,pc;Wa.bind({g:1});let sn=Wa.bind({k:1});function e4(e,t,n,r){vn.p=t,r0=e,hc=n,pc=r}function $n(e,t){let n=this||{};return function(){let r=arguments;function s(i,o){let a=Object.assign({},i),l=a.className||s.className;n.p=Object.assign({theme:hc&&hc()},a),n.o=/ *go\d+/.test(l),a.className=Wa.apply(n,r)+(l?" "+l:""),t&&(a.ref=o);let u=e;return e[0]&&(u=a.as||e,delete a.as),pc&&u[0]&&pc(a),r0(u,a)}return t?t(s):s}}var t4=e=>typeof e=="function",pa=(e,t)=>t4(e)?e(t):e,n4=(()=>{let e=0;return()=>(++e).toString()})(),s0=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),r4=20,Po=new Map,s4=1e3,ep=e=>{if(Po.has(e))return;let t=setTimeout(()=>{Po.delete(e),ur({type:4,toastId:e})},s4);Po.set(e,t)},i4=e=>{let t=Po.get(e);t&&clearTimeout(t)},mc=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,r4)};case 1:return t.toast.id&&i4(t.toast.id),{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:n}=t;return e.toasts.find(i=>i.id===n.id)?mc(e,{type:1,toast:n}):mc(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?ep(r):e.toasts.forEach(i=>{ep(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===r||r===void 0?{...i,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let s=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(i=>({...i,pauseDuration:i.pauseDuration+s}))}}},Oo=[],No={toasts:[],pausedAt:void 0},ur=e=>{No=mc(No,e),Oo.forEach(t=>{t(No)})},o4={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},a4=(e={})=>{let[t,n]=x.useState(No);x.useEffect(()=>(Oo.push(n),()=>{let s=Oo.indexOf(n);s>-1&&Oo.splice(s,1)}),[t]);let r=t.toasts.map(s=>{var i,o;return{...e,...e[s.type],...s,duration:s.duration||((i=e[s.type])==null?void 0:i.duration)||(e==null?void 0:e.duration)||o4[s.type],style:{...e.style,...(o=e[s.type])==null?void 0:o.style,...s.style}}});return{...t,toasts:r}},l4=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||n4()}),Oi=e=>(t,n)=>{let r=l4(t,e,n);return ur({type:2,toast:r}),r.id},Ye=(e,t)=>Oi("blank")(e,t);Ye.error=Oi("error");Ye.success=Oi("success");Ye.loading=Oi("loading");Ye.custom=Oi("custom");Ye.dismiss=e=>{ur({type:3,toastId:e})};Ye.remove=e=>ur({type:4,toastId:e});Ye.promise=(e,t,n)=>{let r=Ye.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(s=>(Ye.success(pa(t.success,s),{id:r,...n,...n==null?void 0:n.success}),s)).catch(s=>{Ye.error(pa(t.error,s),{id:r,...n,...n==null?void 0:n.error})}),e};var u4=(e,t)=>{ur({type:1,toast:{id:e,height:t}})},c4=()=>{ur({type:5,time:Date.now()})},d4=e=>{let{toasts:t,pausedAt:n}=a4(e);x.useEffect(()=>{if(n)return;let i=Date.now(),o=t.map(a=>{if(a.duration===1/0)return;let l=(a.duration||0)+a.pauseDuration-(i-a.createdAt);if(l<0){a.visible&&Ye.dismiss(a.id);return}return setTimeout(()=>Ye.dismiss(a.id),l)});return()=>{o.forEach(a=>a&&clearTimeout(a))}},[t,n]);let r=x.useCallback(()=>{n&&ur({type:6,time:Date.now()})},[n]),s=x.useCallback((i,o)=>{let{reverseOrder:a=!1,gutter:l=8,defaultPosition:u}=o||{},c=t.filter(p=>(p.position||u)===(i.position||u)&&p.height),d=c.findIndex(p=>p.id===i.id),h=c.filter((p,g)=>g<d&&p.visible).length;return c.filter(p=>p.visible).slice(...a?[h+1]:[0,h]).reduce((p,g)=>p+(g.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:u4,startPause:c4,endPause:r,calculateOffset:s}}},f4=sn`
50
50
  from {
51
51
  transform: scale(0) rotate(45deg);
52
52
  opacity: 0;
@@ -222,9 +222,9 @@ to {
222
222
  > * {
223
223
  pointer-events: auto;
224
224
  }
225
- `,so=16,D4=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:s,containerStyle:i,containerClassName:o})=>{let{toasts:a,handlers:l}=d4(n);return x.createElement("div",{style:{position:"fixed",zIndex:9999,top:so,left:so,right:so,bottom:so,pointerEvents:"none",...i},className:o,onMouseEnter:l.startPause,onMouseLeave:l.endPause},a.map(u=>{let c=u.position||t,d=l.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),h=L4(c,d);return x.createElement(A4,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?M4:"",style:h},u.type==="custom"?pa(u.message,u):s?s(u):x.createElement(I4,{toast:u,position:c}))}))},hs=Ye;function jt(e){return{hotToast:{success:(n,r)=>hs.custom(f.jsx(e,{type:"success",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),error:(n,r)=>hs.custom(f.jsx(e,{type:"danger",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),info:(n,r)=>hs.custom(f.jsx(e,{type:"info",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),warning:(n,r)=>hs.custom(f.jsx(e,{type:"warning",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),loading:hs.loading}}}function F4({src:e,placeholder:t}){const[n,r]=x.useState(e||t),s=x.useCallback(()=>{r(t)},[t]);return x.useEffect(()=>{r(e)},[e]),{imgSrc:n,onError:s}}function $4(e,t){const n=x.useCallback(({code:r})=>{t.includes(r)&&e()},[e,t]);x.useEffect(()=>(window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}),[n])}function z4(e=!1){const[t,n]=x.useState(e),r=x.useCallback(()=>{n(s=>!s)},[]);return[t,r]}function U4(e,t){const[n,r]=x.useState(e);return x.useEffect(()=>{const s=setTimeout(()=>{r(e)},t||500);return()=>{clearTimeout(s)}},[e,t]),n}function B4(){const e=x.useRef(null),t='button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';return x.useEffect(()=>{const n=e.current,r=n.querySelectorAll(t)[0],s=n.querySelectorAll(t),i=e&&(s==null?void 0:s[s.length-1]),o=a=>{a.key==="Tab"&&(a.shiftKey?document.activeElement===r&&(i.focus(),a.preventDefault()):document.activeElement===i&&(r.focus(),a.preventDefault()))};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}},[]),e}function V4(){const e=document.querySelector("html");return()=>{e&&e.scrollIntoView()}}const i0=x.forwardRef(({children:e},t)=>f.jsx("div",{ref:t,className:"actionbar",children:e}));i0.displayName="ActionBar";const H4=i0,q4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 6a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V7a1 1 0 0 1 1-1ZM11 16a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H12a1 1 0 0 1-1-1Z",clipRule:"evenodd"})]}),Q4=q4,W4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.707 4.293a1 1 0 0 1 0 1.414L6.414 12l6.293 6.293a1 1 0 0 1-1.414 1.414l-7-7a1 1 0 0 1 0-1.414l7-7a1 1 0 0 1 1.414 0Z",clipRule:"evenodd"})]}),K4=W4,Z4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.293 4.293a1 1 0 0 1 1.414 0l7 7a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414-1.414L17.586 12l-6.293-6.293a1 1 0 0 1 0-1.414Z",clipRule:"evenodd"})]}),ek=Z4,G4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M7 4a1 1 0 0 0-1 1v14.06l5.42-3.87a1 1 0 0 1 1.16 0L18 19.06V5a1 1 0 0 0-1-1H7zM4.88 2.88A3 3 0 0 1 7 2h10a3 3 0 0 1 3 3v16a1 1 0 0 1-1.58.81L12 17.23 5.58 21.8A1 1 0 0 1 4 21V5a3 3 0 0 1 .88-2.12z"})]}),tk=G4,X4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M21 5c0 .828-.711 1.5-1.588 1.5H4.588C3.711 6.5 3 5.828 3 5s.711-1.5 1.588-1.5h14.824C20.289 3.5 21 4.172 21 5ZM21 12c0 .828-.711 1.5-1.588 1.5H4.588C3.711 13.5 3 12.828 3 12s.711-1.5 1.588-1.5h14.824c.877 0 1.588.672 1.588 1.5ZM21 19c0 .828-.711 1.5-1.588 1.5H4.588C3.711 20.5 3 19.828 3 19s.711-1.5 1.588-1.5h14.824c.877 0 1.588.672 1.588 1.5Z",clipRule:"evenodd"})]}),Y4=X4,J4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.222 4.222a1.1 1.1 0 0 1 1.556 0l14 14a1.1 1.1 0 1 1-1.556 1.556l-14-14a1.1 1.1 0 0 1 0-1.556Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.778 4.222a1.1 1.1 0 0 1 0 1.556l-14 14a1.1 1.1 0 1 1-1.556-1.556l14-14a1.1 1.1 0 0 1 1.556 0Z",clipRule:"evenodd"})]}),e3=J4,t3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.676 3c.284-.672.853-1 1.263-1h11.423c.566 0 1.438.628 1.438 1.923v13.154c0 1.056-.58 1.668-1.1 1.858V6.923C19.7 4.99 18.3 3 16.061 3H6.676Zm-2.272.007C4.765 1.41 6.056 0 7.939 0h11.423C21.599 0 23 1.99 23 3.923v13.154c0 1.865-1.303 3.782-3.403 3.916C19.235 22.59 17.944 24 16.06 24H4.638C2.401 24 1 22.01 1 20.077V6.923c0-1.865 1.303-3.782 3.404-3.916ZM3.2 6.923C3.2 5.628 4.072 5 4.638 5h11.423c.567 0 1.439.628 1.439 1.923v13.154c0 1.295-.872 1.923-1.439 1.923H4.638c-.566 0-1.438-.628-1.438-1.923V6.923Z",clipRule:"evenodd"})]}),nk=t3,n3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.461 3.689a.955.955 0 0 1 .675-.28h3.819a.955.955 0 0 1 .954.955v.954H9.182v-.954c0-.254.1-.496.28-.675Zm7.357.675v.954H20.636a.955.955 0 0 1 0 1.91h-.954v12.408a2.864 2.864 0 0 1-2.864 2.864H7.273a2.864 2.864 0 0 1-2.864-2.864V7.227h-.954a.955.955 0 1 1 0-1.909H7.273v-.954A2.864 2.864 0 0 1 10.136 1.5h3.819a2.864 2.864 0 0 1 2.863 2.864Zm-10.5 2.863v12.41a.954.954 0 0 0 .955.954h9.545a.955.955 0 0 0 .955-.955V7.227H6.318Zm3.818 2.864c.528 0 .955.427.955.955v5.727a.955.955 0 1 1-1.91 0v-5.727c0-.528.428-.955.955-.955Zm4.773 6.682v-5.727a.955.955 0 0 0-1.909 0v5.727a.955.955 0 1 0 1.91 0Z",clipRule:"evenodd"})]}),r3=n3,s3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.879 3.879A3 3 0 0 1 4 3h7a1 1 0 1 1 0 2H4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7a1 1 0 1 1 2 0v7a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V6a3 3 0 0 1 .879-2.121Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20 2.879c-.297 0-.583.118-.793.328l-9.304 9.304-.529 2.115 2.115-.529 9.304-9.304A1.121 1.121 0 0 0 20 2.879Zm-2.207-1.086a3.121 3.121 0 0 1 4.414 4.414l-9.5 9.5a1 1 0 0 1-.464.263l-4 1a1 1 0 0 1-1.213-1.212l1-4a1 1 0 0 1 .263-.465l9.5-9.5Z",clipRule:"evenodd"})]}),rk=s3,i3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 12a9 9 0 1 1 18 0 9 9 0 0 1-18 0Zm9-11C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1ZM8.293 15.707a1 1 0 0 1 0-1.414L10.586 12 8.293 9.707a1 1 0 0 1 1.414-1.414L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414 0Z",clipRule:"evenodd"})]}),o3=i3,a3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.91 9.14v1.27H8.25a4.7 4.7 0 0 0-3.86 1.98L1.5 16.53V6.4a2.3 2.3 0 0 1 .77-1.69A2.68 2.68 0 0 1 4.11 4h3.73a2.68 2.68 0 0 1 1.84.71c.25.22.45.48.58.77.13.29.2.6.2.92v.34h7.84c.7.01 1.35.27 1.84.71.49.45.76 1.06.77 1.7ZM8.25 11.92h14.47c.63 0 1 .68.64 1.18l-3.52 5.04a3.13 3.13 0 0 1-2.57 1.32H2.79c-.62 0-.99-.68-.64-1.18l3.53-5.04a3.13 3.13 0 0 1 2.57-1.32Z",clipRule:"evenodd"})]}),sk=a3,l3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.093 2.58A1 1 0 0 1 2 2h20a1 1 0 0 1 .764 1.646L15 12.826V21a1 1 0 0 1-1.447.894l-4-2A1 1 0 0 1 9 19v-6.174l-7.764-9.18a1 1 0 0 1-.143-1.067ZM4.155 4l6.609 7.814a1 1 0 0 1 .236.646v5.922l2 1V12.46a1 1 0 0 1 .236-.646L19.845 4H4.155Z",clipRule:"evenodd"})]}),u3=l3,c3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.057 5.5A.057.057 0 0 0 3 5.557v13.03h18V7.875h-8.697a1 1 0 0 1-1-1c0-.759-.615-1.374-1.374-1.374H3.057ZM1 5.557C1 4.42 1.92 3.5 3.057 3.5h6.872c1.515 0 2.797.999 3.223 2.374H21a2 2 0 0 1 2 2v10.714a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V5.557Z",clipRule:"evenodd"})]}),d3=c3,f3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.726 3.29A9.008 9.008 0 0 0 3.055 11H7.05a16.3 16.3 0 0 1 2.676-7.71Zm4.548 0A16.3 16.3 0 0 1 16.95 11h3.995a9.008 9.008 0 0 0-6.67-7.71Zm.668 7.71A14.3 14.3 0 0 0 12 3.55 14.3 14.3 0 0 0 9.058 11h5.884Zm-5.884 2h5.884A14.3 14.3 0 0 1 12 20.45 14.3 14.3 0 0 1 9.058 13ZM7.05 13H3.055a9.008 9.008 0 0 0 6.67 7.71A16.3 16.3 0 0 1 7.05 13Zm7.224 7.71A16.3 16.3 0 0 0 16.95 13h3.995a9.008 9.008 0 0 1-6.67 7.71ZM12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11Z",clipRule:"evenodd"})]}),ik=f3,h3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.01 17a1 1 0 0 1-1-1v-5a1 1 0 1 1 2 0v5a1 1 0 0 1-1 1ZM13.01 7.5a1 1 0 0 1-1 1H12a1 1 0 1 1 0-2h.01a1 1 0 0 1 1 1Z",clipRule:"evenodd"})]}),p3=h3,m3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.672 5.558a7.96 7.96 0 0 0-9.841.397 7.95 7.95 0 0 0-1.908 9.66 7.964 7.964 0 0 0 8.949 4.12A7.948 7.948 0 0 0 19.962 12a1.021 1.021 0 1 1 2.045 0A9.994 9.994 0 0 1 7.83 21.083a10.01 10.01 0 0 1-5.634-11.027 9.991 9.991 0 0 1 9.402-8.048c2.244-.09 4.453.577 6.272 1.895a1.022 1.022 0 1 1-1.198 1.655Z",clipRule:"evenodd"})]}),g3=m3,v3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("circle",{cx:12,cy:4,r:2.5,fill:"currentColor"}),f.jsx("circle",{cx:12,cy:12,r:2.5,fill:"currentColor"}),f.jsx("circle",{cx:12,cy:20,r:2.5,fill:"currentColor"})]}),ok=v3,y3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M13 4a1 1 0 1 0-2 0v7H4a1 1 0 1 0 0 2h7v7a1 1 0 1 0 2 0v-7h7a1 1 0 1 0 0-2h-7V4Z",clipRule:"evenodd"})]}),w3=y3,x3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.012 7.871a1.5 1.5 0 0 1 2.117.141L12 14.722l5.871-6.71a1.5 1.5 0 1 1 2.258 1.976l-7 8a1.5 1.5 0 0 1-2.258 0l-7-8a1.5 1.5 0 0 1 .141-2.117Z",clipRule:"evenodd"})]}),gc=x3,S3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.129 4.012a1.5 1.5 0 0 1-.141 2.117L9.278 12l6.71 5.871a1.5 1.5 0 0 1-1.976 2.258l-8-7a1.5 1.5 0 0 1 0-2.258l8-7a1.5 1.5 0 0 1 2.117.141Z",clipRule:"evenodd"})]}),b3=S3,E3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.871 19.988a1.5 1.5 0 0 1 .141-2.117L14.722 12l-6.71-5.871A1.5 1.5 0 0 1 9.988 3.87l8 7a1.5 1.5 0 0 1 0 2.258l-8 7a1.5 1.5 0 0 1-2.117-.141Z",clipRule:"evenodd"})]}),tp=E3,C3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.988 17.129a1.5 1.5 0 0 1-2.117-.141L12 10.278l-5.871 6.71a1.5 1.5 0 0 1-2.258-1.976l7-8a1.5 1.5 0 0 1 2.258 0l7 8a1.5 1.5 0 0 1-.141 2.117Z",clipRule:"evenodd"})]}),R3=C3,k3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5 4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h1v-7a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v7h1a1 1 0 0 0 1-1V8.414L15.586 4H8v3h7a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1V4H5Zm2-2H5a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V8a1 1 0 0 0-.293-.707l-5-5A1 1 0 0 0 16 2H7Zm1 12v6h8v-6H8Z",clipRule:"evenodd"})]}),ak=k3,P3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 10a7 7 0 1 1 14 0 7 7 0 0 1-14 0Zm7-9a9 9 0 1 0 5.7 15.96 1 1 0 0 0 .24.4l4.35 4.35a1 1 0 0 0 1.42-1.42l-4.35-4.35a1 1 0 0 0-.4-.24A9 9 0 0 0 11 1Z",clipRule:"evenodd"})]}),O3=P3,N3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.59 8.192a1 1 0 0 1 .218 1.397l-4.375 6a1 1 0 0 1-1.584.042L8.224 12.4a1 1 0 0 1 1.552-1.261l1.806 2.223 3.61-4.951a1 1 0 0 1 1.397-.219Z",clipRule:"evenodd"})]}),j3=N3,T3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("g",{fill:"currentColor",fillRule:"evenodd",clipPath:"url(#users_svg__a)",clipRule:"evenodd",children:f.jsx("path",{d:"M19.055 12.803a1 1 0 0 1 1.272-.618c1.128.39 2.061 1.247 2.7 2.351.64 1.106.972 2.435.973 3.782V21a1 1 0 1 1-2 0v-2.681c0-1.03-.258-2.009-.704-2.782-.448-.773-1.034-1.258-1.623-1.462a1 1 0 0 1-.618-1.272ZM15.187 1.384a1 1 0 0 1 1.036-.962 5.129 5.129 0 0 1 2.11 9.71 1 1 0 1 1-.896-1.788 3.129 3.129 0 0 0-1.288-5.924 1 1 0 0 1-.962-1.036ZM1.505 15.694C2.481 14.622 3.825 14 5.25 14h8.5c1.424 0 2.769.622 3.744 1.694.974 1.068 1.506 2.498 1.506 3.973V22a1 1 0 1 1-2 0v-2.333c0-1.001-.363-1.945-.984-2.627-.618-.679-1.436-1.04-2.266-1.04h-8.5c-.83 0-1.648.361-2.266 1.04-.621.682-.984 1.626-.984 2.627V22a1 1 0 1 1-2 0v-2.333c0-1.475.533-2.905 1.505-3.974ZM9.5 3a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7ZM4 6.5a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0Z"})}),f.jsx("defs",{children:f.jsx("clipPath",{id:"users_svg__a",children:f.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),lk=T3;function o0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=o0(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function V(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=o0(e))&&(r&&(r+=" "),r+=t);return r}const a0=x.forwardRef(({type:e="success",className:t="",children:n,button:r,isDismissible:s=!1,isToast:i=!1,autoClose:o=!1,autoCloseDelay:a=3e3,onClose:l,onVisibilityChange:u},c)=>{const[d,h]=x.useState(!0),m=x.useRef(null),g=x.useCallback(()=>{h(!1),l==null||l()},[l]);x.useImperativeHandle(c,()=>({show:y,hide:g,...m.current})),x.useLayoutEffect(()=>{u==null||u(d)},[d,u]),x.useEffect(()=>{o&&d&&setTimeout(()=>{g()},a)},[o,a,g,d]);const y=()=>{h(!0)},S={success:{icon:f.jsx(j3,{}),classModifier:"alert-success"},warning:{icon:f.jsx(Q4,{}),classModifier:"alert-warning"},info:{icon:f.jsx(p3,{}),classModifier:"alert-info"},danger:{icon:f.jsx(o3,{}),classModifier:"alert-danger"}},p={"is-dismissible":s,"is-toast ":i},v=V("alert gap-12",S[e].classModifier,p,t);return f.jsx(f.Fragment,{children:d?f.jsxs("div",{ref:m,className:v,role:"alert",children:[S[e].icon,f.jsx("div",{className:"alert-content small",children:n}),r&&f.jsx("div",{className:"ms-12",children:r}),s&&f.jsx("div",{className:"btn-close-container",children:f.jsx("button",{type:"button",className:"btn btn-close","data-bs-dismiss":"alert","aria-label":"Close",onClick:g})}),o&&f.jsx("div",{className:"alert-progress",style:{transform:"scaleX(0)"}})]}):null})});a0.displayName="Alert";const Tt=a0,l0=x.forwardRef(({children:e,render:t,isFullscreen:n=!1},r)=>{const s=V("d-flex flex-wrap p-16 gap-8 border-bottom bg-white",{"justify-content-between":t,"mx-n16":!n,"z-3 top-0 start-0 end-0 position-fixed":n});return f.jsxs("div",{ref:r,className:s,children:[e,t?f.jsx("div",{className:"d-flex align-items-center ms-auto gap-8",children:t()}):null]})});l0.displayName="AppHeader";const _3=l0,u0=x.forwardRef(({src:e,alt:t,imgPlaceholder:n,ratio:r,objectFit:s,className:i,...o},a)=>{const[l]=Qa(),u=n??`${l}/common/image-placeholder.png`,{imgSrc:c,onError:d}=F4({src:e,placeholder:u}),h={"ratio ratio-1x1":r==="1","ratio ratio-4x3":r==="4","ratio ratio-16x9":r==="16","ratio ratio-21x9":r==="21"},m={"object-fit-contain":s==="contain","object-fit-cover":s==="cover","object-fit-fill":s==="fill","object-fit-scale":s==="scale","object-fit-none":s==="none"},g=V({...h}),y=V({...m},i),S=f.jsx("img",{alt:t,onError:d,ref:a,src:c,className:y,...o});return r?f.jsx("div",{className:g,children:S}):S});u0.displayName="Image";const c0=u0,d0=x.forwardRef(({app:e,size:t="24",iconFit:n="contain",variant:r="square"},s)=>{const{isIconUrl:i,getIconCode:o}=Jg(),[,a]=Qa(),l=r==="square",u=r==="rounded",c=r==="circle",d=n==="contain",h=n==="ratio",m={"icon-xs":t==="24","icon-sm":t==="40","icon-md":t==="48","icon-lg":t==="80","icon-xl":t==="160"},g={square:l,rounded:u,"rounded-circle":c},y={"icon-contain":d,"icon-ratio":h},S=(e==null?void 0:e.icon)!==void 0?e.icon:"placeholder",p=(e==null?void 0:e.displayName)!==void 0?e.displayName:"",v=e?o(e):"",w=i(S),b=v||"placeholder",C=V("app-icon",{...m,...g,...y,[`bg-light-${b}`]:b&&!d,[`color-app-${b}`]:b});return w?f.jsx(c0,{src:S,alt:p,objectFit:"contain",width:t,height:t,className:"h-full"}):f.jsx("div",{className:C,style:{width:t+"px",height:t+"px"},children:f.jsx("svg",{ref:s,width:t,height:t,role:"img",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:f.jsx("use",{xlinkHref:`${a}/apps.svg#${b}`})})})});d0.displayName="AppIcon";const vc=d0,f0=x.forwardRef(({variant:e="square",size:t="md",alt:n,src:r,imgPlaceholder:s,className:i,...o},a)=>{const[l]=Qa(),u=s||`${l}/avatar/no-avatar.svg`,y=V("avatar",{...{"avatar-xs":t==="xs","avatar-sm":t==="sm","avatar-md":t==="md","avatar-lg":t==="lg","avatar-xl":t==="xl"},...{square:e==="square",rounded:e==="rounded","rounded-circle":e==="circle"}},i);return f.jsx("div",{ref:a,className:y,children:f.jsx(c0,{src:r||u,alt:n,imgPlaceholder:u,...o})})});f0.displayName="Avatar";const np=f0,h0=x.forwardRef(({children:e,className:t,...n},r)=>{const s=V("breadcrumb-item",t);return f.jsx("li",{ref:r,className:s,...n,children:e})});h0.displayName="BreadcrumbItem";const Kl=h0,p0=x.forwardRef(({children:e,className:t},n)=>{const r=V("breadcrumb d-flex flex-nowrap align-items-center mb-0",t);return f.jsx("ol",{ref:n,className:r,children:e})});p0.displayName="BreadcrumbList";const I3=p0,m0=x.forwardRef(({children:e,app:t,className:n},r)=>{const{t:s}=ye(),{getIconClass:i}=Jg(),o=V("d-flex align-items-center mb-0",i(t),n),a={"--edifice-breadcrumb-divider":"-"};return f.jsx("nav",{ref:r,className:o,"aria-label":s("breadcrumb"),style:a,children:e})});m0.displayName="BreadcrumbNav";const A3=m0,g0=x.forwardRef(({level:e="h1",headingStyle:t="h1",children:n,className:r,...s},i)=>{const o=V(t,r);return f.jsx(e,{ref:i,className:o,...s,children:n})});g0.displayName="Heading";const rp=g0,v0=x.forwardRef((e,t)=>{const{isLoading:n,loadingIcon:r,loadingPosition:s="left",children:i,...o}=e,a=()=>{let u;return r?u=r:u=f.jsx(g3,{...o,"aria-label":"Loading"}),u},l=V("loading",{"is-loading":n});return f.jsxs("div",{className:l,role:"status",ref:t,children:[(!s||s==="left")&&a(),i,s==="right"&&a()]})});v0.displayName="Loading";const L3=v0,y0=x.forwardRef(({color:e="primary",type:t="button",size:n="md",children:r,isLoading:s,loadingIcon:i,loadingPosition:o,leftIcon:a,rightIcon:l,className:u,variant:c="filled",...d},h)=>{const m=V("btn",{[`btn-filled btn-${e}`]:c==="filled",[`btn-${c}-${e}`]:c==="outline"||c==="ghost","btn-icon":!r,"btn-loading":s,"btn-lg":n==="lg","btn-sm":n==="sm"},u);return f.jsx("button",{ref:h,className:m,type:t,...d,children:s?f.jsx(L3,{isLoading:!0,loadingIcon:i,loadingPosition:o,children:r}):f.jsxs("span",{children:[a,r,l]})})});y0.displayName="Button";const Jr=y0,w0=x.forwardRef(({icon:e,className:t,...n},r)=>{const s={...n,className:V("btn-icon btn-sm",t)};return f.jsx(Jr,{ref:r,...s,children:e})});w0.displayName="IconButton";const Ka=w0,x0=x.forwardRef(({app:e,name:t},n)=>{const{t:r}=ye();return f.jsx(A3,{app:e,ref:n,className:"mw-100",children:f.jsx(I3,{className:"gap-12 mw-100",children:t?f.jsxs(f.Fragment,{children:[f.jsx(Kl,{children:f.jsxs("a",{href:e==null?void 0:e.address,className:"d-flex",children:[f.jsx(Ka,{variant:"ghost",color:"tertiary",icon:f.jsx(b3,{}),"aria-label":r(e==null?void 0:e.displayName)}),f.jsx(vc,{app:e,size:"40"})]})}),f.jsx(Kl,{className:"text-truncate",children:f.jsx(rp,{level:"h1",headingStyle:"h3",className:"text-truncate",children:t})})]}):f.jsxs(Kl,{className:"gap-12 d-flex align-items-center",children:[f.jsx(vc,{app:e,size:"40"}),f.jsx(rp,{level:"h1",headingStyle:"h3",className:"d-none d-md-flex",children:r(e==null?void 0:e.displayName)})]})})})});x0.displayName="Breadcrumb";const M3=x0,S0=x.forwardRef(({icon:e=f.jsx(O3,{}),onClick:t,...n},r)=>{const s=V("btn-search");return f.jsx(Ka,{ref:r,className:s,icon:e,...n,onClick:t})});S0.displayName="SearchButton";const b0=S0,D3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M19.935 17.51c.725 0 1.348.264 1.868.792.52.529.78 1.162.78 1.898 0 .737-.26 1.37-.78 1.898-.52.529-1.135.793-1.844.793-.71 0-1.333-.264-1.869-.793a2.52 2.52 0 0 1-.78-1.922c0-.288.063-.6.19-.936l-3.997-2.931c-.773.8-1.703 1.2-2.79 1.2-1.089 0-2.019-.392-2.791-1.176-.773-.785-1.167-1.738-1.183-2.86 0-.143.024-.352.071-.624l-3.168-1.057a1.248 1.248 0 0 1-.852.337c-.378 0-.693-.129-.946-.385a1.315 1.315 0 0 1-.378-.96c0-.385.126-.698.378-.938.253-.24.568-.368.946-.384.316 0 .584.104.804.312.221.208.37.457.45.745l3.192 1.08a3.798 3.798 0 0 1 1.443-1.56 3.839 3.839 0 0 1 2.033-.577c.82 0 1.577.248 2.27.745l4.706-4.781c-.252-.48-.378-.921-.378-1.321 0-.737.26-1.37.78-1.898.52-.529 1.143-.793 1.869-.793.725 0 1.34.264 1.844.793.505.528.765 1.16.78 1.898a2.417 2.417 0 0 1-.78 1.873c-.536.513-1.159.777-1.868.793-.41 0-.844-.136-1.3-.408l-4.707 4.804c.49.705.733 1.474.733 2.307 0 .592-.134 1.177-.402 1.753l3.997 2.907c.52-.416 1.08-.624 1.679-.624Z"})]}),F3=D3,$3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M22.995 13.153c0 1.393-.29 2.722-.872 3.987a10.627 10.627 0 0 1-2.336 3.292c-.975.929-2.147 1.665-3.516 2.21-1.369.544-2.79.817-4.26.817-1.472 0-2.9-.273-4.287-.817-1.386-.545-2.55-1.281-3.49-2.21a12.338 12.338 0 0 1-2.362-3.291A8.11 8.11 0 0 1 1 13.152c0-1.634.385-3.164 1.155-4.589.77-1.425 1.848-2.634 3.234-3.627.411-.289.873-.4 1.386-.337.514.064.907.289 1.181.673.308.368.428.793.36 1.273-.07.48-.309.857-.72 1.13a6.993 6.993 0 0 0-2.155 2.426 6.383 6.383 0 0 0-.18 5.717 6.98 6.98 0 0 0 1.566 2.186c.65.609 1.428 1.097 2.335 1.466a7.498 7.498 0 0 0 2.85.552 7.31 7.31 0 0 0 2.823-.552 8.296 8.296 0 0 0 2.36-1.466 6.04 6.04 0 0 0 1.567-2.186c.359-.849.547-1.738.564-2.666 0-1.09-.256-2.107-.77-3.051-.513-.945-1.232-1.754-2.156-2.427a1.752 1.752 0 0 1-.719-1.129c-.085-.464.035-.889.36-1.273.29-.384.693-.609 1.206-.673.514-.064.967.048 1.36.337 1.386.977 2.464 2.186 3.234 3.627a9.599 9.599 0 0 1 1.155 4.589ZM13.833 2.846v8.6c0 .465-.18.866-.54 1.202-.359.336-.786.505-1.283.505-.496 0-.932-.169-1.309-.505-.376-.336-.556-.737-.539-1.201v-8.6c0-.465.18-.865.54-1.202.359-.336.795-.504 1.308-.504.514 0 .941.168 1.284.504.342.337.521.737.539 1.201Z"})]}),sp=$3,z3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M20.584 13.536v7.458c0 .28-.098.512-.294.699a1.062 1.062 0 0 1-.667.307H13.91v-5.978h-3.817V22H4.383a.848.848 0 0 1-.668-.307 1.162 1.162 0 0 1-.293-.699v-7.569l8.567-7.375 8.568 7.375c.018.018.027.055.027.111Zm3.31-1.09-.908 1.146a.543.543 0 0 1-.32.168h-.054a.59.59 0 0 1-.32-.084L11.989 4.682 1.687 13.676a.505.505 0 0 1-.347.084.544.544 0 0 1-.32-.168l-.935-1.145a.524.524 0 0 1-.08-.363.589.589 0 0 1 .16-.335l10.703-9.33c.32-.28.694-.419 1.121-.419.427 0 .81.14 1.148.419l3.63 3.156V2.56c0-.15.044-.27.133-.363a.458.458 0 0 1 .347-.14h2.856c.143 0 .258.046.347.14a.504.504 0 0 1 .134.363v6.34l3.256 2.85c.107.074.16.186.16.335 0 .149-.036.27-.107.363Z"})]}),U3=z3,B3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M1.898 22.555c-.072-.145-.096-1.37-.048-2.691l.048-2.402h5.261v5.26l-2.595.049c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.049-.145-.073-1.37-.049-2.691l.072-2.402h5.238v5.26l-2.571.049c-2.018.048-2.595 0-2.69-.216Zm7.759 0c-.048-.145-.072-1.37-.048-2.691l.072-2.402h5.237v5.26l-2.57.049c-1.994.048-2.595 0-2.691-.216Zm-15.52-7.76c-.071-.168-.095-1.37-.047-2.69l.048-2.403h5.261v5.261l-2.595.048c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.238v5.261l-2.571.048c-2.018.048-2.595 0-2.69-.216Zm7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.237v5.261l-2.57.048c-1.994.048-2.595 0-2.691-.216ZM1.897 7.011c-.071-.144-.095-1.345-.047-2.666l.048-2.402h5.261V7.18l-2.595.072c-1.994.048-2.594 0-2.666-.24Zm7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.238V7.18l-2.571.072c-2.018.048-2.595 0-2.69-.24Zm7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.237V7.18l-2.57.072c-1.994.048-2.595 0-2.691-.24Z"})]}),ip=B3,V3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12ZM7.123 7.667C8.276 5.958 9.745 5 12.013 5 14.425 5 17 6.941 17 9.5c0 2.113-1.377 2.932-2.418 3.552-.633.376-1.142.68-1.142 1.154v.169a.693.693 0 0 1-.682.703h-2.06a.693.693 0 0 1-.681-.703v-.287c0-1.768 1.269-2.5 2.266-3.075l.073-.042c.863-.499 1.392-.838 1.392-1.499 0-.874-1.082-1.454-1.956-1.454-1.112 0-1.64.53-2.351 1.449a.668.668 0 0 1-.945.121L7.27 8.63a.718.718 0 0 1-.147-.963ZM9.76 17.97c0-1.12.883-2.03 1.969-2.03 1.085 0 1.968.91 1.968 2.03 0 1.119-.883 2.029-1.968 2.029-1.086 0-1.969-.91-1.969-2.03Z",clipRule:"evenodd"})]}),H3=V3,q3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"m.5 21.257 7.46-8.216 4.052 2.403 4.052-2.403 7.46 8.216H.5Zm0-2.738V8.573l5.848 3.531L.5 18.52Zm0-12.084V3.048h23.023v3.387l-11.511 6.847L.5 6.435Zm17.176 5.67 5.848-3.532v9.946l-5.848-6.415Z"})]}),op=q3,Q3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M13.07 13.07V6.54h-2.14v6.53h2.14zm0 4.4v-2.2h-2.14v2.2h2.14zM24 12l-2.65 3.01.35 4.04-3.93.86-2.04 3.48L12 21.8l-3.73 1.6-2.04-3.42-3.93-.92.35-4.04L0 12l2.65-3.06-.35-3.99 3.93-.86L8.27.6 12 2.2 15.73.6l2.04 3.48 3.93.86L21.34 9z"})]}),W3=Q3,K3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M11.684 2C8.66 2 6.702 3.277 5.165 5.556A.958.958 0 0 0 5.36 6.84l1.634 1.278a.89.89 0 0 0 1.26-.162c.95-1.226 1.653-1.932 3.136-1.932 1.165 0 2.607.773 2.607 1.939 0 .88-.705 1.333-1.856 1.998-1.342.776-3.118 1.742-3.118 4.157v.382c0 .518.407.938.909.938h2.746c.502 0 .91-.42.91-.938v-.226c0-1.674 4.745-1.743 4.745-6.274 0-3.412-3.432-6-6.648-6Zm-.38 14.588c-1.446 0-2.624 1.214-2.624 2.706S9.858 22 11.305 22s2.624-1.214 2.624-2.706-1.177-2.706-2.624-2.706Z"})]}),Z3=K3,G3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.051 12.366a455.802 455.802 0 0 1-2.746-1.822A6.543 6.543 0 0 1 .74 9.067C.248 8.44.002 7.859.002 7.322a2.7 2.7 0 0 1 .141-.905c.098-.286.242-.542.424-.752C.935 5.222 1.462 5 2.15 5h19.7c.541-.016 1.071.195 1.507.6.424.4.636.882.636 1.446 0 .673-.218 1.317-.657 1.93a6.217 6.217 0 0 1-1.632 1.567c-3.358 2.226-5.447 3.61-6.267 4.156l-.242.167-.323.222a15.448 15.448 0 0 1-1.42.902 4.052 4.052 0 0 1-.77.345 2.215 2.215 0 0 1-.67.115h-.026a2.222 2.222 0 0 1-.67-.116 4.052 4.052 0 0 1-.77-.344c-.272-.154-.506-.29-.697-.415a30.199 30.199 0 0 1-.723-.487c-.288-.2-.477-.33-.565-.389-.81-.545-1.98-1.323-3.51-2.334Zm10.943 3.962c1.517-1.052 3.74-2.524 6.667-4.416.478-.306.927-.68 1.339-1.113v10.16c0 .564-.209 1.044-.63 1.446-.437.405-.97.614-1.512.594H2.149c-.545.02-1.08-.192-1.52-.601C.21 21.995 0 21.52 0 20.95V10.8c.416.437.871.81 1.356 1.113 3.232 2.099 5.45 3.571 6.656 4.416.512.358.926.637 1.243.837a7.7 7.7 0 0 0 1.265.614c.475.198.97.303 1.47.313h.026c.5-.01.995-.115 1.47-.313a7.647 7.647 0 0 0 1.265-.614c.32-.2.735-.479 1.243-.837Z",clipRule:"evenodd"})]}),X3=G3,Y3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("g",{clipPath:"url(#one-profile_svg__a)",children:f.jsx("path",{fill:"currentColor",d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm0 4.65a4.26 4.26 0 1 1 0 8.51 4.26 4.26 0 0 1 0-8.51Zm0 16.64a9.27 9.27 0 0 1-7.09-3.3 5.4 5.4 0 0 1 4.77-2.9c.11 0 .23.03.34.06.63.2 1.29.33 1.98.33.7 0 1.35-.13 1.98-.33.11-.03.23-.05.34-.05a5.4 5.4 0 0 1 4.77 2.89 9.27 9.27 0 0 1-7.09 3.3Z"})}),f.jsx("defs",{children:f.jsx("clipPath",{id:"one-profile_svg__a",children:f.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),J3=Y3,e5=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M1.27 11.552a7.745 7.745 0 0 1 0-4.156c.38-1.377 1.095-2.579 2.149-3.604a7.928 7.928 0 0 1 2.716-1.777c1.02-.4 2.074-.6 3.161-.6 1.07 0 2.115.2 3.136.6 1.02.4 1.926.993 2.716 1.777a7.904 7.904 0 0 1 1.902 2.86 7.812 7.812 0 0 1 .518 3.29 7.647 7.647 0 0 1-.889 3.171c.461.129.865.36 1.21.697l4.297 4.156c.576.56.864 1.241.864 2.042 0 .801-.288 1.482-.864 2.042-.576.56-1.276.841-2.099.841-.823 0-1.523-.28-2.099-.84l-4.272-4.18a2.423 2.423 0 0 1-.74-1.178 8.302 8.302 0 0 1-3.68.84c-1.087 0-2.14-.2-3.16-.6a8.102 8.102 0 0 1-2.717-1.753 7.854 7.854 0 0 1-2.149-3.628Zm2.495-2.066c0 1.49.535 2.755 1.605 3.796 1.086 1.04 2.395 1.561 3.926 1.561 1.515 0 2.807-.52 3.877-1.561 1.07-1.041 1.613-2.307 1.63-3.796.016-1.49-.527-2.755-1.63-3.796-1.087-1.057-2.379-1.585-3.877-1.585-1.515 0-2.823.528-3.926 1.585C4.3 6.731 3.765 7.996 3.765 9.486Z"})]}),t5=e5,n5=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M0 24.58V.53h24.05v4.28h-2.62V7.1h2.62v4.28h-2.62v2.35h2.62V18h-2.62v2.3h2.62v4.29H0zm4.64-6.85h12.12V14l-4.5-2.67q.9-.46 1.4-1.3t.53-1.85q0-1.4-1.01-2.43T10.7 4.72 8.25 5.75 7.24 8.18q0 1.03.53 1.85t1.4 1.3L4.63 14v3.73z"})]}),r5=n5,E0=x.forwardRef(({label:e,disabled:t=!1,checked:n=!1,indeterminate:r=!1,...s},i)=>{const o=x.useRef(null);x.useImperativeHandle(i,()=>({...o.current})),x.useEffect(()=>{o.current.indeterminate=r},[o,r]);const a=x.useId(),l={type:"checkbox",checked:n,disabled:t,ref:o,className:V(s.className,"form-check-input c-pointer"),id:a},u={...s,...l};return f.jsxs("div",{className:"form-check d-flex align-items-center gap-8",children:[f.jsx("input",{...u}),e&&f.jsx("label",{className:"form-check-label",htmlFor:u.id,children:e})]})});E0.displayName="Checkbox";const s5=E0,C0=x.createContext(null),Ni=()=>{const e=x.useContext(C0);if(!e)throw new Error("Cannot be rendered outside the Dropdown Component");return e},R0=x.createContext(null),Md=()=>{const e=x.useContext(R0);if(!e)throw new Error("Cannot be rendered outside the FormControl component");return e},k0=x.forwardRef(({noValidationIcon:e,placeholder:t,size:n="md",type:r="text",className:s,...i},o)=>{const{id:a,isRequired:l,isReadOnly:u,status:c}=Md(),d=V({"form-control":!u,"form-control-lg":n==="lg","form-control-sm":n==="sm","is-invalid":c==="invalid","is-valid":c==="valid","form-control-plaintext":u,"no-validation-icon":e},s);return f.jsx("input",{ref:o,id:a,className:d,type:r,placeholder:t,required:l,readOnly:u,...i})});k0.displayName="Input";const P0=k0,O0=({children:e})=>{const{status:t}=Md(),n=V("form-text",{"is-invalid":t==="invalid",valid:t==="valid"});return f.jsx("p",{className:n,children:f.jsx("em",{children:e})})};O0.displayName="Text";const i5=O0,N0=x.forwardRef(({leftIcon:e,optionalText:t="Optional",requiredText:n="*",children:r,className:s},i)=>{const{id:o,isOptional:a,isRequired:l}=Md(),u=V("form-label",{"has-icon":e},s),c=a&&!l,d=l&&!a;return x.useEffect(()=>{if(a&&l)throw new Error("Cannot be optional and required at the same time")},[a,l]),f.jsxs("label",{ref:i,htmlFor:o,className:u,children:[e,r,c&&f.jsxs("em",{className:"optional",children:["- ",t]}),d&&f.jsx("em",{className:"required",children:n})]})});N0.displayName="Label";const o5=N0,j0=x.forwardRef(({children:e,className:t,id:n,isOptional:r,isReadOnly:s,isRequired:i,status:o,...a},l)=>{const u=x.useMemo(()=>({id:n,isOptional:r,isRequired:i,isReadOnly:s,status:o}),[n,r,s,i,o]);return f.jsx(R0.Provider,{value:u,children:f.jsx("div",{ref:l,className:t,...a,children:e})})}),a5=Object.assign(j0,{Label:o5,Input:P0,Text:i5});j0.displayName="FormControl";const yc=a5,T0=({children:e,value:t,model:n,onChange:r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=Ni(),{onMenuItemKeyDown:a,onMenuItemMouseEnter:l}=s,u=x.useId(),c=n.includes(t),d={value:t,model:n,checked:c,readOnly:!0},h=V("dropdown-item c-pointer",{focus:o===u});return f.jsx("div",{id:u,ref:m=>i.current[u]=m,role:"menuitemcheckbox","aria-checked":c,onMouseUp:()=>r(t),onKeyDown:m=>a(m,()=>r(t)),onMouseEnter:l,tabIndex:t===n?0:-1,className:h,children:f.jsxs("div",{className:"d-flex gap-8 align-items-center justify-content-between position-relative",children:[e,f.jsx(s5,{...d})]})})};T0.displayName="Dropdown.CheckboxItem";const l5=T0,_0=({icon:e,onClick:t,children:n,...r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=Ni(),{onMenuItemKeyDown:a,onMenuItemMouseEnter:l}=s,u=()=>{t==null||t()},c=x.useId(),d=V("dropdown-item",{focus:o===c});return f.jsx("div",{id:c,role:"menuitem",ref:h=>i.current[c]=h,tabIndex:o===c?0:-1,className:d,"aria-current":o===c,onClick:u,onMouseEnter:l,onKeyDown:h=>a(h,t),...r,children:f.jsxs("div",{className:"d-flex gap-8 align-items-center",children:[e,n]})})};_0.displayName="Dropdown.Item";const u5=_0,I0=x.forwardRef(({children:e,block:t,...n},r)=>{const{menuProps:s,visible:i}=Ni(),{className:o,...a}=s,l={...a,...n},u=V({"w-100":t},o);return i?f.jsx("div",{ref:r,className:u,...l,children:e}):null});I0.displayName="Dropdown.Menu";const c5=I0,A0=x.forwardRef(({label:e,children:t},n)=>f.jsxs("div",{ref:n,role:"group",children:[f.jsx("span",{className:"small px-4",children:f.jsx("strong",{children:e})}),t]}));A0.displayName="Dropdown.MenuGroup";const d5=A0,L0=x.forwardRef(({model:e,icon:t,label:n=!1,disabled:r=!1,checked:s,...i},o)=>{const a=x.useId(),l={type:"radio",checked:s,disabled:r,ref:o,className:V(i.className,"form-check-input c-pointer",t&&"d-none"),id:a},u={...i,...l};return f.jsxs("div",{className:V("form-check d-flex align-items-center gap-8",t&&"ps-0"),children:[f.jsx("input",{...u}),t&&f.jsx("label",{htmlFor:u.id,className:V("c-pointer",e!==i.value&&"text-muted"),children:t}),!t&&n&&f.jsx("label",{className:"form-check-label",htmlFor:u.id,children:n})]})});L0.displayName="Radio";const f5=L0,M0=({children:e,value:t,model:n,onChange:r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=Ni(),{onMenuItemKeyDown:a,onMenuItemMouseEnter:l}=s,u=x.useId(),d={value:t,model:n,checked:t===n,readOnly:!0},h=V("dropdown-item c-pointer",{focus:o===u});return f.jsx("div",{id:u,ref:m=>i.current[u]=m,role:"menuitemradio","aria-checked":t===n,onMouseUp:()=>r(t),onKeyDown:m=>a(m,()=>r(t)),onMouseEnter:l,tabIndex:t===n?0:-1,className:h,children:f.jsxs("div",{className:"d-flex gap-8 align-items-center justify-content-between position-relative",children:[e,f.jsx(f5,{...d,className:"position-absolute start-0 end-0 top-0 bottom-0 opacity-0"})]})})};M0.displayName="Dropdown.RadioItem";const h5=M0,D0=()=>f.jsx("div",{role:"separator",className:"px-4 my-4",children:f.jsx("hr",{className:"m-0"})});D0.displayName="Dropdown.Separator";const p5=D0,F0=x.forwardRef(({label:e,icon:t,variant:n,disabled:r=!1,size:s,badgeContent:i,...o},a)=>{const{triggerProps:l,block:u}=Ni(),{className:c,...d}=l,h={...d,...o},m=V(s,n,{"w-100":u},c);return f.jsxs("button",{ref:a,className:m,disabled:r,...h,children:[t||null,e,i?f.jsx("span",{className:"badge text-bg-secondary rounded-pill",children:i}):f.jsx(R3,{width:16,height:16,className:"dropdown-toggle-caret"})]})});F0.displayName="Dropdown.Trigger";const m5=F0;function An(e){return $0(e)?(e.nodeName||"").toLowerCase():"#document"}function tt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ln(e){var t;return(t=($0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $0(e){return e instanceof Node||e instanceof tt(e).Node}function Je(e){return e instanceof Element||e instanceof tt(e).Element}function Bt(e){return e instanceof HTMLElement||e instanceof tt(e).HTMLElement}function ap(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof tt(e).ShadowRoot}function ji(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=vt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function g5(e){return["table","td","th"].includes(An(e))}function Dd(e){const t=Fd(),n=vt(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function v5(e){let t=Wr(e);for(;Bt(t)&&!Za(t);){if(Dd(t))return t;t=Wr(t)}return null}function Fd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Za(e){return["html","body","#document"].includes(An(e))}function vt(e){return tt(e).getComputedStyle(e)}function Ga(e){return Je(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Wr(e){if(An(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ap(e)&&e.host||ln(e);return ap(t)?t.host:t}function z0(e){const t=Wr(e);return Za(t)?e.ownerDocument?e.ownerDocument.body:e.body:Bt(t)&&ji(t)?t:z0(t)}function ui(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=z0(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=tt(s);return i?t.concat(o,o.visualViewport||[],ji(s)?s:[],o.frameElement&&n?ui(o.frameElement):[]):t.concat(s,ui(s,[],n))}const ci=Math.min,ct=Math.max,ma=Math.round,io=Math.floor,Ln=e=>({x:e,y:e}),y5={left:"right",right:"left",bottom:"top",top:"bottom"},w5={start:"end",end:"start"};function Xa(e,t){return typeof e=="function"?e(t):e}function sr(e){return e.split("-")[0]}function Ti(e){return e.split("-")[1]}function x5(e){return e==="x"?"y":"x"}function U0(e){return e==="y"?"height":"width"}function Ya(e){return["top","bottom"].includes(sr(e))?"y":"x"}function B0(e){return x5(Ya(e))}function S5(e,t,n){n===void 0&&(n=!1);const r=Ti(e),s=B0(e),i=U0(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=ga(o)),[o,ga(o)]}function b5(e){const t=ga(e);return[wc(e),t,wc(t)]}function wc(e){return e.replace(/start|end/g,t=>w5[t])}function E5(e,t,n){const r=["left","right"],s=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?i:o;default:return[]}}function C5(e,t,n,r){const s=Ti(e);let i=E5(sr(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(wc)))),i}function ga(e){return e.replace(/left|right|bottom|top/g,t=>y5[t])}function R5(e){return{top:0,right:0,bottom:0,left:0,...e}}function k5(e){return typeof e!="number"?R5(e):{top:e,right:e,bottom:e,left:e}}function va(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function lp(e,t,n){let{reference:r,floating:s}=e;const i=Ya(t),o=B0(t),a=U0(o),l=sr(t),u=i==="y",c=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,h=r[a]/2-s[a]/2;let m;switch(l){case"top":m={x:c,y:r.y-s.height};break;case"bottom":m={x:c,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-s.width,y:d};break;default:m={x:r.x,y:r.y}}switch(Ti(t)){case"start":m[o]-=h*(n&&u?-1:1);break;case"end":m[o]+=h*(n&&u?-1:1);break}return m}const P5=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:c,y:d}=lp(u,r,l),h=r,m={},g=0;for(let y=0;y<a.length;y++){const{name:S,fn:p}=a[y],{x:v,y:w,data:b,reset:C}=await p({x:c,y:d,initialPlacement:r,placement:h,strategy:s,middlewareData:m,rects:u,platform:o,elements:{reference:e,floating:t}});if(c=v??c,d=w??d,m={...m,[S]:{...m[S],...b}},C&&g<=50){g++,typeof C=="object"&&(C.placement&&(h=C.placement),C.rects&&(u=C.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):C.rects),{x:c,y:d}=lp(u,h,l)),y=-1;continue}}return{x:c,y:d,placement:h,strategy:s,middlewareData:m}};async function V0(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:i,rects:o,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:m=0}=Xa(t,e),g=k5(m),S=a[h?d==="floating"?"reference":"floating":d],p=va(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(S)))==null||n?S:S.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),v=d==="floating"?{...o.floating,x:r,y:s}:o.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),b=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},C=va(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:w,strategy:l}):v);return{top:(p.top-C.top+g.top)/b.y,bottom:(C.bottom-p.bottom+g.bottom)/b.y,left:(p.left-C.left+g.left)/b.x,right:(C.right-p.right+g.right)/b.x}}const O5=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...S}=Xa(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const p=sr(s),v=sr(a)===a,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),b=h||(v||!y?[ga(a)]:b5(a));!h&&g!=="none"&&b.push(...C5(a,y,g,w));const C=[a,...b],R=await V0(t,S),k=[];let P=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&k.push(R[p]),d){const I=S5(s,o,w);k.push(R[I[0]],R[I[1]])}if(P=[...P,{placement:s,overflows:k}],!k.every(I=>I<=0)){var _,F;const I=(((_=i.flip)==null?void 0:_.index)||0)+1,U=C[I];if(U)return{data:{index:I,overflows:P},reset:{placement:U}};let $=(F=P.filter(E=>E.overflows[0]<=0).sort((E,O)=>E.overflows[1]-O.overflows[1])[0])==null?void 0:F.placement;if(!$)switch(m){case"bestFit":{var A;const E=(A=P.map(O=>[O.placement,O.overflows.filter(L=>L>0).reduce((L,N)=>L+N,0)]).sort((O,L)=>O[1]-L[1])[0])==null?void 0:A[0];E&&($=E);break}case"initialPlacement":$=a;break}if(s!==$)return{reset:{placement:$}}}return{}}}};async function N5(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=sr(n),a=Ti(n),l=Ya(n)==="y",u=["left","top"].includes(o)?-1:1,c=i&&l?-1:1,d=Xa(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof g=="number"&&(m=a==="end"?g*-1:g),l?{x:m*c,y:h*u}:{x:h*u,y:m*c}}const j5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,s=await N5(t,e);return{x:n+s.x,y:r+s.y,data:s}}}},T5=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:s,elements:i}=t,{apply:o=()=>{},...a}=Xa(e,t),l=await V0(t,a),u=sr(n),c=Ti(n),d=Ya(n)==="y",{width:h,height:m}=r.floating;let g,y;u==="top"||u==="bottom"?(g=u,y=c===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(y=u,g=c==="end"?"top":"bottom");const S=m-l[g],p=h-l[y],v=!t.middlewareData.shift;let w=S,b=p;if(d){const R=h-l.left-l.right;b=c||v?ci(p,R):R}else{const R=m-l.top-l.bottom;w=c||v?ci(S,R):R}if(v&&!c){const R=ct(l.left,0),k=ct(l.right,0),P=ct(l.top,0),_=ct(l.bottom,0);d?b=h-2*(R!==0||k!==0?R+k:ct(l.left,l.right)):w=m-2*(P!==0||_!==0?P+_:ct(l.top,l.bottom))}await o({...t,availableWidth:b,availableHeight:w});const C=await s.getDimensions(i.floating);return h!==C.width||m!==C.height?{reset:{rects:!0}}:{}}}};function H0(e){const t=vt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Bt(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=ma(n)!==i||ma(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function $d(e){return Je(e)?e:e.contextElement}function Mr(e){const t=$d(e);if(!Bt(t))return Ln(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=H0(t);let o=(i?ma(n.width):n.width)/r,a=(i?ma(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const _5=Ln(0);function q0(e){const t=tt(e);return!Fd()||!t.visualViewport?_5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function I5(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==tt(e)?!1:t}function ir(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=$d(e);let o=Ln(1);t&&(r?Je(r)&&(o=Mr(r)):o=Mr(e));const a=I5(i,n,r)?q0(i):Ln(0);let l=(s.left+a.x)/o.x,u=(s.top+a.y)/o.y,c=s.width/o.x,d=s.height/o.y;if(i){const h=tt(i),m=r&&Je(r)?tt(r):r;let g=h.frameElement;for(;g&&r&&m!==h;){const y=Mr(g),S=g.getBoundingClientRect(),p=vt(g),v=S.left+(g.clientLeft+parseFloat(p.paddingLeft))*y.x,w=S.top+(g.clientTop+parseFloat(p.paddingTop))*y.y;l*=y.x,u*=y.y,c*=y.x,d*=y.y,l+=v,u+=w,g=tt(g).frameElement}}return va({width:c,height:d,x:l,y:u})}function A5(e){let{rect:t,offsetParent:n,strategy:r}=e;const s=Bt(n),i=ln(n);if(n===i)return t;let o={scrollLeft:0,scrollTop:0},a=Ln(1);const l=Ln(0);if((s||!s&&r!=="fixed")&&((An(n)!=="body"||ji(i))&&(o=Ga(n)),Bt(n))){const u=ir(n);a=Mr(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-o.scrollLeft*a.x+l.x,y:t.y*a.y-o.scrollTop*a.y+l.y}}function L5(e){return Array.from(e.getClientRects())}function Q0(e){return ir(ln(e)).left+Ga(e).scrollLeft}function M5(e){const t=ln(e),n=Ga(e),r=e.ownerDocument.body,s=ct(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ct(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Q0(e);const a=-n.scrollTop;return vt(r).direction==="rtl"&&(o+=ct(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function D5(e,t){const n=tt(e),r=ln(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const u=Fd();(!u||u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}function F5(e,t){const n=ir(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=Bt(e)?Mr(e):Ln(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,l=s*i.x,u=r*i.y;return{width:o,height:a,x:l,y:u}}function up(e,t,n){let r;if(t==="viewport")r=D5(e,n);else if(t==="document")r=M5(ln(e));else if(Je(t))r=F5(t,n);else{const s=q0(e);r={...t,x:t.x-s.x,y:t.y-s.y}}return va(r)}function W0(e,t){const n=Wr(e);return n===t||!Je(n)||Za(n)?!1:vt(n).position==="fixed"||W0(n,t)}function $5(e,t){const n=t.get(e);if(n)return n;let r=ui(e,[],!1).filter(a=>Je(a)&&An(a)!=="body"),s=null;const i=vt(e).position==="fixed";let o=i?Wr(e):e;for(;Je(o)&&!Za(o);){const a=vt(o),l=Dd(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||ji(o)&&!l&&W0(e,o))?r=r.filter(c=>c!==o):s=a,o=Wr(o)}return t.set(e,r),r}function z5(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?$5(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((u,c)=>{const d=up(t,c,s);return u.top=ct(d.top,u.top),u.right=ci(d.right,u.right),u.bottom=ci(d.bottom,u.bottom),u.left=ct(d.left,u.left),u},up(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function U5(e){return H0(e)}function B5(e,t,n){const r=Bt(t),s=ln(t),i=n==="fixed",o=ir(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Ln(0);if(r||!r&&!i)if((An(t)!=="body"||ji(s))&&(a=Ga(t)),r){const u=ir(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else s&&(l.x=Q0(s));return{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function cp(e,t){return!Bt(e)||vt(e).position==="fixed"?null:t?t(e):e.offsetParent}function K0(e,t){const n=tt(e);if(!Bt(e))return n;let r=cp(e,t);for(;r&&g5(r)&&vt(r).position==="static";)r=cp(r,t);return r&&(An(r)==="html"||An(r)==="body"&&vt(r).position==="static"&&!Dd(r))?n:r||v5(e)||n}const V5=async function(e){let{reference:t,floating:n,strategy:r}=e;const s=this.getOffsetParent||K0,i=this.getDimensions;return{reference:B5(t,await s(n),r),floating:{x:0,y:0,...await i(n)}}};function H5(e){return vt(e).direction==="rtl"}const q5={convertOffsetParentRelativeRectToViewportRelativeRect:A5,getDocumentElement:ln,getClippingRect:z5,getOffsetParent:K0,getElementRects:V5,getClientRects:L5,getDimensions:U5,getScale:Mr,isElement:Je,isRTL:H5};function Q5(e,t){let n=null,r;const s=ln(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const{left:u,top:c,width:d,height:h}=e.getBoundingClientRect();if(a||t(),!d||!h)return;const m=io(c),g=io(s.clientWidth-(u+d)),y=io(s.clientHeight-(c+h)),S=io(u),v={rootMargin:-m+"px "+-g+"px "+-y+"px "+-S+"px",threshold:ct(0,ci(1,l))||1};let w=!0;function b(C){const R=C[0].intersectionRatio;if(R!==l){if(!w)return o();R?o(!1,R):r=setTimeout(()=>{o(!1,1e-7)},100)}w=!1}try{n=new IntersectionObserver(b,{...v,root:s.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),i}function W5(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=$d(e),c=s||i?[...u?ui(u):[],...ui(t)]:[];c.forEach(p=>{s&&p.addEventListener("scroll",n,{passive:!0}),i&&p.addEventListener("resize",n)});const d=u&&a?Q5(u,n):null;let h=-1,m=null;o&&(m=new ResizeObserver(p=>{let[v]=p;v&&v.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{m&&m.observe(t)})),n()}),u&&!l&&m.observe(u),m.observe(t));let g,y=l?ir(e):null;l&&S();function S(){const p=ir(e);y&&(p.x!==y.x||p.y!==y.y||p.width!==y.width||p.height!==y.height)&&n(),y=p,g=requestAnimationFrame(S)}return n(),()=>{c.forEach(p=>{s&&p.removeEventListener("scroll",n),i&&p.removeEventListener("resize",n)}),d&&d(),m&&m.disconnect(),m=null,l&&cancelAnimationFrame(g)}}const K5=(e,t,n)=>{const r=new Map,s={platform:q5,...n},i={...s.platform,_c:r};return P5(e,t,{...s,platform:i})};var jo=typeof document<"u"?x.useLayoutEffect:x.useEffect;function ya(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!ya(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!ya(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Z0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function dp(e,t){const n=Z0(e);return Math.round(t*n)/n}function fp(e){const t=x.useRef(e);return jo(()=>{t.current=e}),t}function Z5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,d]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=x.useState(r);ya(h,r)||m(r);const[g,y]=x.useState(null),[S,p]=x.useState(null),v=x.useCallback(O=>{O!=R.current&&(R.current=O,y(O))},[y]),w=x.useCallback(O=>{O!==k.current&&(k.current=O,p(O))},[p]),b=i||g,C=o||S,R=x.useRef(null),k=x.useRef(null),P=x.useRef(c),_=fp(l),F=fp(s),A=x.useCallback(()=>{if(!R.current||!k.current)return;const O={placement:t,strategy:n,middleware:h};F.current&&(O.platform=F.current),K5(R.current,k.current,O).then(L=>{const N={...L,isPositioned:!0};I.current&&!ya(P.current,N)&&(P.current=N,Pi.flushSync(()=>{d(N)}))})},[h,t,n,F]);jo(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,d(O=>({...O,isPositioned:!1})))},[u]);const I=x.useRef(!1);jo(()=>(I.current=!0,()=>{I.current=!1}),[]),jo(()=>{if(b&&(R.current=b),C&&(k.current=C),b&&C){if(_.current)return _.current(b,C,A);A()}},[b,C,A,_]);const U=x.useMemo(()=>({reference:R,floating:k,setReference:v,setFloating:w}),[v,w]),$=x.useMemo(()=>({reference:b,floating:C}),[b,C]),E=x.useMemo(()=>{const O={position:n,left:0,top:0};if(!$.floating)return O;const L=dp($.floating,c.x),N=dp($.floating,c.y);return a?{...O,transform:"translate("+L+"px, "+N+"px)",...Z0($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:N}},[n,a,$.floating,c.x,c.y]);return x.useMemo(()=>({...c,update:A,refs:U,elements:$,floatingStyles:E}),[c,A,U,$,E])}var G0=typeof document<"u"?x.useLayoutEffect:x.useEffect;let Zl=!1,G5=0;const hp=()=>"floating-ui-"+G5++;function X5(){const[e,t]=x.useState(()=>Zl?hp():void 0);return G0(()=>{e==null&&t(hp())},[]),x.useEffect(()=>{Zl||(Zl=!0)},[]),e}const Y5=mm["useId".toString()],J5=Y5||X5;function eb(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(s=>s(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(s=>s!==n))||[])}}}const tb=x.createContext(null),nb=()=>x.useContext(tb),rb=mm["useInsertionEffect".toString()],sb=rb||(e=>e());function ib(e){const t=x.useRef(()=>{});return sb(()=>{t.current=e}),x.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return t.current==null?void 0:t.current(...r)},[])}function ob(e){var t;e===void 0&&(e={});const{open:n=!1,onOpenChange:r,nodeId:s}=e,[i,o]=x.useState(null),a=((t=e.elements)==null?void 0:t.reference)||i,l=Z5(e),u=nb(),c=ib((b,C)=>{b&&(h.current.openEvent=C),r==null||r(b,C)}),d=x.useRef(null),h=x.useRef({}),m=x.useState(()=>eb())[0],g=J5(),y=x.useCallback(b=>{const C=Je(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),contextElement:b}:b;l.refs.setReference(C)},[l.refs]),S=x.useCallback(b=>{(Je(b)||b===null)&&(d.current=b,o(b)),(Je(l.refs.reference.current)||l.refs.reference.current===null||b!==null&&!Je(b))&&l.refs.setReference(b)},[l.refs]),p=x.useMemo(()=>({...l.refs,setReference:S,setPositionReference:y,domReference:d}),[l.refs,S,y]),v=x.useMemo(()=>({...l.elements,domReference:a}),[l.elements,a]),w=x.useMemo(()=>({...l,refs:p,elements:v,dataRef:h,nodeId:s,floatingId:g,events:m,open:n,onOpenChange:c}),[l,s,g,m,n,c,p,v]);return G0(()=>{const b=u==null?void 0:u.nodesRef.current.find(C=>C.id===s);b&&(b.context=w)}),x.useMemo(()=>({...l,context:w,refs:p,elements:v}),[l,p,v,w])}const ab=e=>{const t=x.useId(),[n,r]=x.useState(!1),[s,i]=x.useState(-1),[o,a]=x.useState(null),{refs:l,floatingStyles:u}=ob({placement:e,open:n,onOpenChange:r,whileElementsMounted:W5,middleware:[j5(4),T5({apply({rects:A,elements:I}){Object.assign(I.floating.style,{minWidth:`${A.reference.width}px`})}}),O5({padding:0})]}),c=x.useRef(null),d=x.useRef(null),h=x.useRef({});x.useEffect(()=>{n?c.current&&(c.current.focus(),i(0)):(i(-1),h.current={})},[n]),x.useEffect(()=>{if(s!==-1){const A=Object.values(h.current)[s];if(A){const I=A.getAttribute("id");a(I),A.focus()}}},[s]);const m=()=>{const I=Object.values(h.current).length;i(U=>(U+1)%I)},g=()=>{const I=Object.values(h.current).length;i(U=>(U-1+I)%I)},y=()=>{i(0)},S=()=>{const I=Object.values(h.current).length;i(I-1)},p=x.useCallback(()=>{r(!0)},[]),v=x.useCallback(()=>{d.current&&(d.current.focus(),r(!1))},[]),w=(A,I)=>{A&&(I.stopPropagation(),I.preventDefault())},b=x.useCallback(A=>{let I=!1;switch(A.code){case" ":case"Space":case"Enter":case"ArrowDown":case"Down":p(),I=!0;break;case"Esc":case"Escape":v(),I=!0;break;case"Up":case"ArrowUp":p(),I=!0;break}w(I,A)},[v,p]),C=A=>{const U=Object.values(h.current).findIndex($=>$.id===A.currentTarget.getAttribute("id"));i(U)},R=x.useCallback((A,I)=>{let U=!1;if(A.shiftKey)A.key==="Tab"&&(v(),U=!0);else{switch(A.code){case"Escape":v();break;case" ":case"Space":case"Enter":s!==-1&&(Object.values(h.current)[s].getAttribute("role")==="menuitem"&&d.current&&(d.current.focus(),r(!1)),I==null||I()),U=!0;break;case"ArrowDown":case"Down":m(),U=!0;break;case"ArrowUp":case"Up":g(),U=!0;break;case"Home":y(),U=!0;break;case"End":S(),U=!0;break}w(U,A)}},[s,v]),k=x.useCallback(A=>{r(n!==!0),A.stopPropagation(),A.preventDefault()},[n]),P=x.useCallback(()=>{v()},[v]);function _(A,...I){I.forEach(U=>{typeof U=="function"?U(A):U!=null&&(U.current=A)})}function F(...A){return I=>{_(I,...A)}}return{isFocused:o,visible:n,itemRefs:h,triggerRef:d,menuRef:c,triggerProps:{ref:F(d,l.setReference),id:`dropdown-toggle-${t}`,"aria-haspopup":"menu","aria-controls":`dropdown-${t}`,"aria-expanded":!!n,className:`dropdown-toggle ${n?"selected":""}`,onClick:k,onKeyDown:b,"aria-activedescendant":o},menuProps:{ref:F(c,l.setFloating),className:"dropdown-menu bg-white shadow rounded-4 p-8","aria-labelledby":`dropdown-toggle-${t}`,style:{...u}},itemProps:{onMenuItemMouseEnter:C,onMenuItemClick:P,onMenuItemKeyDown:R},setVisible:r}},lb=ab,X0=({children:e,block:t,overflow:n=!0,placement:r="bottom-start"})=>{const{visible:s,isFocused:i,triggerProps:o,menuProps:a,itemProps:l,itemRefs:u,setVisible:c}=lb(r),d=t0(()=>c(!1)),h=x.useMemo(()=>({visible:s,isFocused:i,triggerProps:o,menuProps:a,itemProps:l,itemRefs:u,block:t,setVisible:c}),[s,i,o,a,l,u,t,c]),m=V("dropdown",{"w-100":t,overflow:n});return f.jsx(C0.Provider,{value:h,children:f.jsx("div",{ref:d,className:m,children:typeof e=="function"?e(o,u):e})})};X0.displayName="Dropdown";const ub=Object.assign(X0,{Trigger:m5,Menu:c5,Item:u5,Separator:p5,CheckboxItem:l5,RadioItem:h5,MenuGroup:d5}),pr=ub,Ms=({children:e,className:t,...n})=>{const r=V("grid",t);return f.jsx("div",{className:r,...n,children:e})},Y0=({sm:e,md:t,lg:n,xl:r,children:s,className:i,as:o,...a})=>{const l=o||"div",u=V({[`g-col-${e}`]:e,[t?`g-col-md-${t}`:""]:t,[n?`g-col-lg-${n}`:""]:n,[r?`g-col-xl-${r}`:""]:r},i);return f.jsx(l,{className:u,...a,children:s})};Ms.displayName="Grid";Y0.displayName="Grid.Col";Ms.Col=Y0;const J0=x.forwardRef(({position:e=!0},t)=>{const[n]=Qa(),r=`${n}/loading/screen-loading.gif`,s=V("loading-screen top-0 end-0 start-0 bottom-0 d-grid justify-content-center align-items-center z-2000",{"position-fixed":!e,"position-static":e});return f.jsxs(f.Fragment,{children:[f.jsx("div",{ref:t,className:s,children:f.jsx("div",{className:"bg-white rounded-circle mx-auto",children:f.jsx("img",{src:r,alt:"loading"})})}),!e&&f.jsx("div",{className:"modal-backdrop fade show"})]})});J0.displayName="LoadingScreen";const Ve=J0,ev=x.forwardRef(({src:e,is1d:t,translate:n="Retour accueil"},r)=>{const s=V("navbar-brand d-none d-md-block"),i=`logo ${t?"ONE":"NEO"}`;return f.jsx("a",{ref:r,className:s,href:"/timeline/timeline","aria-label":n,children:f.jsx("img",{className:"logo",src:e,alt:i,width:"300",height:"52"})})});ev.displayName="Logo";const pp=ev;var cb=Object.defineProperty,db=(e,t)=>{for(var n in t)cb(e,n,{get:t[n],enumerable:!0})},Nt={};db(Nt,{assign:()=>pb,colors:()=>Tn,createStringInterpolator:()=>Qd,skipAnimation:()=>av,to:()=>ov,willAdvance:()=>Wd});var zd=Ii(),H=e=>_i(e,zd),Ud=Ii();H.write=e=>_i(e,Ud);var Ja=Ii();H.onStart=e=>_i(e,Ja);var Bd=Ii();H.onFrame=e=>_i(e,Bd);var Vd=Ii();H.onFinish=e=>_i(e,Vd);var Dr=[];H.setTimeout=(e,t)=>{const n=H.now()+t,r=()=>{const i=Dr.findIndex(o=>o.cancel==r);~i&&Dr.splice(i,1),Sn-=~i?1:0},s={time:n,handler:e,cancel:r};return Dr.splice(tv(n),0,s),Sn+=1,nv(),s};var tv=e=>~(~Dr.findIndex(t=>t.time>e)||~Dr.length);H.cancel=e=>{Ja.delete(e),Bd.delete(e),Vd.delete(e),zd.delete(e),Ud.delete(e)};H.sync=e=>{xc=!0,H.batchedUpdates(e),xc=!1};H.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...s){t=s,H.onStart(n)}return r.handler=e,r.cancel=()=>{Ja.delete(n),t=null},r};var Hd=typeof window<"u"?window.requestAnimationFrame:()=>{};H.use=e=>Hd=e;H.now=typeof performance<"u"?()=>performance.now():Date.now;H.batchedUpdates=e=>e();H.catch=console.error;H.frameLoop="always";H.advance=()=>{H.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):sv()};var xn=-1,Sn=0,xc=!1;function _i(e,t){xc?(t.delete(e),e(0)):(t.add(e),nv())}function nv(){xn<0&&(xn=0,H.frameLoop!=="demand"&&Hd(rv))}function fb(){xn=-1}function rv(){~xn&&(Hd(rv),H.batchedUpdates(sv))}function sv(){const e=xn;xn=H.now();const t=tv(xn);if(t&&(iv(Dr.splice(0,t),n=>n.handler()),Sn-=t),!Sn){fb();return}Ja.flush(),zd.flush(e?Math.min(64,xn-e):16.667),Bd.flush(),Ud.flush(),Vd.flush()}function Ii(){let e=new Set,t=e;return{add(n){Sn+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Sn-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Sn-=t.size,iv(t,r=>r(n)&&e.add(r)),Sn+=e.size,t=e)}}}function iv(e,t){e.forEach(n=>{try{t(n)}catch(r){H.catch(r)}})}function Sc(){}var hb=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),j={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Kt(e,t){if(j.arr(e)){if(!j.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var B=(e,t)=>e.forEach(t);function Vt(e,t,n){if(j.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var Ie=e=>j.und(e)?[]:j.arr(e)?e:[e];function Ds(e,t){if(e.size){const n=Array.from(e);e.clear(),B(n,t)}}var Es=(e,...t)=>Ds(e,n=>n(...t)),qd=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Qd,ov,Tn=null,av=!1,Wd=Sc,pb=e=>{e.to&&(ov=e.to),e.now&&(H.now=e.now),e.colors!==void 0&&(Tn=e.colors),e.skipAnimation!=null&&(av=e.skipAnimation),e.createStringInterpolator&&(Qd=e.createStringInterpolator),e.requestAnimationFrame&&H.use(e.requestAnimationFrame),e.batchedUpdates&&(H.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Wd=e.willAdvance),e.frameLoop&&(H.frameLoop=e.frameLoop)},Fs=new Set,ft=[],Gl=[],wa=0,el={get idle(){return!Fs.size&&!ft.length},start(e){wa>e.priority?(Fs.add(e),H.onStart(mb)):(lv(e),H(bc))},advance:bc,sort(e){if(wa)H.onFrame(()=>el.sort(e));else{const t=ft.indexOf(e);~t&&(ft.splice(t,1),uv(e))}},clear(){ft=[],Fs.clear()}};function mb(){Fs.forEach(lv),Fs.clear(),H(bc)}function lv(e){ft.includes(e)||uv(e)}function uv(e){ft.splice(gb(ft,t=>t.priority>e.priority),0,e)}function bc(e){const t=Gl;for(let n=0;n<ft.length;n++){const r=ft[n];wa=r.priority,r.idle||(Wd(r),r.advance(e),r.idle||t.push(r))}return wa=0,Gl=ft,Gl.length=0,ft=t,ft.length>0}function gb(e,t){const n=e.findIndex(t);return n<0?e.length:n}var vb=(e,t,n)=>Math.min(Math.max(n,e),t),yb={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Rt="[-+]?\\d*\\.?\\d+",xa=Rt+"%";function tl(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var wb=new RegExp("rgb"+tl(Rt,Rt,Rt)),xb=new RegExp("rgba"+tl(Rt,Rt,Rt,Rt)),Sb=new RegExp("hsl"+tl(Rt,xa,xa)),bb=new RegExp("hsla"+tl(Rt,xa,xa,Rt)),Eb=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Cb=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Rb=/^#([0-9a-fA-F]{6})$/,kb=/^#([0-9a-fA-F]{8})$/;function Pb(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Rb.exec(e))?parseInt(t[1]+"ff",16)>>>0:Tn&&Tn[e]!==void 0?Tn[e]:(t=wb.exec(e))?(mr(t[1])<<24|mr(t[2])<<16|mr(t[3])<<8|255)>>>0:(t=xb.exec(e))?(mr(t[1])<<24|mr(t[2])<<16|mr(t[3])<<8|vp(t[4]))>>>0:(t=Eb.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=kb.exec(e))?parseInt(t[1],16)>>>0:(t=Cb.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Sb.exec(e))?(mp(gp(t[1]),oo(t[2]),oo(t[3]))|255)>>>0:(t=bb.exec(e))?(mp(gp(t[1]),oo(t[2]),oo(t[3]))|vp(t[4]))>>>0:null}function Xl(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function mp(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r,i=Xl(s,r,e+1/3),o=Xl(s,r,e),a=Xl(s,r,e-1/3);return Math.round(i*255)<<24|Math.round(o*255)<<16|Math.round(a*255)<<8}function mr(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function gp(e){return(parseFloat(e)%360+360)%360/360}function vp(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function oo(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function yp(e){let t=Pb(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,s=(t&65280)>>>8,i=(t&255)/255;return`rgba(${n}, ${r}, ${s}, ${i})`}var di=(e,t,n)=>{if(j.fun(e))return e;if(j.arr(e))return di({range:e,output:t,extrapolate:n});if(j.str(e.output[0]))return Qd(e);const r=e,s=r.output,i=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(u=>u);return u=>{const c=Nb(u,i);return Ob(u,i[c],i[c+1],s[c],s[c+1],l,o,a,r.map)}};function Ob(e,t,n,r,s,i,o,a,l){let u=l?l(e):e;if(u<t){if(o==="identity")return u;o==="clamp"&&(u=t)}if(u>n){if(a==="identity")return u;a==="clamp"&&(u=n)}return r===s?r:t===n?e<=t?r:s:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=i(u),r===-1/0?u=-u:s===1/0?u=u+r:u=u*(s-r)+r,u)}function Nb(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var jb=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,s=t==="end"?Math.floor(r):Math.ceil(r);return vb(0,1,s/e)},Sa=1.70158,ao=Sa*1.525,wp=Sa+1,xp=2*Math.PI/3,Sp=2*Math.PI/4.5,lo=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,Tb={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>wp*e*e*e-Sa*e*e,easeOutBack:e=>1+wp*Math.pow(e-1,3)+Sa*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((ao+1)*2*e-ao)/2:(Math.pow(2*e-2,2)*((ao+1)*(e*2-2)+ao)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*xp),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*xp)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Sp))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Sp)/2+1,easeInBounce:e=>1-lo(1-e),easeOutBounce:lo,easeInOutBounce:e=>e<.5?(1-lo(1-2*e))/2:(1+lo(2*e-1))/2,steps:jb},fi=Symbol.for("FluidValue.get"),Kr=Symbol.for("FluidValue.observers"),dt=e=>!!(e&&e[fi]),ze=e=>e&&e[fi]?e[fi]():e,bp=e=>e[Kr]||null;function _b(e,t){e.eventObserved?e.eventObserved(t):e(t)}function hi(e,t){const n=e[Kr];n&&n.forEach(r=>{_b(r,t)})}var cv=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Ib(this,e)}},Ib=(e,t)=>dv(e,fi,t);function es(e,t){if(e[fi]){let n=e[Kr];n||dv(e,Kr,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function pi(e,t){const n=e[Kr];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Kr]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var dv=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),To=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ab=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Ep=new RegExp(`(${To.source})(%|[a-z]+)`,"i"),Lb=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,nl=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,fv=e=>{const[t,n]=Mb(e);if(!t||qd())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const s=window.getComputedStyle(document.documentElement).getPropertyValue(n);return s||e}else{if(n&&nl.test(n))return fv(n);if(n)return n}return e},Mb=e=>{const t=nl.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Yl,Db=(e,t,n,r,s)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${s})`,hv=e=>{Yl||(Yl=Tn?new RegExp(`(${Object.keys(Tn).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>ze(i).replace(nl,fv).replace(Ab,yp).replace(Yl,yp)),n=t.map(i=>i.match(To).map(Number)),s=n[0].map((i,o)=>n.map(a=>{if(!(o in a))throw Error('The arity of each "output" value must be equal');return a[o]})).map(i=>di({...e,output:i}));return i=>{var l;const o=!Ep.test(t[0])&&((l=t.find(u=>Ep.test(u)))==null?void 0:l.replace(To,""));let a=0;return t[0].replace(To,()=>`${s[a++](i)}${o||""}`).replace(Lb,Db)}},Kd="react-spring: ",pv=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${Kd}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},Fb=pv(console.warn);function $b(){Fb(`${Kd}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var zb=pv(console.warn);function Ub(){zb(`${Kd}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function rl(e){return j.str(e)&&(e[0]=="#"||/\d/.test(e)||!qd()&&nl.test(e)||e in(Tn||{}))}var Gn=qd()?x.useEffect:x.useLayoutEffect,Bb=()=>{const e=x.useRef(!1);return Gn(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Zd(){const e=x.useState()[1],t=Bb();return()=>{t.current&&e(Math.random())}}function Vb(e,t){const[n]=x.useState(()=>({inputs:t,result:e()})),r=x.useRef(),s=r.current;let i=s;return i?t&&i.inputs&&Hb(t,i.inputs)||(i={inputs:t,result:e()}):i=n,x.useEffect(()=>{r.current=i,s==n&&(n.inputs=n.result=void 0)},[i]),i.result}function Hb(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Gd=e=>x.useEffect(e,qb),qb=[];function Ec(e){const t=x.useRef();return x.useEffect(()=>{t.current=e}),t.current}var mi=Symbol.for("Animated:node"),Qb=e=>!!e&&e[mi]===e,Dt=e=>e&&e[mi],Xd=(e,t)=>hb(e,mi,t),sl=e=>e&&e[mi]&&e[mi].getPayload(),mv=class{constructor(){Xd(this,this)}getPayload(){return this.payload||[]}},Ai=class extends mv{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,j.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Ai(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return j.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,j.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},gi=class extends Ai{constructor(e){super(0),this._string=null,this._toString=di({output:[e,e]})}static create(e){return new gi(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(j.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=di({output:[this.getValue(),e]})),this._value=0,super.reset()}},ba={dependencies:null},il=class extends mv{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Vt(this.source,(n,r)=>{Qb(n)?t[r]=n.getValue(e):dt(n)?t[r]=ze(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&B(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Vt(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){ba.dependencies&&dt(e)&&ba.dependencies.add(e);const t=sl(e);t&&B(t,n=>this.add(n))}},gv=class extends il{constructor(e){super(e)}static create(e){return new gv(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(Wb)),!0)}};function Wb(e){return(rl(e)?gi:Ai).create(e)}function Cc(e){const t=Dt(e);return t?t.constructor:j.arr(e)?gv:rl(e)?gi:Ai}var Cp=(e,t)=>{const n=!j.fun(e)||e.prototype&&e.prototype.isReactComponent;return x.forwardRef((r,s)=>{const i=x.useRef(null),o=n&&x.useCallback(g=>{i.current=Gb(s,g)},[s]),[a,l]=Zb(r,t),u=Zd(),c=()=>{const g=i.current;if(n&&!g)return;(g?t.applyAnimatedValues(g,a.getValue(!0)):!1)===!1&&u()},d=new Kb(c,l),h=x.useRef();Gn(()=>(h.current=d,B(l,g=>es(g,d)),()=>{h.current&&(B(h.current.deps,g=>pi(g,h.current)),H.cancel(h.current.update))})),x.useEffect(c,[]),Gd(()=>()=>{const g=h.current;B(g.deps,y=>pi(y,g))});const m=t.getComponentProps(a.getValue());return x.createElement(e,{...m,ref:o})})},Kb=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&H.write(this.update)}};function Zb(e,t){const n=new Set;return ba.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new il(e),ba.dependencies=null,[e,n]}function Gb(e,t){return e&&(j.fun(e)?e(t):e.current=t),t}var Rp=Symbol.for("AnimatedComponent"),Xb=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=s=>new il(s),getComponentProps:r=s=>s}={})=>{const s={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=o=>{const a=kp(o)||"Anonymous";return j.str(o)?o=i[o]||(i[o]=Cp(o,s)):o=o[Rp]||(o[Rp]=Cp(o,s)),o.displayName=`Animated(${a})`,o};return Vt(e,(o,a)=>{j.arr(e)&&(a=kp(o)),i[a]=i(o)}),{animated:i}},kp=e=>j.str(e)?e:e&&j.str(e.displayName)?e.displayName:j.fun(e)&&e.name||null;function Ue(e,...t){return j.fun(e)?e(...t):e}var $s=(e,t)=>e===!0||!!(t&&e&&(j.fun(e)?e(t):Ie(e).includes(t))),vv=(e,t)=>j.obj(e)?t&&e[t]:e,yv=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Yb=e=>e,ol=(e,t=Yb)=>{let n=Jb;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const s of n){const i=t(e[s],s);j.und(i)||(r[s]=i)}return r},Jb=["config","onProps","onStart","onChange","onPause","onResume","onRest"],eE={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function tE(e){const t={};let n=0;if(Vt(e,(r,s)=>{eE[s]||(t[s]=r,n++)}),n)return t}function Yd(e){const t=tE(e);if(t){const n={to:t};return Vt(e,(r,s)=>s in t||(n[s]=r)),n}return{...e}}function vi(e){return e=ze(e),j.arr(e)?e.map(vi):rl(e)?Nt.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function wv(e){for(const t in e)return!0;return!1}function Rc(e){return j.fun(e)||j.arr(e)&&j.obj(e[0])}function kc(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function xv(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var nE={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Pc={...nE.default,mass:1,damping:1,easing:Tb.linear,clamp:!1},rE=class{constructor(){this.velocity=0,Object.assign(this,Pc)}};function sE(e,t,n){n&&(n={...n},Pp(n,t),t={...n,...t}),Pp(e,t),Object.assign(e,t);for(const o in Pc)e[o]==null&&(e[o]=Pc[o]);let{frequency:r,damping:s}=e;const{mass:i}=e;return j.und(r)||(r<.01&&(r=.01),s<0&&(s=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*s*i/r),e}function Pp(e,t){if(!j.und(t.decay))e.duration=void 0;else{const n=!j.und(t.tension)||!j.und(t.friction);(n||!j.und(t.frequency)||!j.und(t.damping)||!j.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Op=[],iE=class{constructor(){this.changed=!1,this.values=Op,this.toValues=null,this.fromValues=Op,this.config=new rE,this.immediate=!1}};function Sv(e,{key:t,props:n,defaultProps:r,state:s,actions:i}){return new Promise((o,a)=>{let l,u,c=$s(n.cancel??(r==null?void 0:r.cancel),t);if(c)m();else{j.und(n.pause)||(s.paused=$s(n.pause,t));let g=r==null?void 0:r.pause;g!==!0&&(g=s.paused||$s(g,t)),l=Ue(n.delay||0,t),g?(s.resumeQueue.add(h),i.pause()):(i.resume(),h())}function d(){s.resumeQueue.add(h),s.timeouts.delete(u),u.cancel(),l=u.time-H.now()}function h(){l>0&&!Nt.skipAnimation?(s.delayed=!0,u=H.setTimeout(m,l),s.pauseQueue.add(d),s.timeouts.add(u)):m()}function m(){s.delayed&&(s.delayed=!1),s.pauseQueue.delete(d),s.timeouts.delete(u),e<=(s.cancelId||0)&&(c=!0);try{i.start({...n,callId:e,cancel:c},o)}catch(g){a(g)}}})}var Jd=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Fr(e.get()):t.every(n=>n.noop)?bv(e.get()):Ct(e.get(),t.every(n=>n.finished)),bv=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Ct=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Fr=e=>({value:e,cancelled:!0,finished:!1});function Ev(e,t,n,r){const{callId:s,parentId:i,onRest:o}=t,{asyncTo:a,promise:l}=n;return!i&&e===a&&!t.reset?l:n.promise=(async()=>{n.asyncId=s,n.asyncTo=e;const u=ol(t,(S,p)=>p==="onRest"?void 0:S);let c,d;const h=new Promise((S,p)=>(c=S,d=p)),m=S=>{const p=s<=(n.cancelId||0)&&Fr(r)||s!==n.asyncId&&Ct(r,!1);if(p)throw S.result=p,d(S),S},g=(S,p)=>{const v=new Np,w=new jp;return(async()=>{if(Nt.skipAnimation)throw yi(n),w.result=Ct(r,!1),d(w),w;m(v);const b=j.obj(S)?{...S}:{...p,to:S};b.parentId=s,Vt(u,(R,k)=>{j.und(b[k])&&(b[k]=R)});const C=await r.start(b);return m(v),n.paused&&await new Promise(R=>{n.resumeQueue.add(R)}),C})()};let y;if(Nt.skipAnimation)return yi(n),Ct(r,!1);try{let S;j.arr(e)?S=(async p=>{for(const v of p)await g(v)})(e):S=Promise.resolve(e(g,r.stop.bind(r))),await Promise.all([S.then(c),h]),y=Ct(r.get(),!0,!1)}catch(S){if(S instanceof Np)y=S.result;else if(S instanceof jp)y=S.result;else throw S}finally{s==n.asyncId&&(n.asyncId=i,n.asyncTo=i?a:void 0,n.promise=i?l:void 0)}return j.fun(o)&&H.batchedUpdates(()=>{o(y,r,r.item)}),y})()}function yi(e,t){Ds(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Np=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},jp=class extends Error{constructor(){super("SkipAnimationSignal")}},Oc=e=>e instanceof ef,oE=1,ef=class extends cv{constructor(){super(...arguments),this.id=oE++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Dt(this);return e&&e.getValue()}to(...e){return Nt.to(this,e)}interpolate(...e){return $b(),Nt.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){hi(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||el.sort(this),hi(this,{type:"priority",parent:this,priority:e})}},or=Symbol.for("SpringPhase"),Cv=1,Nc=2,jc=4,Jl=e=>(e[or]&Cv)>0,dn=e=>(e[or]&Nc)>0,ps=e=>(e[or]&jc)>0,Tp=(e,t)=>t?e[or]|=Nc|Cv:e[or]&=~Nc,_p=(e,t)=>t?e[or]|=jc:e[or]&=~jc,aE=class extends ef{constructor(e,t){if(super(),this.animation=new iE,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!j.und(e)||!j.und(t)){const n=j.obj(e)?{...e}:{...t,from:e};j.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(dn(this)||this._state.asyncTo)||ps(this)}get goal(){return ze(this.animation.to)}get velocity(){const e=Dt(this);return e instanceof Ai?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Jl(this)}get isAnimating(){return dn(this)}get isPaused(){return ps(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:s}=r;const{config:i}=r,o=sl(r.to);!o&&dt(r.to)&&(s=Ie(ze(r.to))),r.values.forEach((u,c)=>{if(u.done)return;const d=u.constructor==gi?1:o?o[c].lastPosition:s[c];let h=r.immediate,m=d;if(!h){if(m=u.lastPosition,i.tension<=0){u.done=!0;return}let g=u.elapsedTime+=e;const y=r.fromValues[c],S=u.v0!=null?u.v0:u.v0=j.arr(i.velocity)?i.velocity[c]:i.velocity;let p;const v=i.precision||(y==d?.005:Math.min(1,Math.abs(d-y)*.001));if(j.und(i.duration))if(i.decay){const w=i.decay===!0?.998:i.decay,b=Math.exp(-(1-w)*g);m=y+S/(1-w)*(1-b),h=Math.abs(u.lastPosition-m)<=v,p=S*b}else{p=u.lastVelocity==null?S:u.lastVelocity;const w=i.restVelocity||v/10,b=i.clamp?0:i.bounce,C=!j.und(b),R=y==d?u.v0>0:y<d;let k,P=!1;const _=1,F=Math.ceil(e/_);for(let A=0;A<F&&(k=Math.abs(p)>w,!(!k&&(h=Math.abs(d-m)<=v,h)));++A){C&&(P=m==d||m>d==R,P&&(p=-p*b,m=d));const I=-i.tension*1e-6*(m-d),U=-i.friction*.001*p,$=(I+U)/i.mass;p=p+$*_,m=m+p*_}}else{let w=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,u.durationProgress>0&&(u.elapsedTime=i.duration*u.durationProgress,g=u.elapsedTime+=e)),w=(i.progress||0)+g/this._memoizedDuration,w=w>1?1:w<0?0:w,u.durationProgress=w),m=y+i.easing(w)*(d-y),p=(m-u.lastPosition)/e,h=w==1}u.lastVelocity=p,Number.isNaN(m)&&(console.warn("Got NaN while animating:",this),h=!0)}o&&!o[c].done&&(h=!1),h?u.done=!0:t=!1,u.setValue(m,i.round)&&(n=!0)});const a=Dt(this),l=a.getValue();if(t){const u=ze(r.to);(l!==u||n)&&!i.decay?(a.setValue(u),this._onChange(u)):n&&i.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return H.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(dn(this)){const{to:e,config:t}=this.animation;H.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return j.und(e)?(n=this.queue||[],this.queue=[]):n=[j.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>Jd(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),yi(this._state,e&&this._lastCallId),H.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=j.obj(n)?n[t]:n,(n==null||Rc(n))&&(n=void 0),r=j.obj(r)?r[t]:r,r==null&&(r=void 0);const s={to:n,from:r};return Jl(this)||(e.reverse&&([n,r]=[r,n]),r=ze(r),j.und(r)?Dt(this)||this._set(n):this._set(r)),s}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,ol(e,(o,a)=>/^on/.test(a)?vv(o,n):o)),Ap(this,e,"onProps"),gs(this,"onProps",e,this);const s=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return Sv(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{ps(this)||(_p(this,!0),Es(i.pauseQueue),gs(this,"onPause",Ct(this,ms(this,this.animation.to)),this))},resume:()=>{ps(this)&&(_p(this,!1),dn(this)&&this._resume(),Es(i.resumeQueue),gs(this,"onResume",Ct(this,ms(this,this.animation.to)),this))},start:this._merge.bind(this,s)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const a=Rv(e);if(a)return this._update(a,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Fr(this));const r=!j.und(e.to),s=!j.und(e.from);if(r||s)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Fr(this));const{key:i,defaultProps:o,animation:a}=this,{to:l,from:u}=a;let{to:c=l,from:d=u}=e;s&&!r&&(!t.default||j.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);const h=!Kt(d,u);h&&(a.from=d),d=ze(d);const m=!Kt(c,l);m&&this._focus(c);const g=Rc(t.to),{config:y}=a,{decay:S,velocity:p}=y;(r||s)&&(y.velocity=0),t.config&&!g&&sE(y,Ue(t.config,i),t.config!==o.config?Ue(o.config,i):void 0);let v=Dt(this);if(!v||j.und(c))return n(Ct(this,!0));const w=j.und(t.reset)?s&&!t.default:!j.und(d)&&$s(t.reset,i),b=w?d:this.get(),C=vi(c),R=j.num(C)||j.arr(C)||rl(C),k=!g&&(!R||$s(o.immediate||t.immediate,i));if(m){const A=Cc(c);if(A!==v.constructor)if(k)v=this._set(C);else throw Error(`Cannot animate between ${v.constructor.name} and ${A.name}, as the "to" prop suggests`)}const P=v.constructor;let _=dt(c),F=!1;if(!_){const A=w||!Jl(this)&&h;(m||A)&&(F=Kt(vi(b),C),_=!F),(!Kt(a.immediate,k)&&!k||!Kt(y.decay,S)||!Kt(y.velocity,p))&&(_=!0)}if(F&&dn(this)&&(a.changed&&!w?_=!0:_||this._stop(l)),!g&&((_||dt(l))&&(a.values=v.getPayload(),a.toValues=dt(c)?null:P==gi?[1]:Ie(C)),a.immediate!=k&&(a.immediate=k,!k&&!w&&this._set(l)),_)){const{onRest:A}=a;B(uE,U=>Ap(this,t,U));const I=Ct(this,ms(this,l));Es(this._pendingCalls,I),this._pendingCalls.add(n),a.changed&&H.batchedUpdates(()=>{var U;a.changed=!w,A==null||A(I,this),w?Ue(o.onRest,I):(U=a.onStart)==null||U.call(a,I,this)})}w&&this._set(b),g?n(Ev(t.to,t,this._state,this)):_?this._start():dn(this)&&!m?this._pendingCalls.add(n):n(bv(b))}_focus(e){const t=this.animation;e!==t.to&&(bp(this)&&this._detach(),t.to=e,bp(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;dt(t)&&(es(t,this),Oc(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;dt(e)&&pi(e,this)}_set(e,t=!0){const n=ze(e);if(!j.und(n)){const r=Dt(this);if(!r||!Kt(n,r.getValue())){const s=Cc(n);!r||r.constructor!=s?Xd(this,s.create(n)):r.setValue(n),r&&H.batchedUpdates(()=>{this._onChange(n,t)})}}return Dt(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,gs(this,"onStart",Ct(this,ms(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Ue(this.animation.onChange,e,this)),Ue(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Dt(this).reset(ze(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),dn(this)||(Tp(this,!0),ps(this)||this._resume())}_resume(){Nt.skipAnimation?this.finish():el.start(this)}_stop(e,t){if(dn(this)){Tp(this,!1);const n=this.animation;B(n.values,s=>{s.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),hi(this,{type:"idle",parent:this});const r=t?Fr(this.get()):Ct(this.get(),ms(this,e??n.to));Es(this._pendingCalls,r),n.changed&&(n.changed=!1,gs(this,"onRest",r,this))}}};function ms(e,t){const n=vi(t),r=vi(e.get());return Kt(r,n)}function Rv(e,t=e.loop,n=e.to){const r=Ue(t);if(r){const s=r!==!0&&Yd(r),i=(s||e).reverse,o=!s||s.reset;return wi({...e,loop:t,default:!1,pause:void 0,to:!i||Rc(n)?n:void 0,from:o?e.from:void 0,reset:o,...s})}}function wi(e){const{to:t,from:n}=e=Yd(e),r=new Set;return j.obj(t)&&Ip(t,r),j.obj(n)&&Ip(n,r),e.keys=r.size?Array.from(r):null,e}function lE(e){const t=wi(e);return j.und(t.default)&&(t.default=ol(t)),t}function Ip(e,t){Vt(e,(n,r)=>n!=null&&t.add(r))}var uE=["onStart","onRest","onChange","onPause","onResume"];function Ap(e,t,n){e.animation[n]=t[n]!==yv(t,n)?vv(t[n],e.key):void 0}function gs(e,t,...n){var r,s,i,o;(s=(r=e.animation)[t])==null||s.call(r,...n),(o=(i=e.defaultProps)[t])==null||o.call(i,...n)}var cE=["onStart","onChange","onRest"],dE=1,kv=class{constructor(e,t){this.id=dE++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];j.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(wi(e)),this}start(e){let{queue:t}=this;return e?t=Ie(e).map(wi):this.queue=[],this._flush?this._flush(this,t):(Tv(this,t),Tc(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;B(Ie(t),r=>n[r].stop(!!e))}else yi(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(j.und(e))this.start({pause:!0});else{const t=this.springs;B(Ie(e),n=>t[n].pause())}return this}resume(e){if(j.und(e))this.start({pause:!1});else{const t=this.springs;B(Ie(e),n=>t[n].resume())}return this}each(e){Vt(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,s=this._changed.size>0;(r&&!this._started||s&&!this._started)&&(this._started=!0,Ds(e,([a,l])=>{l.value=this.get(),a(l,this,this._item)}));const i=!r&&this._started,o=s||i&&n.size?this.get():null;s&&t.size&&Ds(t,([a,l])=>{l.value=o,a(l,this,this._item)}),i&&(this._started=!1,Ds(n,([a,l])=>{l.value=o,a(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;H.onFrame(this._onFrame)}};function Tc(e,t){return Promise.all(t.map(n=>Pv(e,n))).then(n=>Jd(e,n))}async function Pv(e,t,n){const{keys:r,to:s,from:i,loop:o,onRest:a,onResolve:l}=t,u=j.obj(t.default)&&t.default;o&&(t.loop=!1),s===!1&&(t.to=null),i===!1&&(t.from=null);const c=j.arr(s)||j.fun(s)?s:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):B(cE,y=>{const S=t[y];if(j.fun(S)){const p=e._events[y];t[y]=({finished:v,cancelled:w})=>{const b=p.get(S);b?(v||(b.finished=!1),w&&(b.cancelled=!0)):p.set(S,{value:null,finished:v||!1,cancelled:w||!1})},u&&(u[y]=t[y])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Es(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(r||Object.keys(e.springs)).map(y=>e.springs[y].start(t)),m=t.cancel===!0||yv(t,"cancel")===!0;(c||m&&d.asyncId)&&h.push(Sv(++e._lastAsyncId,{props:t,state:d,actions:{pause:Sc,resume:Sc,start(y,S){m?(yi(d,e._lastAsyncId),S(Fr(e))):(y.onRest=a,S(Ev(c,y,d,e)))}}})),d.paused&&await new Promise(y=>{d.resumeQueue.add(y)});const g=Jd(e,await Promise.all(h));if(o&&g.finished&&!(n&&g.noop)){const y=Rv(t,o,s);if(y)return Tv(e,[y]),Pv(e,y,!0)}return l&&H.batchedUpdates(()=>l(g,e,e.item)),g}function _c(e,t){const n={...e.springs};return t&&B(Ie(t),r=>{j.und(r.keys)&&(r=wi(r)),j.obj(r.to)||(r={...r,to:void 0}),jv(n,r,s=>Nv(s))}),Ov(e,n),n}function Ov(e,t){Vt(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,es(n,e))})}function Nv(e,t){const n=new aE;return n.key=e,t&&es(n,t),n}function jv(e,t,n){t.keys&&B(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function Tv(e,t){B(t,n=>{jv(e.springs,n,r=>Nv(r,e))})}var Li=({children:e,...t})=>{const n=x.useContext(Ea),r=t.pause||!!n.pause,s=t.immediate||!!n.immediate;t=Vb(()=>({pause:r,immediate:s}),[r,s]);const{Provider:i}=Ea;return x.createElement(i,{value:t},e)},Ea=fE(Li,{});Li.Provider=Ea.Provider;Li.Consumer=Ea.Consumer;function fE(e,t){return Object.assign(e,x.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var _v=()=>{const e=[],t=function(r){Ub();const s=[];return B(e,(i,o)=>{if(j.und(r))s.push(i.start());else{const a=n(r,i,o);a&&s.push(i.start(a))}}),s};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const s=e.indexOf(r);~s&&e.splice(s,1)},t.pause=function(){return B(e,r=>r.pause(...arguments)),this},t.resume=function(){return B(e,r=>r.resume(...arguments)),this},t.set=function(r){B(e,(s,i)=>{const o=j.fun(r)?r(i,s):r;o&&s.set(o)})},t.start=function(r){const s=[];return B(e,(i,o)=>{if(j.und(r))s.push(i.start());else{const a=this._getProps(r,i,o);a&&s.push(i.start(a))}}),s},t.stop=function(){return B(e,r=>r.stop(...arguments)),this},t.update=function(r){return B(e,(s,i)=>s.update(this._getProps(r,s,i))),this};const n=function(r,s,i){return j.fun(r)?r(i,s):r};return t._getProps=n,t};function hE(e,t,n){const r=j.fun(t)&&t;r&&!n&&(n=[]);const s=x.useMemo(()=>r||arguments.length==3?_v():void 0,[]),i=x.useRef(0),o=Zd(),a=x.useMemo(()=>({ctrls:[],queue:[],flush(p,v){const w=_c(p,v);return i.current>0&&!a.queue.length&&!Object.keys(w).some(C=>!p.springs[C])?Tc(p,v):new Promise(C=>{Ov(p,w),a.queue.push(()=>{C(Tc(p,v))}),o()})}}),[]),l=x.useRef([...a.ctrls]),u=[],c=Ec(e)||0;x.useMemo(()=>{B(l.current.slice(e,c),p=>{kc(p,s),p.stop(!0)}),l.current.length=e,d(c,e)},[e]),x.useMemo(()=>{d(0,Math.min(c,e))},n);function d(p,v){for(let w=p;w<v;w++){const b=l.current[w]||(l.current[w]=new kv(null,a.flush)),C=r?r(w,b):t[w];C&&(u[w]=lE(C))}}const h=l.current.map((p,v)=>_c(p,u[v])),m=x.useContext(Li),g=Ec(m),y=m!==g&&wv(m);Gn(()=>{i.current++,a.ctrls=l.current;const{queue:p}=a;p.length&&(a.queue=[],B(p,v=>v())),B(l.current,(v,w)=>{s==null||s.add(v),y&&v.start({default:m});const b=u[w];b&&(xv(v,b.ref),v.ref?v.queue.push(b):v.start(b))})}),Gd(()=>()=>{B(a.ctrls,p=>p.stop(!0))});const S=h.map(p=>({...p}));return s?[S,s]:S}function uk(e,t){const n=j.fun(e),[[r],s]=hE(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,s]:r}function tf(e,t,n){const r=j.fun(t)&&t,{reset:s,sort:i,trail:o=0,expires:a=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,h=x.useMemo(()=>r||arguments.length==3?_v():void 0,[]),m=Ie(e),g=[],y=x.useRef(null),S=s?null:y.current;Gn(()=>{y.current=g}),Gd(()=>(B(g,$=>{h==null||h.add($.ctrl),$.ctrl.ref=h}),()=>{B(y.current,$=>{$.expired&&clearTimeout($.expirationId),kc($.ctrl,h),$.ctrl.stop(!0)})}));const p=mE(m,r?r():t,S),v=s&&y.current||[];Gn(()=>B(v,({ctrl:$,item:E,key:O})=>{kc($,h),Ue(u,E,O)}));const w=[];if(S&&B(S,($,E)=>{$.expired?(clearTimeout($.expirationId),v.push($)):(E=w[E]=p.indexOf($.key),~E&&(g[E]=$))}),B(m,($,E)=>{g[E]||(g[E]={key:p[E],item:$,phase:"mount",ctrl:new kv},g[E].ctrl.item=$)}),w.length){let $=-1;const{leave:E}=r?r():t;B(w,(O,L)=>{const N=S[L];~O?($=g.indexOf(N),g[$]={...N,item:m[O]}):E&&g.splice(++$,0,N)})}j.fun(i)&&g.sort(($,E)=>i($.item,E.item));let b=-o;const C=Zd(),R=ol(t),k=new Map,P=x.useRef(new Map),_=x.useRef(!1);B(g,($,E)=>{const O=$.key,L=$.phase,N=r?r():t;let D,M;const K=Ue(N.delay||0,O);if(L=="mount")D=N.enter,M="enter";else{const xe=p.indexOf(O)<0;if(L!="leave")if(xe)D=N.leave,M="leave";else if(D=N.update)M="update";else return;else if(!xe)D=N.enter,M="enter";else return}if(D=Ue(D,$.item,E),D=j.obj(D)?Yd(D):{to:D},!D.config){const xe=d||R.config;D.config=Ue(xe,$.item,E,M)}b+=o;const Z={...R,delay:K+b,ref:c,immediate:N.immediate,reset:!1,...D};if(M=="enter"&&j.und(Z.from)){const xe=r?r():t,G=j.und(xe.initial)||S?xe.from:xe.initial;Z.from=Ue(G,$.item,E)}const{onResolve:le}=Z;Z.onResolve=xe=>{Ue(le,xe);const G=y.current,pe=G.find(_t=>_t.key===O);if(pe&&!(xe.cancelled&&pe.phase!="update")&&pe.ctrl.idle){const _t=G.every(It=>It.ctrl.idle);if(pe.phase=="leave"){const It=Ue(a,pe.item);if(It!==!1){const un=It===!0?0:It;if(pe.expired=!0,!_t&&un>0){un<=2147483647&&(pe.expirationId=setTimeout(C,un));return}}}_t&&G.some(It=>It.expired)&&(P.current.delete(pe),l&&(_.current=!0),C())}};const we=_c($.ctrl,Z);M==="leave"&&l?P.current.set($,{phase:M,springs:we,payload:Z}):k.set($,{phase:M,springs:we,payload:Z})});const F=x.useContext(Li),A=Ec(F),I=F!==A&&wv(F);Gn(()=>{I&&B(g,$=>{$.ctrl.start({default:F})})},[F]),B(k,($,E)=>{if(P.current.size){const O=g.findIndex(L=>L.key===E.key);g.splice(O,1)}}),Gn(()=>{B(P.current.size?P.current:k,({phase:$,payload:E},O)=>{const{ctrl:L}=O;O.phase=$,h==null||h.add(L),I&&$=="enter"&&L.start({default:F}),E&&(xv(L,E.ref),(L.ref||h)&&!_.current?L.update(E):(L.start(E),_.current&&(_.current=!1)))})},s?void 0:n);const U=$=>x.createElement(x.Fragment,null,g.map((E,O)=>{const{springs:L}=k.get(E)||E.ctrl,N=$({...L},E.item,E,O);return N&&N.type?x.createElement(N.type,{...N.props,key:j.str(E.key)||j.num(E.key)?E.key:E.ctrl.id,ref:N.ref}):N}));return h?[U,h]:U}var pE=1;function mE(e,{key:t,keys:n=t},r){if(n===null){const s=new Set;return e.map(i=>{const o=r&&r.find(a=>a.item===i&&a.phase!=="leave"&&!s.has(a));return o?(s.add(o),o.key):pE++})}return j.und(n)?e:j.fun(n)?e.map(n):Ie(n)}var gE=class extends ef{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=di(...t);const n=this._get(),r=Cc(n);Xd(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Kt(t,n)||(Dt(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Lp(this._active)&&eu(this)}_get(){const e=j.arr(this.source)?this.source.map(ze):Ie(ze(this.source));return this.calc(...e)}_start(){this.idle&&!Lp(this._active)&&(this.idle=!1,B(sl(this),e=>{e.done=!1}),Nt.skipAnimation?(H.batchedUpdates(()=>this.advance()),eu(this)):el.start(this))}_attach(){let e=1;B(Ie(this.source),t=>{dt(t)&&es(t,this),Oc(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){B(Ie(this.source),e=>{dt(e)&&pi(e,this)}),this._active.clear(),eu(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Ie(this.source).reduce((t,n)=>Math.max(t,(Oc(n)?n.priority:0)+1),0))}};function vE(e){return e.idle!==!1}function Lp(e){return!e.size||Array.from(e).every(vE)}function eu(e){e.idle||(e.idle=!0,B(sl(e),t=>{t.done=!0}),hi(e,{type:"idle",parent:e}))}Nt.assign({createStringInterpolator:hv,to:(e,t)=>new gE(e,t)});var Iv=/^--/;function yE(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Iv.test(e)&&!(zs.hasOwnProperty(e)&&zs[e])?t+"px":(""+t).trim()}var Mp={};function wE(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:s,scrollTop:i,scrollLeft:o,viewBox:a,...l}=t,u=Object.values(l),c=Object.keys(l).map(d=>n||e.hasAttribute(d)?d:Mp[d]||(Mp[d]=d.replace(/([A-Z])/g,h=>"-"+h.toLowerCase())));s!==void 0&&(e.textContent=s);for(const d in r)if(r.hasOwnProperty(d)){const h=yE(d,r[d]);Iv.test(d)?e.style.setProperty(d,h):e.style[d]=h}c.forEach((d,h)=>{e.setAttribute(d,u[h])}),i!==void 0&&(e.scrollTop=i),o!==void 0&&(e.scrollLeft=o),a!==void 0&&e.setAttribute("viewBox",a)}var zs={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xE=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),SE=["Webkit","Ms","Moz","O"];zs=Object.keys(zs).reduce((e,t)=>(SE.forEach(n=>e[xE(n,t)]=e[t]),e),zs);var bE=/^(matrix|translate|scale|rotate|skew)/,EE=/^(translate)/,CE=/^(rotate|skew)/,tu=(e,t)=>j.num(e)&&e!==0?e+t:e,_o=(e,t)=>j.arr(e)?e.every(n=>_o(n,t)):j.num(e)?e===t:parseFloat(e)===t,RE=class extends il{constructor({x:e,y:t,z:n,...r}){const s=[],i=[];(e||t||n)&&(s.push([e||0,t||0,n||0]),i.push(o=>[`translate3d(${o.map(a=>tu(a,"px")).join(",")})`,_o(o,0)])),Vt(r,(o,a)=>{if(a==="transform")s.push([o||""]),i.push(l=>[l,l===""]);else if(bE.test(a)){if(delete r[a],j.und(o))return;const l=EE.test(a)?"px":CE.test(a)?"deg":"";s.push(Ie(o)),i.push(a==="rotate3d"?([u,c,d,h])=>[`rotate3d(${u},${c},${d},${tu(h,l)})`,_o(h,0)]:u=>[`${a}(${u.map(c=>tu(c,l)).join(",")})`,_o(u,a.startsWith("scale")?1:0)])}}),s.length&&(r.transform=new kE(s,i)),super(r)}},kE=class extends cv{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return B(this.inputs,(n,r)=>{const s=ze(n[0]),[i,o]=this.transforms[r](j.arr(s)?s:n.map(ze));e+=" "+i,t=t&&o}),t?"none":e}observerAdded(e){e==1&&B(this.inputs,t=>B(t,n=>dt(n)&&es(n,this)))}observerRemoved(e){e==0&&B(this.inputs,t=>B(t,n=>dt(n)&&pi(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),hi(this,e)}},PE=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Nt.assign({batchedUpdates:Pi.unstable_batchedUpdates,createStringInterpolator:hv,colors:yb});var OE=Xb(PE,{applyAnimatedValues:wE,createAnimatedStyle:e=>new RE(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Ca=OE.animated;const nf=x.createContext({ariaLabelId:"",ariaDescriptionId:"",focusId:""});nf.displayName="ModalContext";const Av=()=>{const e=x.useContext(nf);if(!e)throw new Error("Cannot be rendered outside the Modal component");return e},Lv=e=>{const{ariaDescriptionId:t}=Av(),{children:n,className:r}=e,s=V("modal-body",r);return f.jsx("div",{id:t,className:s,children:n})};Lv.displayName="Modal.Body";const NE=Lv,Mv=e=>f.jsx("div",{className:"modal-footer",children:e.children});Mv.displayName="Modal.Footer";const jE=Mv,Dv=e=>{const{onModalClose:t,children:n}=e,{ariaLabelId:r,focusId:s}=Av(),i=x.useRef(null);return x.useEffect(()=>{var o;s||(o=i.current)==null||o.focus()},[s]),f.jsxs("div",{className:"modal-header",children:[f.jsx("h2",{id:r,className:"modal-title",tabIndex:-1,children:n}),f.jsx(Ka,{ref:i,"aria-label":"Close",color:"tertiary",icon:f.jsx(e3,{}),type:"button",variant:"ghost",title:"Delete",onClick:t,className:"btn-close"})]})};Dv.displayName="Modal.Header";const TE=Dv,Fv=e=>f.jsx("p",{className:"modal-subtitle",children:e.children});Fv.displayName="Modal.Subtitle";const _E=Fv,$v=x.forwardRef((e,t)=>{const{id:n,isOpen:r,onModalClose:s,size:i="md",viewport:o=!1,scrollable:a=!1,focusId:l,children:u}=e,c=`aria_label_${n}`,d=`aria_desc_${n}`,h=t0(s),m=B4();$4(s,["Escape"]),x.useEffect(()=>{if(r&&(document.body.style.overflow="hidden",l)){const v=document.getElementById(l);v==null||v.focus()}return()=>{document.body.style.overflow=""}},[l,r]);const g=V("modal fade",{"show d-block":r,"modal-scrollable":a,viewport:o,[`modal-${i}`]:i}),y=V("modal-dialog"),S={ariaLabelId:c,ariaDescriptionId:d,focusId:l},p=tf(r,{from:{x:-50,opacity:0},enter:{x:0,opacity:1},leave:{x:50,opacity:0}});return f.jsx(nf.Provider,{value:S,children:p((v,w)=>f.jsxs(f.Fragment,{children:[w&&f.jsx(Ca.div,{id:n,ref:t,role:"dialog","aria-modal":"true","aria-labelledby":c,"aria-describedby":d,className:g,style:v,tabIndex:-1,children:f.jsx("div",{id:`${n}_ref`,ref:b=>{h.current=b,w&&(m.current=b)},className:y,children:f.jsx("div",{className:"modal-content",children:u})})}),w&&f.jsx(Ca.div,{className:"modal-backdrop fade show",style:{opacity:.65}})]}))})}),IE=Object.assign($v,{Header:TE,Subtitle:_E,Body:NE,Footer:jE});$v.displayName="Modal";const bn=IE,AE=({children:e,className:t})=>{const n=V("popover-body",t);return f.jsx("div",{className:n,children:e})},LE=({children:e,className:t})=>{const n=V("popover-footer p-8",t);return f.jsx("div",{className:n,children:e})},rf=x.forwardRef(({children:e,className:t,id:n,isVisible:r,...s},i)=>{const o=V("popover d-block position-absolute top-100 start-50 translate-middle-x",t);return tf(r,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0},config:{duration:0}})((l,u)=>u&&f.jsx(Ca.div,{ref:i,"aria-labelledby":n,className:o,role:"tooltip",style:l,...s,children:e}))});rf.displayName="Popover";function ME(e,t,n,r,s,i,o,a,l){const u=S=>{S.preventDefault(),s==null||s(e),S.stopPropagation()},c=S=>{(S.code==="Enter"||S.code==="Space")&&(S.preventDefault(),s==null||s(e),S.stopPropagation())},d=()=>{r(!n),n?i==null||i(e):o==null||o(e)};return{handleItemClick:u,handleItemKeyDown:c,handleItemFoldUnfoldClick:S=>{S.preventDefault(),d(),S.stopPropagation()},handleItemFoldUnfoldKeyDown:S=>{(S.code==="Enter"||S.code==="Space")&&(S.preventDefault(),d(),S.stopPropagation())},handleItemFocus:S=>{S.preventDefault(),a==null||a(e)},handleItemBlur:S=>{S.preventDefault(),l==null||l(e)}}}const zv=e=>{const{nodeId:t,label:n,children:r,section:s,selected:i,onItemSelect:o,onItemFold:a,onItemUnfold:l,onItemFocus:u,onItemBlur:c,selectedNodesIds:d}=e,[h,m]=x.useState(!1),{handleItemClick:g,handleItemKeyDown:y,handleItemFoldUnfoldClick:S,handleItemFoldUnfoldKeyDown:p,handleItemFocus:v,handleItemBlur:w}=ME(t,n,h,m,o,a,l,u,c);x.useEffect(()=>{if(d!=null&&d.length&&(d==null?void 0:d.length)>=1){const R=d[d.length-1];d.some(k=>k===t&&t!==R?(m(!0),k===t):(m(!1),!1))}else m(!1)},[t,d]);const b=s?16:12,C=()=>f.jsx("li",{id:`listitem_${t}`,role:"treeitem","aria-selected":i,"aria-expanded":h,children:f.jsxs("div",{children:[f.jsxs("div",{className:"action-container d-flex align-items-center gap-8 px-2",children:[f.jsxs("div",{className:"py-8",tabIndex:0,role:"button",onClick:S,onKeyDown:p,"aria-label":"fold/unfold button",children:[Array.isArray(r)&&!h&&f.jsx(tp,{title:"RafterRight",width:b,height:b}),Array.isArray(r)&&h&&f.jsx(gc,{title:"RafterDown",width:b,height:b}),!Array.isArray(r)&&f.jsx(tp,{title:"RafterRight",width:b,height:b,"aria-hidden":"true",className:"opacity-0"})]}),f.jsxs("div",{tabIndex:0,role:"button",className:"flex-fill d-flex align-items-center text-truncate gap-8 py-8",onClick:g,onKeyDown:y,onFocus:v,onBlur:w,children:[s&&f.jsx(d3,{title:"Folder",width:20,height:20}),f.jsx("span",{className:"text-truncate",children:n})]})]}),Array.isArray(r)&&f.jsx("ul",{role:"group",children:r})]})},t);return s?f.jsx("ul",{role:"tree",className:"m-0 p-0",children:C()}):C()};zv.displayName="TreeItem";const DE=zv,Uv=x.forwardRef((e,t)=>{const{data:n,onTreeItemSelect:r,onTreeItemFold:s,onTreeItemUnfold:i,onTreeItemFocus:o,onTreeItemBlur:a,selectedNodesIds:l}=e,[u,c]=x.useState("default");x.useEffect(()=>{l!=null&&l.length&&(l==null?void 0:l.length)>=1?c(l[l.length-1]):c("")},[l]);const d=p=>{c(p),r==null||r(p)},h=p=>{s==null||s(p)},m=p=>{i==null||i(p)},g=p=>{o==null||o(p)},y=p=>{a==null||a(p)},S=p=>f.jsx(DE,{nodeId:p.id,label:p.name,section:p.section,selectedNodesIds:l,selected:u===p.id,onItemSelect:d,onItemFold:h,onItemUnfold:m,onItemFocus:g,onItemBlur:y,children:Array.isArray(p.children)?p.children.map(v=>S(v)):null},p.id);return f.jsx("div",{ref:t,id:"treeview",className:"treeview",children:S(n)})});Uv.displayName="TreeView";const FE=Uv,Bv=x.forwardRef(({children:e},t)=>f.jsx("span",{className:"visually-hidden",ref:t,children:e}));Bv.displayName="VisuallyHidden";const Cs=Bv,$E=()=>{const e=Ls("fr.openent.zimbra.controllers.ZimbraController|view"),t=Ls("fr.openent.zimbra.controllers.ZimbraController|preauth"),[n,r]=x.useState(0),[s,i]=x.useState(""),o=x.useCallback(async()=>{if(e)try{const l=await X.http().get("/zimbra/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});l.status!==200&&r(0),r(l.count)}catch{console.error("error"),r(0)}else try{const l=await X.http().get("/conversation/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});r(l.count)}catch{console.error("error"),r(0)}},[e]),a=x.useCallback(()=>{let l="";X.http().get("/userbook/preference/zimbra").then(u=>{try{u.preference&&JSON.parse(u.preference).modeExpert&&t?l="/zimbra/preauth":l=window.location.origin+"/zimbra/zimbra"}catch{l="/zimbra/zimbra"}}),i(l)},[t]);return x.useEffect(()=>{(async()=>{try{await o()}catch(l){console.error(l)}})(),a()},[a,o]),{messages:n,msgLink:s,zimbraWorkflow:e}},zE=$E;function nu({children:e}){return f.jsx("span",{className:"position-absolute badge rounded-pill bg-warning",children:e})}function ru({children:e,className:t,...n}){const r=V("navbar",t);return f.jsx("nav",{className:r,...n,children:e})}function Dp({children:e,className:t,...n}){const r=V("navbar-nav",t);return f.jsx("ul",{className:r,...n,children:e})}const ce=x.forwardRef(({children:e,className:t,...n},r)=>{const s=V("nav-item",t);return f.jsx("li",{ref:r,className:s,...n,children:e})});ce.displayName="NavItem";function vs({link:e,className:t,children:n,translate:r,...s}){const i=V("nav-link",t);return f.jsxs("a",{href:e,className:i,...s,children:[n,r&&f.jsx(Cs,{children:f.jsx("span",{className:"nav-text",children:r})})]})}const UE=()=>{const{t:e}=ye();return f.jsx("div",{className:"widget-footer",children:f.jsx("div",{className:"widget-footer-action",children:f.jsx("a",{href:"/welcome",className:"link",children:e("plus")})})})},BE=({bookmarkedApps:e})=>{const{t}=ye();return f.jsxs("div",{className:"widget-body d-flex flex-wrap",children:[!e.length&&f.jsx("div",{className:"text-dark",children:t("navbar.myapps.more")}),e.slice(0,6).map((n,r)=>f.jsx("a",{href:n.address,className:"bookmarked-app",children:f.jsx(vc,{app:n,size:"32"})},r))]})};var sf={},of={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function n(r){return r.type===t.Tag||r.type===t.Script||r.type===t.Style}e.isTag=n,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(of);var q={},zn=_e&&_e.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]=s[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Us=_e&&_e.__assign||function(){return Us=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},Us.apply(this,arguments)};Object.defineProperty(q,"__esModule",{value:!0});q.cloneNode=q.hasChildren=q.isDocument=q.isDirective=q.isComment=q.isText=q.isCDATA=q.isTag=q.Element=q.Document=q.CDATA=q.NodeWithChildren=q.ProcessingInstruction=q.Comment=q.Text=q.DataNode=q.Node=void 0;var Ke=of,af=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),lf(this,t)},e}();q.Node=af;var al=function(e){zn(t,e);function t(n){var r=e.call(this)||this;return r.data=n,r}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(n){this.data=n},enumerable:!1,configurable:!0}),t}(af);q.DataNode=al;var Vv=function(e){zn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ke.ElementType.Text,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(al);q.Text=Vv;var Hv=function(e){zn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ke.ElementType.Comment,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(al);q.Comment=Hv;var qv=function(e){zn(t,e);function t(n,r){var s=e.call(this,r)||this;return s.name=n,s.type=Ke.ElementType.Directive,s}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(al);q.ProcessingInstruction=qv;var ll=function(e){zn(t,e);function t(n){var r=e.call(this)||this;return r.children=n,r}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var n;return(n=this.children[0])!==null&&n!==void 0?n:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(n){this.children=n},enumerable:!1,configurable:!0}),t}(af);q.NodeWithChildren=ll;var Qv=function(e){zn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ke.ElementType.CDATA,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(ll);q.CDATA=Qv;var Wv=function(e){zn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ke.ElementType.Root,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(ll);q.Document=Wv;var Kv=function(e){zn(t,e);function t(n,r,s,i){s===void 0&&(s=[]),i===void 0&&(i=n==="script"?Ke.ElementType.Script:n==="style"?Ke.ElementType.Style:Ke.ElementType.Tag);var o=e.call(this,s)||this;return o.name=n,o.attribs=r,o.type=i,o}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(n){this.name=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var n=this;return Object.keys(this.attribs).map(function(r){var s,i;return{name:r,value:n.attribs[r],namespace:(s=n["x-attribsNamespace"])===null||s===void 0?void 0:s[r],prefix:(i=n["x-attribsPrefix"])===null||i===void 0?void 0:i[r]}})},enumerable:!1,configurable:!0}),t}(ll);q.Element=Kv;function Zv(e){return(0,Ke.isTag)(e)}q.isTag=Zv;function Gv(e){return e.type===Ke.ElementType.CDATA}q.isCDATA=Gv;function Xv(e){return e.type===Ke.ElementType.Text}q.isText=Xv;function Yv(e){return e.type===Ke.ElementType.Comment}q.isComment=Yv;function Jv(e){return e.type===Ke.ElementType.Directive}q.isDirective=Jv;function ey(e){return e.type===Ke.ElementType.Root}q.isDocument=ey;function VE(e){return Object.prototype.hasOwnProperty.call(e,"children")}q.hasChildren=VE;function lf(e,t){t===void 0&&(t=!1);var n;if(Xv(e))n=new Vv(e.data);else if(Yv(e))n=new Hv(e.data);else if(Zv(e)){var r=t?su(e.children):[],s=new Kv(e.name,Us({},e.attribs),r);r.forEach(function(l){return l.parent=s}),e.namespace!=null&&(s.namespace=e.namespace),e["x-attribsNamespace"]&&(s["x-attribsNamespace"]=Us({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(s["x-attribsPrefix"]=Us({},e["x-attribsPrefix"])),n=s}else if(Gv(e)){var r=t?su(e.children):[],i=new Qv(r);r.forEach(function(u){return u.parent=i}),n=i}else if(ey(e)){var r=t?su(e.children):[],o=new Wv(r);r.forEach(function(u){return u.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}else if(Jv(e)){var a=new qv(e.name,e.data);e["x-name"]!=null&&(a["x-name"]=e["x-name"],a["x-publicId"]=e["x-publicId"],a["x-systemId"]=e["x-systemId"]),n=a}else throw new Error("Not implemented yet: ".concat(e.type));return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}q.cloneNode=lf;function su(e){for(var t=e.map(function(r){return lf(r,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}(function(e){var t=_e&&_e.__createBinding||(Object.create?function(a,l,u,c){c===void 0&&(c=u);var d=Object.getOwnPropertyDescriptor(l,u);(!d||("get"in d?!l.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return l[u]}}),Object.defineProperty(a,c,d)}:function(a,l,u,c){c===void 0&&(c=u),a[c]=l[u]}),n=_e&&_e.__exportStar||function(a,l){for(var u in a)u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u)&&t(l,a,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=of,s=q;n(q,e);var i={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=function(){function a(l,u,c){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(c=u,u=i),typeof l=="object"&&(u=l,l=void 0),this.callback=l??null,this.options=u??i,this.elementCB=c??null}return a.prototype.onparserinit=function(l){this.parser=l},a.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},a.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},a.prototype.onerror=function(l){this.handleCallback(l)},a.prototype.onclosetag=function(){this.lastNode=null;var l=this.tagStack.pop();this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(l)},a.prototype.onopentag=function(l,u){var c=this.options.xmlMode?r.ElementType.Tag:void 0,d=new s.Element(l,u,void 0,c);this.addNode(d),this.tagStack.push(d)},a.prototype.ontext=function(l){var u=this.lastNode;if(u&&u.type===r.ElementType.Text)u.data+=l,this.options.withEndIndices&&(u.endIndex=this.parser.endIndex);else{var c=new s.Text(l);this.addNode(c),this.lastNode=c}},a.prototype.oncomment=function(l){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=l;return}var u=new s.Comment(l);this.addNode(u),this.lastNode=u},a.prototype.oncommentend=function(){this.lastNode=null},a.prototype.oncdatastart=function(){var l=new s.Text(""),u=new s.CDATA([l]);this.addNode(u),l.parent=u,this.lastNode=l},a.prototype.oncdataend=function(){this.lastNode=null},a.prototype.onprocessinginstruction=function(l,u){var c=new s.ProcessingInstruction(l,u);this.addNode(c)},a.prototype.handleCallback=function(l){if(typeof this.callback=="function")this.callback(l,this.dom);else if(l)throw l},a.prototype.addNode=function(l){var u=this.tagStack[this.tagStack.length-1],c=u.children[u.children.length-1];this.options.withStartIndices&&(l.startIndex=this.parser.startIndex),this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),u.children.push(l),c&&(l.prev=c,c.next=l),l.parent=u,this.lastNode=null},a}();e.DomHandler=o,e.default=o})(sf);var Fp="html",$p="head",uo="body",HE=/<([a-zA-Z]+[0-9]?)/,zp=/<head[^]*>/i,Up=/<body[^]*>/i,Ra=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},Ic=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},Bp=typeof window=="object"&&window.DOMParser;if(typeof Bp=="function"){var qE=new Bp,QE="text/html";Ic=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),qE.parseFromString(e,QE)},Ra=Ic}if(typeof document=="object"&&document.implementation){var co=document.implementation.createHTMLDocument();Ra=function(e,t){if(t){var n=co.documentElement.querySelector(t);return n.innerHTML=e,co}return co.documentElement.innerHTML=e,co}}var iu=typeof document=="object"?document.createElement("template"):{},Ac;iu.content&&(Ac=function(e){return iu.innerHTML=e,iu.content.childNodes});function WE(e){var t,n=e.match(HE);n&&n[1]&&(t=n[1].toLowerCase());var r,s,i;switch(t){case Fp:return r=Ic(e),zp.test(e)||(s=r.querySelector($p),s&&s.parentNode.removeChild(s)),Up.test(e)||(s=r.querySelector(uo),s&&s.parentNode.removeChild(s)),r.querySelectorAll(Fp);case $p:case uo:return r=Ra(e),i=r.querySelectorAll(t),Up.test(e)&&zp.test(e)?i[0].parentNode.childNodes:i;default:return Ac?Ac(e):(s=Ra(e,uo).querySelector(uo),s.childNodes)}}var KE=WE,uf={},ty={};ty.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"];var ul=sf,ZE=ty,Vp=ZE.CASE_SENSITIVE_TAG_NAMES,GE=ul.Comment,XE=ul.Element,YE=ul.ProcessingInstruction,JE=ul.Text,ny={},ou;for(var au=0,eC=Vp.length;au<eC;au++)ou=Vp[au],ny[ou.toLowerCase()]=ou;function tC(e){return ny[e]}function ry(e){for(var t={},n,r=0,s=e.length;r<s;r++)n=e[r],t[n.name]=n.value;return t}function nC(e){e=e.toLowerCase();var t=tC(e);return t||e}function sy(e,t,n){t=t||null;for(var r=[],s,i=0,o=e.length;i<o;i++){var a=e[i],l;switch(a.nodeType){case 1:s=nC(a.nodeName),l=new XE(s,ry(a.attributes)),l.children=sy(s==="template"?a.content.childNodes:a.childNodes,l);break;case 3:l=new JE(a.nodeValue);break;case 8:l=new GE(a.nodeValue);break;default:continue}var u=r[i-1]||null;u&&(u.next=l),l.parent=t,l.prev=u,l.next=null,r.push(l)}return n&&(l=new YE(n.substring(0,n.indexOf(" ")).toLowerCase(),n),l.next=r[0]||null,l.parent=t,r.unshift(l),r[1]&&(r[1].prev=r[0])),r}uf.formatAttributes=ry;uf.formatDOM=sy;var rC=KE,sC=uf,iC=sC.formatDOM,oC=/<(![a-zA-Z\s]+)>/;function aC(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(e==="")return[];var t=e.match(oC),n;return t&&t[1]&&(n=t[1]),iC(rC(e),null,n)}var lC=aC,wt={},cl={},uC=0;cl.SAME=uC;var cC=1;cl.CAMELCASE=cC;cl.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1};Object.defineProperty(wt,"__esModule",{value:!0});function dC(e,t){return fC(e)||hC(e,t)||pC(e,t)||mC()}function fC(e){if(Array.isArray(e))return e}function hC(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],s=!0,i=!1,o,a;try{for(n=n.call(e);!(s=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));s=!0);}catch(l){i=!0,a=l}finally{try{!s&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function pC(e,t){if(e){if(typeof e=="string")return Hp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hp(e,t)}}function Hp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
225
+ `,so=16,D4=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:s,containerStyle:i,containerClassName:o})=>{let{toasts:a,handlers:l}=d4(n);return x.createElement("div",{style:{position:"fixed",zIndex:9999,top:so,left:so,right:so,bottom:so,pointerEvents:"none",...i},className:o,onMouseEnter:l.startPause,onMouseLeave:l.endPause},a.map(u=>{let c=u.position||t,d=l.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),h=L4(c,d);return x.createElement(A4,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?M4:"",style:h},u.type==="custom"?pa(u.message,u):s?s(u):x.createElement(I4,{toast:u,position:c}))}))},hs=Ye;function jt(e){return{hotToast:{success:(n,r)=>hs.custom(f.jsx(e,{type:"success",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),error:(n,r)=>hs.custom(f.jsx(e,{type:"danger",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),info:(n,r)=>hs.custom(f.jsx(e,{type:"info",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),warning:(n,r)=>hs.custom(f.jsx(e,{type:"warning",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),loading:hs.loading}}}function F4({src:e,placeholder:t}){const[n,r]=x.useState(e||t),s=x.useCallback(()=>{r(t)},[t]);return x.useEffect(()=>{r(e)},[e]),{imgSrc:n,onError:s}}function $4(e,t){const n=x.useCallback(({code:r})=>{t.includes(r)&&e()},[e,t]);x.useEffect(()=>(window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}),[n])}function z4(e=!1){const[t,n]=x.useState(e),r=x.useCallback(()=>{n(s=>!s)},[]);return[t,r]}function U4(e,t){const[n,r]=x.useState(e);return x.useEffect(()=>{const s=setTimeout(()=>{r(e)},t||500);return()=>{clearTimeout(s)}},[e,t]),n}function B4(){const e=x.useRef(null),t='button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';return x.useEffect(()=>{const n=e.current,r=n.querySelectorAll(t)[0],s=n.querySelectorAll(t),i=e&&(s==null?void 0:s[s.length-1]),o=a=>{a.key==="Tab"&&(a.shiftKey?document.activeElement===r&&(i.focus(),a.preventDefault()):document.activeElement===i&&(r.focus(),a.preventDefault()))};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}},[]),e}function V4(){const e=document.querySelector("html");return()=>{e&&e.scrollIntoView()}}const i0=x.forwardRef(({children:e},t)=>f.jsx("div",{ref:t,className:"actionbar",children:e}));i0.displayName="ActionBar";const H4=i0,q4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 6a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V7a1 1 0 0 1 1-1ZM11 16a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H12a1 1 0 0 1-1-1Z",clipRule:"evenodd"})]}),Q4=q4,W4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.707 4.293a1 1 0 0 1 0 1.414L6.414 12l6.293 6.293a1 1 0 0 1-1.414 1.414l-7-7a1 1 0 0 1 0-1.414l7-7a1 1 0 0 1 1.414 0Z",clipRule:"evenodd"})]}),K4=W4,Z4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.293 4.293a1 1 0 0 1 1.414 0l7 7a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414-1.414L17.586 12l-6.293-6.293a1 1 0 0 1 0-1.414Z",clipRule:"evenodd"})]}),ek=Z4,G4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M7 4a1 1 0 0 0-1 1v14.06l5.42-3.87a1 1 0 0 1 1.16 0L18 19.06V5a1 1 0 0 0-1-1H7zM4.88 2.88A3 3 0 0 1 7 2h10a3 3 0 0 1 3 3v16a1 1 0 0 1-1.58.81L12 17.23 5.58 21.8A1 1 0 0 1 4 21V5a3 3 0 0 1 .88-2.12z"})]}),tk=G4,X4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M21 5c0 .828-.711 1.5-1.588 1.5H4.588C3.711 6.5 3 5.828 3 5s.711-1.5 1.588-1.5h14.824C20.289 3.5 21 4.172 21 5ZM21 12c0 .828-.711 1.5-1.588 1.5H4.588C3.711 13.5 3 12.828 3 12s.711-1.5 1.588-1.5h14.824c.877 0 1.588.672 1.588 1.5ZM21 19c0 .828-.711 1.5-1.588 1.5H4.588C3.711 20.5 3 19.828 3 19s.711-1.5 1.588-1.5h14.824c.877 0 1.588.672 1.588 1.5Z",clipRule:"evenodd"})]}),Y4=X4,J4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.222 4.222a1.1 1.1 0 0 1 1.556 0l14 14a1.1 1.1 0 1 1-1.556 1.556l-14-14a1.1 1.1 0 0 1 0-1.556Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.778 4.222a1.1 1.1 0 0 1 0 1.556l-14 14a1.1 1.1 0 1 1-1.556-1.556l14-14a1.1 1.1 0 0 1 1.556 0Z",clipRule:"evenodd"})]}),e3=J4,t3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.676 3c.284-.672.853-1 1.263-1h11.423c.566 0 1.438.628 1.438 1.923v13.154c0 1.056-.58 1.668-1.1 1.858V6.923C19.7 4.99 18.3 3 16.061 3H6.676Zm-2.272.007C4.765 1.41 6.056 0 7.939 0h11.423C21.599 0 23 1.99 23 3.923v13.154c0 1.865-1.303 3.782-3.403 3.916C19.235 22.59 17.944 24 16.06 24H4.638C2.401 24 1 22.01 1 20.077V6.923c0-1.865 1.303-3.782 3.404-3.916ZM3.2 6.923C3.2 5.628 4.072 5 4.638 5h11.423c.567 0 1.439.628 1.439 1.923v13.154c0 1.295-.872 1.923-1.439 1.923H4.638c-.566 0-1.438-.628-1.438-1.923V6.923Z",clipRule:"evenodd"})]}),nk=t3,n3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.461 3.689a.955.955 0 0 1 .675-.28h3.819a.955.955 0 0 1 .954.955v.954H9.182v-.954c0-.254.1-.496.28-.675Zm7.357.675v.954H20.636a.955.955 0 0 1 0 1.91h-.954v12.408a2.864 2.864 0 0 1-2.864 2.864H7.273a2.864 2.864 0 0 1-2.864-2.864V7.227h-.954a.955.955 0 1 1 0-1.909H7.273v-.954A2.864 2.864 0 0 1 10.136 1.5h3.819a2.864 2.864 0 0 1 2.863 2.864Zm-10.5 2.863v12.41a.954.954 0 0 0 .955.954h9.545a.955.955 0 0 0 .955-.955V7.227H6.318Zm3.818 2.864c.528 0 .955.427.955.955v5.727a.955.955 0 1 1-1.91 0v-5.727c0-.528.428-.955.955-.955Zm4.773 6.682v-5.727a.955.955 0 0 0-1.909 0v5.727a.955.955 0 1 0 1.91 0Z",clipRule:"evenodd"})]}),r3=n3,s3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.879 3.879A3 3 0 0 1 4 3h7a1 1 0 1 1 0 2H4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7a1 1 0 1 1 2 0v7a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V6a3 3 0 0 1 .879-2.121Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20 2.879c-.297 0-.583.118-.793.328l-9.304 9.304-.529 2.115 2.115-.529 9.304-9.304A1.121 1.121 0 0 0 20 2.879Zm-2.207-1.086a3.121 3.121 0 0 1 4.414 4.414l-9.5 9.5a1 1 0 0 1-.464.263l-4 1a1 1 0 0 1-1.213-1.212l1-4a1 1 0 0 1 .263-.465l9.5-9.5Z",clipRule:"evenodd"})]}),rk=s3,i3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 12a9 9 0 1 1 18 0 9 9 0 0 1-18 0Zm9-11C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1ZM8.293 15.707a1 1 0 0 1 0-1.414L10.586 12 8.293 9.707a1 1 0 0 1 1.414-1.414L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414 0Z",clipRule:"evenodd"})]}),o3=i3,a3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.91 9.14v1.27H8.25a4.7 4.7 0 0 0-3.86 1.98L1.5 16.53V6.4a2.3 2.3 0 0 1 .77-1.69A2.68 2.68 0 0 1 4.11 4h3.73a2.68 2.68 0 0 1 1.84.71c.25.22.45.48.58.77.13.29.2.6.2.92v.34h7.84c.7.01 1.35.27 1.84.71.49.45.76 1.06.77 1.7ZM8.25 11.92h14.47c.63 0 1 .68.64 1.18l-3.52 5.04a3.13 3.13 0 0 1-2.57 1.32H2.79c-.62 0-.99-.68-.64-1.18l3.53-5.04a3.13 3.13 0 0 1 2.57-1.32Z",clipRule:"evenodd"})]}),sk=a3,l3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.093 2.58A1 1 0 0 1 2 2h20a1 1 0 0 1 .764 1.646L15 12.826V21a1 1 0 0 1-1.447.894l-4-2A1 1 0 0 1 9 19v-6.174l-7.764-9.18a1 1 0 0 1-.143-1.067ZM4.155 4l6.609 7.814a1 1 0 0 1 .236.646v5.922l2 1V12.46a1 1 0 0 1 .236-.646L19.845 4H4.155Z",clipRule:"evenodd"})]}),u3=l3,c3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.057 5.5A.057.057 0 0 0 3 5.557v13.03h18V7.875h-8.697a1 1 0 0 1-1-1c0-.759-.615-1.374-1.374-1.374H3.057ZM1 5.557C1 4.42 1.92 3.5 3.057 3.5h6.872c1.515 0 2.797.999 3.223 2.374H21a2 2 0 0 1 2 2v10.714a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V5.557Z",clipRule:"evenodd"})]}),d3=c3,f3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.726 3.29A9.008 9.008 0 0 0 3.055 11H7.05a16.3 16.3 0 0 1 2.676-7.71Zm4.548 0A16.3 16.3 0 0 1 16.95 11h3.995a9.008 9.008 0 0 0-6.67-7.71Zm.668 7.71A14.3 14.3 0 0 0 12 3.55 14.3 14.3 0 0 0 9.058 11h5.884Zm-5.884 2h5.884A14.3 14.3 0 0 1 12 20.45 14.3 14.3 0 0 1 9.058 13ZM7.05 13H3.055a9.008 9.008 0 0 0 6.67 7.71A16.3 16.3 0 0 1 7.05 13Zm7.224 7.71A16.3 16.3 0 0 0 16.95 13h3.995a9.008 9.008 0 0 1-6.67 7.71ZM12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11Z",clipRule:"evenodd"})]}),ik=f3,h3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.01 17a1 1 0 0 1-1-1v-5a1 1 0 1 1 2 0v5a1 1 0 0 1-1 1ZM13.01 7.5a1 1 0 0 1-1 1H12a1 1 0 1 1 0-2h.01a1 1 0 0 1 1 1Z",clipRule:"evenodd"})]}),p3=h3,m3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.672 5.558a7.96 7.96 0 0 0-9.841.397 7.95 7.95 0 0 0-1.908 9.66 7.964 7.964 0 0 0 8.949 4.12A7.948 7.948 0 0 0 19.962 12a1.021 1.021 0 1 1 2.045 0A9.994 9.994 0 0 1 7.83 21.083a10.01 10.01 0 0 1-5.634-11.027 9.991 9.991 0 0 1 9.402-8.048c2.244-.09 4.453.577 6.272 1.895a1.022 1.022 0 1 1-1.198 1.655Z",clipRule:"evenodd"})]}),g3=m3,v3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("circle",{cx:12,cy:4,r:2.5,fill:"currentColor"}),f.jsx("circle",{cx:12,cy:12,r:2.5,fill:"currentColor"}),f.jsx("circle",{cx:12,cy:20,r:2.5,fill:"currentColor"})]}),ok=v3,y3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M13 4a1 1 0 1 0-2 0v7H4a1 1 0 1 0 0 2h7v7a1 1 0 1 0 2 0v-7h7a1 1 0 1 0 0-2h-7V4Z",clipRule:"evenodd"})]}),w3=y3,x3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.012 7.871a1.5 1.5 0 0 1 2.117.141L12 14.722l5.871-6.71a1.5 1.5 0 1 1 2.258 1.976l-7 8a1.5 1.5 0 0 1-2.258 0l-7-8a1.5 1.5 0 0 1 .141-2.117Z",clipRule:"evenodd"})]}),gc=x3,S3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.129 4.012a1.5 1.5 0 0 1-.141 2.117L9.278 12l6.71 5.871a1.5 1.5 0 0 1-1.976 2.258l-8-7a1.5 1.5 0 0 1 0-2.258l8-7a1.5 1.5 0 0 1 2.117.141Z",clipRule:"evenodd"})]}),b3=S3,E3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.871 19.988a1.5 1.5 0 0 1 .141-2.117L14.722 12l-6.71-5.871A1.5 1.5 0 0 1 9.988 3.87l8 7a1.5 1.5 0 0 1 0 2.258l-8 7a1.5 1.5 0 0 1-2.117-.141Z",clipRule:"evenodd"})]}),tp=E3,C3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.988 17.129a1.5 1.5 0 0 1-2.117-.141L12 10.278l-5.871 6.71a1.5 1.5 0 0 1-2.258-1.976l7-8a1.5 1.5 0 0 1 2.258 0l7 8a1.5 1.5 0 0 1-.141 2.117Z",clipRule:"evenodd"})]}),R3=C3,k3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5 4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h1v-7a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v7h1a1 1 0 0 0 1-1V8.414L15.586 4H8v3h7a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1V4H5Zm2-2H5a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V8a1 1 0 0 0-.293-.707l-5-5A1 1 0 0 0 16 2H7Zm1 12v6h8v-6H8Z",clipRule:"evenodd"})]}),ak=k3,P3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 10a7 7 0 1 1 14 0 7 7 0 0 1-14 0Zm7-9a9 9 0 1 0 5.7 15.96 1 1 0 0 0 .24.4l4.35 4.35a1 1 0 0 0 1.42-1.42l-4.35-4.35a1 1 0 0 0-.4-.24A9 9 0 0 0 11 1Z",clipRule:"evenodd"})]}),O3=P3,N3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.59 8.192a1 1 0 0 1 .218 1.397l-4.375 6a1 1 0 0 1-1.584.042L8.224 12.4a1 1 0 0 1 1.552-1.261l1.806 2.223 3.61-4.951a1 1 0 0 1 1.397-.219Z",clipRule:"evenodd"})]}),j3=N3,T3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("g",{fill:"currentColor",fillRule:"evenodd",clipPath:"url(#users_svg__a)",clipRule:"evenodd",children:f.jsx("path",{d:"M19.055 12.803a1 1 0 0 1 1.272-.618c1.128.39 2.061 1.247 2.7 2.351.64 1.106.972 2.435.973 3.782V21a1 1 0 1 1-2 0v-2.681c0-1.03-.258-2.009-.704-2.782-.448-.773-1.034-1.258-1.623-1.462a1 1 0 0 1-.618-1.272ZM15.187 1.384a1 1 0 0 1 1.036-.962 5.129 5.129 0 0 1 2.11 9.71 1 1 0 1 1-.896-1.788 3.129 3.129 0 0 0-1.288-5.924 1 1 0 0 1-.962-1.036ZM1.505 15.694C2.481 14.622 3.825 14 5.25 14h8.5c1.424 0 2.769.622 3.744 1.694.974 1.068 1.506 2.498 1.506 3.973V22a1 1 0 1 1-2 0v-2.333c0-1.001-.363-1.945-.984-2.627-.618-.679-1.436-1.04-2.266-1.04h-8.5c-.83 0-1.648.361-2.266 1.04-.621.682-.984 1.626-.984 2.627V22a1 1 0 1 1-2 0v-2.333c0-1.475.533-2.905 1.505-3.974ZM9.5 3a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7ZM4 6.5a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0Z"})}),f.jsx("defs",{children:f.jsx("clipPath",{id:"users_svg__a",children:f.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),lk=T3;function o0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=o0(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function V(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=o0(e))&&(r&&(r+=" "),r+=t);return r}const a0=x.forwardRef(({type:e="success",className:t="",children:n,button:r,isDismissible:s=!1,isToast:i=!1,autoClose:o=!1,autoCloseDelay:a=3e3,onClose:l,onVisibilityChange:u},c)=>{const[d,h]=x.useState(!0),p=x.useRef(null),g=x.useCallback(()=>{h(!1),l==null||l()},[l]);x.useImperativeHandle(c,()=>({show:y,hide:g,...p.current})),x.useLayoutEffect(()=>{u==null||u(d)},[d,u]),x.useEffect(()=>{o&&d&&setTimeout(()=>{g()},a)},[o,a,g,d]);const y=()=>{h(!0)},S={success:{icon:f.jsx(j3,{}),classModifier:"alert-success"},warning:{icon:f.jsx(Q4,{}),classModifier:"alert-warning"},info:{icon:f.jsx(p3,{}),classModifier:"alert-info"},danger:{icon:f.jsx(o3,{}),classModifier:"alert-danger"}},m={"is-dismissible":s,"is-toast ":i},v=V("alert gap-12",S[e].classModifier,m,t);return f.jsx(f.Fragment,{children:d?f.jsxs("div",{ref:p,className:v,role:"alert",children:[S[e].icon,f.jsx("div",{className:"alert-content small",children:n}),r&&f.jsx("div",{className:"ms-12",children:r}),s&&f.jsx("div",{className:"btn-close-container",children:f.jsx("button",{type:"button",className:"btn btn-close","data-bs-dismiss":"alert","aria-label":"Close",onClick:g})}),o&&f.jsx("div",{className:"alert-progress",style:{transform:"scaleX(0)"}})]}):null})});a0.displayName="Alert";const Tt=a0,l0=x.forwardRef(({children:e,render:t,isFullscreen:n=!1},r)=>{const s=V("d-flex flex-wrap p-16 gap-8 border-bottom bg-white",{"justify-content-between":t,"mx-n16":!n,"z-3 top-0 start-0 end-0 position-fixed":n});return f.jsxs("div",{ref:r,className:s,children:[e,t?f.jsx("div",{className:"d-flex align-items-center ms-auto gap-8",children:t()}):null]})});l0.displayName="AppHeader";const _3=l0,u0=x.forwardRef(({src:e,alt:t,imgPlaceholder:n,ratio:r,objectFit:s,className:i,...o},a)=>{const[l]=Qa(),u=n??`${l}/common/image-placeholder.png`,{imgSrc:c,onError:d}=F4({src:e,placeholder:u}),h={"ratio ratio-1x1":r==="1","ratio ratio-4x3":r==="4","ratio ratio-16x9":r==="16","ratio ratio-21x9":r==="21"},p={"object-fit-contain":s==="contain","object-fit-cover":s==="cover","object-fit-fill":s==="fill","object-fit-scale":s==="scale","object-fit-none":s==="none"},g=V({...h}),y=V({...p},i),S=f.jsx("img",{alt:t,onError:d,ref:a,src:c,className:y,...o});return r?f.jsx("div",{className:g,children:S}):S});u0.displayName="Image";const c0=u0,d0=x.forwardRef(({app:e,size:t="24",iconFit:n="contain",variant:r="square"},s)=>{const{isIconUrl:i,getIconCode:o}=Jg(),[,a]=Qa(),l=r==="square",u=r==="rounded",c=r==="circle",d=n==="contain",h=n==="ratio",p={"icon-xs":t==="24","icon-sm":t==="40","icon-md":t==="48","icon-lg":t==="80","icon-xl":t==="160"},g={square:l,rounded:u,"rounded-circle":c},y={"icon-contain":d,"icon-ratio":h},S=(e==null?void 0:e.icon)!==void 0?e.icon:"placeholder",m=(e==null?void 0:e.displayName)!==void 0?e.displayName:"",v=e?o(e):"",w=i(S),b=v||"placeholder",C=V("app-icon",{...p,...g,...y,[`bg-light-${b}`]:b&&!d,[`color-app-${b}`]:b});return w?f.jsx(c0,{src:S,alt:m,objectFit:"contain",width:t,height:t,className:"h-full"}):f.jsx("div",{className:C,style:{width:t+"px",height:t+"px"},children:f.jsx("svg",{ref:s,width:t,height:t,role:"img",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:f.jsx("use",{xlinkHref:`${a}/apps.svg#${b}`})})})});d0.displayName="AppIcon";const vc=d0,f0=x.forwardRef(({variant:e="square",size:t="md",alt:n,src:r,imgPlaceholder:s,className:i,...o},a)=>{const[l]=Qa(),u=s||`${l}/avatar/no-avatar.svg`,y=V("avatar",{...{"avatar-xs":t==="xs","avatar-sm":t==="sm","avatar-md":t==="md","avatar-lg":t==="lg","avatar-xl":t==="xl"},...{square:e==="square",rounded:e==="rounded","rounded-circle":e==="circle"}},i);return f.jsx("div",{ref:a,className:y,children:f.jsx(c0,{src:r||u,alt:n,imgPlaceholder:u,...o})})});f0.displayName="Avatar";const np=f0,h0=x.forwardRef(({children:e,className:t,...n},r)=>{const s=V("breadcrumb-item",t);return f.jsx("li",{ref:r,className:s,...n,children:e})});h0.displayName="BreadcrumbItem";const Kl=h0,p0=x.forwardRef(({children:e,className:t},n)=>{const r=V("breadcrumb d-flex flex-nowrap align-items-center mb-0",t);return f.jsx("ol",{ref:n,className:r,children:e})});p0.displayName="BreadcrumbList";const I3=p0,m0=x.forwardRef(({children:e,app:t,className:n},r)=>{const{t:s}=pe(),{getIconClass:i}=Jg(),o=V("d-flex align-items-center mb-0",i(t),n),a={"--edifice-breadcrumb-divider":"-"};return f.jsx("nav",{ref:r,className:o,"aria-label":s("breadcrumb"),style:a,children:e})});m0.displayName="BreadcrumbNav";const A3=m0,g0=x.forwardRef(({level:e="h1",headingStyle:t="h1",children:n,className:r,...s},i)=>{const o=V(t,r);return f.jsx(e,{ref:i,className:o,...s,children:n})});g0.displayName="Heading";const rp=g0,v0=x.forwardRef((e,t)=>{const{isLoading:n,loadingIcon:r,loadingPosition:s="left",children:i,...o}=e,a=()=>{let u;return r?u=r:u=f.jsx(g3,{...o,"aria-label":"Loading"}),u},l=V("loading",{"is-loading":n});return f.jsxs("div",{className:l,role:"status",ref:t,children:[(!s||s==="left")&&a(),i,s==="right"&&a()]})});v0.displayName="Loading";const L3=v0,y0=x.forwardRef(({color:e="primary",type:t="button",size:n="md",children:r,isLoading:s,loadingIcon:i,loadingPosition:o,leftIcon:a,rightIcon:l,className:u,variant:c="filled",...d},h)=>{const p=V("btn",{[`btn-filled btn-${e}`]:c==="filled",[`btn-${c}-${e}`]:c==="outline"||c==="ghost","btn-icon":!r,"btn-loading":s,"btn-lg":n==="lg","btn-sm":n==="sm"},u);return f.jsx("button",{ref:h,className:p,type:t,...d,children:s?f.jsx(L3,{isLoading:!0,loadingIcon:i,loadingPosition:o,children:r}):f.jsxs("span",{children:[a,r,l]})})});y0.displayName="Button";const Jr=y0,w0=x.forwardRef(({icon:e,className:t,...n},r)=>{const s={...n,className:V("btn-icon btn-sm",t)};return f.jsx(Jr,{ref:r,...s,children:e})});w0.displayName="IconButton";const Ka=w0,x0=x.forwardRef(({app:e,name:t},n)=>{const{t:r}=pe();return f.jsx(A3,{app:e,ref:n,className:"mw-100",children:f.jsx(I3,{className:"gap-12 mw-100",children:t?f.jsxs(f.Fragment,{children:[f.jsx(Kl,{children:f.jsxs("a",{href:e==null?void 0:e.address,className:"d-flex",children:[f.jsx(Ka,{variant:"ghost",color:"tertiary",icon:f.jsx(b3,{}),"aria-label":r(e==null?void 0:e.displayName)}),f.jsx(vc,{app:e,size:"40"})]})}),f.jsx(Kl,{className:"text-truncate",children:f.jsx(rp,{level:"h1",headingStyle:"h3",className:"text-truncate",children:t})})]}):f.jsxs(Kl,{className:"gap-12 d-flex align-items-center",children:[f.jsx(vc,{app:e,size:"40"}),f.jsx(rp,{level:"h1",headingStyle:"h3",className:"d-none d-md-flex",children:r(e==null?void 0:e.displayName)})]})})})});x0.displayName="Breadcrumb";const M3=x0,S0=x.forwardRef(({icon:e=f.jsx(O3,{}),onClick:t,...n},r)=>{const s=V("btn-search");return f.jsx(Ka,{ref:r,className:s,icon:e,...n,onClick:t})});S0.displayName="SearchButton";const b0=S0,D3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M19.935 17.51c.725 0 1.348.264 1.868.792.52.529.78 1.162.78 1.898 0 .737-.26 1.37-.78 1.898-.52.529-1.135.793-1.844.793-.71 0-1.333-.264-1.869-.793a2.52 2.52 0 0 1-.78-1.922c0-.288.063-.6.19-.936l-3.997-2.931c-.773.8-1.703 1.2-2.79 1.2-1.089 0-2.019-.392-2.791-1.176-.773-.785-1.167-1.738-1.183-2.86 0-.143.024-.352.071-.624l-3.168-1.057a1.248 1.248 0 0 1-.852.337c-.378 0-.693-.129-.946-.385a1.315 1.315 0 0 1-.378-.96c0-.385.126-.698.378-.938.253-.24.568-.368.946-.384.316 0 .584.104.804.312.221.208.37.457.45.745l3.192 1.08a3.798 3.798 0 0 1 1.443-1.56 3.839 3.839 0 0 1 2.033-.577c.82 0 1.577.248 2.27.745l4.706-4.781c-.252-.48-.378-.921-.378-1.321 0-.737.26-1.37.78-1.898.52-.529 1.143-.793 1.869-.793.725 0 1.34.264 1.844.793.505.528.765 1.16.78 1.898a2.417 2.417 0 0 1-.78 1.873c-.536.513-1.159.777-1.868.793-.41 0-.844-.136-1.3-.408l-4.707 4.804c.49.705.733 1.474.733 2.307 0 .592-.134 1.177-.402 1.753l3.997 2.907c.52-.416 1.08-.624 1.679-.624Z"})]}),F3=D3,$3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M22.995 13.153c0 1.393-.29 2.722-.872 3.987a10.627 10.627 0 0 1-2.336 3.292c-.975.929-2.147 1.665-3.516 2.21-1.369.544-2.79.817-4.26.817-1.472 0-2.9-.273-4.287-.817-1.386-.545-2.55-1.281-3.49-2.21a12.338 12.338 0 0 1-2.362-3.291A8.11 8.11 0 0 1 1 13.152c0-1.634.385-3.164 1.155-4.589.77-1.425 1.848-2.634 3.234-3.627.411-.289.873-.4 1.386-.337.514.064.907.289 1.181.673.308.368.428.793.36 1.273-.07.48-.309.857-.72 1.13a6.993 6.993 0 0 0-2.155 2.426 6.383 6.383 0 0 0-.18 5.717 6.98 6.98 0 0 0 1.566 2.186c.65.609 1.428 1.097 2.335 1.466a7.498 7.498 0 0 0 2.85.552 7.31 7.31 0 0 0 2.823-.552 8.296 8.296 0 0 0 2.36-1.466 6.04 6.04 0 0 0 1.567-2.186c.359-.849.547-1.738.564-2.666 0-1.09-.256-2.107-.77-3.051-.513-.945-1.232-1.754-2.156-2.427a1.752 1.752 0 0 1-.719-1.129c-.085-.464.035-.889.36-1.273.29-.384.693-.609 1.206-.673.514-.064.967.048 1.36.337 1.386.977 2.464 2.186 3.234 3.627a9.599 9.599 0 0 1 1.155 4.589ZM13.833 2.846v8.6c0 .465-.18.866-.54 1.202-.359.336-.786.505-1.283.505-.496 0-.932-.169-1.309-.505-.376-.336-.556-.737-.539-1.201v-8.6c0-.465.18-.865.54-1.202.359-.336.795-.504 1.308-.504.514 0 .941.168 1.284.504.342.337.521.737.539 1.201Z"})]}),sp=$3,z3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M20.584 13.536v7.458c0 .28-.098.512-.294.699a1.062 1.062 0 0 1-.667.307H13.91v-5.978h-3.817V22H4.383a.848.848 0 0 1-.668-.307 1.162 1.162 0 0 1-.293-.699v-7.569l8.567-7.375 8.568 7.375c.018.018.027.055.027.111Zm3.31-1.09-.908 1.146a.543.543 0 0 1-.32.168h-.054a.59.59 0 0 1-.32-.084L11.989 4.682 1.687 13.676a.505.505 0 0 1-.347.084.544.544 0 0 1-.32-.168l-.935-1.145a.524.524 0 0 1-.08-.363.589.589 0 0 1 .16-.335l10.703-9.33c.32-.28.694-.419 1.121-.419.427 0 .81.14 1.148.419l3.63 3.156V2.56c0-.15.044-.27.133-.363a.458.458 0 0 1 .347-.14h2.856c.143 0 .258.046.347.14a.504.504 0 0 1 .134.363v6.34l3.256 2.85c.107.074.16.186.16.335 0 .149-.036.27-.107.363Z"})]}),U3=z3,B3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M1.898 22.555c-.072-.145-.096-1.37-.048-2.691l.048-2.402h5.261v5.26l-2.595.049c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.049-.145-.073-1.37-.049-2.691l.072-2.402h5.238v5.26l-2.571.049c-2.018.048-2.595 0-2.69-.216Zm7.759 0c-.048-.145-.072-1.37-.048-2.691l.072-2.402h5.237v5.26l-2.57.049c-1.994.048-2.595 0-2.691-.216Zm-15.52-7.76c-.071-.168-.095-1.37-.047-2.69l.048-2.403h5.261v5.261l-2.595.048c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.238v5.261l-2.571.048c-2.018.048-2.595 0-2.69-.216Zm7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.237v5.261l-2.57.048c-1.994.048-2.595 0-2.691-.216ZM1.897 7.011c-.071-.144-.095-1.345-.047-2.666l.048-2.402h5.261V7.18l-2.595.072c-1.994.048-2.594 0-2.666-.24Zm7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.238V7.18l-2.571.072c-2.018.048-2.595 0-2.69-.24Zm7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.237V7.18l-2.57.072c-1.994.048-2.595 0-2.691-.24Z"})]}),ip=B3,V3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12ZM7.123 7.667C8.276 5.958 9.745 5 12.013 5 14.425 5 17 6.941 17 9.5c0 2.113-1.377 2.932-2.418 3.552-.633.376-1.142.68-1.142 1.154v.169a.693.693 0 0 1-.682.703h-2.06a.693.693 0 0 1-.681-.703v-.287c0-1.768 1.269-2.5 2.266-3.075l.073-.042c.863-.499 1.392-.838 1.392-1.499 0-.874-1.082-1.454-1.956-1.454-1.112 0-1.64.53-2.351 1.449a.668.668 0 0 1-.945.121L7.27 8.63a.718.718 0 0 1-.147-.963ZM9.76 17.97c0-1.12.883-2.03 1.969-2.03 1.085 0 1.968.91 1.968 2.03 0 1.119-.883 2.029-1.968 2.029-1.086 0-1.969-.91-1.969-2.03Z",clipRule:"evenodd"})]}),H3=V3,q3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"m.5 21.257 7.46-8.216 4.052 2.403 4.052-2.403 7.46 8.216H.5Zm0-2.738V8.573l5.848 3.531L.5 18.52Zm0-12.084V3.048h23.023v3.387l-11.511 6.847L.5 6.435Zm17.176 5.67 5.848-3.532v9.946l-5.848-6.415Z"})]}),op=q3,Q3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M13.07 13.07V6.54h-2.14v6.53h2.14zm0 4.4v-2.2h-2.14v2.2h2.14zM24 12l-2.65 3.01.35 4.04-3.93.86-2.04 3.48L12 21.8l-3.73 1.6-2.04-3.42-3.93-.92.35-4.04L0 12l2.65-3.06-.35-3.99 3.93-.86L8.27.6 12 2.2 15.73.6l2.04 3.48 3.93.86L21.34 9z"})]}),W3=Q3,K3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M11.684 2C8.66 2 6.702 3.277 5.165 5.556A.958.958 0 0 0 5.36 6.84l1.634 1.278a.89.89 0 0 0 1.26-.162c.95-1.226 1.653-1.932 3.136-1.932 1.165 0 2.607.773 2.607 1.939 0 .88-.705 1.333-1.856 1.998-1.342.776-3.118 1.742-3.118 4.157v.382c0 .518.407.938.909.938h2.746c.502 0 .91-.42.91-.938v-.226c0-1.674 4.745-1.743 4.745-6.274 0-3.412-3.432-6-6.648-6Zm-.38 14.588c-1.446 0-2.624 1.214-2.624 2.706S9.858 22 11.305 22s2.624-1.214 2.624-2.706-1.177-2.706-2.624-2.706Z"})]}),Z3=K3,G3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.051 12.366a455.802 455.802 0 0 1-2.746-1.822A6.543 6.543 0 0 1 .74 9.067C.248 8.44.002 7.859.002 7.322a2.7 2.7 0 0 1 .141-.905c.098-.286.242-.542.424-.752C.935 5.222 1.462 5 2.15 5h19.7c.541-.016 1.071.195 1.507.6.424.4.636.882.636 1.446 0 .673-.218 1.317-.657 1.93a6.217 6.217 0 0 1-1.632 1.567c-3.358 2.226-5.447 3.61-6.267 4.156l-.242.167-.323.222a15.448 15.448 0 0 1-1.42.902 4.052 4.052 0 0 1-.77.345 2.215 2.215 0 0 1-.67.115h-.026a2.222 2.222 0 0 1-.67-.116 4.052 4.052 0 0 1-.77-.344c-.272-.154-.506-.29-.697-.415a30.199 30.199 0 0 1-.723-.487c-.288-.2-.477-.33-.565-.389-.81-.545-1.98-1.323-3.51-2.334Zm10.943 3.962c1.517-1.052 3.74-2.524 6.667-4.416.478-.306.927-.68 1.339-1.113v10.16c0 .564-.209 1.044-.63 1.446-.437.405-.97.614-1.512.594H2.149c-.545.02-1.08-.192-1.52-.601C.21 21.995 0 21.52 0 20.95V10.8c.416.437.871.81 1.356 1.113 3.232 2.099 5.45 3.571 6.656 4.416.512.358.926.637 1.243.837a7.7 7.7 0 0 0 1.265.614c.475.198.97.303 1.47.313h.026c.5-.01.995-.115 1.47-.313a7.647 7.647 0 0 0 1.265-.614c.32-.2.735-.479 1.243-.837Z",clipRule:"evenodd"})]}),X3=G3,Y3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("g",{clipPath:"url(#one-profile_svg__a)",children:f.jsx("path",{fill:"currentColor",d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm0 4.65a4.26 4.26 0 1 1 0 8.51 4.26 4.26 0 0 1 0-8.51Zm0 16.64a9.27 9.27 0 0 1-7.09-3.3 5.4 5.4 0 0 1 4.77-2.9c.11 0 .23.03.34.06.63.2 1.29.33 1.98.33.7 0 1.35-.13 1.98-.33.11-.03.23-.05.34-.05a5.4 5.4 0 0 1 4.77 2.89 9.27 9.27 0 0 1-7.09 3.3Z"})}),f.jsx("defs",{children:f.jsx("clipPath",{id:"one-profile_svg__a",children:f.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),J3=Y3,e5=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M1.27 11.552a7.745 7.745 0 0 1 0-4.156c.38-1.377 1.095-2.579 2.149-3.604a7.928 7.928 0 0 1 2.716-1.777c1.02-.4 2.074-.6 3.161-.6 1.07 0 2.115.2 3.136.6 1.02.4 1.926.993 2.716 1.777a7.904 7.904 0 0 1 1.902 2.86 7.812 7.812 0 0 1 .518 3.29 7.647 7.647 0 0 1-.889 3.171c.461.129.865.36 1.21.697l4.297 4.156c.576.56.864 1.241.864 2.042 0 .801-.288 1.482-.864 2.042-.576.56-1.276.841-2.099.841-.823 0-1.523-.28-2.099-.84l-4.272-4.18a2.423 2.423 0 0 1-.74-1.178 8.302 8.302 0 0 1-3.68.84c-1.087 0-2.14-.2-3.16-.6a8.102 8.102 0 0 1-2.717-1.753 7.854 7.854 0 0 1-2.149-3.628Zm2.495-2.066c0 1.49.535 2.755 1.605 3.796 1.086 1.04 2.395 1.561 3.926 1.561 1.515 0 2.807-.52 3.877-1.561 1.07-1.041 1.613-2.307 1.63-3.796.016-1.49-.527-2.755-1.63-3.796-1.087-1.057-2.379-1.585-3.877-1.585-1.515 0-2.823.528-3.926 1.585C4.3 6.731 3.765 7.996 3.765 9.486Z"})]}),t5=e5,n5=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M0 24.58V.53h24.05v4.28h-2.62V7.1h2.62v4.28h-2.62v2.35h2.62V18h-2.62v2.3h2.62v4.29H0zm4.64-6.85h12.12V14l-4.5-2.67q.9-.46 1.4-1.3t.53-1.85q0-1.4-1.01-2.43T10.7 4.72 8.25 5.75 7.24 8.18q0 1.03.53 1.85t1.4 1.3L4.63 14v3.73z"})]}),r5=n5,E0=x.forwardRef(({label:e,disabled:t=!1,checked:n=!1,indeterminate:r=!1,...s},i)=>{const o=x.useRef(null);x.useImperativeHandle(i,()=>({...o.current})),x.useEffect(()=>{o.current.indeterminate=r},[o,r]);const a=x.useId(),l={type:"checkbox",checked:n,disabled:t,ref:o,className:V(s.className,"form-check-input c-pointer"),id:a},u={...s,...l};return f.jsxs("div",{className:"form-check d-flex align-items-center gap-8",children:[f.jsx("input",{...u}),e&&f.jsx("label",{className:"form-check-label",htmlFor:u.id,children:e})]})});E0.displayName="Checkbox";const s5=E0,C0=x.createContext(null),Ni=()=>{const e=x.useContext(C0);if(!e)throw new Error("Cannot be rendered outside the Dropdown Component");return e},R0=x.createContext(null),Md=()=>{const e=x.useContext(R0);if(!e)throw new Error("Cannot be rendered outside the FormControl component");return e},k0=x.forwardRef(({noValidationIcon:e,placeholder:t,size:n="md",type:r="text",className:s,...i},o)=>{const{id:a,isRequired:l,isReadOnly:u,status:c}=Md(),d=V({"form-control":!u,"form-control-lg":n==="lg","form-control-sm":n==="sm","is-invalid":c==="invalid","is-valid":c==="valid","form-control-plaintext":u,"no-validation-icon":e},s);return f.jsx("input",{ref:o,id:a,className:d,type:r,placeholder:t,required:l,readOnly:u,...i})});k0.displayName="Input";const P0=k0,O0=({children:e})=>{const{status:t}=Md(),n=V("form-text",{"is-invalid":t==="invalid",valid:t==="valid"});return f.jsx("p",{className:n,children:f.jsx("em",{children:e})})};O0.displayName="Text";const i5=O0,N0=x.forwardRef(({leftIcon:e,optionalText:t="Optional",requiredText:n="*",children:r,className:s},i)=>{const{id:o,isOptional:a,isRequired:l}=Md(),u=V("form-label",{"has-icon":e},s),c=a&&!l,d=l&&!a;return x.useEffect(()=>{if(a&&l)throw new Error("Cannot be optional and required at the same time")},[a,l]),f.jsxs("label",{ref:i,htmlFor:o,className:u,children:[e,r,c&&f.jsxs("em",{className:"optional",children:["- ",t]}),d&&f.jsx("em",{className:"required",children:n})]})});N0.displayName="Label";const o5=N0,j0=x.forwardRef(({children:e,className:t,id:n,isOptional:r,isReadOnly:s,isRequired:i,status:o,...a},l)=>{const u=x.useMemo(()=>({id:n,isOptional:r,isRequired:i,isReadOnly:s,status:o}),[n,r,s,i,o]);return f.jsx(R0.Provider,{value:u,children:f.jsx("div",{ref:l,className:t,...a,children:e})})}),a5=Object.assign(j0,{Label:o5,Input:P0,Text:i5});j0.displayName="FormControl";const yc=a5,T0=({children:e,value:t,model:n,onChange:r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=Ni(),{onMenuItemKeyDown:a,onMenuItemMouseEnter:l}=s,u=x.useId(),c=n.includes(t),d={value:t,model:n,checked:c,readOnly:!0},h=V("dropdown-item c-pointer",{focus:o===u});return f.jsx("div",{id:u,ref:p=>i.current[u]=p,role:"menuitemcheckbox","aria-checked":c,onMouseUp:()=>r(t),onKeyDown:p=>a(p,()=>r(t)),onMouseEnter:l,tabIndex:t===n?0:-1,className:h,children:f.jsxs("div",{className:"d-flex gap-8 align-items-center justify-content-between position-relative",children:[e,f.jsx(s5,{...d})]})})};T0.displayName="Dropdown.CheckboxItem";const l5=T0,_0=({icon:e,onClick:t,children:n,...r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=Ni(),{onMenuItemKeyDown:a,onMenuItemMouseEnter:l}=s,u=()=>{t==null||t()},c=x.useId(),d=V("dropdown-item",{focus:o===c});return f.jsx("div",{id:c,role:"menuitem",ref:h=>i.current[c]=h,tabIndex:o===c?0:-1,className:d,"aria-current":o===c,onClick:u,onMouseEnter:l,onKeyDown:h=>a(h,t),...r,children:f.jsxs("div",{className:"d-flex gap-8 align-items-center",children:[e,n]})})};_0.displayName="Dropdown.Item";const u5=_0,I0=x.forwardRef(({children:e,block:t,...n},r)=>{const{menuProps:s,visible:i}=Ni(),{className:o,...a}=s,l={...a,...n},u=V({"w-100":t},o);return i?f.jsx("div",{ref:r,className:u,...l,children:e}):null});I0.displayName="Dropdown.Menu";const c5=I0,A0=x.forwardRef(({label:e,children:t},n)=>f.jsxs("div",{ref:n,role:"group",children:[f.jsx("span",{className:"small px-4",children:f.jsx("strong",{children:e})}),t]}));A0.displayName="Dropdown.MenuGroup";const d5=A0,L0=x.forwardRef(({model:e,icon:t,label:n=!1,disabled:r=!1,checked:s,...i},o)=>{const a=x.useId(),l={type:"radio",checked:s,disabled:r,ref:o,className:V(i.className,"form-check-input c-pointer",t&&"d-none"),id:a},u={...i,...l};return f.jsxs("div",{className:V("form-check d-flex align-items-center gap-8",t&&"ps-0"),children:[f.jsx("input",{...u}),t&&f.jsx("label",{htmlFor:u.id,className:V("c-pointer",e!==i.value&&"text-muted"),children:t}),!t&&n&&f.jsx("label",{className:"form-check-label",htmlFor:u.id,children:n})]})});L0.displayName="Radio";const f5=L0,M0=({children:e,value:t,model:n,onChange:r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=Ni(),{onMenuItemKeyDown:a,onMenuItemMouseEnter:l}=s,u=x.useId(),d={value:t,model:n,checked:t===n,readOnly:!0},h=V("dropdown-item c-pointer",{focus:o===u});return f.jsx("div",{id:u,ref:p=>i.current[u]=p,role:"menuitemradio","aria-checked":t===n,onMouseUp:()=>r(t),onKeyDown:p=>a(p,()=>r(t)),onMouseEnter:l,tabIndex:t===n?0:-1,className:h,children:f.jsxs("div",{className:"d-flex gap-8 align-items-center justify-content-between position-relative",children:[e,f.jsx(f5,{...d,className:"position-absolute start-0 end-0 top-0 bottom-0 opacity-0"})]})})};M0.displayName="Dropdown.RadioItem";const h5=M0,D0=()=>f.jsx("div",{role:"separator",className:"px-4 my-4",children:f.jsx("hr",{className:"m-0"})});D0.displayName="Dropdown.Separator";const p5=D0,F0=x.forwardRef(({label:e,icon:t,variant:n,disabled:r=!1,size:s,badgeContent:i,...o},a)=>{const{triggerProps:l,block:u}=Ni(),{className:c,...d}=l,h={...d,...o},p=V(s,n,{"w-100":u},c);return f.jsxs("button",{ref:a,className:p,disabled:r,...h,children:[t||null,e,i?f.jsx("span",{className:"badge text-bg-secondary rounded-pill",children:i}):f.jsx(R3,{width:16,height:16,className:"dropdown-toggle-caret"})]})});F0.displayName="Dropdown.Trigger";const m5=F0;function An(e){return $0(e)?(e.nodeName||"").toLowerCase():"#document"}function tt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ln(e){var t;return(t=($0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $0(e){return e instanceof Node||e instanceof tt(e).Node}function Je(e){return e instanceof Element||e instanceof tt(e).Element}function Bt(e){return e instanceof HTMLElement||e instanceof tt(e).HTMLElement}function ap(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof tt(e).ShadowRoot}function ji(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=vt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function g5(e){return["table","td","th"].includes(An(e))}function Dd(e){const t=Fd(),n=vt(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function v5(e){let t=Wr(e);for(;Bt(t)&&!Za(t);){if(Dd(t))return t;t=Wr(t)}return null}function Fd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Za(e){return["html","body","#document"].includes(An(e))}function vt(e){return tt(e).getComputedStyle(e)}function Ga(e){return Je(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Wr(e){if(An(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ap(e)&&e.host||ln(e);return ap(t)?t.host:t}function z0(e){const t=Wr(e);return Za(t)?e.ownerDocument?e.ownerDocument.body:e.body:Bt(t)&&ji(t)?t:z0(t)}function ui(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=z0(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=tt(s);return i?t.concat(o,o.visualViewport||[],ji(s)?s:[],o.frameElement&&n?ui(o.frameElement):[]):t.concat(s,ui(s,[],n))}const ci=Math.min,ct=Math.max,ma=Math.round,io=Math.floor,Ln=e=>({x:e,y:e}),y5={left:"right",right:"left",bottom:"top",top:"bottom"},w5={start:"end",end:"start"};function Xa(e,t){return typeof e=="function"?e(t):e}function sr(e){return e.split("-")[0]}function Ti(e){return e.split("-")[1]}function x5(e){return e==="x"?"y":"x"}function U0(e){return e==="y"?"height":"width"}function Ya(e){return["top","bottom"].includes(sr(e))?"y":"x"}function B0(e){return x5(Ya(e))}function S5(e,t,n){n===void 0&&(n=!1);const r=Ti(e),s=B0(e),i=U0(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=ga(o)),[o,ga(o)]}function b5(e){const t=ga(e);return[wc(e),t,wc(t)]}function wc(e){return e.replace(/start|end/g,t=>w5[t])}function E5(e,t,n){const r=["left","right"],s=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?i:o;default:return[]}}function C5(e,t,n,r){const s=Ti(e);let i=E5(sr(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(wc)))),i}function ga(e){return e.replace(/left|right|bottom|top/g,t=>y5[t])}function R5(e){return{top:0,right:0,bottom:0,left:0,...e}}function k5(e){return typeof e!="number"?R5(e):{top:e,right:e,bottom:e,left:e}}function va(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function lp(e,t,n){let{reference:r,floating:s}=e;const i=Ya(t),o=B0(t),a=U0(o),l=sr(t),u=i==="y",c=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,h=r[a]/2-s[a]/2;let p;switch(l){case"top":p={x:c,y:r.y-s.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-s.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Ti(t)){case"start":p[o]-=h*(n&&u?-1:1);break;case"end":p[o]+=h*(n&&u?-1:1);break}return p}const P5=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:c,y:d}=lp(u,r,l),h=r,p={},g=0;for(let y=0;y<a.length;y++){const{name:S,fn:m}=a[y],{x:v,y:w,data:b,reset:C}=await m({x:c,y:d,initialPlacement:r,placement:h,strategy:s,middlewareData:p,rects:u,platform:o,elements:{reference:e,floating:t}});if(c=v??c,d=w??d,p={...p,[S]:{...p[S],...b}},C&&g<=50){g++,typeof C=="object"&&(C.placement&&(h=C.placement),C.rects&&(u=C.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):C.rects),{x:c,y:d}=lp(u,h,l)),y=-1;continue}}return{x:c,y:d,placement:h,strategy:s,middlewareData:p}};async function V0(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:i,rects:o,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=Xa(t,e),g=k5(p),S=a[h?d==="floating"?"reference":"floating":d],m=va(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(S)))==null||n?S:S.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),v=d==="floating"?{...o.floating,x:r,y:s}:o.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),b=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},C=va(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:w,strategy:l}):v);return{top:(m.top-C.top+g.top)/b.y,bottom:(C.bottom-m.bottom+g.bottom)/b.y,left:(m.left-C.left+g.left)/b.x,right:(C.right-m.right+g.right)/b.x}}const O5=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...S}=Xa(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=sr(s),v=sr(a)===a,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),b=h||(v||!y?[ga(a)]:b5(a));!h&&g!=="none"&&b.push(...C5(a,y,g,w));const C=[a,...b],R=await V0(t,S),k=[];let P=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&k.push(R[m]),d){const I=S5(s,o,w);k.push(R[I[0]],R[I[1]])}if(P=[...P,{placement:s,overflows:k}],!k.every(I=>I<=0)){var _,F;const I=(((_=i.flip)==null?void 0:_.index)||0)+1,U=C[I];if(U)return{data:{index:I,overflows:P},reset:{placement:U}};let $=(F=P.filter(E=>E.overflows[0]<=0).sort((E,O)=>E.overflows[1]-O.overflows[1])[0])==null?void 0:F.placement;if(!$)switch(p){case"bestFit":{var A;const E=(A=P.map(O=>[O.placement,O.overflows.filter(L=>L>0).reduce((L,N)=>L+N,0)]).sort((O,L)=>O[1]-L[1])[0])==null?void 0:A[0];E&&($=E);break}case"initialPlacement":$=a;break}if(s!==$)return{reset:{placement:$}}}return{}}}};async function N5(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=sr(n),a=Ti(n),l=Ya(n)==="y",u=["left","top"].includes(o)?-1:1,c=i&&l?-1:1,d=Xa(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof g=="number"&&(p=a==="end"?g*-1:g),l?{x:p*c,y:h*u}:{x:h*u,y:p*c}}const j5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,s=await N5(t,e);return{x:n+s.x,y:r+s.y,data:s}}}},T5=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:s,elements:i}=t,{apply:o=()=>{},...a}=Xa(e,t),l=await V0(t,a),u=sr(n),c=Ti(n),d=Ya(n)==="y",{width:h,height:p}=r.floating;let g,y;u==="top"||u==="bottom"?(g=u,y=c===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(y=u,g=c==="end"?"top":"bottom");const S=p-l[g],m=h-l[y],v=!t.middlewareData.shift;let w=S,b=m;if(d){const R=h-l.left-l.right;b=c||v?ci(m,R):R}else{const R=p-l.top-l.bottom;w=c||v?ci(S,R):R}if(v&&!c){const R=ct(l.left,0),k=ct(l.right,0),P=ct(l.top,0),_=ct(l.bottom,0);d?b=h-2*(R!==0||k!==0?R+k:ct(l.left,l.right)):w=p-2*(P!==0||_!==0?P+_:ct(l.top,l.bottom))}await o({...t,availableWidth:b,availableHeight:w});const C=await s.getDimensions(i.floating);return h!==C.width||p!==C.height?{reset:{rects:!0}}:{}}}};function H0(e){const t=vt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Bt(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=ma(n)!==i||ma(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function $d(e){return Je(e)?e:e.contextElement}function Mr(e){const t=$d(e);if(!Bt(t))return Ln(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=H0(t);let o=(i?ma(n.width):n.width)/r,a=(i?ma(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const _5=Ln(0);function q0(e){const t=tt(e);return!Fd()||!t.visualViewport?_5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function I5(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==tt(e)?!1:t}function ir(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=$d(e);let o=Ln(1);t&&(r?Je(r)&&(o=Mr(r)):o=Mr(e));const a=I5(i,n,r)?q0(i):Ln(0);let l=(s.left+a.x)/o.x,u=(s.top+a.y)/o.y,c=s.width/o.x,d=s.height/o.y;if(i){const h=tt(i),p=r&&Je(r)?tt(r):r;let g=h.frameElement;for(;g&&r&&p!==h;){const y=Mr(g),S=g.getBoundingClientRect(),m=vt(g),v=S.left+(g.clientLeft+parseFloat(m.paddingLeft))*y.x,w=S.top+(g.clientTop+parseFloat(m.paddingTop))*y.y;l*=y.x,u*=y.y,c*=y.x,d*=y.y,l+=v,u+=w,g=tt(g).frameElement}}return va({width:c,height:d,x:l,y:u})}function A5(e){let{rect:t,offsetParent:n,strategy:r}=e;const s=Bt(n),i=ln(n);if(n===i)return t;let o={scrollLeft:0,scrollTop:0},a=Ln(1);const l=Ln(0);if((s||!s&&r!=="fixed")&&((An(n)!=="body"||ji(i))&&(o=Ga(n)),Bt(n))){const u=ir(n);a=Mr(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-o.scrollLeft*a.x+l.x,y:t.y*a.y-o.scrollTop*a.y+l.y}}function L5(e){return Array.from(e.getClientRects())}function Q0(e){return ir(ln(e)).left+Ga(e).scrollLeft}function M5(e){const t=ln(e),n=Ga(e),r=e.ownerDocument.body,s=ct(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ct(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Q0(e);const a=-n.scrollTop;return vt(r).direction==="rtl"&&(o+=ct(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function D5(e,t){const n=tt(e),r=ln(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const u=Fd();(!u||u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}function F5(e,t){const n=ir(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=Bt(e)?Mr(e):Ln(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,l=s*i.x,u=r*i.y;return{width:o,height:a,x:l,y:u}}function up(e,t,n){let r;if(t==="viewport")r=D5(e,n);else if(t==="document")r=M5(ln(e));else if(Je(t))r=F5(t,n);else{const s=q0(e);r={...t,x:t.x-s.x,y:t.y-s.y}}return va(r)}function W0(e,t){const n=Wr(e);return n===t||!Je(n)||Za(n)?!1:vt(n).position==="fixed"||W0(n,t)}function $5(e,t){const n=t.get(e);if(n)return n;let r=ui(e,[],!1).filter(a=>Je(a)&&An(a)!=="body"),s=null;const i=vt(e).position==="fixed";let o=i?Wr(e):e;for(;Je(o)&&!Za(o);){const a=vt(o),l=Dd(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||ji(o)&&!l&&W0(e,o))?r=r.filter(c=>c!==o):s=a,o=Wr(o)}return t.set(e,r),r}function z5(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?$5(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((u,c)=>{const d=up(t,c,s);return u.top=ct(d.top,u.top),u.right=ci(d.right,u.right),u.bottom=ci(d.bottom,u.bottom),u.left=ct(d.left,u.left),u},up(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function U5(e){return H0(e)}function B5(e,t,n){const r=Bt(t),s=ln(t),i=n==="fixed",o=ir(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Ln(0);if(r||!r&&!i)if((An(t)!=="body"||ji(s))&&(a=Ga(t)),r){const u=ir(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else s&&(l.x=Q0(s));return{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function cp(e,t){return!Bt(e)||vt(e).position==="fixed"?null:t?t(e):e.offsetParent}function K0(e,t){const n=tt(e);if(!Bt(e))return n;let r=cp(e,t);for(;r&&g5(r)&&vt(r).position==="static";)r=cp(r,t);return r&&(An(r)==="html"||An(r)==="body"&&vt(r).position==="static"&&!Dd(r))?n:r||v5(e)||n}const V5=async function(e){let{reference:t,floating:n,strategy:r}=e;const s=this.getOffsetParent||K0,i=this.getDimensions;return{reference:B5(t,await s(n),r),floating:{x:0,y:0,...await i(n)}}};function H5(e){return vt(e).direction==="rtl"}const q5={convertOffsetParentRelativeRectToViewportRelativeRect:A5,getDocumentElement:ln,getClippingRect:z5,getOffsetParent:K0,getElementRects:V5,getClientRects:L5,getDimensions:U5,getScale:Mr,isElement:Je,isRTL:H5};function Q5(e,t){let n=null,r;const s=ln(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const{left:u,top:c,width:d,height:h}=e.getBoundingClientRect();if(a||t(),!d||!h)return;const p=io(c),g=io(s.clientWidth-(u+d)),y=io(s.clientHeight-(c+h)),S=io(u),v={rootMargin:-p+"px "+-g+"px "+-y+"px "+-S+"px",threshold:ct(0,ci(1,l))||1};let w=!0;function b(C){const R=C[0].intersectionRatio;if(R!==l){if(!w)return o();R?o(!1,R):r=setTimeout(()=>{o(!1,1e-7)},100)}w=!1}try{n=new IntersectionObserver(b,{...v,root:s.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),i}function W5(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=$d(e),c=s||i?[...u?ui(u):[],...ui(t)]:[];c.forEach(m=>{s&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const d=u&&a?Q5(u,n):null;let h=-1,p=null;o&&(p=new ResizeObserver(m=>{let[v]=m;v&&v.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{p&&p.observe(t)})),n()}),u&&!l&&p.observe(u),p.observe(t));let g,y=l?ir(e):null;l&&S();function S(){const m=ir(e);y&&(m.x!==y.x||m.y!==y.y||m.width!==y.width||m.height!==y.height)&&n(),y=m,g=requestAnimationFrame(S)}return n(),()=>{c.forEach(m=>{s&&m.removeEventListener("scroll",n),i&&m.removeEventListener("resize",n)}),d&&d(),p&&p.disconnect(),p=null,l&&cancelAnimationFrame(g)}}const K5=(e,t,n)=>{const r=new Map,s={platform:q5,...n},i={...s.platform,_c:r};return P5(e,t,{...s,platform:i})};var jo=typeof document<"u"?x.useLayoutEffect:x.useEffect;function ya(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!ya(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!ya(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Z0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function dp(e,t){const n=Z0(e);return Math.round(t*n)/n}function fp(e){const t=x.useRef(e);return jo(()=>{t.current=e}),t}function Z5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,d]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=x.useState(r);ya(h,r)||p(r);const[g,y]=x.useState(null),[S,m]=x.useState(null),v=x.useCallback(O=>{O!=R.current&&(R.current=O,y(O))},[y]),w=x.useCallback(O=>{O!==k.current&&(k.current=O,m(O))},[m]),b=i||g,C=o||S,R=x.useRef(null),k=x.useRef(null),P=x.useRef(c),_=fp(l),F=fp(s),A=x.useCallback(()=>{if(!R.current||!k.current)return;const O={placement:t,strategy:n,middleware:h};F.current&&(O.platform=F.current),K5(R.current,k.current,O).then(L=>{const N={...L,isPositioned:!0};I.current&&!ya(P.current,N)&&(P.current=N,Pi.flushSync(()=>{d(N)}))})},[h,t,n,F]);jo(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,d(O=>({...O,isPositioned:!1})))},[u]);const I=x.useRef(!1);jo(()=>(I.current=!0,()=>{I.current=!1}),[]),jo(()=>{if(b&&(R.current=b),C&&(k.current=C),b&&C){if(_.current)return _.current(b,C,A);A()}},[b,C,A,_]);const U=x.useMemo(()=>({reference:R,floating:k,setReference:v,setFloating:w}),[v,w]),$=x.useMemo(()=>({reference:b,floating:C}),[b,C]),E=x.useMemo(()=>{const O={position:n,left:0,top:0};if(!$.floating)return O;const L=dp($.floating,c.x),N=dp($.floating,c.y);return a?{...O,transform:"translate("+L+"px, "+N+"px)",...Z0($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:N}},[n,a,$.floating,c.x,c.y]);return x.useMemo(()=>({...c,update:A,refs:U,elements:$,floatingStyles:E}),[c,A,U,$,E])}var G0=typeof document<"u"?x.useLayoutEffect:x.useEffect;let Zl=!1,G5=0;const hp=()=>"floating-ui-"+G5++;function X5(){const[e,t]=x.useState(()=>Zl?hp():void 0);return G0(()=>{e==null&&t(hp())},[]),x.useEffect(()=>{Zl||(Zl=!0)},[]),e}const Y5=mm["useId".toString()],J5=Y5||X5;function eb(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(s=>s(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(s=>s!==n))||[])}}}const tb=x.createContext(null),nb=()=>x.useContext(tb),rb=mm["useInsertionEffect".toString()],sb=rb||(e=>e());function ib(e){const t=x.useRef(()=>{});return sb(()=>{t.current=e}),x.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return t.current==null?void 0:t.current(...r)},[])}function ob(e){var t;e===void 0&&(e={});const{open:n=!1,onOpenChange:r,nodeId:s}=e,[i,o]=x.useState(null),a=((t=e.elements)==null?void 0:t.reference)||i,l=Z5(e),u=nb(),c=ib((b,C)=>{b&&(h.current.openEvent=C),r==null||r(b,C)}),d=x.useRef(null),h=x.useRef({}),p=x.useState(()=>eb())[0],g=J5(),y=x.useCallback(b=>{const C=Je(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),contextElement:b}:b;l.refs.setReference(C)},[l.refs]),S=x.useCallback(b=>{(Je(b)||b===null)&&(d.current=b,o(b)),(Je(l.refs.reference.current)||l.refs.reference.current===null||b!==null&&!Je(b))&&l.refs.setReference(b)},[l.refs]),m=x.useMemo(()=>({...l.refs,setReference:S,setPositionReference:y,domReference:d}),[l.refs,S,y]),v=x.useMemo(()=>({...l.elements,domReference:a}),[l.elements,a]),w=x.useMemo(()=>({...l,refs:m,elements:v,dataRef:h,nodeId:s,floatingId:g,events:p,open:n,onOpenChange:c}),[l,s,g,p,n,c,m,v]);return G0(()=>{const b=u==null?void 0:u.nodesRef.current.find(C=>C.id===s);b&&(b.context=w)}),x.useMemo(()=>({...l,context:w,refs:m,elements:v}),[l,m,v,w])}const ab=e=>{const t=x.useId(),[n,r]=x.useState(!1),[s,i]=x.useState(-1),[o,a]=x.useState(null),{refs:l,floatingStyles:u}=ob({placement:e,open:n,onOpenChange:r,whileElementsMounted:W5,middleware:[j5(4),T5({apply({rects:A,elements:I}){Object.assign(I.floating.style,{minWidth:`${A.reference.width}px`})}}),O5({padding:0})]}),c=x.useRef(null),d=x.useRef(null),h=x.useRef({});x.useEffect(()=>{n?c.current&&(c.current.focus(),i(0)):(i(-1),h.current={})},[n]),x.useEffect(()=>{if(s!==-1){const A=Object.values(h.current)[s];if(A){const I=A.getAttribute("id");a(I),A.focus()}}},[s]);const p=()=>{const I=Object.values(h.current).length;i(U=>(U+1)%I)},g=()=>{const I=Object.values(h.current).length;i(U=>(U-1+I)%I)},y=()=>{i(0)},S=()=>{const I=Object.values(h.current).length;i(I-1)},m=x.useCallback(()=>{r(!0)},[]),v=x.useCallback(()=>{d.current&&(d.current.focus(),r(!1))},[]),w=(A,I)=>{A&&(I.stopPropagation(),I.preventDefault())},b=x.useCallback(A=>{let I=!1;switch(A.code){case" ":case"Space":case"Enter":case"ArrowDown":case"Down":m(),I=!0;break;case"Esc":case"Escape":v(),I=!0;break;case"Up":case"ArrowUp":m(),I=!0;break}w(I,A)},[v,m]),C=A=>{const U=Object.values(h.current).findIndex($=>$.id===A.currentTarget.getAttribute("id"));i(U)},R=x.useCallback((A,I)=>{let U=!1;if(A.shiftKey)A.key==="Tab"&&(v(),U=!0);else{switch(A.code){case"Escape":v();break;case" ":case"Space":case"Enter":s!==-1&&(Object.values(h.current)[s].getAttribute("role")==="menuitem"&&d.current&&(d.current.focus(),r(!1)),I==null||I()),U=!0;break;case"ArrowDown":case"Down":p(),U=!0;break;case"ArrowUp":case"Up":g(),U=!0;break;case"Home":y(),U=!0;break;case"End":S(),U=!0;break}w(U,A)}},[s,v]),k=x.useCallback(A=>{r(n!==!0),A.stopPropagation(),A.preventDefault()},[n]),P=x.useCallback(()=>{v()},[v]);function _(A,...I){I.forEach(U=>{typeof U=="function"?U(A):U!=null&&(U.current=A)})}function F(...A){return I=>{_(I,...A)}}return{isFocused:o,visible:n,itemRefs:h,triggerRef:d,menuRef:c,triggerProps:{ref:F(d,l.setReference),id:`dropdown-toggle-${t}`,"aria-haspopup":"menu","aria-controls":`dropdown-${t}`,"aria-expanded":!!n,className:`dropdown-toggle ${n?"selected":""}`,onClick:k,onKeyDown:b,"aria-activedescendant":o},menuProps:{ref:F(c,l.setFloating),className:"dropdown-menu bg-white shadow rounded-4 p-8","aria-labelledby":`dropdown-toggle-${t}`,style:{...u}},itemProps:{onMenuItemMouseEnter:C,onMenuItemClick:P,onMenuItemKeyDown:R},setVisible:r}},lb=ab,X0=({children:e,block:t,overflow:n=!0,placement:r="bottom-start"})=>{const{visible:s,isFocused:i,triggerProps:o,menuProps:a,itemProps:l,itemRefs:u,setVisible:c}=lb(r),d=t0(()=>c(!1)),h=x.useMemo(()=>({visible:s,isFocused:i,triggerProps:o,menuProps:a,itemProps:l,itemRefs:u,block:t,setVisible:c}),[s,i,o,a,l,u,t,c]),p=V("dropdown",{"w-100":t,overflow:n});return f.jsx(C0.Provider,{value:h,children:f.jsx("div",{ref:d,className:p,children:typeof e=="function"?e(o,u):e})})};X0.displayName="Dropdown";const ub=Object.assign(X0,{Trigger:m5,Menu:c5,Item:u5,Separator:p5,CheckboxItem:l5,RadioItem:h5,MenuGroup:d5}),pr=ub,Ms=({children:e,className:t,...n})=>{const r=V("grid",t);return f.jsx("div",{className:r,...n,children:e})},Y0=({sm:e,md:t,lg:n,xl:r,children:s,className:i,as:o,...a})=>{const l=o||"div",u=V({[`g-col-${e}`]:e,[t?`g-col-md-${t}`:""]:t,[n?`g-col-lg-${n}`:""]:n,[r?`g-col-xl-${r}`:""]:r},i);return f.jsx(l,{className:u,...a,children:s})};Ms.displayName="Grid";Y0.displayName="Grid.Col";Ms.Col=Y0;const J0=x.forwardRef(({position:e=!0},t)=>{const[n]=Qa(),r=`${n}/loading/screen-loading.gif`,s=V("loading-screen top-0 end-0 start-0 bottom-0 d-grid justify-content-center align-items-center z-2000",{"position-fixed":!e,"position-static":e});return f.jsxs(f.Fragment,{children:[f.jsx("div",{ref:t,className:s,children:f.jsx("div",{className:"bg-white rounded-circle mx-auto",children:f.jsx("img",{src:r,alt:"loading"})})}),!e&&f.jsx("div",{className:"modal-backdrop fade show"})]})});J0.displayName="LoadingScreen";const Ve=J0,ev=x.forwardRef(({src:e,is1d:t,translate:n="Retour accueil"},r)=>{const s=V("navbar-brand d-none d-md-block"),i=`logo ${t?"ONE":"NEO"}`;return f.jsx("a",{ref:r,className:s,href:"/timeline/timeline","aria-label":n,children:f.jsx("img",{className:"logo",src:e,alt:i,width:"300",height:"52"})})});ev.displayName="Logo";const pp=ev;var cb=Object.defineProperty,db=(e,t)=>{for(var n in t)cb(e,n,{get:t[n],enumerable:!0})},Nt={};db(Nt,{assign:()=>pb,colors:()=>Tn,createStringInterpolator:()=>Qd,skipAnimation:()=>av,to:()=>ov,willAdvance:()=>Wd});var zd=Ii(),H=e=>_i(e,zd),Ud=Ii();H.write=e=>_i(e,Ud);var Ja=Ii();H.onStart=e=>_i(e,Ja);var Bd=Ii();H.onFrame=e=>_i(e,Bd);var Vd=Ii();H.onFinish=e=>_i(e,Vd);var Dr=[];H.setTimeout=(e,t)=>{const n=H.now()+t,r=()=>{const i=Dr.findIndex(o=>o.cancel==r);~i&&Dr.splice(i,1),Sn-=~i?1:0},s={time:n,handler:e,cancel:r};return Dr.splice(tv(n),0,s),Sn+=1,nv(),s};var tv=e=>~(~Dr.findIndex(t=>t.time>e)||~Dr.length);H.cancel=e=>{Ja.delete(e),Bd.delete(e),Vd.delete(e),zd.delete(e),Ud.delete(e)};H.sync=e=>{xc=!0,H.batchedUpdates(e),xc=!1};H.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...s){t=s,H.onStart(n)}return r.handler=e,r.cancel=()=>{Ja.delete(n),t=null},r};var Hd=typeof window<"u"?window.requestAnimationFrame:()=>{};H.use=e=>Hd=e;H.now=typeof performance<"u"?()=>performance.now():Date.now;H.batchedUpdates=e=>e();H.catch=console.error;H.frameLoop="always";H.advance=()=>{H.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):sv()};var xn=-1,Sn=0,xc=!1;function _i(e,t){xc?(t.delete(e),e(0)):(t.add(e),nv())}function nv(){xn<0&&(xn=0,H.frameLoop!=="demand"&&Hd(rv))}function fb(){xn=-1}function rv(){~xn&&(Hd(rv),H.batchedUpdates(sv))}function sv(){const e=xn;xn=H.now();const t=tv(xn);if(t&&(iv(Dr.splice(0,t),n=>n.handler()),Sn-=t),!Sn){fb();return}Ja.flush(),zd.flush(e?Math.min(64,xn-e):16.667),Bd.flush(),Ud.flush(),Vd.flush()}function Ii(){let e=new Set,t=e;return{add(n){Sn+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Sn-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Sn-=t.size,iv(t,r=>r(n)&&e.add(r)),Sn+=e.size,t=e)}}}function iv(e,t){e.forEach(n=>{try{t(n)}catch(r){H.catch(r)}})}function Sc(){}var hb=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),j={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Kt(e,t){if(j.arr(e)){if(!j.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var B=(e,t)=>e.forEach(t);function Vt(e,t,n){if(j.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var Ie=e=>j.und(e)?[]:j.arr(e)?e:[e];function Ds(e,t){if(e.size){const n=Array.from(e);e.clear(),B(n,t)}}var Es=(e,...t)=>Ds(e,n=>n(...t)),qd=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Qd,ov,Tn=null,av=!1,Wd=Sc,pb=e=>{e.to&&(ov=e.to),e.now&&(H.now=e.now),e.colors!==void 0&&(Tn=e.colors),e.skipAnimation!=null&&(av=e.skipAnimation),e.createStringInterpolator&&(Qd=e.createStringInterpolator),e.requestAnimationFrame&&H.use(e.requestAnimationFrame),e.batchedUpdates&&(H.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Wd=e.willAdvance),e.frameLoop&&(H.frameLoop=e.frameLoop)},Fs=new Set,ft=[],Gl=[],wa=0,el={get idle(){return!Fs.size&&!ft.length},start(e){wa>e.priority?(Fs.add(e),H.onStart(mb)):(lv(e),H(bc))},advance:bc,sort(e){if(wa)H.onFrame(()=>el.sort(e));else{const t=ft.indexOf(e);~t&&(ft.splice(t,1),uv(e))}},clear(){ft=[],Fs.clear()}};function mb(){Fs.forEach(lv),Fs.clear(),H(bc)}function lv(e){ft.includes(e)||uv(e)}function uv(e){ft.splice(gb(ft,t=>t.priority>e.priority),0,e)}function bc(e){const t=Gl;for(let n=0;n<ft.length;n++){const r=ft[n];wa=r.priority,r.idle||(Wd(r),r.advance(e),r.idle||t.push(r))}return wa=0,Gl=ft,Gl.length=0,ft=t,ft.length>0}function gb(e,t){const n=e.findIndex(t);return n<0?e.length:n}var vb=(e,t,n)=>Math.min(Math.max(n,e),t),yb={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Rt="[-+]?\\d*\\.?\\d+",xa=Rt+"%";function tl(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var wb=new RegExp("rgb"+tl(Rt,Rt,Rt)),xb=new RegExp("rgba"+tl(Rt,Rt,Rt,Rt)),Sb=new RegExp("hsl"+tl(Rt,xa,xa)),bb=new RegExp("hsla"+tl(Rt,xa,xa,Rt)),Eb=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Cb=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Rb=/^#([0-9a-fA-F]{6})$/,kb=/^#([0-9a-fA-F]{8})$/;function Pb(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Rb.exec(e))?parseInt(t[1]+"ff",16)>>>0:Tn&&Tn[e]!==void 0?Tn[e]:(t=wb.exec(e))?(mr(t[1])<<24|mr(t[2])<<16|mr(t[3])<<8|255)>>>0:(t=xb.exec(e))?(mr(t[1])<<24|mr(t[2])<<16|mr(t[3])<<8|vp(t[4]))>>>0:(t=Eb.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=kb.exec(e))?parseInt(t[1],16)>>>0:(t=Cb.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Sb.exec(e))?(mp(gp(t[1]),oo(t[2]),oo(t[3]))|255)>>>0:(t=bb.exec(e))?(mp(gp(t[1]),oo(t[2]),oo(t[3]))|vp(t[4]))>>>0:null}function Xl(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function mp(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r,i=Xl(s,r,e+1/3),o=Xl(s,r,e),a=Xl(s,r,e-1/3);return Math.round(i*255)<<24|Math.round(o*255)<<16|Math.round(a*255)<<8}function mr(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function gp(e){return(parseFloat(e)%360+360)%360/360}function vp(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function oo(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function yp(e){let t=Pb(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,s=(t&65280)>>>8,i=(t&255)/255;return`rgba(${n}, ${r}, ${s}, ${i})`}var di=(e,t,n)=>{if(j.fun(e))return e;if(j.arr(e))return di({range:e,output:t,extrapolate:n});if(j.str(e.output[0]))return Qd(e);const r=e,s=r.output,i=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(u=>u);return u=>{const c=Nb(u,i);return Ob(u,i[c],i[c+1],s[c],s[c+1],l,o,a,r.map)}};function Ob(e,t,n,r,s,i,o,a,l){let u=l?l(e):e;if(u<t){if(o==="identity")return u;o==="clamp"&&(u=t)}if(u>n){if(a==="identity")return u;a==="clamp"&&(u=n)}return r===s?r:t===n?e<=t?r:s:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=i(u),r===-1/0?u=-u:s===1/0?u=u+r:u=u*(s-r)+r,u)}function Nb(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var jb=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,s=t==="end"?Math.floor(r):Math.ceil(r);return vb(0,1,s/e)},Sa=1.70158,ao=Sa*1.525,wp=Sa+1,xp=2*Math.PI/3,Sp=2*Math.PI/4.5,lo=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,Tb={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>wp*e*e*e-Sa*e*e,easeOutBack:e=>1+wp*Math.pow(e-1,3)+Sa*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((ao+1)*2*e-ao)/2:(Math.pow(2*e-2,2)*((ao+1)*(e*2-2)+ao)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*xp),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*xp)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Sp))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Sp)/2+1,easeInBounce:e=>1-lo(1-e),easeOutBounce:lo,easeInOutBounce:e=>e<.5?(1-lo(1-2*e))/2:(1+lo(2*e-1))/2,steps:jb},fi=Symbol.for("FluidValue.get"),Kr=Symbol.for("FluidValue.observers"),dt=e=>!!(e&&e[fi]),ze=e=>e&&e[fi]?e[fi]():e,bp=e=>e[Kr]||null;function _b(e,t){e.eventObserved?e.eventObserved(t):e(t)}function hi(e,t){const n=e[Kr];n&&n.forEach(r=>{_b(r,t)})}var cv=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Ib(this,e)}},Ib=(e,t)=>dv(e,fi,t);function es(e,t){if(e[fi]){let n=e[Kr];n||dv(e,Kr,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function pi(e,t){const n=e[Kr];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Kr]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var dv=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),To=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ab=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Ep=new RegExp(`(${To.source})(%|[a-z]+)`,"i"),Lb=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,nl=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,fv=e=>{const[t,n]=Mb(e);if(!t||qd())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const s=window.getComputedStyle(document.documentElement).getPropertyValue(n);return s||e}else{if(n&&nl.test(n))return fv(n);if(n)return n}return e},Mb=e=>{const t=nl.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Yl,Db=(e,t,n,r,s)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${s})`,hv=e=>{Yl||(Yl=Tn?new RegExp(`(${Object.keys(Tn).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>ze(i).replace(nl,fv).replace(Ab,yp).replace(Yl,yp)),n=t.map(i=>i.match(To).map(Number)),s=n[0].map((i,o)=>n.map(a=>{if(!(o in a))throw Error('The arity of each "output" value must be equal');return a[o]})).map(i=>di({...e,output:i}));return i=>{var l;const o=!Ep.test(t[0])&&((l=t.find(u=>Ep.test(u)))==null?void 0:l.replace(To,""));let a=0;return t[0].replace(To,()=>`${s[a++](i)}${o||""}`).replace(Lb,Db)}},Kd="react-spring: ",pv=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${Kd}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},Fb=pv(console.warn);function $b(){Fb(`${Kd}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var zb=pv(console.warn);function Ub(){zb(`${Kd}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function rl(e){return j.str(e)&&(e[0]=="#"||/\d/.test(e)||!qd()&&nl.test(e)||e in(Tn||{}))}var Gn=qd()?x.useEffect:x.useLayoutEffect,Bb=()=>{const e=x.useRef(!1);return Gn(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Zd(){const e=x.useState()[1],t=Bb();return()=>{t.current&&e(Math.random())}}function Vb(e,t){const[n]=x.useState(()=>({inputs:t,result:e()})),r=x.useRef(),s=r.current;let i=s;return i?t&&i.inputs&&Hb(t,i.inputs)||(i={inputs:t,result:e()}):i=n,x.useEffect(()=>{r.current=i,s==n&&(n.inputs=n.result=void 0)},[i]),i.result}function Hb(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Gd=e=>x.useEffect(e,qb),qb=[];function Ec(e){const t=x.useRef();return x.useEffect(()=>{t.current=e}),t.current}var mi=Symbol.for("Animated:node"),Qb=e=>!!e&&e[mi]===e,Dt=e=>e&&e[mi],Xd=(e,t)=>hb(e,mi,t),sl=e=>e&&e[mi]&&e[mi].getPayload(),mv=class{constructor(){Xd(this,this)}getPayload(){return this.payload||[]}},Ai=class extends mv{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,j.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Ai(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return j.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,j.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},gi=class extends Ai{constructor(e){super(0),this._string=null,this._toString=di({output:[e,e]})}static create(e){return new gi(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(j.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=di({output:[this.getValue(),e]})),this._value=0,super.reset()}},ba={dependencies:null},il=class extends mv{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Vt(this.source,(n,r)=>{Qb(n)?t[r]=n.getValue(e):dt(n)?t[r]=ze(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&B(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Vt(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){ba.dependencies&&dt(e)&&ba.dependencies.add(e);const t=sl(e);t&&B(t,n=>this.add(n))}},gv=class extends il{constructor(e){super(e)}static create(e){return new gv(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(Wb)),!0)}};function Wb(e){return(rl(e)?gi:Ai).create(e)}function Cc(e){const t=Dt(e);return t?t.constructor:j.arr(e)?gv:rl(e)?gi:Ai}var Cp=(e,t)=>{const n=!j.fun(e)||e.prototype&&e.prototype.isReactComponent;return x.forwardRef((r,s)=>{const i=x.useRef(null),o=n&&x.useCallback(g=>{i.current=Gb(s,g)},[s]),[a,l]=Zb(r,t),u=Zd(),c=()=>{const g=i.current;if(n&&!g)return;(g?t.applyAnimatedValues(g,a.getValue(!0)):!1)===!1&&u()},d=new Kb(c,l),h=x.useRef();Gn(()=>(h.current=d,B(l,g=>es(g,d)),()=>{h.current&&(B(h.current.deps,g=>pi(g,h.current)),H.cancel(h.current.update))})),x.useEffect(c,[]),Gd(()=>()=>{const g=h.current;B(g.deps,y=>pi(y,g))});const p=t.getComponentProps(a.getValue());return x.createElement(e,{...p,ref:o})})},Kb=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&H.write(this.update)}};function Zb(e,t){const n=new Set;return ba.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new il(e),ba.dependencies=null,[e,n]}function Gb(e,t){return e&&(j.fun(e)?e(t):e.current=t),t}var Rp=Symbol.for("AnimatedComponent"),Xb=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=s=>new il(s),getComponentProps:r=s=>s}={})=>{const s={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=o=>{const a=kp(o)||"Anonymous";return j.str(o)?o=i[o]||(i[o]=Cp(o,s)):o=o[Rp]||(o[Rp]=Cp(o,s)),o.displayName=`Animated(${a})`,o};return Vt(e,(o,a)=>{j.arr(e)&&(a=kp(o)),i[a]=i(o)}),{animated:i}},kp=e=>j.str(e)?e:e&&j.str(e.displayName)?e.displayName:j.fun(e)&&e.name||null;function Ue(e,...t){return j.fun(e)?e(...t):e}var $s=(e,t)=>e===!0||!!(t&&e&&(j.fun(e)?e(t):Ie(e).includes(t))),vv=(e,t)=>j.obj(e)?t&&e[t]:e,yv=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Yb=e=>e,ol=(e,t=Yb)=>{let n=Jb;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const s of n){const i=t(e[s],s);j.und(i)||(r[s]=i)}return r},Jb=["config","onProps","onStart","onChange","onPause","onResume","onRest"],eE={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function tE(e){const t={};let n=0;if(Vt(e,(r,s)=>{eE[s]||(t[s]=r,n++)}),n)return t}function Yd(e){const t=tE(e);if(t){const n={to:t};return Vt(e,(r,s)=>s in t||(n[s]=r)),n}return{...e}}function vi(e){return e=ze(e),j.arr(e)?e.map(vi):rl(e)?Nt.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function wv(e){for(const t in e)return!0;return!1}function Rc(e){return j.fun(e)||j.arr(e)&&j.obj(e[0])}function kc(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function xv(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var nE={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Pc={...nE.default,mass:1,damping:1,easing:Tb.linear,clamp:!1},rE=class{constructor(){this.velocity=0,Object.assign(this,Pc)}};function sE(e,t,n){n&&(n={...n},Pp(n,t),t={...n,...t}),Pp(e,t),Object.assign(e,t);for(const o in Pc)e[o]==null&&(e[o]=Pc[o]);let{frequency:r,damping:s}=e;const{mass:i}=e;return j.und(r)||(r<.01&&(r=.01),s<0&&(s=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*s*i/r),e}function Pp(e,t){if(!j.und(t.decay))e.duration=void 0;else{const n=!j.und(t.tension)||!j.und(t.friction);(n||!j.und(t.frequency)||!j.und(t.damping)||!j.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Op=[],iE=class{constructor(){this.changed=!1,this.values=Op,this.toValues=null,this.fromValues=Op,this.config=new rE,this.immediate=!1}};function Sv(e,{key:t,props:n,defaultProps:r,state:s,actions:i}){return new Promise((o,a)=>{let l,u,c=$s(n.cancel??(r==null?void 0:r.cancel),t);if(c)p();else{j.und(n.pause)||(s.paused=$s(n.pause,t));let g=r==null?void 0:r.pause;g!==!0&&(g=s.paused||$s(g,t)),l=Ue(n.delay||0,t),g?(s.resumeQueue.add(h),i.pause()):(i.resume(),h())}function d(){s.resumeQueue.add(h),s.timeouts.delete(u),u.cancel(),l=u.time-H.now()}function h(){l>0&&!Nt.skipAnimation?(s.delayed=!0,u=H.setTimeout(p,l),s.pauseQueue.add(d),s.timeouts.add(u)):p()}function p(){s.delayed&&(s.delayed=!1),s.pauseQueue.delete(d),s.timeouts.delete(u),e<=(s.cancelId||0)&&(c=!0);try{i.start({...n,callId:e,cancel:c},o)}catch(g){a(g)}}})}var Jd=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Fr(e.get()):t.every(n=>n.noop)?bv(e.get()):Ct(e.get(),t.every(n=>n.finished)),bv=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Ct=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Fr=e=>({value:e,cancelled:!0,finished:!1});function Ev(e,t,n,r){const{callId:s,parentId:i,onRest:o}=t,{asyncTo:a,promise:l}=n;return!i&&e===a&&!t.reset?l:n.promise=(async()=>{n.asyncId=s,n.asyncTo=e;const u=ol(t,(S,m)=>m==="onRest"?void 0:S);let c,d;const h=new Promise((S,m)=>(c=S,d=m)),p=S=>{const m=s<=(n.cancelId||0)&&Fr(r)||s!==n.asyncId&&Ct(r,!1);if(m)throw S.result=m,d(S),S},g=(S,m)=>{const v=new Np,w=new jp;return(async()=>{if(Nt.skipAnimation)throw yi(n),w.result=Ct(r,!1),d(w),w;p(v);const b=j.obj(S)?{...S}:{...m,to:S};b.parentId=s,Vt(u,(R,k)=>{j.und(b[k])&&(b[k]=R)});const C=await r.start(b);return p(v),n.paused&&await new Promise(R=>{n.resumeQueue.add(R)}),C})()};let y;if(Nt.skipAnimation)return yi(n),Ct(r,!1);try{let S;j.arr(e)?S=(async m=>{for(const v of m)await g(v)})(e):S=Promise.resolve(e(g,r.stop.bind(r))),await Promise.all([S.then(c),h]),y=Ct(r.get(),!0,!1)}catch(S){if(S instanceof Np)y=S.result;else if(S instanceof jp)y=S.result;else throw S}finally{s==n.asyncId&&(n.asyncId=i,n.asyncTo=i?a:void 0,n.promise=i?l:void 0)}return j.fun(o)&&H.batchedUpdates(()=>{o(y,r,r.item)}),y})()}function yi(e,t){Ds(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Np=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},jp=class extends Error{constructor(){super("SkipAnimationSignal")}},Oc=e=>e instanceof ef,oE=1,ef=class extends cv{constructor(){super(...arguments),this.id=oE++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Dt(this);return e&&e.getValue()}to(...e){return Nt.to(this,e)}interpolate(...e){return $b(),Nt.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){hi(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||el.sort(this),hi(this,{type:"priority",parent:this,priority:e})}},or=Symbol.for("SpringPhase"),Cv=1,Nc=2,jc=4,Jl=e=>(e[or]&Cv)>0,dn=e=>(e[or]&Nc)>0,ps=e=>(e[or]&jc)>0,Tp=(e,t)=>t?e[or]|=Nc|Cv:e[or]&=~Nc,_p=(e,t)=>t?e[or]|=jc:e[or]&=~jc,aE=class extends ef{constructor(e,t){if(super(),this.animation=new iE,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!j.und(e)||!j.und(t)){const n=j.obj(e)?{...e}:{...t,from:e};j.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(dn(this)||this._state.asyncTo)||ps(this)}get goal(){return ze(this.animation.to)}get velocity(){const e=Dt(this);return e instanceof Ai?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Jl(this)}get isAnimating(){return dn(this)}get isPaused(){return ps(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:s}=r;const{config:i}=r,o=sl(r.to);!o&&dt(r.to)&&(s=Ie(ze(r.to))),r.values.forEach((u,c)=>{if(u.done)return;const d=u.constructor==gi?1:o?o[c].lastPosition:s[c];let h=r.immediate,p=d;if(!h){if(p=u.lastPosition,i.tension<=0){u.done=!0;return}let g=u.elapsedTime+=e;const y=r.fromValues[c],S=u.v0!=null?u.v0:u.v0=j.arr(i.velocity)?i.velocity[c]:i.velocity;let m;const v=i.precision||(y==d?.005:Math.min(1,Math.abs(d-y)*.001));if(j.und(i.duration))if(i.decay){const w=i.decay===!0?.998:i.decay,b=Math.exp(-(1-w)*g);p=y+S/(1-w)*(1-b),h=Math.abs(u.lastPosition-p)<=v,m=S*b}else{m=u.lastVelocity==null?S:u.lastVelocity;const w=i.restVelocity||v/10,b=i.clamp?0:i.bounce,C=!j.und(b),R=y==d?u.v0>0:y<d;let k,P=!1;const _=1,F=Math.ceil(e/_);for(let A=0;A<F&&(k=Math.abs(m)>w,!(!k&&(h=Math.abs(d-p)<=v,h)));++A){C&&(P=p==d||p>d==R,P&&(m=-m*b,p=d));const I=-i.tension*1e-6*(p-d),U=-i.friction*.001*m,$=(I+U)/i.mass;m=m+$*_,p=p+m*_}}else{let w=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,u.durationProgress>0&&(u.elapsedTime=i.duration*u.durationProgress,g=u.elapsedTime+=e)),w=(i.progress||0)+g/this._memoizedDuration,w=w>1?1:w<0?0:w,u.durationProgress=w),p=y+i.easing(w)*(d-y),m=(p-u.lastPosition)/e,h=w==1}u.lastVelocity=m,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),h=!0)}o&&!o[c].done&&(h=!1),h?u.done=!0:t=!1,u.setValue(p,i.round)&&(n=!0)});const a=Dt(this),l=a.getValue();if(t){const u=ze(r.to);(l!==u||n)&&!i.decay?(a.setValue(u),this._onChange(u)):n&&i.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return H.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(dn(this)){const{to:e,config:t}=this.animation;H.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return j.und(e)?(n=this.queue||[],this.queue=[]):n=[j.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>Jd(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),yi(this._state,e&&this._lastCallId),H.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=j.obj(n)?n[t]:n,(n==null||Rc(n))&&(n=void 0),r=j.obj(r)?r[t]:r,r==null&&(r=void 0);const s={to:n,from:r};return Jl(this)||(e.reverse&&([n,r]=[r,n]),r=ze(r),j.und(r)?Dt(this)||this._set(n):this._set(r)),s}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,ol(e,(o,a)=>/^on/.test(a)?vv(o,n):o)),Ap(this,e,"onProps"),gs(this,"onProps",e,this);const s=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return Sv(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{ps(this)||(_p(this,!0),Es(i.pauseQueue),gs(this,"onPause",Ct(this,ms(this,this.animation.to)),this))},resume:()=>{ps(this)&&(_p(this,!1),dn(this)&&this._resume(),Es(i.resumeQueue),gs(this,"onResume",Ct(this,ms(this,this.animation.to)),this))},start:this._merge.bind(this,s)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const a=Rv(e);if(a)return this._update(a,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Fr(this));const r=!j.und(e.to),s=!j.und(e.from);if(r||s)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Fr(this));const{key:i,defaultProps:o,animation:a}=this,{to:l,from:u}=a;let{to:c=l,from:d=u}=e;s&&!r&&(!t.default||j.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);const h=!Kt(d,u);h&&(a.from=d),d=ze(d);const p=!Kt(c,l);p&&this._focus(c);const g=Rc(t.to),{config:y}=a,{decay:S,velocity:m}=y;(r||s)&&(y.velocity=0),t.config&&!g&&sE(y,Ue(t.config,i),t.config!==o.config?Ue(o.config,i):void 0);let v=Dt(this);if(!v||j.und(c))return n(Ct(this,!0));const w=j.und(t.reset)?s&&!t.default:!j.und(d)&&$s(t.reset,i),b=w?d:this.get(),C=vi(c),R=j.num(C)||j.arr(C)||rl(C),k=!g&&(!R||$s(o.immediate||t.immediate,i));if(p){const A=Cc(c);if(A!==v.constructor)if(k)v=this._set(C);else throw Error(`Cannot animate between ${v.constructor.name} and ${A.name}, as the "to" prop suggests`)}const P=v.constructor;let _=dt(c),F=!1;if(!_){const A=w||!Jl(this)&&h;(p||A)&&(F=Kt(vi(b),C),_=!F),(!Kt(a.immediate,k)&&!k||!Kt(y.decay,S)||!Kt(y.velocity,m))&&(_=!0)}if(F&&dn(this)&&(a.changed&&!w?_=!0:_||this._stop(l)),!g&&((_||dt(l))&&(a.values=v.getPayload(),a.toValues=dt(c)?null:P==gi?[1]:Ie(C)),a.immediate!=k&&(a.immediate=k,!k&&!w&&this._set(l)),_)){const{onRest:A}=a;B(uE,U=>Ap(this,t,U));const I=Ct(this,ms(this,l));Es(this._pendingCalls,I),this._pendingCalls.add(n),a.changed&&H.batchedUpdates(()=>{var U;a.changed=!w,A==null||A(I,this),w?Ue(o.onRest,I):(U=a.onStart)==null||U.call(a,I,this)})}w&&this._set(b),g?n(Ev(t.to,t,this._state,this)):_?this._start():dn(this)&&!p?this._pendingCalls.add(n):n(bv(b))}_focus(e){const t=this.animation;e!==t.to&&(bp(this)&&this._detach(),t.to=e,bp(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;dt(t)&&(es(t,this),Oc(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;dt(e)&&pi(e,this)}_set(e,t=!0){const n=ze(e);if(!j.und(n)){const r=Dt(this);if(!r||!Kt(n,r.getValue())){const s=Cc(n);!r||r.constructor!=s?Xd(this,s.create(n)):r.setValue(n),r&&H.batchedUpdates(()=>{this._onChange(n,t)})}}return Dt(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,gs(this,"onStart",Ct(this,ms(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Ue(this.animation.onChange,e,this)),Ue(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Dt(this).reset(ze(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),dn(this)||(Tp(this,!0),ps(this)||this._resume())}_resume(){Nt.skipAnimation?this.finish():el.start(this)}_stop(e,t){if(dn(this)){Tp(this,!1);const n=this.animation;B(n.values,s=>{s.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),hi(this,{type:"idle",parent:this});const r=t?Fr(this.get()):Ct(this.get(),ms(this,e??n.to));Es(this._pendingCalls,r),n.changed&&(n.changed=!1,gs(this,"onRest",r,this))}}};function ms(e,t){const n=vi(t),r=vi(e.get());return Kt(r,n)}function Rv(e,t=e.loop,n=e.to){const r=Ue(t);if(r){const s=r!==!0&&Yd(r),i=(s||e).reverse,o=!s||s.reset;return wi({...e,loop:t,default:!1,pause:void 0,to:!i||Rc(n)?n:void 0,from:o?e.from:void 0,reset:o,...s})}}function wi(e){const{to:t,from:n}=e=Yd(e),r=new Set;return j.obj(t)&&Ip(t,r),j.obj(n)&&Ip(n,r),e.keys=r.size?Array.from(r):null,e}function lE(e){const t=wi(e);return j.und(t.default)&&(t.default=ol(t)),t}function Ip(e,t){Vt(e,(n,r)=>n!=null&&t.add(r))}var uE=["onStart","onRest","onChange","onPause","onResume"];function Ap(e,t,n){e.animation[n]=t[n]!==yv(t,n)?vv(t[n],e.key):void 0}function gs(e,t,...n){var r,s,i,o;(s=(r=e.animation)[t])==null||s.call(r,...n),(o=(i=e.defaultProps)[t])==null||o.call(i,...n)}var cE=["onStart","onChange","onRest"],dE=1,kv=class{constructor(e,t){this.id=dE++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];j.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(wi(e)),this}start(e){let{queue:t}=this;return e?t=Ie(e).map(wi):this.queue=[],this._flush?this._flush(this,t):(Tv(this,t),Tc(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;B(Ie(t),r=>n[r].stop(!!e))}else yi(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(j.und(e))this.start({pause:!0});else{const t=this.springs;B(Ie(e),n=>t[n].pause())}return this}resume(e){if(j.und(e))this.start({pause:!1});else{const t=this.springs;B(Ie(e),n=>t[n].resume())}return this}each(e){Vt(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,s=this._changed.size>0;(r&&!this._started||s&&!this._started)&&(this._started=!0,Ds(e,([a,l])=>{l.value=this.get(),a(l,this,this._item)}));const i=!r&&this._started,o=s||i&&n.size?this.get():null;s&&t.size&&Ds(t,([a,l])=>{l.value=o,a(l,this,this._item)}),i&&(this._started=!1,Ds(n,([a,l])=>{l.value=o,a(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;H.onFrame(this._onFrame)}};function Tc(e,t){return Promise.all(t.map(n=>Pv(e,n))).then(n=>Jd(e,n))}async function Pv(e,t,n){const{keys:r,to:s,from:i,loop:o,onRest:a,onResolve:l}=t,u=j.obj(t.default)&&t.default;o&&(t.loop=!1),s===!1&&(t.to=null),i===!1&&(t.from=null);const c=j.arr(s)||j.fun(s)?s:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):B(cE,y=>{const S=t[y];if(j.fun(S)){const m=e._events[y];t[y]=({finished:v,cancelled:w})=>{const b=m.get(S);b?(v||(b.finished=!1),w&&(b.cancelled=!0)):m.set(S,{value:null,finished:v||!1,cancelled:w||!1})},u&&(u[y]=t[y])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Es(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(r||Object.keys(e.springs)).map(y=>e.springs[y].start(t)),p=t.cancel===!0||yv(t,"cancel")===!0;(c||p&&d.asyncId)&&h.push(Sv(++e._lastAsyncId,{props:t,state:d,actions:{pause:Sc,resume:Sc,start(y,S){p?(yi(d,e._lastAsyncId),S(Fr(e))):(y.onRest=a,S(Ev(c,y,d,e)))}}})),d.paused&&await new Promise(y=>{d.resumeQueue.add(y)});const g=Jd(e,await Promise.all(h));if(o&&g.finished&&!(n&&g.noop)){const y=Rv(t,o,s);if(y)return Tv(e,[y]),Pv(e,y,!0)}return l&&H.batchedUpdates(()=>l(g,e,e.item)),g}function _c(e,t){const n={...e.springs};return t&&B(Ie(t),r=>{j.und(r.keys)&&(r=wi(r)),j.obj(r.to)||(r={...r,to:void 0}),jv(n,r,s=>Nv(s))}),Ov(e,n),n}function Ov(e,t){Vt(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,es(n,e))})}function Nv(e,t){const n=new aE;return n.key=e,t&&es(n,t),n}function jv(e,t,n){t.keys&&B(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function Tv(e,t){B(t,n=>{jv(e.springs,n,r=>Nv(r,e))})}var Li=({children:e,...t})=>{const n=x.useContext(Ea),r=t.pause||!!n.pause,s=t.immediate||!!n.immediate;t=Vb(()=>({pause:r,immediate:s}),[r,s]);const{Provider:i}=Ea;return x.createElement(i,{value:t},e)},Ea=fE(Li,{});Li.Provider=Ea.Provider;Li.Consumer=Ea.Consumer;function fE(e,t){return Object.assign(e,x.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var _v=()=>{const e=[],t=function(r){Ub();const s=[];return B(e,(i,o)=>{if(j.und(r))s.push(i.start());else{const a=n(r,i,o);a&&s.push(i.start(a))}}),s};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const s=e.indexOf(r);~s&&e.splice(s,1)},t.pause=function(){return B(e,r=>r.pause(...arguments)),this},t.resume=function(){return B(e,r=>r.resume(...arguments)),this},t.set=function(r){B(e,(s,i)=>{const o=j.fun(r)?r(i,s):r;o&&s.set(o)})},t.start=function(r){const s=[];return B(e,(i,o)=>{if(j.und(r))s.push(i.start());else{const a=this._getProps(r,i,o);a&&s.push(i.start(a))}}),s},t.stop=function(){return B(e,r=>r.stop(...arguments)),this},t.update=function(r){return B(e,(s,i)=>s.update(this._getProps(r,s,i))),this};const n=function(r,s,i){return j.fun(r)?r(i,s):r};return t._getProps=n,t};function hE(e,t,n){const r=j.fun(t)&&t;r&&!n&&(n=[]);const s=x.useMemo(()=>r||arguments.length==3?_v():void 0,[]),i=x.useRef(0),o=Zd(),a=x.useMemo(()=>({ctrls:[],queue:[],flush(m,v){const w=_c(m,v);return i.current>0&&!a.queue.length&&!Object.keys(w).some(C=>!m.springs[C])?Tc(m,v):new Promise(C=>{Ov(m,w),a.queue.push(()=>{C(Tc(m,v))}),o()})}}),[]),l=x.useRef([...a.ctrls]),u=[],c=Ec(e)||0;x.useMemo(()=>{B(l.current.slice(e,c),m=>{kc(m,s),m.stop(!0)}),l.current.length=e,d(c,e)},[e]),x.useMemo(()=>{d(0,Math.min(c,e))},n);function d(m,v){for(let w=m;w<v;w++){const b=l.current[w]||(l.current[w]=new kv(null,a.flush)),C=r?r(w,b):t[w];C&&(u[w]=lE(C))}}const h=l.current.map((m,v)=>_c(m,u[v])),p=x.useContext(Li),g=Ec(p),y=p!==g&&wv(p);Gn(()=>{i.current++,a.ctrls=l.current;const{queue:m}=a;m.length&&(a.queue=[],B(m,v=>v())),B(l.current,(v,w)=>{s==null||s.add(v),y&&v.start({default:p});const b=u[w];b&&(xv(v,b.ref),v.ref?v.queue.push(b):v.start(b))})}),Gd(()=>()=>{B(a.ctrls,m=>m.stop(!0))});const S=h.map(m=>({...m}));return s?[S,s]:S}function uk(e,t){const n=j.fun(e),[[r],s]=hE(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,s]:r}function tf(e,t,n){const r=j.fun(t)&&t,{reset:s,sort:i,trail:o=0,expires:a=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,h=x.useMemo(()=>r||arguments.length==3?_v():void 0,[]),p=Ie(e),g=[],y=x.useRef(null),S=s?null:y.current;Gn(()=>{y.current=g}),Gd(()=>(B(g,$=>{h==null||h.add($.ctrl),$.ctrl.ref=h}),()=>{B(y.current,$=>{$.expired&&clearTimeout($.expirationId),kc($.ctrl,h),$.ctrl.stop(!0)})}));const m=mE(p,r?r():t,S),v=s&&y.current||[];Gn(()=>B(v,({ctrl:$,item:E,key:O})=>{kc($,h),Ue(u,E,O)}));const w=[];if(S&&B(S,($,E)=>{$.expired?(clearTimeout($.expirationId),v.push($)):(E=w[E]=m.indexOf($.key),~E&&(g[E]=$))}),B(p,($,E)=>{g[E]||(g[E]={key:m[E],item:$,phase:"mount",ctrl:new kv},g[E].ctrl.item=$)}),w.length){let $=-1;const{leave:E}=r?r():t;B(w,(O,L)=>{const N=S[L];~O?($=g.indexOf(N),g[$]={...N,item:p[O]}):E&&g.splice(++$,0,N)})}j.fun(i)&&g.sort(($,E)=>i($.item,E.item));let b=-o;const C=Zd(),R=ol(t),k=new Map,P=x.useRef(new Map),_=x.useRef(!1);B(g,($,E)=>{const O=$.key,L=$.phase,N=r?r():t;let D,M;const K=Ue(N.delay||0,O);if(L=="mount")D=N.enter,M="enter";else{const xe=m.indexOf(O)<0;if(L!="leave")if(xe)D=N.leave,M="leave";else if(D=N.update)M="update";else return;else if(!xe)D=N.enter,M="enter";else return}if(D=Ue(D,$.item,E),D=j.obj(D)?Yd(D):{to:D},!D.config){const xe=d||R.config;D.config=Ue(xe,$.item,E,M)}b+=o;const Z={...R,delay:K+b,ref:c,immediate:N.immediate,reset:!1,...D};if(M=="enter"&&j.und(Z.from)){const xe=r?r():t,G=j.und(xe.initial)||S?xe.from:xe.initial;Z.from=Ue(G,$.item,E)}const{onResolve:le}=Z;Z.onResolve=xe=>{Ue(le,xe);const G=y.current,me=G.find(_t=>_t.key===O);if(me&&!(xe.cancelled&&me.phase!="update")&&me.ctrl.idle){const _t=G.every(It=>It.ctrl.idle);if(me.phase=="leave"){const It=Ue(a,me.item);if(It!==!1){const un=It===!0?0:It;if(me.expired=!0,!_t&&un>0){un<=2147483647&&(me.expirationId=setTimeout(C,un));return}}}_t&&G.some(It=>It.expired)&&(P.current.delete(me),l&&(_.current=!0),C())}};const we=_c($.ctrl,Z);M==="leave"&&l?P.current.set($,{phase:M,springs:we,payload:Z}):k.set($,{phase:M,springs:we,payload:Z})});const F=x.useContext(Li),A=Ec(F),I=F!==A&&wv(F);Gn(()=>{I&&B(g,$=>{$.ctrl.start({default:F})})},[F]),B(k,($,E)=>{if(P.current.size){const O=g.findIndex(L=>L.key===E.key);g.splice(O,1)}}),Gn(()=>{B(P.current.size?P.current:k,({phase:$,payload:E},O)=>{const{ctrl:L}=O;O.phase=$,h==null||h.add(L),I&&$=="enter"&&L.start({default:F}),E&&(xv(L,E.ref),(L.ref||h)&&!_.current?L.update(E):(L.start(E),_.current&&(_.current=!1)))})},s?void 0:n);const U=$=>x.createElement(x.Fragment,null,g.map((E,O)=>{const{springs:L}=k.get(E)||E.ctrl,N=$({...L},E.item,E,O);return N&&N.type?x.createElement(N.type,{...N.props,key:j.str(E.key)||j.num(E.key)?E.key:E.ctrl.id,ref:N.ref}):N}));return h?[U,h]:U}var pE=1;function mE(e,{key:t,keys:n=t},r){if(n===null){const s=new Set;return e.map(i=>{const o=r&&r.find(a=>a.item===i&&a.phase!=="leave"&&!s.has(a));return o?(s.add(o),o.key):pE++})}return j.und(n)?e:j.fun(n)?e.map(n):Ie(n)}var gE=class extends ef{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=di(...t);const n=this._get(),r=Cc(n);Xd(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Kt(t,n)||(Dt(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Lp(this._active)&&eu(this)}_get(){const e=j.arr(this.source)?this.source.map(ze):Ie(ze(this.source));return this.calc(...e)}_start(){this.idle&&!Lp(this._active)&&(this.idle=!1,B(sl(this),e=>{e.done=!1}),Nt.skipAnimation?(H.batchedUpdates(()=>this.advance()),eu(this)):el.start(this))}_attach(){let e=1;B(Ie(this.source),t=>{dt(t)&&es(t,this),Oc(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){B(Ie(this.source),e=>{dt(e)&&pi(e,this)}),this._active.clear(),eu(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Ie(this.source).reduce((t,n)=>Math.max(t,(Oc(n)?n.priority:0)+1),0))}};function vE(e){return e.idle!==!1}function Lp(e){return!e.size||Array.from(e).every(vE)}function eu(e){e.idle||(e.idle=!0,B(sl(e),t=>{t.done=!0}),hi(e,{type:"idle",parent:e}))}Nt.assign({createStringInterpolator:hv,to:(e,t)=>new gE(e,t)});var Iv=/^--/;function yE(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Iv.test(e)&&!(zs.hasOwnProperty(e)&&zs[e])?t+"px":(""+t).trim()}var Mp={};function wE(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:s,scrollTop:i,scrollLeft:o,viewBox:a,...l}=t,u=Object.values(l),c=Object.keys(l).map(d=>n||e.hasAttribute(d)?d:Mp[d]||(Mp[d]=d.replace(/([A-Z])/g,h=>"-"+h.toLowerCase())));s!==void 0&&(e.textContent=s);for(const d in r)if(r.hasOwnProperty(d)){const h=yE(d,r[d]);Iv.test(d)?e.style.setProperty(d,h):e.style[d]=h}c.forEach((d,h)=>{e.setAttribute(d,u[h])}),i!==void 0&&(e.scrollTop=i),o!==void 0&&(e.scrollLeft=o),a!==void 0&&e.setAttribute("viewBox",a)}var zs={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xE=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),SE=["Webkit","Ms","Moz","O"];zs=Object.keys(zs).reduce((e,t)=>(SE.forEach(n=>e[xE(n,t)]=e[t]),e),zs);var bE=/^(matrix|translate|scale|rotate|skew)/,EE=/^(translate)/,CE=/^(rotate|skew)/,tu=(e,t)=>j.num(e)&&e!==0?e+t:e,_o=(e,t)=>j.arr(e)?e.every(n=>_o(n,t)):j.num(e)?e===t:parseFloat(e)===t,RE=class extends il{constructor({x:e,y:t,z:n,...r}){const s=[],i=[];(e||t||n)&&(s.push([e||0,t||0,n||0]),i.push(o=>[`translate3d(${o.map(a=>tu(a,"px")).join(",")})`,_o(o,0)])),Vt(r,(o,a)=>{if(a==="transform")s.push([o||""]),i.push(l=>[l,l===""]);else if(bE.test(a)){if(delete r[a],j.und(o))return;const l=EE.test(a)?"px":CE.test(a)?"deg":"";s.push(Ie(o)),i.push(a==="rotate3d"?([u,c,d,h])=>[`rotate3d(${u},${c},${d},${tu(h,l)})`,_o(h,0)]:u=>[`${a}(${u.map(c=>tu(c,l)).join(",")})`,_o(u,a.startsWith("scale")?1:0)])}}),s.length&&(r.transform=new kE(s,i)),super(r)}},kE=class extends cv{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return B(this.inputs,(n,r)=>{const s=ze(n[0]),[i,o]=this.transforms[r](j.arr(s)?s:n.map(ze));e+=" "+i,t=t&&o}),t?"none":e}observerAdded(e){e==1&&B(this.inputs,t=>B(t,n=>dt(n)&&es(n,this)))}observerRemoved(e){e==0&&B(this.inputs,t=>B(t,n=>dt(n)&&pi(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),hi(this,e)}},PE=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Nt.assign({batchedUpdates:Pi.unstable_batchedUpdates,createStringInterpolator:hv,colors:yb});var OE=Xb(PE,{applyAnimatedValues:wE,createAnimatedStyle:e=>new RE(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Ca=OE.animated;const nf=x.createContext({ariaLabelId:"",ariaDescriptionId:"",focusId:""});nf.displayName="ModalContext";const Av=()=>{const e=x.useContext(nf);if(!e)throw new Error("Cannot be rendered outside the Modal component");return e},Lv=e=>{const{ariaDescriptionId:t}=Av(),{children:n,className:r}=e,s=V("modal-body",r);return f.jsx("div",{id:t,className:s,children:n})};Lv.displayName="Modal.Body";const NE=Lv,Mv=e=>f.jsx("div",{className:"modal-footer",children:e.children});Mv.displayName="Modal.Footer";const jE=Mv,Dv=e=>{const{onModalClose:t,children:n}=e,{ariaLabelId:r,focusId:s}=Av(),i=x.useRef(null);return x.useEffect(()=>{var o;s||(o=i.current)==null||o.focus()},[s]),f.jsxs("div",{className:"modal-header",children:[f.jsx("h2",{id:r,className:"modal-title",tabIndex:-1,children:n}),f.jsx(Ka,{ref:i,"aria-label":"Close",color:"tertiary",icon:f.jsx(e3,{}),type:"button",variant:"ghost",title:"Delete",onClick:t,className:"btn-close"})]})};Dv.displayName="Modal.Header";const TE=Dv,Fv=e=>f.jsx("p",{className:"modal-subtitle",children:e.children});Fv.displayName="Modal.Subtitle";const _E=Fv,$v=x.forwardRef((e,t)=>{const{id:n,isOpen:r,onModalClose:s,size:i="md",viewport:o=!1,scrollable:a=!1,focusId:l,children:u}=e,c=`aria_label_${n}`,d=`aria_desc_${n}`,h=t0(s),p=B4();$4(s,["Escape"]),x.useEffect(()=>{if(r&&(document.body.style.overflow="hidden",l)){const v=document.getElementById(l);v==null||v.focus()}return()=>{document.body.style.overflow=""}},[l,r]);const g=V("modal fade",{"show d-block":r,"modal-scrollable":a,viewport:o,[`modal-${i}`]:i}),y=V("modal-dialog"),S={ariaLabelId:c,ariaDescriptionId:d,focusId:l},m=tf(r,{from:{x:-50,opacity:0},enter:{x:0,opacity:1},leave:{x:50,opacity:0}});return f.jsx(nf.Provider,{value:S,children:m((v,w)=>f.jsxs(f.Fragment,{children:[w&&f.jsx(Ca.div,{id:n,ref:t,role:"dialog","aria-modal":"true","aria-labelledby":c,"aria-describedby":d,className:g,style:v,tabIndex:-1,children:f.jsx("div",{id:`${n}_ref`,ref:b=>{h.current=b,w&&(p.current=b)},className:y,children:f.jsx("div",{className:"modal-content",children:u})})}),w&&f.jsx(Ca.div,{className:"modal-backdrop fade show",style:{opacity:.65}})]}))})}),IE=Object.assign($v,{Header:TE,Subtitle:_E,Body:NE,Footer:jE});$v.displayName="Modal";const bn=IE,AE=({children:e,className:t})=>{const n=V("popover-body",t);return f.jsx("div",{className:n,children:e})},LE=({children:e,className:t})=>{const n=V("popover-footer p-8",t);return f.jsx("div",{className:n,children:e})},rf=x.forwardRef(({children:e,className:t,id:n,isVisible:r,...s},i)=>{const o=V("popover d-block position-absolute top-100 start-50 translate-middle-x",t);return tf(r,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0},config:{duration:0}})((l,u)=>u&&f.jsx(Ca.div,{ref:i,"aria-labelledby":n,className:o,role:"tooltip",style:l,...s,children:e}))});rf.displayName="Popover";function ME(e,t,n,r,s,i,o,a,l){const u=S=>{S.preventDefault(),s==null||s(e),S.stopPropagation()},c=S=>{(S.code==="Enter"||S.code==="Space")&&(S.preventDefault(),s==null||s(e),S.stopPropagation())},d=()=>{r(!n),n?i==null||i(e):o==null||o(e)};return{handleItemClick:u,handleItemKeyDown:c,handleItemFoldUnfoldClick:S=>{S.preventDefault(),d(),S.stopPropagation()},handleItemFoldUnfoldKeyDown:S=>{(S.code==="Enter"||S.code==="Space")&&(S.preventDefault(),d(),S.stopPropagation())},handleItemFocus:S=>{S.preventDefault(),a==null||a(e)},handleItemBlur:S=>{S.preventDefault(),l==null||l(e)}}}const zv=e=>{const{nodeId:t,label:n,children:r,section:s,selected:i,onItemSelect:o,onItemFold:a,onItemUnfold:l,onItemFocus:u,onItemBlur:c,selectedNodesIds:d}=e,[h,p]=x.useState(!1),{handleItemClick:g,handleItemKeyDown:y,handleItemFoldUnfoldClick:S,handleItemFoldUnfoldKeyDown:m,handleItemFocus:v,handleItemBlur:w}=ME(t,n,h,p,o,a,l,u,c);x.useEffect(()=>{if(d!=null&&d.length&&(d==null?void 0:d.length)>=1){const R=d[d.length-1];d.some(k=>k===t&&t!==R?(p(!0),k===t):(p(!1),!1))}else p(!1)},[t,d]);const b=s?16:12,C=()=>f.jsx("li",{id:`listitem_${t}`,role:"treeitem","aria-selected":i,"aria-expanded":h,children:f.jsxs("div",{children:[f.jsxs("div",{className:"action-container d-flex align-items-center gap-8 px-2",children:[f.jsxs("div",{className:"py-8",tabIndex:0,role:"button",onClick:S,onKeyDown:m,"aria-label":"fold/unfold button",children:[Array.isArray(r)&&!h&&f.jsx(tp,{title:"RafterRight",width:b,height:b}),Array.isArray(r)&&h&&f.jsx(gc,{title:"RafterDown",width:b,height:b}),!Array.isArray(r)&&f.jsx(tp,{title:"RafterRight",width:b,height:b,"aria-hidden":"true",className:"opacity-0"})]}),f.jsxs("div",{tabIndex:0,role:"button",className:"flex-fill d-flex align-items-center text-truncate gap-8 py-8",onClick:g,onKeyDown:y,onFocus:v,onBlur:w,children:[s&&f.jsx(d3,{title:"Folder",width:20,height:20}),f.jsx("span",{className:"text-truncate",children:n})]})]}),Array.isArray(r)&&f.jsx("ul",{role:"group",children:r})]})},t);return s?f.jsx("ul",{role:"tree",className:"m-0 p-0",children:C()}):C()};zv.displayName="TreeItem";const DE=zv,Uv=x.forwardRef((e,t)=>{const{data:n,onTreeItemSelect:r,onTreeItemFold:s,onTreeItemUnfold:i,onTreeItemFocus:o,onTreeItemBlur:a,selectedNodesIds:l}=e,[u,c]=x.useState("default");x.useEffect(()=>{l!=null&&l.length&&(l==null?void 0:l.length)>=1?c(l[l.length-1]):c("")},[l]);const d=m=>{c(m),r==null||r(m)},h=m=>{s==null||s(m)},p=m=>{i==null||i(m)},g=m=>{o==null||o(m)},y=m=>{a==null||a(m)},S=m=>f.jsx(DE,{nodeId:m.id,label:m.name,section:m.section,selectedNodesIds:l,selected:u===m.id,onItemSelect:d,onItemFold:h,onItemUnfold:p,onItemFocus:g,onItemBlur:y,children:Array.isArray(m.children)?m.children.map(v=>S(v)):null},m.id);return f.jsx("div",{ref:t,id:"treeview",className:"treeview",children:S(n)})});Uv.displayName="TreeView";const FE=Uv,Bv=x.forwardRef(({children:e},t)=>f.jsx("span",{className:"visually-hidden",ref:t,children:e}));Bv.displayName="VisuallyHidden";const Cs=Bv,$E=()=>{const e=Ls("fr.openent.zimbra.controllers.ZimbraController|view"),t=Ls("fr.openent.zimbra.controllers.ZimbraController|preauth"),[n,r]=x.useState(0),[s,i]=x.useState(""),o=x.useCallback(async()=>{if(e)try{const l=await X.http().get("/zimbra/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});l.status!==200&&r(0),r(l.count)}catch{console.error("error"),r(0)}else try{const l=await X.http().get("/conversation/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});r(l.count)}catch{console.error("error"),r(0)}},[e]),a=x.useCallback(()=>{let l="";X.http().get("/userbook/preference/zimbra").then(u=>{try{u.preference&&JSON.parse(u.preference).modeExpert&&t?l="/zimbra/preauth":l=window.location.origin+"/zimbra/zimbra"}catch{l="/zimbra/zimbra"}}),i(l)},[t]);return x.useEffect(()=>{(async()=>{try{await o()}catch(l){console.error(l)}})(),a()},[a,o]),{messages:n,msgLink:s,zimbraWorkflow:e}},zE=$E;function nu({children:e}){return f.jsx("span",{className:"position-absolute badge rounded-pill bg-warning",children:e})}function ru({children:e,className:t,...n}){const r=V("navbar",t);return f.jsx("nav",{className:r,...n,children:e})}function Dp({children:e,className:t,...n}){const r=V("navbar-nav",t);return f.jsx("ul",{className:r,...n,children:e})}const ce=x.forwardRef(({children:e,className:t,...n},r)=>{const s=V("nav-item",t);return f.jsx("li",{ref:r,className:s,...n,children:e})});ce.displayName="NavItem";function vs({link:e,className:t,children:n,translate:r,...s}){const i=V("nav-link",t);return f.jsxs("a",{href:e,className:i,...s,children:[n,r&&f.jsx(Cs,{children:f.jsx("span",{className:"nav-text",children:r})})]})}const UE=()=>{const{t:e}=pe();return f.jsx("div",{className:"widget-footer",children:f.jsx("div",{className:"widget-footer-action",children:f.jsx("a",{href:"/welcome",className:"link",children:e("plus")})})})},BE=({bookmarkedApps:e})=>{const{t}=pe();return f.jsxs("div",{className:"widget-body d-flex flex-wrap",children:[!e.length&&f.jsx("div",{className:"text-dark",children:t("navbar.myapps.more")}),e.slice(0,6).map((n,r)=>f.jsx("a",{href:n.address,className:"bookmarked-app",children:f.jsx(vc,{app:n,size:"32"})},r))]})};var sf={},of={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function n(r){return r.type===t.Tag||r.type===t.Script||r.type===t.Style}e.isTag=n,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(of);var q={},zn=_e&&_e.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]=s[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Us=_e&&_e.__assign||function(){return Us=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},Us.apply(this,arguments)};Object.defineProperty(q,"__esModule",{value:!0});q.cloneNode=q.hasChildren=q.isDocument=q.isDirective=q.isComment=q.isText=q.isCDATA=q.isTag=q.Element=q.Document=q.CDATA=q.NodeWithChildren=q.ProcessingInstruction=q.Comment=q.Text=q.DataNode=q.Node=void 0;var Ke=of,af=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),lf(this,t)},e}();q.Node=af;var al=function(e){zn(t,e);function t(n){var r=e.call(this)||this;return r.data=n,r}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(n){this.data=n},enumerable:!1,configurable:!0}),t}(af);q.DataNode=al;var Vv=function(e){zn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ke.ElementType.Text,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(al);q.Text=Vv;var Hv=function(e){zn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ke.ElementType.Comment,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(al);q.Comment=Hv;var qv=function(e){zn(t,e);function t(n,r){var s=e.call(this,r)||this;return s.name=n,s.type=Ke.ElementType.Directive,s}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(al);q.ProcessingInstruction=qv;var ll=function(e){zn(t,e);function t(n){var r=e.call(this)||this;return r.children=n,r}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var n;return(n=this.children[0])!==null&&n!==void 0?n:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(n){this.children=n},enumerable:!1,configurable:!0}),t}(af);q.NodeWithChildren=ll;var Qv=function(e){zn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ke.ElementType.CDATA,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(ll);q.CDATA=Qv;var Wv=function(e){zn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ke.ElementType.Root,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(ll);q.Document=Wv;var Kv=function(e){zn(t,e);function t(n,r,s,i){s===void 0&&(s=[]),i===void 0&&(i=n==="script"?Ke.ElementType.Script:n==="style"?Ke.ElementType.Style:Ke.ElementType.Tag);var o=e.call(this,s)||this;return o.name=n,o.attribs=r,o.type=i,o}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(n){this.name=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var n=this;return Object.keys(this.attribs).map(function(r){var s,i;return{name:r,value:n.attribs[r],namespace:(s=n["x-attribsNamespace"])===null||s===void 0?void 0:s[r],prefix:(i=n["x-attribsPrefix"])===null||i===void 0?void 0:i[r]}})},enumerable:!1,configurable:!0}),t}(ll);q.Element=Kv;function Zv(e){return(0,Ke.isTag)(e)}q.isTag=Zv;function Gv(e){return e.type===Ke.ElementType.CDATA}q.isCDATA=Gv;function Xv(e){return e.type===Ke.ElementType.Text}q.isText=Xv;function Yv(e){return e.type===Ke.ElementType.Comment}q.isComment=Yv;function Jv(e){return e.type===Ke.ElementType.Directive}q.isDirective=Jv;function ey(e){return e.type===Ke.ElementType.Root}q.isDocument=ey;function VE(e){return Object.prototype.hasOwnProperty.call(e,"children")}q.hasChildren=VE;function lf(e,t){t===void 0&&(t=!1);var n;if(Xv(e))n=new Vv(e.data);else if(Yv(e))n=new Hv(e.data);else if(Zv(e)){var r=t?su(e.children):[],s=new Kv(e.name,Us({},e.attribs),r);r.forEach(function(l){return l.parent=s}),e.namespace!=null&&(s.namespace=e.namespace),e["x-attribsNamespace"]&&(s["x-attribsNamespace"]=Us({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(s["x-attribsPrefix"]=Us({},e["x-attribsPrefix"])),n=s}else if(Gv(e)){var r=t?su(e.children):[],i=new Qv(r);r.forEach(function(u){return u.parent=i}),n=i}else if(ey(e)){var r=t?su(e.children):[],o=new Wv(r);r.forEach(function(u){return u.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}else if(Jv(e)){var a=new qv(e.name,e.data);e["x-name"]!=null&&(a["x-name"]=e["x-name"],a["x-publicId"]=e["x-publicId"],a["x-systemId"]=e["x-systemId"]),n=a}else throw new Error("Not implemented yet: ".concat(e.type));return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}q.cloneNode=lf;function su(e){for(var t=e.map(function(r){return lf(r,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}(function(e){var t=_e&&_e.__createBinding||(Object.create?function(a,l,u,c){c===void 0&&(c=u);var d=Object.getOwnPropertyDescriptor(l,u);(!d||("get"in d?!l.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return l[u]}}),Object.defineProperty(a,c,d)}:function(a,l,u,c){c===void 0&&(c=u),a[c]=l[u]}),n=_e&&_e.__exportStar||function(a,l){for(var u in a)u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u)&&t(l,a,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=of,s=q;n(q,e);var i={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=function(){function a(l,u,c){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(c=u,u=i),typeof l=="object"&&(u=l,l=void 0),this.callback=l??null,this.options=u??i,this.elementCB=c??null}return a.prototype.onparserinit=function(l){this.parser=l},a.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},a.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},a.prototype.onerror=function(l){this.handleCallback(l)},a.prototype.onclosetag=function(){this.lastNode=null;var l=this.tagStack.pop();this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(l)},a.prototype.onopentag=function(l,u){var c=this.options.xmlMode?r.ElementType.Tag:void 0,d=new s.Element(l,u,void 0,c);this.addNode(d),this.tagStack.push(d)},a.prototype.ontext=function(l){var u=this.lastNode;if(u&&u.type===r.ElementType.Text)u.data+=l,this.options.withEndIndices&&(u.endIndex=this.parser.endIndex);else{var c=new s.Text(l);this.addNode(c),this.lastNode=c}},a.prototype.oncomment=function(l){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=l;return}var u=new s.Comment(l);this.addNode(u),this.lastNode=u},a.prototype.oncommentend=function(){this.lastNode=null},a.prototype.oncdatastart=function(){var l=new s.Text(""),u=new s.CDATA([l]);this.addNode(u),l.parent=u,this.lastNode=l},a.prototype.oncdataend=function(){this.lastNode=null},a.prototype.onprocessinginstruction=function(l,u){var c=new s.ProcessingInstruction(l,u);this.addNode(c)},a.prototype.handleCallback=function(l){if(typeof this.callback=="function")this.callback(l,this.dom);else if(l)throw l},a.prototype.addNode=function(l){var u=this.tagStack[this.tagStack.length-1],c=u.children[u.children.length-1];this.options.withStartIndices&&(l.startIndex=this.parser.startIndex),this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),u.children.push(l),c&&(l.prev=c,c.next=l),l.parent=u,this.lastNode=null},a}();e.DomHandler=o,e.default=o})(sf);var Fp="html",$p="head",uo="body",HE=/<([a-zA-Z]+[0-9]?)/,zp=/<head[^]*>/i,Up=/<body[^]*>/i,Ra=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},Ic=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},Bp=typeof window=="object"&&window.DOMParser;if(typeof Bp=="function"){var qE=new Bp,QE="text/html";Ic=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),qE.parseFromString(e,QE)},Ra=Ic}if(typeof document=="object"&&document.implementation){var co=document.implementation.createHTMLDocument();Ra=function(e,t){if(t){var n=co.documentElement.querySelector(t);return n.innerHTML=e,co}return co.documentElement.innerHTML=e,co}}var iu=typeof document=="object"?document.createElement("template"):{},Ac;iu.content&&(Ac=function(e){return iu.innerHTML=e,iu.content.childNodes});function WE(e){var t,n=e.match(HE);n&&n[1]&&(t=n[1].toLowerCase());var r,s,i;switch(t){case Fp:return r=Ic(e),zp.test(e)||(s=r.querySelector($p),s&&s.parentNode.removeChild(s)),Up.test(e)||(s=r.querySelector(uo),s&&s.parentNode.removeChild(s)),r.querySelectorAll(Fp);case $p:case uo:return r=Ra(e),i=r.querySelectorAll(t),Up.test(e)&&zp.test(e)?i[0].parentNode.childNodes:i;default:return Ac?Ac(e):(s=Ra(e,uo).querySelector(uo),s.childNodes)}}var KE=WE,uf={},ty={};ty.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"];var ul=sf,ZE=ty,Vp=ZE.CASE_SENSITIVE_TAG_NAMES,GE=ul.Comment,XE=ul.Element,YE=ul.ProcessingInstruction,JE=ul.Text,ny={},ou;for(var au=0,eC=Vp.length;au<eC;au++)ou=Vp[au],ny[ou.toLowerCase()]=ou;function tC(e){return ny[e]}function ry(e){for(var t={},n,r=0,s=e.length;r<s;r++)n=e[r],t[n.name]=n.value;return t}function nC(e){e=e.toLowerCase();var t=tC(e);return t||e}function sy(e,t,n){t=t||null;for(var r=[],s,i=0,o=e.length;i<o;i++){var a=e[i],l;switch(a.nodeType){case 1:s=nC(a.nodeName),l=new XE(s,ry(a.attributes)),l.children=sy(s==="template"?a.content.childNodes:a.childNodes,l);break;case 3:l=new JE(a.nodeValue);break;case 8:l=new GE(a.nodeValue);break;default:continue}var u=r[i-1]||null;u&&(u.next=l),l.parent=t,l.prev=u,l.next=null,r.push(l)}return n&&(l=new YE(n.substring(0,n.indexOf(" ")).toLowerCase(),n),l.next=r[0]||null,l.parent=t,r.unshift(l),r[1]&&(r[1].prev=r[0])),r}uf.formatAttributes=ry;uf.formatDOM=sy;var rC=KE,sC=uf,iC=sC.formatDOM,oC=/<(![a-zA-Z\s]+)>/;function aC(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(e==="")return[];var t=e.match(oC),n;return t&&t[1]&&(n=t[1]),iC(rC(e),null,n)}var lC=aC,wt={},cl={},uC=0;cl.SAME=uC;var cC=1;cl.CAMELCASE=cC;cl.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1};Object.defineProperty(wt,"__esModule",{value:!0});function dC(e,t){return fC(e)||hC(e,t)||pC(e,t)||mC()}function fC(e){if(Array.isArray(e))return e}function hC(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],s=!0,i=!1,o,a;try{for(n=n.call(e);!(s=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));s=!0);}catch(l){i=!0,a=l}finally{try{!s&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function pC(e,t){if(e){if(typeof e=="string")return Hp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hp(e,t)}}function Hp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
226
226
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var iy=0,Un=1,dl=2,fl=3,cf=4,oy=5,ay=6;function gC(e){return Ce.hasOwnProperty(e)?Ce[e]:null}function De(e,t,n,r,s,i,o){this.acceptsBooleans=t===dl||t===fl||t===cf,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Ce={},vC=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];vC.forEach(function(e){Ce[e]=new De(e,iy,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=dC(e,2),n=t[0],r=t[1];Ce[n]=new De(n,Un,!1,r,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ce[e]=new De(e,dl,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ce[e]=new De(e,dl,!1,e,null,!1,!1)});["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){Ce[e]=new De(e,fl,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ce[e]=new De(e,fl,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ce[e]=new De(e,cf,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ce[e]=new De(e,ay,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ce[e]=new De(e,oy,!1,e.toLowerCase(),null,!1,!1)});var df=/[\-\:]([a-z])/g,ff=function(t){return t[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var t=e.replace(df,ff);Ce[t]=new De(t,Un,!1,e,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(df,ff);Ce[t]=new De(t,Un,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(df,ff);Ce[t]=new De(t,Un,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ce[e]=new De(e,Un,!1,e.toLowerCase(),null,!1,!1)});var yC="xlinkHref";Ce[yC]=new De("xlinkHref",Un,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ce[e]=new De(e,Un,!1,e.toLowerCase(),null,!0,!0)});var hf=cl,wC=hf.CAMELCASE,xC=hf.SAME,qp=hf.possibleStandardNames,SC=":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",bC=SC+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",EC=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+bC+"]*$")),CC=Object.keys(qp).reduce(function(e,t){var n=qp[t];return n===xC?e[t]=t:n===wC?e[t.toLowerCase()]=t:e[t]=n,e},{});wt.BOOLEAN=fl;wt.BOOLEANISH_STRING=dl;wt.NUMERIC=oy;wt.OVERLOADED_BOOLEAN=cf;wt.POSITIVE_NUMERIC=ay;wt.RESERVED=iy;wt.STRING=Un;wt.getPropertyInfo=gC;wt.isCustomAttribute=EC;wt.possibleStandardNames=CC;var ly={},pf={exports:{}},Qp=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,RC=/\n/g,kC=/^\s*/,PC=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,OC=/^:\s*/,NC=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,jC=/^[;\s]*/,TC=/^\s+|\s+$/g,_C=`
227
- `,Wp="/",Kp="*",qn="",IC="comment",AC="declaration",LC=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function s(g){var y=g.match(RC);y&&(n+=y.length);var S=g.lastIndexOf(_C);r=~S?g.length-S:r+g.length}function i(){var g={line:n,column:r};return function(y){return y.position=new o(g),u(),y}}function o(g){this.start=g,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(g){var y=new Error(t.source+":"+n+":"+r+": "+g);if(y.reason=g,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function l(g){var y=g.exec(e);if(y){var S=y[0];return s(S),e=e.slice(S.length),y}}function u(){l(kC)}function c(g){var y;for(g=g||[];y=d();)y!==!1&&g.push(y);return g}function d(){var g=i();if(!(Wp!=e.charAt(0)||Kp!=e.charAt(1))){for(var y=2;qn!=e.charAt(y)&&(Kp!=e.charAt(y)||Wp!=e.charAt(y+1));)++y;if(y+=2,qn===e.charAt(y-1))return a("End of comment missing");var S=e.slice(2,y-2);return r+=2,s(S),e=e.slice(y),r+=2,g({type:IC,comment:S})}}function h(){var g=i(),y=l(PC);if(y){if(d(),!l(OC))return a("property missing ':'");var S=l(NC),p=g({type:AC,property:Zp(y[0].replace(Qp,qn)),value:S?Zp(S[0].replace(Qp,qn)):qn});return l(jC),p}}function m(){var g=[];c(g);for(var y;y=h();)y!==!1&&(g.push(y),c(g));return g}return u(),m()};function Zp(e){return e?e.replace(TC,qn):qn}var MC=LC;function uy(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,s=MC(e),i=typeof t=="function",o,a,l=0,u=s.length;l<u;l++)r=s[l],o=r.property,a=r.value,i?t(o,a,r):a&&(n||(n={}),n[o]=a);return n}pf.exports=uy;pf.exports.default=uy;var DC=pf.exports,hl={};hl.__esModule=!0;hl.camelCase=void 0;var FC=/^--[a-zA-Z0-9-]+$/,$C=/-([a-z])/g,zC=/^[^-]+$/,UC=/^-(webkit|moz|ms|o|khtml)-/,BC=/^-(ms)-/,VC=function(e){return!e||zC.test(e)||FC.test(e)},HC=function(e,t){return t.toUpperCase()},Gp=function(e,t){return"".concat(t,"-")},qC=function(e,t){return t===void 0&&(t={}),VC(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(BC,Gp):e=e.replace(UC,Gp),e.replace($C,HC))};hl.camelCase=qC;(function(e){var t=_e&&_e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};e.__esModule=!0;var n=t(DC),r=hl;function s(i,o){var a={};return!i||typeof i!="string"||(0,n.default)(i,function(l,u){l&&u&&(a[(0,r.camelCase)(l,o)]=u)}),a}e.default=s})(ly);var QC=x,WC=ly.default;function KC(e,t){if(!e||typeof e!="object")throw new TypeError("First argument must be an object");var n,r,s=typeof t=="function",i={},o={};for(n in e){if(r=e[n],s&&(i=t(n,r),i&&i.length===2)){o[i[0]]=i[1];continue}typeof r=="string"&&(o[r]=n)}return o}function ZC(e,t){if(e.indexOf("-")===-1)return t&&typeof t.is=="string";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 GC={reactCompat:!0};function XC(e,t){if(e!=null)try{t.style=WC(e,GC)}catch{t.style={}}}var YC=QC.version.split(".")[0]>=16,cy=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);function JC(e){return!cy.has(e.name)}var dy={PRESERVE_CUSTOM_ATTRIBUTES:YC,invertObject:KC,isCustomComponent:ZC,setStyleProp:XC,canTextBeChildOfNode:JC,elementsWithNoTextChildren:cy},Rs=wt,Xp=dy,eR=["checked","value"],tR=["input","select","textarea"],nR={reset:!0,submit:!0},fy=function(t,n){t=t||{};var r,s,i,o,a,l={},u=t.type&&nR[t.type];for(r in t){if(i=t[r],Rs.isCustomAttribute(r)){l[r]=i;continue}if(s=r.toLowerCase(),o=Yp(s),o){switch(a=Rs.getPropertyInfo(o),eR.indexOf(o)!==-1&&tR.indexOf(n)!==-1&&!u&&(o=Yp("default"+s)),l[o]=i,a&&a.type){case Rs.BOOLEAN:l[o]=!0;break;case Rs.OVERLOADED_BOOLEAN:i===""&&(l[o]=!0);break}continue}Xp.PRESERVE_CUSTOM_ATTRIBUTES&&(l[r]=i)}return Xp.setStyleProp(t.style,l),l};function Yp(e){return Rs.possibleStandardNames[e]}var rR=x,sR=fy,ka=dy,iR=ka.setStyleProp,oR=ka.canTextBeChildOfNode;function hy(e,t){t=t||{};for(var n=t.library||rR,r=n.cloneElement,s=n.createElement,i=n.isValidElement,o=[],a,l,u=typeof t.replace=="function",c,d,h,m=t.trim,g=0,y=e.length;g<y;g++){if(a=e[g],u&&(c=t.replace(a),i(c))){y>1&&(c=r(c,{key:c.key||g})),o.push(c);continue}if(a.type==="text"){if(l=!a.data.trim().length,l&&a.parent&&!oR(a.parent)||m&&l)continue;o.push(a.data);continue}switch(d=a.attribs,aR(a)?iR(d.style,d):d&&(d=sR(d,a.name)),h=null,a.type){case"script":case"style":a.children[0]&&(d.dangerouslySetInnerHTML={__html:a.children[0].data});break;case"tag":a.name==="textarea"&&a.children[0]?d.defaultValue=a.children[0].data:a.children&&a.children.length&&(h=hy(a.children,t));break;default:continue}y>1&&(d.key=g),o.push(s(a.name,d,h))}return o.length===1?o[0]:o}function aR(e){return ka.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&ka.isCustomComponent(e.name,e.attribs)}var lR=hy,pl=sf,Nr=lC,uR=fy,py=lR;Nr=typeof Nr.default=="function"?Nr.default:Nr;var cR={lowerCaseAttributeNames:!1};function Ht(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e===""?[]:(t=t||{},py(Nr(e,t.htmlparser2||cR),t))}Ht.domToReact=py;Ht.htmlToDOM=Nr;Ht.attributesToProps=uR;Ht.Comment=pl.Comment;Ht.Element=pl.Element;Ht.ProcessingInstruction=pl.ProcessingInstruction;Ht.Text=pl.Text;var dR=Ht;Ht.default=Ht;const Bn=Pa(dR);var fo=Bn.domToReact;Bn.htmlToDOM;var lu=Bn.attributesToProps;Bn.Comment;Bn.Element;Bn.ProcessingInstruction;Bn.Text;function fR(){var y;const{appCode:e}=yt(),{theme:t}=Ad(),[n,r]=x.useState(""),[s,i]=x.useState(!0),[o,a]=x.useState(!1),[l,u]=x.useState(!1),c=t!=null&&t.is1d?"/help-1d":"/help-2d";x.useEffect(()=>{(async()=>{let S="";S=c+"/application/"+e+"/",!e&&window.location.pathname!=="/adapter"?S=c+"/application/portal/":window.location.pathname==="/adapter"?S=c+"/application/"+window.location.search.split("eliot=")[1].split("&")[0]+"/":window.location.pathname.includes("/directory/class-admin")?S=c+"/application/parametrage-de-la-classe/":(window.location.pathname.includes("/userbook/mon-compte")||window.location.pathname.includes("/timeline/preferencesView")||window.location.pathname.includes("/timeline/historyView"))&&(S=c+"/application/userbook/");try{const p=await fetch(S),v=await p.text();if(p.status===404){u(!0);return}r(v),u(!1)}catch(p){u(!0),console.error(p)}})()},[e,c]);const h=Bn(n,{replace:S=>{const p=S;if(p.attribs&&p.attribs.id==="TOC")return f.jsxs("nav",{id:"TOC",children:[f.jsx(Jr,{onClick:()=>{i(!s)},children:f.jsx(Y4,{})}),fo(p.children,{replace:v=>{const w=v;if(w.attribs&&w.name==="ul")return f.jsx("ul",{id:"TOC-list",style:{display:s?"block":"none"},children:fo(w.children,{replace:b=>{const C=b;if(C.attribs&&C.name==="a")return f.jsx("a",{...lu(C.attribs),children:f.jsx("span",{onClick:()=>{i(!1)},children:fo(C.children)})})}})})}})]});if(p.attribs&&p.attribs.class==="section level2"){const v=lu(S.attribs);return f.jsx("div",{...v,className:"section level2",style:{display:p.attribs.id!=="présentation"?"none":"block"},children:fo(p.children,{replace:w=>{const b=w;if(b.attribs&&b.name==="img"){const C=w.attribs.src;return f.jsx("img",{...lu(b.attribs),src:`${c}/${C}`,alt:""})}}})})}}}),m=(y=h==null?void 0:h.props)==null?void 0:y.children.find(S=>S.type==="body").props.children,g=m==null?void 0:m.find(S=>S.type==="p").props.children;return{html:n,visibility:s,isModalOpen:o,setIsModalOpen:a,parsedContent:m,parsedHeadline:g,error:l}}const my=()=>{const[e,t]=Yg(),n=x.useRef(null),r=x.useId(),{t:s}=ye();function i(){if(n.current){const o=n.current.value;window.location.href=`/searchengine#/${o}`}}return f.jsxs(ce,{id:r,ref:e,className:"position-relative","aria-haspopup":"true","aria-expanded":t,children:[f.jsxs("a",{href:"/searchengine",className:"nav-link dropdown-item",children:[f.jsx(t5,{className:"icon search"}),f.jsx("span",{className:"nav-text",children:s("navbar.search")})]}),f.jsx(rf,{id:r,isVisible:t,className:"d-none d-md-flex",children:f.jsxs(yc,{id:"my-search-input",className:"search-text input-group py-8 px-12",children:[f.jsx(yc.Input,{ref:n,size:"sm",type:"text",name:"my-search-input",placeholder:"Rechercher"}),f.jsx(b0,{type:"submit",size:"sm",onClick:i,"aria-label":s("navbar.search")})]})})]})};my.displayName="SearchEngine";const hR=my;function Jp({isHelpOpen:e,setIsHelpOpen:t,parsedHeadline:n,parsedContent:r,error:s}){const{t:i}=ye(),o=()=>{t(!1)};return e?Pi.createPortal(f.jsxs(bn,{id:"help-modal",isOpen:e,onModalClose:o,scrollable:!0,size:"lg",children:[f.jsx(bn.Header,{onModalClose:o,children:i("navbar.help")}),f.jsx(bn.Subtitle,{children:s?i("help.notfound.title"):n}),f.jsx(bn.Body,{className:s?"d-flex":null,children:s?i("help.notfound.text"):r})]}),document.getElementById("portal")):null}const gy=({is1d:e=!1,src:t=""})=>{const{t:n}=ye(),{messages:r,msgLink:s,zimbraWorkflow:i}=zE(),{user:o,avatar:a}=Ld(),{isModalOpen:l,setIsModalOpen:u,parsedContent:c,parsedHeadline:d,error:h}=fR(),m=V("header",{"no-2d":e,"no-1d":!e}),{title:g,bookmarkedApps:y,appsRef:S,isAppsHovered:p,popoverAppsId:v,userAvatar:w,userName:b,welcomeUser:C,communityWorkflow:R,conversationWorflow:k,searchWorkflow:P,isCollapsed:_,toggleCollapsedNav:F,handleLogout:A}=qS({user:o,avatar:a}),I=r>0;return f.jsx("header",{className:m,children:e?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"container-fluid",children:f.jsxs(ru,{children:[f.jsx("a",{className:"navbar-title d-md-none text-truncate h4",href:"/timeline/timeline",children:g}),f.jsxs("div",{className:"d-none d-md-inline-flex gap-12 align-items-center",children:[f.jsx(np,{alt:b,size:"sm",src:w,variant:"circle",width:"32",height:"32"}),f.jsx("span",{className:"navbar-text",children:C})]}),f.jsxs(Dp,{className:"gap-8","aria-hidden":"false","aria-label":n("navbar.main.navigation"),children:[k&&f.jsx(ce,{children:f.jsxs("a",{href:"/conversation/conversation",className:"nav-link",children:[f.jsx(X3,{className:"icon notification"}),I&&f.jsx(nu,{children:r}),f.jsx(Cs,{children:n("navbar.messages")})]})}),f.jsx(ce,{children:f.jsx(vs,{link:"/userbook/mon-compte",className:"dropdown-item",translate:n("navbar.myaccount"),children:f.jsx(J3,{className:"icon user"})})}),f.jsxs(ce,{children:[f.jsxs("button",{className:"nav-link",onClick:()=>{u(!0)},children:[f.jsx(Z3,{className:"icon help"}),f.jsx(Cs,{children:n("navbar.help")})]}),f.jsx(Jp,{isHelpOpen:l,setIsHelpOpen:u,parsedContent:c,parsedHeadline:d,error:h})]}),f.jsx(ce,{children:f.jsxs("button",{className:"nav-link",onClick:A,children:[f.jsx(sp,{className:"icon logout"}),f.jsx(Cs,{children:n("navbar.disconnect")})]})}),f.jsx(ce,{className:"d-md-none",children:f.jsx("button",{className:"nav-link btn btn-naked",type:"button","aria-controls":"navbarCollapsed","aria-expanded":!_,"aria-label":n("navbar.secondary.navigation"),onClick:F,children:f.jsx(gc,{className:"icon rafter-down",width:"20",height:"20"})})})]})]})}),f.jsx(ru,{className:"no-2d navbar-secondary navbar-expand-md","aria-label":n("navbar.secondary.navigation"),children:f.jsx("div",{className:"container-fluid",children:f.jsxs("div",{className:`collapse navbar-collapse ${_?"":"show"}`,id:"navbarCollapsed",children:[f.jsx(pp,{is1d:!0,src:`${t}/img/illustrations/logo.png`,translate:n("navbar.home")}),f.jsxs(Dp,{className:"gap-8",children:[f.jsx(ce,{children:f.jsxs("a",{href:"/timeline/timeline",className:"button",children:[f.jsx(W3,{color:"#fff",className:"d-md-none"}),f.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.whatsnew")})]})}),f.jsx(ce,{children:f.jsxs("a",{href:"/userbook/annuaire",className:"button",children:[f.jsx(r5,{color:"#fff",className:"d-md-none"}),f.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.classMembers")})]})}),f.jsx(ce,{children:f.jsxs("a",{href:"/welcome",className:"button",children:[f.jsx(ip,{color:"#fff",className:"d-md-none"}),f.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.myapps")})]})})]})]})})})]}):f.jsx(ru,{className:"navbar-expand-md",children:f.jsxs("div",{className:"container-fluid",children:[f.jsx(pp,{src:`${t}/img/illustrations/logo.png`}),f.jsx("a",{href:"/timeline/timeline",className:"navbar-title text-truncate d-md-none",children:g}),f.jsxs("ul",{className:"navbar-nav",children:[f.jsx(ce,{children:f.jsx(vs,{link:"/timeline/timeline",translate:n("navbar.home"),children:f.jsx(U3,{color:"#fff"})})}),f.jsxs(ce,{className:"position-relative",ref:S,id:v,"aria-haspopup":"true","aria-expanded":p,children:[f.jsx(vs,{link:"/welcome",translate:n("navbar.applications"),children:f.jsx(ip,{color:"#fff"})}),f.jsxs(rf,{className:"top-100 widget",id:v,isVisible:p,children:[f.jsx(AE,{children:f.jsx(BE,{bookmarkedApps:y})}),f.jsx(LE,{className:"widget-footer border-top border-ghost",children:f.jsx(UE,{})})]})]}),k&&f.jsx(ce,{children:f.jsxs(vs,{className:"position-relative",link:"/conversation/conversation",translate:n("conversation"),children:[f.jsx(op,{color:"#fff"}),I&&f.jsx(nu,{children:r})]})}),i&&f.jsx(ce,{children:f.jsxs(vs,{className:"position-relative",link:s,translate:n("conversation"),children:[f.jsx(op,{color:"#fff"}),I&&f.jsx(nu,{children:r})]})}),f.jsxs(ce,{children:[f.jsxs("button",{className:"nav-link btn btn-naked",onClick:()=>{u(!0)},children:[f.jsx(H3,{color:"#fff"}),f.jsx(Cs,{children:n("support")})]}),f.jsx(Jp,{isHelpOpen:l,setIsHelpOpen:u,parsedContent:c,parsedHeadline:d,error:h})]}),f.jsx(ce,{children:f.jsxs("div",{className:"dropdown",children:[f.jsx("button",{className:"nav-link btn btn-naked d-md-none",type:"button","aria-controls":"dropdown-navbar","aria-expanded":!_,"aria-label":n("navbar.open.menu"),onClick:F,children:f.jsx(gc,{className:"icon rafter-down",width:"20",height:"20",color:"#fff"})}),f.jsxs("ul",{className:`dropdown-menu dropdown-menu-end ${_?"":"show"}`,id:"dropdown-navbar",children:[R&&f.jsx(ce,{children:f.jsxs("a",{href:"/community",className:"nav-link dropdown-item",children:[f.jsx(F3,{className:"icon community"}),f.jsx("span",{className:"nav-text",children:n("navbar.community")})]})}),P?f.jsx(hR,{}):null,f.jsx(ce,{children:f.jsxs("a",{href:"/userbook/mon-compte",className:"nav-link dropdown-item",children:[f.jsx(np,{alt:b,size:"sm",src:w,variant:"circle",className:"bg-white",width:"32",height:"32"}),f.jsx("span",{className:"nav-text",children:n("navbar.myaccount")})]})}),f.jsx(ce,{children:f.jsx("hr",{className:"dropdown-divider"})}),f.jsx(ce,{children:f.jsxs("a",{href:"/auth/logout?callback=",className:"nav-link dropdown-item",children:[f.jsx(sp,{className:"icon logout"}),f.jsx("span",{id:"logout-label",className:"nav-text",children:n("navbar.disconnect")})]})})]})]})})]})]})})})};gy.displayName="Header";const pR=gy;function vy({children:e,className:t,...n}){const r=V("container-fluid",t);return f.jsx("main",{className:r,...n,children:e})}vy.displayName="Main";const yy=({children:e,...t})=>{const{theme:n}=Ad();return f.jsxs(f.Fragment,{children:[f.jsx(pR,{is1d:n==null?void 0:n.is1d,src:n==null?void 0:n.basePath}),f.jsx(vy,{className:V("d-flex flex-column bg-white",{"rounded-4 border":n==null?void 0:n.is1d,"mt-24":n==null?void 0:n.is1d}),...t,children:e}),f.jsx(D4,{toastOptions:{position:"top-right"}})]})};yy.displayName="Layout";const mR=yy,gR=function(){return null};var wy,em=Pi;wy=em.createRoot,em.hydrateRoot;const Lt=document.querySelector("[data-ode-app]");let ys;function ml(){var e;if(ys)return ys;if(ys={app:ho.PORTAL,types:["folder"],filters:[],actions:[],trashActions:[],orders:[]},(e=Lt==null?void 0:Lt.dataset)!=null&&e.odeApp){const{odeApp:t}=Lt.dataset;try{const n=JSON.parse(t);Object.assign(ys,n)}catch(n){console.error("[AppParams] could not parse app params from root data attributes:",Lt==null?void 0:Lt.dataset,n)}}else console.error("[AppParams] could not found app params from root data attributes:",Lt==null?void 0:Lt.dataset);return ys}const tm=e=>{let t;const n=new Set,r=(l,u)=>{const c=typeof l=="function"?l(t):l;if(!Object.is(c,t)){const d=t;t=u??typeof c!="object"?c:Object.assign({},t,c),n.forEach(h=>h(t,d))}},s=()=>t,a={setState:r,getState:s,subscribe:l=>(n.add(l),()=>n.delete(l)),destroy:()=>{n.clear()}};return t=e(r,s,a),a},vR=e=>e?tm(e):tm;var xy={exports:{}},Sy={};/**
227
+ `,Wp="/",Kp="*",qn="",IC="comment",AC="declaration",LC=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function s(g){var y=g.match(RC);y&&(n+=y.length);var S=g.lastIndexOf(_C);r=~S?g.length-S:r+g.length}function i(){var g={line:n,column:r};return function(y){return y.position=new o(g),u(),y}}function o(g){this.start=g,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(g){var y=new Error(t.source+":"+n+":"+r+": "+g);if(y.reason=g,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function l(g){var y=g.exec(e);if(y){var S=y[0];return s(S),e=e.slice(S.length),y}}function u(){l(kC)}function c(g){var y;for(g=g||[];y=d();)y!==!1&&g.push(y);return g}function d(){var g=i();if(!(Wp!=e.charAt(0)||Kp!=e.charAt(1))){for(var y=2;qn!=e.charAt(y)&&(Kp!=e.charAt(y)||Wp!=e.charAt(y+1));)++y;if(y+=2,qn===e.charAt(y-1))return a("End of comment missing");var S=e.slice(2,y-2);return r+=2,s(S),e=e.slice(y),r+=2,g({type:IC,comment:S})}}function h(){var g=i(),y=l(PC);if(y){if(d(),!l(OC))return a("property missing ':'");var S=l(NC),m=g({type:AC,property:Zp(y[0].replace(Qp,qn)),value:S?Zp(S[0].replace(Qp,qn)):qn});return l(jC),m}}function p(){var g=[];c(g);for(var y;y=h();)y!==!1&&(g.push(y),c(g));return g}return u(),p()};function Zp(e){return e?e.replace(TC,qn):qn}var MC=LC;function uy(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,s=MC(e),i=typeof t=="function",o,a,l=0,u=s.length;l<u;l++)r=s[l],o=r.property,a=r.value,i?t(o,a,r):a&&(n||(n={}),n[o]=a);return n}pf.exports=uy;pf.exports.default=uy;var DC=pf.exports,hl={};hl.__esModule=!0;hl.camelCase=void 0;var FC=/^--[a-zA-Z0-9-]+$/,$C=/-([a-z])/g,zC=/^[^-]+$/,UC=/^-(webkit|moz|ms|o|khtml)-/,BC=/^-(ms)-/,VC=function(e){return!e||zC.test(e)||FC.test(e)},HC=function(e,t){return t.toUpperCase()},Gp=function(e,t){return"".concat(t,"-")},qC=function(e,t){return t===void 0&&(t={}),VC(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(BC,Gp):e=e.replace(UC,Gp),e.replace($C,HC))};hl.camelCase=qC;(function(e){var t=_e&&_e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};e.__esModule=!0;var n=t(DC),r=hl;function s(i,o){var a={};return!i||typeof i!="string"||(0,n.default)(i,function(l,u){l&&u&&(a[(0,r.camelCase)(l,o)]=u)}),a}e.default=s})(ly);var QC=x,WC=ly.default;function KC(e,t){if(!e||typeof e!="object")throw new TypeError("First argument must be an object");var n,r,s=typeof t=="function",i={},o={};for(n in e){if(r=e[n],s&&(i=t(n,r),i&&i.length===2)){o[i[0]]=i[1];continue}typeof r=="string"&&(o[r]=n)}return o}function ZC(e,t){if(e.indexOf("-")===-1)return t&&typeof t.is=="string";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 GC={reactCompat:!0};function XC(e,t){if(e!=null)try{t.style=WC(e,GC)}catch{t.style={}}}var YC=QC.version.split(".")[0]>=16,cy=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);function JC(e){return!cy.has(e.name)}var dy={PRESERVE_CUSTOM_ATTRIBUTES:YC,invertObject:KC,isCustomComponent:ZC,setStyleProp:XC,canTextBeChildOfNode:JC,elementsWithNoTextChildren:cy},Rs=wt,Xp=dy,eR=["checked","value"],tR=["input","select","textarea"],nR={reset:!0,submit:!0},fy=function(t,n){t=t||{};var r,s,i,o,a,l={},u=t.type&&nR[t.type];for(r in t){if(i=t[r],Rs.isCustomAttribute(r)){l[r]=i;continue}if(s=r.toLowerCase(),o=Yp(s),o){switch(a=Rs.getPropertyInfo(o),eR.indexOf(o)!==-1&&tR.indexOf(n)!==-1&&!u&&(o=Yp("default"+s)),l[o]=i,a&&a.type){case Rs.BOOLEAN:l[o]=!0;break;case Rs.OVERLOADED_BOOLEAN:i===""&&(l[o]=!0);break}continue}Xp.PRESERVE_CUSTOM_ATTRIBUTES&&(l[r]=i)}return Xp.setStyleProp(t.style,l),l};function Yp(e){return Rs.possibleStandardNames[e]}var rR=x,sR=fy,ka=dy,iR=ka.setStyleProp,oR=ka.canTextBeChildOfNode;function hy(e,t){t=t||{};for(var n=t.library||rR,r=n.cloneElement,s=n.createElement,i=n.isValidElement,o=[],a,l,u=typeof t.replace=="function",c,d,h,p=t.trim,g=0,y=e.length;g<y;g++){if(a=e[g],u&&(c=t.replace(a),i(c))){y>1&&(c=r(c,{key:c.key||g})),o.push(c);continue}if(a.type==="text"){if(l=!a.data.trim().length,l&&a.parent&&!oR(a.parent)||p&&l)continue;o.push(a.data);continue}switch(d=a.attribs,aR(a)?iR(d.style,d):d&&(d=sR(d,a.name)),h=null,a.type){case"script":case"style":a.children[0]&&(d.dangerouslySetInnerHTML={__html:a.children[0].data});break;case"tag":a.name==="textarea"&&a.children[0]?d.defaultValue=a.children[0].data:a.children&&a.children.length&&(h=hy(a.children,t));break;default:continue}y>1&&(d.key=g),o.push(s(a.name,d,h))}return o.length===1?o[0]:o}function aR(e){return ka.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&ka.isCustomComponent(e.name,e.attribs)}var lR=hy,pl=sf,Nr=lC,uR=fy,py=lR;Nr=typeof Nr.default=="function"?Nr.default:Nr;var cR={lowerCaseAttributeNames:!1};function Ht(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e===""?[]:(t=t||{},py(Nr(e,t.htmlparser2||cR),t))}Ht.domToReact=py;Ht.htmlToDOM=Nr;Ht.attributesToProps=uR;Ht.Comment=pl.Comment;Ht.Element=pl.Element;Ht.ProcessingInstruction=pl.ProcessingInstruction;Ht.Text=pl.Text;var dR=Ht;Ht.default=Ht;const Bn=Pa(dR);var fo=Bn.domToReact;Bn.htmlToDOM;var lu=Bn.attributesToProps;Bn.Comment;Bn.Element;Bn.ProcessingInstruction;Bn.Text;function fR(){var y;const{appCode:e}=yt(),{theme:t}=Ad(),[n,r]=x.useState(""),[s,i]=x.useState(!0),[o,a]=x.useState(!1),[l,u]=x.useState(!1),c=t!=null&&t.is1d?"/help-1d":"/help-2d";x.useEffect(()=>{(async()=>{let S="";S=c+"/application/"+e+"/",!e&&window.location.pathname!=="/adapter"?S=c+"/application/portal/":window.location.pathname==="/adapter"?S=c+"/application/"+window.location.search.split("eliot=")[1].split("&")[0]+"/":window.location.pathname.includes("/directory/class-admin")?S=c+"/application/parametrage-de-la-classe/":(window.location.pathname.includes("/userbook/mon-compte")||window.location.pathname.includes("/timeline/preferencesView")||window.location.pathname.includes("/timeline/historyView"))&&(S=c+"/application/userbook/");try{const m=await fetch(S),v=await m.text();if(m.status===404){u(!0);return}r(v),u(!1)}catch(m){u(!0),console.error(m)}})()},[e,c]);const d={replace:S=>{const m=S;if(m.attribs&&m.attribs.id==="TOC")return f.jsxs("nav",{id:"TOC",children:[f.jsx(Jr,{onClick:()=>{i(!s)},children:f.jsx(Y4,{})}),fo(m.children,{replace:v=>{const w=v;if(w.attribs&&w.name==="ul")return f.jsx("ul",{id:"TOC-list",style:{display:s?"block":"none"},children:fo(w.children,{replace:b=>{const C=b;if(C.attribs&&C.name==="a")return f.jsx("a",{...lu(C.attribs),children:f.jsx("span",{onClick:()=>{i(!1)},children:fo(C.children)})})}})})}})]});if(m.attribs&&m.attribs.class==="section level2"){const v=lu(S.attribs);return f.jsx("div",{...v,className:"section level2",style:{display:m.attribs.id!=="présentation"?"none":"block"},children:fo(m.children,{replace:w=>{const b=w;if(b.attribs&&b.name==="img"){const C=w.attribs.src;return f.jsx("img",{...lu(b.attribs),src:`${c}/${C}`,alt:""})}}})})}}};console.log({html:n});const h=Bn(n,d),p=(y=h==null?void 0:h.props)==null?void 0:y.children.find(S=>S.type==="body").props.children,g=p==null?void 0:p.find(S=>S.type==="p").props.children;return console.log({parsedContent:p}),{html:n,visibility:s,isModalOpen:o,setIsModalOpen:a,parsedContent:p,parsedHeadline:g,error:l}}const my=()=>{const[e,t]=Yg(),n=x.useRef(null),r=x.useId(),{t:s}=pe();function i(){if(n.current){const o=n.current.value;window.location.href=`/searchengine#/${o}`}}return f.jsxs(ce,{id:r,ref:e,className:"position-relative","aria-haspopup":"true","aria-expanded":t,children:[f.jsxs("a",{href:"/searchengine",className:"nav-link dropdown-item",children:[f.jsx(t5,{className:"icon search"}),f.jsx("span",{className:"nav-text",children:s("navbar.search")})]}),f.jsx(rf,{id:r,isVisible:t,className:"d-none d-md-flex",children:f.jsxs(yc,{id:"my-search-input",className:"search-text input-group py-8 px-12",children:[f.jsx(yc.Input,{ref:n,size:"sm",type:"text",name:"my-search-input",placeholder:"Rechercher"}),f.jsx(b0,{type:"submit",size:"sm",onClick:i,"aria-label":s("navbar.search")})]})})]})};my.displayName="SearchEngine";const hR=my;function Jp({isHelpOpen:e,setIsHelpOpen:t,parsedHeadline:n,parsedContent:r,error:s}){const{t:i}=pe(),o=()=>{t(!1)};return e?Pi.createPortal(f.jsxs(bn,{id:"help-modal",isOpen:e,onModalClose:o,scrollable:!0,size:"lg",children:[f.jsx(bn.Header,{onModalClose:o,children:i("navbar.help")}),f.jsx(bn.Subtitle,{children:s?i("help.notfound.title"):n}),f.jsx(bn.Body,{className:s?"d-flex":null,children:s?i("help.notfound.text"):r})]}),document.getElementById("portal")):null}const gy=({is1d:e=!1,src:t=""})=>{const{t:n}=pe(),{messages:r,msgLink:s,zimbraWorkflow:i}=zE(),{user:o,avatar:a}=Ld(),{isModalOpen:l,setIsModalOpen:u,parsedContent:c,parsedHeadline:d,error:h}=fR(),p=V("header",{"no-2d":e,"no-1d":!e}),{title:g,bookmarkedApps:y,appsRef:S,isAppsHovered:m,popoverAppsId:v,userAvatar:w,userName:b,welcomeUser:C,communityWorkflow:R,conversationWorflow:k,searchWorkflow:P,isCollapsed:_,toggleCollapsedNav:F,handleLogout:A}=qS({user:o,avatar:a}),I=r>0;return f.jsx("header",{className:p,children:e?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"container-fluid",children:f.jsxs(ru,{children:[f.jsx("a",{className:"navbar-title d-md-none text-truncate h4",href:"/timeline/timeline",children:g}),f.jsxs("div",{className:"d-none d-md-inline-flex gap-12 align-items-center",children:[f.jsx(np,{alt:b,size:"sm",src:w,variant:"circle",width:"32",height:"32"}),f.jsx("span",{className:"navbar-text",children:C})]}),f.jsxs(Dp,{className:"gap-8","aria-hidden":"false","aria-label":n("navbar.main.navigation"),children:[k&&f.jsx(ce,{children:f.jsxs("a",{href:"/conversation/conversation",className:"nav-link",children:[f.jsx(X3,{className:"icon notification"}),I&&f.jsx(nu,{children:r}),f.jsx(Cs,{children:n("navbar.messages")})]})}),f.jsx(ce,{children:f.jsx(vs,{link:"/userbook/mon-compte",className:"dropdown-item",translate:n("navbar.myaccount"),children:f.jsx(J3,{className:"icon user"})})}),f.jsxs(ce,{children:[f.jsxs("button",{className:"nav-link",onClick:()=>{u(!0)},children:[f.jsx(Z3,{className:"icon help"}),f.jsx(Cs,{children:n("navbar.help")})]}),f.jsx(Jp,{isHelpOpen:l,setIsHelpOpen:u,parsedContent:c,parsedHeadline:d,error:h})]}),f.jsx(ce,{children:f.jsxs("button",{className:"nav-link",onClick:A,children:[f.jsx(sp,{className:"icon logout"}),f.jsx(Cs,{children:n("navbar.disconnect")})]})}),f.jsx(ce,{className:"d-md-none",children:f.jsx("button",{className:"nav-link btn btn-naked",type:"button","aria-controls":"navbarCollapsed","aria-expanded":!_,"aria-label":n("navbar.secondary.navigation"),onClick:F,children:f.jsx(gc,{className:"icon rafter-down",width:"20",height:"20"})})})]})]})}),f.jsx(ru,{className:"no-2d navbar-secondary navbar-expand-md","aria-label":n("navbar.secondary.navigation"),children:f.jsx("div",{className:"container-fluid",children:f.jsxs("div",{className:`collapse navbar-collapse ${_?"":"show"}`,id:"navbarCollapsed",children:[f.jsx(pp,{is1d:!0,src:`${t}/img/illustrations/logo.png`,translate:n("navbar.home")}),f.jsxs(Dp,{className:"gap-8",children:[f.jsx(ce,{children:f.jsxs("a",{href:"/timeline/timeline",className:"button",children:[f.jsx(W3,{color:"#fff",className:"d-md-none"}),f.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.whatsnew")})]})}),f.jsx(ce,{children:f.jsxs("a",{href:"/userbook/annuaire",className:"button",children:[f.jsx(r5,{color:"#fff",className:"d-md-none"}),f.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.classMembers")})]})}),f.jsx(ce,{children:f.jsxs("a",{href:"/welcome",className:"button",children:[f.jsx(ip,{color:"#fff",className:"d-md-none"}),f.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.myapps")})]})})]})]})})})]}):f.jsx(ru,{className:"navbar-expand-md",children:f.jsxs("div",{className:"container-fluid",children:[f.jsx(pp,{src:`${t}/img/illustrations/logo.png`}),f.jsx("a",{href:"/timeline/timeline",className:"navbar-title text-truncate d-md-none",children:g}),f.jsxs("ul",{className:"navbar-nav",children:[f.jsx(ce,{children:f.jsx(vs,{link:"/timeline/timeline",translate:n("navbar.home"),children:f.jsx(U3,{color:"#fff"})})}),f.jsxs(ce,{className:"position-relative",ref:S,id:v,"aria-haspopup":"true","aria-expanded":m,children:[f.jsx(vs,{link:"/welcome",translate:n("navbar.applications"),children:f.jsx(ip,{color:"#fff"})}),f.jsxs(rf,{className:"top-100 widget",id:v,isVisible:m,children:[f.jsx(AE,{children:f.jsx(BE,{bookmarkedApps:y})}),f.jsx(LE,{className:"widget-footer border-top border-ghost",children:f.jsx(UE,{})})]})]}),k&&f.jsx(ce,{children:f.jsxs(vs,{className:"position-relative",link:"/conversation/conversation",translate:n("conversation"),children:[f.jsx(op,{color:"#fff"}),I&&f.jsx(nu,{children:r})]})}),i&&f.jsx(ce,{children:f.jsxs(vs,{className:"position-relative",link:s,translate:n("conversation"),children:[f.jsx(op,{color:"#fff"}),I&&f.jsx(nu,{children:r})]})}),f.jsxs(ce,{children:[f.jsxs("button",{className:"nav-link btn btn-naked",onClick:()=>{u(!0)},children:[f.jsx(H3,{color:"#fff"}),f.jsx(Cs,{children:n("support")})]}),f.jsx(Jp,{isHelpOpen:l,setIsHelpOpen:u,parsedContent:c,parsedHeadline:d,error:h})]}),f.jsx(ce,{children:f.jsxs("div",{className:"dropdown",children:[f.jsx("button",{className:"nav-link btn btn-naked d-md-none",type:"button","aria-controls":"dropdown-navbar","aria-expanded":!_,"aria-label":n("navbar.open.menu"),onClick:F,children:f.jsx(gc,{className:"icon rafter-down",width:"20",height:"20",color:"#fff"})}),f.jsxs("ul",{className:`dropdown-menu dropdown-menu-end ${_?"":"show"}`,id:"dropdown-navbar",children:[R&&f.jsx(ce,{children:f.jsxs("a",{href:"/community",className:"nav-link dropdown-item",children:[f.jsx(F3,{className:"icon community"}),f.jsx("span",{className:"nav-text",children:n("navbar.community")})]})}),P?f.jsx(hR,{}):null,f.jsx(ce,{children:f.jsxs("a",{href:"/userbook/mon-compte",className:"nav-link dropdown-item",children:[f.jsx(np,{alt:b,size:"sm",src:w,variant:"circle",className:"bg-white",width:"32",height:"32"}),f.jsx("span",{className:"nav-text",children:n("navbar.myaccount")})]})}),f.jsx(ce,{children:f.jsx("hr",{className:"dropdown-divider"})}),f.jsx(ce,{children:f.jsxs("a",{href:"/auth/logout?callback=",className:"nav-link dropdown-item",children:[f.jsx(sp,{className:"icon logout"}),f.jsx("span",{id:"logout-label",className:"nav-text",children:n("navbar.disconnect")})]})})]})]})})]})]})})})};gy.displayName="Header";const pR=gy;function vy({children:e,className:t,...n}){const r=V("container-fluid",t);return f.jsx("main",{className:r,...n,children:e})}vy.displayName="Main";const yy=({children:e,...t})=>{const{theme:n}=Ad();return f.jsxs(f.Fragment,{children:[f.jsx(pR,{is1d:n==null?void 0:n.is1d,src:n==null?void 0:n.basePath}),f.jsx(vy,{className:V("d-flex flex-column bg-white",{"rounded-4 border":n==null?void 0:n.is1d,"mt-24":n==null?void 0:n.is1d}),...t,children:e}),f.jsx(D4,{toastOptions:{position:"top-right"}})]})};yy.displayName="Layout";const mR=yy,gR=function(){return null};var wy,em=Pi;wy=em.createRoot,em.hydrateRoot;const Lt=document.querySelector("[data-ode-app]");let ys;function ml(){var e;if(ys)return ys;if(ys={app:ho.PORTAL,types:["folder"],filters:[],actions:[],trashActions:[],orders:[]},(e=Lt==null?void 0:Lt.dataset)!=null&&e.odeApp){const{odeApp:t}=Lt.dataset;try{const n=JSON.parse(t);Object.assign(ys,n)}catch(n){console.error("[AppParams] could not parse app params from root data attributes:",Lt==null?void 0:Lt.dataset,n)}}else console.error("[AppParams] could not found app params from root data attributes:",Lt==null?void 0:Lt.dataset);return ys}const tm=e=>{let t;const n=new Set,r=(l,u)=>{const c=typeof l=="function"?l(t):l;if(!Object.is(c,t)){const d=t;t=u??typeof c!="object"?c:Object.assign({},t,c),n.forEach(h=>h(t,d))}},s=()=>t,a={setState:r,getState:s,subscribe:l=>(n.add(l),()=>n.delete(l)),destroy:()=>{n.clear()}};return t=e(r,s,a),a},vR=e=>e?tm(e):tm;var xy={exports:{}},Sy={};/**
228
228
  * @license React
229
229
  * use-sync-external-store-shim/with-selector.production.min.js
230
230
  *
@@ -232,4 +232,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
232
232
  *
233
233
  * This source code is licensed under the MIT license found in the
234
234
  * LICENSE file in the root directory of this source tree.
235
- */var gl=x,yR=Vg;function wR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xR=typeof Object.is=="function"?Object.is:wR,SR=yR.useSyncExternalStore,bR=gl.useRef,ER=gl.useEffect,CR=gl.useMemo,RR=gl.useDebugValue;Sy.useSyncExternalStoreWithSelector=function(e,t,n,r,s){var i=bR(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=CR(function(){function l(m){if(!u){if(u=!0,c=m,m=r(m),s!==void 0&&o.hasValue){var g=o.value;if(s(g,m))return d=g}return d=m}if(g=d,xR(c,m))return g;var y=r(m);return s!==void 0&&s(g,y)?g:(c=m,d=y)}var u=!1,c,d,h=n===void 0?null:n;return[function(){return l(t())},h===null?void 0:function(){return l(h())}]},[t,n,r,s]);var a=SR(e,i[0],i[1]);return ER(function(){o.hasValue=!0,o.value=a},[a]),RR(a),a};xy.exports=Sy;var kR=xy.exports;const PR=Pa(kR),{useDebugValue:OR}=pm,{useSyncExternalStoreWithSelector:NR}=PR;function jR(e,t=e.getState,n){const r=NR(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return OR(r),r}const nm=e=>{const t=typeof e=="function"?vR(e):e,n=(r,s)=>jR(t,r,s);return Object.assign(n,t),n},TR=e=>e?nm(e):nm,by=async e=>{const t=await X.resource(e.app).searchContext(e);return{...t,folders:t.folders.filter(n=>!n.trashed)}},_R=async({searchParams:e,name:t,parentId:n})=>{const r={name:t,parentId:n,app:e.app,type:e.types[0]};return await X.resource(e.app).createFolder(r)},IR=async({folderId:e,searchParams:t,parentId:n,name:r})=>{const s={folderId:e,name:r,parentId:n,app:t.app,type:t.types[0]};return await X.resource(t.app).updateFolder(s)},AR=async({searchParams:e,resourceIds:t,useAssetIds:n,folderIds:r})=>{const s={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:r};return await X.resource(e.app).trashAll(s,n)},LR=async({searchParams:e,resourceIds:t,useAssetIds:n,folderIds:r})=>{const s={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:r};return await X.resource(e.app).deleteAll(s,n)},MR=async({searchParams:e,resourceIds:t,folderIds:n,useAssetIds:r})=>{const s={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:n};return await X.resource(e.app).restoreAll(s,r)},DR=async({searchParams:e,resourceIds:t,folderId:n,folderIds:r,useAssetIds:s})=>{const i={application:e.app,folderId:n,resourceIds:t,folderIds:r};return await X.resource(e.app).moveToFolder(i,s)},FR=async({searchParams:e,entId:t,shares:n})=>await X.share().saveRights(e.app,t,n),$R=async({searchParams:e,params:t})=>await X.resource(e.app).update(t),zR=async e=>await X.rights().sessionHasWorkflowRights(e),UR=({searchParams:e,assetId:t})=>X.resource(e.app).gotoView(t),BR=({searchParams:e,params:t})=>X.resource(e.app).create(t),VR=({searchParams:e,assetId:t})=>X.resource(e.app).gotoPrint(t),HR=async({searchParams:e,params:t})=>await X.resource(e.app).publish(t),qR=async()=>await X.conf().getPreference("showOnboardingTrash"),QR=async({onSuccess:e})=>{const t=await X.conf().savePreference("showOnboardingTrash",JSON.stringify({showOnboardingTrash:!1}));return e==null||e(),t};function mf(e){return e.filter((t,n)=>e.indexOf(t)===n)}function xi(e,t){var r,s;let n;return(t==null?void 0:t.id)===e?t:((r=t==null?void 0:t.children)!=null&&r.length&&((s=t==null?void 0:t.children)==null||s.every(i=>(n=xi(e,i),n===void 0))),n)}function WR(e,t){var r;const n=xi(e,t);return(r=n==null?void 0:n.folder)!=null&&r.ancestors?[...(n==null?void 0:n.folder.ancestors)||[],e]:e===Ge.BIN?[Ge.BIN]:[Ge.DEFAULT]}function Ey(e,t){return t.id===e&&t.children?t.children.length>0:t.children?t.children.some(n=>Ey(t.id,n)):!1}function Mi(e,t){return Cy(e,t)||e}function Cy(e,t,n){var s;const r=t(e,n);if((s=r==null?void 0:r.children)!=null&&s.length){const i=[];for(const o of(r==null?void 0:r.children)||[]){const a=Cy(o,t,r);a&&i.push(a)}return{...r,children:i}}return r}class vl{constructor(t){cr(this,"id");cr(this,"name");cr(this,"childNumber");cr(this,"section",!1);cr(this,"children",[]);this.folder=t,this.id=t.id,this.name=t.name,this.childNumber=t.childNumber}}const Ry=(e,t,n)=>Mi(e,r=>(r.id===n&&(r.children=t==null?void 0:t.map(s=>new vl(s))),r)),{app:KR,types:ZR,filters:GR,orders:XR}=ml(),Fe=TR()((e,t)=>({filters:GR,orders:XR,searchConfig:{minLength:1},searchParams:{app:KR,types:ZR,filters:{folder:"default",owner:void 0,shared:void 0,public:void 0},orders:{updatedAt:"desc"},pagination:{startIdx:0,pageSize:48,maxIdx:0},trashed:!1},treeData:{id:Ge.DEFAULT,name:qt("explorer.filters.mine"),section:!0,children:[]},selectedNodesIds:["default"],currentFolder:{id:"default"},selectedFolders:[],selectedResources:[],folderIds:[],resourceIds:[],resourceIsTrash:!1,resourceActionDisable:!1,status:void 0,updaters:{setSearchConfig:n=>e(r=>({searchConfig:{...r.searchConfig,...n}})),setTreeData:n=>e(()=>({treeData:n})),setSearchParams:n=>{e(r=>{const{searchParams:s}=r;return s.search!==n.search?n.search?{...r,selectedFolders:[],selectedNodesIds:[],selectedResources:[],currentFolder:void 0,searchParams:{...s,...n,trashed:!1,filters:{...s.filters,folder:void 0}}}:{...r,selectedFolders:[],selectedNodesIds:["default"],selectedResources:[],currentFolder:{id:"default"},searchParams:{...s,...n,trashed:!1,filters:{...s.filters}}}:{searchParams:{...s,...n}}})},setSelectedFolders:n=>e(()=>({selectedFolders:n})),setSelectedResources:n=>e(()=>({selectedResources:n})),setFolderIds:n=>e(()=>({folderIds:n})),setResourceIds:n=>e(()=>({resourceIds:n})),setResourceIsTrash:n=>e(()=>({resourceIsTrash:n})),setResourceActionDisable:n=>e(()=>({resourceActionDisable:n})),setCurrentFolder:n=>e(()=>({currentFolder:n})),clearSelectedItems:()=>e(()=>({selectedFolders:[],selectedResources:[]})),clearSelectedIds:()=>e(()=>({resourceIds:[],folderIds:[]})),openResource:n=>{try{const{searchParams:r}=t();UR({searchParams:r,assetId:n.assetId})}catch(r){console.error("explorer open failed: ",r)}},printSelectedResource:()=>{try{const{searchParams:n,selectedResources:r,resourceIds:s}=t();if(r.length!==1)throw new Error("Cannot open more than 1 resource");const i=r.find(o=>o.id===s[0]);VR({searchParams:n,assetId:i.assetId})}catch(n){console.error("explorer print failed: ",n)}},publishApi:async(n,r)=>{const{searchParams:s}=t();return await HR({searchParams:s,params:r})},openFolder:({folderId:n,folder:r})=>{const{searchParams:s,treeData:i}=t(),o=s.filters.folder,a=WR(n,i),l=mf([...a,n]);o!==n&&e(u=>({...u,folderIds:[],resourceIds:[],selectedNodesIds:l,currentFolder:r||{id:n},searchParams:{...s,search:void 0,filters:{...s.filters,folder:n},trashed:n===Ge.BIN}}))},foldTreeItem:()=>e(n=>({...n,status:"fold"})),unfoldTreeItem:async(n,r)=>{const{treeData:s,searchParams:i}=t();if(e(o=>({...o,status:"unfold"})),!Ey(n,s)){await r.prefetchInfiniteQuery({queryKey:["prefetchContext",{folderId:n,trashed:!1}],queryFn:async()=>await by({...i,filters:{...i.filters,folder:n}})});const o=r.getQueryData(["prefetchContext",{folderId:n,trashed:!1}]);e(a=>{var l;return{...a,treeData:Ry(s,(l=o==null?void 0:o.pages[0])==null?void 0:l.folders,n||Ge.DEFAULT)}})}},selectTreeItem:n=>{const{treeData:r}=t(),{openFolder:s}=t().updaters,i=xi(n,r);V4()(),e(a=>({...a,searchParams:{...a.searchParams,search:void 0},status:"select",selectedResources:[]})),s({folder:i,folderId:n})},gotoPreviousFolder:()=>{const{selectedNodesIds:n,treeData:r}=t(),{openFolder:s}=t().updaters,i=n.length;if(i<2)return;const o=xi(n[i-2],r);s({folder:o,folderId:(o==null?void 0:o.id)||Ge.DEFAULT})},goToTrash:()=>e(n=>({...n,selectedNodesIds:[],selectedResources:[],resourceIds:[],folderIds:[],status:"select",searchParams:{...n.searchParams,search:void 0,filters:{folder:Ge.BIN},trashed:!0},currentFolder:{id:Ge.BIN}}))}})),ot=()=>Fe(e=>e.searchParams),gf=()=>Fe(e=>e.selectedNodesIds),ts=()=>Fe(e=>e.treeData),YR=()=>Fe(e=>e.selectedFolders),JR=()=>Fe(e=>e.selectedResources),e8=()=>Fe(e=>e.searchConfig),Di=()=>Fe(e=>e.folderIds),Fi=()=>Fe(e=>e.resourceIds),yl=()=>Fe(e=>e.selectedResources.map(t=>t.assetId)),wl=()=>Fe(e=>e.selectedResources.filter(t=>t.assetId===t.id)),ns=()=>Fe(e=>e.currentFolder),je=()=>Fe(e=>e.updaters),rs=()=>{const e=ns();return(e==null?void 0:e.id)===Ge.BIN},ky=()=>Fe(e=>e.resourceIsTrash),t8=()=>Fe(e=>e.resourceActionDisable),n8=()=>{const e=ns();return(e==null?void 0:e.id)==="default"},r8=()=>gf().length>1,s8=()=>Fe(e=>e.status),Py=()=>{const e=ot(),[t,n]=x.useState(""),r=U4(t,500),s=e8(),i=s8(),{setSearchParams:o}=je(),a=c=>{const d=c.target.value;n(d.toString())},l=c=>{(c.key==="Enter"||c.key==="Return")&&(c.preventDefault(),o({search:t||void 0}))},u=c=>{c.preventDefault(),o({search:r||void 0})};return x.useEffect(()=>{const d=r.length==0||r.length>=s.minLength?{search:r||void 0}:{};o({...e,...d})},[r,s.minLength]),x.useEffect(()=>{i==="select"&&n("")},[i]),x.useEffect(()=>{n(()=>{var c;return((c=e.search)==null?void 0:c.toString())??""})},[e]),{inputSearch:t,handleInputSearchChange:a,handleKeyPress:l,handleSearchSubmit:u}};function i8(){const{appCode:e}=yt(),t=gf(),n=rs(),r=ns(),{t:s}=ye(["common",e]),{gotoPreviousFolder:i}=je(),{inputSearch:o}=Py(),a=s("explorer.tree.trash"),l=s("explorer.tree.search"),u=s("explorer.filters.mine",{ns:e}),c=(r==null?void 0:r.name)||u;return f.jsx("div",{className:"py-16",children:t.length>1&&!n?f.jsxs("div",{className:"d-flex align-items-center gap-8",children:[f.jsx(Ka,{icon:f.jsx(K4,{}),variant:"ghost",color:"tertiary","aria-label":s("back"),className:"ms-n16",onClick:i}),f.jsx("p",{className:"body py-8 text-truncate",children:f.jsx("strong",{children:c})})]}):f.jsx("h2",{className:"body py-8 fw-bold",children:o.length!==0?l:n?a:u})})}function o8(e,{parentId:t,newFolder:n}){return Mi(e,r=>{var s;if(r.id===t){const i=[...((s=r.folder)==null?void 0:s.ancestors)||[]],o=mf([...i,r.id]);return{...r,children:[...r.children||[],new vl({...n,ancestors:o})]}}else return r})}function a8(e,{folders:t}){return Mi(e,n=>{if(!t.includes(n.id))return n})}function l8(e,{destinationId:t,folders:n}){return Mi(e,(r,s)=>{var i,o;if(t===r.id){const a=[...((i=r.folder)==null?void 0:i.ancestors)||[]],l=mf([...a,r.id]),u=[...r.children||[]],c=((o=r.children)==null?void 0:o.map(h=>h.id))||[];for(const h of n)if(!c.includes(h)){const m=xi(h,e);m&&u.push({...m,folder:{...m==null?void 0:m.folder,ancestors:l}})}return{...r,children:u}}else return n.includes(r.id)&&t!==(s==null?void 0:s.id)?void 0:r})}function u8(e,{folderId:t,newFolder:n}){return Mi(e,r=>r.id===t?new vl(n):r)}const{actions:rm,app:c8}=ml(),Oy=()=>Id({queryKey:["actions"],queryFn:async()=>{const e=rm.map(n=>n.workflow);return await zR(e)},select:e=>rm.map(t=>({...t,available:e[t.workflow]}))}),d8=()=>{const{hotToast:e}=jt(Tt),{appCode:t}=yt(),{t:n}=ye(),r=it(),s=ot(),i=ns(),o=ts(),{setTreeData:a,setSearchParams:l,setSearchConfig:u}=je(),{filters:c,trashed:d,search:h}=s,m=["context",{folderId:c.folder,filters:c,trashed:d,search:h}];return zS({queryKey:m,queryFn:async({pageParam:g=0})=>await by({...s,pagination:{...s.pagination,startIdx:g}}),onError(g){typeof g=="string"&&e.error(n(g))},onSuccess:async g=>{var S,p,v;await r.cancelQueries({queryKey:m});const y=[...((S=g==null?void 0:g.pages[0])==null?void 0:S.folders)??[]];(p=g==null?void 0:g.pages[0])!=null&&p.searchConfig&&u(g.pages[0].searchConfig),s.search||((i==null?void 0:i.id)==="default"?a({id:Ge.DEFAULT,section:!0,children:y.map(w=>new vl(w)),name:n("explorer.filters.mine",{ns:t})}):a(Ry(o,y,s.filters.folder||Ge.DEFAULT))),l({...s,pagination:(v=g==null?void 0:g.pages[(g==null?void 0:g.pages.length)-1])==null?void 0:v.pagination})},retry:!1,getNextPageParam:g=>g.pagination.startIdx+g.pagination.pageSize})},ck=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),r=ts(),s=Di(),i=yl(),o=Fi(),a=wl().length>0,l=a?i:o,{clearSelectedItems:u,clearSelectedIds:c,setTreeData:d,setSearchParams:h}=je(),{filters:m,trashed:g}=n,y=["context",{folderId:m.folder,filters:m,trashed:g}];return an({mutationFn:async()=>await AR({searchParams:n,folderIds:s,resourceIds:l,useAssetIds:a}),onError(S){typeof S=="string"&&e.error(qt(S))},onSuccess:async S=>{if(await t.cancelQueries({queryKey:y}),t.getQueryData(y))return t.setQueryData(y,v=>{var w;if(v){const b={...v,pages:v==null?void 0:v.pages.map(R=>{var k;return{...R,folders:R.folders.filter(P=>!s.includes(P.id)),pagination:{...R.pagination,maxIdx:((k=R==null?void 0:R.pagination)==null?void 0:k.maxIdx)-S.resources.length},resources:R.resources.filter(P=>a?!i.includes(P.assetId):!l.includes(P.id))}})},C=a8(r,{folders:s});return d(C),h({...n,pagination:{...n.pagination,maxIdx:((w=n.pagination)==null?void 0:w.maxIdx)-S.resources.length}}),b}})},onSettled:()=>{u(),c()}})},f8=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),r=Di(),s=yl(),i=Fi(),o=wl().length>0,a=o?s:i,{setFolderIds:l,setResourceIds:u,setSelectedResources:c,setSelectedFolders:d}=je(),{filters:h,trashed:m}=n,g=["context",{folderId:h.folder,filters:h,trashed:m}];return an({mutationFn:async()=>await MR({searchParams:n,folderIds:r,resourceIds:a,useAssetIds:o}),onError(y){typeof y=="string"&&e.error(qt(y))},onSuccess:async()=>{if(await t.cancelQueries({queryKey:g}),t.getQueryData(g))return t.setQueryData(g,S=>{if(S)return{...S,pages:S==null?void 0:S.pages.map(p=>({...p,folders:p.folders.filter(v=>!r.includes(v.id)),resources:p.resources.filter(v=>o?!s.includes(v.assetId):!a.includes(v.id))}))}})},onSettled:()=>{u([]),c([]),l([]),d([])}})},dk=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),r=Di(),s=yl(),i=Fi(),o=wl().length>0,a=o?s:i,{clearSelectedItems:l,clearSelectedIds:u}=je(),{filters:c,trashed:d}=n,h=["context",{folderId:c.folder,filters:c,trashed:d}];return an({mutationFn:async()=>await LR({searchParams:n,folderIds:r,resourceIds:a,useAssetIds:o}),onError(m){typeof m=="string"&&e.error(qt(m))},onSuccess:async()=>{if(await t.cancelQueries({queryKey:h}),t.getQueryData(h))return t.setQueryData(h,g=>{if(g)return{...g,pages:g==null?void 0:g.pages.map(S=>({...S,folders:S.folders.filter(p=>!r.includes(p.id)),resources:S.resources.filter(p=>o?!s.includes(p.assetId):!a.includes(p.id))}))}})},onSettled:()=>{l(),u()}})},fk=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),r=ts(),s=Di(),i=yl(),o=Fi(),a=wl().length>0,l=a?i:o,{clearSelectedIds:u,clearSelectedItems:c,setTreeData:d,setSearchParams:h}=je(),{filters:m,trashed:g}=n,y=["context",{folderId:m.folder,filters:m,trashed:g}];return an({mutationFn:async S=>await DR({searchParams:n,folderId:S,folderIds:s,resourceIds:l,useAssetIds:a}),onError(S){typeof S=="string"&&e.error(qt(S))},onSuccess:async(S,p)=>{if(t.getQueryData(y))return t.setQueryData(y,w=>{var b;if(w){const C=l8(r,{destinationId:p,folders:s}),R={...w,pages:w==null?void 0:w.pages.map(k=>{var P;return{...k,folders:k.folders.filter(_=>!s.includes(_.id)),pagination:{...k.pagination,maxIdx:((P=k.pagination)==null?void 0:P.maxIdx)-S.resources.length},resources:k.resources.filter(_=>a?!i.includes(_.assetId):!l.includes(_.id))}})};return d(C),h({...n,pagination:{...n.pagination,maxIdx:((b=n.pagination)==null?void 0:b.maxIdx)-S.resources.length}}),R}})},onSettled:()=>{c(),u()}})},hk=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),r=ts(),{setTreeData:s}=je(),{filters:i,trashed:o}=n,a=["context",{folderId:i.folder,filters:i,trashed:o}];return an({mutationFn:async({name:l,parentId:u})=>await _R({searchParams:n,name:l,parentId:u}),onError(l){typeof l=="string"&&e.error(qt(l))},onSuccess:async(l,u)=>{await t.cancelQueries({queryKey:a});const c=t.getQueryData(a),d={...l,parentId:u.parentId,children:[],rights:[`creator:${l==null?void 0:l.creator_id}`]};if(c)return t.setQueryData(a,h=>{if(h){const m={...h,pages:h==null?void 0:h.pages.map(y=>({...y,folders:[...y.folders,d]}))},g=o8(r,{parentId:u.parentId,newFolder:d});return s(g),m}})}})},pk=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),r=ts(),{setFolderIds:s,setSelectedFolders:i,setTreeData:o}=je(),{filters:a,trashed:l}=n,u=["context",{folderId:a.folder,filters:a,trashed:l}];return an({mutationFn:async({folderId:c,name:d,parentId:h})=>await IR({searchParams:n,folderId:c,parentId:h,name:d}),onError(c){typeof c=="string"&&e.error(qt(c))},onSuccess:async(c,d)=>{if(await t.cancelQueries({queryKey:u}),t.getQueryData(u))return t.setQueryData(u,m=>{if(m){const g={...m,pages:m==null?void 0:m.pages.map(S=>({...S,folders:S.folders.map(p=>p.id===c.id?{...c,parentId:d.parentId,rights:p.rights}:p)}))},y=u8(r,{folderId:d.folderId,newFolder:c});return o(y),g}})},onSettled:()=>{s([]),i([])}})},mk=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),{setResourceIds:r,setSelectedResources:s}=je(),{filters:i,trashed:o}=n,a=["context",{folderId:i.folder,filters:i,trashed:o}];return an({mutationFn:async({entId:l,shares:u})=>await FR({searchParams:n,entId:l,shares:u}),onError(l){typeof l=="string"&&e.error(qt(l))},onSuccess:async(l,u)=>{if(await t.cancelQueries({queryKey:a}),t.getQueryData(a))return t.setQueryData(a,d=>{if(d)return{...d,pages:d==null?void 0:d.pages.map(h=>({...h,resources:h.resources.map(m=>{if(m.assetId===(u==null?void 0:u.entId)){let g=[`creator:${m.creatorId}`];return(u==null?void 0:u.shares.length)>=1&&(g=[...g,...u.shares.flatMap(y=>y.actions.map(S=>`${y.type}:${y.id}:${S.id}`))]),{...m,rights:g}}else return m})}))}})},onSettled:()=>{r([]),s([])}})},gk=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),{filters:r,trashed:s}=n,i=["context",{folderId:r.folder,filters:r,trashed:s}];return an({mutationFn:async o=>await $R({searchParams:n,params:o}),onError(o){typeof o=="string"&&e.error(qt(o))},onSuccess:async(o,a)=>{if(await t.cancelQueries({queryKey:i}),t.getQueryData(i))return t.setQueryData(i,u=>{if(u)return{...u,pages:u==null?void 0:u.pages.map(c=>({...c,resources:c.resources.map(d=>{if(d.assetId===(a==null?void 0:a.entId)){const{name:h,thumbnail:m,public:g,description:y,slug:S,...p}=a;return{...d,...p,name:h,thumbnail:typeof m=="string"?m:URL.createObjectURL(m),public:g,description:y,slug:S}}else return d})}))}})}})},vk=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),{user:r}=Ld(),s=["context",{folderId:n.filters.folder,filters:n.filters,trashed:n.trashed}];return an({mutationFn:async i=>await BR({searchParams:n,params:i}),onError(i){typeof i=="string"&&e.error(qt(i))},onSuccess:async(i,o)=>{var c,d,h;await t.cancelQueries({queryKey:s});const a=t.getQueryData(s),{thumbnail:l}=o,u={...o,thumbnail:l?URL.createObjectURL(l):"",application:c8,assetId:i._id||i.entId||"",id:i._id||i.entId||"",creatorId:r==null?void 0:r.userId,creatorName:r==null?void 0:r.username,createdAt:Date.now(),slug:o.slug||"",modifiedAt:((c=i.modified)==null?void 0:c.$date)||"",modifierId:((d=i.author)==null?void 0:d.userId)||"",modifierName:((h=i.author)==null?void 0:h.username)||"",updatedAt:Date.now(),trashed:!1,rights:[`creator:${r==null?void 0:r.userId}`]};if(a)return t.setQueryData(s,m=>{if(m)return{...m,pages:m==null?void 0:m.pages.map(g=>({...g,resources:[u,...g.resources]}))}})}})},{trashActions:h8}=ml();function Ny(){const[e,t]=x.useState(!1),[n,r]=x.useState("void"),[s,i]=x.useState(),{t:o}=ye(),{hotToast:a}=jt(Tt),l=ns(),u=Fi(),c=JR(),d=YR(),h=Di(),m=rs(),g=f8(),y=ky(),{openResource:S,printSelectedResource:p,openFolder:v,clearSelectedItems:w,clearSelectedIds:b}=je(),{data:C}=Oy();x.useEffect(()=>{if(u.length===0&&h.length===0){t(!1);return}if(y){t(!1);return}t(!0)},[u,h]);async function R(G){var pe;switch((pe=document.getElementById("root"))==null||pe.setAttribute("aria-hidden","true"),i(G),G.id){case $e.OPEN:return u.length>0?S(c[0]):v({folder:d[0],folderId:d[0].id});case $e.MOVE:return r("move");case $e.PRINT:return p();case $e.DELETE:return r("delete");case $e.RESTORE:return await _();case $e.PUBLISH:return r("publish");case $e.UPD_PROPS:case"edit":return we();case $e.SHARE:return r("share");default:throw Error(`Unknown action: ${G.id}`)}}function k(G){const pe=u.length+h.length,_t=u.length===1||h.length===1,It=pe===1,un=h.length===0;switch(G.id){case $e.OPEN:return It;case $e.MANAGE:return _t;case $e.PUBLISH:return _t&&un;case $e.UPD_PROPS:return _t&&un;case $e.SHARE:return un&&_t;case $e.PRINT:return _t&&un;case"edit":return It;default:return!0}}function P(){return!0}async function _(){try{if(m)await g.mutate(),a.success(o("explorer.trash.toast"));else throw new Error("Cannot restore untrashed resources");F()}catch(G){console.error(G)}}function F(){var G;r("void"),s!=null&&s.id&&((G=document.getElementById(s==null?void 0:s.id))==null||G.focus())}const A=G=>()=>{n===G&&(F(),w(),b())},I=A("move"),U=A("move"),$=A("delete"),E=A("delete"),O=A("publish"),L=A("publish"),N=A("edit_folder"),D=A("edit_folder"),M=A("edit_resource"),K=A("edit_resource"),Z=A("share"),le=A("share");function we(){u&&u.length>0?r("edit_resource"):r("edit_folder")}function xe(G){return G.id==="edit"&&h.length>0?"explorer.rename":`explorer.actions.${G.id}`}return{onRestore:_,actions:m?h8:C,selectedElement:[...c,...d],currentFolderId:l==null?void 0:l.id,overrideLabel:xe,handleClick:R,isActivable:m?P:k,isActionBarOpen:e,isMoveModalOpen:n==="move",onMoveCancel:I,onMoveSuccess:U,isDeleteModalOpen:n==="delete",onDeleteCancel:E,onDeleteSuccess:$,isPublishModalOpen:n==="publish",onPublishCancel:L,onPublishSuccess:O,isEditFolderOpen:n==="edit_folder",onEditFolderCancel:D,onEditFolderSuccess:N,isEditResourceOpen:n==="edit_resource",onEditResourceCancel:K,onEditResourceSuccess:M,isShareResourceOpen:n==="share",onShareResourceCancel:le,onShareResourceSuccess:Z,onClearActionBar:F}}function p8({roles:e,rights:t,action:n}){const[r,s]=x.useState(!1),{user:i}=Ld(),o=rs();x.useEffect(()=>{u()},[e,t]);const a=async function(c){const d=c instanceof Array?c:[c];if(e instanceof Array){const h=await X.rights().sessionHasAtLeastOneResourceRight(e,d);s(h)}else{const h=await X.rights().sessionHasResourceRight(e,d);s(h)}},l=async function(c){if(e instanceof Array){const d=await X.rights().sessionHasAtLeastOneResourceRightForEachList(e,c);s(d)}else{const d=await X.rights().sessionHasResourceRightForEachList(e,c);s(d)}},u=async function(){var c,d,h;if(e===void 0){s(!0);return}if(o&&((d=(c=t[0])==null?void 0:c.trashedBy)!=null&&d.includes(i==null?void 0:i.userId))&&n==="restore"&&!((h=t[0])!=null&&h.trashed)){s(!0);return}if(t instanceof Array)if(t.length>0)if(typeof t[0]=="string")await a(t);else{const m=t.map(g=>g.rights);await l(m)}else s(!1);else typeof t=="string"?await a(t):await a(t.rights)};return{visible:r,refreshState:u}}function m8({resourceRights:e,roleExpected:t,action:n,children:r,renderWhenForbidden:s}){const{t:i}=ye(),{overrideLabel:o}=Ny(),{visible:a}=p8({roles:t,rights:e,action:n==null?void 0:n.id}),{setResourceActionDisable:l}=je(),u=rs();return a?f.jsx(f.Fragment,{children:r}):s?s():u&&!a?f.jsx(Jr,{type:"button",color:"primary",variant:"filled",onClick:()=>{l(!0)},children:i(o(n))}):f.jsx(f.Fragment,{})}const g8=x.lazy(async()=>await ve(()=>import("./ShareResourceModal.js"),["ShareResourceModal.js","Tooltip.js"])),v8=x.lazy(async()=>await ve(()=>import("./DeleteModal.js"),[])),y8=x.lazy(async()=>await ve(()=>import("./MoveModal.js"),[])),w8=x.lazy(async()=>await ve(()=>import("./EditFolderModal.js"),["EditFolderModal.js","index.esm.js"])),x8=x.lazy(async()=>await ve(()=>import("./EditResourceModal.js"),["EditResourceModal.js","index.esm.js","TextArea.js"])),S8=x.lazy(async()=>await ve(()=>import("./PublishModal.js"),["PublishModal.js","index.esm.js","TextArea.js"]));function b8(){const{t:e}=ye(),{actions:t,selectedElement:n,isMoveModalOpen:r,isDeleteModalOpen:s,isPublishModalOpen:i,isActionBarOpen:o,isEditFolderOpen:a,overrideLabel:l,onEditFolderCancel:u,onEditFolderSuccess:c,isEditResourceOpen:d,onEditResourceCancel:h,onEditResourceSuccess:m,isShareResourceOpen:g,onShareResourceCancel:y,onShareResourceSuccess:S,onMoveCancel:p,onMoveSuccess:v,onDeleteCancel:w,onDeleteSuccess:b,onPublishCancel:C,onPublishSuccess:R,isActivable:k,handleClick:P}=Ny(),_=tf(o,{from:{opacity:0,transform:"translateY(100%)"},enter:{opacity:1,transform:"translateY(0)"},leave:{opacity:0,transform:"translateY(100%)"}});return f.jsxs(f.Fragment,{children:[_((F,A)=>A&&f.jsx(Ca.div,{className:"position-fixed bottom-0 start-0 end-0 z-3",style:F,children:f.jsx(H4,{children:t==null?void 0:t.filter(I=>I.available&&I.target==="actionbar").map(I=>k(I)&&f.jsx(m8,{resourceRights:n,roleExpected:I.right,action:I,children:f.jsx(Jr,{id:I.id,type:"button",color:"primary",variant:"filled",onClick:()=>{P(I)},children:e(l(I))},I.id)},I.id))})})),f.jsxs(x.Suspense,{fallback:f.jsx(Ve,{}),children:[r&&f.jsx(y8,{isOpen:r,onCancel:p,onSuccess:v}),s&&f.jsx(v8,{isOpen:s,onCancel:w,onSuccess:b}),i&&f.jsx(S8,{isOpen:i,onCancel:C,onSuccess:R}),a&&f.jsx(w8,{edit:!0,isOpen:a,onCancel:u,onSuccess:c}),d&&f.jsx(x8,{edit:!0,isOpen:d,onCancel:h,onSuccess:m}),g&&f.jsx(g8,{isOpen:g,onCancel:y,onSuccess:S})]})]})}const{http:yk}=_y.instance(),E8={blog:"Blog",mindmap:"MindMap",scrapbook:"ScrapBook",collaborativewall:"CollaborativeWall",timelinegenerator:"TimelineGenerator",wiki:"Wiki",exercizer:"Exercizer"},C8=()=>{var l;const{user:e,appCode:t}=yt(),n=E8[t],r=(l=e.apps.find(u=>u.isExternal&&u.address.includes("library")&&u.name.includes("library")))==null?void 0:l.address.split("?");let s=r==null?void 0:r[0];s!=null&&s.endsWith("/")||(s=`${s}/`);const i=r==null?void 0:r[1],o=`application%5B0%5D=${n}&page=1&sort_field=views&sort_order=desc`;return{libraryUrl:`${s}search/?${i}&${o}`}},R8=x.lazy(async()=>await ve(()=>import("./EmptyScreenApp.js"),["EmptyScreenApp.js","EmptyScreen.js"])),k8=x.lazy(async()=>await ve(()=>import("./EmptyScreenSearch.js"),["EmptyScreenSearch.js","EmptyScreen.js"])),P8=x.lazy(async()=>await ve(()=>import("./EmptyScreenError.js"),["EmptyScreenError.js","EmptyScreen.js"])),O8=x.lazy(async()=>await ve(()=>import("./EmptyScreenNoContentInFolder.js"),["EmptyScreenNoContentInFolder.js","EmptyScreen.js"])),N8=x.lazy(async()=>await ve(()=>import("./EmptyScreenTrash.js"),["EmptyScreenTrash.js","EmptyScreen.js"])),j8=x.lazy(async()=>await ve(()=>import("./FoldersList.js"),["FoldersList.js","Card.js"])),T8=x.lazy(async()=>await ve(()=>import("./ResourcesList.js"),["ResourcesList.js","Tooltip.js","Card.js"])),_8=()=>{const e=n8(),t=rs(),n=r8(),r=ot(),{data:s,isError:i,isLoading:o,isFetching:a,fetchNextPage:l}=d8(),u=(s==null?void 0:s.pages[0].folders.length)===0,c=(s==null?void 0:s.pages[0].resources.length)===0,d=u&&c;return i?f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(P8,{})}):r.search&&d?f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(k8,{})}):!d&&!o?f.jsxs(x.Suspense,{fallback:f.jsx(Ve,{}),children:[f.jsx(j8,{data:s,isFetching:a}),f.jsx(T8,{data:s,isFetching:a,fetchNextPage:l})]}):e&&d?f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(R8,{})}):n&&d&&!t?f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(O8,{})}):t&&(s==null?void 0:s.pages[0].resources.length)===0?f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(N8,{})}):null};function I8({isOpen:e,onCancel:t=()=>({})}){const{t:n}=ye();return Pi.createPortal(f.jsxs(bn,{isOpen:e,onModalClose:t,id:"trash_action_disable_resource",children:[f.jsx(bn.Header,{onModalClose:()=>t(),children:n("explorer.trash.action.modal.title")}),f.jsx(bn.Body,{children:f.jsx("p",{className:"body",children:n("explorer.trash.action.modal.text")})}),f.jsx(bn.Footer,{children:f.jsx(Jr,{color:"primary",onClick:t,type:"button",variant:"outline",children:n("close")})})]}),document.getElementById("portal"))}const A8=()=>{const{appCode:e,currentApp:t}=yt(),{t:n}=ye(),[r,s]=x.useState(""),i=c=>{if(c==="0"){s("");return}s(c)},o=ns(),a=ot(),{setSearchParams:l}=je();x.useEffect(()=>{const c=()=>r.includes("1")?!0:void 0,d=()=>r.includes("2")?!0:void 0,h=()=>r.includes("7")?!0:void 0;l({...a,filters:{owner:c(),public:h(),shared:d(),folder:o?o.id:"default"}})},[o,l,r]);const u=[{label:n("explorer.filter.all",{ns:e}),value:"0"},{label:n("explorer.filter.owner",{ns:e}),value:"1"},{label:n("explorer.filter.shared",{ns:e}),value:"2"},...(t==null?void 0:t.displayName)==ho.EXERCIZER?[{label:"Exercices interactifs",value:"3"}]:[],...(t==null?void 0:t.displayName)==ho.EXERCIZER?[{label:"Exercices à rendre",value:"4"}]:[],...(t==null?void 0:t.displayName)=="pages"?[{label:"Projets publics",value:"5"}]:[],...(t==null?void 0:t.displayName)=="pages"?[{label:"Projets internes",value:"6"}]:[],...(t==null?void 0:t.displayName)==ho.BLOG?[{label:n("explorer.filter.public",{ns:e}),value:"7"}]:[]];return{selectedFilters:r,options:u,handleOnSelectFilter:i}},L8=()=>{const{appCode:e}=yt(),{t}=ye(),{selectedFilters:n,options:r,handleOnSelectFilter:s}=A8(),{inputSearch:i,handleInputSearchChange:o,handleKeyPress:a,handleSearchSubmit:l}=Py(),u=n.length>0?n.length:void 0;return f.jsxs("form",{noValidate:!0,className:"bg-light p-16 ps-24 ms-n16 ms-lg-n24 me-n16 position-relative z-3 d-flex gap-8",children:[f.jsxs(yc,{id:"search",className:"input-group",children:[f.jsx(P0,{type:"search",placeholder:t("explorer.label.search",{ns:e}),size:"lg",noValidationIcon:!0,value:i,onChange:o,onKeyDown:a}),f.jsx(b0,{type:"submit","aria-label":t("explorer.label.search",{ns:e}),onClick:l})]}),f.jsxs(pr,{placement:"bottom-end",children:[f.jsx(pr.Trigger,{label:t("explorer.filters"),icon:f.jsx(u3,{width:20}),variant:"ghost",badgeContent:u}),f.jsx(pr.Menu,{children:r.map(c=>c.value==="0"?f.jsxs(x.Fragment,{children:[f.jsx(pr.RadioItem,{value:c.value,model:n,onChange:()=>s(c.value),children:c.label}),f.jsx(pr.Separator,{})]},"0"):f.jsx(pr.RadioItem,{value:c.value,model:n,onChange:()=>s(c.value),children:c.label},c.value))})]})]})},M8=({id:e,selected:t,onSelect:n})=>{const{t:r}=ye();return f.jsx("div",{className:"treeview",children:f.jsx("ul",{role:"tree",className:"m-0 p-0",children:f.jsx("li",{id:e,role:"treeitem","aria-selected":t,children:f.jsx("div",{children:f.jsx("div",{className:"action-container",children:f.jsx("div",{onClick:n,role:"button",tabIndex:0,children:f.jsxs("div",{className:"d-flex align-items-center gap-8 py-8 ps-24",children:[f.jsx(r3,{width:"20",height:"20"}),f.jsx("span",{children:r("explorer.tree.trash")})]})})})})})})})},D8=x.lazy(async()=>await ve(()=>import("./EditFolderModal.js"),["EditFolderModal.js","index.esm.js"])),F8=()=>{const e=it(),{t}=ye(),[n,r]=z4(),s=ts(),i=rs(),o=gf(),{goToTrash:a,selectTreeItem:l,unfoldTreeItem:u,foldTreeItem:c,clearSelectedItems:d,clearSelectedIds:h}=je(),m=async y=>{await u(y,e)},g=()=>{d(),h(),r()};return s?f.jsxs(f.Fragment,{children:[f.jsx(FE,{data:s,selectedNodesIds:o,onTreeItemSelect:l,onTreeItemFold:c,onTreeItemUnfold:m}),f.jsx(M8,{id:Ge.BIN,selected:i,onSelect:a}),f.jsx("div",{className:"d-grid my-16",children:f.jsx(Jr,{disabled:i,type:"button",color:"primary",variant:"outline",leftIcon:f.jsx(w3,{}),onClick:g,children:t("explorer.folder.new")})}),f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:n&&f.jsx(D8,{edit:!1,isOpen:n,onSuccess:r,onCancel:r})})]}):null},$8=()=>{const e=t8(),{clearSelectedIds:t,setResourceActionDisable:n,clearSelectedItems:r}=je();return{isActionDisableModalOpen:e,onActionDisableCancel:()=>{t(),r(),n(!1)}}},z8=()=>{const[e,t]=x.useState(!1),[n,r]=x.useState(!0);return x.useEffect(()=>{(async()=>{const i=await qR();if(i){t(JSON.parse(i==null?void 0:i.showOnboardingTrash));return}t(!0)})()},[]),{isOnboardingTrash:e,isOpen:n,handleSavePreference:async()=>{await QR({onSuccess:()=>r(!1)})},setIsOpen:r}},U8=()=>{const e=ky(),{clearSelectedIds:t,setResourceIsTrash:n,clearSelectedItems:r}=je();return{isTrashedModalOpen:e,onTrashedCancel:()=>{t(),r(),n(!1)}}},B8=({workflow:e,actions:t})=>{const n=t==null?void 0:t.filter(r=>r.id===e&&r.available);return n&&n.length>0},V8=x.lazy(async()=>await ve(()=>import("./OnboardingTrash.js"),[])),H8=x.lazy(async()=>await ve(()=>import("./AppAction.js"),[])),q8=x.lazy(async()=>await ve(()=>import("./Library.js"),[])),Q8=x.lazy(async()=>await ve(()=>import("./TrashedResourceModal.js"),[]));function W8(){const{currentApp:e}=yt(),{isOnboardingTrash:t,isOpen:n,setIsOpen:r,handleSavePreference:s}=z8(),{data:i}=Oy(),{isTrashedModalOpen:o,onTrashedCancel:a}=U8(),{isActionDisableModalOpen:l,onActionDisableCancel:u}=$8();WS();const c=i==null?void 0:i.find(h=>h.id==="publish"),{libraryUrl:d}=C8();return f.jsxs(f.Fragment,{children:[f.jsx(_3,{render:()=>B8({workflow:"create",actions:i})?f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(H8,{})}):null,children:f.jsx(M3,{app:e})}),f.jsxs(Ms,{className:"flex-grow-1",children:[f.jsxs(Ms.Col,{sm:"3",lg:"2",xl:"3",className:"border-end pt-16 pe-16 d-none d-lg-block",as:"aside",children:[f.jsx(F8,{}),(c==null?void 0:c.available)&&d&&f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(q8,{url:d})})]}),f.jsxs(Ms.Col,{sm:"4",md:"8",lg:"6",xl:"9",children:[f.jsx(L8,{}),f.jsx(i8,{}),f.jsx(_8,{})]}),f.jsx(b8,{}),t&&f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(V8,{isOpen:n,setIsOpen:r,handleSavePreference:s})}),o&&f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(Q8,{isOpen:o,onCancel:a})}),l&&f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(I8,{isOpen:l,onCancel:u})})]})]})}function K8(){const{init:e}=yt();return e?e?f.jsx(mR,{children:f.jsx(W8,{})}):null:f.jsx(Ve,{position:!1})}const Z8=document.getElementById("root"),G8=new cw({queryCache:new Am({onError:e=>{e==="0090"&&window.location.replace("/auth/login")}}),defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}});wy(Z8).render(f.jsx(x.StrictMode,{children:f.jsxs(PS,{client:G8,children:[f.jsx(BS,{params:ml(),children:f.jsx(QS,{children:f.jsx(K8,{})})}),f.jsx(gR,{initialIsOpen:!1})]})}));export{o5 as $,Tt as A,Jr as B,s5 as C,pr as D,e3 as E,yc as F,ak as G,rp as H,c0 as I,p3 as J,dk as K,Ve as L,bn as M,ck as N,rs as O,fk as P,YR as Q,pm as R,w3 as S,it as T,ts as U,Cs as V,FE as W,ns as X,hk as Y,pk as Z,ve as _,Pi as a,nk as a0,vk as a1,B8 as a2,yk as a3,E8 as a4,ml as a5,V as a6,rk as a7,r3 as a8,vc as a9,Md as aa,sk as ab,Di as ac,uk as ad,V4 as ae,Ca as af,J3 as ag,lk as ah,ik as ai,_e as aj,Pa as ak,Fi as al,ok as am,Jg as an,Qa as b,z4 as c,yt as d,je as e,Oy as f,ek as g,Ad as h,Ni as i,f as j,P0 as k,L3 as l,f5 as m,ot as n,Ld as o,U4 as p,JR as q,x as r,gk as s,mk as t,ye as u,jt as v,tk as w,np as x,gc as y,Ka as z};
235
+ */var gl=x,yR=Vg;function wR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xR=typeof Object.is=="function"?Object.is:wR,SR=yR.useSyncExternalStore,bR=gl.useRef,ER=gl.useEffect,CR=gl.useMemo,RR=gl.useDebugValue;Sy.useSyncExternalStoreWithSelector=function(e,t,n,r,s){var i=bR(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=CR(function(){function l(p){if(!u){if(u=!0,c=p,p=r(p),s!==void 0&&o.hasValue){var g=o.value;if(s(g,p))return d=g}return d=p}if(g=d,xR(c,p))return g;var y=r(p);return s!==void 0&&s(g,y)?g:(c=p,d=y)}var u=!1,c,d,h=n===void 0?null:n;return[function(){return l(t())},h===null?void 0:function(){return l(h())}]},[t,n,r,s]);var a=SR(e,i[0],i[1]);return ER(function(){o.hasValue=!0,o.value=a},[a]),RR(a),a};xy.exports=Sy;var kR=xy.exports;const PR=Pa(kR),{useDebugValue:OR}=pm,{useSyncExternalStoreWithSelector:NR}=PR;function jR(e,t=e.getState,n){const r=NR(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return OR(r),r}const nm=e=>{const t=typeof e=="function"?vR(e):e,n=(r,s)=>jR(t,r,s);return Object.assign(n,t),n},TR=e=>e?nm(e):nm,by=async e=>{const t=await X.resource(e.app).searchContext(e);return{...t,folders:t.folders.filter(n=>!n.trashed)}},_R=async({searchParams:e,name:t,parentId:n})=>{const r={name:t,parentId:n,app:e.app,type:e.types[0]};return await X.resource(e.app).createFolder(r)},IR=async({folderId:e,searchParams:t,parentId:n,name:r})=>{const s={folderId:e,name:r,parentId:n,app:t.app,type:t.types[0]};return await X.resource(t.app).updateFolder(s)},AR=async({searchParams:e,resourceIds:t,useAssetIds:n,folderIds:r})=>{const s={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:r};return await X.resource(e.app).trashAll(s,n)},LR=async({searchParams:e,resourceIds:t,useAssetIds:n,folderIds:r})=>{const s={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:r};return await X.resource(e.app).deleteAll(s,n)},MR=async({searchParams:e,resourceIds:t,folderIds:n,useAssetIds:r})=>{const s={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:n};return await X.resource(e.app).restoreAll(s,r)},DR=async({searchParams:e,resourceIds:t,folderId:n,folderIds:r,useAssetIds:s})=>{const i={application:e.app,folderId:n,resourceIds:t,folderIds:r};return await X.resource(e.app).moveToFolder(i,s)},FR=async({searchParams:e,entId:t,shares:n})=>await X.share().saveRights(e.app,t,n),$R=async({searchParams:e,params:t})=>await X.resource(e.app).update(t),zR=async e=>await X.rights().sessionHasWorkflowRights(e),UR=({searchParams:e,assetId:t})=>X.resource(e.app).gotoView(t),BR=({searchParams:e,params:t})=>X.resource(e.app).create(t),VR=({searchParams:e,assetId:t})=>X.resource(e.app).gotoPrint(t),HR=async({searchParams:e,params:t})=>await X.resource(e.app).publish(t),qR=async()=>await X.conf().getPreference("showOnboardingTrash"),QR=async({onSuccess:e})=>{const t=await X.conf().savePreference("showOnboardingTrash",JSON.stringify({showOnboardingTrash:!1}));return e==null||e(),t};function mf(e){return e.filter((t,n)=>e.indexOf(t)===n)}function xi(e,t){var r,s;let n;return(t==null?void 0:t.id)===e?t:((r=t==null?void 0:t.children)!=null&&r.length&&((s=t==null?void 0:t.children)==null||s.every(i=>(n=xi(e,i),n===void 0))),n)}function WR(e,t){var r;const n=xi(e,t);return(r=n==null?void 0:n.folder)!=null&&r.ancestors?[...(n==null?void 0:n.folder.ancestors)||[],e]:e===Ge.BIN?[Ge.BIN]:[Ge.DEFAULT]}function Ey(e,t){return t.id===e&&t.children?t.children.length>0:t.children?t.children.some(n=>Ey(t.id,n)):!1}function Mi(e,t){return Cy(e,t)||e}function Cy(e,t,n){var s;const r=t(e,n);if((s=r==null?void 0:r.children)!=null&&s.length){const i=[];for(const o of(r==null?void 0:r.children)||[]){const a=Cy(o,t,r);a&&i.push(a)}return{...r,children:i}}return r}class vl{constructor(t){cr(this,"id");cr(this,"name");cr(this,"childNumber");cr(this,"section",!1);cr(this,"children",[]);this.folder=t,this.id=t.id,this.name=t.name,this.childNumber=t.childNumber}}const Ry=(e,t,n)=>Mi(e,r=>(r.id===n&&(r.children=t==null?void 0:t.map(s=>new vl(s))),r)),{app:KR,types:ZR,filters:GR,orders:XR}=ml(),Fe=TR()((e,t)=>({filters:GR,orders:XR,searchConfig:{minLength:1},searchParams:{app:KR,types:ZR,filters:{folder:"default",owner:void 0,shared:void 0,public:void 0},orders:{updatedAt:"desc"},pagination:{startIdx:0,pageSize:48,maxIdx:0},trashed:!1},treeData:{id:Ge.DEFAULT,name:qt("explorer.filters.mine"),section:!0,children:[]},selectedNodesIds:["default"],currentFolder:{id:"default"},selectedFolders:[],selectedResources:[],folderIds:[],resourceIds:[],resourceIsTrash:!1,resourceActionDisable:!1,status:void 0,updaters:{setSearchConfig:n=>e(r=>({searchConfig:{...r.searchConfig,...n}})),setTreeData:n=>e(()=>({treeData:n})),setSearchParams:n=>{e(r=>{const{searchParams:s}=r;return s.search!==n.search?n.search?{...r,selectedFolders:[],selectedNodesIds:[],selectedResources:[],currentFolder:void 0,searchParams:{...s,...n,trashed:!1,filters:{...s.filters,folder:void 0}}}:{...r,selectedFolders:[],selectedNodesIds:["default"],selectedResources:[],currentFolder:{id:"default"},searchParams:{...s,...n,trashed:!1,filters:{...s.filters}}}:{searchParams:{...s,...n}}})},setSelectedFolders:n=>e(()=>({selectedFolders:n})),setSelectedResources:n=>e(()=>({selectedResources:n})),setFolderIds:n=>e(()=>({folderIds:n})),setResourceIds:n=>e(()=>({resourceIds:n})),setResourceIsTrash:n=>e(()=>({resourceIsTrash:n})),setResourceActionDisable:n=>e(()=>({resourceActionDisable:n})),setCurrentFolder:n=>e(()=>({currentFolder:n})),clearSelectedItems:()=>e(()=>({selectedFolders:[],selectedResources:[]})),clearSelectedIds:()=>e(()=>({resourceIds:[],folderIds:[]})),openResource:n=>{try{const{searchParams:r}=t();UR({searchParams:r,assetId:n.assetId})}catch(r){console.error("explorer open failed: ",r)}},printSelectedResource:()=>{try{const{searchParams:n,selectedResources:r,resourceIds:s}=t();if(r.length!==1)throw new Error("Cannot open more than 1 resource");const i=r.find(o=>o.id===s[0]);VR({searchParams:n,assetId:i.assetId})}catch(n){console.error("explorer print failed: ",n)}},publishApi:async(n,r)=>{const{searchParams:s}=t();return await HR({searchParams:s,params:r})},openFolder:({folderId:n,folder:r})=>{const{searchParams:s,treeData:i}=t(),o=s.filters.folder,a=WR(n,i),l=mf([...a,n]);o!==n&&e(u=>({...u,folderIds:[],resourceIds:[],selectedNodesIds:l,currentFolder:r||{id:n},searchParams:{...s,search:void 0,filters:{...s.filters,folder:n},trashed:n===Ge.BIN}}))},foldTreeItem:()=>e(n=>({...n,status:"fold"})),unfoldTreeItem:async(n,r)=>{const{treeData:s,searchParams:i}=t();if(e(o=>({...o,status:"unfold"})),!Ey(n,s)){await r.prefetchInfiniteQuery({queryKey:["prefetchContext",{folderId:n,trashed:!1}],queryFn:async()=>await by({...i,filters:{...i.filters,folder:n}})});const o=r.getQueryData(["prefetchContext",{folderId:n,trashed:!1}]);e(a=>{var l;return{...a,treeData:Ry(s,(l=o==null?void 0:o.pages[0])==null?void 0:l.folders,n||Ge.DEFAULT)}})}},selectTreeItem:n=>{const{treeData:r}=t(),{openFolder:s}=t().updaters,i=xi(n,r);V4()(),e(a=>({...a,searchParams:{...a.searchParams,search:void 0},status:"select",selectedResources:[]})),s({folder:i,folderId:n})},gotoPreviousFolder:()=>{const{selectedNodesIds:n,treeData:r}=t(),{openFolder:s}=t().updaters,i=n.length;if(i<2)return;const o=xi(n[i-2],r);s({folder:o,folderId:(o==null?void 0:o.id)||Ge.DEFAULT})},goToTrash:()=>e(n=>({...n,selectedNodesIds:[],selectedResources:[],resourceIds:[],folderIds:[],status:"select",searchParams:{...n.searchParams,search:void 0,filters:{folder:Ge.BIN},trashed:!0},currentFolder:{id:Ge.BIN}}))}})),ot=()=>Fe(e=>e.searchParams),gf=()=>Fe(e=>e.selectedNodesIds),ts=()=>Fe(e=>e.treeData),YR=()=>Fe(e=>e.selectedFolders),JR=()=>Fe(e=>e.selectedResources),e8=()=>Fe(e=>e.searchConfig),Di=()=>Fe(e=>e.folderIds),Fi=()=>Fe(e=>e.resourceIds),yl=()=>Fe(e=>e.selectedResources.map(t=>t.assetId)),wl=()=>Fe(e=>e.selectedResources.filter(t=>t.assetId===t.id)),ns=()=>Fe(e=>e.currentFolder),je=()=>Fe(e=>e.updaters),rs=()=>{const e=ns();return(e==null?void 0:e.id)===Ge.BIN},ky=()=>Fe(e=>e.resourceIsTrash),t8=()=>Fe(e=>e.resourceActionDisable),n8=()=>{const e=ns();return(e==null?void 0:e.id)==="default"},r8=()=>gf().length>1,s8=()=>Fe(e=>e.status),Py=()=>{const e=ot(),[t,n]=x.useState(""),r=U4(t,500),s=e8(),i=s8(),{setSearchParams:o}=je(),a=c=>{const d=c.target.value;n(d.toString())},l=c=>{(c.key==="Enter"||c.key==="Return")&&(c.preventDefault(),o({search:t||void 0}))},u=c=>{c.preventDefault(),o({search:r||void 0})};return x.useEffect(()=>{const d=r.length==0||r.length>=s.minLength?{search:r||void 0}:{};o({...e,...d})},[r,s.minLength]),x.useEffect(()=>{i==="select"&&n("")},[i]),x.useEffect(()=>{n(()=>{var c;return((c=e.search)==null?void 0:c.toString())??""})},[e]),{inputSearch:t,handleInputSearchChange:a,handleKeyPress:l,handleSearchSubmit:u}};function i8(){const{appCode:e}=yt(),t=gf(),n=rs(),r=ns(),{t:s}=pe(["common",e]),{gotoPreviousFolder:i}=je(),{inputSearch:o}=Py(),a=s("explorer.tree.trash"),l=s("explorer.tree.search"),u=s("explorer.filters.mine",{ns:e}),c=(r==null?void 0:r.name)||u;return f.jsx("div",{className:"py-16",children:t.length>1&&!n?f.jsxs("div",{className:"d-flex align-items-center gap-8",children:[f.jsx(Ka,{icon:f.jsx(K4,{}),variant:"ghost",color:"tertiary","aria-label":s("back"),className:"ms-n16",onClick:i}),f.jsx("p",{className:"body py-8 text-truncate",children:f.jsx("strong",{children:c})})]}):f.jsx("h2",{className:"body py-8 fw-bold",children:o.length!==0?l:n?a:u})})}function o8(e,{parentId:t,newFolder:n}){return Mi(e,r=>{var s;if(r.id===t){const i=[...((s=r.folder)==null?void 0:s.ancestors)||[]],o=mf([...i,r.id]);return{...r,children:[...r.children||[],new vl({...n,ancestors:o})]}}else return r})}function a8(e,{folders:t}){return Mi(e,n=>{if(!t.includes(n.id))return n})}function l8(e,{destinationId:t,folders:n}){return Mi(e,(r,s)=>{var i,o;if(t===r.id){const a=[...((i=r.folder)==null?void 0:i.ancestors)||[]],l=mf([...a,r.id]),u=[...r.children||[]],c=((o=r.children)==null?void 0:o.map(h=>h.id))||[];for(const h of n)if(!c.includes(h)){const p=xi(h,e);p&&u.push({...p,folder:{...p==null?void 0:p.folder,ancestors:l}})}return{...r,children:u}}else return n.includes(r.id)&&t!==(s==null?void 0:s.id)?void 0:r})}function u8(e,{folderId:t,newFolder:n}){return Mi(e,r=>r.id===t?new vl(n):r)}const{actions:rm,app:c8}=ml(),Oy=()=>Id({queryKey:["actions"],queryFn:async()=>{const e=rm.map(n=>n.workflow);return await zR(e)},select:e=>rm.map(t=>({...t,available:e[t.workflow]}))}),d8=()=>{const{hotToast:e}=jt(Tt),{appCode:t}=yt(),{t:n}=pe(),r=it(),s=ot(),i=ns(),o=ts(),{setTreeData:a,setSearchParams:l,setSearchConfig:u}=je(),{filters:c,trashed:d,search:h}=s,p=["context",{folderId:c.folder,filters:c,trashed:d,search:h}];return zS({queryKey:p,queryFn:async({pageParam:g=0})=>await by({...s,pagination:{...s.pagination,startIdx:g}}),onError(g){typeof g=="string"&&e.error(n(g))},onSuccess:async g=>{var S,m,v;await r.cancelQueries({queryKey:p});const y=[...((S=g==null?void 0:g.pages[0])==null?void 0:S.folders)??[]];(m=g==null?void 0:g.pages[0])!=null&&m.searchConfig&&u(g.pages[0].searchConfig),s.search||((i==null?void 0:i.id)==="default"?a({id:Ge.DEFAULT,section:!0,children:y.map(w=>new vl(w)),name:n("explorer.filters.mine",{ns:t})}):a(Ry(o,y,s.filters.folder||Ge.DEFAULT))),l({...s,pagination:(v=g==null?void 0:g.pages[(g==null?void 0:g.pages.length)-1])==null?void 0:v.pagination})},retry:!1,getNextPageParam:g=>g.pagination.startIdx+g.pagination.pageSize})},ck=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),r=ts(),s=Di(),i=yl(),o=Fi(),a=wl().length>0,l=a?i:o,{clearSelectedItems:u,clearSelectedIds:c,setTreeData:d,setSearchParams:h}=je(),{filters:p,trashed:g}=n,y=["context",{folderId:p.folder,filters:p,trashed:g}];return an({mutationFn:async()=>await AR({searchParams:n,folderIds:s,resourceIds:l,useAssetIds:a}),onError(S){typeof S=="string"&&e.error(qt(S))},onSuccess:async S=>{if(await t.cancelQueries({queryKey:y}),t.getQueryData(y))return t.setQueryData(y,v=>{var w;if(v){const b={...v,pages:v==null?void 0:v.pages.map(R=>{var k;return{...R,folders:R.folders.filter(P=>!s.includes(P.id)),pagination:{...R.pagination,maxIdx:((k=R==null?void 0:R.pagination)==null?void 0:k.maxIdx)-S.resources.length},resources:R.resources.filter(P=>a?!i.includes(P.assetId):!l.includes(P.id))}})},C=a8(r,{folders:s});return d(C),h({...n,pagination:{...n.pagination,maxIdx:((w=n.pagination)==null?void 0:w.maxIdx)-S.resources.length}}),b}})},onSettled:()=>{u(),c()}})},f8=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),r=Di(),s=yl(),i=Fi(),o=wl().length>0,a=o?s:i,{setFolderIds:l,setResourceIds:u,setSelectedResources:c,setSelectedFolders:d}=je(),{filters:h,trashed:p}=n,g=["context",{folderId:h.folder,filters:h,trashed:p}];return an({mutationFn:async()=>await MR({searchParams:n,folderIds:r,resourceIds:a,useAssetIds:o}),onError(y){typeof y=="string"&&e.error(qt(y))},onSuccess:async()=>{if(await t.cancelQueries({queryKey:g}),t.getQueryData(g))return t.setQueryData(g,S=>{if(S)return{...S,pages:S==null?void 0:S.pages.map(m=>({...m,folders:m.folders.filter(v=>!r.includes(v.id)),resources:m.resources.filter(v=>o?!s.includes(v.assetId):!a.includes(v.id))}))}})},onSettled:()=>{u([]),c([]),l([]),d([])}})},dk=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),r=Di(),s=yl(),i=Fi(),o=wl().length>0,a=o?s:i,{clearSelectedItems:l,clearSelectedIds:u}=je(),{filters:c,trashed:d}=n,h=["context",{folderId:c.folder,filters:c,trashed:d}];return an({mutationFn:async()=>await LR({searchParams:n,folderIds:r,resourceIds:a,useAssetIds:o}),onError(p){typeof p=="string"&&e.error(qt(p))},onSuccess:async()=>{if(await t.cancelQueries({queryKey:h}),t.getQueryData(h))return t.setQueryData(h,g=>{if(g)return{...g,pages:g==null?void 0:g.pages.map(S=>({...S,folders:S.folders.filter(m=>!r.includes(m.id)),resources:S.resources.filter(m=>o?!s.includes(m.assetId):!a.includes(m.id))}))}})},onSettled:()=>{l(),u()}})},fk=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),r=ts(),s=Di(),i=yl(),o=Fi(),a=wl().length>0,l=a?i:o,{clearSelectedIds:u,clearSelectedItems:c,setTreeData:d,setSearchParams:h}=je(),{filters:p,trashed:g}=n,y=["context",{folderId:p.folder,filters:p,trashed:g}];return an({mutationFn:async S=>await DR({searchParams:n,folderId:S,folderIds:s,resourceIds:l,useAssetIds:a}),onError(S){typeof S=="string"&&e.error(qt(S))},onSuccess:async(S,m)=>{if(t.getQueryData(y))return t.setQueryData(y,w=>{var b;if(w){const C=l8(r,{destinationId:m,folders:s}),R={...w,pages:w==null?void 0:w.pages.map(k=>{var P;return{...k,folders:k.folders.filter(_=>!s.includes(_.id)),pagination:{...k.pagination,maxIdx:((P=k.pagination)==null?void 0:P.maxIdx)-S.resources.length},resources:k.resources.filter(_=>a?!i.includes(_.assetId):!l.includes(_.id))}})};return d(C),h({...n,pagination:{...n.pagination,maxIdx:((b=n.pagination)==null?void 0:b.maxIdx)-S.resources.length}}),R}})},onSettled:()=>{c(),u()}})},hk=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),r=ts(),{setTreeData:s}=je(),{filters:i,trashed:o}=n,a=["context",{folderId:i.folder,filters:i,trashed:o}];return an({mutationFn:async({name:l,parentId:u})=>await _R({searchParams:n,name:l,parentId:u}),onError(l){typeof l=="string"&&e.error(qt(l))},onSuccess:async(l,u)=>{await t.cancelQueries({queryKey:a});const c=t.getQueryData(a),d={...l,parentId:u.parentId,children:[],rights:[`creator:${l==null?void 0:l.creator_id}`]};if(c)return t.setQueryData(a,h=>{if(h){const p={...h,pages:h==null?void 0:h.pages.map(y=>({...y,folders:[...y.folders,d]}))},g=o8(r,{parentId:u.parentId,newFolder:d});return s(g),p}})}})},pk=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),r=ts(),{setFolderIds:s,setSelectedFolders:i,setTreeData:o}=je(),{filters:a,trashed:l}=n,u=["context",{folderId:a.folder,filters:a,trashed:l}];return an({mutationFn:async({folderId:c,name:d,parentId:h})=>await IR({searchParams:n,folderId:c,parentId:h,name:d}),onError(c){typeof c=="string"&&e.error(qt(c))},onSuccess:async(c,d)=>{if(await t.cancelQueries({queryKey:u}),t.getQueryData(u))return t.setQueryData(u,p=>{if(p){const g={...p,pages:p==null?void 0:p.pages.map(S=>({...S,folders:S.folders.map(m=>m.id===c.id?{...c,parentId:d.parentId,rights:m.rights}:m)}))},y=u8(r,{folderId:d.folderId,newFolder:c});return o(y),g}})},onSettled:()=>{s([]),i([])}})},mk=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),{setResourceIds:r,setSelectedResources:s}=je(),{filters:i,trashed:o}=n,a=["context",{folderId:i.folder,filters:i,trashed:o}];return an({mutationFn:async({entId:l,shares:u})=>await FR({searchParams:n,entId:l,shares:u}),onError(l){typeof l=="string"&&e.error(qt(l))},onSuccess:async(l,u)=>{if(await t.cancelQueries({queryKey:a}),t.getQueryData(a))return t.setQueryData(a,d=>{if(d)return{...d,pages:d==null?void 0:d.pages.map(h=>({...h,resources:h.resources.map(p=>{if(p.assetId===(u==null?void 0:u.entId)){let g=[`creator:${p.creatorId}`];return(u==null?void 0:u.shares.length)>=1&&(g=[...g,...u.shares.flatMap(y=>y.actions.map(S=>`${y.type}:${y.id}:${S.id}`))]),{...p,rights:g}}else return p})}))}})},onSettled:()=>{r([]),s([])}})},gk=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),{filters:r,trashed:s}=n,i=["context",{folderId:r.folder,filters:r,trashed:s}];return an({mutationFn:async o=>await $R({searchParams:n,params:o}),onError(o){typeof o=="string"&&e.error(qt(o))},onSuccess:async(o,a)=>{if(await t.cancelQueries({queryKey:i}),t.getQueryData(i))return t.setQueryData(i,u=>{if(u)return{...u,pages:u==null?void 0:u.pages.map(c=>({...c,resources:c.resources.map(d=>{if(d.assetId===(a==null?void 0:a.entId)){const{name:h,thumbnail:p,public:g,description:y,slug:S,...m}=a;return{...d,...m,name:h,thumbnail:typeof p=="string"?p:URL.createObjectURL(p),public:g,description:y,slug:S}}else return d})}))}})}})},vk=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),{user:r}=Ld(),s=["context",{folderId:n.filters.folder,filters:n.filters,trashed:n.trashed}];return an({mutationFn:async i=>await BR({searchParams:n,params:i}),onError(i){typeof i=="string"&&e.error(qt(i))},onSuccess:async(i,o)=>{var c,d,h;await t.cancelQueries({queryKey:s});const a=t.getQueryData(s),{thumbnail:l}=o,u={...o,thumbnail:l?URL.createObjectURL(l):"",application:c8,assetId:i._id||i.entId||"",id:i._id||i.entId||"",creatorId:r==null?void 0:r.userId,creatorName:r==null?void 0:r.username,createdAt:Date.now(),slug:o.slug||"",modifiedAt:((c=i.modified)==null?void 0:c.$date)||"",modifierId:((d=i.author)==null?void 0:d.userId)||"",modifierName:((h=i.author)==null?void 0:h.username)||"",updatedAt:Date.now(),trashed:!1,rights:[`creator:${r==null?void 0:r.userId}`]};if(a)return t.setQueryData(s,p=>{if(p)return{...p,pages:p==null?void 0:p.pages.map(g=>({...g,resources:[u,...g.resources]}))}})}})},{trashActions:h8}=ml();function Ny(){const[e,t]=x.useState(!1),[n,r]=x.useState("void"),[s,i]=x.useState(),{t:o}=pe(),{hotToast:a}=jt(Tt),l=ns(),u=Fi(),c=JR(),d=YR(),h=Di(),p=rs(),g=f8(),y=ky(),{openResource:S,printSelectedResource:m,openFolder:v,clearSelectedItems:w,clearSelectedIds:b}=je(),{data:C}=Oy();x.useEffect(()=>{if(u.length===0&&h.length===0){t(!1);return}if(y){t(!1);return}t(!0)},[u,h]);async function R(G){var me;switch((me=document.getElementById("root"))==null||me.setAttribute("aria-hidden","true"),i(G),G.id){case $e.OPEN:return u.length>0?S(c[0]):v({folder:d[0],folderId:d[0].id});case $e.MOVE:return r("move");case $e.PRINT:return m();case $e.DELETE:return r("delete");case $e.RESTORE:return await _();case $e.PUBLISH:return r("publish");case $e.UPD_PROPS:case"edit":return we();case $e.SHARE:return r("share");default:throw Error(`Unknown action: ${G.id}`)}}function k(G){const me=u.length+h.length,_t=u.length===1||h.length===1,It=me===1,un=h.length===0;switch(G.id){case $e.OPEN:return It;case $e.MANAGE:return _t;case $e.PUBLISH:return _t&&un;case $e.UPD_PROPS:return _t&&un;case $e.SHARE:return un&&_t;case $e.PRINT:return _t&&un;case"edit":return It;default:return!0}}function P(){return!0}async function _(){try{if(p)await g.mutate(),a.success(o("explorer.trash.toast"));else throw new Error("Cannot restore untrashed resources");F()}catch(G){console.error(G)}}function F(){var G;r("void"),s!=null&&s.id&&((G=document.getElementById(s==null?void 0:s.id))==null||G.focus())}const A=G=>()=>{n===G&&(F(),w(),b())},I=A("move"),U=A("move"),$=A("delete"),E=A("delete"),O=A("publish"),L=A("publish"),N=A("edit_folder"),D=A("edit_folder"),M=A("edit_resource"),K=A("edit_resource"),Z=A("share"),le=A("share");function we(){u&&u.length>0?r("edit_resource"):r("edit_folder")}function xe(G){return G.id==="edit"&&h.length>0?"explorer.rename":`explorer.actions.${G.id}`}return{onRestore:_,actions:p?h8:C,selectedElement:[...c,...d],currentFolderId:l==null?void 0:l.id,overrideLabel:xe,handleClick:R,isActivable:p?P:k,isActionBarOpen:e,isMoveModalOpen:n==="move",onMoveCancel:I,onMoveSuccess:U,isDeleteModalOpen:n==="delete",onDeleteCancel:E,onDeleteSuccess:$,isPublishModalOpen:n==="publish",onPublishCancel:L,onPublishSuccess:O,isEditFolderOpen:n==="edit_folder",onEditFolderCancel:D,onEditFolderSuccess:N,isEditResourceOpen:n==="edit_resource",onEditResourceCancel:K,onEditResourceSuccess:M,isShareResourceOpen:n==="share",onShareResourceCancel:le,onShareResourceSuccess:Z,onClearActionBar:F}}function p8({roles:e,rights:t,action:n}){const[r,s]=x.useState(!1),{user:i}=Ld(),o=rs();x.useEffect(()=>{u()},[e,t]);const a=async function(c){const d=c instanceof Array?c:[c];if(e instanceof Array){const h=await X.rights().sessionHasAtLeastOneResourceRight(e,d);s(h)}else{const h=await X.rights().sessionHasResourceRight(e,d);s(h)}},l=async function(c){if(e instanceof Array){const d=await X.rights().sessionHasAtLeastOneResourceRightForEachList(e,c);s(d)}else{const d=await X.rights().sessionHasResourceRightForEachList(e,c);s(d)}},u=async function(){var c,d,h;if(e===void 0){s(!0);return}if(o&&((d=(c=t[0])==null?void 0:c.trashedBy)!=null&&d.includes(i==null?void 0:i.userId))&&n==="restore"&&!((h=t[0])!=null&&h.trashed)){s(!0);return}if(t instanceof Array)if(t.length>0)if(typeof t[0]=="string")await a(t);else{const p=t.map(g=>g.rights);await l(p)}else s(!1);else typeof t=="string"?await a(t):await a(t.rights)};return{visible:r,refreshState:u}}function m8({resourceRights:e,roleExpected:t,action:n,children:r,renderWhenForbidden:s}){const{t:i}=pe(),{overrideLabel:o}=Ny(),{visible:a}=p8({roles:t,rights:e,action:n==null?void 0:n.id}),{setResourceActionDisable:l}=je(),u=rs();return a?f.jsx(f.Fragment,{children:r}):s?s():u&&!a?f.jsx(Jr,{type:"button",color:"primary",variant:"filled",onClick:()=>{l(!0)},children:i(o(n))}):f.jsx(f.Fragment,{})}const g8=x.lazy(async()=>await ye(()=>import("./ShareResourceModal.js"),["ShareResourceModal.js","Tooltip.js"])),v8=x.lazy(async()=>await ye(()=>import("./DeleteModal.js"),[])),y8=x.lazy(async()=>await ye(()=>import("./MoveModal.js"),[])),w8=x.lazy(async()=>await ye(()=>import("./EditFolderModal.js"),["EditFolderModal.js","index.esm.js"])),x8=x.lazy(async()=>await ye(()=>import("./EditResourceModal.js"),["EditResourceModal.js","index.esm.js","TextArea.js"])),S8=x.lazy(async()=>await ye(()=>import("./PublishModal.js"),["PublishModal.js","index.esm.js","TextArea.js"]));function b8(){const{t:e}=pe(),{actions:t,selectedElement:n,isMoveModalOpen:r,isDeleteModalOpen:s,isPublishModalOpen:i,isActionBarOpen:o,isEditFolderOpen:a,overrideLabel:l,onEditFolderCancel:u,onEditFolderSuccess:c,isEditResourceOpen:d,onEditResourceCancel:h,onEditResourceSuccess:p,isShareResourceOpen:g,onShareResourceCancel:y,onShareResourceSuccess:S,onMoveCancel:m,onMoveSuccess:v,onDeleteCancel:w,onDeleteSuccess:b,onPublishCancel:C,onPublishSuccess:R,isActivable:k,handleClick:P}=Ny(),_=tf(o,{from:{opacity:0,transform:"translateY(100%)"},enter:{opacity:1,transform:"translateY(0)"},leave:{opacity:0,transform:"translateY(100%)"}});return f.jsxs(f.Fragment,{children:[_((F,A)=>A&&f.jsx(Ca.div,{className:"position-fixed bottom-0 start-0 end-0 z-3",style:F,children:f.jsx(H4,{children:t==null?void 0:t.filter(I=>I.available&&I.target==="actionbar").map(I=>k(I)&&f.jsx(m8,{resourceRights:n,roleExpected:I.right,action:I,children:f.jsx(Jr,{id:I.id,type:"button",color:"primary",variant:"filled",onClick:()=>{P(I)},children:e(l(I))},I.id)},I.id))})})),f.jsxs(x.Suspense,{fallback:f.jsx(Ve,{}),children:[r&&f.jsx(y8,{isOpen:r,onCancel:m,onSuccess:v}),s&&f.jsx(v8,{isOpen:s,onCancel:w,onSuccess:b}),i&&f.jsx(S8,{isOpen:i,onCancel:C,onSuccess:R}),a&&f.jsx(w8,{edit:!0,isOpen:a,onCancel:u,onSuccess:c}),d&&f.jsx(x8,{edit:!0,isOpen:d,onCancel:h,onSuccess:p}),g&&f.jsx(g8,{isOpen:g,onCancel:y,onSuccess:S})]})]})}const{http:yk}=_y.instance(),E8={blog:"Blog",mindmap:"MindMap",scrapbook:"ScrapBook",collaborativewall:"CollaborativeWall",timelinegenerator:"TimelineGenerator",wiki:"Wiki",exercizer:"Exercizer"},C8=()=>{var l;const{user:e,appCode:t}=yt(),n=E8[t],r=(l=e.apps.find(u=>u.isExternal&&u.address.includes("library")&&u.name.includes("library")))==null?void 0:l.address.split("?");let s=r==null?void 0:r[0];s!=null&&s.endsWith("/")||(s=`${s}/`);const i=r==null?void 0:r[1],o=`application%5B0%5D=${n}&page=1&sort_field=views&sort_order=desc`;return{libraryUrl:`${s}search/?${i}&${o}`}},R8=x.lazy(async()=>await ye(()=>import("./EmptyScreenApp.js"),["EmptyScreenApp.js","EmptyScreen.js"])),k8=x.lazy(async()=>await ye(()=>import("./EmptyScreenSearch.js"),["EmptyScreenSearch.js","EmptyScreen.js"])),P8=x.lazy(async()=>await ye(()=>import("./EmptyScreenError.js"),["EmptyScreenError.js","EmptyScreen.js"])),O8=x.lazy(async()=>await ye(()=>import("./EmptyScreenNoContentInFolder.js"),["EmptyScreenNoContentInFolder.js","EmptyScreen.js"])),N8=x.lazy(async()=>await ye(()=>import("./EmptyScreenTrash.js"),["EmptyScreenTrash.js","EmptyScreen.js"])),j8=x.lazy(async()=>await ye(()=>import("./FoldersList.js"),["FoldersList.js","Card.js"])),T8=x.lazy(async()=>await ye(()=>import("./ResourcesList.js"),["ResourcesList.js","Tooltip.js","Card.js"])),_8=()=>{const e=n8(),t=rs(),n=r8(),r=ot(),{data:s,isError:i,isLoading:o,isFetching:a,fetchNextPage:l}=d8(),u=(s==null?void 0:s.pages[0].folders.length)===0,c=(s==null?void 0:s.pages[0].resources.length)===0,d=u&&c;return i?f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(P8,{})}):r.search&&d?f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(k8,{})}):!d&&!o?f.jsxs(x.Suspense,{fallback:f.jsx(Ve,{}),children:[f.jsx(j8,{data:s,isFetching:a}),f.jsx(T8,{data:s,isFetching:a,fetchNextPage:l})]}):e&&d?f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(R8,{})}):n&&d&&!t?f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(O8,{})}):t&&(s==null?void 0:s.pages[0].resources.length)===0?f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(N8,{})}):null};function I8({isOpen:e,onCancel:t=()=>({})}){const{t:n}=pe();return Pi.createPortal(f.jsxs(bn,{isOpen:e,onModalClose:t,id:"trash_action_disable_resource",children:[f.jsx(bn.Header,{onModalClose:()=>t(),children:n("explorer.trash.action.modal.title")}),f.jsx(bn.Body,{children:f.jsx("p",{className:"body",children:n("explorer.trash.action.modal.text")})}),f.jsx(bn.Footer,{children:f.jsx(Jr,{color:"primary",onClick:t,type:"button",variant:"outline",children:n("close")})})]}),document.getElementById("portal"))}const A8=()=>{const{appCode:e,currentApp:t}=yt(),{t:n}=pe(),[r,s]=x.useState(""),i=c=>{if(c==="0"){s("");return}s(c)},o=ns(),a=ot(),{setSearchParams:l}=je();x.useEffect(()=>{const c=()=>r.includes("1")?!0:void 0,d=()=>r.includes("2")?!0:void 0,h=()=>r.includes("7")?!0:void 0;l({...a,filters:{owner:c(),public:h(),shared:d(),folder:o?o.id:"default"}})},[o,l,r]);const u=[{label:n("explorer.filter.all",{ns:e}),value:"0"},{label:n("explorer.filter.owner",{ns:e}),value:"1"},{label:n("explorer.filter.shared",{ns:e}),value:"2"},...(t==null?void 0:t.displayName)==ho.EXERCIZER?[{label:"Exercices interactifs",value:"3"}]:[],...(t==null?void 0:t.displayName)==ho.EXERCIZER?[{label:"Exercices à rendre",value:"4"}]:[],...(t==null?void 0:t.displayName)=="pages"?[{label:"Projets publics",value:"5"}]:[],...(t==null?void 0:t.displayName)=="pages"?[{label:"Projets internes",value:"6"}]:[],...(t==null?void 0:t.displayName)==ho.BLOG?[{label:n("explorer.filter.public",{ns:e}),value:"7"}]:[]];return{selectedFilters:r,options:u,handleOnSelectFilter:i}},L8=()=>{const{appCode:e}=yt(),{t}=pe(),{selectedFilters:n,options:r,handleOnSelectFilter:s}=A8(),{inputSearch:i,handleInputSearchChange:o,handleKeyPress:a,handleSearchSubmit:l}=Py(),u=n.length>0?n.length:void 0;return f.jsxs("form",{noValidate:!0,className:"bg-light p-16 ps-24 ms-n16 ms-lg-n24 me-n16 position-relative z-3 d-flex gap-8",children:[f.jsxs(yc,{id:"search",className:"input-group",children:[f.jsx(P0,{type:"search",placeholder:t("explorer.label.search",{ns:e}),size:"lg",noValidationIcon:!0,value:i,onChange:o,onKeyDown:a}),f.jsx(b0,{type:"submit","aria-label":t("explorer.label.search",{ns:e}),onClick:l})]}),f.jsxs(pr,{placement:"bottom-end",children:[f.jsx(pr.Trigger,{label:t("explorer.filters"),icon:f.jsx(u3,{width:20}),variant:"ghost",badgeContent:u}),f.jsx(pr.Menu,{children:r.map(c=>c.value==="0"?f.jsxs(x.Fragment,{children:[f.jsx(pr.RadioItem,{value:c.value,model:n,onChange:()=>s(c.value),children:c.label}),f.jsx(pr.Separator,{})]},"0"):f.jsx(pr.RadioItem,{value:c.value,model:n,onChange:()=>s(c.value),children:c.label},c.value))})]})]})},M8=({id:e,selected:t,onSelect:n})=>{const{t:r}=pe();return f.jsx("div",{className:"treeview",children:f.jsx("ul",{role:"tree",className:"m-0 p-0",children:f.jsx("li",{id:e,role:"treeitem","aria-selected":t,children:f.jsx("div",{children:f.jsx("div",{className:"action-container",children:f.jsx("div",{onClick:n,role:"button",tabIndex:0,children:f.jsxs("div",{className:"d-flex align-items-center gap-8 py-8 ps-24",children:[f.jsx(r3,{width:"20",height:"20"}),f.jsx("span",{children:r("explorer.tree.trash")})]})})})})})})})},D8=x.lazy(async()=>await ye(()=>import("./EditFolderModal.js"),["EditFolderModal.js","index.esm.js"])),F8=()=>{const e=it(),{t}=pe(),[n,r]=z4(),s=ts(),i=rs(),o=gf(),{goToTrash:a,selectTreeItem:l,unfoldTreeItem:u,foldTreeItem:c,clearSelectedItems:d,clearSelectedIds:h}=je(),p=async y=>{await u(y,e)},g=()=>{d(),h(),r()};return s?f.jsxs(f.Fragment,{children:[f.jsx(FE,{data:s,selectedNodesIds:o,onTreeItemSelect:l,onTreeItemFold:c,onTreeItemUnfold:p}),f.jsx(M8,{id:Ge.BIN,selected:i,onSelect:a}),f.jsx("div",{className:"d-grid my-16",children:f.jsx(Jr,{disabled:i,type:"button",color:"primary",variant:"outline",leftIcon:f.jsx(w3,{}),onClick:g,children:t("explorer.folder.new")})}),f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:n&&f.jsx(D8,{edit:!1,isOpen:n,onSuccess:r,onCancel:r})})]}):null},$8=()=>{const e=t8(),{clearSelectedIds:t,setResourceActionDisable:n,clearSelectedItems:r}=je();return{isActionDisableModalOpen:e,onActionDisableCancel:()=>{t(),r(),n(!1)}}},z8=()=>{const[e,t]=x.useState(!1),[n,r]=x.useState(!0);return x.useEffect(()=>{(async()=>{const i=await qR();if(i){t(JSON.parse(i==null?void 0:i.showOnboardingTrash));return}t(!0)})()},[]),{isOnboardingTrash:e,isOpen:n,handleSavePreference:async()=>{await QR({onSuccess:()=>r(!1)})},setIsOpen:r}},U8=()=>{const e=ky(),{clearSelectedIds:t,setResourceIsTrash:n,clearSelectedItems:r}=je();return{isTrashedModalOpen:e,onTrashedCancel:()=>{t(),r(),n(!1)}}},B8=({workflow:e,actions:t})=>{const n=t==null?void 0:t.filter(r=>r.id===e&&r.available);return n&&n.length>0},V8=x.lazy(async()=>await ye(()=>import("./OnboardingTrash.js"),[])),H8=x.lazy(async()=>await ye(()=>import("./AppAction.js"),[])),q8=x.lazy(async()=>await ye(()=>import("./Library.js"),[])),Q8=x.lazy(async()=>await ye(()=>import("./TrashedResourceModal.js"),[]));function W8(){const{currentApp:e}=yt(),{isOnboardingTrash:t,isOpen:n,setIsOpen:r,handleSavePreference:s}=z8(),{data:i}=Oy(),{isTrashedModalOpen:o,onTrashedCancel:a}=U8(),{isActionDisableModalOpen:l,onActionDisableCancel:u}=$8();WS();const c=i==null?void 0:i.find(h=>h.id==="publish"),{libraryUrl:d}=C8();return f.jsxs(f.Fragment,{children:[f.jsx(_3,{render:()=>B8({workflow:"create",actions:i})?f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(H8,{})}):null,children:f.jsx(M3,{app:e})}),f.jsxs(Ms,{className:"flex-grow-1",children:[f.jsxs(Ms.Col,{sm:"3",lg:"2",xl:"3",className:"border-end pt-16 pe-16 d-none d-lg-block",as:"aside",children:[f.jsx(F8,{}),(c==null?void 0:c.available)&&d&&f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(q8,{url:d})})]}),f.jsxs(Ms.Col,{sm:"4",md:"8",lg:"6",xl:"9",children:[f.jsx(L8,{}),f.jsx(i8,{}),f.jsx(_8,{})]}),f.jsx(b8,{}),t&&f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(V8,{isOpen:n,setIsOpen:r,handleSavePreference:s})}),o&&f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(Q8,{isOpen:o,onCancel:a})}),l&&f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(I8,{isOpen:l,onCancel:u})})]})]})}function K8(){const{init:e}=yt();return e?e?f.jsx(mR,{children:f.jsx(W8,{})}):null:f.jsx(Ve,{position:!1})}const Z8=document.getElementById("root"),G8=new cw({queryCache:new Am({onError:e=>{e==="0090"&&window.location.replace("/auth/login")}}),defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}});wy(Z8).render(f.jsx(x.StrictMode,{children:f.jsxs(PS,{client:G8,children:[f.jsx(BS,{params:ml(),children:f.jsx(QS,{children:f.jsx(K8,{})})}),f.jsx(gR,{initialIsOpen:!1})]})}));export{o5 as $,Tt as A,Jr as B,s5 as C,pr as D,e3 as E,yc as F,ak as G,rp as H,c0 as I,p3 as J,dk as K,Ve as L,bn as M,ck as N,rs as O,fk as P,YR as Q,pm as R,w3 as S,it as T,ts as U,Cs as V,FE as W,ns as X,hk as Y,pk as Z,ye as _,Pi as a,nk as a0,vk as a1,B8 as a2,yk as a3,E8 as a4,ml as a5,V as a6,rk as a7,r3 as a8,vc as a9,Md as aa,sk as ab,Di as ac,uk as ad,V4 as ae,Ca as af,J3 as ag,lk as ah,ik as ai,_e as aj,Pa as ak,Fi as al,ok as am,Jg as an,Qa as b,z4 as c,yt as d,je as e,Oy as f,ek as g,Ad as h,Ni as i,f as j,P0 as k,L3 as l,f5 as m,ot as n,Ld as o,U4 as p,JR as q,x as r,gk as s,mk as t,pe as u,jt as v,tk as w,np as x,gc as y,Ka as z};