ode-explorer 1.0.1 → 1.0.2-dev.202309271434
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/AppAction.js +1 -1
- package/dist/Card.js +1 -1
- package/dist/DeleteModal.js +1 -1
- package/dist/EditFolderModal.js +1 -1
- package/dist/EditResourceModal.js +1 -1
- package/dist/EmptyScreen.js +1 -1
- package/dist/EmptyScreenApp.js +1 -1
- package/dist/EmptyScreenError.js +1 -0
- package/dist/EmptyScreenNoContentInFolder.js +1 -1
- package/dist/EmptyScreenSearch.js +1 -0
- package/dist/EmptyScreenTrash.js +1 -1
- package/dist/FoldersList.js +1 -1
- package/dist/Heading.js +1 -0
- package/dist/Library.js +1 -1
- package/dist/MoveModal.js +1 -1
- package/dist/OnboardingTrash.js +1 -1
- package/dist/PublishModal.js +2 -2
- package/dist/ResourcesList.js +1 -1
- package/dist/ShareResourceModal.js +1 -1
- package/dist/TextArea.js +1 -0
- package/dist/Tooltip.js +1 -1
- package/dist/TrashedResourceModal.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.html +2 -2
- package/dist/index.js +49 -65
- package/dist/style.css +1 -1
- package/dist/version.txt +1 -1
- package/package.json +33 -35
- package/dist/ImagePicker.js +0 -1
- package/dist/SelectList.js +0 -1
- package/dist/usePopper.js +0 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var $y=Object.defineProperty;var zy=(e,t,n)=>t in e?$y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var hr=(e,t,n)=>(zy(e,typeof t!="symbol"?t+"":t,n),n);import{odeServices as G,APP as Eo,FOLDER as et,ACTION as $e}from"/assets/js/edifice-ts-client/index.js";function By(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();const Uy="modulepreload",Vy=function(e){return"/"+e},If={},we=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=Vy(s),s in If)return;If[s]=!0;const o=s.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!r)for(let c=i.length-1;c>=0;c--){const d=i[c];if(d.href===s&&(!o||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${a}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":Uy,o||(u.as="script",u.crossOrigin=""),u.href=s,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 ${s}`)))})})).then(()=>t()).catch(s=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s})};var He=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function js(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cm={exports:{}},Ia={},km={exports:{}},Q={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ var Zt=Object.defineProperty;var Jt=(_e,et,tt)=>et in _e?Zt(_e,et,{enumerable:!0
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Ns=Symbol.for("react.element"),Hy=Symbol.for("react.portal"),qy=Symbol.for("react.fragment"),Qy=Symbol.for("react.strict_mode"),Wy=Symbol.for("react.profiler"),Ky=Symbol.for("react.provider"),Zy=Symbol.for("react.context"),Xy=Symbol.for("react.forward_ref"),Gy=Symbol.for("react.suspense"),Yy=Symbol.for("react.memo"),Jy=Symbol.for("react.lazy"),Lf=Symbol.iterator;function e2(e){return e===null||typeof e!="object"?null:(e=Lf&&e[Lf]||e["@@iterator"],typeof e=="function"?e:null)}var Om={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Rm=Object.assign,Pm={};function Jr(e,t,n){this.props=e,this.context=t,this.refs=Pm,this.updater=n||Om}Jr.prototype.isReactComponent={};Jr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Jr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function jm(){}jm.prototype=Jr.prototype;function $c(e,t,n){this.props=e,this.context=t,this.refs=Pm,this.updater=n||Om}var zc=$c.prototype=new jm;zc.constructor=$c;Rm(zc,Jr.prototype);zc.isPureReactComponent=!0;var Mf=Array.isArray,Nm=Object.prototype.hasOwnProperty,Bc={current:null},Tm={key:!0,ref:!0,__self:!0,__source:!0};function _m(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)Nm.call(t,r)&&!Tm.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:Ns,type:e,key:s,ref:o,props:i,_owner:Bc.current}}function t2(e,t){return{$$typeof:Ns,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Uc(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ns}function n2(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Df=/\/+/g;function Cl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?n2(""+e.key):t.toString(36)}function Co(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Ns:case Hy:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+Cl(o,0):r,Mf(i)?(n="",e!=null&&(n=e.replace(Df,"$&/")+"/"),Co(i,t,n,"",function(u){return u})):i!=null&&(Uc(i)&&(i=t2(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Df,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",Mf(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+Cl(s,a);o+=Co(s,t,n,l,i)}else if(l=e2(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+Cl(s,a++),o+=Co(s,t,n,l,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Zs(e,t,n){if(e==null)return e;var r=[],i=0;return Co(e,r,"","",function(s){return t.call(n,s,i++)}),r}function r2(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ie={current:null},ko={transition:null},i2={ReactCurrentDispatcher:Ie,ReactCurrentBatchConfig:ko,ReactCurrentOwner:Bc};Q.Children={map:Zs,forEach:function(e,t,n){Zs(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Zs(e,function(){t++}),t},toArray:function(e){return Zs(e,function(t){return t})||[]},only:function(e){if(!Uc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Q.Component=Jr;Q.Fragment=qy;Q.Profiler=Wy;Q.PureComponent=$c;Q.StrictMode=Qy;Q.Suspense=Gy;Q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=i2;Q.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Rm({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=Bc.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Nm.call(t,l)&&!Tm.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Ns,type:e.type,key:i,ref:s,props:r,_owner:o}};Q.createContext=function(e){return e={$$typeof:Zy,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Ky,_context:e},e.Consumer=e};Q.createElement=_m;Q.createFactory=function(e){var t=_m.bind(null,e);return t.type=e,t};Q.createRef=function(){return{current:null}};Q.forwardRef=function(e){return{$$typeof:Xy,render:e}};Q.isValidElement=Uc;Q.lazy=function(e){return{$$typeof:Jy,_payload:{_status:-1,_result:e},_init:r2}};Q.memo=function(e,t){return{$$typeof:Yy,type:e,compare:t===void 0?null:t}};Q.startTransition=function(e){var t=ko.transition;ko.transition={};try{e()}finally{ko.transition=t}};Q.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Q.useCallback=function(e,t){return Ie.current.useCallback(e,t)};Q.useContext=function(e){return Ie.current.useContext(e)};Q.useDebugValue=function(){};Q.useDeferredValue=function(e){return Ie.current.useDeferredValue(e)};Q.useEffect=function(e,t){return Ie.current.useEffect(e,t)};Q.useId=function(){return Ie.current.useId()};Q.useImperativeHandle=function(e,t,n){return Ie.current.useImperativeHandle(e,t,n)};Q.useInsertionEffect=function(e,t){return Ie.current.useInsertionEffect(e,t)};Q.useLayoutEffect=function(e,t){return Ie.current.useLayoutEffect(e,t)};Q.useMemo=function(e,t){return Ie.current.useMemo(e,t)};Q.useReducer=function(e,t,n){return Ie.current.useReducer(e,t,n)};Q.useRef=function(e){return Ie.current.useRef(e)};Q.useState=function(e){return Ie.current.useState(e)};Q.useSyncExternalStore=function(e,t,n){return Ie.current.useSyncExternalStore(e,t,n)};Q.useTransition=function(){return Ie.current.useTransition()};Q.version="18.2.0";km.exports=Q;var b=km.exports;const Am=js(b);/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.production.min.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@ var Zt=Object.defineProperty;var Jt=(_e,et,tt)=>et in _e?Zt(_e,et,{enumerable:!0
|
|
|
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 f$1=reactExports,k$2=Symbol.for("react.element"),l$2=Symbol.for("react.fragment"),m$4=Object.prototype.hasOwnProperty,n$4=f$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p$4={key:!0,ref:!0,__self:!0,__source:!0};function q$3(_e,et,tt){var rt,nt={},st=null,ot=null;tt!==void 0&&(st=""+tt),et.key!==void 0&&(st=""+et.key),et.ref!==void 0&&(ot=et.ref);for(rt in et)m$4.call(et,rt)&&!p$4.hasOwnProperty(rt)&&(nt[rt]=et[rt]);if(_e&&_e.defaultProps)for(rt in et=_e.defaultProps,et)nt[rt]===void 0&&(nt[rt]=et[rt]);return{$$typeof:k$2,type:_e,key:st,ref:ot,props:nt,_owner:n$4.current}}reactJsxRuntime_production_min.Fragment=l$2;reactJsxRuntime_production_min.jsx=q$3;reactJsxRuntime_production_min.jsxs=q$3;jsxRuntime.exports=reactJsxRuntime_production_min;var jsxRuntimeExports=jsxRuntime.exports;const consoleLogger={type:"logger",log(_e){this.output("log",_e)},warn(_e){this.output("warn",_e)},error(_e){this.output("error",_e)},output(_e,et){console&&console[_e]&&console[_e].apply(console,et)}};class Logger{constructor(et){let tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(et,tt)}init(et){let tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=tt.prefix||"i18next:",this.logger=et||consoleLogger,this.options=tt,this.debug=tt.debug}log(){for(var et=arguments.length,tt=new Array(et),rt=0;rt<et;rt++)tt[rt]=arguments[rt];return this.forward(tt,"log","",!0)}warn(){for(var et=arguments.length,tt=new Array(et),rt=0;rt<et;rt++)tt[rt]=arguments[rt];return this.forward(tt,"warn","",!0)}error(){for(var et=arguments.length,tt=new Array(et),rt=0;rt<et;rt++)tt[rt]=arguments[rt];return this.forward(tt,"error","")}deprecate(){for(var et=arguments.length,tt=new Array(et),rt=0;rt<et;rt++)tt[rt]=arguments[rt];return this.forward(tt,"warn","WARNING DEPRECATED: ",!0)}forward(et,tt,rt,nt){return nt&&!this.debug?null:(typeof et[0]=="string"&&(et[0]=`${rt}${this.prefix} ${et[0]}`),this.logger[tt](et))}create(et){return new Logger(this.logger,{prefix:`${this.prefix}:${et}:`,...this.options})}clone(et){return et=et||this.options,et.prefix=et.prefix||this.prefix,new Logger(this.logger,et)}}var baseLogger=new Logger;class EventEmitter{constructor(){this.observers={}}on(et,tt){return et.split(" ").forEach(rt=>{this.observers[rt]=this.observers[rt]||[],this.observers[rt].push(tt)}),this}off(et,tt){if(this.observers[et]){if(!tt){delete this.observers[et];return}this.observers[et]=this.observers[et].filter(rt=>rt!==tt)}}emit(et){for(var tt=arguments.length,rt=new Array(tt>1?tt-1:0),nt=1;nt<tt;nt++)rt[nt-1]=arguments[nt];this.observers[et]&&[].concat(this.observers[et]).forEach(ot=>{ot(...rt)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(ot=>{ot.apply(ot,[et,...rt])})}}function defer(){let _e,et;const tt=new Promise((rt,nt)=>{_e=rt,et=nt});return tt.resolve=_e,tt.reject=et,tt}function makeString(_e){return _e==null?"":""+_e}function copy(_e,et,tt){_e.forEach(rt=>{et[rt]&&(tt[rt]=et[rt])})}function getLastOfPath(_e,et,tt){function rt(ot){return ot&&ot.indexOf("###")>-1?ot.replace(/###/g,"."):ot}function nt(){return!_e||typeof _e=="string"}const st=typeof et!="string"?[].concat(et):et.split(".");for(;st.length>1;){if(nt())return{};const ot=rt(st.shift());!_e[ot]&&tt&&(_e[ot]=new tt),Object.prototype.hasOwnProperty.call(_e,ot)?_e=_e[ot]:_e={}}return nt()?{}:{obj:_e,k:rt(st.shift())}}function setPath(_e,et,tt){const{obj:rt,k:nt}=getLastOfPath(_e,et,Object);rt[nt]=tt}function pushPath(_e,et,tt,rt){const{obj:nt,k:st}=getLastOfPath(_e,et,Object);nt[st]=nt[st]||[],rt&&(nt[st]=nt[st].concat(tt)),rt||nt[st].push(tt)}function getPath(_e,et){const{obj:tt,k:rt}=getLastOfPath(_e,et);if(tt)return tt[rt]}function getPathWithDefaults(_e,et,tt){const rt=getPath(_e,tt);return rt!==void 0?rt:getPath(et,tt)}function deepExtend(_e,et,tt){for(const rt in et)rt!=="__proto__"&&rt!=="constructor"&&(rt in _e?typeof _e[rt]=="string"||_e[rt]instanceof String||typeof et[rt]=="string"||et[rt]instanceof String?tt&&(_e[rt]=et[rt]):deepExtend(_e[rt],et[rt],tt):_e[rt]=et[rt]);return _e}function regexEscape(_e){return _e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var _entityMap={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function escape(_e){return typeof _e=="string"?_e.replace(/[&<>"'\/]/g,et=>_entityMap[et]):_e}const chars=[" ",",","?","!",";"];function looksLikeObjectPath(_e,et,tt){et=et||"",tt=tt||"";const rt=chars.filter(ot=>et.indexOf(ot)<0&&tt.indexOf(ot)<0);if(rt.length===0)return!0;const nt=new RegExp(`(${rt.map(ot=>ot==="?"?"\\?":ot).join("|")})`);let st=!nt.test(_e);if(!st){const ot=_e.indexOf(tt);ot>0&&!nt.test(_e.substring(0,ot))&&(st=!0)}return st}function deepFind(_e,et){let tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!_e)return;if(_e[et])return _e[et];const rt=et.split(tt);let nt=_e;for(let st=0;st<rt.length;++st){if(!nt||typeof nt[rt[st]]=="string"&&st+1<rt.length)return;if(nt[rt[st]]===void 0){let ot=2,at=rt.slice(st,st+ot).join(tt),ut=nt[at];for(;ut===void 0&&rt.length>st+ot;)ot++,at=rt.slice(st,st+ot).join(tt),ut=nt[at];if(ut===void 0)return;if(ut===null)return null;if(et.endsWith(at)){if(typeof ut=="string")return ut;if(at&&typeof ut[at]=="string")return ut[at]}const lt=rt.slice(st+ot).join(tt);return lt?deepFind(ut,lt,tt):void 0}nt=nt[rt[st]]}return nt}function getCleanedCode(_e){return _e&&_e.indexOf("_")>0?_e.replace("_","-"):_e}class ResourceStore extends EventEmitter{constructor(et){let tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=et||{},this.options=tt,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(et){this.options.ns.indexOf(et)<0&&this.options.ns.push(et)}removeNamespaces(et){const tt=this.options.ns.indexOf(et);tt>-1&&this.options.ns.splice(tt,1)}getResource(et,tt,rt){let nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const st=nt.keySeparator!==void 0?nt.keySeparator:this.options.keySeparator,ot=nt.ignoreJSONStructure!==void 0?nt.ignoreJSONStructure:this.options.ignoreJSONStructure;let at=[et,tt];rt&&typeof rt!="string"&&(at=at.concat(rt)),rt&&typeof rt=="string"&&(at=at.concat(st?rt.split(st):rt)),et.indexOf(".")>-1&&(at=et.split("."));const ut=getPath(this.data,at);return ut||!ot||typeof rt!="string"?ut:deepFind(this.data&&this.data[et]&&this.data[et][tt],rt,st)}addResource(et,tt,rt,nt){let st=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const ot=st.keySeparator!==void 0?st.keySeparator:this.options.keySeparator;let at=[et,tt];rt&&(at=at.concat(ot?rt.split(ot):rt)),et.indexOf(".")>-1&&(at=et.split("."),nt=tt,tt=at[1]),this.addNamespaces(tt),setPath(this.data,at,nt),st.silent||this.emit("added",et,tt,rt,nt)}addResources(et,tt,rt){let nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const st in rt)(typeof rt[st]=="string"||Object.prototype.toString.apply(rt[st])==="[object Array]")&&this.addResource(et,tt,st,rt[st],{silent:!0});nt.silent||this.emit("added",et,tt,rt)}addResourceBundle(et,tt,rt,nt,st){let ot=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},at=[et,tt];et.indexOf(".")>-1&&(at=et.split("."),nt=rt,rt=tt,tt=at[1]),this.addNamespaces(tt);let ut=getPath(this.data,at)||{};nt?deepExtend(ut,rt,st):ut={...ut,...rt},setPath(this.data,at,ut),ot.silent||this.emit("added",et,tt,rt)}removeResourceBundle(et,tt){this.hasResourceBundle(et,tt)&&delete this.data[et][tt],this.removeNamespaces(tt),this.emit("removed",et,tt)}hasResourceBundle(et,tt){return this.getResource(et,tt)!==void 0}getResourceBundle(et,tt){return tt||(tt=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(et,tt)}:this.getResource(et,tt)}getDataByLanguage(et){return this.data[et]}hasLanguageSomeTranslations(et){const tt=this.getDataByLanguage(et);return!!(tt&&Object.keys(tt)||[]).find(nt=>tt[nt]&&Object.keys(tt[nt]).length>0)}toJSON(){return this.data}}var postProcessor={processors:{},addPostProcessor(_e){this.processors[_e.name]=_e},handle(_e,et,tt,rt,nt){return _e.forEach(st=>{this.processors[st]&&(et=this.processors[st].process(et,tt,rt,nt))}),et}};const checkedLoadedFor={};class Translator extends EventEmitter{constructor(et){let tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),copy(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],et,this),this.options=tt,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=baseLogger.create("translator")}changeLanguage(et){et&&(this.language=et)}exists(et){let tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(et==null)return!1;const rt=this.resolve(et,tt);return rt&&rt.res!==void 0}extractFromKey(et,tt){let rt=tt.nsSeparator!==void 0?tt.nsSeparator:this.options.nsSeparator;rt===void 0&&(rt=":");const nt=tt.keySeparator!==void 0?tt.keySeparator:this.options.keySeparator;let st=tt.ns||this.options.defaultNS||[];const ot=rt&&et.indexOf(rt)>-1,at=!this.options.userDefinedKeySeparator&&!tt.keySeparator&&!this.options.userDefinedNsSeparator&&!tt.nsSeparator&&!looksLikeObjectPath(et,rt,nt);if(ot&&!at){const ut=et.match(this.interpolator.nestingRegexp);if(ut&&ut.length>0)return{key:et,namespaces:st};const lt=et.split(rt);(rt!==nt||rt===nt&&this.options.ns.indexOf(lt[0])>-1)&&(st=lt.shift()),et=lt.join(nt)}return typeof st=="string"&&(st=[st]),{key:et,namespaces:st}}translate(et,tt,rt){if(typeof tt!="object"&&this.options.overloadTranslationOptionHandler&&(tt=this.options.overloadTranslationOptionHandler(arguments)),typeof tt=="object"&&(tt={...tt}),tt||(tt={}),et==null)return"";Array.isArray(et)||(et=[String(et)]);const nt=tt.returnDetails!==void 0?tt.returnDetails:this.options.returnDetails,st=tt.keySeparator!==void 0?tt.keySeparator:this.options.keySeparator,{key:ot,namespaces:at}=this.extractFromKey(et[et.length-1],tt),ut=at[at.length-1],lt=tt.lng||this.language,dt=tt.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(lt&<.toLowerCase()==="cimode"){if(dt){const St=tt.nsSeparator||this.options.nsSeparator;return nt?{res:`${ut}${St}${ot}`,usedKey:ot,exactUsedKey:ot,usedLng:lt,usedNS:ut}:`${ut}${St}${ot}`}return nt?{res:ot,usedKey:ot,exactUsedKey:ot,usedLng:lt,usedNS:ut}:ot}const ct=this.resolve(et,tt);let ft=ct&&ct.res;const ht=ct&&ct.usedKey||ot,mt=ct&&ct.exactUsedKey||ot,vt=Object.prototype.toString.apply(ft),wt=["[object Number]","[object Function]","[object RegExp]"],gt=tt.joinArrays!==void 0?tt.joinArrays:this.options.joinArrays,yt=!this.i18nFormat||this.i18nFormat.handleAsObject;if(yt&&ft&&(typeof ft!="string"&&typeof ft!="boolean"&&typeof ft!="number")&&wt.indexOf(vt)<0&&!(typeof gt=="string"&&vt==="[object Array]")){if(!tt.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const St=this.options.returnedObjectHandler?this.options.returnedObjectHandler(ht,ft,{...tt,ns:at}):`key '${ot} (${this.language})' returned an object instead of string.`;return nt?(ct.res=St,ct):St}if(st){const St=vt==="[object Array]",bt=St?[]:{},$t=St?mt:ht;for(const At in ft)if(Object.prototype.hasOwnProperty.call(ft,At)){const Tt=`${$t}${st}${At}`;bt[At]=this.translate(Tt,{...tt,joinArrays:!1,ns:at}),bt[At]===Tt&&(bt[At]=ft[At])}ft=bt}}else if(yt&&typeof gt=="string"&&vt==="[object Array]")ft=ft.join(gt),ft&&(ft=this.extendTranslation(ft,et,tt,rt));else{let St=!1,bt=!1;const $t=tt.count!==void 0&&typeof tt.count!="string",At=Translator.hasDefaultValue(tt),Tt=$t?this.pluralResolver.getSuffix(lt,tt.count,tt):"",Ft=tt.ordinal&&$t?this.pluralResolver.getSuffix(lt,tt.count,{ordinal:!1}):"",Pt=tt[`defaultValue${Tt}`]||tt[`defaultValue${Ft}`]||tt.defaultValue;!this.isValidLookup(ft)&&At&&(St=!0,ft=Pt),this.isValidLookup(ft)||(bt=!0,ft=ot);const Mt=(tt.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&bt?void 0:ft,It=At&&Pt!==ft&&this.options.updateMissing;if(bt||St||It){if(this.logger.log(It?"updateKey":"missingKey",lt,ut,ot,It?Pt:ft),st){const kt=this.resolve(ot,{...tt,keySeparator:!1});kt&&kt.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 Et=[];const Rt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,tt.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Rt&&Rt[0])for(let kt=0;kt<Rt.length;kt++)Et.push(Rt[kt]);else this.options.saveMissingTo==="all"?Et=this.languageUtils.toResolveHierarchy(tt.lng||this.language):Et.push(tt.lng||this.language);const Ot=(kt,Ct,jt)=>{const Nt=At&&jt!==ft?jt:Mt;this.options.missingKeyHandler?this.options.missingKeyHandler(kt,ut,Ct,Nt,It,tt):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(kt,ut,Ct,Nt,It,tt),this.emit("missingKey",kt,ut,Ct,ft)};this.options.saveMissing&&(this.options.saveMissingPlurals&&$t?Et.forEach(kt=>{this.pluralResolver.getSuffixes(kt,tt).forEach(Ct=>{Ot([kt],ot+Ct,tt[`defaultValue${Ct}`]||Pt)})}):Ot(Et,ot,Pt))}ft=this.extendTranslation(ft,et,tt,ct,rt),bt&&ft===ot&&this.options.appendNamespaceToMissingKey&&(ft=`${ut}:${ot}`),(bt||St)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?ft=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${ut}:${ot}`:ot,St?ft:void 0):ft=this.options.parseMissingKeyHandler(ft))}return nt?(ct.res=ft,ct):ft}extendTranslation(et,tt,rt,nt,st){var ot=this;if(this.i18nFormat&&this.i18nFormat.parse)et=this.i18nFormat.parse(et,{...this.options.interpolation.defaultVariables,...rt},nt.usedLng,nt.usedNS,nt.usedKey,{resolved:nt});else if(!rt.skipInterpolation){rt.interpolation&&this.interpolator.init({...rt,interpolation:{...this.options.interpolation,...rt.interpolation}});const lt=typeof et=="string"&&(rt&&rt.interpolation&&rt.interpolation.skipOnVariables!==void 0?rt.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let dt;if(lt){const ft=et.match(this.interpolator.nestingRegexp);dt=ft&&ft.length}let ct=rt.replace&&typeof rt.replace!="string"?rt.replace:rt;if(this.options.interpolation.defaultVariables&&(ct={...this.options.interpolation.defaultVariables,...ct}),et=this.interpolator.interpolate(et,ct,rt.lng||this.language,rt),lt){const ft=et.match(this.interpolator.nestingRegexp),ht=ft&&ft.length;dt<ht&&(rt.nest=!1)}!rt.lng&&this.options.compatibilityAPI!=="v1"&&nt&&nt.res&&(rt.lng=nt.usedLng),rt.nest!==!1&&(et=this.interpolator.nest(et,function(){for(var ft=arguments.length,ht=new Array(ft),mt=0;mt<ft;mt++)ht[mt]=arguments[mt];return st&&st[0]===ht[0]&&!rt.context?(ot.logger.warn(`It seems you are nesting recursively key: ${ht[0]} in key: ${tt[0]}`),null):ot.translate(...ht,tt)},rt)),rt.interpolation&&this.interpolator.reset()}const at=rt.postProcess||this.options.postProcess,ut=typeof at=="string"?[at]:at;return et!=null&&ut&&ut.length&&rt.applyPostProcessor!==!1&&(et=postProcessor.handle(ut,et,tt,this.options&&this.options.postProcessPassResolved?{i18nResolved:nt,...rt}:rt,this)),et}resolve(et){let tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt,nt,st,ot,at;return typeof et=="string"&&(et=[et]),et.forEach(ut=>{if(this.isValidLookup(rt))return;const lt=this.extractFromKey(ut,tt),dt=lt.key;nt=dt;let ct=lt.namespaces;this.options.fallbackNS&&(ct=ct.concat(this.options.fallbackNS));const ft=tt.count!==void 0&&typeof tt.count!="string",ht=ft&&!tt.ordinal&&tt.count===0&&this.pluralResolver.shouldUseIntlApi(),mt=tt.context!==void 0&&(typeof tt.context=="string"||typeof tt.context=="number")&&tt.context!=="",vt=tt.lngs?tt.lngs:this.languageUtils.toResolveHierarchy(tt.lng||this.language,tt.fallbackLng);ct.forEach(wt=>{this.isValidLookup(rt)||(at=wt,!checkedLoadedFor[`${vt[0]}-${wt}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(at)&&(checkedLoadedFor[`${vt[0]}-${wt}`]=!0,this.logger.warn(`key "${nt}" for languages "${vt.join(", ")}" won't get resolved as namespace "${at}" 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!!!")),vt.forEach(gt=>{if(this.isValidLookup(rt))return;ot=gt;const yt=[dt];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(yt,dt,gt,wt,tt);else{let St;ft&&(St=this.pluralResolver.getSuffix(gt,tt.count,tt));const bt=`${this.options.pluralSeparator}zero`,$t=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(ft&&(yt.push(dt+St),tt.ordinal&&St.indexOf($t)===0&&yt.push(dt+St.replace($t,this.options.pluralSeparator)),ht&&yt.push(dt+bt)),mt){const At=`${dt}${this.options.contextSeparator}${tt.context}`;yt.push(At),ft&&(yt.push(At+St),tt.ordinal&&St.indexOf($t)===0&&yt.push(At+St.replace($t,this.options.pluralSeparator)),ht&&yt.push(At+bt))}}let xt;for(;xt=yt.pop();)this.isValidLookup(rt)||(st=xt,rt=this.getResource(gt,wt,xt,tt))}))})}),{res:rt,usedKey:nt,exactUsedKey:st,usedLng:ot,usedNS:at}}isValidLookup(et){return et!==void 0&&!(!this.options.returnNull&&et===null)&&!(!this.options.returnEmptyString&&et==="")}getResource(et,tt,rt){let nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(et,tt,rt,nt):this.resourceStore.getResource(et,tt,rt,nt)}static hasDefaultValue(et){const tt="defaultValue";for(const rt in et)if(Object.prototype.hasOwnProperty.call(et,rt)&&tt===rt.substring(0,tt.length)&&et[rt]!==void 0)return!0;return!1}}function capitalize$2(_e){return _e.charAt(0).toUpperCase()+_e.slice(1)}class LanguageUtil{constructor(et){this.options=et,this.supportedLngs=this.options.supportedLngs||!1,this.logger=baseLogger.create("languageUtils")}getScriptPartFromCode(et){if(et=getCleanedCode(et),!et||et.indexOf("-")<0)return null;const tt=et.split("-");return tt.length===2||(tt.pop(),tt[tt.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(tt.join("-"))}getLanguagePartFromCode(et){if(et=getCleanedCode(et),!et||et.indexOf("-")<0)return et;const tt=et.split("-");return this.formatLanguageCode(tt[0])}formatLanguageCode(et){if(typeof et=="string"&&et.indexOf("-")>-1){const tt=["hans","hant","latn","cyrl","cans","mong","arab"];let rt=et.split("-");return this.options.lowerCaseLng?rt=rt.map(nt=>nt.toLowerCase()):rt.length===2?(rt[0]=rt[0].toLowerCase(),rt[1]=rt[1].toUpperCase(),tt.indexOf(rt[1].toLowerCase())>-1&&(rt[1]=capitalize$2(rt[1].toLowerCase()))):rt.length===3&&(rt[0]=rt[0].toLowerCase(),rt[1].length===2&&(rt[1]=rt[1].toUpperCase()),rt[0]!=="sgn"&&rt[2].length===2&&(rt[2]=rt[2].toUpperCase()),tt.indexOf(rt[1].toLowerCase())>-1&&(rt[1]=capitalize$2(rt[1].toLowerCase())),tt.indexOf(rt[2].toLowerCase())>-1&&(rt[2]=capitalize$2(rt[2].toLowerCase()))),rt.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?et.toLowerCase():et}isSupportedCode(et){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(et=this.getLanguagePartFromCode(et)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(et)>-1}getBestMatchFromCodes(et){if(!et)return null;let tt;return et.forEach(rt=>{if(tt)return;const nt=this.formatLanguageCode(rt);(!this.options.supportedLngs||this.isSupportedCode(nt))&&(tt=nt)}),!tt&&this.options.supportedLngs&&et.forEach(rt=>{if(tt)return;const nt=this.getLanguagePartFromCode(rt);if(this.isSupportedCode(nt))return tt=nt;tt=this.options.supportedLngs.find(st=>{if(st===nt)return st;if(!(st.indexOf("-")<0&&nt.indexOf("-")<0)&&st.indexOf(nt)===0)return st})}),tt||(tt=this.getFallbackCodes(this.options.fallbackLng)[0]),tt}getFallbackCodes(et,tt){if(!et)return[];if(typeof et=="function"&&(et=et(tt)),typeof et=="string"&&(et=[et]),Object.prototype.toString.apply(et)==="[object Array]")return et;if(!tt)return et.default||[];let rt=et[tt];return rt||(rt=et[this.getScriptPartFromCode(tt)]),rt||(rt=et[this.formatLanguageCode(tt)]),rt||(rt=et[this.getLanguagePartFromCode(tt)]),rt||(rt=et.default),rt||[]}toResolveHierarchy(et,tt){const rt=this.getFallbackCodes(tt||this.options.fallbackLng||[],et),nt=[],st=ot=>{ot&&(this.isSupportedCode(ot)?nt.push(ot):this.logger.warn(`rejecting language code not found in supportedLngs: ${ot}`))};return typeof et=="string"&&(et.indexOf("-")>-1||et.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&st(this.formatLanguageCode(et)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&st(this.getScriptPartFromCode(et)),this.options.load!=="currentOnly"&&st(this.getLanguagePartFromCode(et))):typeof et=="string"&&st(this.formatLanguageCode(et)),rt.forEach(ot=>{nt.indexOf(ot)<0&&st(this.formatLanguageCode(ot))}),nt}}let sets=[{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}],_rulesPluralsTypes={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 nonIntlVersions=["v1","v2","v3"],intlVersions=["v4"],suffixesOrder={zero:0,one:1,two:2,few:3,many:4,other:5};function createRules(){const _e={};return sets.forEach(et=>{et.lngs.forEach(tt=>{_e[tt]={numbers:et.nr,plurals:_rulesPluralsTypes[et.fc]}})}),_e}class PluralResolver{constructor(et){let tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=et,this.options=tt,this.logger=baseLogger.create("pluralResolver"),(!this.options.compatibilityJSON||intlVersions.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=createRules()}addRule(et,tt){this.rules[et]=tt}getRule(et){let tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(getCleanedCode(et),{type:tt.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[et]||this.rules[this.languageUtils.getLanguagePartFromCode(et)]}needsPlural(et){let tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const rt=this.getRule(et,tt);return this.shouldUseIntlApi()?rt&&rt.resolvedOptions().pluralCategories.length>1:rt&&rt.numbers.length>1}getPluralFormsOfKey(et,tt){let rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(et,rt).map(nt=>`${tt}${nt}`)}getSuffixes(et){let tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const rt=this.getRule(et,tt);return rt?this.shouldUseIntlApi()?rt.resolvedOptions().pluralCategories.sort((nt,st)=>suffixesOrder[nt]-suffixesOrder[st]).map(nt=>`${this.options.prepend}${tt.ordinal?`ordinal${this.options.prepend}`:""}${nt}`):rt.numbers.map(nt=>this.getSuffix(et,nt,tt)):[]}getSuffix(et,tt){let rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const nt=this.getRule(et,rt);return nt?this.shouldUseIntlApi()?`${this.options.prepend}${rt.ordinal?`ordinal${this.options.prepend}`:""}${nt.select(tt)}`:this.getSuffixRetroCompatible(nt,tt):(this.logger.warn(`no plural rule found for: ${et}`),"")}getSuffixRetroCompatible(et,tt){const rt=et.noAbs?et.plurals(tt):et.plurals(Math.abs(tt));let nt=et.numbers[rt];this.options.simplifyPluralSuffix&&et.numbers.length===2&&et.numbers[0]===1&&(nt===2?nt="plural":nt===1&&(nt=""));const st=()=>this.options.prepend&&nt.toString()?this.options.prepend+nt.toString():nt.toString();return this.options.compatibilityJSON==="v1"?nt===1?"":typeof nt=="number"?`_plural_${nt.toString()}`:st():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&et.numbers.length===2&&et.numbers[0]===1?st():this.options.prepend&&rt.toString()?this.options.prepend+rt.toString():rt.toString()}shouldUseIntlApi(){return!nonIntlVersions.includes(this.options.compatibilityJSON)}}function deepFindWithDefaults(_e,et,tt){let rt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",nt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,st=getPathWithDefaults(_e,et,tt);return!st&&nt&&typeof tt=="string"&&(st=deepFind(_e,tt,rt),st===void 0&&(st=deepFind(et,tt,rt))),st}class Interpolator{constructor(){let et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=baseLogger.create("interpolator"),this.options=et,this.format=et.interpolation&&et.interpolation.format||(tt=>tt),this.init(et)}init(){let et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};et.interpolation||(et.interpolation={escapeValue:!0});const tt=et.interpolation;this.escape=tt.escape!==void 0?tt.escape:escape,this.escapeValue=tt.escapeValue!==void 0?tt.escapeValue:!0,this.useRawValueToEscape=tt.useRawValueToEscape!==void 0?tt.useRawValueToEscape:!1,this.prefix=tt.prefix?regexEscape(tt.prefix):tt.prefixEscaped||"{{",this.suffix=tt.suffix?regexEscape(tt.suffix):tt.suffixEscaped||"}}",this.formatSeparator=tt.formatSeparator?tt.formatSeparator:tt.formatSeparator||",",this.unescapePrefix=tt.unescapeSuffix?"":tt.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":tt.unescapeSuffix||"",this.nestingPrefix=tt.nestingPrefix?regexEscape(tt.nestingPrefix):tt.nestingPrefixEscaped||regexEscape("$t("),this.nestingSuffix=tt.nestingSuffix?regexEscape(tt.nestingSuffix):tt.nestingSuffixEscaped||regexEscape(")"),this.nestingOptionsSeparator=tt.nestingOptionsSeparator?tt.nestingOptionsSeparator:tt.nestingOptionsSeparator||",",this.maxReplaces=tt.maxReplaces?tt.maxReplaces:1e3,this.alwaysFormat=tt.alwaysFormat!==void 0?tt.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const et=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(et,"g");const tt=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(tt,"g");const rt=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(rt,"g")}interpolate(et,tt,rt,nt){let st,ot,at;const ut=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function lt(mt){return mt.replace(/\$/g,"$$$$")}const dt=mt=>{if(mt.indexOf(this.formatSeparator)<0){const yt=deepFindWithDefaults(tt,ut,mt,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(yt,void 0,rt,{...nt,...tt,interpolationkey:mt}):yt}const vt=mt.split(this.formatSeparator),wt=vt.shift().trim(),gt=vt.join(this.formatSeparator).trim();return this.format(deepFindWithDefaults(tt,ut,wt,this.options.keySeparator,this.options.ignoreJSONStructure),gt,rt,{...nt,...tt,interpolationkey:wt})};this.resetRegExp();const ct=nt&&nt.missingInterpolationHandler||this.options.missingInterpolationHandler,ft=nt&&nt.interpolation&&nt.interpolation.skipOnVariables!==void 0?nt.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:mt=>lt(mt)},{regex:this.regexp,safeValue:mt=>this.escapeValue?lt(this.escape(mt)):lt(mt)}].forEach(mt=>{for(at=0;st=mt.regex.exec(et);){const vt=st[1].trim();if(ot=dt(vt),ot===void 0)if(typeof ct=="function"){const gt=ct(et,st,nt);ot=typeof gt=="string"?gt:""}else if(nt&&Object.prototype.hasOwnProperty.call(nt,vt))ot="";else if(ft){ot=st[0];continue}else this.logger.warn(`missed to pass in variable ${vt} for interpolating ${et}`),ot="";else typeof ot!="string"&&!this.useRawValueToEscape&&(ot=makeString(ot));const wt=mt.safeValue(ot);if(et=et.replace(st[0],wt),ft?(mt.regex.lastIndex+=ot.length,mt.regex.lastIndex-=st[0].length):mt.regex.lastIndex=0,at++,at>=this.maxReplaces)break}}),et}nest(et,tt){let rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},nt,st,ot;function at(ut,lt){const dt=this.nestingOptionsSeparator;if(ut.indexOf(dt)<0)return ut;const ct=ut.split(new RegExp(`${dt}[ ]*{`));let ft=`{${ct[1]}`;ut=ct[0],ft=this.interpolate(ft,ot);const ht=ft.match(/'/g),mt=ft.match(/"/g);(ht&&ht.length%2===0&&!mt||mt.length%2!==0)&&(ft=ft.replace(/'/g,'"'));try{ot=JSON.parse(ft),lt&&(ot={...lt,...ot})}catch(vt){return this.logger.warn(`failed parsing options string in nesting for key ${ut}`,vt),`${ut}${dt}${ft}`}return delete ot.defaultValue,ut}for(;nt=this.nestingRegexp.exec(et);){let ut=[];ot={...rt},ot=ot.replace&&typeof ot.replace!="string"?ot.replace:ot,ot.applyPostProcessor=!1,delete ot.defaultValue;let lt=!1;if(nt[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(nt[1])){const dt=nt[1].split(this.formatSeparator).map(ct=>ct.trim());nt[1]=dt.shift(),ut=dt,lt=!0}if(st=tt(at.call(this,nt[1].trim(),ot),ot),st&&nt[0]===et&&typeof st!="string")return st;typeof st!="string"&&(st=makeString(st)),st||(this.logger.warn(`missed to resolve ${nt[1]} for nesting ${et}`),st=""),lt&&(st=ut.reduce((dt,ct)=>this.format(dt,ct,rt.lng,{...rt,interpolationkey:nt[1].trim()}),st.trim())),et=et.replace(nt[0],st),this.regexp.lastIndex=0}return et}}function parseFormatStr(_e){let et=_e.toLowerCase().trim();const tt={};if(_e.indexOf("(")>-1){const rt=_e.split("(");et=rt[0].toLowerCase().trim();const nt=rt[1].substring(0,rt[1].length-1);et==="currency"&&nt.indexOf(":")<0?tt.currency||(tt.currency=nt.trim()):et==="relativetime"&&nt.indexOf(":")<0?tt.range||(tt.range=nt.trim()):nt.split(";").forEach(ot=>{if(!ot)return;const[at,...ut]=ot.split(":"),lt=ut.join(":").trim().replace(/^'+|'+$/g,"");tt[at.trim()]||(tt[at.trim()]=lt),lt==="false"&&(tt[at.trim()]=!1),lt==="true"&&(tt[at.trim()]=!0),isNaN(lt)||(tt[at.trim()]=parseInt(lt,10))})}return{formatName:et,formatOptions:tt}}function createCachedFormatter(_e){const et={};return function(rt,nt,st){const ot=nt+JSON.stringify(st);let at=et[ot];return at||(at=_e(getCleanedCode(nt),st),et[ot]=at),at(rt)}}class Formatter{constructor(){let et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=baseLogger.create("formatter"),this.options=et,this.formats={number:createCachedFormatter((tt,rt)=>{const nt=new Intl.NumberFormat(tt,{...rt});return st=>nt.format(st)}),currency:createCachedFormatter((tt,rt)=>{const nt=new Intl.NumberFormat(tt,{...rt,style:"currency"});return st=>nt.format(st)}),datetime:createCachedFormatter((tt,rt)=>{const nt=new Intl.DateTimeFormat(tt,{...rt});return st=>nt.format(st)}),relativetime:createCachedFormatter((tt,rt)=>{const nt=new Intl.RelativeTimeFormat(tt,{...rt});return st=>nt.format(st,rt.range||"day")}),list:createCachedFormatter((tt,rt)=>{const nt=new Intl.ListFormat(tt,{...rt});return st=>nt.format(st)})},this.init(et)}init(et){const rt=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=rt.formatSeparator?rt.formatSeparator:rt.formatSeparator||","}add(et,tt){this.formats[et.toLowerCase().trim()]=tt}addCached(et,tt){this.formats[et.toLowerCase().trim()]=createCachedFormatter(tt)}format(et,tt,rt){let nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return tt.split(this.formatSeparator).reduce((at,ut)=>{const{formatName:lt,formatOptions:dt}=parseFormatStr(ut);if(this.formats[lt]){let ct=at;try{const ft=nt&&nt.formatParams&&nt.formatParams[nt.interpolationkey]||{},ht=ft.locale||ft.lng||nt.locale||nt.lng||rt;ct=this.formats[lt](at,ht,{...dt,...nt,...ft})}catch(ft){this.logger.warn(ft)}return ct}else this.logger.warn(`there was no format function for ${lt}`);return at},et)}}function removePending(_e,et){_e.pending[et]!==void 0&&(delete _e.pending[et],_e.pendingCount--)}class Connector extends EventEmitter{constructor(et,tt,rt){let nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=et,this.store=tt,this.services=rt,this.languageUtils=rt.languageUtils,this.options=nt,this.logger=baseLogger.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=nt.maxParallelReads||10,this.readingCalls=0,this.maxRetries=nt.maxRetries>=0?nt.maxRetries:5,this.retryTimeout=nt.retryTimeout>=1?nt.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(rt,nt.backend,nt)}queueLoad(et,tt,rt,nt){const st={},ot={},at={},ut={};return et.forEach(lt=>{let dt=!0;tt.forEach(ct=>{const ft=`${lt}|${ct}`;!rt.reload&&this.store.hasResourceBundle(lt,ct)?this.state[ft]=2:this.state[ft]<0||(this.state[ft]===1?ot[ft]===void 0&&(ot[ft]=!0):(this.state[ft]=1,dt=!1,ot[ft]===void 0&&(ot[ft]=!0),st[ft]===void 0&&(st[ft]=!0),ut[ct]===void 0&&(ut[ct]=!0)))}),dt||(at[lt]=!0)}),(Object.keys(st).length||Object.keys(ot).length)&&this.queue.push({pending:ot,pendingCount:Object.keys(ot).length,loaded:{},errors:[],callback:nt}),{toLoad:Object.keys(st),pending:Object.keys(ot),toLoadLanguages:Object.keys(at),toLoadNamespaces:Object.keys(ut)}}loaded(et,tt,rt){const nt=et.split("|"),st=nt[0],ot=nt[1];tt&&this.emit("failedLoading",st,ot,tt),rt&&this.store.addResourceBundle(st,ot,rt),this.state[et]=tt?-1:2;const at={};this.queue.forEach(ut=>{pushPath(ut.loaded,[st],ot),removePending(ut,et),tt&&ut.errors.push(tt),ut.pendingCount===0&&!ut.done&&(Object.keys(ut.loaded).forEach(lt=>{at[lt]||(at[lt]={});const dt=ut.loaded[lt];dt.length&&dt.forEach(ct=>{at[lt][ct]===void 0&&(at[lt][ct]=!0)})}),ut.done=!0,ut.errors.length?ut.callback(ut.errors):ut.callback())}),this.emit("loaded",at),this.queue=this.queue.filter(ut=>!ut.done)}read(et,tt,rt){let nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,st=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,ot=arguments.length>5?arguments[5]:void 0;if(!et.length)return ot(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:et,ns:tt,fcName:rt,tried:nt,wait:st,callback:ot});return}this.readingCalls++;const at=(lt,dt)=>{if(this.readingCalls--,this.waitingReads.length>0){const ct=this.waitingReads.shift();this.read(ct.lng,ct.ns,ct.fcName,ct.tried,ct.wait,ct.callback)}if(lt&&dt&&nt<this.maxRetries){setTimeout(()=>{this.read.call(this,et,tt,rt,nt+1,st*2,ot)},st);return}ot(lt,dt)},ut=this.backend[rt].bind(this.backend);if(ut.length===2){try{const lt=ut(et,tt);lt&&typeof lt.then=="function"?lt.then(dt=>at(null,dt)).catch(at):at(null,lt)}catch(lt){at(lt)}return}return ut(et,tt,at)}prepareLoading(et,tt){let rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},nt=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."),nt&&nt();typeof et=="string"&&(et=this.languageUtils.toResolveHierarchy(et)),typeof tt=="string"&&(tt=[tt]);const st=this.queueLoad(et,tt,rt,nt);if(!st.toLoad.length)return st.pending.length||nt(),null;st.toLoad.forEach(ot=>{this.loadOne(ot)})}load(et,tt,rt){this.prepareLoading(et,tt,{},rt)}reload(et,tt,rt){this.prepareLoading(et,tt,{reload:!0},rt)}loadOne(et){let tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const rt=et.split("|"),nt=rt[0],st=rt[1];this.read(nt,st,"read",void 0,void 0,(ot,at)=>{ot&&this.logger.warn(`${tt}loading namespace ${st} for language ${nt} failed`,ot),!ot&&at&&this.logger.log(`${tt}loaded namespace ${st} for language ${nt}`,at),this.loaded(et,ot,at)})}saveMissing(et,tt,rt,nt,st){let ot=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},at=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(tt)){this.logger.warn(`did not save key "${rt}" as the namespace "${tt}" 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(!(rt==null||rt==="")){if(this.backend&&this.backend.create){const ut={...ot,isUpdate:st},lt=this.backend.create.bind(this.backend);if(lt.length<6)try{let dt;lt.length===5?dt=lt(et,tt,rt,nt,ut):dt=lt(et,tt,rt,nt),dt&&typeof dt.then=="function"?dt.then(ct=>at(null,ct)).catch(at):at(null,dt)}catch(dt){at(dt)}else lt(et,tt,rt,nt,at,ut)}!et||!et[0]||this.store.addResource(et[0],tt,rt,nt)}}}function get(){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(et){let tt={};if(typeof et[1]=="object"&&(tt=et[1]),typeof et[1]=="string"&&(tt.defaultValue=et[1]),typeof et[2]=="string"&&(tt.tDescription=et[2]),typeof et[2]=="object"||typeof et[3]=="object"){const rt=et[3]||et[2];Object.keys(rt).forEach(nt=>{tt[nt]=rt[nt]})}return tt},interpolation:{escapeValue:!0,format:(_e,et,tt,rt)=>_e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function transformOptions(_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 noop$4(){}function bindMemberFunctions(_e){Object.getOwnPropertyNames(Object.getPrototypeOf(_e)).forEach(tt=>{typeof _e[tt]=="function"&&(_e[tt]=_e[tt].bind(_e))})}class I18n extends EventEmitter{constructor(){let et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},tt=arguments.length>1?arguments[1]:void 0;if(super(),this.options=transformOptions(et),this.services={},this.logger=baseLogger,this.modules={external:[]},bindMemberFunctions(this),tt&&!this.isInitialized&&!et.isClone){if(!this.options.initImmediate)return this.init(et,tt),this;setTimeout(()=>{this.init(et,tt)},0)}}init(){var et=this;let tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},rt=arguments.length>1?arguments[1]:void 0;typeof tt=="function"&&(rt=tt,tt={}),!tt.defaultNS&&tt.defaultNS!==!1&&tt.ns&&(typeof tt.ns=="string"?tt.defaultNS=tt.ns:tt.ns.indexOf("translation")<0&&(tt.defaultNS=tt.ns[0]));const nt=get();this.options={...nt,...this.options,...transformOptions(tt)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...nt.interpolation,...this.options.interpolation}),tt.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=tt.keySeparator),tt.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=tt.nsSeparator);function st(dt){return dt?typeof dt=="function"?new dt:dt:null}if(!this.options.isClone){this.modules.logger?baseLogger.init(st(this.modules.logger),this.options):baseLogger.init(null,this.options);let dt;this.modules.formatter?dt=this.modules.formatter:typeof Intl<"u"&&(dt=Formatter);const ct=new LanguageUtil(this.options);this.store=new ResourceStore(this.options.resources,this.options);const ft=this.services;ft.logger=baseLogger,ft.resourceStore=this.store,ft.languageUtils=ct,ft.pluralResolver=new PluralResolver(ct,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),dt&&(!this.options.interpolation.format||this.options.interpolation.format===nt.interpolation.format)&&(ft.formatter=st(dt),ft.formatter.init(ft,this.options),this.options.interpolation.format=ft.formatter.format.bind(ft.formatter)),ft.interpolator=new Interpolator(this.options),ft.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},ft.backendConnector=new Connector(st(this.modules.backend),ft.resourceStore,ft,this.options),ft.backendConnector.on("*",function(ht){for(var mt=arguments.length,vt=new Array(mt>1?mt-1:0),wt=1;wt<mt;wt++)vt[wt-1]=arguments[wt];et.emit(ht,...vt)}),this.modules.languageDetector&&(ft.languageDetector=st(this.modules.languageDetector),ft.languageDetector.init&&ft.languageDetector.init(ft,this.options.detection,this.options)),this.modules.i18nFormat&&(ft.i18nFormat=st(this.modules.i18nFormat),ft.i18nFormat.init&&ft.i18nFormat.init(this)),this.translator=new Translator(this.services,this.options),this.translator.on("*",function(ht){for(var mt=arguments.length,vt=new Array(mt>1?mt-1:0),wt=1;wt<mt;wt++)vt[wt-1]=arguments[wt];et.emit(ht,...vt)}),this.modules.external.forEach(ht=>{ht.init&&ht.init(this)})}if(this.format=this.options.interpolation.format,rt||(rt=noop$4),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const dt=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);dt.length>0&&dt[0]!=="dev"&&(this.options.lng=dt[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(dt=>{this[dt]=function(){return et.store[dt](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(dt=>{this[dt]=function(){return et.store[dt](...arguments),et}});const ut=defer(),lt=()=>{const dt=(ct,ft)=>{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),ut.resolve(ft),rt(ct,ft)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return dt(null,this.t.bind(this));this.changeLanguage(this.options.lng,dt)};return this.options.resources||!this.options.initImmediate?lt():setTimeout(lt,0),ut}loadResources(et){let rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$4;const nt=typeof et=="string"?et:this.language;if(typeof et=="function"&&(rt=et),!this.options.resources||this.options.partialBundledLanguages){if(nt&&nt.toLowerCase()==="cimode")return rt();const st=[],ot=at=>{if(!at)return;this.services.languageUtils.toResolveHierarchy(at).forEach(lt=>{st.indexOf(lt)<0&&st.push(lt)})};nt?ot(nt):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(ut=>ot(ut)),this.options.preload&&this.options.preload.forEach(at=>ot(at)),this.services.backendConnector.load(st,this.options.ns,at=>{!at&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),rt(at)})}else rt(null)}reloadResources(et,tt,rt){const nt=defer();return et||(et=this.languages),tt||(tt=this.options.ns),rt||(rt=noop$4),this.services.backendConnector.reload(et,tt,st=>{nt.resolve(),rt(st)}),nt}use(et){if(!et)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!et.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return et.type==="backend"&&(this.modules.backend=et),(et.type==="logger"||et.log&&et.warn&&et.error)&&(this.modules.logger=et),et.type==="languageDetector"&&(this.modules.languageDetector=et),et.type==="i18nFormat"&&(this.modules.i18nFormat=et),et.type==="postProcessor"&&postProcessor.addPostProcessor(et),et.type==="formatter"&&(this.modules.formatter=et),et.type==="3rdParty"&&this.modules.external.push(et),this}setResolvedLanguage(et){if(!(!et||!this.languages)&&!(["cimode","dev"].indexOf(et)>-1))for(let tt=0;tt<this.languages.length;tt++){const rt=this.languages[tt];if(!(["cimode","dev"].indexOf(rt)>-1)&&this.store.hasLanguageSomeTranslations(rt)){this.resolvedLanguage=rt;break}}}changeLanguage(et,tt){var rt=this;this.isLanguageChangingTo=et;const nt=defer();this.emit("languageChanging",et);const st=ut=>{this.language=ut,this.languages=this.services.languageUtils.toResolveHierarchy(ut),this.resolvedLanguage=void 0,this.setResolvedLanguage(ut)},ot=(ut,lt)=>{lt?(st(lt),this.translator.changeLanguage(lt),this.isLanguageChangingTo=void 0,this.emit("languageChanged",lt),this.logger.log("languageChanged",lt)):this.isLanguageChangingTo=void 0,nt.resolve(function(){return rt.t(...arguments)}),tt&&tt(ut,function(){return rt.t(...arguments)})},at=ut=>{!et&&!ut&&this.services.languageDetector&&(ut=[]);const lt=typeof ut=="string"?ut:this.services.languageUtils.getBestMatchFromCodes(ut);lt&&(this.language||st(lt),this.translator.language||this.translator.changeLanguage(lt),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(lt)),this.loadResources(lt,dt=>{ot(dt,lt)})};return!et&&this.services.languageDetector&&!this.services.languageDetector.async?at(this.services.languageDetector.detect()):!et&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(at):this.services.languageDetector.detect(at):at(et),nt}getFixedT(et,tt,rt){var nt=this;const st=function(ot,at){let ut;if(typeof at!="object"){for(var lt=arguments.length,dt=new Array(lt>2?lt-2:0),ct=2;ct<lt;ct++)dt[ct-2]=arguments[ct];ut=nt.options.overloadTranslationOptionHandler([ot,at].concat(dt))}else ut={...at};ut.lng=ut.lng||st.lng,ut.lngs=ut.lngs||st.lngs,ut.ns=ut.ns||st.ns,ut.keyPrefix=ut.keyPrefix||rt||st.keyPrefix;const ft=nt.options.keySeparator||".";let ht;return ut.keyPrefix&&Array.isArray(ot)?ht=ot.map(mt=>`${ut.keyPrefix}${ft}${mt}`):ht=ut.keyPrefix?`${ut.keyPrefix}${ft}${ot}`:ot,nt.t(ht,ut)};return typeof et=="string"?st.lng=et:st.lngs=et,st.ns=tt,st.keyPrefix=rt,st}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(et){this.options.defaultNS=et}hasLoadedNamespace(et){let tt=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 rt=tt.lng||this.resolvedLanguage||this.languages[0],nt=this.options?this.options.fallbackLng:!1,st=this.languages[this.languages.length-1];if(rt.toLowerCase()==="cimode")return!0;const ot=(at,ut)=>{const lt=this.services.backendConnector.state[`${at}|${ut}`];return lt===-1||lt===2};if(tt.precheck){const at=tt.precheck(this,ot);if(at!==void 0)return at}return!!(this.hasResourceBundle(rt,et)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||ot(rt,et)&&(!nt||ot(st,et)))}loadNamespaces(et,tt){const rt=defer();return this.options.ns?(typeof et=="string"&&(et=[et]),et.forEach(nt=>{this.options.ns.indexOf(nt)<0&&this.options.ns.push(nt)}),this.loadResources(nt=>{rt.resolve(),tt&&tt(nt)}),rt):(tt&&tt(),Promise.resolve())}loadLanguages(et,tt){const rt=defer();typeof et=="string"&&(et=[et]);const nt=this.options.preload||[],st=et.filter(ot=>nt.indexOf(ot)<0);return st.length?(this.options.preload=nt.concat(st),this.loadResources(ot=>{rt.resolve(),tt&&tt(ot)}),rt):(tt&&tt(),Promise.resolve())}dir(et){if(et||(et=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!et)return"rtl";const tt=["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"],rt=this.services&&this.services.languageUtils||new LanguageUtil(get());return tt.indexOf(rt.getLanguagePartFromCode(et))>-1||et.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},tt=arguments.length>1?arguments[1]:void 0;return new I18n(et,tt)}cloneInstance(){let et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$4;const rt=et.forkResourceStore;rt&&delete et.forkResourceStore;const nt={...this.options,...et,isClone:!0},st=new I18n(nt);return(et.debug!==void 0||et.prefix!==void 0)&&(st.logger=st.logger.clone(et)),["store","services","language"].forEach(at=>{st[at]=this[at]}),st.services={...this.services},st.services.utils={hasLoadedNamespace:st.hasLoadedNamespace.bind(st)},rt&&(st.store=new ResourceStore(this.store.data,nt),st.services.resourceStore=st.store),st.translator=new Translator(st.services,nt),st.translator.on("*",function(at){for(var ut=arguments.length,lt=new Array(ut>1?ut-1:0),dt=1;dt<ut;dt++)lt[dt-1]=arguments[dt];st.emit(at,...lt)}),st.init(nt,tt),st.translator.options=nt,st.translator.backendConnector.services.utils={hasLoadedNamespace:st.hasLoadedNamespace.bind(st)},st}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const instance=I18n.createInstance();instance.createInstance=I18n.createInstance;instance.createInstance;instance.dir;instance.init;instance.loadResources;instance.reloadResources;instance.use;instance.changeLanguage;instance.getFixedT;instance.t;instance.exists;instance.setDefaultNamespace;instance.hasLoadedNamespace;instance.loadNamespaces;instance.loadLanguages;function _typeof$2(_e){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$2(_e)}var arr=[],each$1=arr.forEach,slice=arr.slice;function defaults$4(_e){return each$1.call(slice.call(arguments,1),function(et){if(et)for(var tt in et)_e[tt]===void 0&&(_e[tt]=et[tt])}),_e}function hasXMLHttpRequest(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":_typeof$2(XMLHttpRequest))==="object"}function isPromise(_e){return!!_e&&typeof _e.then=="function"}function makePromise(_e){return isPromise(_e)?_e:Promise.resolve(_e)}function commonjsRequire(_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 getFetch$1={exports:{}},browserPonyfill={exports:{}},hasRequiredBrowserPonyfill;function requireBrowserPonyfill(){return hasRequiredBrowserPonyfill||(hasRequiredBrowserPonyfill=1,function(_e,et){var tt=typeof self<"u"?self:commonjsGlobal,rt=function(){function st(){this.fetch=!1,this.DOMException=tt.DOMException}return st.prototype=tt,new st}();(function(st){(function(ot){var at={searchParams:"URLSearchParams"in st,iterable:"Symbol"in st&&"iterator"in Symbol,blob:"FileReader"in st&&"Blob"in st&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in st,arrayBuffer:"ArrayBuffer"in st};function ut(Et){return Et&&DataView.prototype.isPrototypeOf(Et)}if(at.arrayBuffer)var lt=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],dt=ArrayBuffer.isView||function(Et){return Et&<.indexOf(Object.prototype.toString.call(Et))>-1};function ct(Et){if(typeof Et!="string"&&(Et=String(Et)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(Et))throw new TypeError("Invalid character in header field name");return Et.toLowerCase()}function ft(Et){return typeof Et!="string"&&(Et=String(Et)),Et}function ht(Et){var Rt={next:function(){var Ot=Et.shift();return{done:Ot===void 0,value:Ot}}};return at.iterable&&(Rt[Symbol.iterator]=function(){return Rt}),Rt}function mt(Et){this.map={},Et instanceof mt?Et.forEach(function(Rt,Ot){this.append(Ot,Rt)},this):Array.isArray(Et)?Et.forEach(function(Rt){this.append(Rt[0],Rt[1])},this):Et&&Object.getOwnPropertyNames(Et).forEach(function(Rt){this.append(Rt,Et[Rt])},this)}mt.prototype.append=function(Et,Rt){Et=ct(Et),Rt=ft(Rt);var Ot=this.map[Et];this.map[Et]=Ot?Ot+", "+Rt:Rt},mt.prototype.delete=function(Et){delete this.map[ct(Et)]},mt.prototype.get=function(Et){return Et=ct(Et),this.has(Et)?this.map[Et]:null},mt.prototype.has=function(Et){return this.map.hasOwnProperty(ct(Et))},mt.prototype.set=function(Et,Rt){this.map[ct(Et)]=ft(Rt)},mt.prototype.forEach=function(Et,Rt){for(var Ot in this.map)this.map.hasOwnProperty(Ot)&&Et.call(Rt,this.map[Ot],Ot,this)},mt.prototype.keys=function(){var Et=[];return this.forEach(function(Rt,Ot){Et.push(Ot)}),ht(Et)},mt.prototype.values=function(){var Et=[];return this.forEach(function(Rt){Et.push(Rt)}),ht(Et)},mt.prototype.entries=function(){var Et=[];return this.forEach(function(Rt,Ot){Et.push([Ot,Rt])}),ht(Et)},at.iterable&&(mt.prototype[Symbol.iterator]=mt.prototype.entries);function vt(Et){if(Et.bodyUsed)return Promise.reject(new TypeError("Already read"));Et.bodyUsed=!0}function wt(Et){return new Promise(function(Rt,Ot){Et.onload=function(){Rt(Et.result)},Et.onerror=function(){Ot(Et.error)}})}function gt(Et){var Rt=new FileReader,Ot=wt(Rt);return Rt.readAsArrayBuffer(Et),Ot}function yt(Et){var Rt=new FileReader,Ot=wt(Rt);return Rt.readAsText(Et),Ot}function xt(Et){for(var Rt=new Uint8Array(Et),Ot=new Array(Rt.length),kt=0;kt<Rt.length;kt++)Ot[kt]=String.fromCharCode(Rt[kt]);return Ot.join("")}function St(Et){if(Et.slice)return Et.slice(0);var Rt=new Uint8Array(Et.byteLength);return Rt.set(new Uint8Array(Et)),Rt.buffer}function bt(){return this.bodyUsed=!1,this._initBody=function(Et){this._bodyInit=Et,Et?typeof Et=="string"?this._bodyText=Et:at.blob&&Blob.prototype.isPrototypeOf(Et)?this._bodyBlob=Et:at.formData&&FormData.prototype.isPrototypeOf(Et)?this._bodyFormData=Et:at.searchParams&&URLSearchParams.prototype.isPrototypeOf(Et)?this._bodyText=Et.toString():at.arrayBuffer&&at.blob&&ut(Et)?(this._bodyArrayBuffer=St(Et.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):at.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(Et)||dt(Et))?this._bodyArrayBuffer=St(Et):this._bodyText=Et=Object.prototype.toString.call(Et):this._bodyText="",this.headers.get("content-type")||(typeof Et=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):at.searchParams&&URLSearchParams.prototype.isPrototypeOf(Et)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},at.blob&&(this.blob=function(){var Et=vt(this);if(Et)return Et;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(){return this._bodyArrayBuffer?vt(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(gt)}),this.text=function(){var Et=vt(this);if(Et)return Et;if(this._bodyBlob)return yt(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(xt(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},at.formData&&(this.formData=function(){return this.text().then(Ft)}),this.json=function(){return this.text().then(JSON.parse)},this}var $t=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function At(Et){var Rt=Et.toUpperCase();return $t.indexOf(Rt)>-1?Rt:Et}function Tt(Et,Rt){Rt=Rt||{};var Ot=Rt.body;if(Et instanceof Tt){if(Et.bodyUsed)throw new TypeError("Already read");this.url=Et.url,this.credentials=Et.credentials,Rt.headers||(this.headers=new mt(Et.headers)),this.method=Et.method,this.mode=Et.mode,this.signal=Et.signal,!Ot&&Et._bodyInit!=null&&(Ot=Et._bodyInit,Et.bodyUsed=!0)}else this.url=String(Et);if(this.credentials=Rt.credentials||this.credentials||"same-origin",(Rt.headers||!this.headers)&&(this.headers=new mt(Rt.headers)),this.method=At(Rt.method||this.method||"GET"),this.mode=Rt.mode||this.mode||null,this.signal=Rt.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Ot)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(Ot)}Tt.prototype.clone=function(){return new Tt(this,{body:this._bodyInit})};function Ft(Et){var Rt=new FormData;return Et.trim().split("&").forEach(function(Ot){if(Ot){var kt=Ot.split("="),Ct=kt.shift().replace(/\+/g," "),jt=kt.join("=").replace(/\+/g," ");Rt.append(decodeURIComponent(Ct),decodeURIComponent(jt))}}),Rt}function Pt(Et){var Rt=new mt,Ot=Et.replace(/\r?\n[\t ]+/g," ");return Ot.split(/\r?\n/).forEach(function(kt){var Ct=kt.split(":"),jt=Ct.shift().trim();if(jt){var Nt=Ct.join(":").trim();Rt.append(jt,Nt)}}),Rt}bt.call(Tt.prototype);function Dt(Et,Rt){Rt||(Rt={}),this.type="default",this.status=Rt.status===void 0?200:Rt.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in Rt?Rt.statusText:"OK",this.headers=new mt(Rt.headers),this.url=Rt.url||"",this._initBody(Et)}bt.call(Dt.prototype),Dt.prototype.clone=function(){return new Dt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new mt(this.headers),url:this.url})},Dt.error=function(){var Et=new Dt(null,{status:0,statusText:""});return Et.type="error",Et};var Mt=[301,302,303,307,308];Dt.redirect=function(Et,Rt){if(Mt.indexOf(Rt)===-1)throw new RangeError("Invalid status code");return new Dt(null,{status:Rt,headers:{location:Et}})},ot.DOMException=st.DOMException;try{new ot.DOMException}catch{ot.DOMException=function(Rt,Ot){this.message=Rt,this.name=Ot;var kt=Error(Rt);this.stack=kt.stack},ot.DOMException.prototype=Object.create(Error.prototype),ot.DOMException.prototype.constructor=ot.DOMException}function It(Et,Rt){return new Promise(function(Ot,kt){var Ct=new Tt(Et,Rt);if(Ct.signal&&Ct.signal.aborted)return kt(new ot.DOMException("Aborted","AbortError"));var jt=new XMLHttpRequest;function Nt(){jt.abort()}jt.onload=function(){var Bt={status:jt.status,statusText:jt.statusText,headers:Pt(jt.getAllResponseHeaders()||"")};Bt.url="responseURL"in jt?jt.responseURL:Bt.headers.get("X-Request-URL");var Lt="response"in jt?jt.response:jt.responseText;Ot(new Dt(Lt,Bt))},jt.onerror=function(){kt(new TypeError("Network request failed"))},jt.ontimeout=function(){kt(new TypeError("Network request failed"))},jt.onabort=function(){kt(new ot.DOMException("Aborted","AbortError"))},jt.open(Ct.method,Ct.url,!0),Ct.credentials==="include"?jt.withCredentials=!0:Ct.credentials==="omit"&&(jt.withCredentials=!1),"responseType"in jt&&at.blob&&(jt.responseType="blob"),Ct.headers.forEach(function(Bt,Lt){jt.setRequestHeader(Lt,Bt)}),Ct.signal&&(Ct.signal.addEventListener("abort",Nt),jt.onreadystatechange=function(){jt.readyState===4&&Ct.signal.removeEventListener("abort",Nt)}),jt.send(typeof Ct._bodyInit>"u"?null:Ct._bodyInit)})}return It.polyfill=!0,st.fetch||(st.fetch=It,st.Headers=mt,st.Request=Tt,st.Response=Dt),ot.Headers=mt,ot.Request=Tt,ot.Response=Dt,ot.fetch=It,Object.defineProperty(ot,"__esModule",{value:!0}),ot})({})})(rt),rt.fetch.ponyfill=!0,delete rt.fetch.polyfill;var nt=rt;et=nt.fetch,et.default=nt.fetch,et.fetch=nt.fetch,et.Headers=nt.Headers,et.Request=nt.Request,et.Response=nt.Response,_e.exports=et}(browserPonyfill,browserPonyfill.exports)),browserPonyfill.exports}(function(_e,et){var tt;if(typeof fetch=="function"&&(typeof commonjsGlobal<"u"&&commonjsGlobal.fetch?tt=commonjsGlobal.fetch:typeof window<"u"&&window.fetch?tt=window.fetch:tt=fetch),typeof commonjsRequire<"u"&&(typeof window>"u"||typeof window.document>"u")){var rt=tt||requireBrowserPonyfill();rt.default&&(rt=rt.default),et.default=rt,_e.exports=et.default}})(getFetch$1,getFetch$1.exports);var getFetchExports=getFetch$1.exports;const getFetch=getDefaultExportFromCjs$1(getFetchExports),fetchNode=_mergeNamespaces({__proto__:null,default:getFetch},[getFetchExports]);function _typeof$1(_e){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$1(_e)}var fetchApi;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?fetchApi=global.fetch:typeof window<"u"&&window.fetch?fetchApi=window.fetch:fetchApi=fetch);var XmlHttpRequestApi;hasXMLHttpRequest()&&(typeof global<"u"&&global.XMLHttpRequest?XmlHttpRequestApi=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(XmlHttpRequestApi=window.XMLHttpRequest));var ActiveXObjectApi;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?ActiveXObjectApi=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(ActiveXObjectApi=window.ActiveXObject));!fetchApi&&fetchNode&&!XmlHttpRequestApi&&!ActiveXObjectApi&&(fetchApi=getFetch||fetchNode);typeof fetchApi!="function"&&(fetchApi=void 0);var addQueryString=function(et,tt){if(tt&&_typeof$1(tt)==="object"){var rt="";for(var nt in tt)rt+="&"+encodeURIComponent(nt)+"="+encodeURIComponent(tt[nt]);if(!rt)return et;et=et+(et.indexOf("?")!==-1?"&":"?")+rt.slice(1)}return et},fetchIt=function(et,tt,rt){fetchApi(et,tt).then(function(nt){if(!nt.ok)return rt(nt.statusText||"Error",{status:nt.status});nt.text().then(function(st){rt(null,{status:nt.status,data:st})}).catch(rt)}).catch(rt)},omitFetchOptions=!1,requestWithFetch=function(et,tt,rt,nt){et.queryStringParams&&(tt=addQueryString(tt,et.queryStringParams));var st=defaults$4({},typeof et.customHeaders=="function"?et.customHeaders():et.customHeaders);rt&&(st["Content-Type"]="application/json");var ot=typeof et.requestOptions=="function"?et.requestOptions(rt):et.requestOptions,at=defaults$4({method:rt?"POST":"GET",body:rt?et.stringify(rt):void 0,headers:st},omitFetchOptions?{}:ot);try{fetchIt(tt,at,nt)}catch(ut){if(!ot||Object.keys(ot).length===0||!ut.message||ut.message.indexOf("not implemented")<0)return nt(ut);try{Object.keys(ot).forEach(function(lt){delete at[lt]}),fetchIt(tt,at,nt),omitFetchOptions=!0}catch(lt){nt(lt)}}},requestWithXmlHttpRequest=function(et,tt,rt,nt){rt&&_typeof$1(rt)==="object"&&(rt=addQueryString("",rt).slice(1)),et.queryStringParams&&(tt=addQueryString(tt,et.queryStringParams));try{var st;XmlHttpRequestApi?st=new XmlHttpRequestApi:st=new ActiveXObjectApi("MSXML2.XMLHTTP.3.0"),st.open(rt?"POST":"GET",tt,1),et.crossDomain||st.setRequestHeader("X-Requested-With","XMLHttpRequest"),st.withCredentials=!!et.withCredentials,rt&&st.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),st.overrideMimeType&&st.overrideMimeType("application/json");var ot=et.customHeaders;if(ot=typeof ot=="function"?ot():ot,ot)for(var at in ot)st.setRequestHeader(at,ot[at]);st.onreadystatechange=function(){st.readyState>3&&nt(st.status>=400?st.statusText:null,{status:st.status,data:st.responseText})},st.send(rt)}catch(ut){console&&console.log(ut)}},request=function(et,tt,rt,nt){if(typeof rt=="function"&&(nt=rt,rt=void 0),nt=nt||function(){},fetchApi&&tt.indexOf("file:")!==0)return requestWithFetch(et,tt,rt,nt);if(hasXMLHttpRequest()||typeof ActiveXObject=="function")return requestWithXmlHttpRequest(et,tt,rt,nt);nt(new Error("No fetch and no xhr implementation found!"))};function _typeof(_e){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof(_e)}function _classCallCheck(_e,et){if(!(_e instanceof et))throw new TypeError("Cannot call a class as a function")}function _defineProperties(_e,et){for(var tt=0;tt<et.length;tt++){var rt=et[tt];rt.enumerable=rt.enumerable||!1,rt.configurable=!0,"value"in rt&&(rt.writable=!0),Object.defineProperty(_e,_toPropertyKey(rt.key),rt)}}function _createClass(_e,et,tt){return et&&_defineProperties(_e.prototype,et),tt&&_defineProperties(_e,tt),Object.defineProperty(_e,"prototype",{writable:!1}),_e}function _defineProperty(_e,et,tt){return et=_toPropertyKey(et),et in _e?Object.defineProperty(_e,et,{value:tt,enumerable:!0,configurable:!0,writable:!0}):_e[et]=tt,_e}function _toPropertyKey(_e){var et=_toPrimitive(_e,"string");return _typeof(et)==="symbol"?et:String(et)}function _toPrimitive(_e,et){if(_typeof(_e)!=="object"||_e===null)return _e;var tt=_e[Symbol.toPrimitive];if(tt!==void 0){var rt=tt.call(_e,et||"default");if(_typeof(rt)!=="object")return rt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(et==="string"?String:Number)(_e)}var getDefaults$1=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:function(tt){return JSON.parse(tt)},stringify:JSON.stringify,parsePayload:function(tt,rt,nt){return _defineProperty({},rt,nt||"")},parseLoadPayload:function(tt,rt){},request,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},Backend=function(){function _e(et){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};_classCallCheck(this,_e),this.services=et,this.options=tt,this.allOptions=rt,this.type="backend",this.init(et,tt,rt)}return _createClass(_e,[{key:"init",value:function(tt){var rt=this,nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=tt,this.options=defaults$4(nt,this.options||{},getDefaults$1()),this.allOptions=st,this.services&&this.options.reloadInterval&&setInterval(function(){return rt.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(tt,rt,nt){this._readAny(tt,tt,rt,rt,nt)}},{key:"read",value:function(tt,rt,nt){this._readAny([tt],tt,[rt],rt,nt)}},{key:"_readAny",value:function(tt,rt,nt,st,ot){var at=this,ut=this.options.loadPath;typeof this.options.loadPath=="function"&&(ut=this.options.loadPath(tt,nt)),ut=makePromise(ut),ut.then(function(lt){if(!lt)return ot(null,{});var dt=at.services.interpolator.interpolate(lt,{lng:tt.join("+"),ns:nt.join("+")});at.loadUrl(dt,ot,rt,st)})}},{key:"loadUrl",value:function(tt,rt,nt,st){var ot=this,at=typeof nt=="string"?[nt]:nt,ut=typeof st=="string"?[st]:st,lt=this.options.parseLoadPayload(at,ut);this.options.request(this.options,tt,lt,function(dt,ct){if(ct&&(ct.status>=500&&ct.status<600||!ct.status))return rt("failed loading "+tt+"; status code: "+ct.status,!0);if(ct&&ct.status>=400&&ct.status<500)return rt("failed loading "+tt+"; status code: "+ct.status,!1);if(!ct&&dt&&dt.message&&dt.message.indexOf("Failed to fetch")>-1)return rt("failed loading "+tt+": "+dt.message,!0);if(dt)return rt(dt,!1);var ft,ht;try{typeof ct.data=="string"?ft=ot.options.parse(ct.data,nt,st):ft=ct.data}catch{ht="failed parsing "+tt+" to json"}if(ht)return rt(ht,!1);rt(null,ft)})}},{key:"create",value:function(tt,rt,nt,st,ot){var at=this;if(this.options.addPath){typeof tt=="string"&&(tt=[tt]);var ut=this.options.parsePayload(rt,nt,st),lt=0,dt=[],ct=[];tt.forEach(function(ft){var ht=at.options.addPath;typeof at.options.addPath=="function"&&(ht=at.options.addPath(ft,rt));var mt=at.services.interpolator.interpolate(ht,{lng:ft,ns:rt});at.options.request(at.options,mt,ut,function(vt,wt){lt+=1,dt.push(vt),ct.push(wt),lt===tt.length&&typeof ot=="function"&&ot(dt,ct)})})}}},{key:"reload",value:function(){var tt=this,rt=this.services,nt=rt.backendConnector,st=rt.languageUtils,ot=rt.logger,at=nt.language;if(!(at&&at.toLowerCase()==="cimode")){var ut=[],lt=function(ct){var ft=st.toResolveHierarchy(ct);ft.forEach(function(ht){ut.indexOf(ht)<0&&ut.push(ht)})};lt(at),this.allOptions.preload&&this.allOptions.preload.forEach(function(dt){return lt(dt)}),ut.forEach(function(dt){tt.allOptions.ns.forEach(function(ct){nt.read(dt,ct,"read",null,null,function(ft,ht){ft&&ot.warn("loading namespace ".concat(ct," for language ").concat(dt," failed"),ft),!ft&&ht&&ot.log("loaded namespace ".concat(ct," for language ").concat(dt),ht),nt.loaded("".concat(dt,"|").concat(ct),ft,ht)})})})}}}]),_e}();Backend.type="backend";function warn(){if(console&&console.warn){for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];typeof et[0]=="string"&&(et[0]=`react-i18next:: ${et[0]}`),console.warn(...et)}}const alreadyWarned={};function warnOnce(){for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];typeof et[0]=="string"&&alreadyWarned[et[0]]||(typeof et[0]=="string"&&(alreadyWarned[et[0]]=new Date),warn(...et))}const loadedClb=(_e,et)=>()=>{if(_e.isInitialized)et();else{const tt=()=>{setTimeout(()=>{_e.off("initialized",tt)},0),et()};_e.on("initialized",tt)}};function loadNamespaces(_e,et,tt){_e.loadNamespaces(et,loadedClb(_e,tt))}function loadLanguages(_e,et,tt,rt){typeof tt=="string"&&(tt=[tt]),tt.forEach(nt=>{_e.options.ns.indexOf(nt)<0&&_e.options.ns.push(nt)}),_e.loadLanguages(et,loadedClb(_e,rt))}function oldI18nextHasLoadedNamespace(_e,et){let tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const rt=et.languages[0],nt=et.options?et.options.fallbackLng:!1,st=et.languages[et.languages.length-1];if(rt.toLowerCase()==="cimode")return!0;const ot=(at,ut)=>{const lt=et.services.backendConnector.state[`${at}|${ut}`];return lt===-1||lt===2};return tt.bindI18n&&tt.bindI18n.indexOf("languageChanging")>-1&&et.services.backendConnector.backend&&et.isLanguageChangingTo&&!ot(et.isLanguageChangingTo,_e)?!1:!!(et.hasResourceBundle(rt,_e)||!et.services.backendConnector.backend||et.options.resources&&!et.options.partialBundledLanguages||ot(rt,_e)&&(!nt||ot(st,_e)))}function hasLoadedNamespace(_e,et){let tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!et.languages||!et.languages.length?(warnOnce("i18n.languages were undefined or empty",et.languages),!0):et.options.ignoreJSONStructure!==void 0?et.hasLoadedNamespace(_e,{lng:tt.lng,precheck:(nt,st)=>{if(tt.bindI18n&&tt.bindI18n.indexOf("languageChanging")>-1&&nt.services.backendConnector.backend&&nt.isLanguageChangingTo&&!st(nt.isLanguageChangingTo,_e))return!1}}):oldI18nextHasLoadedNamespace(_e,et,tt)}const matchHtmlEntity=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,htmlEntities={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},unescapeHtmlEntity=_e=>htmlEntities[_e],unescape$1=_e=>_e.replace(matchHtmlEntity,unescapeHtmlEntity);let defaultOptions={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:unescape$1};function setDefaults(){let _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};defaultOptions={...defaultOptions,..._e}}function getDefaults(){return defaultOptions}let i18nInstance;function setI18n(_e){i18nInstance=_e}function getI18n(){return i18nInstance}const initReactI18next={type:"3rdParty",init(_e){setDefaults(_e.options.react),setI18n(_e)}},I18nContext=reactExports.createContext();class ReportNamespaces{constructor(){this.usedNamespaces={}}addUsedNamespaces(et){et.forEach(tt=>{this.usedNamespaces[tt]||(this.usedNamespaces[tt]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const usePrevious=(_e,et)=>{const tt=reactExports.useRef();return reactExports.useEffect(()=>{tt.current=et?tt.current:_e},[_e,et]),tt.current};function useTranslation(_e){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:tt}=et,{i18n:rt,defaultNS:nt}=reactExports.useContext(I18nContext)||{},st=tt||rt||getI18n();if(st&&!st.reportNamespaces&&(st.reportNamespaces=new ReportNamespaces),!st){warnOnce("You will need to pass in an i18next instance by using initReactI18next");const xt=(bt,$t)=>typeof $t=="string"?$t:$t&&typeof $t=="object"&&typeof $t.defaultValue=="string"?$t.defaultValue:Array.isArray(bt)?bt[bt.length-1]:bt,St=[xt,{},!1];return St.t=xt,St.i18n={},St.ready=!1,St}st.options.react&&st.options.react.wait!==void 0&&warnOnce("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const ot={...getDefaults(),...st.options.react,...et},{useSuspense:at,keyPrefix:ut}=ot;let lt=_e||nt||st.options&&st.options.defaultNS;lt=typeof lt=="string"?[lt]:lt||["translation"],st.reportNamespaces.addUsedNamespaces&&st.reportNamespaces.addUsedNamespaces(lt);const dt=(st.isInitialized||st.initializedStoreOnce)&<.every(xt=>hasLoadedNamespace(xt,st,ot));function ct(){return st.getFixedT(et.lng||null,ot.nsMode==="fallback"?lt:lt[0],ut)}const[ft,ht]=reactExports.useState(ct);let mt=lt.join();et.lng&&(mt=`${et.lng}${mt}`);const vt=usePrevious(mt),wt=reactExports.useRef(!0);reactExports.useEffect(()=>{const{bindI18n:xt,bindI18nStore:St}=ot;wt.current=!0,!dt&&!at&&(et.lng?loadLanguages(st,et.lng,lt,()=>{wt.current&&ht(ct)}):loadNamespaces(st,lt,()=>{wt.current&&ht(ct)})),dt&&vt&&vt!==mt&&wt.current&&ht(ct);function bt(){wt.current&&ht(ct)}return xt&&st&&st.on(xt,bt),St&&st&&st.store.on(St,bt),()=>{wt.current=!1,xt&&st&&xt.split(" ").forEach($t=>st.off($t,bt)),St&&st&&St.split(" ").forEach($t=>st.store.off($t,bt))}},[st,mt]);const gt=reactExports.useRef(!0);reactExports.useEffect(()=>{wt.current&&!gt.current&&ht(ct),gt.current=!1},[st,ut]);const yt=[ft,st,dt];if(yt.t=ft,yt.i18n=st,yt.ready=dt,dt||!dt&&!at)return yt;throw new Promise(xt=>{et.lng?loadLanguages(st,et.lng,lt,()=>xt()):loadNamespaces(st,lt,()=>xt())})}instance.use(Backend).use(initReactI18next).init({backend:{loadPath:(_e,et)=>et.map(rt=>rt==="common"?"/i18n":`/${rt}/i18n`),parse:_e=>JSON.parse(_e)},defaultNS:"common",ns:["common"],fallbackLng:"fr",lng:"fr",interpolation:{escapeValue:!1,prefix:"[[",suffix:"]]"},debug:!1});class Subscribable{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(et){const tt={listener:et};return this.listeners.add(tt),this.onSubscribe(),()=>{this.listeners.delete(tt),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const isServer=typeof window>"u"||"Deno"in window;function noop$3(){}function functionalUpdate(_e,et){return typeof _e=="function"?_e(et):_e}function isValidTimeout(_e){return typeof _e=="number"&&_e>=0&&_e!==1/0}function timeUntilStale(_e,et){return Math.max(_e+(et||0)-Date.now(),0)}function parseQueryArgs(_e,et,tt){return isQueryKey(_e)?typeof et=="function"?{...tt,queryKey:_e,queryFn:et}:{...et,queryKey:_e}:_e}function parseMutationArgs(_e,et,tt){return isQueryKey(_e)?typeof et=="function"?{...tt,mutationKey:_e,mutationFn:et}:{...et,mutationKey:_e}:typeof _e=="function"?{...et,mutationFn:_e}:{..._e}}function parseFilterArgs(_e,et,tt){return isQueryKey(_e)?[{...et,queryKey:_e},tt]:[_e||{},et]}function matchQuery(_e,et){const{type:tt="all",exact:rt,fetchStatus:nt,predicate:st,queryKey:ot,stale:at}=_e;if(isQueryKey(ot)){if(rt){if(et.queryHash!==hashQueryKeyByOptions(ot,et.options))return!1}else if(!partialMatchKey(et.queryKey,ot))return!1}if(tt!=="all"){const ut=et.isActive();if(tt==="active"&&!ut||tt==="inactive"&&ut)return!1}return!(typeof at=="boolean"&&et.isStale()!==at||typeof nt<"u"&&nt!==et.state.fetchStatus||st&&!st(et))}function matchMutation(_e,et){const{exact:tt,fetching:rt,predicate:nt,mutationKey:st}=_e;if(isQueryKey(st)){if(!et.options.mutationKey)return!1;if(tt){if(hashQueryKey(et.options.mutationKey)!==hashQueryKey(st))return!1}else if(!partialMatchKey(et.options.mutationKey,st))return!1}return!(typeof rt=="boolean"&&et.state.status==="loading"!==rt||nt&&!nt(et))}function hashQueryKeyByOptions(_e,et){return((et==null?void 0:et.queryKeyHashFn)||hashQueryKey)(_e)}function hashQueryKey(_e){return JSON.stringify(_e,(et,tt)=>isPlainObject$1(tt)?Object.keys(tt).sort().reduce((rt,nt)=>(rt[nt]=tt[nt],rt),{}):tt)}function partialMatchKey(_e,et){return partialDeepEqual(_e,et)}function partialDeepEqual(_e,et){return _e===et?!0:typeof _e!=typeof et?!1:_e&&et&&typeof _e=="object"&&typeof et=="object"?!Object.keys(et).some(tt=>!partialDeepEqual(_e[tt],et[tt])):!1}function replaceEqualDeep(_e,et){if(_e===et)return _e;const tt=isPlainArray(_e)&&isPlainArray(et);if(tt||isPlainObject$1(_e)&&isPlainObject$1(et)){const rt=tt?_e.length:Object.keys(_e).length,nt=tt?et:Object.keys(et),st=nt.length,ot=tt?[]:{};let at=0;for(let ut=0;ut<st;ut++){const lt=tt?ut:nt[ut];ot[lt]=replaceEqualDeep(_e[lt],et[lt]),ot[lt]===_e[lt]&&at++}return rt===st&&at===rt?_e:ot}return et}function shallowEqualObjects(_e,et){if(_e&&!et||et&&!_e)return!1;for(const tt in _e)if(_e[tt]!==et[tt])return!1;return!0}function isPlainArray(_e){return Array.isArray(_e)&&_e.length===Object.keys(_e).length}function isPlainObject$1(_e){if(!hasObjectPrototype(_e))return!1;const et=_e.constructor;if(typeof et>"u")return!0;const tt=et.prototype;return!(!hasObjectPrototype(tt)||!tt.hasOwnProperty("isPrototypeOf"))}function hasObjectPrototype(_e){return Object.prototype.toString.call(_e)==="[object Object]"}function isQueryKey(_e){return Array.isArray(_e)}function sleep(_e){return new Promise(et=>{setTimeout(et,_e)})}function scheduleMicrotask(_e){sleep(0).then(_e)}function getAbortController(){if(typeof AbortController=="function")return new AbortController}function replaceData(_e,et,tt){return tt.isDataEqual!=null&&tt.isDataEqual(_e,et)?_e:typeof tt.structuralSharing=="function"?tt.structuralSharing(_e,et):tt.structuralSharing!==!1?replaceEqualDeep(_e,et):et}class FocusManager extends Subscribable{constructor(){super(),this.setup=et=>{if(!isServer&&window.addEventListener){const tt=()=>et();return window.addEventListener("visibilitychange",tt,!1),window.addEventListener("focus",tt,!1),()=>{window.removeEventListener("visibilitychange",tt),window.removeEventListener("focus",tt)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var et;(et=this.cleanup)==null||et.call(this),this.cleanup=void 0}}setEventListener(et){var tt;this.setup=et,(tt=this.cleanup)==null||tt.call(this),this.cleanup=et(rt=>{typeof rt=="boolean"?this.setFocused(rt):this.onFocus()})}setFocused(et){this.focused=et,et&&this.onFocus()}onFocus(){this.listeners.forEach(({listener:et})=>{et()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const focusManager=new FocusManager,onlineEvents=["online","offline"];class OnlineManager extends Subscribable{constructor(){super(),this.setup=et=>{if(!isServer&&window.addEventListener){const tt=()=>et();return onlineEvents.forEach(rt=>{window.addEventListener(rt,tt,!1)}),()=>{onlineEvents.forEach(rt=>{window.removeEventListener(rt,tt)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var et;(et=this.cleanup)==null||et.call(this),this.cleanup=void 0}}setEventListener(et){var tt;this.setup=et,(tt=this.cleanup)==null||tt.call(this),this.cleanup=et(rt=>{typeof rt=="boolean"?this.setOnline(rt):this.onOnline()})}setOnline(et){this.online=et,et&&this.onOnline()}onOnline(){this.listeners.forEach(({listener:et})=>{et()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const onlineManager=new OnlineManager;function defaultRetryDelay(_e){return Math.min(1e3*2**_e,3e4)}function canFetch(_e){return(_e??"online")==="online"?onlineManager.isOnline():!0}class CancelledError{constructor(et){this.revert=et==null?void 0:et.revert,this.silent=et==null?void 0:et.silent}}function isCancelledError(_e){return _e instanceof CancelledError}function createRetryer(_e){let et=!1,tt=0,rt=!1,nt,st,ot;const at=new Promise((wt,gt)=>{st=wt,ot=gt}),ut=wt=>{rt||(ht(new CancelledError(wt)),_e.abort==null||_e.abort())},lt=()=>{et=!0},dt=()=>{et=!1},ct=()=>!focusManager.isFocused()||_e.networkMode!=="always"&&!onlineManager.isOnline(),ft=wt=>{rt||(rt=!0,_e.onSuccess==null||_e.onSuccess(wt),nt==null||nt(),st(wt))},ht=wt=>{rt||(rt=!0,_e.onError==null||_e.onError(wt),nt==null||nt(),ot(wt))},mt=()=>new Promise(wt=>{nt=gt=>{const yt=rt||!ct();return yt&&wt(gt),yt},_e.onPause==null||_e.onPause()}).then(()=>{nt=void 0,rt||_e.onContinue==null||_e.onContinue()}),vt=()=>{if(rt)return;let wt;try{wt=_e.fn()}catch(gt){wt=Promise.reject(gt)}Promise.resolve(wt).then(ft).catch(gt=>{var yt,xt;if(rt)return;const St=(yt=_e.retry)!=null?yt:3,bt=(xt=_e.retryDelay)!=null?xt:defaultRetryDelay,$t=typeof bt=="function"?bt(tt,gt):bt,At=St===!0||typeof St=="number"&&tt<St||typeof St=="function"&&St(tt,gt);if(et||!At){ht(gt);return}tt++,_e.onFail==null||_e.onFail(tt,gt),sleep($t).then(()=>{if(ct())return mt()}).then(()=>{et?ht(gt):vt()})})};return canFetch(_e.networkMode)?vt():mt().then(vt),{promise:at,cancel:ut,continue:()=>(nt==null?void 0:nt())?at:Promise.resolve(),cancelRetry:lt,continueRetry:dt}}const defaultLogger=console;function createNotifyManager(){let _e=[],et=0,tt=dt=>{dt()},rt=dt=>{dt()};const nt=dt=>{let ct;et++;try{ct=dt()}finally{et--,et||at()}return ct},st=dt=>{et?_e.push(dt):scheduleMicrotask(()=>{tt(dt)})},ot=dt=>(...ct)=>{st(()=>{dt(...ct)})},at=()=>{const dt=_e;_e=[],dt.length&&scheduleMicrotask(()=>{rt(()=>{dt.forEach(ct=>{tt(ct)})})})};return{batch:nt,batchCalls:ot,schedule:st,setNotifyFunction:dt=>{tt=dt},setBatchNotifyFunction:dt=>{rt=dt}}}const notifyManager=createNotifyManager();class Removable{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),isValidTimeout(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(et){this.cacheTime=Math.max(this.cacheTime||0,et??(isServer?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class Query extends Removable{constructor(et){super(),this.abortSignalConsumed=!1,this.defaultOptions=et.defaultOptions,this.setOptions(et.options),this.observers=[],this.cache=et.cache,this.logger=et.logger||defaultLogger,this.queryKey=et.queryKey,this.queryHash=et.queryHash,this.initialState=et.state||getDefaultState$1(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(et){this.options={...this.defaultOptions,...et},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(et,tt){const rt=replaceData(this.state.data,et,this.options);return this.dispatch({data:rt,type:"success",dataUpdatedAt:tt==null?void 0:tt.updatedAt,manual:tt==null?void 0:tt.manual}),rt}setState(et,tt){this.dispatch({type:"setState",state:et,setStateOptions:tt})}cancel(et){var tt;const rt=this.promise;return(tt=this.retryer)==null||tt.cancel(et),rt?rt.then(noop$3).catch(noop$3):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(et=>et.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(et=>et.getCurrentResult().isStale)}isStaleByTime(et=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!timeUntilStale(this.state.dataUpdatedAt,et)}onFocus(){var et;const tt=this.observers.find(rt=>rt.shouldFetchOnWindowFocus());tt&&tt.refetch({cancelRefetch:!1}),(et=this.retryer)==null||et.continue()}onOnline(){var et;const tt=this.observers.find(rt=>rt.shouldFetchOnReconnect());tt&&tt.refetch({cancelRefetch:!1}),(et=this.retryer)==null||et.continue()}addObserver(et){this.observers.includes(et)||(this.observers.push(et),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:et}))}removeObserver(et){this.observers.includes(et)&&(this.observers=this.observers.filter(tt=>tt!==et),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:et}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(et,tt){var rt,nt;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&tt!=null&&tt.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var st;return(st=this.retryer)==null||st.continueRetry(),this.promise}}if(et&&this.setOptions(et),!this.options.queryFn){const ht=this.observers.find(mt=>mt.options.queryFn);ht&&this.setOptions(ht.options)}Array.isArray(this.options.queryKey);const ot=getAbortController(),at={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},ut=ht=>{Object.defineProperty(ht,"signal",{enumerable:!0,get:()=>{if(ot)return this.abortSignalConsumed=!0,ot.signal}})};ut(at);const lt=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(at)):Promise.reject("Missing queryFn"),dt={fetchOptions:tt,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:lt};if(ut(dt),(rt=this.options.behavior)==null||rt.onFetch(dt),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((nt=dt.fetchOptions)==null?void 0:nt.meta)){var ct;this.dispatch({type:"fetch",meta:(ct=dt.fetchOptions)==null?void 0:ct.meta})}const ft=ht=>{if(isCancelledError(ht)&&ht.silent||this.dispatch({type:"error",error:ht}),!isCancelledError(ht)){var mt,vt,wt,gt;(mt=(vt=this.cache.config).onError)==null||mt.call(vt,ht,this),(wt=(gt=this.cache.config).onSettled)==null||wt.call(gt,this.state.data,ht,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=createRetryer({fn:dt.fetchFn,abort:ot==null?void 0:ot.abort.bind(ot),onSuccess:ht=>{var mt,vt,wt,gt;if(typeof ht>"u"){ft(new Error(this.queryHash+" data is undefined"));return}this.setData(ht),(mt=(vt=this.cache.config).onSuccess)==null||mt.call(vt,ht,this),(wt=(gt=this.cache.config).onSettled)==null||wt.call(gt,ht,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:ft,onFail:(ht,mt)=>{this.dispatch({type:"failed",failureCount:ht,error:mt})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:dt.options.retry,retryDelay:dt.options.retryDelay,networkMode:dt.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(et){const tt=rt=>{var nt,st;switch(et.type){case"failed":return{...rt,fetchFailureCount:et.failureCount,fetchFailureReason:et.error};case"pause":return{...rt,fetchStatus:"paused"};case"continue":return{...rt,fetchStatus:"fetching"};case"fetch":return{...rt,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(nt=et.meta)!=null?nt:null,fetchStatus:canFetch(this.options.networkMode)?"fetching":"paused",...!rt.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...rt,data:et.data,dataUpdateCount:rt.dataUpdateCount+1,dataUpdatedAt:(st=et.dataUpdatedAt)!=null?st:Date.now(),error:null,isInvalidated:!1,status:"success",...!et.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const ot=et.error;return isCancelledError(ot)&&ot.revert&&this.revertState?{...this.revertState}:{...rt,error:ot,errorUpdateCount:rt.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:rt.fetchFailureCount+1,fetchFailureReason:ot,fetchStatus:"idle",status:"error"};case"invalidate":return{...rt,isInvalidated:!0};case"setState":return{...rt,...et.state}}};this.state=tt(this.state),notifyManager.batch(()=>{this.observers.forEach(rt=>{rt.onQueryUpdate(et)}),this.cache.notify({query:this,type:"updated",action:et})})}}function getDefaultState$1(_e){const et=typeof _e.initialData=="function"?_e.initialData():_e.initialData,tt=typeof et<"u",rt=tt?typeof _e.initialDataUpdatedAt=="function"?_e.initialDataUpdatedAt():_e.initialDataUpdatedAt:0;return{data:et,dataUpdateCount:0,dataUpdatedAt:tt?rt??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:tt?"success":"loading",fetchStatus:"idle"}}class QueryCache extends Subscribable{constructor(et){super(),this.config=et||{},this.queries=[],this.queriesMap={}}build(et,tt,rt){var nt;const st=tt.queryKey,ot=(nt=tt.queryHash)!=null?nt:hashQueryKeyByOptions(st,tt);let at=this.get(ot);return at||(at=new Query({cache:this,logger:et.getLogger(),queryKey:st,queryHash:ot,options:et.defaultQueryOptions(tt),state:rt,defaultOptions:et.getQueryDefaults(st)}),this.add(at)),at}add(et){this.queriesMap[et.queryHash]||(this.queriesMap[et.queryHash]=et,this.queries.push(et),this.notify({type:"added",query:et}))}remove(et){const tt=this.queriesMap[et.queryHash];tt&&(et.destroy(),this.queries=this.queries.filter(rt=>rt!==et),tt===et&&delete this.queriesMap[et.queryHash],this.notify({type:"removed",query:et}))}clear(){notifyManager.batch(()=>{this.queries.forEach(et=>{this.remove(et)})})}get(et){return this.queriesMap[et]}getAll(){return this.queries}find(et,tt){const[rt]=parseFilterArgs(et,tt);return typeof rt.exact>"u"&&(rt.exact=!0),this.queries.find(nt=>matchQuery(rt,nt))}findAll(et,tt){const[rt]=parseFilterArgs(et,tt);return Object.keys(rt).length>0?this.queries.filter(nt=>matchQuery(rt,nt)):this.queries}notify(et){notifyManager.batch(()=>{this.listeners.forEach(({listener:tt})=>{tt(et)})})}onFocus(){notifyManager.batch(()=>{this.queries.forEach(et=>{et.onFocus()})})}onOnline(){notifyManager.batch(()=>{this.queries.forEach(et=>{et.onOnline()})})}}class Mutation extends Removable{constructor(et){super(),this.defaultOptions=et.defaultOptions,this.mutationId=et.mutationId,this.mutationCache=et.mutationCache,this.logger=et.logger||defaultLogger,this.observers=[],this.state=et.state||getDefaultState(),this.setOptions(et.options),this.scheduleGc()}setOptions(et){this.options={...this.defaultOptions,...et},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(et){this.dispatch({type:"setState",state:et})}addObserver(et){this.observers.includes(et)||(this.observers.push(et),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:et}))}removeObserver(et){this.observers=this.observers.filter(tt=>tt!==et),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:et})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var et,tt;return(et=(tt=this.retryer)==null?void 0:tt.continue())!=null?et:this.execute()}async execute(){const et=()=>{var At;return this.retryer=createRetryer({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(Tt,Ft)=>{this.dispatch({type:"failed",failureCount:Tt,error:Ft})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(At=this.options.retry)!=null?At:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},tt=this.state.status==="loading";try{var rt,nt,st,ot,at,ut,lt,dt;if(!tt){var ct,ft,ht,mt;this.dispatch({type:"loading",variables:this.options.variables}),await((ct=(ft=this.mutationCache.config).onMutate)==null?void 0:ct.call(ft,this.state.variables,this));const Tt=await((ht=(mt=this.options).onMutate)==null?void 0:ht.call(mt,this.state.variables));Tt!==this.state.context&&this.dispatch({type:"loading",context:Tt,variables:this.state.variables})}const At=await et();return await((rt=(nt=this.mutationCache.config).onSuccess)==null?void 0:rt.call(nt,At,this.state.variables,this.state.context,this)),await((st=(ot=this.options).onSuccess)==null?void 0:st.call(ot,At,this.state.variables,this.state.context)),await((at=(ut=this.mutationCache.config).onSettled)==null?void 0:at.call(ut,At,null,this.state.variables,this.state.context,this)),await((lt=(dt=this.options).onSettled)==null?void 0:lt.call(dt,At,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:At}),At}catch(At){try{var vt,wt,gt,yt,xt,St,bt,$t;throw await((vt=(wt=this.mutationCache.config).onError)==null?void 0:vt.call(wt,At,this.state.variables,this.state.context,this)),await((gt=(yt=this.options).onError)==null?void 0:gt.call(yt,At,this.state.variables,this.state.context)),await((xt=(St=this.mutationCache.config).onSettled)==null?void 0:xt.call(St,void 0,At,this.state.variables,this.state.context,this)),await((bt=($t=this.options).onSettled)==null?void 0:bt.call($t,void 0,At,this.state.variables,this.state.context)),At}finally{this.dispatch({type:"error",error:At})}}}dispatch(et){const tt=rt=>{switch(et.type){case"failed":return{...rt,failureCount:et.failureCount,failureReason:et.error};case"pause":return{...rt,isPaused:!0};case"continue":return{...rt,isPaused:!1};case"loading":return{...rt,context:et.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!canFetch(this.options.networkMode),status:"loading",variables:et.variables};case"success":return{...rt,data:et.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...rt,data:void 0,error:et.error,failureCount:rt.failureCount+1,failureReason:et.error,isPaused:!1,status:"error"};case"setState":return{...rt,...et.state}}};this.state=tt(this.state),notifyManager.batch(()=>{this.observers.forEach(rt=>{rt.onMutationUpdate(et)}),this.mutationCache.notify({mutation:this,type:"updated",action:et})})}}function getDefaultState(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class MutationCache extends Subscribable{constructor(et){super(),this.config=et||{},this.mutations=[],this.mutationId=0}build(et,tt,rt){const nt=new Mutation({mutationCache:this,logger:et.getLogger(),mutationId:++this.mutationId,options:et.defaultMutationOptions(tt),state:rt,defaultOptions:tt.mutationKey?et.getMutationDefaults(tt.mutationKey):void 0});return this.add(nt),nt}add(et){this.mutations.push(et),this.notify({type:"added",mutation:et})}remove(et){this.mutations=this.mutations.filter(tt=>tt!==et),this.notify({type:"removed",mutation:et})}clear(){notifyManager.batch(()=>{this.mutations.forEach(et=>{this.remove(et)})})}getAll(){return this.mutations}find(et){return typeof et.exact>"u"&&(et.exact=!0),this.mutations.find(tt=>matchMutation(et,tt))}findAll(et){return this.mutations.filter(tt=>matchMutation(et,tt))}notify(et){notifyManager.batch(()=>{this.listeners.forEach(({listener:tt})=>{tt(et)})})}resumePausedMutations(){var et;return this.resuming=((et=this.resuming)!=null?et:Promise.resolve()).then(()=>{const tt=this.mutations.filter(rt=>rt.state.isPaused);return notifyManager.batch(()=>tt.reduce((rt,nt)=>rt.then(()=>nt.continue().catch(noop$3)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function infiniteQueryBehavior(){return{onFetch:_e=>{_e.fetchFn=()=>{var et,tt,rt,nt,st,ot;const at=(et=_e.fetchOptions)==null||(tt=et.meta)==null?void 0:tt.refetchPage,ut=(rt=_e.fetchOptions)==null||(nt=rt.meta)==null?void 0:nt.fetchMore,lt=ut==null?void 0:ut.pageParam,dt=(ut==null?void 0:ut.direction)==="forward",ct=(ut==null?void 0:ut.direction)==="backward",ft=((st=_e.state.data)==null?void 0:st.pages)||[],ht=((ot=_e.state.data)==null?void 0:ot.pageParams)||[];let mt=ht,vt=!1;const wt=$t=>{Object.defineProperty($t,"signal",{enumerable:!0,get:()=>{var At;if((At=_e.signal)!=null&&At.aborted)vt=!0;else{var Tt;(Tt=_e.signal)==null||Tt.addEventListener("abort",()=>{vt=!0})}return _e.signal}})},gt=_e.options.queryFn||(()=>Promise.reject("Missing queryFn")),yt=($t,At,Tt,Ft)=>(mt=Ft?[At,...mt]:[...mt,At],Ft?[Tt,...$t]:[...$t,Tt]),xt=($t,At,Tt,Ft)=>{if(vt)return Promise.reject("Cancelled");if(typeof Tt>"u"&&!At&&$t.length)return Promise.resolve($t);const Pt={queryKey:_e.queryKey,pageParam:Tt,meta:_e.options.meta};wt(Pt);const Dt=gt(Pt);return Promise.resolve(Dt).then(It=>yt($t,Tt,It,Ft))};let St;if(!ft.length)St=xt([]);else if(dt){const $t=typeof lt<"u",At=$t?lt:getNextPageParam(_e.options,ft);St=xt(ft,$t,At)}else if(ct){const $t=typeof lt<"u",At=$t?lt:getPreviousPageParam(_e.options,ft);St=xt(ft,$t,At,!0)}else{mt=[];const $t=typeof _e.options.getNextPageParam>"u";St=(at&&ft[0]?at(ft[0],0,ft):!0)?xt([],$t,ht[0]):Promise.resolve(yt([],ht[0],ft[0]));for(let Tt=1;Tt<ft.length;Tt++)St=St.then(Ft=>{if(at&&ft[Tt]?at(ft[Tt],Tt,ft):!0){const Dt=$t?ht[Tt]:getNextPageParam(_e.options,Ft);return xt(Ft,$t,Dt)}return Promise.resolve(yt(Ft,ht[Tt],ft[Tt]))})}return St.then($t=>({pages:$t,pageParams:mt}))}}}}function getNextPageParam(_e,et){return _e.getNextPageParam==null?void 0:_e.getNextPageParam(et[et.length-1],et)}function getPreviousPageParam(_e,et){return _e.getPreviousPageParam==null?void 0:_e.getPreviousPageParam(et[0],et)}function hasNextPage(_e,et){if(_e.getNextPageParam&&Array.isArray(et)){const tt=getNextPageParam(_e,et);return typeof tt<"u"&&tt!==null&&tt!==!1}}function hasPreviousPage(_e,et){if(_e.getPreviousPageParam&&Array.isArray(et)){const tt=getPreviousPageParam(_e,et);return typeof tt<"u"&&tt!==null&&tt!==!1}}class QueryClient{constructor(et={}){this.queryCache=et.queryCache||new QueryCache,this.mutationCache=et.mutationCache||new MutationCache,this.logger=et.logger||defaultLogger,this.defaultOptions=et.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=focusManager.subscribe(()=>{focusManager.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=onlineManager.subscribe(()=>{onlineManager.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var et,tt;this.mountCount--,this.mountCount===0&&((et=this.unsubscribeFocus)==null||et.call(this),this.unsubscribeFocus=void 0,(tt=this.unsubscribeOnline)==null||tt.call(this),this.unsubscribeOnline=void 0)}isFetching(et,tt){const[rt]=parseFilterArgs(et,tt);return rt.fetchStatus="fetching",this.queryCache.findAll(rt).length}isMutating(et){return this.mutationCache.findAll({...et,fetching:!0}).length}getQueryData(et,tt){var rt;return(rt=this.queryCache.find(et,tt))==null?void 0:rt.state.data}ensureQueryData(et,tt,rt){const nt=parseQueryArgs(et,tt,rt),st=this.getQueryData(nt.queryKey);return st?Promise.resolve(st):this.fetchQuery(nt)}getQueriesData(et){return this.getQueryCache().findAll(et).map(({queryKey:tt,state:rt})=>{const nt=rt.data;return[tt,nt]})}setQueryData(et,tt,rt){const nt=this.queryCache.find(et),st=nt==null?void 0:nt.state.data,ot=functionalUpdate(tt,st);if(typeof ot>"u")return;const at=parseQueryArgs(et),ut=this.defaultQueryOptions(at);return this.queryCache.build(this,ut).setData(ot,{...rt,manual:!0})}setQueriesData(et,tt,rt){return notifyManager.batch(()=>this.getQueryCache().findAll(et).map(({queryKey:nt})=>[nt,this.setQueryData(nt,tt,rt)]))}getQueryState(et,tt){var rt;return(rt=this.queryCache.find(et,tt))==null?void 0:rt.state}removeQueries(et,tt){const[rt]=parseFilterArgs(et,tt),nt=this.queryCache;notifyManager.batch(()=>{nt.findAll(rt).forEach(st=>{nt.remove(st)})})}resetQueries(et,tt,rt){const[nt,st]=parseFilterArgs(et,tt,rt),ot=this.queryCache,at={type:"active",...nt};return notifyManager.batch(()=>(ot.findAll(nt).forEach(ut=>{ut.reset()}),this.refetchQueries(at,st)))}cancelQueries(et,tt,rt){const[nt,st={}]=parseFilterArgs(et,tt,rt);typeof st.revert>"u"&&(st.revert=!0);const ot=notifyManager.batch(()=>this.queryCache.findAll(nt).map(at=>at.cancel(st)));return Promise.all(ot).then(noop$3).catch(noop$3)}invalidateQueries(et,tt,rt){const[nt,st]=parseFilterArgs(et,tt,rt);return notifyManager.batch(()=>{var ot,at;if(this.queryCache.findAll(nt).forEach(lt=>{lt.invalidate()}),nt.refetchType==="none")return Promise.resolve();const ut={...nt,type:(ot=(at=nt.refetchType)!=null?at:nt.type)!=null?ot:"active"};return this.refetchQueries(ut,st)})}refetchQueries(et,tt,rt){const[nt,st]=parseFilterArgs(et,tt,rt),ot=notifyManager.batch(()=>this.queryCache.findAll(nt).filter(ut=>!ut.isDisabled()).map(ut=>{var lt;return ut.fetch(void 0,{...st,cancelRefetch:(lt=st==null?void 0:st.cancelRefetch)!=null?lt:!0,meta:{refetchPage:nt.refetchPage}})}));let at=Promise.all(ot).then(noop$3);return st!=null&&st.throwOnError||(at=at.catch(noop$3)),at}fetchQuery(et,tt,rt){const nt=parseQueryArgs(et,tt,rt),st=this.defaultQueryOptions(nt);typeof st.retry>"u"&&(st.retry=!1);const ot=this.queryCache.build(this,st);return ot.isStaleByTime(st.staleTime)?ot.fetch(st):Promise.resolve(ot.state.data)}prefetchQuery(et,tt,rt){return this.fetchQuery(et,tt,rt).then(noop$3).catch(noop$3)}fetchInfiniteQuery(et,tt,rt){const nt=parseQueryArgs(et,tt,rt);return nt.behavior=infiniteQueryBehavior(),this.fetchQuery(nt)}prefetchInfiniteQuery(et,tt,rt){return this.fetchInfiniteQuery(et,tt,rt).then(noop$3).catch(noop$3)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(et){this.defaultOptions=et}setQueryDefaults(et,tt){const rt=this.queryDefaults.find(nt=>hashQueryKey(et)===hashQueryKey(nt.queryKey));rt?rt.defaultOptions=tt:this.queryDefaults.push({queryKey:et,defaultOptions:tt})}getQueryDefaults(et){if(!et)return;const tt=this.queryDefaults.find(rt=>partialMatchKey(et,rt.queryKey));return tt==null?void 0:tt.defaultOptions}setMutationDefaults(et,tt){const rt=this.mutationDefaults.find(nt=>hashQueryKey(et)===hashQueryKey(nt.mutationKey));rt?rt.defaultOptions=tt:this.mutationDefaults.push({mutationKey:et,defaultOptions:tt})}getMutationDefaults(et){if(!et)return;const tt=this.mutationDefaults.find(rt=>partialMatchKey(et,rt.mutationKey));return tt==null?void 0:tt.defaultOptions}defaultQueryOptions(et){if(et!=null&&et._defaulted)return et;const tt={...this.defaultOptions.queries,...this.getQueryDefaults(et==null?void 0:et.queryKey),...et,_defaulted:!0};return!tt.queryHash&&tt.queryKey&&(tt.queryHash=hashQueryKeyByOptions(tt.queryKey,tt)),typeof tt.refetchOnReconnect>"u"&&(tt.refetchOnReconnect=tt.networkMode!=="always"),typeof tt.useErrorBoundary>"u"&&(tt.useErrorBoundary=!!tt.suspense),tt}defaultMutationOptions(et){return et!=null&&et._defaulted?et:{...this.defaultOptions.mutations,...this.getMutationDefaults(et==null?void 0:et.mutationKey),...et,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class QueryObserver extends Subscribable{constructor(et,tt){super(),this.client=et,this.options=tt,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(tt)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),shouldFetchOnMount(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return shouldFetchOn(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return shouldFetchOn(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(et,tt){const rt=this.options,nt=this.currentQuery;if(this.options=this.client.defaultQueryOptions(et),shallowEqualObjects(rt,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=rt.queryKey),this.updateQuery();const st=this.hasListeners();st&&shouldFetchOptionally(this.currentQuery,nt,this.options,rt)&&this.executeFetch(),this.updateResult(tt),st&&(this.currentQuery!==nt||this.options.enabled!==rt.enabled||this.options.staleTime!==rt.staleTime)&&this.updateStaleTimeout();const ot=this.computeRefetchInterval();st&&(this.currentQuery!==nt||this.options.enabled!==rt.enabled||ot!==this.currentRefetchInterval)&&this.updateRefetchInterval(ot)}getOptimisticResult(et){const tt=this.client.getQueryCache().build(this.client,et);return this.createResult(tt,et)}getCurrentResult(){return this.currentResult}trackResult(et){const tt={};return Object.keys(et).forEach(rt=>{Object.defineProperty(tt,rt,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(rt),et[rt])})}),tt}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:et,...tt}={}){return this.fetch({...tt,meta:{refetchPage:et}})}fetchOptimistic(et){const tt=this.client.defaultQueryOptions(et),rt=this.client.getQueryCache().build(this.client,tt);return rt.isFetchingOptimistic=!0,rt.fetch().then(()=>this.createResult(rt,tt))}fetch(et){var tt;return this.executeFetch({...et,cancelRefetch:(tt=et.cancelRefetch)!=null?tt:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(et){this.updateQuery();let tt=this.currentQuery.fetch(this.options,et);return et!=null&&et.throwOnError||(tt=tt.catch(noop$3)),tt}updateStaleTimeout(){if(this.clearStaleTimeout(),isServer||this.currentResult.isStale||!isValidTimeout(this.options.staleTime))return;const tt=timeUntilStale(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},tt)}computeRefetchInterval(){var et;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(et=this.options.refetchInterval)!=null?et:!1}updateRefetchInterval(et){this.clearRefetchInterval(),this.currentRefetchInterval=et,!(isServer||this.options.enabled===!1||!isValidTimeout(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||focusManager.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(et,tt){const rt=this.currentQuery,nt=this.options,st=this.currentResult,ot=this.currentResultState,at=this.currentResultOptions,ut=et!==rt,lt=ut?et.state:this.currentQueryInitialState,dt=ut?this.currentResult:this.previousQueryResult,{state:ct}=et;let{dataUpdatedAt:ft,error:ht,errorUpdatedAt:mt,fetchStatus:vt,status:wt}=ct,gt=!1,yt=!1,xt;if(tt._optimisticResults){const Tt=this.hasListeners(),Ft=!Tt&&shouldFetchOnMount(et,tt),Pt=Tt&&shouldFetchOptionally(et,rt,tt,nt);(Ft||Pt)&&(vt=canFetch(et.options.networkMode)?"fetching":"paused",ft||(wt="loading")),tt._optimisticResults==="isRestoring"&&(vt="idle")}if(tt.keepPreviousData&&!ct.dataUpdatedAt&&dt!=null&&dt.isSuccess&&wt!=="error")xt=dt.data,ft=dt.dataUpdatedAt,wt=dt.status,gt=!0;else if(tt.select&&typeof ct.data<"u")if(st&&ct.data===(ot==null?void 0:ot.data)&&tt.select===this.selectFn)xt=this.selectResult;else try{this.selectFn=tt.select,xt=tt.select(ct.data),xt=replaceData(st==null?void 0:st.data,xt,tt),this.selectResult=xt,this.selectError=null}catch(Tt){this.selectError=Tt}else xt=ct.data;if(typeof tt.placeholderData<"u"&&typeof xt>"u"&&wt==="loading"){let Tt;if(st!=null&&st.isPlaceholderData&&tt.placeholderData===(at==null?void 0:at.placeholderData))Tt=st.data;else if(Tt=typeof tt.placeholderData=="function"?tt.placeholderData():tt.placeholderData,tt.select&&typeof Tt<"u")try{Tt=tt.select(Tt),this.selectError=null}catch(Ft){this.selectError=Ft}typeof Tt<"u"&&(wt="success",xt=replaceData(st==null?void 0:st.data,Tt,tt),yt=!0)}this.selectError&&(ht=this.selectError,xt=this.selectResult,mt=Date.now(),wt="error");const St=vt==="fetching",bt=wt==="loading",$t=wt==="error";return{status:wt,fetchStatus:vt,isLoading:bt,isSuccess:wt==="success",isError:$t,isInitialLoading:bt&&St,data:xt,dataUpdatedAt:ft,error:ht,errorUpdatedAt:mt,failureCount:ct.fetchFailureCount,failureReason:ct.fetchFailureReason,errorUpdateCount:ct.errorUpdateCount,isFetched:ct.dataUpdateCount>0||ct.errorUpdateCount>0,isFetchedAfterMount:ct.dataUpdateCount>lt.dataUpdateCount||ct.errorUpdateCount>lt.errorUpdateCount,isFetching:St,isRefetching:St&&!bt,isLoadingError:$t&&ct.dataUpdatedAt===0,isPaused:vt==="paused",isPlaceholderData:yt,isPreviousData:gt,isRefetchError:$t&&ct.dataUpdatedAt!==0,isStale:isStale(et,tt),refetch:this.refetch,remove:this.remove}}updateResult(et){const tt=this.currentResult,rt=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,shallowEqualObjects(rt,tt))return;this.currentResult=rt;const nt={cache:!0},st=()=>{if(!tt)return!0;const{notifyOnChangeProps:ot}=this.options;if(ot==="all"||!ot&&!this.trackedProps.size)return!0;const at=new Set(ot??this.trackedProps);return this.options.useErrorBoundary&&at.add("error"),Object.keys(this.currentResult).some(ut=>{const lt=ut;return this.currentResult[lt]!==tt[lt]&&at.has(lt)})};(et==null?void 0:et.listeners)!==!1&&st()&&(nt.listeners=!0),this.notify({...nt,...et})}updateQuery(){const et=this.client.getQueryCache().build(this.client,this.options);if(et===this.currentQuery)return;const tt=this.currentQuery;this.currentQuery=et,this.currentQueryInitialState=et.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(tt==null||tt.removeObserver(this),et.addObserver(this))}onQueryUpdate(et){const tt={};et.type==="success"?tt.onSuccess=!et.manual:et.type==="error"&&!isCancelledError(et.error)&&(tt.onError=!0),this.updateResult(tt),this.hasListeners()&&this.updateTimers()}notify(et){notifyManager.batch(()=>{if(et.onSuccess){var tt,rt,nt,st;(tt=(rt=this.options).onSuccess)==null||tt.call(rt,this.currentResult.data),(nt=(st=this.options).onSettled)==null||nt.call(st,this.currentResult.data,null)}else if(et.onError){var ot,at,ut,lt;(ot=(at=this.options).onError)==null||ot.call(at,this.currentResult.error),(ut=(lt=this.options).onSettled)==null||ut.call(lt,void 0,this.currentResult.error)}et.listeners&&this.listeners.forEach(({listener:dt})=>{dt(this.currentResult)}),et.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function shouldLoadOnMount(_e,et){return et.enabled!==!1&&!_e.state.dataUpdatedAt&&!(_e.state.status==="error"&&et.retryOnMount===!1)}function shouldFetchOnMount(_e,et){return shouldLoadOnMount(_e,et)||_e.state.dataUpdatedAt>0&&shouldFetchOn(_e,et,et.refetchOnMount)}function shouldFetchOn(_e,et,tt){if(et.enabled!==!1){const rt=typeof tt=="function"?tt(_e):tt;return rt==="always"||rt!==!1&&isStale(_e,et)}return!1}function shouldFetchOptionally(_e,et,tt,rt){return tt.enabled!==!1&&(_e!==et||rt.enabled===!1)&&(!tt.suspense||_e.state.status!=="error")&&isStale(_e,tt)}function isStale(_e,et){return _e.isStaleByTime(et.staleTime)}class InfiniteQueryObserver extends QueryObserver{constructor(et,tt){super(et,tt)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(et,tt){super.setOptions({...et,behavior:infiniteQueryBehavior()},tt)}getOptimisticResult(et){return et.behavior=infiniteQueryBehavior(),super.getOptimisticResult(et)}fetchNextPage({pageParam:et,...tt}={}){return this.fetch({...tt,meta:{fetchMore:{direction:"forward",pageParam:et}}})}fetchPreviousPage({pageParam:et,...tt}={}){return this.fetch({...tt,meta:{fetchMore:{direction:"backward",pageParam:et}}})}createResult(et,tt){var rt,nt,st,ot,at,ut;const{state:lt}=et,dt=super.createResult(et,tt),{isFetching:ct,isRefetching:ft}=dt,ht=ct&&((rt=lt.fetchMeta)==null||(nt=rt.fetchMore)==null?void 0:nt.direction)==="forward",mt=ct&&((st=lt.fetchMeta)==null||(ot=st.fetchMore)==null?void 0:ot.direction)==="backward";return{...dt,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:hasNextPage(tt,(at=lt.data)==null?void 0:at.pages),hasPreviousPage:hasPreviousPage(tt,(ut=lt.data)==null?void 0:ut.pages),isFetchingNextPage:ht,isFetchingPreviousPage:mt,isRefetching:ft&&!ht&&!mt}}}let MutationObserver$1=class extends Subscribable{constructor(et,tt){super(),this.client=et,this.setOptions(tt),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(et){var tt;const rt=this.options;this.options=this.client.defaultMutationOptions(et),shallowEqualObjects(rt,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(tt=this.currentMutation)==null||tt.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var et;(et=this.currentMutation)==null||et.removeObserver(this)}}onMutationUpdate(et){this.updateResult();const tt={listeners:!0};et.type==="success"?tt.onSuccess=!0:et.type==="error"&&(tt.onError=!0),this.notify(tt)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(et,tt){return this.mutateOptions=tt,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof et<"u"?et:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const et=this.currentMutation?this.currentMutation.state:getDefaultState(),tt={...et,isLoading:et.status==="loading",isSuccess:et.status==="success",isError:et.status==="error",isIdle:et.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=tt}notify(et){notifyManager.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(et.onSuccess){var tt,rt,nt,st;(tt=(rt=this.mutateOptions).onSuccess)==null||tt.call(rt,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(nt=(st=this.mutateOptions).onSettled)==null||nt.call(st,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(et.onError){var ot,at,ut,lt;(ot=(at=this.mutateOptions).onError)==null||ot.call(at,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(ut=(lt=this.mutateOptions).onSettled)==null||ut.call(lt,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}et.listeners&&this.listeners.forEach(({listener:dt})=>{dt(this.currentResult)})})}};var reactDom={exports:{}},reactDom_production_min={},scheduler={exports:{}},scheduler_production_min={};/**
|
|
17
|
+
*/var s2=b,o2=Symbol.for("react.element"),a2=Symbol.for("react.fragment"),l2=Object.prototype.hasOwnProperty,u2=s2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c2={key:!0,ref:!0,__self:!0,__source:!0};function Im(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)l2.call(t,r)&&!c2.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:o2,type:e,key:s,ref:o,props:i,_owner:u2.current}}Ia.Fragment=a2;Ia.jsx=Im;Ia.jsxs=Im;Cm.exports=Ia;var f=Cm.exports;const d2={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 Ho{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||d2,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,i){return i&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Ho(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Ho(this.logger,t)}}var Ut=new Ho;class La{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),i=1;i<n;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(o=>{o(...r)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(o=>{o.apply(o,[t,...r])})}}function li(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function Ff(e){return e==null?"":""+e}function f2(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}function Vc(e,t,n){function r(o){return o&&o.indexOf("###")>-1?o.replace(/###/g,"."):o}function i(){return!e||typeof e=="string"}const s=typeof t!="string"?[].concat(t):t.split(".");for(;s.length>1;){if(i())return{};const o=r(s.shift());!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={}}return i()?{}:{obj:e,k:r(s.shift())}}function $f(e,t,n){const{obj:r,k:i}=Vc(e,t,Object);r[i]=n}function h2(e,t,n,r){const{obj:i,k:s}=Vc(e,t,Object);i[s]=i[s]||[],r&&(i[s]=i[s].concat(n)),r||i[s].push(n)}function qo(e,t){const{obj:n,k:r}=Vc(e,t);if(n)return n[r]}function p2(e,t,n){const r=qo(e,n);return r!==void 0?r:qo(t,n)}function Lm(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]):Lm(e[r],t[r],n):e[r]=t[r]);return e}function pr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var m2={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function g2(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>m2[t]):e}const v2=[" ",",","?","!",";"];function y2(e,t,n){t=t||"",n=n||"";const r=v2.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const i=new RegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let s=!i.test(e);if(!s){const o=e.indexOf(n);o>0&&!i.test(e.substring(0,o))&&(s=!0)}return s}function Qo(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 i=e;for(let s=0;s<r.length;++s){if(!i||typeof i[r[s]]=="string"&&s+1<r.length)return;if(i[r[s]]===void 0){let o=2,a=r.slice(s,s+o).join(n),l=i[a];for(;l===void 0&&r.length>s+o;)o++,a=r.slice(s,s+o).join(n),l=i[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(s+o).join(n);return u?Qo(l,u,n):void 0}i=i[r[s]]}return i}function Wo(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class zf extends La{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 i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,o=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let a=[t,n];r&&typeof r!="string"&&(a=a.concat(r)),r&&typeof r=="string"&&(a=a.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(a=t.split("."));const l=qo(this.data,a);return l||!o||typeof r!="string"?l:Qo(this.data&&this.data[t]&&this.data[t][n],r,s)}addResource(t,n,r,i){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let a=[t,n];r&&(a=a.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(a=t.split("."),i=n,n=a[1]),this.addNamespaces(n),$f(this.data,a,i),s.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in r)(typeof r[s]=="string"||Object.prototype.toString.apply(r[s])==="[object Array]")&&this.addResource(t,n,s,r[s],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,s){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},a=[t,n];t.indexOf(".")>-1&&(a=t.split("."),i=r,r=n,n=a[1]),this.addNamespaces(n);let l=qo(this.data,a)||{};i?Lm(l,r,s):l={...l,...r},$f(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(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var Mm={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(s=>{this.processors[s]&&(t=this.processors[s].process(t,n,r,i))}),t}};const Bf={};class Ko extends La{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),f2(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ut.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 i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!y2(t,r,i);if(o&&!a){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:s};const u=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(u[0])>-1)&&(s=u.shift()),t=u.join(i)}return typeof s=="string"&&(s=[s]),{key:t,namespaces:s}}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 i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,s=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 S=n.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${S}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l}:`${l}${S}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l}:o}const d=this.resolve(t,n);let h=d&&d.res;const m=d&&d.usedKey||o,p=d&&d.exactUsedKey||o,y=Object.prototype.toString.apply(h),x=["[object Number]","[object Function]","[object RegExp]"],g=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")&&x.indexOf(y)<0&&!(typeof g=="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 S=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,h,{...n,ns:a}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(d.res=S,d):S}if(s){const S=y==="[object Array]",C=S?[]:{},k=S?p:m;for(const O in h)if(Object.prototype.hasOwnProperty.call(h,O)){const R=`${k}${s}${O}`;C[O]=this.translate(R,{...n,joinArrays:!1,ns:a}),C[O]===R&&(C[O]=h[O])}h=C}}else if(v&&typeof g=="string"&&y==="[object Array]")h=h.join(g),h&&(h=this.extendTranslation(h,t,n,r));else{let S=!1,C=!1;const k=n.count!==void 0&&typeof n.count!="string",O=Ko.hasDefaultValue(n),R=k?this.pluralResolver.getSuffix(u,n.count,n):"",A=n.ordinal&&k?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",I=n[`defaultValue${R}`]||n[`defaultValue${A}`]||n.defaultValue;!this.isValidLookup(h)&&O&&(S=!0,h=I),this.isValidLookup(h)||(C=!0,h=o);const z=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:h,B=O&&I!==h&&this.options.updateMissing;if(C||S||B){if(this.logger.log(B?"updateKey":"missingKey",u,l,o,B?I:h),s){const F=this.resolve(o,{...n,keySeparator:!1});F&&F.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let E=[];const P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&P&&P[0])for(let F=0;F<P.length;F++)E.push(P[F]);else this.options.saveMissingTo==="all"?E=this.languageUtils.toResolveHierarchy(n.lng||this.language):E.push(n.lng||this.language);const L=(F,j,N)=>{const $=O&&N!==h?N:z;this.options.missingKeyHandler?this.options.missingKeyHandler(F,l,j,$,B,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(F,l,j,$,B,n),this.emit("missingKey",F,l,j,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?E.forEach(F=>{this.pluralResolver.getSuffixes(F,n).forEach(j=>{L([F],o+j,n[`defaultValue${j}`]||I)})}):L(E,o,I))}h=this.extendTranslation(h,t,n,d,r),C&&h===o&&this.options.appendNamespaceToMissingKey&&(h=`${l}:${o}`),(C||S)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,S?h:void 0):h=this.options.parseMissingKeyHandler(h))}return i?(d.res=h,d):h}extendTranslation(t,n,r,i,s){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},i.usedLng,i.usedNS,i.usedKey,{resolved:i});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"&&i&&i.res&&(r.lng=i.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var h=arguments.length,m=new Array(h),p=0;p<h;p++)m[p]=arguments[p];return s&&s[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=Mm.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:i,...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i,s,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;i=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(),p=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(x=>{this.isValidLookup(r)||(a=x,!Bf[`${y[0]}-${x}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(Bf[`${y[0]}-${x}`]=!0,this.logger.warn(`key "${i}" 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(g=>{if(this.isValidLookup(r))return;o=g;const v=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(v,c,g,x,n);else{let S;h&&(S=this.pluralResolver.getSuffix(g,n.count,n));const C=`${this.options.pluralSeparator}zero`,k=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(v.push(c+S),n.ordinal&&S.indexOf(k)===0&&v.push(c+S.replace(k,this.options.pluralSeparator)),m&&v.push(c+C)),p){const O=`${c}${this.options.contextSeparator}${n.context}`;v.push(O),h&&(v.push(O+S),n.ordinal&&S.indexOf(k)===0&&v.push(O+S.replace(k,this.options.pluralSeparator)),m&&v.push(O+C))}}let w;for(;w=v.pop();)this.isValidLookup(r)||(s=w,r=this.getResource(g,x,w,n))}))})}),{res:r,usedKey:i,exactUsedKey:s,usedLng:o,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}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 kl(e){return e.charAt(0).toUpperCase()+e.slice(1)}class Uf{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ut.create("languageUtils")}getScriptPartFromCode(t){if(t=Wo(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=Wo(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(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=kl(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]=kl(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=kl(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 i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(s=>{if(s===i)return s;if(!(s.indexOf("-")<0&&i.indexOf("-")<0)&&s.indexOf(i)===0)return s})}),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),i=[],s=o=>{o&&(this.isSupportedCode(o)?i.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"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):typeof t=="string"&&s(this.formatLanguageCode(t)),r.forEach(o=>{i.indexOf(o)<0&&s(this.formatLanguageCode(o))}),i}}let w2=[{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}],x2={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 S2=["v1","v2","v3"],b2=["v4"],Vf={zero:0,one:1,two:2,few:3,many:4,other:5};function E2(){const e={};return w2.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:x2[t.fc]}})}),e}class C2{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Ut.create("pluralResolver"),(!this.options.compatibilityJSON||b2.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=E2()}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(Wo(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(i=>`${n}${i}`)}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((i,s)=>Vf[i]-Vf[s]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,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 i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const s=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?s():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!S2.includes(this.options.compatibilityJSON)}}function Hf(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=p2(e,t,n);return!s&&i&&typeof n=="string"&&(s=Qo(e,n,r),s===void 0&&(s=Qo(t,n,r))),s}class k2{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ut.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:g2,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?pr(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?pr(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?pr(n.nestingPrefix):n.nestingPrefixEscaped||pr("$t("),this.nestingSuffix=n.nestingSuffix?pr(n.nestingSuffix):n.nestingSuffixEscaped||pr(")"),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,i){let s,o,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(p){return p.replace(/\$/g,"$$$$")}const c=p=>{if(p.indexOf(this.formatSeparator)<0){const v=Hf(n,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(v,void 0,r,{...i,...n,interpolationkey:p}):v}const y=p.split(this.formatSeparator),x=y.shift().trim(),g=y.join(this.formatSeparator).trim();return this.format(Hf(n,l,x,this.options.keySeparator,this.options.ignoreJSONStructure),g,r,{...i,...n,interpolationkey:x})};this.resetRegExp();const d=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,h=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>u(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?u(this.escape(p)):u(p)}].forEach(p=>{for(a=0;s=p.regex.exec(t);){const y=s[1].trim();if(o=c(y),o===void 0)if(typeof d=="function"){const g=d(t,s,i);o=typeof g=="string"?g:""}else if(i&&Object.prototype.hasOwnProperty.call(i,y))o="";else if(h){o=s[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),o="";else typeof o!="string"&&!this.useRawValueToEscape&&(o=Ff(o));const x=p.safeValue(o);if(t=t.replace(s[0],x),h?(p.regex.lastIndex+=o.length,p.regex.lastIndex-=s[0].length):p.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,s,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),p=h.match(/"/g);(m&&m.length%2===0&&!p||p.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(;i=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(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const c=i[1].split(this.formatSeparator).map(d=>d.trim());i[1]=c.shift(),l=c,u=!0}if(s=n(a.call(this,i[1].trim(),o),o),s&&i[0]===t&&typeof s!="string")return s;typeof s!="string"&&(s=Ff(s)),s||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),s=""),u&&(s=l.reduce((c,d)=>this.format(c,d,r.lng,{...r,interpolationkey:i[1].trim()}),s.trim())),t=t.replace(i[0],s),this.regexp.lastIndex=0}return t}}function O2(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.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 mr(e){const t={};return function(r,i,s){const o=i+JSON.stringify(s);let a=t[o];return a||(a=e(Wo(i),s),t[o]=a),a(r)}}class R2{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ut.create("formatter"),this.options=t,this.formats={number:mr((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return s=>i.format(s)}),currency:mr((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return s=>i.format(s)}),datetime:mr((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return s=>i.format(s)}),relativetime:mr((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return s=>i.format(s,r.range||"day")}),list:mr((n,r)=>{const i=new Intl.ListFormat(n,{...r});return s=>i.format(s)})},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()]=mr(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((a,l)=>{const{formatName:u,formatOptions:c}=O2(l);if(this.formats[u]){let d=a;try{const h=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},m=h.locale||h.lng||i.locale||i.lng||r;d=this.formats[u](a,m,{...c,...i,...h})}catch(h){this.logger.warn(h)}return d}else this.logger.warn(`there was no format function for ${u}`);return a},t)}}function P2(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class j2 extends La{constructor(t,n,r){let i=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=i,this.logger=Ut.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const s={},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),s[h]===void 0&&(s[h]=!0),l[d]===void 0&&(l[d]=!0)))}),c||(a[u]=!0)}),(Object.keys(s).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(s),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const i=t.split("|"),s=i[0],o=i[1];n&&this.emit("failedLoading",s,o,n),r&&this.store.addResourceBundle(s,o,r),this.state[t]=n?-1:2;const a={};this.queue.forEach(l=>{h2(l.loaded,[s],o),P2(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 i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=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:i,wait:s,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&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,i+1,s*2,o)},s);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]:{},i=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."),i&&i();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const s=this.queueLoad(t,n,r,i);if(!s.toLoad.length)return s.pending.length||i(),null;s.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("|"),i=r[0],s=r[1];this.read(i,s,"read",void 0,void 0,(o,a)=>{o&&this.logger.warn(`${n}loading namespace ${s} for language ${i} failed`,o),!o&&a&&this.logger.log(`${n}loaded namespace ${s} for language ${i}`,a),this.loaded(t,o,a)})}saveMissing(t,n,r,i,s){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:s},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(t,n,r,i,l):c=u(t,n,r,i),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,i,a,l)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}function qf(){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(i=>{n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:(e,t,n,r)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Qf(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 Xs(){}function N2(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class Zi extends La{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Qf(t),this.services={},this.logger=Ut,this.modules={external:[]},N2(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 i=qf();this.options={...i,...this.options,...Qf(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function s(c){return c?typeof c=="function"?new c:c:null}if(!this.options.isClone){this.modules.logger?Ut.init(s(this.modules.logger),this.options):Ut.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=R2);const d=new Uf(this.options);this.store=new zf(this.options.resources,this.options);const h=this.services;h.logger=Ut,h.resourceStore=this.store,h.languageUtils=d,h.pluralResolver=new C2(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(h.formatter=s(c),h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new k2(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new j2(s(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(m){for(var p=arguments.length,y=new Array(p>1?p-1:0),x=1;x<p;x++)y[x-1]=arguments[x];t.emit(m,...y)}),this.modules.languageDetector&&(h.languageDetector=s(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=s(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new Ko(this.services,this.options),this.translator.on("*",function(m){for(var p=arguments.length,y=new Array(p>1?p-1:0),x=1;x<p;x++)y[x-1]=arguments[x];t.emit(m,...y)}),this.modules.external.forEach(m=>{m.init&&m.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Xs),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=li(),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]:Xs;const i=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode")return r();const s=[],o=a=>{if(!a)return;this.services.languageUtils.toResolveHierarchy(a).forEach(u=>{s.indexOf(u)<0&&s.push(u)})};i?o(i):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(s,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(a)})}else r(null)}reloadResources(t,n,r){const i=li();return t||(t=this.languages),n||(n=this.options.ns),r||(r=Xs),this.services.backendConnector.reload(t,n,s=>{i.resolve(),r(s)}),i}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"&&Mm.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 i=li();this.emit("languageChanging",t);const s=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},o=(l,u)=>{u?(s(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,i.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||s(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),i}getFixedT(t,n,r){var i=this;const s=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=i.options.overloadTranslationOptionHandler([o,a].concat(c))}else l={...a};l.lng=l.lng||s.lng,l.lngs=l.lngs||s.lngs,l.ns=l.ns||s.ns,l.keyPrefix=l.keyPrefix||r||s.keyPrefix;const h=i.options.keySeparator||".";let m;return l.keyPrefix&&Array.isArray(o)?m=o.map(p=>`${l.keyPrefix}${h}${p}`):m=l.keyPrefix?`${l.keyPrefix}${h}${o}`:o,i.t(m,l)};return typeof t=="string"?s.lng=t:s.lngs=t,s.ns=n,s.keyPrefix=r,s}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],i=this.options?this.options.fallbackLng:!1,s=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)&&(!i||o(s,t)))}loadNamespaces(t,n){const r=li();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=li();typeof t=="string"&&(t=[t]);const i=this.options.preload||[],s=t.filter(o=>i.indexOf(o)<0);return s.length?(this.options.preload=i.concat(s),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 Uf(qf());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 Zi(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xs;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},s=new Zi(i);return(t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(a=>{s[a]=this[a]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r&&(s.store=new zf(this.store.data,i),s.services.resourceStore=s.store),s.translator=new Ko(s.services,i),s.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];s.emit(a,...u)}),s.init(i,n),s.translator.options=i,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const je=Zi.createInstance();je.createInstance=Zi.createInstance;je.createInstance;je.dir;je.init;je.loadResources;je.reloadResources;je.use;je.changeLanguage;je.getFixedT;const Zt=je.t;je.exists;je.setDefaultNamespace;je.hasLoadedNamespace;je.loadNamespaces;je.loadLanguages;function fu(e){"@babel/helpers - typeof";return fu=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},fu(e)}var Dm=[],T2=Dm.forEach,_2=Dm.slice;function hu(e){return T2.call(_2.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function Fm(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":fu(XMLHttpRequest))==="object"}function A2(e){return!!e&&typeof e.then=="function"}function I2(e){return A2(e)?e:Promise.resolve(e)}function L2(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 pu={exports:{}},Gs={exports:{}},Wf;function M2(){return Wf||(Wf=1,function(e,t){var n=typeof self<"u"?self:He,r=function(){function s(){this.fetch=!1,this.DOMException=n.DOMException}return s.prototype=n,new s}();(function(s){(function(o){var a={searchParams:"URLSearchParams"in s,iterable:"Symbol"in s&&"iterator"in Symbol,blob:"FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in s,arrayBuffer:"ArrayBuffer"in s};function l(E){return E&&DataView.prototype.isPrototypeOf(E)}if(a.arrayBuffer)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(E){return E&&u.indexOf(Object.prototype.toString.call(E))>-1};function d(E){if(typeof E!="string"&&(E=String(E)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(E))throw new TypeError("Invalid character in header field name");return E.toLowerCase()}function h(E){return typeof E!="string"&&(E=String(E)),E}function m(E){var P={next:function(){var L=E.shift();return{done:L===void 0,value:L}}};return a.iterable&&(P[Symbol.iterator]=function(){return P}),P}function p(E){this.map={},E instanceof p?E.forEach(function(P,L){this.append(L,P)},this):Array.isArray(E)?E.forEach(function(P){this.append(P[0],P[1])},this):E&&Object.getOwnPropertyNames(E).forEach(function(P){this.append(P,E[P])},this)}p.prototype.append=function(E,P){E=d(E),P=h(P);var L=this.map[E];this.map[E]=L?L+", "+P:P},p.prototype.delete=function(E){delete this.map[d(E)]},p.prototype.get=function(E){return E=d(E),this.has(E)?this.map[E]:null},p.prototype.has=function(E){return this.map.hasOwnProperty(d(E))},p.prototype.set=function(E,P){this.map[d(E)]=h(P)},p.prototype.forEach=function(E,P){for(var L in this.map)this.map.hasOwnProperty(L)&&E.call(P,this.map[L],L,this)},p.prototype.keys=function(){var E=[];return this.forEach(function(P,L){E.push(L)}),m(E)},p.prototype.values=function(){var E=[];return this.forEach(function(P){E.push(P)}),m(E)},p.prototype.entries=function(){var E=[];return this.forEach(function(P,L){E.push([L,P])}),m(E)},a.iterable&&(p.prototype[Symbol.iterator]=p.prototype.entries);function y(E){if(E.bodyUsed)return Promise.reject(new TypeError("Already read"));E.bodyUsed=!0}function x(E){return new Promise(function(P,L){E.onload=function(){P(E.result)},E.onerror=function(){L(E.error)}})}function g(E){var P=new FileReader,L=x(P);return P.readAsArrayBuffer(E),L}function v(E){var P=new FileReader,L=x(P);return P.readAsText(E),L}function w(E){for(var P=new Uint8Array(E),L=new Array(P.length),F=0;F<P.length;F++)L[F]=String.fromCharCode(P[F]);return L.join("")}function S(E){if(E.slice)return E.slice(0);var P=new Uint8Array(E.byteLength);return P.set(new Uint8Array(E)),P.buffer}function C(){return this.bodyUsed=!1,this._initBody=function(E){this._bodyInit=E,E?typeof E=="string"?this._bodyText=E:a.blob&&Blob.prototype.isPrototypeOf(E)?this._bodyBlob=E:a.formData&&FormData.prototype.isPrototypeOf(E)?this._bodyFormData=E:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(E)?this._bodyText=E.toString():a.arrayBuffer&&a.blob&&l(E)?(this._bodyArrayBuffer=S(E.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(E)||c(E))?this._bodyArrayBuffer=S(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):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(E)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var E=y(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(){return this._bodyArrayBuffer?y(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var E=y(this);if(E)return E;if(this._bodyBlob)return v(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(w(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(A)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function O(E){var P=E.toUpperCase();return k.indexOf(P)>-1?P:E}function R(E,P){P=P||{};var L=P.body;if(E instanceof R){if(E.bodyUsed)throw new TypeError("Already read");this.url=E.url,this.credentials=E.credentials,P.headers||(this.headers=new p(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=P.credentials||this.credentials||"same-origin",(P.headers||!this.headers)&&(this.headers=new p(P.headers)),this.method=O(P.method||this.method||"GET"),this.mode=P.mode||this.mode||null,this.signal=P.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&L)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(L)}R.prototype.clone=function(){return new R(this,{body:this._bodyInit})};function A(E){var P=new FormData;return E.trim().split("&").forEach(function(L){if(L){var F=L.split("="),j=F.shift().replace(/\+/g," "),N=F.join("=").replace(/\+/g," ");P.append(decodeURIComponent(j),decodeURIComponent(N))}}),P}function I(E){var P=new p,L=E.replace(/\r?\n[\t ]+/g," ");return L.split(/\r?\n/).forEach(function(F){var j=F.split(":"),N=j.shift().trim();if(N){var $=j.join(":").trim();P.append(N,$)}}),P}C.call(R.prototype);function M(E,P){P||(P={}),this.type="default",this.status=P.status===void 0?200:P.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in P?P.statusText:"OK",this.headers=new p(P.headers),this.url=P.url||"",this._initBody(E)}C.call(M.prototype),M.prototype.clone=function(){return new M(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},M.error=function(){var E=new M(null,{status:0,statusText:""});return E.type="error",E};var z=[301,302,303,307,308];M.redirect=function(E,P){if(z.indexOf(P)===-1)throw new RangeError("Invalid status code");return new M(null,{status:P,headers:{location:E}})},o.DOMException=s.DOMException;try{new o.DOMException}catch{o.DOMException=function(P,L){this.message=P,this.name=L;var F=Error(P);this.stack=F.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function B(E,P){return new Promise(function(L,F){var j=new R(E,P);if(j.signal&&j.signal.aborted)return F(new o.DOMException("Aborted","AbortError"));var N=new XMLHttpRequest;function $(){N.abort()}N.onload=function(){var W={status:N.status,statusText:N.statusText,headers:I(N.getAllResponseHeaders()||"")};W.url="responseURL"in N?N.responseURL:W.headers.get("X-Request-URL");var H="response"in N?N.response:N.responseText;L(new M(H,W))},N.onerror=function(){F(new TypeError("Network request failed"))},N.ontimeout=function(){F(new TypeError("Network request failed"))},N.onabort=function(){F(new o.DOMException("Aborted","AbortError"))},N.open(j.method,j.url,!0),j.credentials==="include"?N.withCredentials=!0:j.credentials==="omit"&&(N.withCredentials=!1),"responseType"in N&&a.blob&&(N.responseType="blob"),j.headers.forEach(function(W,H){N.setRequestHeader(H,W)}),j.signal&&(j.signal.addEventListener("abort",$),N.onreadystatechange=function(){N.readyState===4&&j.signal.removeEventListener("abort",$)}),N.send(typeof j._bodyInit>"u"?null:j._bodyInit)})}return B.polyfill=!0,s.fetch||(s.fetch=B,s.Headers=p,s.Request=R,s.Response=M),o.Headers=p,o.Request=R,o.Response=M,o.fetch=B,Object.defineProperty(o,"__esModule",{value:!0}),o})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}(Gs,Gs.exports)),Gs.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof He<"u"&&He.fetch?n=He.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof L2<"u"&&(typeof window>"u"||typeof window.document>"u")){var r=n||M2();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(pu,pu.exports);var $m=pu.exports;const zm=js($m),Kf=By({__proto__:null,default:zm},[$m]);function Zo(e){"@babel/helpers - typeof";return Zo=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},Zo(e)}var nn;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?nn=global.fetch:typeof window<"u"&&window.fetch?nn=window.fetch:nn=fetch);var Xi;Fm()&&(typeof global<"u"&&global.XMLHttpRequest?Xi=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Xi=window.XMLHttpRequest));var Xo;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?Xo=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Xo=window.ActiveXObject));!nn&&Kf&&!Xi&&!Xo&&(nn=zm||Kf);typeof nn!="function"&&(nn=void 0);var mu=function(t,n){if(n&&Zo(n)==="object"){var r="";for(var i in n)r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},Zf=function(t,n,r){nn(t,n).then(function(i){if(!i.ok)return r(i.statusText||"Error",{status:i.status});i.text().then(function(s){r(null,{status:i.status,data:s})}).catch(r)}).catch(r)},Xf=!1,D2=function(t,n,r,i){t.queryStringParams&&(n=mu(n,t.queryStringParams));var s=hu({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);r&&(s["Content-Type"]="application/json");var o=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,a=hu({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:s},Xf?{}:o);try{Zf(n,a,i)}catch(l){if(!o||Object.keys(o).length===0||!l.message||l.message.indexOf("not implemented")<0)return i(l);try{Object.keys(o).forEach(function(u){delete a[u]}),Zf(n,a,i),Xf=!0}catch(u){i(u)}}},F2=function(t,n,r,i){r&&Zo(r)==="object"&&(r=mu("",r).slice(1)),t.queryStringParams&&(n=mu(n,t.queryStringParams));try{var s;Xi?s=new Xi:s=new Xo("MSXML2.XMLHTTP.3.0"),s.open(r?"POST":"GET",n,1),t.crossDomain||s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.withCredentials=!!t.withCredentials,r&&s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.overrideMimeType&&s.overrideMimeType("application/json");var o=t.customHeaders;if(o=typeof o=="function"?o():o,o)for(var a in o)s.setRequestHeader(a,o[a]);s.onreadystatechange=function(){s.readyState>3&&i(s.status>=400?s.statusText:null,{status:s.status,data:s.responseText})},s.send(r)}catch(l){console&&console.log(l)}},$2=function(t,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},nn&&n.indexOf("file:")!==0)return D2(t,n,r,i);if(Fm()||typeof ActiveXObject=="function")return F2(t,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function Gi(e){"@babel/helpers - typeof";return Gi=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},Gi(e)}function z2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gf(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,Bm(r.key),r)}}function B2(e,t,n){return t&&Gf(e.prototype,t),n&&Gf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function U2(e,t,n){return t=Bm(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bm(e){var t=V2(e,"string");return Gi(t)==="symbol"?t:String(t)}function V2(e,t){if(Gi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Gi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var H2=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,i){return U2({},r,i||"")},parseLoadPayload:function(n,r){},request:$2,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},Um=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]:{};z2(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return B2(e,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=hu(i,this.options||{},H2()),this.allOptions=s,this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(n,r,i){this._readAny(n,n,r,r,i)}},{key:"read",value:function(n,r,i){this._readAny([n],n,[r],r,i)}},{key:"_readAny",value:function(n,r,i,s,o){var a=this,l=this.options.loadPath;typeof this.options.loadPath=="function"&&(l=this.options.loadPath(n,i)),l=I2(l),l.then(function(u){if(!u)return o(null,{});var c=a.services.interpolator.interpolate(u,{lng:n.join("+"),ns:i.join("+")});a.loadUrl(c,o,r,s)})}},{key:"loadUrl",value:function(n,r,i,s){var o=this,a=typeof i=="string"?[i]:i,l=typeof s=="string"?[s]:s,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,i,s):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,i,s,o){var a=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var l=this.options.parsePayload(r,i,s),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 p=a.services.interpolator.interpolate(m,{lng:h,ns:r});a.options.request(a.options,p,l,function(y,x){u+=1,c.push(y),d.push(x),u===n.length&&typeof o=="function"&&o(c,d)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,s=r.languageUtils,o=r.logger,a=i.language;if(!(a&&a.toLowerCase()==="cimode")){var l=[],u=function(d){var h=s.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){i.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),i.loaded("".concat(c,"|").concat(d),h,m)})})})}}}]),e}();Um.type="backend";function q2(){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 Yf={};function gu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&Yf[t[0]]||(typeof t[0]=="string"&&(Yf[t[0]]=new Date),q2(...t))}const Vm=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function Jf(e,t,n){e.loadNamespaces(t,Vm(e,n))}function eh(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,Vm(e,r))}function Q2(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],i=t.options?t.options.fallbackLng:!1,s=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)&&(!i||o(s,e)))}function W2(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(gu("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(i,s)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!s(i.isLanguageChangingTo,e))return!1}}):Q2(e,t,n)}const K2=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Z2={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},X2=e=>Z2[e],G2=e=>e.replace(K2,X2);let vu={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:G2};function Y2(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};vu={...vu,...e}}function J2(){return vu}let Hm;function ew(e){Hm=e}function tw(){return Hm}const nw={type:"3rdParty",init(e){Y2(e.options.react),ew(e)}},rw=b.createContext();class iw{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const sw=(e,t)=>{const n=b.useRef();return b.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function xe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:i}=b.useContext(rw)||{},s=n||r||tw();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new iw),!s){gu("You will need to pass in an i18next instance by using initReactI18next");const w=(C,k)=>typeof k=="string"?k:k&&typeof k=="object"&&typeof k.defaultValue=="string"?k.defaultValue:Array.isArray(C)?C[C.length-1]:C,S=[w,{},!1];return S.t=w,S.i18n={},S.ready=!1,S}s.options.react&&s.options.react.wait!==void 0&&gu("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...J2(),...s.options.react,...t},{useSuspense:a,keyPrefix:l}=o;let u=e||i||s.options&&s.options.defaultNS;u=typeof u=="string"?[u]:u||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(u);const c=(s.isInitialized||s.initializedStoreOnce)&&u.every(w=>W2(w,s,o));function d(){return s.getFixedT(t.lng||null,o.nsMode==="fallback"?u:u[0],l)}const[h,m]=b.useState(d);let p=u.join();t.lng&&(p=`${t.lng}${p}`);const y=sw(p),x=b.useRef(!0);b.useEffect(()=>{const{bindI18n:w,bindI18nStore:S}=o;x.current=!0,!c&&!a&&(t.lng?eh(s,t.lng,u,()=>{x.current&&m(d)}):Jf(s,u,()=>{x.current&&m(d)})),c&&y&&y!==p&&x.current&&m(d);function C(){x.current&&m(d)}return w&&s&&s.on(w,C),S&&s&&s.store.on(S,C),()=>{x.current=!1,w&&s&&w.split(" ").forEach(k=>s.off(k,C)),S&&s&&S.split(" ").forEach(k=>s.store.off(k,C))}},[s,p]);const g=b.useRef(!0);b.useEffect(()=>{x.current&&!g.current&&m(d),g.current=!1},[s,l]);const v=[h,s,c];if(v.t=h,v.i18n=s,v.ready=c,c||!c&&!a)return v;throw new Promise(w=>{t.lng?eh(s,t.lng,u,()=>w()):Jf(s,u,()=>w())})}je.use(Um).use(nw).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 ei{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 Yi=typeof window>"u"||"Deno"in window;function ut(){}function ow(e,t){return typeof e=="function"?e(t):e}function yu(e){return typeof e=="number"&&e>=0&&e!==1/0}function qm(e,t){return Math.max(e+(t||0)-Date.now(),0)}function yr(e,t,n){return Ts(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function aw(e,t,n){return Ts(e)?typeof t=="function"?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function mn(e,t,n){return Ts(e)?[{...t,queryKey:e},n]:[e||{},t]}function th(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:a}=e;if(Ts(o)){if(r){if(t.queryHash!==Hc(o,t.options))return!1}else if(!Go(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 i<"u"&&i!==t.state.fetchStatus||s&&!s(t))}function nh(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:s}=e;if(Ts(s)){if(!t.options.mutationKey)return!1;if(n){if(Zn(t.options.mutationKey)!==Zn(s))return!1}else if(!Go(t.options.mutationKey,s))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||i&&!i(t))}function Hc(e,t){return((t==null?void 0:t.queryKeyHashFn)||Zn)(e)}function Zn(e){return JSON.stringify(e,(t,n)=>wu(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Go(e,t){return Qm(e,t)}function Qm(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Qm(e[n],t[n])):!1}function Wm(e,t){if(e===t)return e;const n=rh(e)&&rh(t);if(n||wu(e)&&wu(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),s=i.length,o=n?[]:{};let a=0;for(let l=0;l<s;l++){const u=n?l:i[l];o[u]=Wm(e[u],t[u]),o[u]===e[u]&&a++}return r===s&&a===r?e:o}return t}function Yo(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function rh(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function wu(e){if(!ih(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!ih(n)||!n.hasOwnProperty("isPrototypeOf"))}function ih(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ts(e){return Array.isArray(e)}function Km(e){return new Promise(t=>{setTimeout(t,e)})}function sh(e){Km(0).then(e)}function lw(){if(typeof AbortController=="function")return new AbortController}function xu(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Wm(e,t):t}class uw extends ei{constructor(){super(),this.setup=t=>{if(!Yi&&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 Jo=new uw,oh=["online","offline"];class cw extends ei{constructor(){super(),this.setup=t=>{if(!Yi&&window.addEventListener){const n=()=>t();return oh.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{oh.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 ea=new cw;function dw(e){return Math.min(1e3*2**e,3e4)}function Ma(e){return(e??"online")==="online"?ea.isOnline():!0}class Zm{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function Oo(e){return e instanceof Zm}function Xm(e){let t=!1,n=0,r=!1,i,s,o;const a=new Promise((x,g)=>{s=x,o=g}),l=x=>{r||(m(new Zm(x)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},d=()=>!Jo.isFocused()||e.networkMode!=="always"&&!ea.isOnline(),h=x=>{r||(r=!0,e.onSuccess==null||e.onSuccess(x),i==null||i(),s(x))},m=x=>{r||(r=!0,e.onError==null||e.onError(x),i==null||i(),o(x))},p=()=>new Promise(x=>{i=g=>{const v=r||!d();return v&&x(g),v},e.onPause==null||e.onPause()}).then(()=>{i=void 0,r||e.onContinue==null||e.onContinue()}),y=()=>{if(r)return;let x;try{x=e.fn()}catch(g){x=Promise.reject(g)}Promise.resolve(x).then(h).catch(g=>{var v,w;if(r)return;const S=(v=e.retry)!=null?v:3,C=(w=e.retryDelay)!=null?w:dw,k=typeof C=="function"?C(n,g):C,O=S===!0||typeof S=="number"&&n<S||typeof S=="function"&&S(n,g);if(t||!O){m(g);return}n++,e.onFail==null||e.onFail(n,g),Km(k).then(()=>{if(d())return p()}).then(()=>{t?m(g):y()})})};return Ma(e.networkMode)?y():p().then(y),{promise:a,cancel:l,continue:()=>(i==null?void 0:i())?a:Promise.resolve(),cancelRetry:u,continueRetry:c}}const qc=console;function fw(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const i=c=>{let d;t++;try{d=c()}finally{t--,t||a()}return d},s=c=>{t?e.push(c):sh(()=>{n(c)})},o=c=>(...d)=>{s(()=>{c(...d)})},a=()=>{const c=e;e=[],c.length&&sh(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:i,batchCalls:o,schedule:s,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}const ue=fw();class Gm{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),yu(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(Yi?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class hw extends Gm{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||qc,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||pw(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=xu(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(ut).catch(ut):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||!qm(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,i;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var s;return(s=this.retryer)==null||s.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const m=this.observers.find(p=>p.options.queryFn);m&&this.setOptions(m.options)}Array.isArray(this.options.queryKey);const o=lw(),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!==((i=c.fetchOptions)==null?void 0:i.meta)){var d;this.dispatch({type:"fetch",meta:(d=c.fetchOptions)==null?void 0:d.meta})}const h=m=>{if(Oo(m)&&m.silent||this.dispatch({type:"error",error:m}),!Oo(m)){var p,y,x,g;(p=(y=this.cache.config).onError)==null||p.call(y,m,this),(x=(g=this.cache.config).onSettled)==null||x.call(g,this.state.data,m,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=Xm({fn:c.fetchFn,abort:o==null?void 0:o.abort.bind(o),onSuccess:m=>{var p,y,x,g;if(typeof m>"u"){h(new Error(this.queryHash+" data is undefined"));return}this.setData(m),(p=(y=this.cache.config).onSuccess)==null||p.call(y,m,this),(x=(g=this.cache.config).onSettled)==null||x.call(g,m,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:h,onFail:(m,p)=>{this.dispatch({type:"failed",failureCount:m,error:p})},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 i,s;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:(i=t.meta)!=null?i:null,fetchStatus:Ma(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(s=t.dataUpdatedAt)!=null?s:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return Oo(o)&&o.revert&&this.revertState?{...this.revertState}:{...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),ue.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function pw(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 Ym extends ei{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var i;const s=n.queryKey,o=(i=n.queryHash)!=null?i:Hc(s,n);let a=this.get(o);return a||(a=new hw({cache:this,logger:t.getLogger(),queryKey:s,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),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(){ue.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=mn(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(i=>th(r,i))}findAll(t,n){const[r]=mn(t,n);return Object.keys(r).length>0?this.queries.filter(i=>th(r,i)):this.queries}notify(t){ue.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){ue.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){ue.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class mw extends Gm{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||qc,this.observers=[],this.state=t.state||Jm(),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 O;return this.retryer=Xm({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(R,A)=>{this.dispatch({type:"failed",failureCount:R,error:A})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(O=this.options.retry)!=null?O:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,i,s,o,a,l,u,c;if(!n){var d,h,m,p;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 R=await((m=(p=this.options).onMutate)==null?void 0:m.call(p,this.state.variables));R!==this.state.context&&this.dispatch({type:"loading",context:R,variables:this.state.variables})}const O=await t();return await((r=(i=this.mutationCache.config).onSuccess)==null?void 0:r.call(i,O,this.state.variables,this.state.context,this)),await((s=(o=this.options).onSuccess)==null?void 0:s.call(o,O,this.state.variables,this.state.context)),await((a=(l=this.mutationCache.config).onSettled)==null?void 0:a.call(l,O,null,this.state.variables,this.state.context,this)),await((u=(c=this.options).onSettled)==null?void 0:u.call(c,O,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:O}),O}catch(O){try{var y,x,g,v,w,S,C,k;throw await((y=(x=this.mutationCache.config).onError)==null?void 0:y.call(x,O,this.state.variables,this.state.context,this)),await((g=(v=this.options).onError)==null?void 0:g.call(v,O,this.state.variables,this.state.context)),await((w=(S=this.mutationCache.config).onSettled)==null?void 0:w.call(S,void 0,O,this.state.variables,this.state.context,this)),await((C=(k=this.options).onSettled)==null?void 0:C.call(k,void 0,O,this.state.variables,this.state.context)),O}finally{this.dispatch({type:"error",error:O})}}}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:!Ma(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),ue.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function Jm(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class gw extends ei{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const i=new mw({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(i),i}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(){ue.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=>nh(t,n))}findAll(t){return this.mutations.filter(n=>nh(t,n))}notify(t){ue.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 ue.batch(()=>n.reduce((r,i)=>r.then(()=>i.continue().catch(ut)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function Su(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,s,o;const a=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,l=(r=e.fetchOptions)==null||(i=r.meta)==null?void 0:i.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=((s=e.state.data)==null?void 0:s.pages)||[],m=((o=e.state.data)==null?void 0:o.pageParams)||[];let p=m,y=!1;const x=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>{var O;if((O=e.signal)!=null&&O.aborted)y=!0;else{var R;(R=e.signal)==null||R.addEventListener("abort",()=>{y=!0})}return e.signal}})},g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),v=(k,O,R,A)=>(p=A?[O,...p]:[...p,O],A?[R,...k]:[...k,R]),w=(k,O,R,A)=>{if(y)return Promise.reject("Cancelled");if(typeof R>"u"&&!O&&k.length)return Promise.resolve(k);const I={queryKey:e.queryKey,pageParam:R,meta:e.options.meta};x(I);const M=g(I);return Promise.resolve(M).then(B=>v(k,R,B,A))};let S;if(!h.length)S=w([]);else if(c){const k=typeof u<"u",O=k?u:bu(e.options,h);S=w(h,k,O)}else if(d){const k=typeof u<"u",O=k?u:e1(e.options,h);S=w(h,k,O,!0)}else{p=[];const k=typeof e.options.getNextPageParam>"u";S=(a&&h[0]?a(h[0],0,h):!0)?w([],k,m[0]):Promise.resolve(v([],m[0],h[0]));for(let R=1;R<h.length;R++)S=S.then(A=>{if(a&&h[R]?a(h[R],R,h):!0){const M=k?m[R]:bu(e.options,A);return w(A,k,M)}return Promise.resolve(v(A,m[R],h[R]))})}return S.then(k=>({pages:k,pageParams:p}))}}}}function bu(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function e1(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}function vw(e,t){if(e.getNextPageParam&&Array.isArray(t)){const n=bu(e,t);return typeof n<"u"&&n!==null&&n!==!1}}function yw(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const n=e1(e,t);return typeof n<"u"&&n!==null&&n!==!1}}class ww{constructor(t={}){this.queryCache=t.queryCache||new Ym,this.mutationCache=t.mutationCache||new gw,this.logger=t.logger||qc,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=Jo.subscribe(()=>{Jo.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=ea.subscribe(()=>{ea.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]=mn(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 i=yr(t,n,r),s=this.getQueryData(i.queryKey);return s?Promise.resolve(s):this.fetchQuery(i)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(t,n,r){const i=this.queryCache.find(t),s=i==null?void 0:i.state.data,o=ow(n,s);if(typeof o>"u")return;const a=yr(t),l=this.defaultQueryOptions(a);return this.queryCache.build(this,l).setData(o,{...r,manual:!0})}setQueriesData(t,n,r){return ue.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=mn(t,n),i=this.queryCache;ue.batch(()=>{i.findAll(r).forEach(s=>{i.remove(s)})})}resetQueries(t,n,r){const[i,s]=mn(t,n,r),o=this.queryCache,a={type:"active",...i};return ue.batch(()=>(o.findAll(i).forEach(l=>{l.reset()}),this.refetchQueries(a,s)))}cancelQueries(t,n,r){const[i,s={}]=mn(t,n,r);typeof s.revert>"u"&&(s.revert=!0);const o=ue.batch(()=>this.queryCache.findAll(i).map(a=>a.cancel(s)));return Promise.all(o).then(ut).catch(ut)}invalidateQueries(t,n,r){const[i,s]=mn(t,n,r);return ue.batch(()=>{var o,a;if(this.queryCache.findAll(i).forEach(u=>{u.invalidate()}),i.refetchType==="none")return Promise.resolve();const l={...i,type:(o=(a=i.refetchType)!=null?a:i.type)!=null?o:"active"};return this.refetchQueries(l,s)})}refetchQueries(t,n,r){const[i,s]=mn(t,n,r),o=ue.batch(()=>this.queryCache.findAll(i).filter(l=>!l.isDisabled()).map(l=>{var u;return l.fetch(void 0,{...s,cancelRefetch:(u=s==null?void 0:s.cancelRefetch)!=null?u:!0,meta:{refetchPage:i.refetchPage}})}));let a=Promise.all(o).then(ut);return s!=null&&s.throwOnError||(a=a.catch(ut)),a}fetchQuery(t,n,r){const i=yr(t,n,r),s=this.defaultQueryOptions(i);typeof s.retry>"u"&&(s.retry=!1);const o=this.queryCache.build(this,s);return o.isStaleByTime(s.staleTime)?o.fetch(s):Promise.resolve(o.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(ut).catch(ut)}fetchInfiniteQuery(t,n,r){const i=yr(t,n,r);return i.behavior=Su(),this.fetchQuery(i)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(ut).catch(ut)}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(i=>Zn(t)===Zn(i.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>Go(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(i=>Zn(t)===Zn(i.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>Go(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=Hc(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 t1 extends ei{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),ah(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Eu(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Eu(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,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),Yo(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 s=this.hasListeners();s&&lh(this.currentQuery,i,this.options,r)&&this.executeFetch(),this.updateResult(n),s&&(this.currentQuery!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const o=this.computeRefetchInterval();s&&(this.currentQuery!==i||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 Sw(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(ut)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),Yi||this.currentResult.isStale||!yu(this.options.staleTime))return;const n=qm(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,!(Yi||this.options.enabled===!1||!yu(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Jo.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,i=this.options,s=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:p,fetchStatus:y,status:x}=d,g=!1,v=!1,w;if(n._optimisticResults){const R=this.hasListeners(),A=!R&&ah(t,n),I=R&&lh(t,r,n,i);(A||I)&&(y=Ma(t.options.networkMode)?"fetching":"paused",h||(x="loading")),n._optimisticResults==="isRestoring"&&(y="idle")}if(n.keepPreviousData&&!d.dataUpdatedAt&&c!=null&&c.isSuccess&&x!=="error")w=c.data,h=c.dataUpdatedAt,x=c.status,g=!0;else if(n.select&&typeof d.data<"u")if(s&&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=xu(s==null?void 0:s.data,w,n),this.selectResult=w,this.selectError=null}catch(R){this.selectError=R}else w=d.data;if(typeof n.placeholderData<"u"&&typeof w>"u"&&x==="loading"){let R;if(s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))R=s.data;else if(R=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof R<"u")try{R=n.select(R),this.selectError=null}catch(A){this.selectError=A}typeof R<"u"&&(x="success",w=xu(s==null?void 0:s.data,R,n),v=!0)}this.selectError&&(m=this.selectError,w=this.selectResult,p=Date.now(),x="error");const S=y==="fetching",C=x==="loading",k=x==="error";return{status:x,fetchStatus:y,isLoading:C,isSuccess:x==="success",isError:k,isInitialLoading:C&&S,data:w,dataUpdatedAt:h,error:m,errorUpdatedAt:p,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:S,isRefetching:S&&!C,isLoadingError:k&&d.dataUpdatedAt===0,isPaused:y==="paused",isPlaceholderData:v,isPreviousData:g,isRefetchError:k&&d.dataUpdatedAt!==0,isStale:Qc(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,Yo(r,n))return;this.currentResult=r;const i={cache:!0},s=()=>{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&&s()&&(i.listeners=!0),this.notify({...i,...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"&&!Oo(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){ue.batch(()=>{if(t.onSuccess){var n,r,i,s;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(i=(s=this.options).onSettled)==null||i.call(s,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 xw(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function ah(e,t){return xw(e,t)||e.state.dataUpdatedAt>0&&Eu(e,t,t.refetchOnMount)}function Eu(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Qc(e,t)}return!1}function lh(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&Qc(e,n)}function Qc(e,t){return e.isStaleByTime(t.staleTime)}function Sw(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!Yo(e.getCurrentResult(),t)}class bw extends t1{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:Su()},n)}getOptimisticResult(t){return t.behavior=Su(),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,i,s,o,a,l;const{state:u}=t,c=super.createResult(t,n),{isFetching:d,isRefetching:h}=c,m=d&&((r=u.fetchMeta)==null||(i=r.fetchMore)==null?void 0:i.direction)==="forward",p=d&&((s=u.fetchMeta)==null||(o=s.fetchMore)==null?void 0:o.direction)==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:vw(n,(a=u.data)==null?void 0:a.pages),hasPreviousPage:yw(n,(l=u.data)==null?void 0:l.pages),isFetchingNextPage:m,isFetchingPreviousPage:p,isRefetching:h&&!m&&!p}}}let Ew=class extends ei{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),Yo(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:Jm(),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){ue.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(t.onSuccess){var n,r,i,s;(n=(r=this.mutateOptions).onSuccess)==null||n.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(i=(s=this.mutateOptions).onSettled)==null||i.call(s,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 n1={exports:{}},ot={},r1={exports:{}},i1={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* scheduler.production.min.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@ var Zt=Object.defineProperty;var Jt=(_e,et,tt)=>et in _e?Zt(_e,et,{enumerable:!0
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/(function(
|
|
25
|
+
*/(function(e){function t(j,N){var $=j.length;j.push(N);e:for(;0<$;){var W=$-1>>>1,H=j[W];if(0<i(H,N))j[W]=N,j[$]=H,$=W;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var N=j[0],$=j.pop();if($!==N){j[0]=$;e:for(var W=0,H=j.length,Ye=H>>>1;W<Ye;){var he=2*(W+1)-1,J=j[he],K=he+1,ie=j[K];if(0>i(J,$))K<H&&0>i(ie,J)?(j[W]=ie,j[K]=$,W=K):(j[W]=J,j[he]=$,W=he);else if(K<H&&0>i(ie,$))j[W]=ie,j[K]=$,W=K;else break e}}return N}function i(j,N){var $=j.sortIndex-N.sortIndex;return $!==0?$:j.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.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,p=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,g=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(j){for(var N=n(u);N!==null;){if(N.callback===null)r(u);else if(N.startTime<=j)r(u),N.sortIndex=N.expirationTime,t(l,N);else break;N=n(u)}}function S(j){if(y=!1,w(j),!p)if(n(l)!==null)p=!0,L(C);else{var N=n(u);N!==null&&F(S,N.startTime-j)}}function C(j,N){p=!1,y&&(y=!1,g(R),R=-1),m=!0;var $=h;try{for(w(N),d=n(l);d!==null&&(!(d.expirationTime>N)||j&&!M());){var W=d.callback;if(typeof W=="function"){d.callback=null,h=d.priorityLevel;var H=W(d.expirationTime<=N);N=e.unstable_now(),typeof H=="function"?d.callback=H:d===n(l)&&r(l),w(N)}else r(l);d=n(l)}if(d!==null)var Ye=!0;else{var he=n(u);he!==null&&F(S,he.startTime-N),Ye=!1}return Ye}finally{d=null,h=$,m=!1}}var k=!1,O=null,R=-1,A=5,I=-1;function M(){return!(e.unstable_now()-I<A)}function z(){if(O!==null){var j=e.unstable_now();I=j;var N=!0;try{N=O(!0,j)}finally{N?B():(k=!1,O=null)}}else k=!1}var B;if(typeof v=="function")B=function(){v(z)};else if(typeof MessageChannel<"u"){var E=new MessageChannel,P=E.port2;E.port1.onmessage=z,B=function(){P.postMessage(null)}}else B=function(){x(z,0)};function L(j){O=j,k||(k=!0,B())}function F(j,N){R=x(function(){j(e.unstable_now())},N)}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(j){j.callback=null},e.unstable_continueExecution=function(){p||m||(p=!0,L(C))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(j){switch(h){case 1:case 2:case 3:var N=3;break;default:N=h}var $=h;h=N;try{return j()}finally{h=$}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,N){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var $=h;h=j;try{return N()}finally{h=$}},e.unstable_scheduleCallback=function(j,N,$){var W=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?W+$:W):$=W,j){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=$+H,j={id:c++,callback:N,priorityLevel:j,startTime:$,expirationTime:H,sortIndex:-1},$>W?(j.sortIndex=$,t(u,j),n(l)===null&&j===n(u)&&(y?(g(R),R=-1):y=!0,F(S,$-W))):(j.sortIndex=H,t(l,j),p||m||(p=!0,L(C))),j},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(j){var N=h;return function(){var $=h;h=N;try{return j.apply(this,arguments)}finally{h=$}}}})(i1);r1.exports=i1;var Cw=r1.exports;/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom.production.min.js
|
|
28
28
|
*
|
|
@@ -30,14 +30,14 @@ var Zt=Object.defineProperty;var Jt=(_e,et,tt)=>et in _e?Zt(_e,et,{enumerable:!0
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var
|
|
34
|
-
`+
|
|
35
|
-
`),
|
|
36
|
-
`),
|
|
37
|
-
`+nt[ot].replace(" at new "," at ");return _e.displayName&&ut.includes("<anonymous>")&&(ut=ut.replace("<anonymous>",_e.displayName)),ut}while(1<=ot&&0<=at);break}}}finally{Na=!1,Error.prepareStackTrace=tt}return(_e=_e?_e.displayName||_e.name:"")?Ma(_e):""}function Pa(_e){switch(_e.tag){case 5:return Ma(_e.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return _e=Oa(_e.type,!1),_e;case 11:return _e=Oa(_e.type.render,!1),_e;case 1:return _e=Oa(_e.type,!0),_e;default:return""}}function Qa(_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 ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof _e=="object")switch(_e.$$typeof){case Ca:return(_e.displayName||"Context")+".Consumer";case Ba:return(_e._context.displayName||"Context")+".Provider";case Da:var et=_e.render;return _e=_e.displayName,_e||(_e=et.displayName||et.name||"",_e=_e!==""?"ForwardRef("+_e+")":"ForwardRef"),_e;case Ga:return et=_e.displayName||null,et!==null?et:Qa(_e.type)||"Memo";case Ha:et=_e._payload,_e=_e._init;try{return Qa(_e(et))}catch{}}return null}function Ra(_e){var et=_e.type;switch(_e.tag){case 24:return"Cache";case 9:return(et.displayName||"Context")+".Consumer";case 10:return(et._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return _e=et.render,_e=_e.displayName||_e.name||"",et.displayName||(_e!==""?"ForwardRef("+_e+")":"ForwardRef");case 7:return"Fragment";case 5:return et;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(et);case 8:return et===za?"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 et=="function")return et.displayName||et.name||null;if(typeof et=="string")return et}return null}function Sa(_e){switch(typeof _e){case"boolean":case"number":case"string":case"undefined":return _e;case"object":return _e;default:return""}}function Ta(_e){var et=_e.type;return(_e=_e.nodeName)&&_e.toLowerCase()==="input"&&(et==="checkbox"||et==="radio")}function Ua(_e){var et=Ta(_e)?"checked":"value",tt=Object.getOwnPropertyDescriptor(_e.constructor.prototype,et),rt=""+_e[et];if(!_e.hasOwnProperty(et)&&typeof tt<"u"&&typeof tt.get=="function"&&typeof tt.set=="function"){var nt=tt.get,st=tt.set;return Object.defineProperty(_e,et,{configurable:!0,get:function(){return nt.call(this)},set:function(ot){rt=""+ot,st.call(this,ot)}}),Object.defineProperty(_e,et,{enumerable:tt.enumerable}),{getValue:function(){return rt},setValue:function(ot){rt=""+ot},stopTracking:function(){_e._valueTracker=null,delete _e[et]}}}}function Va(_e){_e._valueTracker||(_e._valueTracker=Ua(_e))}function Wa(_e){if(!_e)return!1;var et=_e._valueTracker;if(!et)return!0;var tt=et.getValue(),rt="";return _e&&(rt=Ta(_e)?_e.checked?"true":"false":_e.value),_e=rt,_e!==tt?(et.setValue(_e),!0):!1}function Xa(_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 Ya(_e,et){var tt=et.checked;return A$1({},et,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:tt??_e._wrapperState.initialChecked})}function Za(_e,et){var tt=et.defaultValue==null?"":et.defaultValue,rt=et.checked!=null?et.checked:et.defaultChecked;tt=Sa(et.value!=null?et.value:tt),_e._wrapperState={initialChecked:rt,initialValue:tt,controlled:et.type==="checkbox"||et.type==="radio"?et.checked!=null:et.value!=null}}function ab(_e,et){et=et.checked,et!=null&&ta(_e,"checked",et,!1)}function bb(_e,et){ab(_e,et);var tt=Sa(et.value),rt=et.type;if(tt!=null)rt==="number"?(tt===0&&_e.value===""||_e.value!=tt)&&(_e.value=""+tt):_e.value!==""+tt&&(_e.value=""+tt);else if(rt==="submit"||rt==="reset"){_e.removeAttribute("value");return}et.hasOwnProperty("value")?cb(_e,et.type,tt):et.hasOwnProperty("defaultValue")&&cb(_e,et.type,Sa(et.defaultValue)),et.checked==null&&et.defaultChecked!=null&&(_e.defaultChecked=!!et.defaultChecked)}function db(_e,et,tt){if(et.hasOwnProperty("value")||et.hasOwnProperty("defaultValue")){var rt=et.type;if(!(rt!=="submit"&&rt!=="reset"||et.value!==void 0&&et.value!==null))return;et=""+_e._wrapperState.initialValue,tt||et===_e.value||(_e.value=et),_e.defaultValue=et}tt=_e.name,tt!==""&&(_e.name=""),_e.defaultChecked=!!_e._wrapperState.initialChecked,tt!==""&&(_e.name=tt)}function cb(_e,et,tt){(et!=="number"||Xa(_e.ownerDocument)!==_e)&&(tt==null?_e.defaultValue=""+_e._wrapperState.initialValue:_e.defaultValue!==""+tt&&(_e.defaultValue=""+tt))}var eb=Array.isArray;function fb(_e,et,tt,rt){if(_e=_e.options,et){et={};for(var nt=0;nt<tt.length;nt++)et["$"+tt[nt]]=!0;for(tt=0;tt<_e.length;tt++)nt=et.hasOwnProperty("$"+_e[tt].value),_e[tt].selected!==nt&&(_e[tt].selected=nt),nt&&rt&&(_e[tt].defaultSelected=!0)}else{for(tt=""+Sa(tt),et=null,nt=0;nt<_e.length;nt++){if(_e[nt].value===tt){_e[nt].selected=!0,rt&&(_e[nt].defaultSelected=!0);return}et!==null||_e[nt].disabled||(et=_e[nt])}et!==null&&(et.selected=!0)}}function gb(_e,et){if(et.dangerouslySetInnerHTML!=null)throw Error(p$3(91));return A$1({},et,{value:void 0,defaultValue:void 0,children:""+_e._wrapperState.initialValue})}function hb(_e,et){var tt=et.value;if(tt==null){if(tt=et.children,et=et.defaultValue,tt!=null){if(et!=null)throw Error(p$3(92));if(eb(tt)){if(1<tt.length)throw Error(p$3(93));tt=tt[0]}et=tt}et==null&&(et=""),tt=et}_e._wrapperState={initialValue:Sa(tt)}}function ib(_e,et){var tt=Sa(et.value),rt=Sa(et.defaultValue);tt!=null&&(tt=""+tt,tt!==_e.value&&(_e.value=tt),et.defaultValue==null&&_e.defaultValue!==tt&&(_e.defaultValue=tt)),rt!=null&&(_e.defaultValue=""+rt)}function jb(_e){var et=_e.textContent;et===_e._wrapperState.initialValue&&et!==""&&et!==null&&(_e.value=et)}function kb(_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 lb(_e,et){return _e==null||_e==="http://www.w3.org/1999/xhtml"?kb(et):_e==="http://www.w3.org/2000/svg"&&et==="foreignObject"?"http://www.w3.org/1999/xhtml":_e}var mb,nb=function(_e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(et,tt,rt,nt){MSApp.execUnsafeLocalFunction(function(){return _e(et,tt,rt,nt)})}:_e}(function(_e,et){if(_e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in _e)_e.innerHTML=et;else{for(mb=mb||document.createElement("div"),mb.innerHTML="<svg>"+et.valueOf().toString()+"</svg>",et=mb.firstChild;_e.firstChild;)_e.removeChild(_e.firstChild);for(;et.firstChild;)_e.appendChild(et.firstChild)}});function ob(_e,et){if(et){var tt=_e.firstChild;if(tt&&tt===_e.lastChild&&tt.nodeType===3){tt.nodeValue=et;return}}_e.textContent=et}var pb={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},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(_e){qb.forEach(function(et){et=et+_e.charAt(0).toUpperCase()+_e.substring(1),pb[et]=pb[_e]})});function rb(_e,et,tt){return et==null||typeof et=="boolean"||et===""?"":tt||typeof et!="number"||et===0||pb.hasOwnProperty(_e)&&pb[_e]?(""+et).trim():et+"px"}function sb(_e,et){_e=_e.style;for(var tt in et)if(et.hasOwnProperty(tt)){var rt=tt.indexOf("--")===0,nt=rb(tt,et[tt],rt);tt==="float"&&(tt="cssFloat"),rt?_e.setProperty(tt,nt):_e[tt]=nt}}var tb=A$1({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 ub(_e,et){if(et){if(tb[_e]&&(et.children!=null||et.dangerouslySetInnerHTML!=null))throw Error(p$3(137,_e));if(et.dangerouslySetInnerHTML!=null){if(et.children!=null)throw Error(p$3(60));if(typeof et.dangerouslySetInnerHTML!="object"||!("__html"in et.dangerouslySetInnerHTML))throw Error(p$3(61))}if(et.style!=null&&typeof et.style!="object")throw Error(p$3(62))}}function vb(_e,et){if(_e.indexOf("-")===-1)return typeof et.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 wb=null;function xb(_e){return _e=_e.target||_e.srcElement||window,_e.correspondingUseElement&&(_e=_e.correspondingUseElement),_e.nodeType===3?_e.parentNode:_e}var yb=null,zb=null,Ab=null;function Bb(_e){if(_e=Cb(_e)){if(typeof yb!="function")throw Error(p$3(280));var et=_e.stateNode;et&&(et=Db(et),yb(_e.stateNode,_e.type,et))}}function Eb(_e){zb?Ab?Ab.push(_e):Ab=[_e]:zb=_e}function Fb(){if(zb){var _e=zb,et=Ab;if(Ab=zb=null,Bb(_e),et)for(_e=0;_e<et.length;_e++)Bb(et[_e])}}function Gb(_e,et){return _e(et)}function Hb(){}var Ib=!1;function Jb(_e,et,tt){if(Ib)return _e(et,tt);Ib=!0;try{return Gb(_e,et,tt)}finally{Ib=!1,(zb!==null||Ab!==null)&&(Hb(),Fb())}}function Kb(_e,et){var tt=_e.stateNode;if(tt===null)return null;var rt=Db(tt);if(rt===null)return null;tt=rt[et];e:switch(et){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(rt=!rt.disabled)||(_e=_e.type,rt=!(_e==="button"||_e==="input"||_e==="select"||_e==="textarea")),_e=!rt;break e;default:_e=!1}if(_e)return null;if(tt&&typeof tt!="function")throw Error(p$3(231,et,typeof tt));return tt}var Lb=!1;if(ia)try{var Mb={};Object.defineProperty(Mb,"passive",{get:function(){Lb=!0}}),window.addEventListener("test",Mb,Mb),window.removeEventListener("test",Mb,Mb)}catch{Lb=!1}function Nb(_e,et,tt,rt,nt,st,ot,at,ut){var lt=Array.prototype.slice.call(arguments,3);try{et.apply(tt,lt)}catch(dt){this.onError(dt)}}var Ob=!1,Pb=null,Qb=!1,Rb=null,Sb={onError:function(_e){Ob=!0,Pb=_e}};function Tb(_e,et,tt,rt,nt,st,ot,at,ut){Ob=!1,Pb=null,Nb.apply(Sb,arguments)}function Ub(_e,et,tt,rt,nt,st,ot,at,ut){if(Tb.apply(this,arguments),Ob){if(Ob){var lt=Pb;Ob=!1,Pb=null}else throw Error(p$3(198));Qb||(Qb=!0,Rb=lt)}}function Vb(_e){var et=_e,tt=_e;if(_e.alternate)for(;et.return;)et=et.return;else{_e=et;do et=_e,et.flags&4098&&(tt=et.return),_e=et.return;while(_e)}return et.tag===3?tt:null}function Wb(_e){if(_e.tag===13){var et=_e.memoizedState;if(et===null&&(_e=_e.alternate,_e!==null&&(et=_e.memoizedState)),et!==null)return et.dehydrated}return null}function Xb(_e){if(Vb(_e)!==_e)throw Error(p$3(188))}function Yb(_e){var et=_e.alternate;if(!et){if(et=Vb(_e),et===null)throw Error(p$3(188));return et!==_e?null:_e}for(var tt=_e,rt=et;;){var nt=tt.return;if(nt===null)break;var st=nt.alternate;if(st===null){if(rt=nt.return,rt!==null){tt=rt;continue}break}if(nt.child===st.child){for(st=nt.child;st;){if(st===tt)return Xb(nt),_e;if(st===rt)return Xb(nt),et;st=st.sibling}throw Error(p$3(188))}if(tt.return!==rt.return)tt=nt,rt=st;else{for(var ot=!1,at=nt.child;at;){if(at===tt){ot=!0,tt=nt,rt=st;break}if(at===rt){ot=!0,rt=nt,tt=st;break}at=at.sibling}if(!ot){for(at=st.child;at;){if(at===tt){ot=!0,tt=st,rt=nt;break}if(at===rt){ot=!0,rt=st,tt=nt;break}at=at.sibling}if(!ot)throw Error(p$3(189))}}if(tt.alternate!==rt)throw Error(p$3(190))}if(tt.tag!==3)throw Error(p$3(188));return tt.stateNode.current===tt?_e:et}function Zb(_e){return _e=Yb(_e),_e!==null?$b(_e):null}function $b(_e){if(_e.tag===5||_e.tag===6)return _e;for(_e=_e.child;_e!==null;){var et=$b(_e);if(et!==null)return et;_e=_e.sibling}return null}var ac=ca.unstable_scheduleCallback,bc=ca.unstable_cancelCallback,cc=ca.unstable_shouldYield,dc=ca.unstable_requestPaint,B=ca.unstable_now,ec=ca.unstable_getCurrentPriorityLevel,fc=ca.unstable_ImmediatePriority,gc=ca.unstable_UserBlockingPriority,hc=ca.unstable_NormalPriority,ic=ca.unstable_LowPriority,jc=ca.unstable_IdlePriority,kc=null,lc=null;function mc(_e){if(lc&&typeof lc.onCommitFiberRoot=="function")try{lc.onCommitFiberRoot(kc,_e,void 0,(_e.current.flags&128)===128)}catch{}}var oc=Math.clz32?Math.clz32:nc,pc=Math.log,qc=Math.LN2;function nc(_e){return _e>>>=0,_e===0?32:31-(pc(_e)/qc|0)|0}var rc=64,sc=4194304;function tc(_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 uc(_e,et){var tt=_e.pendingLanes;if(tt===0)return 0;var rt=0,nt=_e.suspendedLanes,st=_e.pingedLanes,ot=tt&268435455;if(ot!==0){var at=ot&~nt;at!==0?rt=tc(at):(st&=ot,st!==0&&(rt=tc(st)))}else ot=tt&~nt,ot!==0?rt=tc(ot):st!==0&&(rt=tc(st));if(rt===0)return 0;if(et!==0&&et!==rt&&!(et&nt)&&(nt=rt&-rt,st=et&-et,nt>=st||nt===16&&(st&4194240)!==0))return et;if(rt&4&&(rt|=tt&16),et=_e.entangledLanes,et!==0)for(_e=_e.entanglements,et&=rt;0<et;)tt=31-oc(et),nt=1<<tt,rt|=_e[tt],et&=~nt;return rt}function vc(_e,et){switch(_e){case 1:case 2:case 4:return et+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 et+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 wc(_e,et){for(var tt=_e.suspendedLanes,rt=_e.pingedLanes,nt=_e.expirationTimes,st=_e.pendingLanes;0<st;){var ot=31-oc(st),at=1<<ot,ut=nt[ot];ut===-1?(!(at&tt)||at&rt)&&(nt[ot]=vc(at,et)):ut<=et&&(_e.expiredLanes|=at),st&=~at}}function xc(_e){return _e=_e.pendingLanes&-1073741825,_e!==0?_e:_e&1073741824?1073741824:0}function yc(){var _e=rc;return rc<<=1,!(rc&4194240)&&(rc=64),_e}function zc(_e){for(var et=[],tt=0;31>tt;tt++)et.push(_e);return et}function Ac(_e,et,tt){_e.pendingLanes|=et,et!==536870912&&(_e.suspendedLanes=0,_e.pingedLanes=0),_e=_e.eventTimes,et=31-oc(et),_e[et]=tt}function Bc(_e,et){var tt=_e.pendingLanes&~et;_e.pendingLanes=et,_e.suspendedLanes=0,_e.pingedLanes=0,_e.expiredLanes&=et,_e.mutableReadLanes&=et,_e.entangledLanes&=et,et=_e.entanglements;var rt=_e.eventTimes;for(_e=_e.expirationTimes;0<tt;){var nt=31-oc(tt),st=1<<nt;et[nt]=0,rt[nt]=-1,_e[nt]=-1,tt&=~st}}function Cc(_e,et){var tt=_e.entangledLanes|=et;for(_e=_e.entanglements;tt;){var rt=31-oc(tt),nt=1<<rt;nt&et|_e[rt]&et&&(_e[rt]|=et),tt&=~nt}}var C$1=0;function Dc(_e){return _e&=-_e,1<_e?4<_e?_e&268435455?16:536870912:4:1}var Ec,Fc,Gc,Hc,Ic,Jc=!1,Kc=[],Lc=null,Mc=null,Nc=null,Oc=new Map,Pc=new Map,Qc=[],Rc="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 Sc(_e,et){switch(_e){case"focusin":case"focusout":Lc=null;break;case"dragenter":case"dragleave":Mc=null;break;case"mouseover":case"mouseout":Nc=null;break;case"pointerover":case"pointerout":Oc.delete(et.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pc.delete(et.pointerId)}}function Tc(_e,et,tt,rt,nt,st){return _e===null||_e.nativeEvent!==st?(_e={blockedOn:et,domEventName:tt,eventSystemFlags:rt,nativeEvent:st,targetContainers:[nt]},et!==null&&(et=Cb(et),et!==null&&Fc(et)),_e):(_e.eventSystemFlags|=rt,et=_e.targetContainers,nt!==null&&et.indexOf(nt)===-1&&et.push(nt),_e)}function Uc(_e,et,tt,rt,nt){switch(et){case"focusin":return Lc=Tc(Lc,_e,et,tt,rt,nt),!0;case"dragenter":return Mc=Tc(Mc,_e,et,tt,rt,nt),!0;case"mouseover":return Nc=Tc(Nc,_e,et,tt,rt,nt),!0;case"pointerover":var st=nt.pointerId;return Oc.set(st,Tc(Oc.get(st)||null,_e,et,tt,rt,nt)),!0;case"gotpointercapture":return st=nt.pointerId,Pc.set(st,Tc(Pc.get(st)||null,_e,et,tt,rt,nt)),!0}return!1}function Vc(_e){var et=Wc(_e.target);if(et!==null){var tt=Vb(et);if(tt!==null){if(et=tt.tag,et===13){if(et=Wb(tt),et!==null){_e.blockedOn=et,Ic(_e.priority,function(){Gc(tt)});return}}else if(et===3&&tt.stateNode.current.memoizedState.isDehydrated){_e.blockedOn=tt.tag===3?tt.stateNode.containerInfo:null;return}}}_e.blockedOn=null}function Xc(_e){if(_e.blockedOn!==null)return!1;for(var et=_e.targetContainers;0<et.length;){var tt=Yc(_e.domEventName,_e.eventSystemFlags,et[0],_e.nativeEvent);if(tt===null){tt=_e.nativeEvent;var rt=new tt.constructor(tt.type,tt);wb=rt,tt.target.dispatchEvent(rt),wb=null}else return et=Cb(tt),et!==null&&Fc(et),_e.blockedOn=tt,!1;et.shift()}return!0}function Zc(_e,et,tt){Xc(_e)&&tt.delete(et)}function $c(){Jc=!1,Lc!==null&&Xc(Lc)&&(Lc=null),Mc!==null&&Xc(Mc)&&(Mc=null),Nc!==null&&Xc(Nc)&&(Nc=null),Oc.forEach(Zc),Pc.forEach(Zc)}function ad(_e,et){_e.blockedOn===et&&(_e.blockedOn=null,Jc||(Jc=!0,ca.unstable_scheduleCallback(ca.unstable_NormalPriority,$c)))}function bd(_e){function et(nt){return ad(nt,_e)}if(0<Kc.length){ad(Kc[0],_e);for(var tt=1;tt<Kc.length;tt++){var rt=Kc[tt];rt.blockedOn===_e&&(rt.blockedOn=null)}}for(Lc!==null&&ad(Lc,_e),Mc!==null&&ad(Mc,_e),Nc!==null&&ad(Nc,_e),Oc.forEach(et),Pc.forEach(et),tt=0;tt<Qc.length;tt++)rt=Qc[tt],rt.blockedOn===_e&&(rt.blockedOn=null);for(;0<Qc.length&&(tt=Qc[0],tt.blockedOn===null);)Vc(tt),tt.blockedOn===null&&Qc.shift()}var cd=ua.ReactCurrentBatchConfig,dd=!0;function ed(_e,et,tt,rt){var nt=C$1,st=cd.transition;cd.transition=null;try{C$1=1,fd(_e,et,tt,rt)}finally{C$1=nt,cd.transition=st}}function gd(_e,et,tt,rt){var nt=C$1,st=cd.transition;cd.transition=null;try{C$1=4,fd(_e,et,tt,rt)}finally{C$1=nt,cd.transition=st}}function fd(_e,et,tt,rt){if(dd){var nt=Yc(_e,et,tt,rt);if(nt===null)hd(_e,et,rt,id,tt),Sc(_e,rt);else if(Uc(nt,_e,et,tt,rt))rt.stopPropagation();else if(Sc(_e,rt),et&4&&-1<Rc.indexOf(_e)){for(;nt!==null;){var st=Cb(nt);if(st!==null&&Ec(st),st=Yc(_e,et,tt,rt),st===null&&hd(_e,et,rt,id,tt),st===nt)break;nt=st}nt!==null&&rt.stopPropagation()}else hd(_e,et,rt,null,tt)}}var id=null;function Yc(_e,et,tt,rt){if(id=null,_e=xb(rt),_e=Wc(_e),_e!==null)if(et=Vb(_e),et===null)_e=null;else if(tt=et.tag,tt===13){if(_e=Wb(et),_e!==null)return _e;_e=null}else if(tt===3){if(et.stateNode.current.memoizedState.isDehydrated)return et.tag===3?et.stateNode.containerInfo:null;_e=null}else et!==_e&&(_e=null);return id=_e,null}function jd(_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(ec()){case fc:return 1;case gc:return 4;case hc:case ic:return 16;case jc:return 536870912;default:return 16}default:return 16}}var kd=null,ld=null,md=null;function nd(){if(md)return md;var _e,et=ld,tt=et.length,rt,nt="value"in kd?kd.value:kd.textContent,st=nt.length;for(_e=0;_e<tt&&et[_e]===nt[_e];_e++);var ot=tt-_e;for(rt=1;rt<=ot&&et[tt-rt]===nt[st-rt];rt++);return md=nt.slice(_e,1<rt?1-rt:void 0)}function od(_e){var et=_e.keyCode;return"charCode"in _e?(_e=_e.charCode,_e===0&&et===13&&(_e=13)):_e=et,_e===10&&(_e=13),32<=_e||_e===13?_e:0}function pd(){return!0}function qd(){return!1}function rd(_e){function et(tt,rt,nt,st,ot){this._reactName=tt,this._targetInst=nt,this.type=rt,this.nativeEvent=st,this.target=ot,this.currentTarget=null;for(var at in _e)_e.hasOwnProperty(at)&&(tt=_e[at],this[at]=tt?tt(st):st[at]);return this.isDefaultPrevented=(st.defaultPrevented!=null?st.defaultPrevented:st.returnValue===!1)?pd:qd,this.isPropagationStopped=qd,this}return A$1(et.prototype,{preventDefault:function(){this.defaultPrevented=!0;var tt=this.nativeEvent;tt&&(tt.preventDefault?tt.preventDefault():typeof tt.returnValue!="unknown"&&(tt.returnValue=!1),this.isDefaultPrevented=pd)},stopPropagation:function(){var tt=this.nativeEvent;tt&&(tt.stopPropagation?tt.stopPropagation():typeof tt.cancelBubble!="unknown"&&(tt.cancelBubble=!0),this.isPropagationStopped=pd)},persist:function(){},isPersistent:pd}),et}var sd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(_e){return _e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td=rd(sd),ud=A$1({},sd,{view:0,detail:0}),vd=rd(ud),wd,xd,yd,Ad=A$1({},ud,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zd,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!==yd&&(yd&&_e.type==="mousemove"?(wd=_e.screenX-yd.screenX,xd=_e.screenY-yd.screenY):xd=wd=0,yd=_e),wd)},movementY:function(_e){return"movementY"in _e?_e.movementY:xd}}),Bd=rd(Ad),Cd=A$1({},Ad,{dataTransfer:0}),Dd=rd(Cd),Ed=A$1({},ud,{relatedTarget:0}),Fd=rd(Ed),Gd=A$1({},sd,{animationName:0,elapsedTime:0,pseudoElement:0}),Hd=rd(Gd),Id=A$1({},sd,{clipboardData:function(_e){return"clipboardData"in _e?_e.clipboardData:window.clipboardData}}),Jd=rd(Id),Kd=A$1({},sd,{data:0}),Ld=rd(Kd),Md={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nd={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"},Od={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pd(_e){var et=this.nativeEvent;return et.getModifierState?et.getModifierState(_e):(_e=Od[_e])?!!et[_e]:!1}function zd(){return Pd}var Qd=A$1({},ud,{key:function(_e){if(_e.key){var et=Md[_e.key]||_e.key;if(et!=="Unidentified")return et}return _e.type==="keypress"?(_e=od(_e),_e===13?"Enter":String.fromCharCode(_e)):_e.type==="keydown"||_e.type==="keyup"?Nd[_e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zd,charCode:function(_e){return _e.type==="keypress"?od(_e):0},keyCode:function(_e){return _e.type==="keydown"||_e.type==="keyup"?_e.keyCode:0},which:function(_e){return _e.type==="keypress"?od(_e):_e.type==="keydown"||_e.type==="keyup"?_e.keyCode:0}}),Rd=rd(Qd),Sd=A$1({},Ad,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Td=rd(Sd),Ud=A$1({},ud,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zd}),Vd=rd(Ud),Wd=A$1({},sd,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xd=rd(Wd),Yd=A$1({},Ad,{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}),Zd=rd(Yd),$d=[9,13,27,32],ae=ia&&"CompositionEvent"in window,be$1=null;ia&&"documentMode"in document&&(be$1=document.documentMode);var ce=ia&&"TextEvent"in window&&!be$1,de$2=ia&&(!ae||be$1&&8<be$1&&11>=be$1),ee$1=String.fromCharCode(32),fe$1=!1;function ge$1(_e,et){switch(_e){case"keyup":return $d.indexOf(et.keyCode)!==-1;case"keydown":return et.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he$1(_e){return _e=_e.detail,typeof _e=="object"&&"data"in _e?_e.data:null}var ie=!1;function je(_e,et){switch(_e){case"compositionend":return he$1(et);case"keypress":return et.which!==32?null:(fe$1=!0,ee$1);case"textInput":return _e=et.data,_e===ee$1&&fe$1?null:_e;default:return null}}function ke(_e,et){if(ie)return _e==="compositionend"||!ae&&ge$1(_e,et)?(_e=nd(),md=ld=kd=null,ie=!1,_e):null;switch(_e){case"paste":return null;case"keypress":if(!(et.ctrlKey||et.altKey||et.metaKey)||et.ctrlKey&&et.altKey){if(et.char&&1<et.char.length)return et.char;if(et.which)return String.fromCharCode(et.which)}return null;case"compositionend":return de$2&&et.locale!=="ko"?null:et.data;default:return null}}var le$1={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 me(_e){var et=_e&&_e.nodeName&&_e.nodeName.toLowerCase();return et==="input"?!!le$1[_e.type]:et==="textarea"}function ne$1(_e,et,tt,rt){Eb(rt),et=oe$1(et,"onChange"),0<et.length&&(tt=new td("onChange","change",null,tt,rt),_e.push({event:tt,listeners:et}))}var pe$1=null,qe=null;function re$1(_e){se$1(_e,0)}function te(_e){var et=ue$1(_e);if(Wa(et))return _e}function ve$1(_e,et){if(_e==="change")return et}var we=!1;if(ia){var xe$1;if(ia){var ye$1="oninput"in document;if(!ye$1){var ze=document.createElement("div");ze.setAttribute("oninput","return;"),ye$1=typeof ze.oninput=="function"}xe$1=ye$1}else xe$1=!1;we=xe$1&&(!document.documentMode||9<document.documentMode)}function Ae$1(){pe$1&&(pe$1.detachEvent("onpropertychange",Be),qe=pe$1=null)}function Be(_e){if(_e.propertyName==="value"&&te(qe)){var et=[];ne$1(et,qe,_e,xb(_e)),Jb(re$1,et)}}function Ce(_e,et,tt){_e==="focusin"?(Ae$1(),pe$1=et,qe=tt,pe$1.attachEvent("onpropertychange",Be)):_e==="focusout"&&Ae$1()}function De(_e){if(_e==="selectionchange"||_e==="keyup"||_e==="keydown")return te(qe)}function Ee$1(_e,et){if(_e==="click")return te(et)}function Fe(_e,et){if(_e==="input"||_e==="change")return te(et)}function Ge(_e,et){return _e===et&&(_e!==0||1/_e===1/et)||_e!==_e&&et!==et}var He=typeof Object.is=="function"?Object.is:Ge;function Ie$1(_e,et){if(He(_e,et))return!0;if(typeof _e!="object"||_e===null||typeof et!="object"||et===null)return!1;var tt=Object.keys(_e),rt=Object.keys(et);if(tt.length!==rt.length)return!1;for(rt=0;rt<tt.length;rt++){var nt=tt[rt];if(!ja.call(et,nt)||!He(_e[nt],et[nt]))return!1}return!0}function Je(_e){for(;_e&&_e.firstChild;)_e=_e.firstChild;return _e}function Ke(_e,et){var tt=Je(_e);_e=0;for(var rt;tt;){if(tt.nodeType===3){if(rt=_e+tt.textContent.length,_e<=et&&rt>=et)return{node:tt,offset:et-_e};_e=rt}e:{for(;tt;){if(tt.nextSibling){tt=tt.nextSibling;break e}tt=tt.parentNode}tt=void 0}tt=Je(tt)}}function Le(_e,et){return _e&&et?_e===et?!0:_e&&_e.nodeType===3?!1:et&&et.nodeType===3?Le(_e,et.parentNode):"contains"in _e?_e.contains(et):_e.compareDocumentPosition?!!(_e.compareDocumentPosition(et)&16):!1:!1}function Me(){for(var _e=window,et=Xa();et instanceof _e.HTMLIFrameElement;){try{var tt=typeof et.contentWindow.location.href=="string"}catch{tt=!1}if(tt)_e=et.contentWindow;else break;et=Xa(_e.document)}return et}function Ne(_e){var et=_e&&_e.nodeName&&_e.nodeName.toLowerCase();return et&&(et==="input"&&(_e.type==="text"||_e.type==="search"||_e.type==="tel"||_e.type==="url"||_e.type==="password")||et==="textarea"||_e.contentEditable==="true")}function Oe(_e){var et=Me(),tt=_e.focusedElem,rt=_e.selectionRange;if(et!==tt&&tt&&tt.ownerDocument&&Le(tt.ownerDocument.documentElement,tt)){if(rt!==null&&Ne(tt)){if(et=rt.start,_e=rt.end,_e===void 0&&(_e=et),"selectionStart"in tt)tt.selectionStart=et,tt.selectionEnd=Math.min(_e,tt.value.length);else if(_e=(et=tt.ownerDocument||document)&&et.defaultView||window,_e.getSelection){_e=_e.getSelection();var nt=tt.textContent.length,st=Math.min(rt.start,nt);rt=rt.end===void 0?st:Math.min(rt.end,nt),!_e.extend&&st>rt&&(nt=rt,rt=st,st=nt),nt=Ke(tt,st);var ot=Ke(tt,rt);nt&&ot&&(_e.rangeCount!==1||_e.anchorNode!==nt.node||_e.anchorOffset!==nt.offset||_e.focusNode!==ot.node||_e.focusOffset!==ot.offset)&&(et=et.createRange(),et.setStart(nt.node,nt.offset),_e.removeAllRanges(),st>rt?(_e.addRange(et),_e.extend(ot.node,ot.offset)):(et.setEnd(ot.node,ot.offset),_e.addRange(et)))}}for(et=[],_e=tt;_e=_e.parentNode;)_e.nodeType===1&&et.push({element:_e,left:_e.scrollLeft,top:_e.scrollTop});for(typeof tt.focus=="function"&&tt.focus(),tt=0;tt<et.length;tt++)_e=et[tt],_e.element.scrollLeft=_e.left,_e.element.scrollTop=_e.top}}var Pe=ia&&"documentMode"in document&&11>=document.documentMode,Qe=null,Re$1=null,Se$1=null,Te$1=!1;function Ue(_e,et,tt){var rt=tt.window===tt?tt.document:tt.nodeType===9?tt:tt.ownerDocument;Te$1||Qe==null||Qe!==Xa(rt)||(rt=Qe,"selectionStart"in rt&&Ne(rt)?rt={start:rt.selectionStart,end:rt.selectionEnd}:(rt=(rt.ownerDocument&&rt.ownerDocument.defaultView||window).getSelection(),rt={anchorNode:rt.anchorNode,anchorOffset:rt.anchorOffset,focusNode:rt.focusNode,focusOffset:rt.focusOffset}),Se$1&&Ie$1(Se$1,rt)||(Se$1=rt,rt=oe$1(Re$1,"onSelect"),0<rt.length&&(et=new td("onSelect","select",null,et,tt),_e.push({event:et,listeners:rt}),et.target=Qe)))}function Ve(_e,et){var tt={};return tt[_e.toLowerCase()]=et.toLowerCase(),tt["Webkit"+_e]="webkit"+et,tt["Moz"+_e]="moz"+et,tt}var We={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},Xe={},Ye={};ia&&(Ye=document.createElement("div").style,"AnimationEvent"in window||(delete We.animationend.animation,delete We.animationiteration.animation,delete We.animationstart.animation),"TransitionEvent"in window||delete We.transitionend.transition);function Ze(_e){if(Xe[_e])return Xe[_e];if(!We[_e])return _e;var et=We[_e],tt;for(tt in et)if(et.hasOwnProperty(tt)&&tt in Ye)return Xe[_e]=et[tt];return _e}var $e=Ze("animationend"),af=Ze("animationiteration"),bf=Ze("animationstart"),cf=Ze("transitionend"),df=new Map,ef="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 ff(_e,et){df.set(_e,et),fa(et,[_e])}for(var gf=0;gf<ef.length;gf++){var hf=ef[gf],jf=hf.toLowerCase(),kf=hf[0].toUpperCase()+hf.slice(1);ff(jf,"on"+kf)}ff($e,"onAnimationEnd");ff(af,"onAnimationIteration");ff(bf,"onAnimationStart");ff("dblclick","onDoubleClick");ff("focusin","onFocus");ff("focusout","onBlur");ff(cf,"onTransitionEnd");ha("onMouseEnter",["mouseout","mouseover"]);ha("onMouseLeave",["mouseout","mouseover"]);ha("onPointerEnter",["pointerout","pointerover"]);ha("onPointerLeave",["pointerout","pointerover"]);fa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));fa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));fa("onBeforeInput",["compositionend","keypress","textInput","paste"]);fa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));fa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));fa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lf="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(" "),mf=new Set("cancel close invalid load scroll toggle".split(" ").concat(lf));function nf(_e,et,tt){var rt=_e.type||"unknown-event";_e.currentTarget=tt,Ub(rt,et,void 0,_e),_e.currentTarget=null}function se$1(_e,et){et=(et&4)!==0;for(var tt=0;tt<_e.length;tt++){var rt=_e[tt],nt=rt.event;rt=rt.listeners;e:{var st=void 0;if(et)for(var ot=rt.length-1;0<=ot;ot--){var at=rt[ot],ut=at.instance,lt=at.currentTarget;if(at=at.listener,ut!==st&&nt.isPropagationStopped())break e;nf(nt,at,lt),st=ut}else for(ot=0;ot<rt.length;ot++){if(at=rt[ot],ut=at.instance,lt=at.currentTarget,at=at.listener,ut!==st&&nt.isPropagationStopped())break e;nf(nt,at,lt),st=ut}}}if(Qb)throw _e=Rb,Qb=!1,Rb=null,_e}function D$1(_e,et){var tt=et[of$1];tt===void 0&&(tt=et[of$1]=new Set);var rt=_e+"__bubble";tt.has(rt)||(pf(et,_e,2,!1),tt.add(rt))}function qf(_e,et,tt){var rt=0;et&&(rt|=4),pf(tt,_e,rt,et)}var rf="_reactListening"+Math.random().toString(36).slice(2);function sf(_e){if(!_e[rf]){_e[rf]=!0,da.forEach(function(tt){tt!=="selectionchange"&&(mf.has(tt)||qf(tt,!1,_e),qf(tt,!0,_e))});var et=_e.nodeType===9?_e:_e.ownerDocument;et===null||et[rf]||(et[rf]=!0,qf("selectionchange",!1,et))}}function pf(_e,et,tt,rt){switch(jd(et)){case 1:var nt=ed;break;case 4:nt=gd;break;default:nt=fd}tt=nt.bind(null,et,tt,_e),nt=void 0,!Lb||et!=="touchstart"&&et!=="touchmove"&&et!=="wheel"||(nt=!0),rt?nt!==void 0?_e.addEventListener(et,tt,{capture:!0,passive:nt}):_e.addEventListener(et,tt,!0):nt!==void 0?_e.addEventListener(et,tt,{passive:nt}):_e.addEventListener(et,tt,!1)}function hd(_e,et,tt,rt,nt){var st=rt;if(!(et&1)&&!(et&2)&&rt!==null)e:for(;;){if(rt===null)return;var ot=rt.tag;if(ot===3||ot===4){var at=rt.stateNode.containerInfo;if(at===nt||at.nodeType===8&&at.parentNode===nt)break;if(ot===4)for(ot=rt.return;ot!==null;){var ut=ot.tag;if((ut===3||ut===4)&&(ut=ot.stateNode.containerInfo,ut===nt||ut.nodeType===8&&ut.parentNode===nt))return;ot=ot.return}for(;at!==null;){if(ot=Wc(at),ot===null)return;if(ut=ot.tag,ut===5||ut===6){rt=st=ot;continue e}at=at.parentNode}}rt=rt.return}Jb(function(){var lt=st,dt=xb(tt),ct=[];e:{var ft=df.get(_e);if(ft!==void 0){var ht=td,mt=_e;switch(_e){case"keypress":if(od(tt)===0)break e;case"keydown":case"keyup":ht=Rd;break;case"focusin":mt="focus",ht=Fd;break;case"focusout":mt="blur",ht=Fd;break;case"beforeblur":case"afterblur":ht=Fd;break;case"click":if(tt.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ht=Bd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ht=Dd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ht=Vd;break;case $e:case af:case bf:ht=Hd;break;case cf:ht=Xd;break;case"scroll":ht=vd;break;case"wheel":ht=Zd;break;case"copy":case"cut":case"paste":ht=Jd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ht=Td}var vt=(et&4)!==0,wt=!vt&&_e==="scroll",gt=vt?ft!==null?ft+"Capture":null:ft;vt=[];for(var yt=lt,xt;yt!==null;){xt=yt;var St=xt.stateNode;if(xt.tag===5&&St!==null&&(xt=St,gt!==null&&(St=Kb(yt,gt),St!=null&&vt.push(tf(yt,St,xt)))),wt)break;yt=yt.return}0<vt.length&&(ft=new ht(ft,mt,null,tt,dt),ct.push({event:ft,listeners:vt}))}}if(!(et&7)){e:{if(ft=_e==="mouseover"||_e==="pointerover",ht=_e==="mouseout"||_e==="pointerout",ft&&tt!==wb&&(mt=tt.relatedTarget||tt.fromElement)&&(Wc(mt)||mt[uf]))break e;if((ht||ft)&&(ft=dt.window===dt?dt:(ft=dt.ownerDocument)?ft.defaultView||ft.parentWindow:window,ht?(mt=tt.relatedTarget||tt.toElement,ht=lt,mt=mt?Wc(mt):null,mt!==null&&(wt=Vb(mt),mt!==wt||mt.tag!==5&&mt.tag!==6)&&(mt=null)):(ht=null,mt=lt),ht!==mt)){if(vt=Bd,St="onMouseLeave",gt="onMouseEnter",yt="mouse",(_e==="pointerout"||_e==="pointerover")&&(vt=Td,St="onPointerLeave",gt="onPointerEnter",yt="pointer"),wt=ht==null?ft:ue$1(ht),xt=mt==null?ft:ue$1(mt),ft=new vt(St,yt+"leave",ht,tt,dt),ft.target=wt,ft.relatedTarget=xt,St=null,Wc(dt)===lt&&(vt=new vt(gt,yt+"enter",mt,tt,dt),vt.target=xt,vt.relatedTarget=wt,St=vt),wt=St,ht&&mt)t:{for(vt=ht,gt=mt,yt=0,xt=vt;xt;xt=vf(xt))yt++;for(xt=0,St=gt;St;St=vf(St))xt++;for(;0<yt-xt;)vt=vf(vt),yt--;for(;0<xt-yt;)gt=vf(gt),xt--;for(;yt--;){if(vt===gt||gt!==null&&vt===gt.alternate)break t;vt=vf(vt),gt=vf(gt)}vt=null}else vt=null;ht!==null&&wf(ct,ft,ht,vt,!1),mt!==null&&wt!==null&&wf(ct,wt,mt,vt,!0)}}e:{if(ft=lt?ue$1(lt):window,ht=ft.nodeName&&ft.nodeName.toLowerCase(),ht==="select"||ht==="input"&&ft.type==="file")var bt=ve$1;else if(me(ft))if(we)bt=Fe;else{bt=De;var $t=Ce}else(ht=ft.nodeName)&&ht.toLowerCase()==="input"&&(ft.type==="checkbox"||ft.type==="radio")&&(bt=Ee$1);if(bt&&(bt=bt(_e,lt))){ne$1(ct,bt,tt,dt);break e}$t&&$t(_e,ft,lt),_e==="focusout"&&($t=ft._wrapperState)&&$t.controlled&&ft.type==="number"&&cb(ft,"number",ft.value)}switch($t=lt?ue$1(lt):window,_e){case"focusin":(me($t)||$t.contentEditable==="true")&&(Qe=$t,Re$1=lt,Se$1=null);break;case"focusout":Se$1=Re$1=Qe=null;break;case"mousedown":Te$1=!0;break;case"contextmenu":case"mouseup":case"dragend":Te$1=!1,Ue(ct,tt,dt);break;case"selectionchange":if(Pe)break;case"keydown":case"keyup":Ue(ct,tt,dt)}var At;if(ae)e:{switch(_e){case"compositionstart":var Tt="onCompositionStart";break e;case"compositionend":Tt="onCompositionEnd";break e;case"compositionupdate":Tt="onCompositionUpdate";break e}Tt=void 0}else ie?ge$1(_e,tt)&&(Tt="onCompositionEnd"):_e==="keydown"&&tt.keyCode===229&&(Tt="onCompositionStart");Tt&&(de$2&&tt.locale!=="ko"&&(ie||Tt!=="onCompositionStart"?Tt==="onCompositionEnd"&&ie&&(At=nd()):(kd=dt,ld="value"in kd?kd.value:kd.textContent,ie=!0)),$t=oe$1(lt,Tt),0<$t.length&&(Tt=new Ld(Tt,_e,null,tt,dt),ct.push({event:Tt,listeners:$t}),At?Tt.data=At:(At=he$1(tt),At!==null&&(Tt.data=At)))),(At=ce?je(_e,tt):ke(_e,tt))&&(lt=oe$1(lt,"onBeforeInput"),0<lt.length&&(dt=new Ld("onBeforeInput","beforeinput",null,tt,dt),ct.push({event:dt,listeners:lt}),dt.data=At))}se$1(ct,et)})}function tf(_e,et,tt){return{instance:_e,listener:et,currentTarget:tt}}function oe$1(_e,et){for(var tt=et+"Capture",rt=[];_e!==null;){var nt=_e,st=nt.stateNode;nt.tag===5&&st!==null&&(nt=st,st=Kb(_e,tt),st!=null&&rt.unshift(tf(_e,st,nt)),st=Kb(_e,et),st!=null&&rt.push(tf(_e,st,nt))),_e=_e.return}return rt}function vf(_e){if(_e===null)return null;do _e=_e.return;while(_e&&_e.tag!==5);return _e||null}function wf(_e,et,tt,rt,nt){for(var st=et._reactName,ot=[];tt!==null&&tt!==rt;){var at=tt,ut=at.alternate,lt=at.stateNode;if(ut!==null&&ut===rt)break;at.tag===5&<!==null&&(at=lt,nt?(ut=Kb(tt,st),ut!=null&&ot.unshift(tf(tt,ut,at))):nt||(ut=Kb(tt,st),ut!=null&&ot.push(tf(tt,ut,at)))),tt=tt.return}ot.length!==0&&_e.push({event:et,listeners:ot})}var xf=/\r\n?/g,yf=/\u0000|\uFFFD/g;function zf(_e){return(typeof _e=="string"?_e:""+_e).replace(xf,`
|
|
38
|
-
`).replace(yf,"")}function Af(_e,et,tt){if(et=zf(et),zf(_e)!==et&&tt)throw Error(p$3(425))}function Bf(){}var Cf=null,Df=null;function Ef(_e,et){return _e==="textarea"||_e==="noscript"||typeof et.children=="string"||typeof et.children=="number"||typeof et.dangerouslySetInnerHTML=="object"&&et.dangerouslySetInnerHTML!==null&&et.dangerouslySetInnerHTML.__html!=null}var Ff=typeof setTimeout=="function"?setTimeout:void 0,Gf=typeof clearTimeout=="function"?clearTimeout:void 0,Hf=typeof Promise=="function"?Promise:void 0,Jf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hf<"u"?function(_e){return Hf.resolve(null).then(_e).catch(If)}:Ff;function If(_e){setTimeout(function(){throw _e})}function Kf(_e,et){var tt=et,rt=0;do{var nt=tt.nextSibling;if(_e.removeChild(tt),nt&&nt.nodeType===8)if(tt=nt.data,tt==="/$"){if(rt===0){_e.removeChild(nt),bd(et);return}rt--}else tt!=="$"&&tt!=="$?"&&tt!=="$!"||rt++;tt=nt}while(tt);bd(et)}function Lf(_e){for(;_e!=null;_e=_e.nextSibling){var et=_e.nodeType;if(et===1||et===3)break;if(et===8){if(et=_e.data,et==="$"||et==="$!"||et==="$?")break;if(et==="/$")return null}}return _e}function Mf(_e){_e=_e.previousSibling;for(var et=0;_e;){if(_e.nodeType===8){var tt=_e.data;if(tt==="$"||tt==="$!"||tt==="$?"){if(et===0)return _e;et--}else tt==="/$"&&et++}_e=_e.previousSibling}return null}var Nf=Math.random().toString(36).slice(2),Of="__reactFiber$"+Nf,Pf="__reactProps$"+Nf,uf="__reactContainer$"+Nf,of$1="__reactEvents$"+Nf,Qf="__reactListeners$"+Nf,Rf="__reactHandles$"+Nf;function Wc(_e){var et=_e[Of];if(et)return et;for(var tt=_e.parentNode;tt;){if(et=tt[uf]||tt[Of]){if(tt=et.alternate,et.child!==null||tt!==null&&tt.child!==null)for(_e=Mf(_e);_e!==null;){if(tt=_e[Of])return tt;_e=Mf(_e)}return et}_e=tt,tt=_e.parentNode}return null}function Cb(_e){return _e=_e[Of]||_e[uf],!_e||_e.tag!==5&&_e.tag!==6&&_e.tag!==13&&_e.tag!==3?null:_e}function ue$1(_e){if(_e.tag===5||_e.tag===6)return _e.stateNode;throw Error(p$3(33))}function Db(_e){return _e[Pf]||null}var Sf=[],Tf=-1;function Uf(_e){return{current:_e}}function E(_e){0>Tf||(_e.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G$2(_e,et){Tf++,Sf[Tf]=_e.current,_e.current=et}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(_e,et){var tt=_e.type.contextTypes;if(!tt)return Vf;var rt=_e.stateNode;if(rt&&rt.__reactInternalMemoizedUnmaskedChildContext===et)return rt.__reactInternalMemoizedMaskedChildContext;var nt={},st;for(st in tt)nt[st]=et[st];return rt&&(_e=_e.stateNode,_e.__reactInternalMemoizedUnmaskedChildContext=et,_e.__reactInternalMemoizedMaskedChildContext=nt),nt}function Zf(_e){return _e=_e.childContextTypes,_e!=null}function $f(){E(Wf),E(H)}function ag(_e,et,tt){if(H.current!==Vf)throw Error(p$3(168));G$2(H,et),G$2(Wf,tt)}function bg(_e,et,tt){var rt=_e.stateNode;if(et=et.childContextTypes,typeof rt.getChildContext!="function")return tt;rt=rt.getChildContext();for(var nt in rt)if(!(nt in et))throw Error(p$3(108,Ra(_e)||"Unknown",nt));return A$1({},tt,rt)}function cg(_e){return _e=(_e=_e.stateNode)&&_e.__reactInternalMemoizedMergedChildContext||Vf,Xf=H.current,G$2(H,_e),G$2(Wf,Wf.current),!0}function dg(_e,et,tt){var rt=_e.stateNode;if(!rt)throw Error(p$3(169));tt?(_e=bg(_e,et,Xf),rt.__reactInternalMemoizedMergedChildContext=_e,E(Wf),E(H),G$2(H,_e)):E(Wf),G$2(Wf,tt)}var eg=null,fg=!1,gg=!1;function hg(_e){eg===null?eg=[_e]:eg.push(_e)}function ig(_e){fg=!0,hg(_e)}function jg(){if(!gg&&eg!==null){gg=!0;var _e=0,et=C$1;try{var tt=eg;for(C$1=1;_e<tt.length;_e++){var rt=tt[_e];do rt=rt(!0);while(rt!==null)}eg=null,fg=!1}catch(nt){throw eg!==null&&(eg=eg.slice(_e+1)),ac(fc,jg),nt}finally{C$1=et,gg=!1}}return null}var kg=[],lg=0,mg=null,ng=0,og=[],pg=0,qg=null,rg=1,sg="";function tg(_e,et){kg[lg++]=ng,kg[lg++]=mg,mg=_e,ng=et}function ug(_e,et,tt){og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,qg=_e;var rt=rg;_e=sg;var nt=32-oc(rt)-1;rt&=~(1<<nt),tt+=1;var st=32-oc(et)+nt;if(30<st){var ot=nt-nt%5;st=(rt&(1<<ot)-1).toString(32),rt>>=ot,nt-=ot,rg=1<<32-oc(et)+nt|tt<<nt|rt,sg=st+_e}else rg=1<<st|tt<<nt|rt,sg=_e}function vg(_e){_e.return!==null&&(tg(_e,1),ug(_e,1,0))}function wg(_e){for(;_e===mg;)mg=kg[--lg],kg[lg]=null,ng=kg[--lg],kg[lg]=null;for(;_e===qg;)qg=og[--pg],og[pg]=null,sg=og[--pg],og[pg]=null,rg=og[--pg],og[pg]=null}var xg=null,yg=null,I$2=!1,zg=null;function Ag(_e,et){var tt=Bg(5,null,null,0);tt.elementType="DELETED",tt.stateNode=et,tt.return=_e,et=_e.deletions,et===null?(_e.deletions=[tt],_e.flags|=16):et.push(tt)}function Cg(_e,et){switch(_e.tag){case 5:var tt=_e.type;return et=et.nodeType!==1||tt.toLowerCase()!==et.nodeName.toLowerCase()?null:et,et!==null?(_e.stateNode=et,xg=_e,yg=Lf(et.firstChild),!0):!1;case 6:return et=_e.pendingProps===""||et.nodeType!==3?null:et,et!==null?(_e.stateNode=et,xg=_e,yg=null,!0):!1;case 13:return et=et.nodeType!==8?null:et,et!==null?(tt=qg!==null?{id:rg,overflow:sg}:null,_e.memoizedState={dehydrated:et,treeContext:tt,retryLane:1073741824},tt=Bg(18,null,null,0),tt.stateNode=et,tt.return=_e,_e.child=tt,xg=_e,yg=null,!0):!1;default:return!1}}function Dg(_e){return(_e.mode&1)!==0&&(_e.flags&128)===0}function Eg(_e){if(I$2){var et=yg;if(et){var tt=et;if(!Cg(_e,et)){if(Dg(_e))throw Error(p$3(418));et=Lf(tt.nextSibling);var rt=xg;et&&Cg(_e,et)?Ag(rt,tt):(_e.flags=_e.flags&-4097|2,I$2=!1,xg=_e)}}else{if(Dg(_e))throw Error(p$3(418));_e.flags=_e.flags&-4097|2,I$2=!1,xg=_e}}}function Fg(_e){for(_e=_e.return;_e!==null&&_e.tag!==5&&_e.tag!==3&&_e.tag!==13;)_e=_e.return;xg=_e}function Gg(_e){if(_e!==xg)return!1;if(!I$2)return Fg(_e),I$2=!0,!1;var et;if((et=_e.tag!==3)&&!(et=_e.tag!==5)&&(et=_e.type,et=et!=="head"&&et!=="body"&&!Ef(_e.type,_e.memoizedProps)),et&&(et=yg)){if(Dg(_e))throw Hg(),Error(p$3(418));for(;et;)Ag(_e,et),et=Lf(et.nextSibling)}if(Fg(_e),_e.tag===13){if(_e=_e.memoizedState,_e=_e!==null?_e.dehydrated:null,!_e)throw Error(p$3(317));e:{for(_e=_e.nextSibling,et=0;_e;){if(_e.nodeType===8){var tt=_e.data;if(tt==="/$"){if(et===0){yg=Lf(_e.nextSibling);break e}et--}else tt!=="$"&&tt!=="$!"&&tt!=="$?"||et++}_e=_e.nextSibling}yg=null}}else yg=xg?Lf(_e.stateNode.nextSibling):null;return!0}function Hg(){for(var _e=yg;_e;)_e=Lf(_e.nextSibling)}function Ig(){yg=xg=null,I$2=!1}function Jg(_e){zg===null?zg=[_e]:zg.push(_e)}var Kg=ua.ReactCurrentBatchConfig;function Lg(_e,et){if(_e&&_e.defaultProps){et=A$1({},et),_e=_e.defaultProps;for(var tt in _e)et[tt]===void 0&&(et[tt]=_e[tt]);return et}return et}var Mg=Uf(null),Ng=null,Og=null,Pg=null;function Qg(){Pg=Og=Ng=null}function Rg(_e){var et=Mg.current;E(Mg),_e._currentValue=et}function Sg(_e,et,tt){for(;_e!==null;){var rt=_e.alternate;if((_e.childLanes&et)!==et?(_e.childLanes|=et,rt!==null&&(rt.childLanes|=et)):rt!==null&&(rt.childLanes&et)!==et&&(rt.childLanes|=et),_e===tt)break;_e=_e.return}}function Tg(_e,et){Ng=_e,Pg=Og=null,_e=_e.dependencies,_e!==null&&_e.firstContext!==null&&(_e.lanes&et&&(Ug=!0),_e.firstContext=null)}function Vg(_e){var et=_e._currentValue;if(Pg!==_e)if(_e={context:_e,memoizedValue:et,next:null},Og===null){if(Ng===null)throw Error(p$3(308));Og=_e,Ng.dependencies={lanes:0,firstContext:_e}}else Og=Og.next=_e;return et}var Wg=null;function Xg(_e){Wg===null?Wg=[_e]:Wg.push(_e)}function Yg(_e,et,tt,rt){var nt=et.interleaved;return nt===null?(tt.next=tt,Xg(et)):(tt.next=nt.next,nt.next=tt),et.interleaved=tt,Zg(_e,rt)}function Zg(_e,et){_e.lanes|=et;var tt=_e.alternate;for(tt!==null&&(tt.lanes|=et),tt=_e,_e=_e.return;_e!==null;)_e.childLanes|=et,tt=_e.alternate,tt!==null&&(tt.childLanes|=et),tt=_e,_e=_e.return;return tt.tag===3?tt.stateNode:null}var $g=!1;function ah(_e){_e.updateQueue={baseState:_e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bh(_e,et){_e=_e.updateQueue,et.updateQueue===_e&&(et.updateQueue={baseState:_e.baseState,firstBaseUpdate:_e.firstBaseUpdate,lastBaseUpdate:_e.lastBaseUpdate,shared:_e.shared,effects:_e.effects})}function ch(_e,et){return{eventTime:_e,lane:et,tag:0,payload:null,callback:null,next:null}}function dh(_e,et,tt){var rt=_e.updateQueue;if(rt===null)return null;if(rt=rt.shared,K&2){var nt=rt.pending;return nt===null?et.next=et:(et.next=nt.next,nt.next=et),rt.pending=et,Zg(_e,tt)}return nt=rt.interleaved,nt===null?(et.next=et,Xg(rt)):(et.next=nt.next,nt.next=et),rt.interleaved=et,Zg(_e,tt)}function eh(_e,et,tt){if(et=et.updateQueue,et!==null&&(et=et.shared,(tt&4194240)!==0)){var rt=et.lanes;rt&=_e.pendingLanes,tt|=rt,et.lanes=tt,Cc(_e,tt)}}function fh(_e,et){var tt=_e.updateQueue,rt=_e.alternate;if(rt!==null&&(rt=rt.updateQueue,tt===rt)){var nt=null,st=null;if(tt=tt.firstBaseUpdate,tt!==null){do{var ot={eventTime:tt.eventTime,lane:tt.lane,tag:tt.tag,payload:tt.payload,callback:tt.callback,next:null};st===null?nt=st=ot:st=st.next=ot,tt=tt.next}while(tt!==null);st===null?nt=st=et:st=st.next=et}else nt=st=et;tt={baseState:rt.baseState,firstBaseUpdate:nt,lastBaseUpdate:st,shared:rt.shared,effects:rt.effects},_e.updateQueue=tt;return}_e=tt.lastBaseUpdate,_e===null?tt.firstBaseUpdate=et:_e.next=et,tt.lastBaseUpdate=et}function gh(_e,et,tt,rt){var nt=_e.updateQueue;$g=!1;var st=nt.firstBaseUpdate,ot=nt.lastBaseUpdate,at=nt.shared.pending;if(at!==null){nt.shared.pending=null;var ut=at,lt=ut.next;ut.next=null,ot===null?st=lt:ot.next=lt,ot=ut;var dt=_e.alternate;dt!==null&&(dt=dt.updateQueue,at=dt.lastBaseUpdate,at!==ot&&(at===null?dt.firstBaseUpdate=lt:at.next=lt,dt.lastBaseUpdate=ut))}if(st!==null){var ct=nt.baseState;ot=0,dt=lt=ut=null,at=st;do{var ft=at.lane,ht=at.eventTime;if((rt&ft)===ft){dt!==null&&(dt=dt.next={eventTime:ht,lane:0,tag:at.tag,payload:at.payload,callback:at.callback,next:null});e:{var mt=_e,vt=at;switch(ft=et,ht=tt,vt.tag){case 1:if(mt=vt.payload,typeof mt=="function"){ct=mt.call(ht,ct,ft);break e}ct=mt;break e;case 3:mt.flags=mt.flags&-65537|128;case 0:if(mt=vt.payload,ft=typeof mt=="function"?mt.call(ht,ct,ft):mt,ft==null)break e;ct=A$1({},ct,ft);break e;case 2:$g=!0}}at.callback!==null&&at.lane!==0&&(_e.flags|=64,ft=nt.effects,ft===null?nt.effects=[at]:ft.push(at))}else ht={eventTime:ht,lane:ft,tag:at.tag,payload:at.payload,callback:at.callback,next:null},dt===null?(lt=dt=ht,ut=ct):dt=dt.next=ht,ot|=ft;if(at=at.next,at===null){if(at=nt.shared.pending,at===null)break;ft=at,at=ft.next,ft.next=null,nt.lastBaseUpdate=ft,nt.shared.pending=null}}while(1);if(dt===null&&(ut=ct),nt.baseState=ut,nt.firstBaseUpdate=lt,nt.lastBaseUpdate=dt,et=nt.shared.interleaved,et!==null){nt=et;do ot|=nt.lane,nt=nt.next;while(nt!==et)}else st===null&&(nt.shared.lanes=0);hh|=ot,_e.lanes=ot,_e.memoizedState=ct}}function ih(_e,et,tt){if(_e=et.effects,et.effects=null,_e!==null)for(et=0;et<_e.length;et++){var rt=_e[et],nt=rt.callback;if(nt!==null){if(rt.callback=null,rt=tt,typeof nt!="function")throw Error(p$3(191,nt));nt.call(rt)}}}var jh=new aa.Component().refs;function kh(_e,et,tt,rt){et=_e.memoizedState,tt=tt(rt,et),tt=tt==null?et:A$1({},et,tt),_e.memoizedState=tt,_e.lanes===0&&(_e.updateQueue.baseState=tt)}var nh={isMounted:function(_e){return(_e=_e._reactInternals)?Vb(_e)===_e:!1},enqueueSetState:function(_e,et,tt){_e=_e._reactInternals;var rt=L$1(),nt=lh(_e),st=ch(rt,nt);st.payload=et,tt!=null&&(st.callback=tt),et=dh(_e,st,nt),et!==null&&(mh(et,_e,nt,rt),eh(et,_e,nt))},enqueueReplaceState:function(_e,et,tt){_e=_e._reactInternals;var rt=L$1(),nt=lh(_e),st=ch(rt,nt);st.tag=1,st.payload=et,tt!=null&&(st.callback=tt),et=dh(_e,st,nt),et!==null&&(mh(et,_e,nt,rt),eh(et,_e,nt))},enqueueForceUpdate:function(_e,et){_e=_e._reactInternals;var tt=L$1(),rt=lh(_e),nt=ch(tt,rt);nt.tag=2,et!=null&&(nt.callback=et),et=dh(_e,nt,rt),et!==null&&(mh(et,_e,rt,tt),eh(et,_e,rt))}};function oh(_e,et,tt,rt,nt,st,ot){return _e=_e.stateNode,typeof _e.shouldComponentUpdate=="function"?_e.shouldComponentUpdate(rt,st,ot):et.prototype&&et.prototype.isPureReactComponent?!Ie$1(tt,rt)||!Ie$1(nt,st):!0}function ph(_e,et,tt){var rt=!1,nt=Vf,st=et.contextType;return typeof st=="object"&&st!==null?st=Vg(st):(nt=Zf(et)?Xf:H.current,rt=et.contextTypes,st=(rt=rt!=null)?Yf(_e,nt):Vf),et=new et(tt,st),_e.memoizedState=et.state!==null&&et.state!==void 0?et.state:null,et.updater=nh,_e.stateNode=et,et._reactInternals=_e,rt&&(_e=_e.stateNode,_e.__reactInternalMemoizedUnmaskedChildContext=nt,_e.__reactInternalMemoizedMaskedChildContext=st),et}function qh(_e,et,tt,rt){_e=et.state,typeof et.componentWillReceiveProps=="function"&&et.componentWillReceiveProps(tt,rt),typeof et.UNSAFE_componentWillReceiveProps=="function"&&et.UNSAFE_componentWillReceiveProps(tt,rt),et.state!==_e&&nh.enqueueReplaceState(et,et.state,null)}function rh(_e,et,tt,rt){var nt=_e.stateNode;nt.props=tt,nt.state=_e.memoizedState,nt.refs=jh,ah(_e);var st=et.contextType;typeof st=="object"&&st!==null?nt.context=Vg(st):(st=Zf(et)?Xf:H.current,nt.context=Yf(_e,st)),nt.state=_e.memoizedState,st=et.getDerivedStateFromProps,typeof st=="function"&&(kh(_e,et,st,tt),nt.state=_e.memoizedState),typeof et.getDerivedStateFromProps=="function"||typeof nt.getSnapshotBeforeUpdate=="function"||typeof nt.UNSAFE_componentWillMount!="function"&&typeof nt.componentWillMount!="function"||(et=nt.state,typeof nt.componentWillMount=="function"&&nt.componentWillMount(),typeof nt.UNSAFE_componentWillMount=="function"&&nt.UNSAFE_componentWillMount(),et!==nt.state&&nh.enqueueReplaceState(nt,nt.state,null),gh(_e,tt,nt,rt),nt.state=_e.memoizedState),typeof nt.componentDidMount=="function"&&(_e.flags|=4194308)}function sh(_e,et,tt){if(_e=tt.ref,_e!==null&&typeof _e!="function"&&typeof _e!="object"){if(tt._owner){if(tt=tt._owner,tt){if(tt.tag!==1)throw Error(p$3(309));var rt=tt.stateNode}if(!rt)throw Error(p$3(147,_e));var nt=rt,st=""+_e;return et!==null&&et.ref!==null&&typeof et.ref=="function"&&et.ref._stringRef===st?et.ref:(et=function(ot){var at=nt.refs;at===jh&&(at=nt.refs={}),ot===null?delete at[st]:at[st]=ot},et._stringRef=st,et)}if(typeof _e!="string")throw Error(p$3(284));if(!tt._owner)throw Error(p$3(290,_e))}return _e}function th(_e,et){throw _e=Object.prototype.toString.call(et),Error(p$3(31,_e==="[object Object]"?"object with keys {"+Object.keys(et).join(", ")+"}":_e))}function uh(_e){var et=_e._init;return et(_e._payload)}function vh(_e){function et(gt,yt){if(_e){var xt=gt.deletions;xt===null?(gt.deletions=[yt],gt.flags|=16):xt.push(yt)}}function tt(gt,yt){if(!_e)return null;for(;yt!==null;)et(gt,yt),yt=yt.sibling;return null}function rt(gt,yt){for(gt=new Map;yt!==null;)yt.key!==null?gt.set(yt.key,yt):gt.set(yt.index,yt),yt=yt.sibling;return gt}function nt(gt,yt){return gt=wh(gt,yt),gt.index=0,gt.sibling=null,gt}function st(gt,yt,xt){return gt.index=xt,_e?(xt=gt.alternate,xt!==null?(xt=xt.index,xt<yt?(gt.flags|=2,yt):xt):(gt.flags|=2,yt)):(gt.flags|=1048576,yt)}function ot(gt){return _e&>.alternate===null&&(gt.flags|=2),gt}function at(gt,yt,xt,St){return yt===null||yt.tag!==6?(yt=xh(xt,gt.mode,St),yt.return=gt,yt):(yt=nt(yt,xt),yt.return=gt,yt)}function ut(gt,yt,xt,St){var bt=xt.type;return bt===ya?dt(gt,yt,xt.props.children,St,xt.key):yt!==null&&(yt.elementType===bt||typeof bt=="object"&&bt!==null&&bt.$$typeof===Ha&&uh(bt)===yt.type)?(St=nt(yt,xt.props),St.ref=sh(gt,yt,xt),St.return=gt,St):(St=yh(xt.type,xt.key,xt.props,null,gt.mode,St),St.ref=sh(gt,yt,xt),St.return=gt,St)}function lt(gt,yt,xt,St){return yt===null||yt.tag!==4||yt.stateNode.containerInfo!==xt.containerInfo||yt.stateNode.implementation!==xt.implementation?(yt=zh(xt,gt.mode,St),yt.return=gt,yt):(yt=nt(yt,xt.children||[]),yt.return=gt,yt)}function dt(gt,yt,xt,St,bt){return yt===null||yt.tag!==7?(yt=Ah(xt,gt.mode,St,bt),yt.return=gt,yt):(yt=nt(yt,xt),yt.return=gt,yt)}function ct(gt,yt,xt){if(typeof yt=="string"&&yt!==""||typeof yt=="number")return yt=xh(""+yt,gt.mode,xt),yt.return=gt,yt;if(typeof yt=="object"&&yt!==null){switch(yt.$$typeof){case va:return xt=yh(yt.type,yt.key,yt.props,null,gt.mode,xt),xt.ref=sh(gt,null,yt),xt.return=gt,xt;case wa:return yt=zh(yt,gt.mode,xt),yt.return=gt,yt;case Ha:var St=yt._init;return ct(gt,St(yt._payload),xt)}if(eb(yt)||Ka(yt))return yt=Ah(yt,gt.mode,xt,null),yt.return=gt,yt;th(gt,yt)}return null}function ft(gt,yt,xt,St){var bt=yt!==null?yt.key:null;if(typeof xt=="string"&&xt!==""||typeof xt=="number")return bt!==null?null:at(gt,yt,""+xt,St);if(typeof xt=="object"&&xt!==null){switch(xt.$$typeof){case va:return xt.key===bt?ut(gt,yt,xt,St):null;case wa:return xt.key===bt?lt(gt,yt,xt,St):null;case Ha:return bt=xt._init,ft(gt,yt,bt(xt._payload),St)}if(eb(xt)||Ka(xt))return bt!==null?null:dt(gt,yt,xt,St,null);th(gt,xt)}return null}function ht(gt,yt,xt,St,bt){if(typeof St=="string"&&St!==""||typeof St=="number")return gt=gt.get(xt)||null,at(yt,gt,""+St,bt);if(typeof St=="object"&&St!==null){switch(St.$$typeof){case va:return gt=gt.get(St.key===null?xt:St.key)||null,ut(yt,gt,St,bt);case wa:return gt=gt.get(St.key===null?xt:St.key)||null,lt(yt,gt,St,bt);case Ha:var $t=St._init;return ht(gt,yt,xt,$t(St._payload),bt)}if(eb(St)||Ka(St))return gt=gt.get(xt)||null,dt(yt,gt,St,bt,null);th(yt,St)}return null}function mt(gt,yt,xt,St){for(var bt=null,$t=null,At=yt,Tt=yt=0,Ft=null;At!==null&&Tt<xt.length;Tt++){At.index>Tt?(Ft=At,At=null):Ft=At.sibling;var Pt=ft(gt,At,xt[Tt],St);if(Pt===null){At===null&&(At=Ft);break}_e&&At&&Pt.alternate===null&&et(gt,At),yt=st(Pt,yt,Tt),$t===null?bt=Pt:$t.sibling=Pt,$t=Pt,At=Ft}if(Tt===xt.length)return tt(gt,At),I$2&&tg(gt,Tt),bt;if(At===null){for(;Tt<xt.length;Tt++)At=ct(gt,xt[Tt],St),At!==null&&(yt=st(At,yt,Tt),$t===null?bt=At:$t.sibling=At,$t=At);return I$2&&tg(gt,Tt),bt}for(At=rt(gt,At);Tt<xt.length;Tt++)Ft=ht(At,gt,Tt,xt[Tt],St),Ft!==null&&(_e&&Ft.alternate!==null&&At.delete(Ft.key===null?Tt:Ft.key),yt=st(Ft,yt,Tt),$t===null?bt=Ft:$t.sibling=Ft,$t=Ft);return _e&&At.forEach(function(Dt){return et(gt,Dt)}),I$2&&tg(gt,Tt),bt}function vt(gt,yt,xt,St){var bt=Ka(xt);if(typeof bt!="function")throw Error(p$3(150));if(xt=bt.call(xt),xt==null)throw Error(p$3(151));for(var $t=bt=null,At=yt,Tt=yt=0,Ft=null,Pt=xt.next();At!==null&&!Pt.done;Tt++,Pt=xt.next()){At.index>Tt?(Ft=At,At=null):Ft=At.sibling;var Dt=ft(gt,At,Pt.value,St);if(Dt===null){At===null&&(At=Ft);break}_e&&At&&Dt.alternate===null&&et(gt,At),yt=st(Dt,yt,Tt),$t===null?bt=Dt:$t.sibling=Dt,$t=Dt,At=Ft}if(Pt.done)return tt(gt,At),I$2&&tg(gt,Tt),bt;if(At===null){for(;!Pt.done;Tt++,Pt=xt.next())Pt=ct(gt,Pt.value,St),Pt!==null&&(yt=st(Pt,yt,Tt),$t===null?bt=Pt:$t.sibling=Pt,$t=Pt);return I$2&&tg(gt,Tt),bt}for(At=rt(gt,At);!Pt.done;Tt++,Pt=xt.next())Pt=ht(At,gt,Tt,Pt.value,St),Pt!==null&&(_e&&Pt.alternate!==null&&At.delete(Pt.key===null?Tt:Pt.key),yt=st(Pt,yt,Tt),$t===null?bt=Pt:$t.sibling=Pt,$t=Pt);return _e&&At.forEach(function(Mt){return et(gt,Mt)}),I$2&&tg(gt,Tt),bt}function wt(gt,yt,xt,St){if(typeof xt=="object"&&xt!==null&&xt.type===ya&&xt.key===null&&(xt=xt.props.children),typeof xt=="object"&&xt!==null){switch(xt.$$typeof){case va:e:{for(var bt=xt.key,$t=yt;$t!==null;){if($t.key===bt){if(bt=xt.type,bt===ya){if($t.tag===7){tt(gt,$t.sibling),yt=nt($t,xt.props.children),yt.return=gt,gt=yt;break e}}else if($t.elementType===bt||typeof bt=="object"&&bt!==null&&bt.$$typeof===Ha&&uh(bt)===$t.type){tt(gt,$t.sibling),yt=nt($t,xt.props),yt.ref=sh(gt,$t,xt),yt.return=gt,gt=yt;break e}tt(gt,$t);break}else et(gt,$t);$t=$t.sibling}xt.type===ya?(yt=Ah(xt.props.children,gt.mode,St,xt.key),yt.return=gt,gt=yt):(St=yh(xt.type,xt.key,xt.props,null,gt.mode,St),St.ref=sh(gt,yt,xt),St.return=gt,gt=St)}return ot(gt);case wa:e:{for($t=xt.key;yt!==null;){if(yt.key===$t)if(yt.tag===4&&yt.stateNode.containerInfo===xt.containerInfo&&yt.stateNode.implementation===xt.implementation){tt(gt,yt.sibling),yt=nt(yt,xt.children||[]),yt.return=gt,gt=yt;break e}else{tt(gt,yt);break}else et(gt,yt);yt=yt.sibling}yt=zh(xt,gt.mode,St),yt.return=gt,gt=yt}return ot(gt);case Ha:return $t=xt._init,wt(gt,yt,$t(xt._payload),St)}if(eb(xt))return mt(gt,yt,xt,St);if(Ka(xt))return vt(gt,yt,xt,St);th(gt,xt)}return typeof xt=="string"&&xt!==""||typeof xt=="number"?(xt=""+xt,yt!==null&&yt.tag===6?(tt(gt,yt.sibling),yt=nt(yt,xt),yt.return=gt,gt=yt):(tt(gt,yt),yt=xh(xt,gt.mode,St),yt.return=gt,gt=yt),ot(gt)):tt(gt,yt)}return wt}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(_e){if(_e===Dh)throw Error(p$3(174));return _e}function Ih(_e,et){switch(G$2(Gh,et),G$2(Fh,_e),G$2(Eh,Dh),_e=et.nodeType,_e){case 9:case 11:et=(et=et.documentElement)?et.namespaceURI:lb(null,"");break;default:_e=_e===8?et.parentNode:et,et=_e.namespaceURI||null,_e=_e.tagName,et=lb(et,_e)}E(Eh),G$2(Eh,et)}function Jh(){E(Eh),E(Fh),E(Gh)}function Kh(_e){Hh(Gh.current);var et=Hh(Eh.current),tt=lb(et,_e.type);et!==tt&&(G$2(Fh,_e),G$2(Eh,tt))}function Lh(_e){Fh.current===_e&&(E(Eh),E(Fh))}var M$1=Uf(0);function Mh(_e){for(var et=_e;et!==null;){if(et.tag===13){var tt=et.memoizedState;if(tt!==null&&(tt=tt.dehydrated,tt===null||tt.data==="$?"||tt.data==="$!"))return et}else if(et.tag===19&&et.memoizedProps.revealOrder!==void 0){if(et.flags&128)return et}else if(et.child!==null){et.child.return=et,et=et.child;continue}if(et===_e)break;for(;et.sibling===null;){if(et.return===null||et.return===_e)return null;et=et.return}et.sibling.return=et.return,et=et.sibling}return null}var Nh=[];function Oh(){for(var _e=0;_e<Nh.length;_e++)Nh[_e]._workInProgressVersionPrimary=null;Nh.length=0}var Ph=ua.ReactCurrentDispatcher,Qh=ua.ReactCurrentBatchConfig,Rh=0,N=null,O$2=null,P$1=null,Sh=!1,Th=!1,Uh=0,Vh=0;function Q$1(){throw Error(p$3(321))}function Wh(_e,et){if(et===null)return!1;for(var tt=0;tt<et.length&&tt<_e.length;tt++)if(!He(_e[tt],et[tt]))return!1;return!0}function Xh(_e,et,tt,rt,nt,st){if(Rh=st,N=et,et.memoizedState=null,et.updateQueue=null,et.lanes=0,Ph.current=_e===null||_e.memoizedState===null?Yh:Zh,_e=tt(rt,nt),Th){st=0;do{if(Th=!1,Uh=0,25<=st)throw Error(p$3(301));st+=1,P$1=O$2=null,et.updateQueue=null,Ph.current=$h,_e=tt(rt,nt)}while(Th)}if(Ph.current=ai,et=O$2!==null&&O$2.next!==null,Rh=0,P$1=O$2=N=null,Sh=!1,et)throw Error(p$3(300));return _e}function bi(){var _e=Uh!==0;return Uh=0,_e}function ci(){var _e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return P$1===null?N.memoizedState=P$1=_e:P$1=P$1.next=_e,P$1}function di(){if(O$2===null){var _e=N.alternate;_e=_e!==null?_e.memoizedState:null}else _e=O$2.next;var et=P$1===null?N.memoizedState:P$1.next;if(et!==null)P$1=et,O$2=_e;else{if(_e===null)throw Error(p$3(310));O$2=_e,_e={memoizedState:O$2.memoizedState,baseState:O$2.baseState,baseQueue:O$2.baseQueue,queue:O$2.queue,next:null},P$1===null?N.memoizedState=P$1=_e:P$1=P$1.next=_e}return P$1}function ei(_e,et){return typeof et=="function"?et(_e):et}function fi(_e){var et=di(),tt=et.queue;if(tt===null)throw Error(p$3(311));tt.lastRenderedReducer=_e;var rt=O$2,nt=rt.baseQueue,st=tt.pending;if(st!==null){if(nt!==null){var ot=nt.next;nt.next=st.next,st.next=ot}rt.baseQueue=nt=st,tt.pending=null}if(nt!==null){st=nt.next,rt=rt.baseState;var at=ot=null,ut=null,lt=st;do{var dt=lt.lane;if((Rh&dt)===dt)ut!==null&&(ut=ut.next={lane:0,action:lt.action,hasEagerState:lt.hasEagerState,eagerState:lt.eagerState,next:null}),rt=lt.hasEagerState?lt.eagerState:_e(rt,lt.action);else{var ct={lane:dt,action:lt.action,hasEagerState:lt.hasEagerState,eagerState:lt.eagerState,next:null};ut===null?(at=ut=ct,ot=rt):ut=ut.next=ct,N.lanes|=dt,hh|=dt}lt=lt.next}while(lt!==null&<!==st);ut===null?ot=rt:ut.next=at,He(rt,et.memoizedState)||(Ug=!0),et.memoizedState=rt,et.baseState=ot,et.baseQueue=ut,tt.lastRenderedState=rt}if(_e=tt.interleaved,_e!==null){nt=_e;do st=nt.lane,N.lanes|=st,hh|=st,nt=nt.next;while(nt!==_e)}else nt===null&&(tt.lanes=0);return[et.memoizedState,tt.dispatch]}function gi(_e){var et=di(),tt=et.queue;if(tt===null)throw Error(p$3(311));tt.lastRenderedReducer=_e;var rt=tt.dispatch,nt=tt.pending,st=et.memoizedState;if(nt!==null){tt.pending=null;var ot=nt=nt.next;do st=_e(st,ot.action),ot=ot.next;while(ot!==nt);He(st,et.memoizedState)||(Ug=!0),et.memoizedState=st,et.baseQueue===null&&(et.baseState=st),tt.lastRenderedState=st}return[st,rt]}function hi(){}function ii(_e,et){var tt=N,rt=di(),nt=et(),st=!He(rt.memoizedState,nt);if(st&&(rt.memoizedState=nt,Ug=!0),rt=rt.queue,ji(ki.bind(null,tt,rt,_e),[_e]),rt.getSnapshot!==et||st||P$1!==null&&P$1.memoizedState.tag&1){if(tt.flags|=2048,li(9,mi.bind(null,tt,rt,nt,et),void 0,null),R===null)throw Error(p$3(349));Rh&30||ni(tt,et,nt)}return nt}function ni(_e,et,tt){_e.flags|=16384,_e={getSnapshot:et,value:tt},et=N.updateQueue,et===null?(et={lastEffect:null,stores:null},N.updateQueue=et,et.stores=[_e]):(tt=et.stores,tt===null?et.stores=[_e]:tt.push(_e))}function mi(_e,et,tt,rt){et.value=tt,et.getSnapshot=rt,oi(et)&&pi(_e)}function ki(_e,et,tt){return tt(function(){oi(et)&&pi(_e)})}function oi(_e){var et=_e.getSnapshot;_e=_e.value;try{var tt=et();return!He(_e,tt)}catch{return!0}}function pi(_e){var et=Zg(_e,1);et!==null&&mh(et,_e,1,-1)}function qi(_e){var et=ci();return typeof _e=="function"&&(_e=_e()),et.memoizedState=et.baseState=_e,_e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ei,lastRenderedState:_e},et.queue=_e,_e=_e.dispatch=ri.bind(null,N,_e),[et.memoizedState,_e]}function li(_e,et,tt,rt){return _e={tag:_e,create:et,destroy:tt,deps:rt,next:null},et=N.updateQueue,et===null?(et={lastEffect:null,stores:null},N.updateQueue=et,et.lastEffect=_e.next=_e):(tt=et.lastEffect,tt===null?et.lastEffect=_e.next=_e:(rt=tt.next,tt.next=_e,_e.next=rt,et.lastEffect=_e)),_e}function si(){return di().memoizedState}function ti(_e,et,tt,rt){var nt=ci();N.flags|=_e,nt.memoizedState=li(1|et,tt,void 0,rt===void 0?null:rt)}function ui(_e,et,tt,rt){var nt=di();rt=rt===void 0?null:rt;var st=void 0;if(O$2!==null){var ot=O$2.memoizedState;if(st=ot.destroy,rt!==null&&Wh(rt,ot.deps)){nt.memoizedState=li(et,tt,st,rt);return}}N.flags|=_e,nt.memoizedState=li(1|et,tt,st,rt)}function vi(_e,et){return ti(8390656,8,_e,et)}function ji(_e,et){return ui(2048,8,_e,et)}function wi(_e,et){return ui(4,2,_e,et)}function xi(_e,et){return ui(4,4,_e,et)}function yi(_e,et){if(typeof et=="function")return _e=_e(),et(_e),function(){et(null)};if(et!=null)return _e=_e(),et.current=_e,function(){et.current=null}}function zi(_e,et,tt){return tt=tt!=null?tt.concat([_e]):null,ui(4,4,yi.bind(null,et,_e),tt)}function Ai(){}function Bi(_e,et){var tt=di();et=et===void 0?null:et;var rt=tt.memoizedState;return rt!==null&&et!==null&&Wh(et,rt[1])?rt[0]:(tt.memoizedState=[_e,et],_e)}function Ci(_e,et){var tt=di();et=et===void 0?null:et;var rt=tt.memoizedState;return rt!==null&&et!==null&&Wh(et,rt[1])?rt[0]:(_e=_e(),tt.memoizedState=[_e,et],_e)}function Di(_e,et,tt){return Rh&21?(He(tt,et)||(tt=yc(),N.lanes|=tt,hh|=tt,_e.baseState=!0),et):(_e.baseState&&(_e.baseState=!1,Ug=!0),_e.memoizedState=tt)}function Ei(_e,et){var tt=C$1;C$1=tt!==0&&4>tt?tt:4,_e(!0);var rt=Qh.transition;Qh.transition={};try{_e(!1),et()}finally{C$1=tt,Qh.transition=rt}}function Fi(){return di().memoizedState}function Gi(_e,et,tt){var rt=lh(_e);if(tt={lane:rt,action:tt,hasEagerState:!1,eagerState:null,next:null},Hi(_e))Ii(et,tt);else if(tt=Yg(_e,et,tt,rt),tt!==null){var nt=L$1();mh(tt,_e,rt,nt),Ji(tt,et,rt)}}function ri(_e,et,tt){var rt=lh(_e),nt={lane:rt,action:tt,hasEagerState:!1,eagerState:null,next:null};if(Hi(_e))Ii(et,nt);else{var st=_e.alternate;if(_e.lanes===0&&(st===null||st.lanes===0)&&(st=et.lastRenderedReducer,st!==null))try{var ot=et.lastRenderedState,at=st(ot,tt);if(nt.hasEagerState=!0,nt.eagerState=at,He(at,ot)){var ut=et.interleaved;ut===null?(nt.next=nt,Xg(et)):(nt.next=ut.next,ut.next=nt),et.interleaved=nt;return}}catch{}finally{}tt=Yg(_e,et,nt,rt),tt!==null&&(nt=L$1(),mh(tt,_e,rt,nt),Ji(tt,et,rt))}}function Hi(_e){var et=_e.alternate;return _e===N||et!==null&&et===N}function Ii(_e,et){Th=Sh=!0;var tt=_e.pending;tt===null?et.next=et:(et.next=tt.next,tt.next=et),_e.pending=et}function Ji(_e,et,tt){if(tt&4194240){var rt=et.lanes;rt&=_e.pendingLanes,tt|=rt,et.lanes=tt,Cc(_e,tt)}}var ai={readContext:Vg,useCallback:Q$1,useContext:Q$1,useEffect:Q$1,useImperativeHandle:Q$1,useInsertionEffect:Q$1,useLayoutEffect:Q$1,useMemo:Q$1,useReducer:Q$1,useRef:Q$1,useState:Q$1,useDebugValue:Q$1,useDeferredValue:Q$1,useTransition:Q$1,useMutableSource:Q$1,useSyncExternalStore:Q$1,useId:Q$1,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(_e,et){return ci().memoizedState=[_e,et===void 0?null:et],_e},useContext:Vg,useEffect:vi,useImperativeHandle:function(_e,et,tt){return tt=tt!=null?tt.concat([_e]):null,ti(4194308,4,yi.bind(null,et,_e),tt)},useLayoutEffect:function(_e,et){return ti(4194308,4,_e,et)},useInsertionEffect:function(_e,et){return ti(4,2,_e,et)},useMemo:function(_e,et){var tt=ci();return et=et===void 0?null:et,_e=_e(),tt.memoizedState=[_e,et],_e},useReducer:function(_e,et,tt){var rt=ci();return et=tt!==void 0?tt(et):et,rt.memoizedState=rt.baseState=et,_e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_e,lastRenderedState:et},rt.queue=_e,_e=_e.dispatch=Gi.bind(null,N,_e),[rt.memoizedState,_e]},useRef:function(_e){var et=ci();return _e={current:_e},et.memoizedState=_e},useState:qi,useDebugValue:Ai,useDeferredValue:function(_e){return ci().memoizedState=_e},useTransition:function(){var _e=qi(!1),et=_e[0];return _e=Ei.bind(null,_e[1]),ci().memoizedState=_e,[et,_e]},useMutableSource:function(){},useSyncExternalStore:function(_e,et,tt){var rt=N,nt=ci();if(I$2){if(tt===void 0)throw Error(p$3(407));tt=tt()}else{if(tt=et(),R===null)throw Error(p$3(349));Rh&30||ni(rt,et,tt)}nt.memoizedState=tt;var st={value:tt,getSnapshot:et};return nt.queue=st,vi(ki.bind(null,rt,st,_e),[_e]),rt.flags|=2048,li(9,mi.bind(null,rt,st,tt,et),void 0,null),tt},useId:function(){var _e=ci(),et=R.identifierPrefix;if(I$2){var tt=sg,rt=rg;tt=(rt&~(1<<32-oc(rt)-1)).toString(32)+tt,et=":"+et+"R"+tt,tt=Uh++,0<tt&&(et+="H"+tt.toString(32)),et+=":"}else tt=Vh++,et=":"+et+"r"+tt.toString(32)+":";return _e.memoizedState=et},unstable_isNewReconciler:!1},Zh={readContext:Vg,useCallback:Bi,useContext:Vg,useEffect:ji,useImperativeHandle:zi,useInsertionEffect:wi,useLayoutEffect:xi,useMemo:Ci,useReducer:fi,useRef:si,useState:function(){return fi(ei)},useDebugValue:Ai,useDeferredValue:function(_e){var et=di();return Di(et,O$2.memoizedState,_e)},useTransition:function(){var _e=fi(ei)[0],et=di().memoizedState;return[_e,et]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1},$h={readContext:Vg,useCallback:Bi,useContext:Vg,useEffect:ji,useImperativeHandle:zi,useInsertionEffect:wi,useLayoutEffect:xi,useMemo:Ci,useReducer:gi,useRef:si,useState:function(){return gi(ei)},useDebugValue:Ai,useDeferredValue:function(_e){var et=di();return O$2===null?et.memoizedState=_e:Di(et,O$2.memoizedState,_e)},useTransition:function(){var _e=gi(ei)[0],et=di().memoizedState;return[_e,et]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1};function Ki(_e,et){try{var tt="",rt=et;do tt+=Pa(rt),rt=rt.return;while(rt);var nt=tt}catch(st){nt=`
|
|
39
|
-
Error generating stack: `+
|
|
40
|
-
`+st.stack}return{value:_e,source:et,stack:nt,digest:null}}function Li(_e,et,tt){return{value:_e,source:null,stack:tt??null,digest:et??null}}function Mi(_e,et){try{console.error(et.value)}catch(tt){setTimeout(function(){throw tt})}}var Ni=typeof WeakMap=="function"?WeakMap:Map;function Oi(_e,et,tt){tt=ch(-1,tt),tt.tag=3,tt.payload={element:null};var rt=et.value;return tt.callback=function(){Pi||(Pi=!0,Qi=rt),Mi(_e,et)},tt}function Ri(_e,et,tt){tt=ch(-1,tt),tt.tag=3;var rt=_e.type.getDerivedStateFromError;if(typeof rt=="function"){var nt=et.value;tt.payload=function(){return rt(nt)},tt.callback=function(){Mi(_e,et)}}var st=_e.stateNode;return st!==null&&typeof st.componentDidCatch=="function"&&(tt.callback=function(){Mi(_e,et),typeof rt!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var ot=et.stack;this.componentDidCatch(et.value,{componentStack:ot!==null?ot:""})}),tt}function Ti(_e,et,tt){var rt=_e.pingCache;if(rt===null){rt=_e.pingCache=new Ni;var nt=new Set;rt.set(et,nt)}else nt=rt.get(et),nt===void 0&&(nt=new Set,rt.set(et,nt));nt.has(tt)||(nt.add(tt),_e=Ui.bind(null,_e,et,tt),et.then(_e,_e))}function Vi(_e){do{var et;if((et=_e.tag===13)&&(et=_e.memoizedState,et=et!==null?et.dehydrated!==null:!0),et)return _e;_e=_e.return}while(_e!==null);return null}function Wi(_e,et,tt,rt,nt){return _e.mode&1?(_e.flags|=65536,_e.lanes=nt,_e):(_e===et?_e.flags|=65536:(_e.flags|=128,tt.flags|=131072,tt.flags&=-52805,tt.tag===1&&(tt.alternate===null?tt.tag=17:(et=ch(-1,1),et.tag=2,dh(tt,et,1))),tt.lanes|=1),_e)}var Xi=ua.ReactCurrentOwner,Ug=!1;function Yi(_e,et,tt,rt){et.child=_e===null?Ch(et,null,tt,rt):Bh(et,_e.child,tt,rt)}function Zi(_e,et,tt,rt,nt){tt=tt.render;var st=et.ref;return Tg(et,nt),rt=Xh(_e,et,tt,rt,st,nt),tt=bi(),_e!==null&&!Ug?(et.updateQueue=_e.updateQueue,et.flags&=-2053,_e.lanes&=~nt,$i(_e,et,nt)):(I$2&&tt&&vg(et),et.flags|=1,Yi(_e,et,rt,nt),et.child)}function aj(_e,et,tt,rt,nt){if(_e===null){var st=tt.type;return typeof st=="function"&&!bj(st)&&st.defaultProps===void 0&&tt.compare===null&&tt.defaultProps===void 0?(et.tag=15,et.type=st,cj(_e,et,st,rt,nt)):(_e=yh(tt.type,null,rt,et,et.mode,nt),_e.ref=et.ref,_e.return=et,et.child=_e)}if(st=_e.child,!(_e.lanes&nt)){var ot=st.memoizedProps;if(tt=tt.compare,tt=tt!==null?tt:Ie$1,tt(ot,rt)&&_e.ref===et.ref)return $i(_e,et,nt)}return et.flags|=1,_e=wh(st,rt),_e.ref=et.ref,_e.return=et,et.child=_e}function cj(_e,et,tt,rt,nt){if(_e!==null){var st=_e.memoizedProps;if(Ie$1(st,rt)&&_e.ref===et.ref)if(Ug=!1,et.pendingProps=rt=st,(_e.lanes&nt)!==0)_e.flags&131072&&(Ug=!0);else return et.lanes=_e.lanes,$i(_e,et,nt)}return dj(_e,et,tt,rt,nt)}function ej(_e,et,tt){var rt=et.pendingProps,nt=rt.children,st=_e!==null?_e.memoizedState:null;if(rt.mode==="hidden")if(!(et.mode&1))et.memoizedState={baseLanes:0,cachePool:null,transitions:null},G$2(fj,gj),gj|=tt;else{if(!(tt&1073741824))return _e=st!==null?st.baseLanes|tt:tt,et.lanes=et.childLanes=1073741824,et.memoizedState={baseLanes:_e,cachePool:null,transitions:null},et.updateQueue=null,G$2(fj,gj),gj|=_e,null;et.memoizedState={baseLanes:0,cachePool:null,transitions:null},rt=st!==null?st.baseLanes:tt,G$2(fj,gj),gj|=rt}else st!==null?(rt=st.baseLanes|tt,et.memoizedState=null):rt=tt,G$2(fj,gj),gj|=rt;return Yi(_e,et,nt,tt),et.child}function hj(_e,et){var tt=et.ref;(_e===null&&tt!==null||_e!==null&&_e.ref!==tt)&&(et.flags|=512,et.flags|=2097152)}function dj(_e,et,tt,rt,nt){var st=Zf(tt)?Xf:H.current;return st=Yf(et,st),Tg(et,nt),tt=Xh(_e,et,tt,rt,st,nt),rt=bi(),_e!==null&&!Ug?(et.updateQueue=_e.updateQueue,et.flags&=-2053,_e.lanes&=~nt,$i(_e,et,nt)):(I$2&&rt&&vg(et),et.flags|=1,Yi(_e,et,tt,nt),et.child)}function ij(_e,et,tt,rt,nt){if(Zf(tt)){var st=!0;cg(et)}else st=!1;if(Tg(et,nt),et.stateNode===null)jj(_e,et),ph(et,tt,rt),rh(et,tt,rt,nt),rt=!0;else if(_e===null){var ot=et.stateNode,at=et.memoizedProps;ot.props=at;var ut=ot.context,lt=tt.contextType;typeof lt=="object"&<!==null?lt=Vg(lt):(lt=Zf(tt)?Xf:H.current,lt=Yf(et,lt));var dt=tt.getDerivedStateFromProps,ct=typeof dt=="function"||typeof ot.getSnapshotBeforeUpdate=="function";ct||typeof ot.UNSAFE_componentWillReceiveProps!="function"&&typeof ot.componentWillReceiveProps!="function"||(at!==rt||ut!==lt)&&qh(et,ot,rt,lt),$g=!1;var ft=et.memoizedState;ot.state=ft,gh(et,rt,ot,nt),ut=et.memoizedState,at!==rt||ft!==ut||Wf.current||$g?(typeof dt=="function"&&(kh(et,tt,dt,rt),ut=et.memoizedState),(at=$g||oh(et,tt,at,rt,ft,ut,lt))?(ct||typeof ot.UNSAFE_componentWillMount!="function"&&typeof ot.componentWillMount!="function"||(typeof ot.componentWillMount=="function"&&ot.componentWillMount(),typeof ot.UNSAFE_componentWillMount=="function"&&ot.UNSAFE_componentWillMount()),typeof ot.componentDidMount=="function"&&(et.flags|=4194308)):(typeof ot.componentDidMount=="function"&&(et.flags|=4194308),et.memoizedProps=rt,et.memoizedState=ut),ot.props=rt,ot.state=ut,ot.context=lt,rt=at):(typeof ot.componentDidMount=="function"&&(et.flags|=4194308),rt=!1)}else{ot=et.stateNode,bh(_e,et),at=et.memoizedProps,lt=et.type===et.elementType?at:Lg(et.type,at),ot.props=lt,ct=et.pendingProps,ft=ot.context,ut=tt.contextType,typeof ut=="object"&&ut!==null?ut=Vg(ut):(ut=Zf(tt)?Xf:H.current,ut=Yf(et,ut));var ht=tt.getDerivedStateFromProps;(dt=typeof ht=="function"||typeof ot.getSnapshotBeforeUpdate=="function")||typeof ot.UNSAFE_componentWillReceiveProps!="function"&&typeof ot.componentWillReceiveProps!="function"||(at!==ct||ft!==ut)&&qh(et,ot,rt,ut),$g=!1,ft=et.memoizedState,ot.state=ft,gh(et,rt,ot,nt);var mt=et.memoizedState;at!==ct||ft!==mt||Wf.current||$g?(typeof ht=="function"&&(kh(et,tt,ht,rt),mt=et.memoizedState),(lt=$g||oh(et,tt,lt,rt,ft,mt,ut)||!1)?(dt||typeof ot.UNSAFE_componentWillUpdate!="function"&&typeof ot.componentWillUpdate!="function"||(typeof ot.componentWillUpdate=="function"&&ot.componentWillUpdate(rt,mt,ut),typeof ot.UNSAFE_componentWillUpdate=="function"&&ot.UNSAFE_componentWillUpdate(rt,mt,ut)),typeof ot.componentDidUpdate=="function"&&(et.flags|=4),typeof ot.getSnapshotBeforeUpdate=="function"&&(et.flags|=1024)):(typeof ot.componentDidUpdate!="function"||at===_e.memoizedProps&&ft===_e.memoizedState||(et.flags|=4),typeof ot.getSnapshotBeforeUpdate!="function"||at===_e.memoizedProps&&ft===_e.memoizedState||(et.flags|=1024),et.memoizedProps=rt,et.memoizedState=mt),ot.props=rt,ot.state=mt,ot.context=ut,rt=lt):(typeof ot.componentDidUpdate!="function"||at===_e.memoizedProps&&ft===_e.memoizedState||(et.flags|=4),typeof ot.getSnapshotBeforeUpdate!="function"||at===_e.memoizedProps&&ft===_e.memoizedState||(et.flags|=1024),rt=!1)}return kj(_e,et,tt,rt,st,nt)}function kj(_e,et,tt,rt,nt,st){hj(_e,et);var ot=(et.flags&128)!==0;if(!rt&&!ot)return nt&&dg(et,tt,!1),$i(_e,et,st);rt=et.stateNode,Xi.current=et;var at=ot&&typeof tt.getDerivedStateFromError!="function"?null:rt.render();return et.flags|=1,_e!==null&&ot?(et.child=Bh(et,_e.child,null,st),et.child=Bh(et,null,at,st)):Yi(_e,et,at,st),et.memoizedState=rt.state,nt&&dg(et,tt,!0),et.child}function lj(_e){var et=_e.stateNode;et.pendingContext?ag(_e,et.pendingContext,et.pendingContext!==et.context):et.context&&ag(_e,et.context,!1),Ih(_e,et.containerInfo)}function mj(_e,et,tt,rt,nt){return Ig(),Jg(nt),et.flags|=256,Yi(_e,et,tt,rt),et.child}var nj={dehydrated:null,treeContext:null,retryLane:0};function oj(_e){return{baseLanes:_e,cachePool:null,transitions:null}}function pj(_e,et,tt){var rt=et.pendingProps,nt=M$1.current,st=!1,ot=(et.flags&128)!==0,at;if((at=ot)||(at=_e!==null&&_e.memoizedState===null?!1:(nt&2)!==0),at?(st=!0,et.flags&=-129):(_e===null||_e.memoizedState!==null)&&(nt|=1),G$2(M$1,nt&1),_e===null)return Eg(et),_e=et.memoizedState,_e!==null&&(_e=_e.dehydrated,_e!==null)?(et.mode&1?_e.data==="$!"?et.lanes=8:et.lanes=1073741824:et.lanes=1,null):(ot=rt.children,_e=rt.fallback,st?(rt=et.mode,st=et.child,ot={mode:"hidden",children:ot},!(rt&1)&&st!==null?(st.childLanes=0,st.pendingProps=ot):st=qj(ot,rt,0,null),_e=Ah(_e,rt,tt,null),st.return=et,_e.return=et,st.sibling=_e,et.child=st,et.child.memoizedState=oj(tt),et.memoizedState=nj,_e):rj(et,ot));if(nt=_e.memoizedState,nt!==null&&(at=nt.dehydrated,at!==null))return sj(_e,et,ot,rt,at,nt,tt);if(st){st=rt.fallback,ot=et.mode,nt=_e.child,at=nt.sibling;var ut={mode:"hidden",children:rt.children};return!(ot&1)&&et.child!==nt?(rt=et.child,rt.childLanes=0,rt.pendingProps=ut,et.deletions=null):(rt=wh(nt,ut),rt.subtreeFlags=nt.subtreeFlags&14680064),at!==null?st=wh(at,st):(st=Ah(st,ot,tt,null),st.flags|=2),st.return=et,rt.return=et,rt.sibling=st,et.child=rt,rt=st,st=et.child,ot=_e.child.memoizedState,ot=ot===null?oj(tt):{baseLanes:ot.baseLanes|tt,cachePool:null,transitions:ot.transitions},st.memoizedState=ot,st.childLanes=_e.childLanes&~tt,et.memoizedState=nj,rt}return st=_e.child,_e=st.sibling,rt=wh(st,{mode:"visible",children:rt.children}),!(et.mode&1)&&(rt.lanes=tt),rt.return=et,rt.sibling=null,_e!==null&&(tt=et.deletions,tt===null?(et.deletions=[_e],et.flags|=16):tt.push(_e)),et.child=rt,et.memoizedState=null,rt}function rj(_e,et){return et=qj({mode:"visible",children:et},_e.mode,0,null),et.return=_e,_e.child=et}function tj(_e,et,tt,rt){return rt!==null&&Jg(rt),Bh(et,_e.child,null,tt),_e=rj(et,et.pendingProps.children),_e.flags|=2,et.memoizedState=null,_e}function sj(_e,et,tt,rt,nt,st,ot){if(tt)return et.flags&256?(et.flags&=-257,rt=Li(Error(p$3(422))),tj(_e,et,ot,rt)):et.memoizedState!==null?(et.child=_e.child,et.flags|=128,null):(st=rt.fallback,nt=et.mode,rt=qj({mode:"visible",children:rt.children},nt,0,null),st=Ah(st,nt,ot,null),st.flags|=2,rt.return=et,st.return=et,rt.sibling=st,et.child=rt,et.mode&1&&Bh(et,_e.child,null,ot),et.child.memoizedState=oj(ot),et.memoizedState=nj,st);if(!(et.mode&1))return tj(_e,et,ot,null);if(nt.data==="$!"){if(rt=nt.nextSibling&&nt.nextSibling.dataset,rt)var at=rt.dgst;return rt=at,st=Error(p$3(419)),rt=Li(st,rt,void 0),tj(_e,et,ot,rt)}if(at=(ot&_e.childLanes)!==0,Ug||at){if(rt=R,rt!==null){switch(ot&-ot){case 4:nt=2;break;case 16:nt=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:nt=32;break;case 536870912:nt=268435456;break;default:nt=0}nt=nt&(rt.suspendedLanes|ot)?0:nt,nt!==0&&nt!==st.retryLane&&(st.retryLane=nt,Zg(_e,nt),mh(rt,_e,nt,-1))}return uj(),rt=Li(Error(p$3(421))),tj(_e,et,ot,rt)}return nt.data==="$?"?(et.flags|=128,et.child=_e.child,et=vj.bind(null,_e),nt._reactRetry=et,null):(_e=st.treeContext,yg=Lf(nt.nextSibling),xg=et,I$2=!0,zg=null,_e!==null&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=_e.id,sg=_e.overflow,qg=et),et=rj(et,rt.children),et.flags|=4096,et)}function wj(_e,et,tt){_e.lanes|=et;var rt=_e.alternate;rt!==null&&(rt.lanes|=et),Sg(_e.return,et,tt)}function xj(_e,et,tt,rt,nt){var st=_e.memoizedState;st===null?_e.memoizedState={isBackwards:et,rendering:null,renderingStartTime:0,last:rt,tail:tt,tailMode:nt}:(st.isBackwards=et,st.rendering=null,st.renderingStartTime=0,st.last=rt,st.tail=tt,st.tailMode=nt)}function yj(_e,et,tt){var rt=et.pendingProps,nt=rt.revealOrder,st=rt.tail;if(Yi(_e,et,rt.children,tt),rt=M$1.current,rt&2)rt=rt&1|2,et.flags|=128;else{if(_e!==null&&_e.flags&128)e:for(_e=et.child;_e!==null;){if(_e.tag===13)_e.memoizedState!==null&&wj(_e,tt,et);else if(_e.tag===19)wj(_e,tt,et);else if(_e.child!==null){_e.child.return=_e,_e=_e.child;continue}if(_e===et)break e;for(;_e.sibling===null;){if(_e.return===null||_e.return===et)break e;_e=_e.return}_e.sibling.return=_e.return,_e=_e.sibling}rt&=1}if(G$2(M$1,rt),!(et.mode&1))et.memoizedState=null;else switch(nt){case"forwards":for(tt=et.child,nt=null;tt!==null;)_e=tt.alternate,_e!==null&&Mh(_e)===null&&(nt=tt),tt=tt.sibling;tt=nt,tt===null?(nt=et.child,et.child=null):(nt=tt.sibling,tt.sibling=null),xj(et,!1,nt,tt,st);break;case"backwards":for(tt=null,nt=et.child,et.child=null;nt!==null;){if(_e=nt.alternate,_e!==null&&Mh(_e)===null){et.child=nt;break}_e=nt.sibling,nt.sibling=tt,tt=nt,nt=_e}xj(et,!0,tt,null,st);break;case"together":xj(et,!1,null,null,void 0);break;default:et.memoizedState=null}return et.child}function jj(_e,et){!(et.mode&1)&&_e!==null&&(_e.alternate=null,et.alternate=null,et.flags|=2)}function $i(_e,et,tt){if(_e!==null&&(et.dependencies=_e.dependencies),hh|=et.lanes,!(tt&et.childLanes))return null;if(_e!==null&&et.child!==_e.child)throw Error(p$3(153));if(et.child!==null){for(_e=et.child,tt=wh(_e,_e.pendingProps),et.child=tt,tt.return=et;_e.sibling!==null;)_e=_e.sibling,tt=tt.sibling=wh(_e,_e.pendingProps),tt.return=et;tt.sibling=null}return et.child}function zj(_e,et,tt){switch(et.tag){case 3:lj(et),Ig();break;case 5:Kh(et);break;case 1:Zf(et.type)&&cg(et);break;case 4:Ih(et,et.stateNode.containerInfo);break;case 10:var rt=et.type._context,nt=et.memoizedProps.value;G$2(Mg,rt._currentValue),rt._currentValue=nt;break;case 13:if(rt=et.memoizedState,rt!==null)return rt.dehydrated!==null?(G$2(M$1,M$1.current&1),et.flags|=128,null):tt&et.child.childLanes?pj(_e,et,tt):(G$2(M$1,M$1.current&1),_e=$i(_e,et,tt),_e!==null?_e.sibling:null);G$2(M$1,M$1.current&1);break;case 19:if(rt=(tt&et.childLanes)!==0,_e.flags&128){if(rt)return yj(_e,et,tt);et.flags|=128}if(nt=et.memoizedState,nt!==null&&(nt.rendering=null,nt.tail=null,nt.lastEffect=null),G$2(M$1,M$1.current),rt)break;return null;case 22:case 23:return et.lanes=0,ej(_e,et,tt)}return $i(_e,et,tt)}var Aj,Bj,Cj,Dj;Aj=function(_e,et){for(var tt=et.child;tt!==null;){if(tt.tag===5||tt.tag===6)_e.appendChild(tt.stateNode);else if(tt.tag!==4&&tt.child!==null){tt.child.return=tt,tt=tt.child;continue}if(tt===et)break;for(;tt.sibling===null;){if(tt.return===null||tt.return===et)return;tt=tt.return}tt.sibling.return=tt.return,tt=tt.sibling}};Bj=function(){};Cj=function(_e,et,tt,rt){var nt=_e.memoizedProps;if(nt!==rt){_e=et.stateNode,Hh(Eh.current);var st=null;switch(tt){case"input":nt=Ya(_e,nt),rt=Ya(_e,rt),st=[];break;case"select":nt=A$1({},nt,{value:void 0}),rt=A$1({},rt,{value:void 0}),st=[];break;case"textarea":nt=gb(_e,nt),rt=gb(_e,rt),st=[];break;default:typeof nt.onClick!="function"&&typeof rt.onClick=="function"&&(_e.onclick=Bf)}ub(tt,rt);var ot;tt=null;for(lt in nt)if(!rt.hasOwnProperty(lt)&&nt.hasOwnProperty(lt)&&nt[lt]!=null)if(lt==="style"){var at=nt[lt];for(ot in at)at.hasOwnProperty(ot)&&(tt||(tt={}),tt[ot]="")}else lt!=="dangerouslySetInnerHTML"&<!=="children"&<!=="suppressContentEditableWarning"&<!=="suppressHydrationWarning"&<!=="autoFocus"&&(ea.hasOwnProperty(lt)?st||(st=[]):(st=st||[]).push(lt,null));for(lt in rt){var ut=rt[lt];if(at=nt!=null?nt[lt]:void 0,rt.hasOwnProperty(lt)&&ut!==at&&(ut!=null||at!=null))if(lt==="style")if(at){for(ot in at)!at.hasOwnProperty(ot)||ut&&ut.hasOwnProperty(ot)||(tt||(tt={}),tt[ot]="");for(ot in ut)ut.hasOwnProperty(ot)&&at[ot]!==ut[ot]&&(tt||(tt={}),tt[ot]=ut[ot])}else tt||(st||(st=[]),st.push(lt,tt)),tt=ut;else lt==="dangerouslySetInnerHTML"?(ut=ut?ut.__html:void 0,at=at?at.__html:void 0,ut!=null&&at!==ut&&(st=st||[]).push(lt,ut)):lt==="children"?typeof ut!="string"&&typeof ut!="number"||(st=st||[]).push(lt,""+ut):lt!=="suppressContentEditableWarning"&<!=="suppressHydrationWarning"&&(ea.hasOwnProperty(lt)?(ut!=null&<==="onScroll"&&D$1("scroll",_e),st||at===ut||(st=[])):(st=st||[]).push(lt,ut))}tt&&(st=st||[]).push("style",tt);var lt=st;(et.updateQueue=lt)&&(et.flags|=4)}};Dj=function(_e,et,tt,rt){tt!==rt&&(et.flags|=4)};function Ej(_e,et){if(!I$2)switch(_e.tailMode){case"hidden":et=_e.tail;for(var tt=null;et!==null;)et.alternate!==null&&(tt=et),et=et.sibling;tt===null?_e.tail=null:tt.sibling=null;break;case"collapsed":tt=_e.tail;for(var rt=null;tt!==null;)tt.alternate!==null&&(rt=tt),tt=tt.sibling;rt===null?et||_e.tail===null?_e.tail=null:_e.tail.sibling=null:rt.sibling=null}}function S$2(_e){var et=_e.alternate!==null&&_e.alternate.child===_e.child,tt=0,rt=0;if(et)for(var nt=_e.child;nt!==null;)tt|=nt.lanes|nt.childLanes,rt|=nt.subtreeFlags&14680064,rt|=nt.flags&14680064,nt.return=_e,nt=nt.sibling;else for(nt=_e.child;nt!==null;)tt|=nt.lanes|nt.childLanes,rt|=nt.subtreeFlags,rt|=nt.flags,nt.return=_e,nt=nt.sibling;return _e.subtreeFlags|=rt,_e.childLanes=tt,et}function Fj(_e,et,tt){var rt=et.pendingProps;switch(wg(et),et.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S$2(et),null;case 1:return Zf(et.type)&&$f(),S$2(et),null;case 3:return rt=et.stateNode,Jh(),E(Wf),E(H),Oh(),rt.pendingContext&&(rt.context=rt.pendingContext,rt.pendingContext=null),(_e===null||_e.child===null)&&(Gg(et)?et.flags|=4:_e===null||_e.memoizedState.isDehydrated&&!(et.flags&256)||(et.flags|=1024,zg!==null&&(Gj(zg),zg=null))),Bj(_e,et),S$2(et),null;case 5:Lh(et);var nt=Hh(Gh.current);if(tt=et.type,_e!==null&&et.stateNode!=null)Cj(_e,et,tt,rt,nt),_e.ref!==et.ref&&(et.flags|=512,et.flags|=2097152);else{if(!rt){if(et.stateNode===null)throw Error(p$3(166));return S$2(et),null}if(_e=Hh(Eh.current),Gg(et)){rt=et.stateNode,tt=et.type;var st=et.memoizedProps;switch(rt[Of]=et,rt[Pf]=st,_e=(et.mode&1)!==0,tt){case"dialog":D$1("cancel",rt),D$1("close",rt);break;case"iframe":case"object":case"embed":D$1("load",rt);break;case"video":case"audio":for(nt=0;nt<lf.length;nt++)D$1(lf[nt],rt);break;case"source":D$1("error",rt);break;case"img":case"image":case"link":D$1("error",rt),D$1("load",rt);break;case"details":D$1("toggle",rt);break;case"input":Za(rt,st),D$1("invalid",rt);break;case"select":rt._wrapperState={wasMultiple:!!st.multiple},D$1("invalid",rt);break;case"textarea":hb(rt,st),D$1("invalid",rt)}ub(tt,st),nt=null;for(var ot in st)if(st.hasOwnProperty(ot)){var at=st[ot];ot==="children"?typeof at=="string"?rt.textContent!==at&&(st.suppressHydrationWarning!==!0&&Af(rt.textContent,at,_e),nt=["children",at]):typeof at=="number"&&rt.textContent!==""+at&&(st.suppressHydrationWarning!==!0&&Af(rt.textContent,at,_e),nt=["children",""+at]):ea.hasOwnProperty(ot)&&at!=null&&ot==="onScroll"&&D$1("scroll",rt)}switch(tt){case"input":Va(rt),db(rt,st,!0);break;case"textarea":Va(rt),jb(rt);break;case"select":case"option":break;default:typeof st.onClick=="function"&&(rt.onclick=Bf)}rt=nt,et.updateQueue=rt,rt!==null&&(et.flags|=4)}else{ot=nt.nodeType===9?nt:nt.ownerDocument,_e==="http://www.w3.org/1999/xhtml"&&(_e=kb(tt)),_e==="http://www.w3.org/1999/xhtml"?tt==="script"?(_e=ot.createElement("div"),_e.innerHTML="<script><\/script>",_e=_e.removeChild(_e.firstChild)):typeof rt.is=="string"?_e=ot.createElement(tt,{is:rt.is}):(_e=ot.createElement(tt),tt==="select"&&(ot=_e,rt.multiple?ot.multiple=!0:rt.size&&(ot.size=rt.size))):_e=ot.createElementNS(_e,tt),_e[Of]=et,_e[Pf]=rt,Aj(_e,et,!1,!1),et.stateNode=_e;e:{switch(ot=vb(tt,rt),tt){case"dialog":D$1("cancel",_e),D$1("close",_e),nt=rt;break;case"iframe":case"object":case"embed":D$1("load",_e),nt=rt;break;case"video":case"audio":for(nt=0;nt<lf.length;nt++)D$1(lf[nt],_e);nt=rt;break;case"source":D$1("error",_e),nt=rt;break;case"img":case"image":case"link":D$1("error",_e),D$1("load",_e),nt=rt;break;case"details":D$1("toggle",_e),nt=rt;break;case"input":Za(_e,rt),nt=Ya(_e,rt),D$1("invalid",_e);break;case"option":nt=rt;break;case"select":_e._wrapperState={wasMultiple:!!rt.multiple},nt=A$1({},rt,{value:void 0}),D$1("invalid",_e);break;case"textarea":hb(_e,rt),nt=gb(_e,rt),D$1("invalid",_e);break;default:nt=rt}ub(tt,nt),at=nt;for(st in at)if(at.hasOwnProperty(st)){var ut=at[st];st==="style"?sb(_e,ut):st==="dangerouslySetInnerHTML"?(ut=ut?ut.__html:void 0,ut!=null&&nb(_e,ut)):st==="children"?typeof ut=="string"?(tt!=="textarea"||ut!=="")&&ob(_e,ut):typeof ut=="number"&&ob(_e,""+ut):st!=="suppressContentEditableWarning"&&st!=="suppressHydrationWarning"&&st!=="autoFocus"&&(ea.hasOwnProperty(st)?ut!=null&&st==="onScroll"&&D$1("scroll",_e):ut!=null&&ta(_e,st,ut,ot))}switch(tt){case"input":Va(_e),db(_e,rt,!1);break;case"textarea":Va(_e),jb(_e);break;case"option":rt.value!=null&&_e.setAttribute("value",""+Sa(rt.value));break;case"select":_e.multiple=!!rt.multiple,st=rt.value,st!=null?fb(_e,!!rt.multiple,st,!1):rt.defaultValue!=null&&fb(_e,!!rt.multiple,rt.defaultValue,!0);break;default:typeof nt.onClick=="function"&&(_e.onclick=Bf)}switch(tt){case"button":case"input":case"select":case"textarea":rt=!!rt.autoFocus;break e;case"img":rt=!0;break e;default:rt=!1}}rt&&(et.flags|=4)}et.ref!==null&&(et.flags|=512,et.flags|=2097152)}return S$2(et),null;case 6:if(_e&&et.stateNode!=null)Dj(_e,et,_e.memoizedProps,rt);else{if(typeof rt!="string"&&et.stateNode===null)throw Error(p$3(166));if(tt=Hh(Gh.current),Hh(Eh.current),Gg(et)){if(rt=et.stateNode,tt=et.memoizedProps,rt[Of]=et,(st=rt.nodeValue!==tt)&&(_e=xg,_e!==null))switch(_e.tag){case 3:Af(rt.nodeValue,tt,(_e.mode&1)!==0);break;case 5:_e.memoizedProps.suppressHydrationWarning!==!0&&Af(rt.nodeValue,tt,(_e.mode&1)!==0)}st&&(et.flags|=4)}else rt=(tt.nodeType===9?tt:tt.ownerDocument).createTextNode(rt),rt[Of]=et,et.stateNode=rt}return S$2(et),null;case 13:if(E(M$1),rt=et.memoizedState,_e===null||_e.memoizedState!==null&&_e.memoizedState.dehydrated!==null){if(I$2&&yg!==null&&et.mode&1&&!(et.flags&128))Hg(),Ig(),et.flags|=98560,st=!1;else if(st=Gg(et),rt!==null&&rt.dehydrated!==null){if(_e===null){if(!st)throw Error(p$3(318));if(st=et.memoizedState,st=st!==null?st.dehydrated:null,!st)throw Error(p$3(317));st[Of]=et}else Ig(),!(et.flags&128)&&(et.memoizedState=null),et.flags|=4;S$2(et),st=!1}else zg!==null&&(Gj(zg),zg=null),st=!0;if(!st)return et.flags&65536?et:null}return et.flags&128?(et.lanes=tt,et):(rt=rt!==null,rt!==(_e!==null&&_e.memoizedState!==null)&&rt&&(et.child.flags|=8192,et.mode&1&&(_e===null||M$1.current&1?T$2===0&&(T$2=3):uj())),et.updateQueue!==null&&(et.flags|=4),S$2(et),null);case 4:return Jh(),Bj(_e,et),_e===null&&sf(et.stateNode.containerInfo),S$2(et),null;case 10:return Rg(et.type._context),S$2(et),null;case 17:return Zf(et.type)&&$f(),S$2(et),null;case 19:if(E(M$1),st=et.memoizedState,st===null)return S$2(et),null;if(rt=(et.flags&128)!==0,ot=st.rendering,ot===null)if(rt)Ej(st,!1);else{if(T$2!==0||_e!==null&&_e.flags&128)for(_e=et.child;_e!==null;){if(ot=Mh(_e),ot!==null){for(et.flags|=128,Ej(st,!1),rt=ot.updateQueue,rt!==null&&(et.updateQueue=rt,et.flags|=4),et.subtreeFlags=0,rt=tt,tt=et.child;tt!==null;)st=tt,_e=rt,st.flags&=14680066,ot=st.alternate,ot===null?(st.childLanes=0,st.lanes=_e,st.child=null,st.subtreeFlags=0,st.memoizedProps=null,st.memoizedState=null,st.updateQueue=null,st.dependencies=null,st.stateNode=null):(st.childLanes=ot.childLanes,st.lanes=ot.lanes,st.child=ot.child,st.subtreeFlags=0,st.deletions=null,st.memoizedProps=ot.memoizedProps,st.memoizedState=ot.memoizedState,st.updateQueue=ot.updateQueue,st.type=ot.type,_e=ot.dependencies,st.dependencies=_e===null?null:{lanes:_e.lanes,firstContext:_e.firstContext}),tt=tt.sibling;return G$2(M$1,M$1.current&1|2),et.child}_e=_e.sibling}st.tail!==null&&B()>Hj&&(et.flags|=128,rt=!0,Ej(st,!1),et.lanes=4194304)}else{if(!rt)if(_e=Mh(ot),_e!==null){if(et.flags|=128,rt=!0,tt=_e.updateQueue,tt!==null&&(et.updateQueue=tt,et.flags|=4),Ej(st,!0),st.tail===null&&st.tailMode==="hidden"&&!ot.alternate&&!I$2)return S$2(et),null}else 2*B()-st.renderingStartTime>Hj&&tt!==1073741824&&(et.flags|=128,rt=!0,Ej(st,!1),et.lanes=4194304);st.isBackwards?(ot.sibling=et.child,et.child=ot):(tt=st.last,tt!==null?tt.sibling=ot:et.child=ot,st.last=ot)}return st.tail!==null?(et=st.tail,st.rendering=et,st.tail=et.sibling,st.renderingStartTime=B(),et.sibling=null,tt=M$1.current,G$2(M$1,rt?tt&1|2:tt&1),et):(S$2(et),null);case 22:case 23:return Ij(),rt=et.memoizedState!==null,_e!==null&&_e.memoizedState!==null!==rt&&(et.flags|=8192),rt&&et.mode&1?gj&1073741824&&(S$2(et),et.subtreeFlags&6&&(et.flags|=8192)):S$2(et),null;case 24:return null;case 25:return null}throw Error(p$3(156,et.tag))}function Jj(_e,et){switch(wg(et),et.tag){case 1:return Zf(et.type)&&$f(),_e=et.flags,_e&65536?(et.flags=_e&-65537|128,et):null;case 3:return Jh(),E(Wf),E(H),Oh(),_e=et.flags,_e&65536&&!(_e&128)?(et.flags=_e&-65537|128,et):null;case 5:return Lh(et),null;case 13:if(E(M$1),_e=et.memoizedState,_e!==null&&_e.dehydrated!==null){if(et.alternate===null)throw Error(p$3(340));Ig()}return _e=et.flags,_e&65536?(et.flags=_e&-65537|128,et):null;case 19:return E(M$1),null;case 4:return Jh(),null;case 10:return Rg(et.type._context),null;case 22:case 23:return Ij(),null;case 24:return null;default:return null}}var Kj=!1,U$1=!1,Lj=typeof WeakSet=="function"?WeakSet:Set,V$2=null;function Mj(_e,et){var tt=_e.ref;if(tt!==null)if(typeof tt=="function")try{tt(null)}catch(rt){W$1(_e,et,rt)}else tt.current=null}function Nj(_e,et,tt){try{tt()}catch(rt){W$1(_e,et,rt)}}var Oj=!1;function Pj(_e,et){if(Cf=dd,_e=Me(),Ne(_e)){if("selectionStart"in _e)var tt={start:_e.selectionStart,end:_e.selectionEnd};else e:{tt=(tt=_e.ownerDocument)&&tt.defaultView||window;var rt=tt.getSelection&&tt.getSelection();if(rt&&rt.rangeCount!==0){tt=rt.anchorNode;var nt=rt.anchorOffset,st=rt.focusNode;rt=rt.focusOffset;try{tt.nodeType,st.nodeType}catch{tt=null;break e}var ot=0,at=-1,ut=-1,lt=0,dt=0,ct=_e,ft=null;t:for(;;){for(var ht;ct!==tt||nt!==0&&ct.nodeType!==3||(at=ot+nt),ct!==st||rt!==0&&ct.nodeType!==3||(ut=ot+rt),ct.nodeType===3&&(ot+=ct.nodeValue.length),(ht=ct.firstChild)!==null;)ft=ct,ct=ht;for(;;){if(ct===_e)break t;if(ft===tt&&++lt===nt&&(at=ot),ft===st&&++dt===rt&&(ut=ot),(ht=ct.nextSibling)!==null)break;ct=ft,ft=ct.parentNode}ct=ht}tt=at===-1||ut===-1?null:{start:at,end:ut}}else tt=null}tt=tt||{start:0,end:0}}else tt=null;for(Df={focusedElem:_e,selectionRange:tt},dd=!1,V$2=et;V$2!==null;)if(et=V$2,_e=et.child,(et.subtreeFlags&1028)!==0&&_e!==null)_e.return=et,V$2=_e;else for(;V$2!==null;){et=V$2;try{var mt=et.alternate;if(et.flags&1024)switch(et.tag){case 0:case 11:case 15:break;case 1:if(mt!==null){var vt=mt.memoizedProps,wt=mt.memoizedState,gt=et.stateNode,yt=gt.getSnapshotBeforeUpdate(et.elementType===et.type?vt:Lg(et.type,vt),wt);gt.__reactInternalSnapshotBeforeUpdate=yt}break;case 3:var xt=et.stateNode.containerInfo;xt.nodeType===1?xt.textContent="":xt.nodeType===9&&xt.documentElement&&xt.removeChild(xt.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$3(163))}}catch(St){W$1(et,et.return,St)}if(_e=et.sibling,_e!==null){_e.return=et.return,V$2=_e;break}V$2=et.return}return mt=Oj,Oj=!1,mt}function Qj(_e,et,tt){var rt=et.updateQueue;if(rt=rt!==null?rt.lastEffect:null,rt!==null){var nt=rt=rt.next;do{if((nt.tag&_e)===_e){var st=nt.destroy;nt.destroy=void 0,st!==void 0&&Nj(et,tt,st)}nt=nt.next}while(nt!==rt)}}function Rj(_e,et){if(et=et.updateQueue,et=et!==null?et.lastEffect:null,et!==null){var tt=et=et.next;do{if((tt.tag&_e)===_e){var rt=tt.create;tt.destroy=rt()}tt=tt.next}while(tt!==et)}}function Sj(_e){var et=_e.ref;if(et!==null){var tt=_e.stateNode;switch(_e.tag){case 5:_e=tt;break;default:_e=tt}typeof et=="function"?et(_e):et.current=_e}}function Tj(_e){var et=_e.alternate;et!==null&&(_e.alternate=null,Tj(et)),_e.child=null,_e.deletions=null,_e.sibling=null,_e.tag===5&&(et=_e.stateNode,et!==null&&(delete et[Of],delete et[Pf],delete et[of$1],delete et[Qf],delete et[Rf])),_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 Uj(_e){return _e.tag===5||_e.tag===3||_e.tag===4}function Vj(_e){e:for(;;){for(;_e.sibling===null;){if(_e.return===null||Uj(_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 Wj(_e,et,tt){var rt=_e.tag;if(rt===5||rt===6)_e=_e.stateNode,et?tt.nodeType===8?tt.parentNode.insertBefore(_e,et):tt.insertBefore(_e,et):(tt.nodeType===8?(et=tt.parentNode,et.insertBefore(_e,tt)):(et=tt,et.appendChild(_e)),tt=tt._reactRootContainer,tt!=null||et.onclick!==null||(et.onclick=Bf));else if(rt!==4&&(_e=_e.child,_e!==null))for(Wj(_e,et,tt),_e=_e.sibling;_e!==null;)Wj(_e,et,tt),_e=_e.sibling}function Xj(_e,et,tt){var rt=_e.tag;if(rt===5||rt===6)_e=_e.stateNode,et?tt.insertBefore(_e,et):tt.appendChild(_e);else if(rt!==4&&(_e=_e.child,_e!==null))for(Xj(_e,et,tt),_e=_e.sibling;_e!==null;)Xj(_e,et,tt),_e=_e.sibling}var X$1=null,Yj=!1;function Zj(_e,et,tt){for(tt=tt.child;tt!==null;)ak(_e,et,tt),tt=tt.sibling}function ak(_e,et,tt){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,tt)}catch{}switch(tt.tag){case 5:U$1||Mj(tt,et);case 6:var rt=X$1,nt=Yj;X$1=null,Zj(_e,et,tt),X$1=rt,Yj=nt,X$1!==null&&(Yj?(_e=X$1,tt=tt.stateNode,_e.nodeType===8?_e.parentNode.removeChild(tt):_e.removeChild(tt)):X$1.removeChild(tt.stateNode));break;case 18:X$1!==null&&(Yj?(_e=X$1,tt=tt.stateNode,_e.nodeType===8?Kf(_e.parentNode,tt):_e.nodeType===1&&Kf(_e,tt),bd(_e)):Kf(X$1,tt.stateNode));break;case 4:rt=X$1,nt=Yj,X$1=tt.stateNode.containerInfo,Yj=!0,Zj(_e,et,tt),X$1=rt,Yj=nt;break;case 0:case 11:case 14:case 15:if(!U$1&&(rt=tt.updateQueue,rt!==null&&(rt=rt.lastEffect,rt!==null))){nt=rt=rt.next;do{var st=nt,ot=st.destroy;st=st.tag,ot!==void 0&&(st&2||st&4)&&Nj(tt,et,ot),nt=nt.next}while(nt!==rt)}Zj(_e,et,tt);break;case 1:if(!U$1&&(Mj(tt,et),rt=tt.stateNode,typeof rt.componentWillUnmount=="function"))try{rt.props=tt.memoizedProps,rt.state=tt.memoizedState,rt.componentWillUnmount()}catch(at){W$1(tt,et,at)}Zj(_e,et,tt);break;case 21:Zj(_e,et,tt);break;case 22:tt.mode&1?(U$1=(rt=U$1)||tt.memoizedState!==null,Zj(_e,et,tt),U$1=rt):Zj(_e,et,tt);break;default:Zj(_e,et,tt)}}function bk(_e){var et=_e.updateQueue;if(et!==null){_e.updateQueue=null;var tt=_e.stateNode;tt===null&&(tt=_e.stateNode=new Lj),et.forEach(function(rt){var nt=ck.bind(null,_e,rt);tt.has(rt)||(tt.add(rt),rt.then(nt,nt))})}}function dk(_e,et){var tt=et.deletions;if(tt!==null)for(var rt=0;rt<tt.length;rt++){var nt=tt[rt];try{var st=_e,ot=et,at=ot;e:for(;at!==null;){switch(at.tag){case 5:X$1=at.stateNode,Yj=!1;break e;case 3:X$1=at.stateNode.containerInfo,Yj=!0;break e;case 4:X$1=at.stateNode.containerInfo,Yj=!0;break e}at=at.return}if(X$1===null)throw Error(p$3(160));ak(st,ot,nt),X$1=null,Yj=!1;var ut=nt.alternate;ut!==null&&(ut.return=null),nt.return=null}catch(lt){W$1(nt,et,lt)}}if(et.subtreeFlags&12854)for(et=et.child;et!==null;)ek(et,_e),et=et.sibling}function ek(_e,et){var tt=_e.alternate,rt=_e.flags;switch(_e.tag){case 0:case 11:case 14:case 15:if(dk(et,_e),fk(_e),rt&4){try{Qj(3,_e,_e.return),Rj(3,_e)}catch(vt){W$1(_e,_e.return,vt)}try{Qj(5,_e,_e.return)}catch(vt){W$1(_e,_e.return,vt)}}break;case 1:dk(et,_e),fk(_e),rt&512&&tt!==null&&Mj(tt,tt.return);break;case 5:if(dk(et,_e),fk(_e),rt&512&&tt!==null&&Mj(tt,tt.return),_e.flags&32){var nt=_e.stateNode;try{ob(nt,"")}catch(vt){W$1(_e,_e.return,vt)}}if(rt&4&&(nt=_e.stateNode,nt!=null)){var st=_e.memoizedProps,ot=tt!==null?tt.memoizedProps:st,at=_e.type,ut=_e.updateQueue;if(_e.updateQueue=null,ut!==null)try{at==="input"&&st.type==="radio"&&st.name!=null&&ab(nt,st),vb(at,ot);var lt=vb(at,st);for(ot=0;ot<ut.length;ot+=2){var dt=ut[ot],ct=ut[ot+1];dt==="style"?sb(nt,ct):dt==="dangerouslySetInnerHTML"?nb(nt,ct):dt==="children"?ob(nt,ct):ta(nt,dt,ct,lt)}switch(at){case"input":bb(nt,st);break;case"textarea":ib(nt,st);break;case"select":var ft=nt._wrapperState.wasMultiple;nt._wrapperState.wasMultiple=!!st.multiple;var ht=st.value;ht!=null?fb(nt,!!st.multiple,ht,!1):ft!==!!st.multiple&&(st.defaultValue!=null?fb(nt,!!st.multiple,st.defaultValue,!0):fb(nt,!!st.multiple,st.multiple?[]:"",!1))}nt[Pf]=st}catch(vt){W$1(_e,_e.return,vt)}}break;case 6:if(dk(et,_e),fk(_e),rt&4){if(_e.stateNode===null)throw Error(p$3(162));nt=_e.stateNode,st=_e.memoizedProps;try{nt.nodeValue=st}catch(vt){W$1(_e,_e.return,vt)}}break;case 3:if(dk(et,_e),fk(_e),rt&4&&tt!==null&&tt.memoizedState.isDehydrated)try{bd(et.containerInfo)}catch(vt){W$1(_e,_e.return,vt)}break;case 4:dk(et,_e),fk(_e);break;case 13:dk(et,_e),fk(_e),nt=_e.child,nt.flags&8192&&(st=nt.memoizedState!==null,nt.stateNode.isHidden=st,!st||nt.alternate!==null&&nt.alternate.memoizedState!==null||(gk=B())),rt&4&&bk(_e);break;case 22:if(dt=tt!==null&&tt.memoizedState!==null,_e.mode&1?(U$1=(lt=U$1)||dt,dk(et,_e),U$1=lt):dk(et,_e),fk(_e),rt&8192){if(lt=_e.memoizedState!==null,(_e.stateNode.isHidden=lt)&&!dt&&_e.mode&1)for(V$2=_e,dt=_e.child;dt!==null;){for(ct=V$2=dt;V$2!==null;){switch(ft=V$2,ht=ft.child,ft.tag){case 0:case 11:case 14:case 15:Qj(4,ft,ft.return);break;case 1:Mj(ft,ft.return);var mt=ft.stateNode;if(typeof mt.componentWillUnmount=="function"){rt=ft,tt=ft.return;try{et=rt,mt.props=et.memoizedProps,mt.state=et.memoizedState,mt.componentWillUnmount()}catch(vt){W$1(rt,tt,vt)}}break;case 5:Mj(ft,ft.return);break;case 22:if(ft.memoizedState!==null){hk(ct);continue}}ht!==null?(ht.return=ft,V$2=ht):hk(ct)}dt=dt.sibling}e:for(dt=null,ct=_e;;){if(ct.tag===5){if(dt===null){dt=ct;try{nt=ct.stateNode,lt?(st=nt.style,typeof st.setProperty=="function"?st.setProperty("display","none","important"):st.display="none"):(at=ct.stateNode,ut=ct.memoizedProps.style,ot=ut!=null&&ut.hasOwnProperty("display")?ut.display:null,at.style.display=rb("display",ot))}catch(vt){W$1(_e,_e.return,vt)}}}else if(ct.tag===6){if(dt===null)try{ct.stateNode.nodeValue=lt?"":ct.memoizedProps}catch(vt){W$1(_e,_e.return,vt)}}else if((ct.tag!==22&&ct.tag!==23||ct.memoizedState===null||ct===_e)&&ct.child!==null){ct.child.return=ct,ct=ct.child;continue}if(ct===_e)break e;for(;ct.sibling===null;){if(ct.return===null||ct.return===_e)break e;dt===ct&&(dt=null),ct=ct.return}dt===ct&&(dt=null),ct.sibling.return=ct.return,ct=ct.sibling}}break;case 19:dk(et,_e),fk(_e),rt&4&&bk(_e);break;case 21:break;default:dk(et,_e),fk(_e)}}function fk(_e){var et=_e.flags;if(et&2){try{e:{for(var tt=_e.return;tt!==null;){if(Uj(tt)){var rt=tt;break e}tt=tt.return}throw Error(p$3(160))}switch(rt.tag){case 5:var nt=rt.stateNode;rt.flags&32&&(ob(nt,""),rt.flags&=-33);var st=Vj(_e);Xj(_e,st,nt);break;case 3:case 4:var ot=rt.stateNode.containerInfo,at=Vj(_e);Wj(_e,at,ot);break;default:throw Error(p$3(161))}}catch(ut){W$1(_e,_e.return,ut)}_e.flags&=-3}et&4096&&(_e.flags&=-4097)}function ik(_e,et,tt){V$2=_e,jk(_e)}function jk(_e,et,tt){for(var rt=(_e.mode&1)!==0;V$2!==null;){var nt=V$2,st=nt.child;if(nt.tag===22&&rt){var ot=nt.memoizedState!==null||Kj;if(!ot){var at=nt.alternate,ut=at!==null&&at.memoizedState!==null||U$1;at=Kj;var lt=U$1;if(Kj=ot,(U$1=ut)&&!lt)for(V$2=nt;V$2!==null;)ot=V$2,ut=ot.child,ot.tag===22&&ot.memoizedState!==null?kk(nt):ut!==null?(ut.return=ot,V$2=ut):kk(nt);for(;st!==null;)V$2=st,jk(st),st=st.sibling;V$2=nt,Kj=at,U$1=lt}lk(_e)}else nt.subtreeFlags&8772&&st!==null?(st.return=nt,V$2=st):lk(_e)}}function lk(_e){for(;V$2!==null;){var et=V$2;if(et.flags&8772){var tt=et.alternate;try{if(et.flags&8772)switch(et.tag){case 0:case 11:case 15:U$1||Rj(5,et);break;case 1:var rt=et.stateNode;if(et.flags&4&&!U$1)if(tt===null)rt.componentDidMount();else{var nt=et.elementType===et.type?tt.memoizedProps:Lg(et.type,tt.memoizedProps);rt.componentDidUpdate(nt,tt.memoizedState,rt.__reactInternalSnapshotBeforeUpdate)}var st=et.updateQueue;st!==null&&ih(et,st,rt);break;case 3:var ot=et.updateQueue;if(ot!==null){if(tt=null,et.child!==null)switch(et.child.tag){case 5:tt=et.child.stateNode;break;case 1:tt=et.child.stateNode}ih(et,ot,tt)}break;case 5:var at=et.stateNode;if(tt===null&&et.flags&4){tt=at;var ut=et.memoizedProps;switch(et.type){case"button":case"input":case"select":case"textarea":ut.autoFocus&&tt.focus();break;case"img":ut.src&&(tt.src=ut.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(et.memoizedState===null){var lt=et.alternate;if(lt!==null){var dt=lt.memoizedState;if(dt!==null){var ct=dt.dehydrated;ct!==null&&bd(ct)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(p$3(163))}U$1||et.flags&512&&Sj(et)}catch(ft){W$1(et,et.return,ft)}}if(et===_e){V$2=null;break}if(tt=et.sibling,tt!==null){tt.return=et.return,V$2=tt;break}V$2=et.return}}function hk(_e){for(;V$2!==null;){var et=V$2;if(et===_e){V$2=null;break}var tt=et.sibling;if(tt!==null){tt.return=et.return,V$2=tt;break}V$2=et.return}}function kk(_e){for(;V$2!==null;){var et=V$2;try{switch(et.tag){case 0:case 11:case 15:var tt=et.return;try{Rj(4,et)}catch(ut){W$1(et,tt,ut)}break;case 1:var rt=et.stateNode;if(typeof rt.componentDidMount=="function"){var nt=et.return;try{rt.componentDidMount()}catch(ut){W$1(et,nt,ut)}}var st=et.return;try{Sj(et)}catch(ut){W$1(et,st,ut)}break;case 5:var ot=et.return;try{Sj(et)}catch(ut){W$1(et,ot,ut)}}}catch(ut){W$1(et,et.return,ut)}if(et===_e){V$2=null;break}var at=et.sibling;if(at!==null){at.return=et.return,V$2=at;break}V$2=et.return}}var mk=Math.ceil,nk=ua.ReactCurrentDispatcher,ok=ua.ReactCurrentOwner,pk=ua.ReactCurrentBatchConfig,K=0,R=null,Y$1=null,Z$1=0,gj=0,fj=Uf(0),T$2=0,qk=null,hh=0,rk=0,sk=0,tk=null,uk=null,gk=0,Hj=1/0,vk=null,Pi=!1,Qi=null,Si=null,wk=!1,xk=null,yk=0,zk=0,Ak=null,Bk=-1,Ck=0;function L$1(){return K&6?B():Bk!==-1?Bk:Bk=B()}function lh(_e){return _e.mode&1?K&2&&Z$1!==0?Z$1&-Z$1:Kg.transition!==null?(Ck===0&&(Ck=yc()),Ck):(_e=C$1,_e!==0||(_e=window.event,_e=_e===void 0?16:jd(_e.type)),_e):1}function mh(_e,et,tt,rt){if(50<zk)throw zk=0,Ak=null,Error(p$3(185));Ac(_e,tt,rt),(!(K&2)||_e!==R)&&(_e===R&&(!(K&2)&&(rk|=tt),T$2===4&&Dk(_e,Z$1)),Ek(_e,rt),tt===1&&K===0&&!(et.mode&1)&&(Hj=B()+500,fg&&jg()))}function Ek(_e,et){var tt=_e.callbackNode;wc(_e,et);var rt=uc(_e,_e===R?Z$1:0);if(rt===0)tt!==null&&bc(tt),_e.callbackNode=null,_e.callbackPriority=0;else if(et=rt&-rt,_e.callbackPriority!==et){if(tt!=null&&bc(tt),et===1)_e.tag===0?ig(Fk.bind(null,_e)):hg(Fk.bind(null,_e)),Jf(function(){!(K&6)&&jg()}),tt=null;else{switch(Dc(rt)){case 1:tt=fc;break;case 4:tt=gc;break;case 16:tt=hc;break;case 536870912:tt=jc;break;default:tt=hc}tt=Gk(tt,Hk.bind(null,_e))}_e.callbackPriority=et,_e.callbackNode=tt}}function Hk(_e,et){if(Bk=-1,Ck=0,K&6)throw Error(p$3(327));var tt=_e.callbackNode;if(Ik()&&_e.callbackNode!==tt)return null;var rt=uc(_e,_e===R?Z$1:0);if(rt===0)return null;if(rt&30||rt&_e.expiredLanes||et)et=Jk(_e,rt);else{et=rt;var nt=K;K|=2;var st=Kk();(R!==_e||Z$1!==et)&&(vk=null,Hj=B()+500,Lk(_e,et));do try{Mk();break}catch(at){Nk(_e,at)}while(1);Qg(),nk.current=st,K=nt,Y$1!==null?et=0:(R=null,Z$1=0,et=T$2)}if(et!==0){if(et===2&&(nt=xc(_e),nt!==0&&(rt=nt,et=Ok(_e,nt))),et===1)throw tt=qk,Lk(_e,0),Dk(_e,rt),Ek(_e,B()),tt;if(et===6)Dk(_e,rt);else{if(nt=_e.current.alternate,!(rt&30)&&!Pk(nt)&&(et=Jk(_e,rt),et===2&&(st=xc(_e),st!==0&&(rt=st,et=Ok(_e,st))),et===1))throw tt=qk,Lk(_e,0),Dk(_e,rt),Ek(_e,B()),tt;switch(_e.finishedWork=nt,_e.finishedLanes=rt,et){case 0:case 1:throw Error(p$3(345));case 2:Qk(_e,uk,vk);break;case 3:if(Dk(_e,rt),(rt&130023424)===rt&&(et=gk+500-B(),10<et)){if(uc(_e,0)!==0)break;if(nt=_e.suspendedLanes,(nt&rt)!==rt){L$1(),_e.pingedLanes|=_e.suspendedLanes&nt;break}_e.timeoutHandle=Ff(Qk.bind(null,_e,uk,vk),et);break}Qk(_e,uk,vk);break;case 4:if(Dk(_e,rt),(rt&4194240)===rt)break;for(et=_e.eventTimes,nt=-1;0<rt;){var ot=31-oc(rt);st=1<<ot,ot=et[ot],ot>nt&&(nt=ot),rt&=~st}if(rt=nt,rt=B()-rt,rt=(120>rt?120:480>rt?480:1080>rt?1080:1920>rt?1920:3e3>rt?3e3:4320>rt?4320:1960*mk(rt/1960))-rt,10<rt){_e.timeoutHandle=Ff(Qk.bind(null,_e,uk,vk),rt);break}Qk(_e,uk,vk);break;case 5:Qk(_e,uk,vk);break;default:throw Error(p$3(329))}}}return Ek(_e,B()),_e.callbackNode===tt?Hk.bind(null,_e):null}function Ok(_e,et){var tt=tk;return _e.current.memoizedState.isDehydrated&&(Lk(_e,et).flags|=256),_e=Jk(_e,et),_e!==2&&(et=uk,uk=tt,et!==null&&Gj(et)),_e}function Gj(_e){uk===null?uk=_e:uk.push.apply(uk,_e)}function Pk(_e){for(var et=_e;;){if(et.flags&16384){var tt=et.updateQueue;if(tt!==null&&(tt=tt.stores,tt!==null))for(var rt=0;rt<tt.length;rt++){var nt=tt[rt],st=nt.getSnapshot;nt=nt.value;try{if(!He(st(),nt))return!1}catch{return!1}}}if(tt=et.child,et.subtreeFlags&16384&&tt!==null)tt.return=et,et=tt;else{if(et===_e)break;for(;et.sibling===null;){if(et.return===null||et.return===_e)return!0;et=et.return}et.sibling.return=et.return,et=et.sibling}}return!0}function Dk(_e,et){for(et&=~sk,et&=~rk,_e.suspendedLanes|=et,_e.pingedLanes&=~et,_e=_e.expirationTimes;0<et;){var tt=31-oc(et),rt=1<<tt;_e[tt]=-1,et&=~rt}}function Fk(_e){if(K&6)throw Error(p$3(327));Ik();var et=uc(_e,0);if(!(et&1))return Ek(_e,B()),null;var tt=Jk(_e,et);if(_e.tag!==0&&tt===2){var rt=xc(_e);rt!==0&&(et=rt,tt=Ok(_e,rt))}if(tt===1)throw tt=qk,Lk(_e,0),Dk(_e,et),Ek(_e,B()),tt;if(tt===6)throw Error(p$3(345));return _e.finishedWork=_e.current.alternate,_e.finishedLanes=et,Qk(_e,uk,vk),Ek(_e,B()),null}function Rk(_e,et){var tt=K;K|=1;try{return _e(et)}finally{K=tt,K===0&&(Hj=B()+500,fg&&jg())}}function Sk(_e){xk!==null&&xk.tag===0&&!(K&6)&&Ik();var et=K;K|=1;var tt=pk.transition,rt=C$1;try{if(pk.transition=null,C$1=1,_e)return _e()}finally{C$1=rt,pk.transition=tt,K=et,!(K&6)&&jg()}}function Ij(){gj=fj.current,E(fj)}function Lk(_e,et){_e.finishedWork=null,_e.finishedLanes=0;var tt=_e.timeoutHandle;if(tt!==-1&&(_e.timeoutHandle=-1,Gf(tt)),Y$1!==null)for(tt=Y$1.return;tt!==null;){var rt=tt;switch(wg(rt),rt.tag){case 1:rt=rt.type.childContextTypes,rt!=null&&$f();break;case 3:Jh(),E(Wf),E(H),Oh();break;case 5:Lh(rt);break;case 4:Jh();break;case 13:E(M$1);break;case 19:E(M$1);break;case 10:Rg(rt.type._context);break;case 22:case 23:Ij()}tt=tt.return}if(R=_e,Y$1=_e=wh(_e.current,null),Z$1=gj=et,T$2=0,qk=null,sk=rk=hh=0,uk=tk=null,Wg!==null){for(et=0;et<Wg.length;et++)if(tt=Wg[et],rt=tt.interleaved,rt!==null){tt.interleaved=null;var nt=rt.next,st=tt.pending;if(st!==null){var ot=st.next;st.next=nt,rt.next=ot}tt.pending=rt}Wg=null}return _e}function Nk(_e,et){do{var tt=Y$1;try{if(Qg(),Ph.current=ai,Sh){for(var rt=N.memoizedState;rt!==null;){var nt=rt.queue;nt!==null&&(nt.pending=null),rt=rt.next}Sh=!1}if(Rh=0,P$1=O$2=N=null,Th=!1,Uh=0,ok.current=null,tt===null||tt.return===null){T$2=1,qk=et,Y$1=null;break}e:{var st=_e,ot=tt.return,at=tt,ut=et;if(et=Z$1,at.flags|=32768,ut!==null&&typeof ut=="object"&&typeof ut.then=="function"){var lt=ut,dt=at,ct=dt.tag;if(!(dt.mode&1)&&(ct===0||ct===11||ct===15)){var ft=dt.alternate;ft?(dt.updateQueue=ft.updateQueue,dt.memoizedState=ft.memoizedState,dt.lanes=ft.lanes):(dt.updateQueue=null,dt.memoizedState=null)}var ht=Vi(ot);if(ht!==null){ht.flags&=-257,Wi(ht,ot,at,st,et),ht.mode&1&&Ti(st,lt,et),et=ht,ut=lt;var mt=et.updateQueue;if(mt===null){var vt=new Set;vt.add(ut),et.updateQueue=vt}else mt.add(ut);break e}else{if(!(et&1)){Ti(st,lt,et),uj();break e}ut=Error(p$3(426))}}else if(I$2&&at.mode&1){var wt=Vi(ot);if(wt!==null){!(wt.flags&65536)&&(wt.flags|=256),Wi(wt,ot,at,st,et),Jg(Ki(ut,at));break e}}st=ut=Ki(ut,at),T$2!==4&&(T$2=2),tk===null?tk=[st]:tk.push(st),st=ot;do{switch(st.tag){case 3:st.flags|=65536,et&=-et,st.lanes|=et;var gt=Oi(st,ut,et);fh(st,gt);break e;case 1:at=ut;var yt=st.type,xt=st.stateNode;if(!(st.flags&128)&&(typeof yt.getDerivedStateFromError=="function"||xt!==null&&typeof xt.componentDidCatch=="function"&&(Si===null||!Si.has(xt)))){st.flags|=65536,et&=-et,st.lanes|=et;var St=Ri(st,at,et);fh(st,St);break e}}st=st.return}while(st!==null)}Tk(tt)}catch(bt){et=bt,Y$1===tt&&tt!==null&&(Y$1=tt=tt.return);continue}break}while(1)}function Kk(){var _e=nk.current;return nk.current=ai,_e===null?ai:_e}function uj(){(T$2===0||T$2===3||T$2===2)&&(T$2=4),R===null||!(hh&268435455)&&!(rk&268435455)||Dk(R,Z$1)}function Jk(_e,et){var tt=K;K|=2;var rt=Kk();(R!==_e||Z$1!==et)&&(vk=null,Lk(_e,et));do try{Uk();break}catch(nt){Nk(_e,nt)}while(1);if(Qg(),K=tt,nk.current=rt,Y$1!==null)throw Error(p$3(261));return R=null,Z$1=0,T$2}function Uk(){for(;Y$1!==null;)Vk(Y$1)}function Mk(){for(;Y$1!==null&&!cc();)Vk(Y$1)}function Vk(_e){var et=Wk(_e.alternate,_e,gj);_e.memoizedProps=_e.pendingProps,et===null?Tk(_e):Y$1=et,ok.current=null}function Tk(_e){var et=_e;do{var tt=et.alternate;if(_e=et.return,et.flags&32768){if(tt=Jj(tt,et),tt!==null){tt.flags&=32767,Y$1=tt;return}if(_e!==null)_e.flags|=32768,_e.subtreeFlags=0,_e.deletions=null;else{T$2=6,Y$1=null;return}}else if(tt=Fj(tt,et,gj),tt!==null){Y$1=tt;return}if(et=et.sibling,et!==null){Y$1=et;return}Y$1=et=_e}while(et!==null);T$2===0&&(T$2=5)}function Qk(_e,et,tt){var rt=C$1,nt=pk.transition;try{pk.transition=null,C$1=1,Xk(_e,et,tt,rt)}finally{pk.transition=nt,C$1=rt}return null}function Xk(_e,et,tt,rt){do Ik();while(xk!==null);if(K&6)throw Error(p$3(327));tt=_e.finishedWork;var nt=_e.finishedLanes;if(tt===null)return null;if(_e.finishedWork=null,_e.finishedLanes=0,tt===_e.current)throw Error(p$3(177));_e.callbackNode=null,_e.callbackPriority=0;var st=tt.lanes|tt.childLanes;if(Bc(_e,st),_e===R&&(Y$1=R=null,Z$1=0),!(tt.subtreeFlags&2064)&&!(tt.flags&2064)||wk||(wk=!0,Gk(hc,function(){return Ik(),null})),st=(tt.flags&15990)!==0,tt.subtreeFlags&15990||st){st=pk.transition,pk.transition=null;var ot=C$1;C$1=1;var at=K;K|=4,ok.current=null,Pj(_e,tt),ek(tt,_e),Oe(Df),dd=!!Cf,Df=Cf=null,_e.current=tt,ik(tt),dc(),K=at,C$1=ot,pk.transition=st}else _e.current=tt;if(wk&&(wk=!1,xk=_e,yk=nt),st=_e.pendingLanes,st===0&&(Si=null),mc(tt.stateNode),Ek(_e,B()),et!==null)for(rt=_e.onRecoverableError,tt=0;tt<et.length;tt++)nt=et[tt],rt(nt.value,{componentStack:nt.stack,digest:nt.digest});if(Pi)throw Pi=!1,_e=Qi,Qi=null,_e;return yk&1&&_e.tag!==0&&Ik(),st=_e.pendingLanes,st&1?_e===Ak?zk++:(zk=0,Ak=_e):zk=0,jg(),null}function Ik(){if(xk!==null){var _e=Dc(yk),et=pk.transition,tt=C$1;try{if(pk.transition=null,C$1=16>_e?16:_e,xk===null)var rt=!1;else{if(_e=xk,xk=null,yk=0,K&6)throw Error(p$3(331));var nt=K;for(K|=4,V$2=_e.current;V$2!==null;){var st=V$2,ot=st.child;if(V$2.flags&16){var at=st.deletions;if(at!==null){for(var ut=0;ut<at.length;ut++){var lt=at[ut];for(V$2=lt;V$2!==null;){var dt=V$2;switch(dt.tag){case 0:case 11:case 15:Qj(8,dt,st)}var ct=dt.child;if(ct!==null)ct.return=dt,V$2=ct;else for(;V$2!==null;){dt=V$2;var ft=dt.sibling,ht=dt.return;if(Tj(dt),dt===lt){V$2=null;break}if(ft!==null){ft.return=ht,V$2=ft;break}V$2=ht}}}var mt=st.alternate;if(mt!==null){var vt=mt.child;if(vt!==null){mt.child=null;do{var wt=vt.sibling;vt.sibling=null,vt=wt}while(vt!==null)}}V$2=st}}if(st.subtreeFlags&2064&&ot!==null)ot.return=st,V$2=ot;else e:for(;V$2!==null;){if(st=V$2,st.flags&2048)switch(st.tag){case 0:case 11:case 15:Qj(9,st,st.return)}var gt=st.sibling;if(gt!==null){gt.return=st.return,V$2=gt;break e}V$2=st.return}}var yt=_e.current;for(V$2=yt;V$2!==null;){ot=V$2;var xt=ot.child;if(ot.subtreeFlags&2064&&xt!==null)xt.return=ot,V$2=xt;else e:for(ot=yt;V$2!==null;){if(at=V$2,at.flags&2048)try{switch(at.tag){case 0:case 11:case 15:Rj(9,at)}}catch(bt){W$1(at,at.return,bt)}if(at===ot){V$2=null;break e}var St=at.sibling;if(St!==null){St.return=at.return,V$2=St;break e}V$2=at.return}}if(K=nt,jg(),lc&&typeof lc.onPostCommitFiberRoot=="function")try{lc.onPostCommitFiberRoot(kc,_e)}catch{}rt=!0}return rt}finally{C$1=tt,pk.transition=et}}return!1}function Yk(_e,et,tt){et=Ki(tt,et),et=Oi(_e,et,1),_e=dh(_e,et,1),et=L$1(),_e!==null&&(Ac(_e,1,et),Ek(_e,et))}function W$1(_e,et,tt){if(_e.tag===3)Yk(_e,_e,tt);else for(;et!==null;){if(et.tag===3){Yk(et,_e,tt);break}else if(et.tag===1){var rt=et.stateNode;if(typeof et.type.getDerivedStateFromError=="function"||typeof rt.componentDidCatch=="function"&&(Si===null||!Si.has(rt))){_e=Ki(tt,_e),_e=Ri(et,_e,1),et=dh(et,_e,1),_e=L$1(),et!==null&&(Ac(et,1,_e),Ek(et,_e));break}}et=et.return}}function Ui(_e,et,tt){var rt=_e.pingCache;rt!==null&&rt.delete(et),et=L$1(),_e.pingedLanes|=_e.suspendedLanes&tt,R===_e&&(Z$1&tt)===tt&&(T$2===4||T$2===3&&(Z$1&130023424)===Z$1&&500>B()-gk?Lk(_e,0):sk|=tt),Ek(_e,et)}function Zk(_e,et){et===0&&(_e.mode&1?(et=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):et=1);var tt=L$1();_e=Zg(_e,et),_e!==null&&(Ac(_e,et,tt),Ek(_e,tt))}function vj(_e){var et=_e.memoizedState,tt=0;et!==null&&(tt=et.retryLane),Zk(_e,tt)}function ck(_e,et){var tt=0;switch(_e.tag){case 13:var rt=_e.stateNode,nt=_e.memoizedState;nt!==null&&(tt=nt.retryLane);break;case 19:rt=_e.stateNode;break;default:throw Error(p$3(314))}rt!==null&&rt.delete(et),Zk(_e,tt)}var Wk;Wk=function(_e,et,tt){if(_e!==null)if(_e.memoizedProps!==et.pendingProps||Wf.current)Ug=!0;else{if(!(_e.lanes&tt)&&!(et.flags&128))return Ug=!1,zj(_e,et,tt);Ug=!!(_e.flags&131072)}else Ug=!1,I$2&&et.flags&1048576&&ug(et,ng,et.index);switch(et.lanes=0,et.tag){case 2:var rt=et.type;jj(_e,et),_e=et.pendingProps;var nt=Yf(et,H.current);Tg(et,tt),nt=Xh(null,et,rt,_e,nt,tt);var st=bi();return et.flags|=1,typeof nt=="object"&&nt!==null&&typeof nt.render=="function"&&nt.$$typeof===void 0?(et.tag=1,et.memoizedState=null,et.updateQueue=null,Zf(rt)?(st=!0,cg(et)):st=!1,et.memoizedState=nt.state!==null&&nt.state!==void 0?nt.state:null,ah(et),nt.updater=nh,et.stateNode=nt,nt._reactInternals=et,rh(et,rt,_e,tt),et=kj(null,et,rt,!0,st,tt)):(et.tag=0,I$2&&st&&vg(et),Yi(null,et,nt,tt),et=et.child),et;case 16:rt=et.elementType;e:{switch(jj(_e,et),_e=et.pendingProps,nt=rt._init,rt=nt(rt._payload),et.type=rt,nt=et.tag=$k(rt),_e=Lg(rt,_e),nt){case 0:et=dj(null,et,rt,_e,tt);break e;case 1:et=ij(null,et,rt,_e,tt);break e;case 11:et=Zi(null,et,rt,_e,tt);break e;case 14:et=aj(null,et,rt,Lg(rt.type,_e),tt);break e}throw Error(p$3(306,rt,""))}return et;case 0:return rt=et.type,nt=et.pendingProps,nt=et.elementType===rt?nt:Lg(rt,nt),dj(_e,et,rt,nt,tt);case 1:return rt=et.type,nt=et.pendingProps,nt=et.elementType===rt?nt:Lg(rt,nt),ij(_e,et,rt,nt,tt);case 3:e:{if(lj(et),_e===null)throw Error(p$3(387));rt=et.pendingProps,st=et.memoizedState,nt=st.element,bh(_e,et),gh(et,rt,null,tt);var ot=et.memoizedState;if(rt=ot.element,st.isDehydrated)if(st={element:rt,isDehydrated:!1,cache:ot.cache,pendingSuspenseBoundaries:ot.pendingSuspenseBoundaries,transitions:ot.transitions},et.updateQueue.baseState=st,et.memoizedState=st,et.flags&256){nt=Ki(Error(p$3(423)),et),et=mj(_e,et,rt,tt,nt);break e}else if(rt!==nt){nt=Ki(Error(p$3(424)),et),et=mj(_e,et,rt,tt,nt);break e}else for(yg=Lf(et.stateNode.containerInfo.firstChild),xg=et,I$2=!0,zg=null,tt=Ch(et,null,rt,tt),et.child=tt;tt;)tt.flags=tt.flags&-3|4096,tt=tt.sibling;else{if(Ig(),rt===nt){et=$i(_e,et,tt);break e}Yi(_e,et,rt,tt)}et=et.child}return et;case 5:return Kh(et),_e===null&&Eg(et),rt=et.type,nt=et.pendingProps,st=_e!==null?_e.memoizedProps:null,ot=nt.children,Ef(rt,nt)?ot=null:st!==null&&Ef(rt,st)&&(et.flags|=32),hj(_e,et),Yi(_e,et,ot,tt),et.child;case 6:return _e===null&&Eg(et),null;case 13:return pj(_e,et,tt);case 4:return Ih(et,et.stateNode.containerInfo),rt=et.pendingProps,_e===null?et.child=Bh(et,null,rt,tt):Yi(_e,et,rt,tt),et.child;case 11:return rt=et.type,nt=et.pendingProps,nt=et.elementType===rt?nt:Lg(rt,nt),Zi(_e,et,rt,nt,tt);case 7:return Yi(_e,et,et.pendingProps,tt),et.child;case 8:return Yi(_e,et,et.pendingProps.children,tt),et.child;case 12:return Yi(_e,et,et.pendingProps.children,tt),et.child;case 10:e:{if(rt=et.type._context,nt=et.pendingProps,st=et.memoizedProps,ot=nt.value,G$2(Mg,rt._currentValue),rt._currentValue=ot,st!==null)if(He(st.value,ot)){if(st.children===nt.children&&!Wf.current){et=$i(_e,et,tt);break e}}else for(st=et.child,st!==null&&(st.return=et);st!==null;){var at=st.dependencies;if(at!==null){ot=st.child;for(var ut=at.firstContext;ut!==null;){if(ut.context===rt){if(st.tag===1){ut=ch(-1,tt&-tt),ut.tag=2;var lt=st.updateQueue;if(lt!==null){lt=lt.shared;var dt=lt.pending;dt===null?ut.next=ut:(ut.next=dt.next,dt.next=ut),lt.pending=ut}}st.lanes|=tt,ut=st.alternate,ut!==null&&(ut.lanes|=tt),Sg(st.return,tt,et),at.lanes|=tt;break}ut=ut.next}}else if(st.tag===10)ot=st.type===et.type?null:st.child;else if(st.tag===18){if(ot=st.return,ot===null)throw Error(p$3(341));ot.lanes|=tt,at=ot.alternate,at!==null&&(at.lanes|=tt),Sg(ot,tt,et),ot=st.sibling}else ot=st.child;if(ot!==null)ot.return=st;else for(ot=st;ot!==null;){if(ot===et){ot=null;break}if(st=ot.sibling,st!==null){st.return=ot.return,ot=st;break}ot=ot.return}st=ot}Yi(_e,et,nt.children,tt),et=et.child}return et;case 9:return nt=et.type,rt=et.pendingProps.children,Tg(et,tt),nt=Vg(nt),rt=rt(nt),et.flags|=1,Yi(_e,et,rt,tt),et.child;case 14:return rt=et.type,nt=Lg(rt,et.pendingProps),nt=Lg(rt.type,nt),aj(_e,et,rt,nt,tt);case 15:return cj(_e,et,et.type,et.pendingProps,tt);case 17:return rt=et.type,nt=et.pendingProps,nt=et.elementType===rt?nt:Lg(rt,nt),jj(_e,et),et.tag=1,Zf(rt)?(_e=!0,cg(et)):_e=!1,Tg(et,tt),ph(et,rt,nt),rh(et,rt,nt,tt),kj(null,et,rt,!0,_e,tt);case 19:return yj(_e,et,tt);case 22:return ej(_e,et,tt)}throw Error(p$3(156,et.tag))};function Gk(_e,et){return ac(_e,et)}function al(_e,et,tt,rt){this.tag=_e,this.key=tt,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=et,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=rt,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(_e,et,tt,rt){return new al(_e,et,tt,rt)}function bj(_e){return _e=_e.prototype,!(!_e||!_e.isReactComponent)}function $k(_e){if(typeof _e=="function")return bj(_e)?1:0;if(_e!=null){if(_e=_e.$$typeof,_e===Da)return 11;if(_e===Ga)return 14}return 2}function wh(_e,et){var tt=_e.alternate;return tt===null?(tt=Bg(_e.tag,et,_e.key,_e.mode),tt.elementType=_e.elementType,tt.type=_e.type,tt.stateNode=_e.stateNode,tt.alternate=_e,_e.alternate=tt):(tt.pendingProps=et,tt.type=_e.type,tt.flags=0,tt.subtreeFlags=0,tt.deletions=null),tt.flags=_e.flags&14680064,tt.childLanes=_e.childLanes,tt.lanes=_e.lanes,tt.child=_e.child,tt.memoizedProps=_e.memoizedProps,tt.memoizedState=_e.memoizedState,tt.updateQueue=_e.updateQueue,et=_e.dependencies,tt.dependencies=et===null?null:{lanes:et.lanes,firstContext:et.firstContext},tt.sibling=_e.sibling,tt.index=_e.index,tt.ref=_e.ref,tt}function yh(_e,et,tt,rt,nt,st){var ot=2;if(rt=_e,typeof _e=="function")bj(_e)&&(ot=1);else if(typeof _e=="string")ot=5;else e:switch(_e){case ya:return Ah(tt.children,nt,st,et);case za:ot=8,nt|=8;break;case Aa:return _e=Bg(12,tt,et,nt|2),_e.elementType=Aa,_e.lanes=st,_e;case Ea:return _e=Bg(13,tt,et,nt),_e.elementType=Ea,_e.lanes=st,_e;case Fa:return _e=Bg(19,tt,et,nt),_e.elementType=Fa,_e.lanes=st,_e;case Ia:return qj(tt,nt,st,et);default:if(typeof _e=="object"&&_e!==null)switch(_e.$$typeof){case Ba:ot=10;break e;case Ca:ot=9;break e;case Da:ot=11;break e;case Ga:ot=14;break e;case Ha:ot=16,rt=null;break e}throw Error(p$3(130,_e==null?_e:typeof _e,""))}return et=Bg(ot,tt,et,nt),et.elementType=_e,et.type=rt,et.lanes=st,et}function Ah(_e,et,tt,rt){return _e=Bg(7,_e,rt,et),_e.lanes=tt,_e}function qj(_e,et,tt,rt){return _e=Bg(22,_e,rt,et),_e.elementType=Ia,_e.lanes=tt,_e.stateNode={isHidden:!1},_e}function xh(_e,et,tt){return _e=Bg(6,_e,null,et),_e.lanes=tt,_e}function zh(_e,et,tt){return et=Bg(4,_e.children!==null?_e.children:[],_e.key,et),et.lanes=tt,et.stateNode={containerInfo:_e.containerInfo,pendingChildren:null,implementation:_e.implementation},et}function bl(_e,et,tt,rt,nt){this.tag=et,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=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=rt,this.onRecoverableError=nt,this.mutableSourceEagerHydrationData=null}function cl(_e,et,tt,rt,nt,st,ot,at,ut){return _e=new bl(_e,et,tt,at,ut),et===1?(et=1,st===!0&&(et|=8)):et=0,st=Bg(3,null,null,et),_e.current=st,st.stateNode=_e,st.memoizedState={element:rt,isDehydrated:tt,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(st),_e}function dl(_e,et,tt){var rt=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:wa,key:rt==null?null:""+rt,children:_e,containerInfo:et,implementation:tt}}function el(_e){if(!_e)return Vf;_e=_e._reactInternals;e:{if(Vb(_e)!==_e||_e.tag!==1)throw Error(p$3(170));var et=_e;do{switch(et.tag){case 3:et=et.stateNode.context;break e;case 1:if(Zf(et.type)){et=et.stateNode.__reactInternalMemoizedMergedChildContext;break e}}et=et.return}while(et!==null);throw Error(p$3(171))}if(_e.tag===1){var tt=_e.type;if(Zf(tt))return bg(_e,tt,et)}return et}function fl(_e,et,tt,rt,nt,st,ot,at,ut){return _e=cl(tt,rt,!0,_e,nt,st,ot,at,ut),_e.context=el(null),tt=_e.current,rt=L$1(),nt=lh(tt),st=ch(rt,nt),st.callback=et??null,dh(tt,st,nt),_e.current.lanes=nt,Ac(_e,nt,rt),Ek(_e,rt),_e}function gl(_e,et,tt,rt){var nt=et.current,st=L$1(),ot=lh(nt);return tt=el(tt),et.context===null?et.context=tt:et.pendingContext=tt,et=ch(st,ot),et.payload={element:_e},rt=rt===void 0?null:rt,rt!==null&&(et.callback=rt),_e=dh(nt,et,ot),_e!==null&&(mh(_e,nt,ot,st),eh(_e,nt,ot)),ot}function hl(_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 il(_e,et){if(_e=_e.memoizedState,_e!==null&&_e.dehydrated!==null){var tt=_e.retryLane;_e.retryLane=tt!==0&&tt<et?tt:et}}function jl(_e,et){il(_e,et),(_e=_e.alternate)&&il(_e,et)}function kl(){return null}var ll=typeof reportError=="function"?reportError:function(_e){console.error(_e)};function ml(_e){this._internalRoot=_e}nl.prototype.render=ml.prototype.render=function(_e){var et=this._internalRoot;if(et===null)throw Error(p$3(409));gl(_e,et,null,null)};nl.prototype.unmount=ml.prototype.unmount=function(){var _e=this._internalRoot;if(_e!==null){this._internalRoot=null;var et=_e.containerInfo;Sk(function(){gl(null,_e,null,null)}),et[uf]=null}};function nl(_e){this._internalRoot=_e}nl.prototype.unstable_scheduleHydration=function(_e){if(_e){var et=Hc();_e={blockedOn:null,target:_e,priority:et};for(var tt=0;tt<Qc.length&&et!==0&&et<Qc[tt].priority;tt++);Qc.splice(tt,0,_e),tt===0&&Vc(_e)}};function ol(_e){return!(!_e||_e.nodeType!==1&&_e.nodeType!==9&&_e.nodeType!==11)}function pl(_e){return!(!_e||_e.nodeType!==1&&_e.nodeType!==9&&_e.nodeType!==11&&(_e.nodeType!==8||_e.nodeValue!==" react-mount-point-unstable "))}function ql(){}function rl(_e,et,tt,rt,nt){if(nt){if(typeof rt=="function"){var st=rt;rt=function(){var lt=hl(ot);st.call(lt)}}var ot=fl(et,rt,_e,0,null,!1,!1,"",ql);return _e._reactRootContainer=ot,_e[uf]=ot.current,sf(_e.nodeType===8?_e.parentNode:_e),Sk(),ot}for(;nt=_e.lastChild;)_e.removeChild(nt);if(typeof rt=="function"){var at=rt;rt=function(){var lt=hl(ut);at.call(lt)}}var ut=cl(_e,0,!1,null,null,!1,!1,"",ql);return _e._reactRootContainer=ut,_e[uf]=ut.current,sf(_e.nodeType===8?_e.parentNode:_e),Sk(function(){gl(et,ut,tt,rt)}),ut}function sl(_e,et,tt,rt,nt){var st=tt._reactRootContainer;if(st){var ot=st;if(typeof nt=="function"){var at=nt;nt=function(){var ut=hl(ot);at.call(ut)}}gl(et,ot,_e,nt)}else ot=rl(tt,et,_e,nt,rt);return hl(ot)}Ec=function(_e){switch(_e.tag){case 3:var et=_e.stateNode;if(et.current.memoizedState.isDehydrated){var tt=tc(et.pendingLanes);tt!==0&&(Cc(et,tt|1),Ek(et,B()),!(K&6)&&(Hj=B()+500,jg()))}break;case 13:Sk(function(){var rt=Zg(_e,1);if(rt!==null){var nt=L$1();mh(rt,_e,1,nt)}}),jl(_e,1)}};Fc=function(_e){if(_e.tag===13){var et=Zg(_e,134217728);if(et!==null){var tt=L$1();mh(et,_e,134217728,tt)}jl(_e,134217728)}};Gc=function(_e){if(_e.tag===13){var et=lh(_e),tt=Zg(_e,et);if(tt!==null){var rt=L$1();mh(tt,_e,et,rt)}jl(_e,et)}};Hc=function(){return C$1};Ic=function(_e,et){var tt=C$1;try{return C$1=_e,et()}finally{C$1=tt}};yb=function(_e,et,tt){switch(et){case"input":if(bb(_e,tt),et=tt.name,tt.type==="radio"&&et!=null){for(tt=_e;tt.parentNode;)tt=tt.parentNode;for(tt=tt.querySelectorAll("input[name="+JSON.stringify(""+et)+'][type="radio"]'),et=0;et<tt.length;et++){var rt=tt[et];if(rt!==_e&&rt.form===_e.form){var nt=Db(rt);if(!nt)throw Error(p$3(90));Wa(rt),bb(rt,nt)}}}break;case"textarea":ib(_e,tt);break;case"select":et=tt.value,et!=null&&fb(_e,!!tt.multiple,et,!1)}};Gb=Rk;Hb=Sk;var tl={usingClientEntryPoint:!1,Events:[Cb,ue$1,Db,Eb,Fb,Rk]},ul={findFiberByHostInstance:Wc,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},vl={bundleType:ul.bundleType,version:ul.version,rendererPackageName:ul.rendererPackageName,rendererConfig:ul.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ua.ReactCurrentDispatcher,findHostInstanceByFiber:function(_e){return _e=Zb(_e),_e===null?null:_e.stateNode},findFiberByHostInstance:ul.findFiberByHostInstance||kl,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 wl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wl.isDisabled&&wl.supportsFiber)try{kc=wl.inject(vl),lc=wl}catch{}}reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tl;reactDom_production_min.createPortal=function(_e,et){var tt=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ol(et))throw Error(p$3(200));return dl(_e,et,null,tt)};reactDom_production_min.createRoot=function(_e,et){if(!ol(_e))throw Error(p$3(299));var tt=!1,rt="",nt=ll;return et!=null&&(et.unstable_strictMode===!0&&(tt=!0),et.identifierPrefix!==void 0&&(rt=et.identifierPrefix),et.onRecoverableError!==void 0&&(nt=et.onRecoverableError)),et=cl(_e,1,!1,null,null,tt,!1,rt,nt),_e[uf]=et.current,sf(_e.nodeType===8?_e.parentNode:_e),new ml(et)};reactDom_production_min.findDOMNode=function(_e){if(_e==null)return null;if(_e.nodeType===1)return _e;var et=_e._reactInternals;if(et===void 0)throw typeof _e.render=="function"?Error(p$3(188)):(_e=Object.keys(_e).join(","),Error(p$3(268,_e)));return _e=Zb(et),_e=_e===null?null:_e.stateNode,_e};reactDom_production_min.flushSync=function(_e){return Sk(_e)};reactDom_production_min.hydrate=function(_e,et,tt){if(!pl(et))throw Error(p$3(200));return sl(null,_e,et,!0,tt)};reactDom_production_min.hydrateRoot=function(_e,et,tt){if(!ol(_e))throw Error(p$3(405));var rt=tt!=null&&tt.hydratedSources||null,nt=!1,st="",ot=ll;if(tt!=null&&(tt.unstable_strictMode===!0&&(nt=!0),tt.identifierPrefix!==void 0&&(st=tt.identifierPrefix),tt.onRecoverableError!==void 0&&(ot=tt.onRecoverableError)),et=fl(et,null,_e,1,tt??null,nt,!1,st,ot),_e[uf]=et.current,sf(_e),rt)for(_e=0;_e<rt.length;_e++)tt=rt[_e],nt=tt._getVersion,nt=nt(tt._source),et.mutableSourceEagerHydrationData==null?et.mutableSourceEagerHydrationData=[tt,nt]:et.mutableSourceEagerHydrationData.push(tt,nt);return new nl(et)};reactDom_production_min.render=function(_e,et,tt){if(!pl(et))throw Error(p$3(200));return sl(null,_e,et,!1,tt)};reactDom_production_min.unmountComponentAtNode=function(_e){if(!pl(_e))throw Error(p$3(40));return _e._reactRootContainer?(Sk(function(){sl(null,null,_e,!1,function(){_e._reactRootContainer=null,_e[uf]=null})}),!0):!1};reactDom_production_min.unstable_batchedUpdates=Rk;reactDom_production_min.unstable_renderSubtreeIntoContainer=function(_e,et,tt,rt){if(!pl(tt))throw Error(p$3(200));if(_e==null||_e._reactInternals===void 0)throw Error(p$3(38));return sl(_e,et,tt,!1,rt)};reactDom_production_min.version="18.2.0-next-9e3b772b8-20220608";function checkDCE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(_e){console.error(_e)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports,shim={exports:{}},useSyncExternalStoreShim_production_min={};/**
|
|
33
|
+
*/var s1=b,it=Cw;function _(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o1=new Set,Ji={};function cr(e,t){zr(e,t),zr(e+"Capture",t)}function zr(e,t){for(Ji[e]=t,e=0;e<t.length;e++)o1.add(t[e])}var sn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cu=Object.prototype.hasOwnProperty,kw=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,uh={},ch={};function Ow(e){return Cu.call(ch,e)?!0:Cu.call(uh,e)?!1:kw.test(e)?ch[e]=!0:(uh[e]=!0,!1)}function Rw(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Pw(e,t,n,r){if(t===null||typeof t>"u"||Rw(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Le(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var Ee={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ee[e]=new Le(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ee[t]=new Le(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ee[e]=new Le(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ee[e]=new Le(e,2,!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".split(" ").forEach(function(e){Ee[e]=new Le(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ee[e]=new Le(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ee[e]=new Le(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ee[e]=new Le(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ee[e]=new Le(e,5,!1,e.toLowerCase(),null,!1,!1)});var Wc=/[\-:]([a-z])/g;function Kc(e){return e[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".split(" ").forEach(function(e){var t=e.replace(Wc,Kc);Ee[t]=new Le(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Wc,Kc);Ee[t]=new Le(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Wc,Kc);Ee[t]=new Le(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ee[e]=new Le(e,1,!1,e.toLowerCase(),null,!1,!1)});Ee.xlinkHref=new Le("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ee[e]=new Le(e,1,!1,e.toLowerCase(),null,!0,!0)});function Zc(e,t,n,r){var i=Ee.hasOwnProperty(t)?Ee[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Pw(t,n,i,r)&&(n=null),r||i===null?Ow(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var dn=s1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ys=Symbol.for("react.element"),wr=Symbol.for("react.portal"),xr=Symbol.for("react.fragment"),Xc=Symbol.for("react.strict_mode"),ku=Symbol.for("react.profiler"),a1=Symbol.for("react.provider"),l1=Symbol.for("react.context"),Gc=Symbol.for("react.forward_ref"),Ou=Symbol.for("react.suspense"),Ru=Symbol.for("react.suspense_list"),Yc=Symbol.for("react.memo"),gn=Symbol.for("react.lazy"),u1=Symbol.for("react.offscreen"),dh=Symbol.iterator;function ui(e){return e===null||typeof e!="object"?null:(e=dh&&e[dh]||e["@@iterator"],typeof e=="function"?e:null)}var ae=Object.assign,Ol;function Ci(e){if(Ol===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ol=t&&t[1]||""}return`
|
|
34
|
+
`+Ol+e}var Rl=!1;function Pl(e,t){if(!e||Rl)return"";Rl=!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 i=u.stack.split(`
|
|
35
|
+
`),s=r.stack.split(`
|
|
36
|
+
`),o=i.length-1,a=s.length-1;1<=o&&0<=a&&i[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==s[a]){var l=`
|
|
37
|
+
`+i[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{Rl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ci(e):""}function jw(e){switch(e.tag){case 5:return Ci(e.type);case 16:return Ci("Lazy");case 13:return Ci("Suspense");case 19:return Ci("SuspenseList");case 0:case 2:case 15:return e=Pl(e.type,!1),e;case 11:return e=Pl(e.type.render,!1),e;case 1:return e=Pl(e.type,!0),e;default:return""}}function Pu(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 xr:return"Fragment";case wr:return"Portal";case ku:return"Profiler";case Xc:return"StrictMode";case Ou:return"Suspense";case Ru:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case l1:return(e.displayName||"Context")+".Consumer";case a1:return(e._context.displayName||"Context")+".Provider";case Gc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Yc:return t=e.displayName||null,t!==null?t:Pu(e.type)||"Memo";case gn:t=e._payload,e=e._init;try{return Pu(e(t))}catch{}}return null}function Nw(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 Pu(t);case 8:return t===Xc?"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 Ln(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function c1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Tw(e){var t=c1(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 i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.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 Js(e){e._valueTracker||(e._valueTracker=Tw(e))}function d1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=c1(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ta(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 ju(e,t){var n=t.checked;return ae({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function fh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ln(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 f1(e,t){t=t.checked,t!=null&&Zc(e,"checked",t,!1)}function Nu(e,t){f1(e,t);var n=Ln(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")?Tu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tu(e,t.type,Ln(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function hh(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 Tu(e,t,n){(t!=="number"||ta(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ki=Array.isArray;function _r(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ln(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function _u(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(_(91));return ae({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ph(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(_(92));if(ki(n)){if(1<n.length)throw Error(_(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ln(n)}}function h1(e,t){var n=Ln(t.value),r=Ln(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 mh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function p1(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 Au(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?p1(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var eo,m1=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(eo=eo||document.createElement("div"),eo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=eo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function es(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ti={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},_w=["Webkit","ms","Moz","O"];Object.keys(Ti).forEach(function(e){_w.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ti[t]=Ti[e]})});function g1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ti.hasOwnProperty(e)&&Ti[e]?(""+t).trim():t+"px"}function v1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=g1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Aw=ae({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 Iu(e,t){if(t){if(Aw[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function Lu(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 Mu=null;function Jc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Du=null,Ar=null,Ir=null;function gh(e){if(e=Is(e)){if(typeof Du!="function")throw Error(_(280));var t=e.stateNode;t&&(t=Ba(t),Du(e.stateNode,e.type,t))}}function y1(e){Ar?Ir?Ir.push(e):Ir=[e]:Ar=e}function w1(){if(Ar){var e=Ar,t=Ir;if(Ir=Ar=null,gh(e),t)for(e=0;e<t.length;e++)gh(t[e])}}function x1(e,t){return e(t)}function S1(){}var jl=!1;function b1(e,t,n){if(jl)return e(t,n);jl=!0;try{return x1(e,t,n)}finally{jl=!1,(Ar!==null||Ir!==null)&&(S1(),w1())}}function ts(e,t){var n=e.stateNode;if(n===null)return null;var r=Ba(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(_(231,t,typeof n));return n}var Fu=!1;if(sn)try{var ci={};Object.defineProperty(ci,"passive",{get:function(){Fu=!0}}),window.addEventListener("test",ci,ci),window.removeEventListener("test",ci,ci)}catch{Fu=!1}function Iw(e,t,n,r,i,s,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var _i=!1,na=null,ra=!1,$u=null,Lw={onError:function(e){_i=!0,na=e}};function Mw(e,t,n,r,i,s,o,a,l){_i=!1,na=null,Iw.apply(Lw,arguments)}function Dw(e,t,n,r,i,s,o,a,l){if(Mw.apply(this,arguments),_i){if(_i){var u=na;_i=!1,na=null}else throw Error(_(198));ra||(ra=!0,$u=u)}}function dr(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 E1(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 vh(e){if(dr(e)!==e)throw Error(_(188))}function Fw(e){var t=e.alternate;if(!t){if(t=dr(e),t===null)throw Error(_(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return vh(i),e;if(s===r)return vh(i),t;s=s.sibling}throw Error(_(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,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){for(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)throw Error(_(189))}}if(n.alternate!==r)throw Error(_(190))}if(n.tag!==3)throw Error(_(188));return n.stateNode.current===n?e:t}function C1(e){return e=Fw(e),e!==null?k1(e):null}function k1(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=k1(e);if(t!==null)return t;e=e.sibling}return null}var O1=it.unstable_scheduleCallback,yh=it.unstable_cancelCallback,$w=it.unstable_shouldYield,zw=it.unstable_requestPaint,ce=it.unstable_now,Bw=it.unstable_getCurrentPriorityLevel,ed=it.unstable_ImmediatePriority,R1=it.unstable_UserBlockingPriority,ia=it.unstable_NormalPriority,Uw=it.unstable_LowPriority,P1=it.unstable_IdlePriority,Da=null,Vt=null;function Vw(e){if(Vt&&typeof Vt.onCommitFiberRoot=="function")try{Vt.onCommitFiberRoot(Da,e,void 0,(e.current.flags&128)===128)}catch{}}var jt=Math.clz32?Math.clz32:Qw,Hw=Math.log,qw=Math.LN2;function Qw(e){return e>>>=0,e===0?32:31-(Hw(e)/qw|0)|0}var to=64,no=4194304;function Oi(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 sa(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=Oi(a):(s&=o,s!==0&&(r=Oi(s)))}else o=n&~i,o!==0?r=Oi(o):s!==0&&(r=Oi(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&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-jt(t),i=1<<n,r|=e[n],t&=~i;return r}function Ww(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 Kw(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-jt(s),a=1<<o,l=i[o];l===-1?(!(a&n)||a&r)&&(i[o]=Ww(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function zu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function j1(){var e=to;return to<<=1,!(to&4194240)&&(to=64),e}function Nl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function _s(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-jt(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 i=31-jt(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function td(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-jt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Y=0;function N1(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var T1,nd,_1,A1,I1,Bu=!1,ro=[],On=null,Rn=null,Pn=null,ns=new Map,rs=new Map,yn=[],Xw="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 wh(e,t){switch(e){case"focusin":case"focusout":On=null;break;case"dragenter":case"dragleave":Rn=null;break;case"mouseover":case"mouseout":Pn=null;break;case"pointerover":case"pointerout":ns.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":rs.delete(t.pointerId)}}function di(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=Is(t),t!==null&&nd(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Gw(e,t,n,r,i){switch(t){case"focusin":return On=di(On,e,t,n,r,i),!0;case"dragenter":return Rn=di(Rn,e,t,n,r,i),!0;case"mouseover":return Pn=di(Pn,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return ns.set(s,di(ns.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,rs.set(s,di(rs.get(s)||null,e,t,n,r,i)),!0}return!1}function L1(e){var t=Xn(e.target);if(t!==null){var n=dr(t);if(n!==null){if(t=n.tag,t===13){if(t=E1(n),t!==null){e.blockedOn=t,I1(e.priority,function(){_1(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 Ro(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Uu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Mu=r,n.target.dispatchEvent(r),Mu=null}else return t=Is(n),t!==null&&nd(t),e.blockedOn=n,!1;t.shift()}return!0}function xh(e,t,n){Ro(e)&&n.delete(t)}function Yw(){Bu=!1,On!==null&&Ro(On)&&(On=null),Rn!==null&&Ro(Rn)&&(Rn=null),Pn!==null&&Ro(Pn)&&(Pn=null),ns.forEach(xh),rs.forEach(xh)}function fi(e,t){e.blockedOn===t&&(e.blockedOn=null,Bu||(Bu=!0,it.unstable_scheduleCallback(it.unstable_NormalPriority,Yw)))}function is(e){function t(i){return fi(i,e)}if(0<ro.length){fi(ro[0],e);for(var n=1;n<ro.length;n++){var r=ro[n];r.blockedOn===e&&(r.blockedOn=null)}}for(On!==null&&fi(On,e),Rn!==null&&fi(Rn,e),Pn!==null&&fi(Pn,e),ns.forEach(t),rs.forEach(t),n=0;n<yn.length;n++)r=yn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<yn.length&&(n=yn[0],n.blockedOn===null);)L1(n),n.blockedOn===null&&yn.shift()}var Lr=dn.ReactCurrentBatchConfig,oa=!0;function Jw(e,t,n,r){var i=Y,s=Lr.transition;Lr.transition=null;try{Y=1,rd(e,t,n,r)}finally{Y=i,Lr.transition=s}}function ex(e,t,n,r){var i=Y,s=Lr.transition;Lr.transition=null;try{Y=4,rd(e,t,n,r)}finally{Y=i,Lr.transition=s}}function rd(e,t,n,r){if(oa){var i=Uu(e,t,n,r);if(i===null)zl(e,t,r,aa,n),wh(e,r);else if(Gw(i,e,t,n,r))r.stopPropagation();else if(wh(e,r),t&4&&-1<Xw.indexOf(e)){for(;i!==null;){var s=Is(i);if(s!==null&&T1(s),s=Uu(e,t,n,r),s===null&&zl(e,t,r,aa,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else zl(e,t,r,null,n)}}var aa=null;function Uu(e,t,n,r){if(aa=null,e=Jc(r),e=Xn(e),e!==null)if(t=dr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=E1(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 aa=e,null}function M1(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(Bw()){case ed:return 1;case R1:return 4;case ia:case Uw:return 16;case P1:return 536870912;default:return 16}default:return 16}}var Sn=null,id=null,Po=null;function D1(){if(Po)return Po;var e,t=id,n=t.length,r,i="value"in Sn?Sn.value:Sn.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return Po=i.slice(e,1<r?1-r:void 0)}function jo(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 io(){return!0}function Sh(){return!1}function at(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?io:Sh,this.isPropagationStopped=Sh,this}return ae(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=io)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=io)},persist:function(){},isPersistent:io}),t}var ti={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sd=at(ti),As=ae({},ti,{view:0,detail:0}),tx=at(As),Tl,_l,hi,Fa=ae({},As,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:od,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!==hi&&(hi&&e.type==="mousemove"?(Tl=e.screenX-hi.screenX,_l=e.screenY-hi.screenY):_l=Tl=0,hi=e),Tl)},movementY:function(e){return"movementY"in e?e.movementY:_l}}),bh=at(Fa),nx=ae({},Fa,{dataTransfer:0}),rx=at(nx),ix=ae({},As,{relatedTarget:0}),Al=at(ix),sx=ae({},ti,{animationName:0,elapsedTime:0,pseudoElement:0}),ox=at(sx),ax=ae({},ti,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lx=at(ax),ux=ae({},ti,{data:0}),Eh=at(ux),cx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dx={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"},fx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=fx[e])?!!t[e]:!1}function od(){return hx}var px=ae({},As,{key:function(e){if(e.key){var t=cx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=jo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?dx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:od,charCode:function(e){return e.type==="keypress"?jo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?jo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),mx=at(px),gx=ae({},Fa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ch=at(gx),vx=ae({},As,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:od}),yx=at(vx),wx=ae({},ti,{propertyName:0,elapsedTime:0,pseudoElement:0}),xx=at(wx),Sx=ae({},Fa,{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}),bx=at(Sx),Ex=[9,13,27,32],ad=sn&&"CompositionEvent"in window,Ai=null;sn&&"documentMode"in document&&(Ai=document.documentMode);var Cx=sn&&"TextEvent"in window&&!Ai,F1=sn&&(!ad||Ai&&8<Ai&&11>=Ai),kh=String.fromCharCode(32),Oh=!1;function $1(e,t){switch(e){case"keyup":return Ex.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function z1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Sr=!1;function kx(e,t){switch(e){case"compositionend":return z1(t);case"keypress":return t.which!==32?null:(Oh=!0,kh);case"textInput":return e=t.data,e===kh&&Oh?null:e;default:return null}}function Ox(e,t){if(Sr)return e==="compositionend"||!ad&&$1(e,t)?(e=D1(),Po=id=Sn=null,Sr=!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 F1&&t.locale!=="ko"?null:t.data;default:return null}}var Rx={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 Rh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Rx[e.type]:t==="textarea"}function B1(e,t,n,r){y1(r),t=la(t,"onChange"),0<t.length&&(n=new sd("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ii=null,ss=null;function Px(e){Y1(e,0)}function $a(e){var t=Cr(e);if(d1(t))return e}function jx(e,t){if(e==="change")return t}var U1=!1;if(sn){var Il;if(sn){var Ll="oninput"in document;if(!Ll){var Ph=document.createElement("div");Ph.setAttribute("oninput","return;"),Ll=typeof Ph.oninput=="function"}Il=Ll}else Il=!1;U1=Il&&(!document.documentMode||9<document.documentMode)}function jh(){Ii&&(Ii.detachEvent("onpropertychange",V1),ss=Ii=null)}function V1(e){if(e.propertyName==="value"&&$a(ss)){var t=[];B1(t,ss,e,Jc(e)),b1(Px,t)}}function Nx(e,t,n){e==="focusin"?(jh(),Ii=t,ss=n,Ii.attachEvent("onpropertychange",V1)):e==="focusout"&&jh()}function Tx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $a(ss)}function _x(e,t){if(e==="click")return $a(t)}function Ax(e,t){if(e==="input"||e==="change")return $a(t)}function Ix(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tt=typeof Object.is=="function"?Object.is:Ix;function os(e,t){if(Tt(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 i=n[r];if(!Cu.call(t,i)||!Tt(e[i],t[i]))return!1}return!0}function Nh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Th(e,t){var n=Nh(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=Nh(n)}}function H1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?H1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function q1(){for(var e=window,t=ta();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ta(e.document)}return t}function ld(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 Lx(e){var t=q1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&H1(n.ownerDocument.documentElement,n)){if(r!==null&&ld(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 i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Th(n,s);var o=Th(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>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 Mx=sn&&"documentMode"in document&&11>=document.documentMode,br=null,Vu=null,Li=null,Hu=!1;function _h(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Hu||br==null||br!==ta(r)||(r=br,"selectionStart"in r&&ld(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}),Li&&os(Li,r)||(Li=r,r=la(Vu,"onSelect"),0<r.length&&(t=new sd("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=br)))}function so(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Er={animationend:so("Animation","AnimationEnd"),animationiteration:so("Animation","AnimationIteration"),animationstart:so("Animation","AnimationStart"),transitionend:so("Transition","TransitionEnd")},Ml={},Q1={};sn&&(Q1=document.createElement("div").style,"AnimationEvent"in window||(delete Er.animationend.animation,delete Er.animationiteration.animation,delete Er.animationstart.animation),"TransitionEvent"in window||delete Er.transitionend.transition);function za(e){if(Ml[e])return Ml[e];if(!Er[e])return e;var t=Er[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Q1)return Ml[e]=t[n];return e}var W1=za("animationend"),K1=za("animationiteration"),Z1=za("animationstart"),X1=za("transitionend"),G1=new Map,Ah="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 Dn(e,t){G1.set(e,t),cr(t,[e])}for(var Dl=0;Dl<Ah.length;Dl++){var Fl=Ah[Dl],Dx=Fl.toLowerCase(),Fx=Fl[0].toUpperCase()+Fl.slice(1);Dn(Dx,"on"+Fx)}Dn(W1,"onAnimationEnd");Dn(K1,"onAnimationIteration");Dn(Z1,"onAnimationStart");Dn("dblclick","onDoubleClick");Dn("focusin","onFocus");Dn("focusout","onBlur");Dn(X1,"onTransitionEnd");zr("onMouseEnter",["mouseout","mouseover"]);zr("onMouseLeave",["mouseout","mouseover"]);zr("onPointerEnter",["pointerout","pointerover"]);zr("onPointerLeave",["pointerout","pointerover"]);cr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));cr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));cr("onBeforeInput",["compositionend","keypress","textInput","paste"]);cr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));cr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));cr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ri="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(" "),$x=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ri));function Ih(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Dw(r,t,void 0,e),e.currentTarget=null}function Y1(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=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!==s&&i.isPropagationStopped())break e;Ih(i,a,u),s=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==s&&i.isPropagationStopped())break e;Ih(i,a,u),s=l}}}if(ra)throw e=$u,ra=!1,$u=null,e}function te(e,t){var n=t[Zu];n===void 0&&(n=t[Zu]=new Set);var r=e+"__bubble";n.has(r)||(J1(t,e,2,!1),n.add(r))}function $l(e,t,n){var r=0;t&&(r|=4),J1(n,e,r,t)}var oo="_reactListening"+Math.random().toString(36).slice(2);function as(e){if(!e[oo]){e[oo]=!0,o1.forEach(function(n){n!=="selectionchange"&&($x.has(n)||$l(n,!1,e),$l(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[oo]||(t[oo]=!0,$l("selectionchange",!1,t))}}function J1(e,t,n,r){switch(M1(t)){case 1:var i=Jw;break;case 4:i=ex;break;default:i=rd}n=i.bind(null,t,n,e),i=void 0,!Fu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function zl(e,t,n,r,i){var s=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===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;a!==null;){if(o=Xn(a),o===null)return;if(l=o.tag,l===5||l===6){r=s=o;continue e}a=a.parentNode}}r=r.return}b1(function(){var u=s,c=Jc(n),d=[];e:{var h=G1.get(e);if(h!==void 0){var m=sd,p=e;switch(e){case"keypress":if(jo(n)===0)break e;case"keydown":case"keyup":m=mx;break;case"focusin":p="focus",m=Al;break;case"focusout":p="blur",m=Al;break;case"beforeblur":case"afterblur":m=Al;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=bh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=rx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=yx;break;case W1:case K1:case Z1:m=ox;break;case X1:m=xx;break;case"scroll":m=tx;break;case"wheel":m=bx;break;case"copy":case"cut":case"paste":m=lx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Ch}var y=(t&4)!==0,x=!y&&e==="scroll",g=y?h!==null?h+"Capture":null:h;y=[];for(var v=u,w;v!==null;){w=v;var S=w.stateNode;if(w.tag===5&&S!==null&&(w=S,g!==null&&(S=ts(v,g),S!=null&&y.push(ls(v,S,w)))),x)break;v=v.return}0<y.length&&(h=new m(h,p,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!==Mu&&(p=n.relatedTarget||n.fromElement)&&(Xn(p)||p[on]))break e;if((m||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,m?(p=n.relatedTarget||n.toElement,m=u,p=p?Xn(p):null,p!==null&&(x=dr(p),p!==x||p.tag!==5&&p.tag!==6)&&(p=null)):(m=null,p=u),m!==p)){if(y=bh,S="onMouseLeave",g="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(y=Ch,S="onPointerLeave",g="onPointerEnter",v="pointer"),x=m==null?h:Cr(m),w=p==null?h:Cr(p),h=new y(S,v+"leave",m,n,c),h.target=x,h.relatedTarget=w,S=null,Xn(c)===u&&(y=new y(g,v+"enter",p,n,c),y.target=w,y.relatedTarget=x,S=y),x=S,m&&p)t:{for(y=m,g=p,v=0,w=y;w;w=gr(w))v++;for(w=0,S=g;S;S=gr(S))w++;for(;0<v-w;)y=gr(y),v--;for(;0<w-v;)g=gr(g),w--;for(;v--;){if(y===g||g!==null&&y===g.alternate)break t;y=gr(y),g=gr(g)}y=null}else y=null;m!==null&&Lh(d,h,m,y,!1),p!==null&&x!==null&&Lh(d,x,p,y,!0)}}e:{if(h=u?Cr(u):window,m=h.nodeName&&h.nodeName.toLowerCase(),m==="select"||m==="input"&&h.type==="file")var C=jx;else if(Rh(h))if(U1)C=Ax;else{C=Tx;var k=Nx}else(m=h.nodeName)&&m.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(C=_x);if(C&&(C=C(e,u))){B1(d,C,n,c);break e}k&&k(e,h,u),e==="focusout"&&(k=h._wrapperState)&&k.controlled&&h.type==="number"&&Tu(h,"number",h.value)}switch(k=u?Cr(u):window,e){case"focusin":(Rh(k)||k.contentEditable==="true")&&(br=k,Vu=u,Li=null);break;case"focusout":Li=Vu=br=null;break;case"mousedown":Hu=!0;break;case"contextmenu":case"mouseup":case"dragend":Hu=!1,_h(d,n,c);break;case"selectionchange":if(Mx)break;case"keydown":case"keyup":_h(d,n,c)}var O;if(ad)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else Sr?$1(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(F1&&n.locale!=="ko"&&(Sr||R!=="onCompositionStart"?R==="onCompositionEnd"&&Sr&&(O=D1()):(Sn=c,id="value"in Sn?Sn.value:Sn.textContent,Sr=!0)),k=la(u,R),0<k.length&&(R=new Eh(R,e,null,n,c),d.push({event:R,listeners:k}),O?R.data=O:(O=z1(n),O!==null&&(R.data=O)))),(O=Cx?kx(e,n):Ox(e,n))&&(u=la(u,"onBeforeInput"),0<u.length&&(c=new Eh("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=O))}Y1(d,t)})}function ls(e,t,n){return{instance:e,listener:t,currentTarget:n}}function la(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=ts(e,n),s!=null&&r.unshift(ls(e,s,i)),s=ts(e,t),s!=null&&r.push(ls(e,s,i))),e=e.return}return r}function gr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Lh(e,t,n,r,i){for(var s=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,i?(l=ts(n,s),l!=null&&o.unshift(ls(n,l,a))):i||(l=ts(n,s),l!=null&&o.push(ls(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var zx=/\r\n?/g,Bx=/\u0000|\uFFFD/g;function Mh(e){return(typeof e=="string"?e:""+e).replace(zx,`
|
|
38
|
+
`).replace(Bx,"")}function ao(e,t,n){if(t=Mh(t),Mh(e)!==t&&n)throw Error(_(425))}function ua(){}var qu=null,Qu=null;function Wu(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 Ku=typeof setTimeout=="function"?setTimeout:void 0,Ux=typeof clearTimeout=="function"?clearTimeout:void 0,Dh=typeof Promise=="function"?Promise:void 0,Vx=typeof queueMicrotask=="function"?queueMicrotask:typeof Dh<"u"?function(e){return Dh.resolve(null).then(e).catch(Hx)}:Ku;function Hx(e){setTimeout(function(){throw e})}function Bl(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),is(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);is(t)}function jn(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 Fh(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 ni=Math.random().toString(36).slice(2),Bt="__reactFiber$"+ni,us="__reactProps$"+ni,on="__reactContainer$"+ni,Zu="__reactEvents$"+ni,qx="__reactListeners$"+ni,Qx="__reactHandles$"+ni;function Xn(e){var t=e[Bt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[on]||n[Bt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Fh(e);e!==null;){if(n=e[Bt])return n;e=Fh(e)}return t}e=n,n=e.parentNode}return null}function Is(e){return e=e[Bt]||e[on],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Cr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(_(33))}function Ba(e){return e[us]||null}var Xu=[],kr=-1;function Fn(e){return{current:e}}function ne(e){0>kr||(e.current=Xu[kr],Xu[kr]=null,kr--)}function ee(e,t){kr++,Xu[kr]=e.current,e.current=t}var Mn={},Pe=Fn(Mn),Qe=Fn(!1),rr=Mn;function Br(e,t){var n=e.type.contextTypes;if(!n)return Mn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function We(e){return e=e.childContextTypes,e!=null}function ca(){ne(Qe),ne(Pe)}function $h(e,t,n){if(Pe.current!==Mn)throw Error(_(168));ee(Pe,t),ee(Qe,n)}function eg(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(_(108,Nw(e)||"Unknown",i));return ae({},n,r)}function da(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mn,rr=Pe.current,ee(Pe,e),ee(Qe,Qe.current),!0}function zh(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=eg(e,t,rr),r.__reactInternalMemoizedMergedChildContext=e,ne(Qe),ne(Pe),ee(Pe,e)):ne(Qe),ee(Qe,n)}var Jt=null,Ua=!1,Ul=!1;function tg(e){Jt===null?Jt=[e]:Jt.push(e)}function Wx(e){Ua=!0,tg(e)}function $n(){if(!Ul&&Jt!==null){Ul=!0;var e=0,t=Y;try{var n=Jt;for(Y=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Jt=null,Ua=!1}catch(i){throw Jt!==null&&(Jt=Jt.slice(e+1)),O1(ed,$n),i}finally{Y=t,Ul=!1}}return null}var Or=[],Rr=0,fa=null,ha=0,ct=[],dt=0,ir=null,en=1,tn="";function Qn(e,t){Or[Rr++]=ha,Or[Rr++]=fa,fa=e,ha=t}function ng(e,t,n){ct[dt++]=en,ct[dt++]=tn,ct[dt++]=ir,ir=e;var r=en;e=tn;var i=32-jt(r)-1;r&=~(1<<i),n+=1;var s=32-jt(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,en=1<<32-jt(t)+i|n<<i|r,tn=s+e}else en=1<<s|n<<i|r,tn=e}function ud(e){e.return!==null&&(Qn(e,1),ng(e,1,0))}function cd(e){for(;e===fa;)fa=Or[--Rr],Or[Rr]=null,ha=Or[--Rr],Or[Rr]=null;for(;e===ir;)ir=ct[--dt],ct[dt]=null,tn=ct[--dt],ct[dt]=null,en=ct[--dt],ct[dt]=null}var rt=null,tt=null,re=!1,Ot=null;function rg(e,t){var n=pt(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 Bh(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,rt=e,tt=jn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,rt=e,tt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ir!==null?{id:en,overflow:tn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=pt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,rt=e,tt=null,!0):!1;default:return!1}}function Gu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Yu(e){if(re){var t=tt;if(t){var n=t;if(!Bh(e,t)){if(Gu(e))throw Error(_(418));t=jn(n.nextSibling);var r=rt;t&&Bh(e,t)?rg(r,n):(e.flags=e.flags&-4097|2,re=!1,rt=e)}}else{if(Gu(e))throw Error(_(418));e.flags=e.flags&-4097|2,re=!1,rt=e}}}function Uh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;rt=e}function lo(e){if(e!==rt)return!1;if(!re)return Uh(e),re=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Wu(e.type,e.memoizedProps)),t&&(t=tt)){if(Gu(e))throw ig(),Error(_(418));for(;t;)rg(e,t),t=jn(t.nextSibling)}if(Uh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(_(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){tt=jn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}tt=null}}else tt=rt?jn(e.stateNode.nextSibling):null;return!0}function ig(){for(var e=tt;e;)e=jn(e.nextSibling)}function Ur(){tt=rt=null,re=!1}function dd(e){Ot===null?Ot=[e]:Ot.push(e)}var Kx=dn.ReactCurrentBatchConfig;function Ct(e,t){if(e&&e.defaultProps){t=ae({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var pa=Fn(null),ma=null,Pr=null,fd=null;function hd(){fd=Pr=ma=null}function pd(e){var t=pa.current;ne(pa),e._currentValue=t}function Ju(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 Mr(e,t){ma=e,fd=Pr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(qe=!0),e.firstContext=null)}function vt(e){var t=e._currentValue;if(fd!==e)if(e={context:e,memoizedValue:t,next:null},Pr===null){if(ma===null)throw Error(_(308));Pr=e,ma.dependencies={lanes:0,firstContext:e}}else Pr=Pr.next=e;return t}var Gn=null;function md(e){Gn===null?Gn=[e]:Gn.push(e)}function sg(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,md(t)):(n.next=i.next,i.next=n),t.interleaved=n,an(e,r)}function an(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 vn=!1;function gd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function og(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 rn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Nn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,X&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,an(e,n)}return i=r.interleaved,i===null?(t.next=t,md(r)):(t.next=i.next,i.next=t),r.interleaved=t,an(e,n)}function No(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,td(e,n)}}function Vh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=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};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,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 ga(e,t,n,r){var i=e.updateQueue;vn=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?s=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(s!==null){var d=i.baseState;o=0,c=u=l=null,a=s;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 p=e,y=a;switch(h=t,m=n,y.tag){case 1:if(p=y.payload,typeof p=="function"){d=p.call(m,d,h);break e}d=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=y.payload,h=typeof p=="function"?p.call(m,d,h):p,h==null)break e;d=ae({},d,h);break e;case 2:vn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.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=i.shared.pending,a===null)break;h=a,a=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(1);if(c===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);or|=o,e.lanes=o,e.memoizedState=d}}function Hh(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(_(191,i));i.call(r)}}}var ag=new s1.Component().refs;function ec(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ae({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Va={isMounted:function(e){return(e=e._reactInternals)?dr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ae(),i=_n(e),s=rn(r,i);s.payload=t,n!=null&&(s.callback=n),t=Nn(e,s,i),t!==null&&(Nt(t,e,i,r),No(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ae(),i=_n(e),s=rn(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Nn(e,s,i),t!==null&&(Nt(t,e,i,r),No(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ae(),r=_n(e),i=rn(n,r);i.tag=2,t!=null&&(i.callback=t),t=Nn(e,i,r),t!==null&&(Nt(t,e,r,n),No(t,e,r))}};function qh(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!os(n,r)||!os(i,s):!0}function lg(e,t,n){var r=!1,i=Mn,s=t.contextType;return typeof s=="object"&&s!==null?s=vt(s):(i=We(t)?rr:Pe.current,r=t.contextTypes,s=(r=r!=null)?Br(e,i):Mn),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Va,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function Qh(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&&Va.enqueueReplaceState(t,t.state,null)}function tc(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=ag,gd(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=vt(s):(s=We(t)?rr:Pe.current,i.context=Br(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(ec(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Va.enqueueReplaceState(i,i.state,null),ga(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function pi(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(_(309));var r=n.stateNode}if(!r)throw Error(_(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=i.refs;a===ag&&(a=i.refs={}),o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(_(284));if(!n._owner)throw Error(_(290,e))}return e}function uo(e,t){throw e=Object.prototype.toString.call(t),Error(_(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Wh(e){var t=e._init;return t(e._payload)}function ug(e){function t(g,v){if(e){var w=g.deletions;w===null?(g.deletions=[v],g.flags|=16):w.push(v)}}function n(g,v){if(!e)return null;for(;v!==null;)t(g,v),v=v.sibling;return null}function r(g,v){for(g=new Map;v!==null;)v.key!==null?g.set(v.key,v):g.set(v.index,v),v=v.sibling;return g}function i(g,v){return g=An(g,v),g.index=0,g.sibling=null,g}function s(g,v,w){return g.index=w,e?(w=g.alternate,w!==null?(w=w.index,w<v?(g.flags|=2,v):w):(g.flags|=2,v)):(g.flags|=1048576,v)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function a(g,v,w,S){return v===null||v.tag!==6?(v=Zl(w,g.mode,S),v.return=g,v):(v=i(v,w),v.return=g,v)}function l(g,v,w,S){var C=w.type;return C===xr?c(g,v,w.props.children,S,w.key):v!==null&&(v.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===gn&&Wh(C)===v.type)?(S=i(v,w.props),S.ref=pi(g,v,w),S.return=g,S):(S=Mo(w.type,w.key,w.props,null,g.mode,S),S.ref=pi(g,v,w),S.return=g,S)}function u(g,v,w,S){return v===null||v.tag!==4||v.stateNode.containerInfo!==w.containerInfo||v.stateNode.implementation!==w.implementation?(v=Xl(w,g.mode,S),v.return=g,v):(v=i(v,w.children||[]),v.return=g,v)}function c(g,v,w,S,C){return v===null||v.tag!==7?(v=tr(w,g.mode,S,C),v.return=g,v):(v=i(v,w),v.return=g,v)}function d(g,v,w){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Zl(""+v,g.mode,w),v.return=g,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Ys:return w=Mo(v.type,v.key,v.props,null,g.mode,w),w.ref=pi(g,null,v),w.return=g,w;case wr:return v=Xl(v,g.mode,w),v.return=g,v;case gn:var S=v._init;return d(g,S(v._payload),w)}if(ki(v)||ui(v))return v=tr(v,g.mode,w,null),v.return=g,v;uo(g,v)}return null}function h(g,v,w,S){var C=v!==null?v.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return C!==null?null:a(g,v,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Ys:return w.key===C?l(g,v,w,S):null;case wr:return w.key===C?u(g,v,w,S):null;case gn:return C=w._init,h(g,v,C(w._payload),S)}if(ki(w)||ui(w))return C!==null?null:c(g,v,w,S,null);uo(g,w)}return null}function m(g,v,w,S,C){if(typeof S=="string"&&S!==""||typeof S=="number")return g=g.get(w)||null,a(v,g,""+S,C);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Ys:return g=g.get(S.key===null?w:S.key)||null,l(v,g,S,C);case wr:return g=g.get(S.key===null?w:S.key)||null,u(v,g,S,C);case gn:var k=S._init;return m(g,v,w,k(S._payload),C)}if(ki(S)||ui(S))return g=g.get(w)||null,c(v,g,S,C,null);uo(v,S)}return null}function p(g,v,w,S){for(var C=null,k=null,O=v,R=v=0,A=null;O!==null&&R<w.length;R++){O.index>R?(A=O,O=null):A=O.sibling;var I=h(g,O,w[R],S);if(I===null){O===null&&(O=A);break}e&&O&&I.alternate===null&&t(g,O),v=s(I,v,R),k===null?C=I:k.sibling=I,k=I,O=A}if(R===w.length)return n(g,O),re&&Qn(g,R),C;if(O===null){for(;R<w.length;R++)O=d(g,w[R],S),O!==null&&(v=s(O,v,R),k===null?C=O:k.sibling=O,k=O);return re&&Qn(g,R),C}for(O=r(g,O);R<w.length;R++)A=m(O,g,R,w[R],S),A!==null&&(e&&A.alternate!==null&&O.delete(A.key===null?R:A.key),v=s(A,v,R),k===null?C=A:k.sibling=A,k=A);return e&&O.forEach(function(M){return t(g,M)}),re&&Qn(g,R),C}function y(g,v,w,S){var C=ui(w);if(typeof C!="function")throw Error(_(150));if(w=C.call(w),w==null)throw Error(_(151));for(var k=C=null,O=v,R=v=0,A=null,I=w.next();O!==null&&!I.done;R++,I=w.next()){O.index>R?(A=O,O=null):A=O.sibling;var M=h(g,O,I.value,S);if(M===null){O===null&&(O=A);break}e&&O&&M.alternate===null&&t(g,O),v=s(M,v,R),k===null?C=M:k.sibling=M,k=M,O=A}if(I.done)return n(g,O),re&&Qn(g,R),C;if(O===null){for(;!I.done;R++,I=w.next())I=d(g,I.value,S),I!==null&&(v=s(I,v,R),k===null?C=I:k.sibling=I,k=I);return re&&Qn(g,R),C}for(O=r(g,O);!I.done;R++,I=w.next())I=m(O,g,R,I.value,S),I!==null&&(e&&I.alternate!==null&&O.delete(I.key===null?R:I.key),v=s(I,v,R),k===null?C=I:k.sibling=I,k=I);return e&&O.forEach(function(z){return t(g,z)}),re&&Qn(g,R),C}function x(g,v,w,S){if(typeof w=="object"&&w!==null&&w.type===xr&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Ys:e:{for(var C=w.key,k=v;k!==null;){if(k.key===C){if(C=w.type,C===xr){if(k.tag===7){n(g,k.sibling),v=i(k,w.props.children),v.return=g,g=v;break e}}else if(k.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===gn&&Wh(C)===k.type){n(g,k.sibling),v=i(k,w.props),v.ref=pi(g,k,w),v.return=g,g=v;break e}n(g,k);break}else t(g,k);k=k.sibling}w.type===xr?(v=tr(w.props.children,g.mode,S,w.key),v.return=g,g=v):(S=Mo(w.type,w.key,w.props,null,g.mode,S),S.ref=pi(g,v,w),S.return=g,g=S)}return o(g);case wr:e:{for(k=w.key;v!==null;){if(v.key===k)if(v.tag===4&&v.stateNode.containerInfo===w.containerInfo&&v.stateNode.implementation===w.implementation){n(g,v.sibling),v=i(v,w.children||[]),v.return=g,g=v;break e}else{n(g,v);break}else t(g,v);v=v.sibling}v=Xl(w,g.mode,S),v.return=g,g=v}return o(g);case gn:return k=w._init,x(g,v,k(w._payload),S)}if(ki(w))return p(g,v,w,S);if(ui(w))return y(g,v,w,S);uo(g,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,v!==null&&v.tag===6?(n(g,v.sibling),v=i(v,w),v.return=g,g=v):(n(g,v),v=Zl(w,g.mode,S),v.return=g,g=v),o(g)):n(g,v)}return x}var Vr=ug(!0),cg=ug(!1),Ls={},Ht=Fn(Ls),cs=Fn(Ls),ds=Fn(Ls);function Yn(e){if(e===Ls)throw Error(_(174));return e}function vd(e,t){switch(ee(ds,t),ee(cs,e),ee(Ht,Ls),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Au(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Au(t,e)}ne(Ht),ee(Ht,t)}function Hr(){ne(Ht),ne(cs),ne(ds)}function dg(e){Yn(ds.current);var t=Yn(Ht.current),n=Au(t,e.type);t!==n&&(ee(cs,e),ee(Ht,n))}function yd(e){cs.current===e&&(ne(Ht),ne(cs))}var se=Fn(0);function va(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 Vl=[];function wd(){for(var e=0;e<Vl.length;e++)Vl[e]._workInProgressVersionPrimary=null;Vl.length=0}var To=dn.ReactCurrentDispatcher,Hl=dn.ReactCurrentBatchConfig,sr=0,oe=null,pe=null,ve=null,ya=!1,Mi=!1,fs=0,Zx=0;function ke(){throw Error(_(321))}function xd(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Tt(e[n],t[n]))return!1;return!0}function Sd(e,t,n,r,i,s){if(sr=s,oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,To.current=e===null||e.memoizedState===null?Jx:eS,e=n(r,i),Mi){s=0;do{if(Mi=!1,fs=0,25<=s)throw Error(_(301));s+=1,ve=pe=null,t.updateQueue=null,To.current=tS,e=n(r,i)}while(Mi)}if(To.current=wa,t=pe!==null&&pe.next!==null,sr=0,ve=pe=oe=null,ya=!1,t)throw Error(_(300));return e}function bd(){var e=fs!==0;return fs=0,e}function $t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ve===null?oe.memoizedState=ve=e:ve=ve.next=e,ve}function yt(){if(pe===null){var e=oe.alternate;e=e!==null?e.memoizedState:null}else e=pe.next;var t=ve===null?oe.memoizedState:ve.next;if(t!==null)ve=t,pe=e;else{if(e===null)throw Error(_(310));pe=e,e={memoizedState:pe.memoizedState,baseState:pe.baseState,baseQueue:pe.baseQueue,queue:pe.queue,next:null},ve===null?oe.memoizedState=ve=e:ve=ve.next=e}return ve}function hs(e,t){return typeof t=="function"?t(e):t}function ql(e){var t=yt(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=pe,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var a=o=null,l=null,u=s;do{var c=u.lane;if((sr&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,oe.lanes|=c,or|=c}u=u.next}while(u!==null&&u!==s);l===null?o=r:l.next=a,Tt(r,t.memoizedState)||(qe=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,oe.lanes|=s,or|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ql(e){var t=yt(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);Tt(s,t.memoizedState)||(qe=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function fg(){}function hg(e,t){var n=oe,r=yt(),i=t(),s=!Tt(r.memoizedState,i);if(s&&(r.memoizedState=i,qe=!0),r=r.queue,Ed(gg.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||ve!==null&&ve.memoizedState.tag&1){if(n.flags|=2048,ps(9,mg.bind(null,n,r,i,t),void 0,null),ye===null)throw Error(_(349));sr&30||pg(n,t,i)}return i}function pg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=oe.updateQueue,t===null?(t={lastEffect:null,stores:null},oe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function mg(e,t,n,r){t.value=n,t.getSnapshot=r,vg(t)&&yg(e)}function gg(e,t,n){return n(function(){vg(t)&&yg(e)})}function vg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Tt(e,n)}catch{return!0}}function yg(e){var t=an(e,1);t!==null&&Nt(t,e,1,-1)}function Kh(e){var t=$t();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:hs,lastRenderedState:e},t.queue=e,e=e.dispatch=Yx.bind(null,oe,e),[t.memoizedState,e]}function ps(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=oe.updateQueue,t===null?(t={lastEffect:null,stores:null},oe.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 wg(){return yt().memoizedState}function _o(e,t,n,r){var i=$t();oe.flags|=e,i.memoizedState=ps(1|t,n,void 0,r===void 0?null:r)}function Ha(e,t,n,r){var i=yt();r=r===void 0?null:r;var s=void 0;if(pe!==null){var o=pe.memoizedState;if(s=o.destroy,r!==null&&xd(r,o.deps)){i.memoizedState=ps(t,n,s,r);return}}oe.flags|=e,i.memoizedState=ps(1|t,n,s,r)}function Zh(e,t){return _o(8390656,8,e,t)}function Ed(e,t){return Ha(2048,8,e,t)}function xg(e,t){return Ha(4,2,e,t)}function Sg(e,t){return Ha(4,4,e,t)}function bg(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 Eg(e,t,n){return n=n!=null?n.concat([e]):null,Ha(4,4,bg.bind(null,t,e),n)}function Cd(){}function Cg(e,t){var n=yt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&xd(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function kg(e,t){var n=yt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&xd(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Og(e,t,n){return sr&21?(Tt(n,t)||(n=j1(),oe.lanes|=n,or|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,qe=!0),e.memoizedState=n)}function Xx(e,t){var n=Y;Y=n!==0&&4>n?n:4,e(!0);var r=Hl.transition;Hl.transition={};try{e(!1),t()}finally{Y=n,Hl.transition=r}}function Rg(){return yt().memoizedState}function Gx(e,t,n){var r=_n(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Pg(e))jg(t,n);else if(n=sg(e,t,n,r),n!==null){var i=Ae();Nt(n,e,r,i),Ng(n,t,r)}}function Yx(e,t,n){var r=_n(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Pg(e))jg(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,Tt(a,o)){var l=t.interleaved;l===null?(i.next=i,md(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=sg(e,t,i,r),n!==null&&(i=Ae(),Nt(n,e,r,i),Ng(n,t,r))}}function Pg(e){var t=e.alternate;return e===oe||t!==null&&t===oe}function jg(e,t){Mi=ya=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ng(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,td(e,n)}}var wa={readContext:vt,useCallback:ke,useContext:ke,useEffect:ke,useImperativeHandle:ke,useInsertionEffect:ke,useLayoutEffect:ke,useMemo:ke,useReducer:ke,useRef:ke,useState:ke,useDebugValue:ke,useDeferredValue:ke,useTransition:ke,useMutableSource:ke,useSyncExternalStore:ke,useId:ke,unstable_isNewReconciler:!1},Jx={readContext:vt,useCallback:function(e,t){return $t().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:Zh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_o(4194308,4,bg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _o(4194308,4,e,t)},useInsertionEffect:function(e,t){return _o(4,2,e,t)},useMemo:function(e,t){var n=$t();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$t();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=Gx.bind(null,oe,e),[r.memoizedState,e]},useRef:function(e){var t=$t();return e={current:e},t.memoizedState=e},useState:Kh,useDebugValue:Cd,useDeferredValue:function(e){return $t().memoizedState=e},useTransition:function(){var e=Kh(!1),t=e[0];return e=Xx.bind(null,e[1]),$t().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=oe,i=$t();if(re){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),ye===null)throw Error(_(349));sr&30||pg(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Zh(gg.bind(null,r,s,e),[e]),r.flags|=2048,ps(9,mg.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=$t(),t=ye.identifierPrefix;if(re){var n=tn,r=en;n=(r&~(1<<32-jt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=fs++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Zx++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},eS={readContext:vt,useCallback:Cg,useContext:vt,useEffect:Ed,useImperativeHandle:Eg,useInsertionEffect:xg,useLayoutEffect:Sg,useMemo:kg,useReducer:ql,useRef:wg,useState:function(){return ql(hs)},useDebugValue:Cd,useDeferredValue:function(e){var t=yt();return Og(t,pe.memoizedState,e)},useTransition:function(){var e=ql(hs)[0],t=yt().memoizedState;return[e,t]},useMutableSource:fg,useSyncExternalStore:hg,useId:Rg,unstable_isNewReconciler:!1},tS={readContext:vt,useCallback:Cg,useContext:vt,useEffect:Ed,useImperativeHandle:Eg,useInsertionEffect:xg,useLayoutEffect:Sg,useMemo:kg,useReducer:Ql,useRef:wg,useState:function(){return Ql(hs)},useDebugValue:Cd,useDeferredValue:function(e){var t=yt();return pe===null?t.memoizedState=e:Og(t,pe.memoizedState,e)},useTransition:function(){var e=Ql(hs)[0],t=yt().memoizedState;return[e,t]},useMutableSource:fg,useSyncExternalStore:hg,useId:Rg,unstable_isNewReconciler:!1};function qr(e,t){try{var n="",r=t;do n+=jw(r),r=r.return;while(r);var i=n}catch(s){i=`
|
|
39
|
+
Error generating stack: `+s.message+`
|
|
40
|
+
`+s.stack}return{value:e,source:t,stack:i,digest:null}}function Wl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function nc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var nS=typeof WeakMap=="function"?WeakMap:Map;function Tg(e,t,n){n=rn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Sa||(Sa=!0,fc=r),nc(e,t)},n}function _g(e,t,n){n=rn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){nc(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){nc(e,t),typeof r!="function"&&(Tn===null?Tn=new Set([this]):Tn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Xh(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new nS;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=gS.bind(null,e,t,n),t.then(e,e))}function Gh(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 Yh(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,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=rn(-1,1),t.tag=2,Nn(n,t,1))),n.lanes|=1),e)}var rS=dn.ReactCurrentOwner,qe=!1;function Te(e,t,n,r){t.child=e===null?cg(t,null,n,r):Vr(t,e.child,n,r)}function Jh(e,t,n,r,i){n=n.render;var s=t.ref;return Mr(t,i),r=Sd(e,t,n,r,s,i),n=bd(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ln(e,t,i)):(re&&n&&ud(t),t.flags|=1,Te(e,t,r,i),t.child)}function ep(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!_d(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,Ag(e,t,s,r,i)):(e=Mo(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:os,n(o,r)&&e.ref===t.ref)return ln(e,t,i)}return t.flags|=1,e=An(s,r),e.ref=t.ref,e.return=t,t.child=e}function Ag(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(os(s,r)&&e.ref===t.ref)if(qe=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(qe=!0);else return t.lanes=e.lanes,ln(e,t,i)}return rc(e,t,n,r,i)}function Ig(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ee(Nr,Je),Je|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ee(Nr,Je),Je|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,ee(Nr,Je),Je|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,ee(Nr,Je),Je|=r;return Te(e,t,i,n),t.child}function Lg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function rc(e,t,n,r,i){var s=We(n)?rr:Pe.current;return s=Br(t,s),Mr(t,i),n=Sd(e,t,n,r,s,i),r=bd(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ln(e,t,i)):(re&&r&&ud(t),t.flags|=1,Te(e,t,n,i),t.child)}function tp(e,t,n,r,i){if(We(n)){var s=!0;da(t)}else s=!1;if(Mr(t,i),t.stateNode===null)Ao(e,t),lg(t,n,r),tc(t,n,r,i),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=vt(u):(u=We(n)?rr:Pe.current,u=Br(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)&&Qh(t,o,r,u),vn=!1;var h=t.memoizedState;o.state=h,ga(t,r,o,i),l=t.memoizedState,a!==r||h!==l||Qe.current||vn?(typeof c=="function"&&(ec(t,n,c,r),l=t.memoizedState),(a=vn||qh(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,og(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Ct(t.type,a),o.props=u,d=t.pendingProps,h=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=vt(l):(l=We(n)?rr:Pe.current,l=Br(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)&&Qh(t,o,r,l),vn=!1,h=t.memoizedState,o.state=h,ga(t,r,o,i);var p=t.memoizedState;a!==d||h!==p||Qe.current||vn?(typeof m=="function"&&(ec(t,n,m,r),p=t.memoizedState),(u=vn||qh(t,n,u,r,h,p,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,p,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,p,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=p),o.props=r,o.state=p,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 ic(e,t,n,r,s,i)}function ic(e,t,n,r,i,s){Lg(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&zh(t,n,!1),ln(e,t,s);r=t.stateNode,rS.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Vr(t,e.child,null,s),t.child=Vr(t,null,a,s)):Te(e,t,a,s),t.memoizedState=r.state,i&&zh(t,n,!0),t.child}function Mg(e){var t=e.stateNode;t.pendingContext?$h(e,t.pendingContext,t.pendingContext!==t.context):t.context&&$h(e,t.context,!1),vd(e,t.containerInfo)}function np(e,t,n,r,i){return Ur(),dd(i),t.flags|=256,Te(e,t,n,r),t.child}var sc={dehydrated:null,treeContext:null,retryLane:0};function oc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Dg(e,t,n){var r=t.pendingProps,i=se.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ee(se,i&1),e===null)return Yu(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,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Wa(o,r,0,null),e=tr(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=oc(n),t.memoizedState=sc,e):kd(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return iS(e,t,o,r,a,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=An(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=An(a,s):(s=tr(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?oc(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=sc,r}return s=e.child,e=s.sibling,r=An(s,{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 kd(e,t){return t=Wa({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function co(e,t,n,r){return r!==null&&dd(r),Vr(t,e.child,null,n),e=kd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function iS(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=Wl(Error(_(422))),co(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=Wa({mode:"visible",children:r.children},i,0,null),s=tr(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Vr(t,e.child,null,o),t.child.memoizedState=oc(o),t.memoizedState=sc,s);if(!(t.mode&1))return co(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(_(419)),r=Wl(s,r,void 0),co(e,t,o,r)}if(a=(o&e.childLanes)!==0,qe||a){if(r=ye,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,an(e,i),Nt(r,e,i,-1))}return Td(),r=Wl(Error(_(421))),co(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=vS.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,tt=jn(i.nextSibling),rt=t,re=!0,Ot=null,e!==null&&(ct[dt++]=en,ct[dt++]=tn,ct[dt++]=ir,en=e.id,tn=e.overflow,ir=t),t=kd(t,r.children),t.flags|=4096,t)}function rp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ju(e.return,t,n)}function Kl(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function Fg(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Te(e,t,r.children,n),r=se.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&&rp(e,n,t);else if(e.tag===19)rp(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(ee(se,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&va(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Kl(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&va(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Kl(t,!0,n,null,s);break;case"together":Kl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ao(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ln(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),or|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(_(153));if(t.child!==null){for(e=t.child,n=An(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=An(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function sS(e,t,n){switch(t.tag){case 3:Mg(t),Ur();break;case 5:dg(t);break;case 1:We(t.type)&&da(t);break;case 4:vd(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ee(pa,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ee(se,se.current&1),t.flags|=128,null):n&t.child.childLanes?Dg(e,t,n):(ee(se,se.current&1),e=ln(e,t,n),e!==null?e.sibling:null);ee(se,se.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Fg(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ee(se,se.current),r)break;return null;case 22:case 23:return t.lanes=0,Ig(e,t,n)}return ln(e,t,n)}var $g,ac,zg,Bg;$g=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}};ac=function(){};zg=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Yn(Ht.current);var s=null;switch(n){case"input":i=ju(e,i),r=ju(e,r),s=[];break;case"select":i=ae({},i,{value:void 0}),r=ae({},r,{value:void 0}),s=[];break;case"textarea":i=_u(e,i),r=_u(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ua)}Iu(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ji.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var l=r[u];if(a=i!=null?i[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||(s||(s=[]),s.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ji.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&te("scroll",e),s||a===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};Bg=function(e,t,n,r){n!==r&&(t.flags|=4)};function mi(e,t){if(!re)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 Oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function oS(e,t,n){var r=t.pendingProps;switch(cd(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(t),null;case 1:return We(t.type)&&ca(),Oe(t),null;case 3:return r=t.stateNode,Hr(),ne(Qe),ne(Pe),wd(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(lo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ot!==null&&(mc(Ot),Ot=null))),ac(e,t),Oe(t),null;case 5:yd(t);var i=Yn(ds.current);if(n=t.type,e!==null&&t.stateNode!=null)zg(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(_(166));return Oe(t),null}if(e=Yn(Ht.current),lo(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Bt]=t,r[us]=s,e=(t.mode&1)!==0,n){case"dialog":te("cancel",r),te("close",r);break;case"iframe":case"object":case"embed":te("load",r);break;case"video":case"audio":for(i=0;i<Ri.length;i++)te(Ri[i],r);break;case"source":te("error",r);break;case"img":case"image":case"link":te("error",r),te("load",r);break;case"details":te("toggle",r);break;case"input":fh(r,s),te("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},te("invalid",r);break;case"textarea":ph(r,s),te("invalid",r)}Iu(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&ao(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&ao(r.textContent,a,e),i=["children",""+a]):Ji.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&te("scroll",r)}switch(n){case"input":Js(r),hh(r,s,!0);break;case"textarea":Js(r),mh(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=ua)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=p1(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[Bt]=t,e[us]=r,$g(e,t,!1,!1),t.stateNode=e;e:{switch(o=Lu(n,r),n){case"dialog":te("cancel",e),te("close",e),i=r;break;case"iframe":case"object":case"embed":te("load",e),i=r;break;case"video":case"audio":for(i=0;i<Ri.length;i++)te(Ri[i],e);i=r;break;case"source":te("error",e),i=r;break;case"img":case"image":case"link":te("error",e),te("load",e),i=r;break;case"details":te("toggle",e),i=r;break;case"input":fh(e,r),i=ju(e,r),te("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ae({},r,{value:void 0}),te("invalid",e);break;case"textarea":ph(e,r),i=_u(e,r),te("invalid",e);break;default:i=r}Iu(n,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?v1(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&m1(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&es(e,l):typeof l=="number"&&es(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Ji.hasOwnProperty(s)?l!=null&&s==="onScroll"&&te("scroll",e):l!=null&&Zc(e,s,l,o))}switch(n){case"input":Js(e),hh(e,r,!1);break;case"textarea":Js(e),mh(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ln(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?_r(e,!!r.multiple,s,!1):r.defaultValue!=null&&_r(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=ua)}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 Oe(t),null;case 6:if(e&&t.stateNode!=null)Bg(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(_(166));if(n=Yn(ds.current),Yn(Ht.current),lo(t)){if(r=t.stateNode,n=t.memoizedProps,r[Bt]=t,(s=r.nodeValue!==n)&&(e=rt,e!==null))switch(e.tag){case 3:ao(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ao(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Bt]=t,t.stateNode=r}return Oe(t),null;case 13:if(ne(se),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(re&&tt!==null&&t.mode&1&&!(t.flags&128))ig(),Ur(),t.flags|=98560,s=!1;else if(s=lo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(_(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(_(317));s[Bt]=t}else Ur(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Oe(t),s=!1}else Ot!==null&&(mc(Ot),Ot=null),s=!0;if(!s)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||se.current&1?me===0&&(me=3):Td())),t.updateQueue!==null&&(t.flags|=4),Oe(t),null);case 4:return Hr(),ac(e,t),e===null&&as(t.stateNode.containerInfo),Oe(t),null;case 10:return pd(t.type._context),Oe(t),null;case 17:return We(t.type)&&ca(),Oe(t),null;case 19:if(ne(se),s=t.memoizedState,s===null)return Oe(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)mi(s,!1);else{if(me!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=va(e),o!==null){for(t.flags|=128,mi(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ee(se,se.current&1|2),t.child}e=e.sibling}s.tail!==null&&ce()>Qr&&(t.flags|=128,r=!0,mi(s,!1),t.lanes=4194304)}else{if(!r)if(e=va(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),mi(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!re)return Oe(t),null}else 2*ce()-s.renderingStartTime>Qr&&n!==1073741824&&(t.flags|=128,r=!0,mi(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=ce(),t.sibling=null,n=se.current,ee(se,r?n&1|2:n&1),t):(Oe(t),null);case 22:case 23:return Nd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Je&1073741824&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}function aS(e,t){switch(cd(t),t.tag){case 1:return We(t.type)&&ca(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hr(),ne(Qe),ne(Pe),wd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return yd(t),null;case 13:if(ne(se),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));Ur()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ne(se),null;case 4:return Hr(),null;case 10:return pd(t.type._context),null;case 22:case 23:return Nd(),null;case 24:return null;default:return null}}var fo=!1,Re=!1,lS=typeof WeakSet=="function"?WeakSet:Set,D=null;function jr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){le(e,t,r)}else n.current=null}function lc(e,t,n){try{n()}catch(r){le(e,t,r)}}var ip=!1;function uS(e,t){if(qu=oa,e=q1(),ld(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 i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.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||i!==0&&d.nodeType!==3||(a=o+i),d!==s||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===i&&(a=o),h===s&&++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(Qu={focusedElem:e,selectionRange:n},oa=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var y=p.memoizedProps,x=p.memoizedState,g=t.stateNode,v=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ct(t.type,y),x);g.__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(_(163))}}catch(S){le(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return p=ip,ip=!1,p}function Di(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&lc(t,n,s)}i=i.next}while(i!==r)}}function qa(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 uc(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 Ug(e){var t=e.alternate;t!==null&&(e.alternate=null,Ug(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Bt],delete t[us],delete t[Zu],delete t[qx],delete t[Qx])),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 Vg(e){return e.tag===5||e.tag===3||e.tag===4}function sp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Vg(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 cc(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=ua));else if(r!==4&&(e=e.child,e!==null))for(cc(e,t,n),e=e.sibling;e!==null;)cc(e,t,n),e=e.sibling}function dc(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(dc(e,t,n),e=e.sibling;e!==null;)dc(e,t,n),e=e.sibling}var Se=null,kt=!1;function hn(e,t,n){for(n=n.child;n!==null;)Hg(e,t,n),n=n.sibling}function Hg(e,t,n){if(Vt&&typeof Vt.onCommitFiberUnmount=="function")try{Vt.onCommitFiberUnmount(Da,n)}catch{}switch(n.tag){case 5:Re||jr(n,t);case 6:var r=Se,i=kt;Se=null,hn(e,t,n),Se=r,kt=i,Se!==null&&(kt?(e=Se,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Se.removeChild(n.stateNode));break;case 18:Se!==null&&(kt?(e=Se,n=n.stateNode,e.nodeType===8?Bl(e.parentNode,n):e.nodeType===1&&Bl(e,n),is(e)):Bl(Se,n.stateNode));break;case 4:r=Se,i=kt,Se=n.stateNode.containerInfo,kt=!0,hn(e,t,n),Se=r,kt=i;break;case 0:case 11:case 14:case 15:if(!Re&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&lc(n,t,o),i=i.next}while(i!==r)}hn(e,t,n);break;case 1:if(!Re&&(jr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){le(n,t,a)}hn(e,t,n);break;case 21:hn(e,t,n);break;case 22:n.mode&1?(Re=(r=Re)||n.memoizedState!==null,hn(e,t,n),Re=r):hn(e,t,n);break;default:hn(e,t,n)}}function op(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new lS),t.forEach(function(r){var i=yS.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Et(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:Se=a.stateNode,kt=!1;break e;case 3:Se=a.stateNode.containerInfo,kt=!0;break e;case 4:Se=a.stateNode.containerInfo,kt=!0;break e}a=a.return}if(Se===null)throw Error(_(160));Hg(s,o,i),Se=null,kt=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){le(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)qg(t,e),t=t.sibling}function qg(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Et(t,e),Dt(e),r&4){try{Di(3,e,e.return),qa(3,e)}catch(y){le(e,e.return,y)}try{Di(5,e,e.return)}catch(y){le(e,e.return,y)}}break;case 1:Et(t,e),Dt(e),r&512&&n!==null&&jr(n,n.return);break;case 5:if(Et(t,e),Dt(e),r&512&&n!==null&&jr(n,n.return),e.flags&32){var i=e.stateNode;try{es(i,"")}catch(y){le(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&f1(i,s),Lu(a,o);var u=Lu(a,s);for(o=0;o<l.length;o+=2){var c=l[o],d=l[o+1];c==="style"?v1(i,d):c==="dangerouslySetInnerHTML"?m1(i,d):c==="children"?es(i,d):Zc(i,c,d,u)}switch(a){case"input":Nu(i,s);break;case"textarea":h1(i,s);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var m=s.value;m!=null?_r(i,!!s.multiple,m,!1):h!==!!s.multiple&&(s.defaultValue!=null?_r(i,!!s.multiple,s.defaultValue,!0):_r(i,!!s.multiple,s.multiple?[]:"",!1))}i[us]=s}catch(y){le(e,e.return,y)}}break;case 6:if(Et(t,e),Dt(e),r&4){if(e.stateNode===null)throw Error(_(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(y){le(e,e.return,y)}}break;case 3:if(Et(t,e),Dt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{is(t.containerInfo)}catch(y){le(e,e.return,y)}break;case 4:Et(t,e),Dt(e);break;case 13:Et(t,e),Dt(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Pd=ce())),r&4&&op(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Re=(u=Re)||c,Et(t,e),Re=u):Et(t,e),Dt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(D=e,c=e.child;c!==null;){for(d=D=c;D!==null;){switch(h=D,m=h.child,h.tag){case 0:case 11:case 14:case 15:Di(4,h,h.return);break;case 1:jr(h,h.return);var p=h.stateNode;if(typeof p.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(y){le(r,n,y)}}break;case 5:jr(h,h.return);break;case 22:if(h.memoizedState!==null){lp(d);continue}}m!==null?(m.return=h,D=m):lp(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{i=d.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=d.stateNode,l=d.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=g1("display",o))}catch(y){le(e,e.return,y)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(y){le(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:Et(t,e),Dt(e),r&4&&op(e);break;case 21:break;default:Et(t,e),Dt(e)}}function Dt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Vg(n)){var r=n;break e}n=n.return}throw Error(_(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(es(i,""),r.flags&=-33);var s=sp(e);dc(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=sp(e);cc(e,a,o);break;default:throw Error(_(161))}}catch(l){le(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function cS(e,t,n){D=e,Qg(e)}function Qg(e,t,n){for(var r=(e.mode&1)!==0;D!==null;){var i=D,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||fo;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||Re;a=fo;var u=Re;if(fo=o,(Re=l)&&!u)for(D=i;D!==null;)o=D,l=o.child,o.tag===22&&o.memoizedState!==null?up(i):l!==null?(l.return=o,D=l):up(i);for(;s!==null;)D=s,Qg(s),s=s.sibling;D=i,fo=a,Re=u}ap(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,D=s):ap(e)}}function ap(e){for(;D!==null;){var t=D;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Re||qa(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Re)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Ct(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Hh(t,s,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}Hh(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&&is(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(_(163))}Re||t.flags&512&&uc(t)}catch(h){le(t,t.return,h)}}if(t===e){D=null;break}if(n=t.sibling,n!==null){n.return=t.return,D=n;break}D=t.return}}function lp(e){for(;D!==null;){var t=D;if(t===e){D=null;break}var n=t.sibling;if(n!==null){n.return=t.return,D=n;break}D=t.return}}function up(e){for(;D!==null;){var t=D;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{qa(4,t)}catch(l){le(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){le(t,i,l)}}var s=t.return;try{uc(t)}catch(l){le(t,s,l)}break;case 5:var o=t.return;try{uc(t)}catch(l){le(t,o,l)}}}catch(l){le(t,t.return,l)}if(t===e){D=null;break}var a=t.sibling;if(a!==null){a.return=t.return,D=a;break}D=t.return}}var dS=Math.ceil,xa=dn.ReactCurrentDispatcher,Od=dn.ReactCurrentOwner,mt=dn.ReactCurrentBatchConfig,X=0,ye=null,fe=null,be=0,Je=0,Nr=Fn(0),me=0,ms=null,or=0,Qa=0,Rd=0,Fi=null,Ue=null,Pd=0,Qr=1/0,Gt=null,Sa=!1,fc=null,Tn=null,ho=!1,bn=null,ba=0,$i=0,hc=null,Io=-1,Lo=0;function Ae(){return X&6?ce():Io!==-1?Io:Io=ce()}function _n(e){return e.mode&1?X&2&&be!==0?be&-be:Kx.transition!==null?(Lo===0&&(Lo=j1()),Lo):(e=Y,e!==0||(e=window.event,e=e===void 0?16:M1(e.type)),e):1}function Nt(e,t,n,r){if(50<$i)throw $i=0,hc=null,Error(_(185));_s(e,n,r),(!(X&2)||e!==ye)&&(e===ye&&(!(X&2)&&(Qa|=n),me===4&&wn(e,be)),Ke(e,r),n===1&&X===0&&!(t.mode&1)&&(Qr=ce()+500,Ua&&$n()))}function Ke(e,t){var n=e.callbackNode;Kw(e,t);var r=sa(e,e===ye?be:0);if(r===0)n!==null&&yh(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&yh(n),t===1)e.tag===0?Wx(cp.bind(null,e)):tg(cp.bind(null,e)),Vx(function(){!(X&6)&&$n()}),n=null;else{switch(N1(r)){case 1:n=ed;break;case 4:n=R1;break;case 16:n=ia;break;case 536870912:n=P1;break;default:n=ia}n=e0(n,Wg.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Wg(e,t){if(Io=-1,Lo=0,X&6)throw Error(_(327));var n=e.callbackNode;if(Dr()&&e.callbackNode!==n)return null;var r=sa(e,e===ye?be:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ea(e,r);else{t=r;var i=X;X|=2;var s=Zg();(ye!==e||be!==t)&&(Gt=null,Qr=ce()+500,er(e,t));do try{pS();break}catch(a){Kg(e,a)}while(1);hd(),xa.current=s,X=i,fe!==null?t=0:(ye=null,be=0,t=me)}if(t!==0){if(t===2&&(i=zu(e),i!==0&&(r=i,t=pc(e,i))),t===1)throw n=ms,er(e,0),wn(e,r),Ke(e,ce()),n;if(t===6)wn(e,r);else{if(i=e.current.alternate,!(r&30)&&!fS(i)&&(t=Ea(e,r),t===2&&(s=zu(e),s!==0&&(r=s,t=pc(e,s))),t===1))throw n=ms,er(e,0),wn(e,r),Ke(e,ce()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(_(345));case 2:Wn(e,Ue,Gt);break;case 3:if(wn(e,r),(r&130023424)===r&&(t=Pd+500-ce(),10<t)){if(sa(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ae(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ku(Wn.bind(null,e,Ue,Gt),t);break}Wn(e,Ue,Gt);break;case 4:if(wn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-jt(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=ce()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*dS(r/1960))-r,10<r){e.timeoutHandle=Ku(Wn.bind(null,e,Ue,Gt),r);break}Wn(e,Ue,Gt);break;case 5:Wn(e,Ue,Gt);break;default:throw Error(_(329))}}}return Ke(e,ce()),e.callbackNode===n?Wg.bind(null,e):null}function pc(e,t){var n=Fi;return e.current.memoizedState.isDehydrated&&(er(e,t).flags|=256),e=Ea(e,t),e!==2&&(t=Ue,Ue=n,t!==null&&mc(t)),e}function mc(e){Ue===null?Ue=e:Ue.push.apply(Ue,e)}function fS(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 i=n[r],s=i.getSnapshot;i=i.value;try{if(!Tt(s(),i))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 wn(e,t){for(t&=~Rd,t&=~Qa,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-jt(t),r=1<<n;e[n]=-1,t&=~r}}function cp(e){if(X&6)throw Error(_(327));Dr();var t=sa(e,0);if(!(t&1))return Ke(e,ce()),null;var n=Ea(e,t);if(e.tag!==0&&n===2){var r=zu(e);r!==0&&(t=r,n=pc(e,r))}if(n===1)throw n=ms,er(e,0),wn(e,t),Ke(e,ce()),n;if(n===6)throw Error(_(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Wn(e,Ue,Gt),Ke(e,ce()),null}function jd(e,t){var n=X;X|=1;try{return e(t)}finally{X=n,X===0&&(Qr=ce()+500,Ua&&$n())}}function ar(e){bn!==null&&bn.tag===0&&!(X&6)&&Dr();var t=X;X|=1;var n=mt.transition,r=Y;try{if(mt.transition=null,Y=1,e)return e()}finally{Y=r,mt.transition=n,X=t,!(X&6)&&$n()}}function Nd(){Je=Nr.current,ne(Nr)}function er(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Ux(n)),fe!==null)for(n=fe.return;n!==null;){var r=n;switch(cd(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ca();break;case 3:Hr(),ne(Qe),ne(Pe),wd();break;case 5:yd(r);break;case 4:Hr();break;case 13:ne(se);break;case 19:ne(se);break;case 10:pd(r.type._context);break;case 22:case 23:Nd()}n=n.return}if(ye=e,fe=e=An(e.current,null),be=Je=t,me=0,ms=null,Rd=Qa=or=0,Ue=Fi=null,Gn!==null){for(t=0;t<Gn.length;t++)if(n=Gn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}Gn=null}return e}function Kg(e,t){do{var n=fe;try{if(hd(),To.current=wa,ya){for(var r=oe.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}ya=!1}if(sr=0,ve=pe=oe=null,Mi=!1,fs=0,Od.current=null,n===null||n.return===null){me=1,ms=t,fe=null;break}e:{var s=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=Gh(o);if(m!==null){m.flags&=-257,Yh(m,o,a,s,t),m.mode&1&&Xh(s,u,t),t=m,l=u;var p=t.updateQueue;if(p===null){var y=new Set;y.add(l),t.updateQueue=y}else p.add(l);break e}else{if(!(t&1)){Xh(s,u,t),Td();break e}l=Error(_(426))}}else if(re&&a.mode&1){var x=Gh(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),Yh(x,o,a,s,t),dd(qr(l,a));break e}}s=l=qr(l,a),me!==4&&(me=2),Fi===null?Fi=[s]:Fi.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var g=Tg(s,l,t);Vh(s,g);break e;case 1:a=l;var v=s.type,w=s.stateNode;if(!(s.flags&128)&&(typeof v.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Tn===null||!Tn.has(w)))){s.flags|=65536,t&=-t,s.lanes|=t;var S=_g(s,a,t);Vh(s,S);break e}}s=s.return}while(s!==null)}Gg(n)}catch(C){t=C,fe===n&&n!==null&&(fe=n=n.return);continue}break}while(1)}function Zg(){var e=xa.current;return xa.current=wa,e===null?wa:e}function Td(){(me===0||me===3||me===2)&&(me=4),ye===null||!(or&268435455)&&!(Qa&268435455)||wn(ye,be)}function Ea(e,t){var n=X;X|=2;var r=Zg();(ye!==e||be!==t)&&(Gt=null,er(e,t));do try{hS();break}catch(i){Kg(e,i)}while(1);if(hd(),X=n,xa.current=r,fe!==null)throw Error(_(261));return ye=null,be=0,me}function hS(){for(;fe!==null;)Xg(fe)}function pS(){for(;fe!==null&&!$w();)Xg(fe)}function Xg(e){var t=Jg(e.alternate,e,Je);e.memoizedProps=e.pendingProps,t===null?Gg(e):fe=t,Od.current=null}function Gg(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=aS(n,t),n!==null){n.flags&=32767,fe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{me=6,fe=null;return}}else if(n=oS(n,t,Je),n!==null){fe=n;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);me===0&&(me=5)}function Wn(e,t,n){var r=Y,i=mt.transition;try{mt.transition=null,Y=1,mS(e,t,n,r)}finally{mt.transition=i,Y=r}return null}function mS(e,t,n,r){do Dr();while(bn!==null);if(X&6)throw Error(_(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(_(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(Zw(e,s),e===ye&&(fe=ye=null,be=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ho||(ho=!0,e0(ia,function(){return Dr(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=mt.transition,mt.transition=null;var o=Y;Y=1;var a=X;X|=4,Od.current=null,uS(e,n),qg(n,e),Lx(Qu),oa=!!qu,Qu=qu=null,e.current=n,cS(n),zw(),X=a,Y=o,mt.transition=s}else e.current=n;if(ho&&(ho=!1,bn=e,ba=i),s=e.pendingLanes,s===0&&(Tn=null),Vw(n.stateNode),Ke(e,ce()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Sa)throw Sa=!1,e=fc,fc=null,e;return ba&1&&e.tag!==0&&Dr(),s=e.pendingLanes,s&1?e===hc?$i++:($i=0,hc=e):$i=0,$n(),null}function Dr(){if(bn!==null){var e=N1(ba),t=mt.transition,n=Y;try{if(mt.transition=null,Y=16>e?16:e,bn===null)var r=!1;else{if(e=bn,bn=null,ba=0,X&6)throw Error(_(331));var i=X;for(X|=4,D=e.current;D!==null;){var s=D,o=s.child;if(D.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(D=u;D!==null;){var c=D;switch(c.tag){case 0:case 11:case 15:Di(8,c,s)}var d=c.child;if(d!==null)d.return=c,D=d;else for(;D!==null;){c=D;var h=c.sibling,m=c.return;if(Ug(c),c===u){D=null;break}if(h!==null){h.return=m,D=h;break}D=m}}}var p=s.alternate;if(p!==null){var y=p.child;if(y!==null){p.child=null;do{var x=y.sibling;y.sibling=null,y=x}while(y!==null)}}D=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,D=o;else e:for(;D!==null;){if(s=D,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Di(9,s,s.return)}var g=s.sibling;if(g!==null){g.return=s.return,D=g;break e}D=s.return}}var v=e.current;for(D=v;D!==null;){o=D;var w=o.child;if(o.subtreeFlags&2064&&w!==null)w.return=o,D=w;else e:for(o=v;D!==null;){if(a=D,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:qa(9,a)}}catch(C){le(a,a.return,C)}if(a===o){D=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,D=S;break e}D=a.return}}if(X=i,$n(),Vt&&typeof Vt.onPostCommitFiberRoot=="function")try{Vt.onPostCommitFiberRoot(Da,e)}catch{}r=!0}return r}finally{Y=n,mt.transition=t}}return!1}function dp(e,t,n){t=qr(n,t),t=Tg(e,t,1),e=Nn(e,t,1),t=Ae(),e!==null&&(_s(e,1,t),Ke(e,t))}function le(e,t,n){if(e.tag===3)dp(e,e,n);else for(;t!==null;){if(t.tag===3){dp(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Tn===null||!Tn.has(r))){e=qr(n,e),e=_g(t,e,1),t=Nn(t,e,1),e=Ae(),t!==null&&(_s(t,1,e),Ke(t,e));break}}t=t.return}}function gS(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ae(),e.pingedLanes|=e.suspendedLanes&n,ye===e&&(be&n)===n&&(me===4||me===3&&(be&130023424)===be&&500>ce()-Pd?er(e,0):Rd|=n),Ke(e,t)}function Yg(e,t){t===0&&(e.mode&1?(t=no,no<<=1,!(no&130023424)&&(no=4194304)):t=1);var n=Ae();e=an(e,t),e!==null&&(_s(e,t,n),Ke(e,n))}function vS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Yg(e,n)}function yS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(_(314))}r!==null&&r.delete(t),Yg(e,n)}var Jg;Jg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qe.current)qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return qe=!1,sS(e,t,n);qe=!!(e.flags&131072)}else qe=!1,re&&t.flags&1048576&&ng(t,ha,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ao(e,t),e=t.pendingProps;var i=Br(t,Pe.current);Mr(t,n),i=Sd(null,t,r,e,i,n);var s=bd();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,We(r)?(s=!0,da(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,gd(t),i.updater=Va,t.stateNode=i,i._reactInternals=t,tc(t,r,e,n),t=ic(null,t,r,!0,s,n)):(t.tag=0,re&&s&&ud(t),Te(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ao(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=xS(r),e=Ct(r,e),i){case 0:t=rc(null,t,r,e,n);break e;case 1:t=tp(null,t,r,e,n);break e;case 11:t=Jh(null,t,r,e,n);break e;case 14:t=ep(null,t,r,Ct(r.type,e),n);break e}throw Error(_(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ct(r,i),rc(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ct(r,i),tp(e,t,r,i,n);case 3:e:{if(Mg(t),e===null)throw Error(_(387));r=t.pendingProps,s=t.memoizedState,i=s.element,og(e,t),ga(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=qr(Error(_(423)),t),t=np(e,t,r,n,i);break e}else if(r!==i){i=qr(Error(_(424)),t),t=np(e,t,r,n,i);break e}else for(tt=jn(t.stateNode.containerInfo.firstChild),rt=t,re=!0,Ot=null,n=cg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ur(),r===i){t=ln(e,t,n);break e}Te(e,t,r,n)}t=t.child}return t;case 5:return dg(t),e===null&&Yu(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,Wu(r,i)?o=null:s!==null&&Wu(r,s)&&(t.flags|=32),Lg(e,t),Te(e,t,o,n),t.child;case 6:return e===null&&Yu(t),null;case 13:return Dg(e,t,n);case 4:return vd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Vr(t,null,r,n):Te(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ct(r,i),Jh(e,t,r,i,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,i=t.pendingProps,s=t.memoizedProps,o=i.value,ee(pa,r._currentValue),r._currentValue=o,s!==null)if(Tt(s.value,o)){if(s.children===i.children&&!Qe.current){t=ln(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=rn(-1,n&-n),l.tag=2;var u=s.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}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Ju(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(_(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Ju(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Te(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Mr(t,n),i=vt(i),r=r(i),t.flags|=1,Te(e,t,r,n),t.child;case 14:return r=t.type,i=Ct(r,t.pendingProps),i=Ct(r.type,i),ep(e,t,r,i,n);case 15:return Ag(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ct(r,i),Ao(e,t),t.tag=1,We(r)?(e=!0,da(t)):e=!1,Mr(t,n),lg(t,r,i),tc(t,r,i,n),ic(null,t,r,!0,e,n);case 19:return Fg(e,t,n);case 22:return Ig(e,t,n)}throw Error(_(156,t.tag))};function e0(e,t){return O1(e,t)}function wS(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 pt(e,t,n,r){return new wS(e,t,n,r)}function _d(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xS(e){if(typeof e=="function")return _d(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Gc)return 11;if(e===Yc)return 14}return 2}function An(e,t){var n=e.alternate;return n===null?(n=pt(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 Mo(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")_d(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case xr:return tr(n.children,i,s,t);case Xc:o=8,i|=8;break;case ku:return e=pt(12,n,t,i|2),e.elementType=ku,e.lanes=s,e;case Ou:return e=pt(13,n,t,i),e.elementType=Ou,e.lanes=s,e;case Ru:return e=pt(19,n,t,i),e.elementType=Ru,e.lanes=s,e;case u1:return Wa(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case a1:o=10;break e;case l1:o=9;break e;case Gc:o=11;break e;case Yc:o=14;break e;case gn:o=16,r=null;break e}throw Error(_(130,e==null?e:typeof e,""))}return t=pt(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function tr(e,t,n,r){return e=pt(7,e,r,t),e.lanes=n,e}function Wa(e,t,n,r){return e=pt(22,e,r,t),e.elementType=u1,e.lanes=n,e.stateNode={isHidden:!1},e}function Zl(e,t,n){return e=pt(6,e,null,t),e.lanes=n,e}function Xl(e,t,n){return t=pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function SS(e,t,n,r,i){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=Nl(0),this.expirationTimes=Nl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ad(e,t,n,r,i,s,o,a,l){return e=new SS(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=pt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},gd(s),e}function bS(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:wr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function t0(e){if(!e)return Mn;e=e._reactInternals;e:{if(dr(e)!==e||e.tag!==1)throw Error(_(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(We(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(_(171))}if(e.tag===1){var n=e.type;if(We(n))return eg(e,n,t)}return t}function n0(e,t,n,r,i,s,o,a,l){return e=Ad(n,r,!0,e,i,s,o,a,l),e.context=t0(null),n=e.current,r=Ae(),i=_n(n),s=rn(r,i),s.callback=t??null,Nn(n,s,i),e.current.lanes=i,_s(e,i,r),Ke(e,r),e}function Ka(e,t,n,r){var i=t.current,s=Ae(),o=_n(i);return n=t0(n),t.context===null?t.context=n:t.pendingContext=n,t=rn(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Nn(i,t,o),e!==null&&(Nt(e,i,o,s),No(e,i,o)),o}function Ca(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 fp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Id(e,t){fp(e,t),(e=e.alternate)&&fp(e,t)}function ES(){return null}var r0=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ld(e){this._internalRoot=e}Za.prototype.render=Ld.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(_(409));Ka(e,t,null,null)};Za.prototype.unmount=Ld.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ar(function(){Ka(null,e,null,null)}),t[on]=null}};function Za(e){this._internalRoot=e}Za.prototype.unstable_scheduleHydration=function(e){if(e){var t=A1();e={blockedOn:null,target:e,priority:t};for(var n=0;n<yn.length&&t!==0&&t<yn[n].priority;n++);yn.splice(n,0,e),n===0&&L1(e)}};function Md(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Xa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function hp(){}function CS(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=Ca(o);s.call(u)}}var o=n0(t,r,e,0,null,!1,!1,"",hp);return e._reactRootContainer=o,e[on]=o.current,as(e.nodeType===8?e.parentNode:e),ar(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=Ca(l);a.call(u)}}var l=Ad(e,0,!1,null,null,!1,!1,"",hp);return e._reactRootContainer=l,e[on]=l.current,as(e.nodeType===8?e.parentNode:e),ar(function(){Ka(t,l,n,r)}),l}function Ga(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var l=Ca(o);a.call(l)}}Ka(t,o,e,i)}else o=CS(n,t,e,i,r);return Ca(o)}T1=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Oi(t.pendingLanes);n!==0&&(td(t,n|1),Ke(t,ce()),!(X&6)&&(Qr=ce()+500,$n()))}break;case 13:ar(function(){var r=an(e,1);if(r!==null){var i=Ae();Nt(r,e,1,i)}}),Id(e,1)}};nd=function(e){if(e.tag===13){var t=an(e,134217728);if(t!==null){var n=Ae();Nt(t,e,134217728,n)}Id(e,134217728)}};_1=function(e){if(e.tag===13){var t=_n(e),n=an(e,t);if(n!==null){var r=Ae();Nt(n,e,t,r)}Id(e,t)}};A1=function(){return Y};I1=function(e,t){var n=Y;try{return Y=e,t()}finally{Y=n}};Du=function(e,t,n){switch(t){case"input":if(Nu(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 i=Ba(r);if(!i)throw Error(_(90));d1(r),Nu(r,i)}}}break;case"textarea":h1(e,n);break;case"select":t=n.value,t!=null&&_r(e,!!n.multiple,t,!1)}};x1=jd;S1=ar;var kS={usingClientEntryPoint:!1,Events:[Is,Cr,Ba,y1,w1,jd]},gi={findFiberByHostInstance:Xn,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},OS={bundleType:gi.bundleType,version:gi.version,rendererPackageName:gi.rendererPackageName,rendererConfig:gi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:dn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=C1(e),e===null?null:e.stateNode},findFiberByHostInstance:gi.findFiberByHostInstance||ES,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 po=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!po.isDisabled&&po.supportsFiber)try{Da=po.inject(OS),Vt=po}catch{}}ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kS;ot.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Md(t))throw Error(_(200));return bS(e,t,null,n)};ot.createRoot=function(e,t){if(!Md(e))throw Error(_(299));var n=!1,r="",i=r0;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Ad(e,1,!1,null,null,n,!1,r,i),e[on]=t.current,as(e.nodeType===8?e.parentNode:e),new Ld(t)};ot.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(_(188)):(e=Object.keys(e).join(","),Error(_(268,e)));return e=C1(t),e=e===null?null:e.stateNode,e};ot.flushSync=function(e){return ar(e)};ot.hydrate=function(e,t,n){if(!Xa(t))throw Error(_(200));return Ga(null,e,t,!0,n)};ot.hydrateRoot=function(e,t,n){if(!Md(e))throw Error(_(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=r0;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=n0(t,null,e,1,n??null,i,!1,s,o),e[on]=t.current,as(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Za(t)};ot.render=function(e,t,n){if(!Xa(t))throw Error(_(200));return Ga(null,e,t,!1,n)};ot.unmountComponentAtNode=function(e){if(!Xa(e))throw Error(_(40));return e._reactRootContainer?(ar(function(){Ga(null,null,e,!1,function(){e._reactRootContainer=null,e[on]=null})}),!0):!1};ot.unstable_batchedUpdates=jd;ot.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xa(n))throw Error(_(200));if(e==null||e._reactInternals===void 0)throw Error(_(38));return Ga(e,t,n,!1,r)};ot.version="18.2.0-next-9e3b772b8-20220608";function i0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i0)}catch(e){console.error(e)}}i0(),n1.exports=ot;var Ms=n1.exports,s0={exports:{}},o0={};/**
|
|
41
41
|
* @license React
|
|
42
42
|
* use-sync-external-store-shim.production.min.js
|
|
43
43
|
*
|
|
@@ -45,23 +45,7 @@ Error generating stack: `+st.message+`
|
|
|
45
45
|
*
|
|
46
46
|
* This source code is licensed under the MIT license found in the
|
|
47
47
|
* LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/var e$1=reactExports;function h$4(_e,et){return _e===et&&(_e!==0||1/_e===1/et)||_e!==_e&&et!==et}var k$1=typeof Object.is=="function"?Object.is:h$4,l$1=e$1.useState,m$3=e$1.useEffect,n$3=e$1.useLayoutEffect,p$2=e$1.useDebugValue;function q$2(_e,et){var tt=et(),rt=l$1({inst:{value:tt,getSnapshot:et}}),nt=rt[0].inst,st=rt[1];return n$3(function(){nt.value=tt,nt.getSnapshot=et,r$2(nt)&&st({inst:nt})},[_e,tt,et]),m$3(function(){return r$2(nt)&&st({inst:nt}),_e(function(){r$2(nt)&&st({inst:nt})})},[_e]),p$2(tt),tt}function r$2(_e){var et=_e.getSnapshot;_e=_e.value;try{var tt=et();return!k$1(_e,tt)}catch{return!0}}function t$2(_e,et){return et()}var u$3=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?t$2:q$2;useSyncExternalStoreShim_production_min.useSyncExternalStore=e$1.useSyncExternalStore!==void 0?e$1.useSyncExternalStore:u$3;shim.exports=useSyncExternalStoreShim_production_min;var shimExports=shim.exports;const useSyncExternalStore=shimExports.useSyncExternalStore,defaultContext=reactExports.createContext(void 0),QueryClientSharingContext=reactExports.createContext(!1);function getQueryClientContext(_e,et){return _e||(et&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=defaultContext),window.ReactQueryClientContext):defaultContext)}const useQueryClient=({context:_e}={})=>{const et=reactExports.useContext(getQueryClientContext(_e,reactExports.useContext(QueryClientSharingContext)));if(!et)throw new Error("No QueryClient set, use QueryClientProvider to set one");return et},QueryClientProvider=({client:_e,children:et,context:tt,contextSharing:rt=!1})=>{reactExports.useEffect(()=>(_e.mount(),()=>{_e.unmount()}),[_e]);const nt=getQueryClientContext(tt,rt);return reactExports.createElement(QueryClientSharingContext.Provider,{value:!tt&&rt},reactExports.createElement(nt.Provider,{value:_e},et))},IsRestoringContext=reactExports.createContext(!1),useIsRestoring=()=>reactExports.useContext(IsRestoringContext);IsRestoringContext.Provider;function createValue(){let _e=!1;return{clearReset:()=>{_e=!1},reset:()=>{_e=!0},isReset:()=>_e}}const QueryErrorResetBoundaryContext=reactExports.createContext(createValue()),useQueryErrorResetBoundary=()=>reactExports.useContext(QueryErrorResetBoundaryContext);function shouldThrowError(_e,et){return typeof _e=="function"?_e(...et):!!_e}const ensurePreventErrorBoundaryRetry=(_e,et)=>{(_e.suspense||_e.useErrorBoundary)&&(et.isReset()||(_e.retryOnMount=!1))},useClearResetErrorBoundary=_e=>{reactExports.useEffect(()=>{_e.clearReset()},[_e])},getHasError=({result:_e,errorResetBoundary:et,useErrorBoundary:tt,query:rt})=>_e.isError&&!et.isReset()&&!_e.isFetching&&shouldThrowError(tt,[_e.error,rt]),ensureStaleTime=_e=>{_e.suspense&&typeof _e.staleTime!="number"&&(_e.staleTime=1e3)},willFetch=(_e,et)=>_e.isLoading&&_e.isFetching&&!et,shouldSuspend=(_e,et,tt)=>(_e==null?void 0:_e.suspense)&&willFetch(et,tt),fetchOptimistic=(_e,et,tt)=>et.fetchOptimistic(_e).then(({data:rt})=>{_e.onSuccess==null||_e.onSuccess(rt),_e.onSettled==null||_e.onSettled(rt,null)}).catch(rt=>{tt.clearReset(),_e.onError==null||_e.onError(rt),_e.onSettled==null||_e.onSettled(void 0,rt)});function useBaseQuery(_e,et){const tt=useQueryClient({context:_e.context}),rt=useIsRestoring(),nt=useQueryErrorResetBoundary(),st=tt.defaultQueryOptions(_e);st._optimisticResults=rt?"isRestoring":"optimistic",st.onError&&(st.onError=notifyManager.batchCalls(st.onError)),st.onSuccess&&(st.onSuccess=notifyManager.batchCalls(st.onSuccess)),st.onSettled&&(st.onSettled=notifyManager.batchCalls(st.onSettled)),ensureStaleTime(st),ensurePreventErrorBoundaryRetry(st,nt),useClearResetErrorBoundary(nt);const[ot]=reactExports.useState(()=>new et(tt,st)),at=ot.getOptimisticResult(st);if(useSyncExternalStore(reactExports.useCallback(ut=>{const lt=rt?()=>{}:ot.subscribe(notifyManager.batchCalls(ut));return ot.updateResult(),lt},[ot,rt]),()=>ot.getCurrentResult(),()=>ot.getCurrentResult()),reactExports.useEffect(()=>{ot.setOptions(st,{listeners:!1})},[st,ot]),shouldSuspend(st,at,rt))throw fetchOptimistic(st,ot,nt);if(getHasError({result:at,errorResetBoundary:nt,useErrorBoundary:st.useErrorBoundary,query:ot.getCurrentQuery()}))throw at.error;return st.notifyOnChangeProps?at:ot.trackResult(at)}function useQuery(_e,et,tt){const rt=parseQueryArgs(_e,et,tt);return useBaseQuery(rt,QueryObserver)}function useMutation(_e,et,tt){const rt=parseMutationArgs(_e,et,tt),nt=useQueryClient({context:rt.context}),[st]=reactExports.useState(()=>new MutationObserver$1(nt,rt));reactExports.useEffect(()=>{st.setOptions(rt)},[st,rt]);const ot=useSyncExternalStore(reactExports.useCallback(ut=>st.subscribe(notifyManager.batchCalls(ut)),[st]),()=>st.getCurrentResult(),()=>st.getCurrentResult()),at=reactExports.useCallback((ut,lt)=>{st.mutate(ut,lt).catch(noop$2)},[st]);if(ot.error&&shouldThrowError(st.options.useErrorBoundary,[ot.error]))throw ot.error;return{...ot,mutate:at,mutateAsync:ot.mutate}}function noop$2(){}function useInfiniteQuery(_e,et,tt){const rt=parseQueryArgs(_e,et,tt);return useBaseQuery(rt,InfiniteQueryObserver)}var _$2=Object.defineProperty,T$1=(_e,et,tt)=>et in _e?_$2(_e,et,{enumerable:!0,configurable:!0,writable:!0,value:tt}):_e[et]=tt,m$2=(_e,et,tt)=>(T$1(_e,typeof et!="symbol"?et+"":et,tt),tt);const ERROR_CODE={SUCCESS:"0000",UNKNOWN:"0010",NOT_INITIALIZED:"0020",NOT_SUPPORTED:"0030",APP_NOT_FOUND:"0040",AGENT_NOT_FOUND:"0050",TRANSPORT_ERROR:"0060",TIME_OUT:"0070",MALFORMED_DATA:"0080",NOT_LOGGED_IN:"0090"},APP={EXPLORER:"explorer",PORTAL:"portal",BLOG:"blog",EXERCIZER:"exercizer",TIMELINE:"timeline",CAS:"cas",VIDEO:"video"};/*! *****************************************************************************
|
|
49
|
-
Copyright (c) Microsoft Corporation.
|
|
50
|
-
|
|
51
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
52
|
-
purpose with or without fee is hereby granted.
|
|
53
|
-
|
|
54
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
55
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
56
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
57
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
58
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
59
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
60
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
61
|
-
***************************************************************************** */var extendStatics=function(_e,et){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(tt,rt){tt.__proto__=rt}||function(tt,rt){for(var nt in rt)Object.prototype.hasOwnProperty.call(rt,nt)&&(tt[nt]=rt[nt])},extendStatics(_e,et)};function __extends$1(_e,et){if(typeof et!="function"&&et!==null)throw new TypeError("Class extends value "+String(et)+" is not a constructor or null");extendStatics(_e,et);function tt(){this.constructor=_e}_e.prototype=et===null?Object.create(et):(tt.prototype=et.prototype,new tt)}function __values(_e){var et=typeof Symbol=="function"&&Symbol.iterator,tt=et&&_e[et],rt=0;if(tt)return tt.call(_e);if(_e&&typeof _e.length=="number")return{next:function(){return _e&&rt>=_e.length&&(_e=void 0),{value:_e&&_e[rt++],done:!_e}}};throw new TypeError(et?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(_e,et){var tt=typeof Symbol=="function"&&_e[Symbol.iterator];if(!tt)return _e;var rt=tt.call(_e),nt,st=[],ot;try{for(;(et===void 0||et-- >0)&&!(nt=rt.next()).done;)st.push(nt.value)}catch(at){ot={error:at}}finally{try{nt&&!nt.done&&(tt=rt.return)&&tt.call(rt)}finally{if(ot)throw ot.error}}return st}function __spreadArray(_e,et){for(var tt=0,rt=et.length,nt=_e.length;tt<rt;tt++,nt++)_e[nt]=et[tt];return _e}function isFunction$1(_e){return typeof _e=="function"}function createErrorClass(_e){var et=function(rt){Error.call(rt),rt.stack=new Error().stack},tt=_e(et);return tt.prototype=Object.create(Error.prototype),tt.prototype.constructor=tt,tt}var UnsubscriptionError=createErrorClass(function(_e){return function(et){_e(this),this.message=et?et.length+` errors occurred during unsubscription:
|
|
62
|
-
`+et.map(function(tt,rt){return rt+1+") "+tt.toString()}).join(`
|
|
63
|
-
`):"",this.name="UnsubscriptionError",this.errors=et}});function arrRemove(_e,et){if(_e){var tt=_e.indexOf(et);0<=tt&&_e.splice(tt,1)}}var Subscription=function(){function _e(et){this.initialTeardown=et,this.closed=!1,this._parentage=null,this._teardowns=null}return _e.prototype.unsubscribe=function(){var et,tt,rt,nt,st;if(!this.closed){this.closed=!0;var ot=this._parentage;if(ot)if(this._parentage=null,Array.isArray(ot))try{for(var at=__values(ot),ut=at.next();!ut.done;ut=at.next()){var lt=ut.value;lt.remove(this)}}catch(vt){et={error:vt}}finally{try{ut&&!ut.done&&(tt=at.return)&&tt.call(at)}finally{if(et)throw et.error}}else ot.remove(this);var dt=this.initialTeardown;if(isFunction$1(dt))try{dt()}catch(vt){st=vt instanceof UnsubscriptionError?vt.errors:[vt]}var ct=this._teardowns;if(ct){this._teardowns=null;try{for(var ft=__values(ct),ht=ft.next();!ht.done;ht=ft.next()){var mt=ht.value;try{execTeardown(mt)}catch(vt){st=st??[],vt instanceof UnsubscriptionError?st=__spreadArray(__spreadArray([],__read(st)),__read(vt.errors)):st.push(vt)}}}catch(vt){rt={error:vt}}finally{try{ht&&!ht.done&&(nt=ft.return)&&nt.call(ft)}finally{if(rt)throw rt.error}}}if(st)throw new UnsubscriptionError(st)}},_e.prototype.add=function(et){var tt;if(et&&et!==this)if(this.closed)execTeardown(et);else{if(et instanceof _e){if(et.closed||et._hasParent(this))return;et._addParent(this)}(this._teardowns=(tt=this._teardowns)!==null&&tt!==void 0?tt:[]).push(et)}},_e.prototype._hasParent=function(et){var tt=this._parentage;return tt===et||Array.isArray(tt)&&tt.includes(et)},_e.prototype._addParent=function(et){var tt=this._parentage;this._parentage=Array.isArray(tt)?(tt.push(et),tt):tt?[tt,et]:et},_e.prototype._removeParent=function(et){var tt=this._parentage;tt===et?this._parentage=null:Array.isArray(tt)&&arrRemove(tt,et)},_e.prototype.remove=function(et){var tt=this._teardowns;tt&&arrRemove(tt,et),et instanceof _e&&et._removeParent(this)},_e.EMPTY=function(){var et=new _e;return et.closed=!0,et}(),_e}(),EMPTY_SUBSCRIPTION=Subscription.EMPTY;function isSubscription(_e){return _e instanceof Subscription||_e&&"closed"in _e&&isFunction$1(_e.remove)&&isFunction$1(_e.add)&&isFunction$1(_e.unsubscribe)}function execTeardown(_e){isFunction$1(_e)?_e():_e.unsubscribe()}var config$1={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},timeoutProvider={setTimeout:function(){for(var _e=[],et=0;et<arguments.length;et++)_e[et]=arguments[et];return setTimeout.apply(void 0,__spreadArray([],__read(_e)))},clearTimeout:function(_e){return clearTimeout(_e)},delegate:void 0};function reportUnhandledError(_e){timeoutProvider.setTimeout(function(){var et=config$1.onUnhandledError;if(et)et(_e);else throw _e})}function noop$1(){}var COMPLETE_NOTIFICATION=function(){return createNotification("C",void 0,void 0)}();function errorNotification(_e){return createNotification("E",void 0,_e)}function nextNotification(_e){return createNotification("N",_e,void 0)}function createNotification(_e,et,tt){return{kind:_e,value:et,error:tt}}var context=null;function errorContext(_e){if(config$1.useDeprecatedSynchronousErrorHandling){var et=!context;if(et&&(context={errorThrown:!1,error:null}),_e(),et){var tt=context,rt=tt.errorThrown,nt=tt.error;if(context=null,rt)throw nt}}else _e()}function captureError(_e){config$1.useDeprecatedSynchronousErrorHandling&&context&&(context.errorThrown=!0,context.error=_e)}var Subscriber=function(_e){__extends$1(et,_e);function et(tt){var rt=_e.call(this)||this;return rt.isStopped=!1,tt?(rt.destination=tt,isSubscription(tt)&&tt.add(rt)):rt.destination=EMPTY_OBSERVER,rt}return et.create=function(tt,rt,nt){return new SafeSubscriber(tt,rt,nt)},et.prototype.next=function(tt){this.isStopped?handleStoppedNotification(nextNotification(tt),this):this._next(tt)},et.prototype.error=function(tt){this.isStopped?handleStoppedNotification(errorNotification(tt),this):(this.isStopped=!0,this._error(tt))},et.prototype.complete=function(){this.isStopped?handleStoppedNotification(COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},et.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,_e.prototype.unsubscribe.call(this),this.destination=null)},et.prototype._next=function(tt){this.destination.next(tt)},et.prototype._error=function(tt){try{this.destination.error(tt)}finally{this.unsubscribe()}},et.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},et}(Subscription),SafeSubscriber=function(_e){__extends$1(et,_e);function et(tt,rt,nt){var st=_e.call(this)||this,ot;if(isFunction$1(tt))ot=tt;else if(tt){ot=tt.next,rt=tt.error,nt=tt.complete;var at;st&&config$1.useDeprecatedNextContext?(at=Object.create(tt),at.unsubscribe=function(){return st.unsubscribe()}):at=tt,ot=ot==null?void 0:ot.bind(at),rt=rt==null?void 0:rt.bind(at),nt=nt==null?void 0:nt.bind(at)}return st.destination={next:ot?wrapForErrorHandling(ot):noop$1,error:wrapForErrorHandling(rt??defaultErrorHandler),complete:nt?wrapForErrorHandling(nt):noop$1},st}return et}(Subscriber);function wrapForErrorHandling(_e,et){return function(){for(var tt=[],rt=0;rt<arguments.length;rt++)tt[rt]=arguments[rt];try{_e.apply(void 0,__spreadArray([],__read(tt)))}catch(nt){config$1.useDeprecatedSynchronousErrorHandling?captureError(nt):reportUnhandledError(nt)}}}function defaultErrorHandler(_e){throw _e}function handleStoppedNotification(_e,et){var tt=config$1.onStoppedNotification;tt&&timeoutProvider.setTimeout(function(){return tt(_e,et)})}var EMPTY_OBSERVER={closed:!0,next:noop$1,error:defaultErrorHandler,complete:noop$1},observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function identity(_e){return _e}function pipeFromArray(_e){return _e.length===0?identity:_e.length===1?_e[0]:function(et){return _e.reduce(function(tt,rt){return rt(tt)},et)}}var Observable=function(){function _e(et){et&&(this._subscribe=et)}return _e.prototype.lift=function(et){var tt=new _e;return tt.source=this,tt.operator=et,tt},_e.prototype.subscribe=function(et,tt,rt){var nt=this,st=isSubscriber(et)?et:new SafeSubscriber(et,tt,rt);return errorContext(function(){var ot=nt,at=ot.operator,ut=ot.source;st.add(at?at.call(st,ut):ut?nt._subscribe(st):nt._trySubscribe(st))}),st},_e.prototype._trySubscribe=function(et){try{return this._subscribe(et)}catch(tt){et.error(tt)}},_e.prototype.forEach=function(et,tt){var rt=this;return tt=getPromiseCtor(tt),new tt(function(nt,st){var ot;ot=rt.subscribe(function(at){try{et(at)}catch(ut){st(ut),ot==null||ot.unsubscribe()}},st,nt)})},_e.prototype._subscribe=function(et){var tt;return(tt=this.source)===null||tt===void 0?void 0:tt.subscribe(et)},_e.prototype[observable]=function(){return this},_e.prototype.pipe=function(){for(var et=[],tt=0;tt<arguments.length;tt++)et[tt]=arguments[tt];return pipeFromArray(et)(this)},_e.prototype.toPromise=function(et){var tt=this;return et=getPromiseCtor(et),new et(function(rt,nt){var st;tt.subscribe(function(ot){return st=ot},function(ot){return nt(ot)},function(){return rt(st)})})},_e.create=function(et){return new _e(et)},_e}();function getPromiseCtor(_e){var et;return(et=_e??config$1.Promise)!==null&&et!==void 0?et:Promise}function isObserver(_e){return _e&&isFunction$1(_e.next)&&isFunction$1(_e.error)&&isFunction$1(_e.complete)}function isSubscriber(_e){return _e&&_e instanceof Subscriber||isObserver(_e)&&isSubscription(_e)}function hasLift(_e){return isFunction$1(_e==null?void 0:_e.lift)}function operate(_e){return function(et){if(hasLift(et))return et.lift(function(tt){try{return _e(tt,this)}catch(rt){this.error(rt)}});throw new TypeError("Unable to lift unknown Observable type")}}var OperatorSubscriber=function(_e){__extends$1(et,_e);function et(tt,rt,nt,st,ot){var at=_e.call(this,tt)||this;return at.onFinalize=ot,at._next=rt?function(ut){try{rt(ut)}catch(lt){tt.error(lt)}}:_e.prototype._next,at._error=st?function(ut){try{st(ut)}catch(lt){tt.error(lt)}finally{this.unsubscribe()}}:_e.prototype._error,at._complete=nt?function(){try{nt()}catch(ut){tt.error(ut)}finally{this.unsubscribe()}}:_e.prototype._complete,at}return et.prototype.unsubscribe=function(){var tt,rt=this.closed;_e.prototype.unsubscribe.call(this),!rt&&((tt=this.onFinalize)===null||tt===void 0||tt.call(this))},et}(Subscriber);function refCount(){return operate(function(_e,et){var tt=null;_e._refCount++;var rt=new OperatorSubscriber(et,void 0,void 0,void 0,function(){if(!_e||_e._refCount<=0||0<--_e._refCount){tt=null;return}var nt=_e._connection,st=tt;tt=null,nt&&(!st||nt===st)&&nt.unsubscribe(),et.unsubscribe()});_e.subscribe(rt),rt.closed||(tt=_e.connect())})}(function(_e){__extends$1(et,_e);function et(tt,rt){var nt=_e.call(this)||this;return nt.source=tt,nt.subjectFactory=rt,nt._subject=null,nt._refCount=0,nt._connection=null,hasLift(tt)&&(nt.lift=tt.lift),nt}return et.prototype._subscribe=function(tt){return this.getSubject().subscribe(tt)},et.prototype.getSubject=function(){var tt=this._subject;return(!tt||tt.isStopped)&&(this._subject=this.subjectFactory()),this._subject},et.prototype._teardown=function(){this._refCount=0;var tt=this._connection;this._subject=this._connection=null,tt==null||tt.unsubscribe()},et.prototype.connect=function(){var tt=this,rt=this._connection;if(!rt){rt=this._connection=new Subscription;var nt=this.getSubject();rt.add(this.source.subscribe(new OperatorSubscriber(nt,void 0,function(){tt._teardown(),nt.complete()},function(st){tt._teardown(),nt.error(st)},function(){return tt._teardown()}))),rt.closed&&(this._connection=null,rt=Subscription.EMPTY)}return rt},et.prototype.refCount=function(){return refCount()(this)},et})(Observable);var animationFrameProvider={schedule:function(_e){var et=requestAnimationFrame,tt=cancelAnimationFrame,rt=et(function(nt){tt=void 0,_e(nt)});return new Subscription(function(){return tt==null?void 0:tt(rt)})},requestAnimationFrame:function(){for(var _e=[],et=0;et<arguments.length;et++)_e[et]=arguments[et];var tt=animationFrameProvider.delegate;return((tt==null?void 0:tt.requestAnimationFrame)||requestAnimationFrame).apply(void 0,__spreadArray([],__read(_e)))},cancelAnimationFrame:function(){for(var _e=[],et=0;et<arguments.length;et++)_e[et]=arguments[et];return cancelAnimationFrame.apply(void 0,__spreadArray([],__read(_e)))},delegate:void 0},ObjectUnsubscribedError=createErrorClass(function(_e){return function(){_e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Subject=function(_e){__extends$1(et,_e);function et(){var tt=_e.call(this)||this;return tt.closed=!1,tt.observers=[],tt.isStopped=!1,tt.hasError=!1,tt.thrownError=null,tt}return et.prototype.lift=function(tt){var rt=new AnonymousSubject(this,this);return rt.operator=tt,rt},et.prototype._throwIfClosed=function(){if(this.closed)throw new ObjectUnsubscribedError},et.prototype.next=function(tt){var rt=this;errorContext(function(){var nt,st;if(rt._throwIfClosed(),!rt.isStopped){var ot=rt.observers.slice();try{for(var at=__values(ot),ut=at.next();!ut.done;ut=at.next()){var lt=ut.value;lt.next(tt)}}catch(dt){nt={error:dt}}finally{try{ut&&!ut.done&&(st=at.return)&&st.call(at)}finally{if(nt)throw nt.error}}}})},et.prototype.error=function(tt){var rt=this;errorContext(function(){if(rt._throwIfClosed(),!rt.isStopped){rt.hasError=rt.isStopped=!0,rt.thrownError=tt;for(var nt=rt.observers;nt.length;)nt.shift().error(tt)}})},et.prototype.complete=function(){var tt=this;errorContext(function(){if(tt._throwIfClosed(),!tt.isStopped){tt.isStopped=!0;for(var rt=tt.observers;rt.length;)rt.shift().complete()}})},et.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(et.prototype,"observed",{get:function(){var tt;return((tt=this.observers)===null||tt===void 0?void 0:tt.length)>0},enumerable:!1,configurable:!0}),et.prototype._trySubscribe=function(tt){return this._throwIfClosed(),_e.prototype._trySubscribe.call(this,tt)},et.prototype._subscribe=function(tt){return this._throwIfClosed(),this._checkFinalizedStatuses(tt),this._innerSubscribe(tt)},et.prototype._innerSubscribe=function(tt){var rt=this,nt=rt.hasError,st=rt.isStopped,ot=rt.observers;return nt||st?EMPTY_SUBSCRIPTION:(ot.push(tt),new Subscription(function(){return arrRemove(ot,tt)}))},et.prototype._checkFinalizedStatuses=function(tt){var rt=this,nt=rt.hasError,st=rt.thrownError,ot=rt.isStopped;nt?tt.error(st):ot&&tt.complete()},et.prototype.asObservable=function(){var tt=new Observable;return tt.source=this,tt},et.create=function(tt,rt){return new AnonymousSubject(tt,rt)},et}(Observable),AnonymousSubject=function(_e){__extends$1(et,_e);function et(tt,rt){var nt=_e.call(this)||this;return nt.destination=tt,nt.source=rt,nt}return et.prototype.next=function(tt){var rt,nt;(nt=(rt=this.destination)===null||rt===void 0?void 0:rt.next)===null||nt===void 0||nt.call(rt,tt)},et.prototype.error=function(tt){var rt,nt;(nt=(rt=this.destination)===null||rt===void 0?void 0:rt.error)===null||nt===void 0||nt.call(rt,tt)},et.prototype.complete=function(){var tt,rt;(rt=(tt=this.destination)===null||tt===void 0?void 0:tt.complete)===null||rt===void 0||rt.call(tt)},et.prototype._subscribe=function(tt){var rt,nt;return(nt=(rt=this.source)===null||rt===void 0?void 0:rt.subscribe(tt))!==null&&nt!==void 0?nt:EMPTY_SUBSCRIPTION},et}(Subject);(function(_e){__extends$1(et,_e);function et(tt){var rt=_e.call(this)||this;return rt._value=tt,rt}return Object.defineProperty(et.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),et.prototype._subscribe=function(tt){var rt=_e.prototype._subscribe.call(this,tt);return!rt.closed&&tt.next(this._value),rt},et.prototype.getValue=function(){var tt=this,rt=tt.hasError,nt=tt.thrownError,st=tt._value;if(rt)throw nt;return this._throwIfClosed(),st},et.prototype.next=function(tt){_e.prototype.next.call(this,this._value=tt)},et})(Subject);var dateTimestampProvider={now:function(){return(dateTimestampProvider.delegate||Date).now()},delegate:void 0};(function(_e){__extends$1(et,_e);function et(tt,rt,nt){tt===void 0&&(tt=1/0),rt===void 0&&(rt=1/0),nt===void 0&&(nt=dateTimestampProvider);var st=_e.call(this)||this;return st._bufferSize=tt,st._windowTime=rt,st._timestampProvider=nt,st._buffer=[],st._infiniteTimeWindow=!0,st._infiniteTimeWindow=rt===1/0,st._bufferSize=Math.max(1,tt),st._windowTime=Math.max(1,rt),st}return et.prototype.next=function(tt){var rt=this,nt=rt.isStopped,st=rt._buffer,ot=rt._infiniteTimeWindow,at=rt._timestampProvider,ut=rt._windowTime;nt||(st.push(tt),!ot&&st.push(at.now()+ut)),this._trimBuffer(),_e.prototype.next.call(this,tt)},et.prototype._subscribe=function(tt){this._throwIfClosed(),this._trimBuffer();for(var rt=this._innerSubscribe(tt),nt=this,st=nt._infiniteTimeWindow,ot=nt._buffer,at=ot.slice(),ut=0;ut<at.length&&!tt.closed;ut+=st?1:2)tt.next(at[ut]);return this._checkFinalizedStatuses(tt),rt},et.prototype._trimBuffer=function(){var tt=this,rt=tt._bufferSize,nt=tt._timestampProvider,st=tt._buffer,ot=tt._infiniteTimeWindow,at=(ot?1:2)*rt;if(rt<1/0&&at<st.length&&st.splice(0,st.length-at),!ot){for(var ut=nt.now(),lt=0,dt=1;dt<st.length&&st[dt]<=ut;dt+=2)lt=dt;lt&&st.splice(0,lt+1)}},et})(Subject);(function(_e){__extends$1(et,_e);function et(){var tt=_e!==null&&_e.apply(this,arguments)||this;return tt._value=null,tt._hasValue=!1,tt._isComplete=!1,tt}return et.prototype._checkFinalizedStatuses=function(tt){var rt=this,nt=rt.hasError,st=rt._hasValue,ot=rt._value,at=rt.thrownError,ut=rt.isStopped,lt=rt._isComplete;nt?tt.error(at):(ut||lt)&&(st&&tt.next(ot),tt.complete())},et.prototype.next=function(tt){this.isStopped||(this._value=tt,this._hasValue=!0)},et.prototype.complete=function(){var tt=this,rt=tt._hasValue,nt=tt._value,st=tt._isComplete;st||(this._isComplete=!0,rt&&_e.prototype.next.call(this,nt),_e.prototype.complete.call(this))},et})(Subject);var Action=function(_e){__extends$1(et,_e);function et(tt,rt){return _e.call(this)||this}return et.prototype.schedule=function(tt,rt){return this},et}(Subscription),intervalProvider={setInterval:function(){for(var _e=[],et=0;et<arguments.length;et++)_e[et]=arguments[et];var tt=intervalProvider.delegate;return((tt==null?void 0:tt.setInterval)||setInterval).apply(void 0,__spreadArray([],__read(_e)))},clearInterval:function(_e){return clearInterval(_e)},delegate:void 0},AsyncAction=function(_e){__extends$1(et,_e);function et(tt,rt){var nt=_e.call(this,tt,rt)||this;return nt.scheduler=tt,nt.work=rt,nt.pending=!1,nt}return et.prototype.schedule=function(tt,rt){if(rt===void 0&&(rt=0),this.closed)return this;this.state=tt;var nt=this.id,st=this.scheduler;return nt!=null&&(this.id=this.recycleAsyncId(st,nt,rt)),this.pending=!0,this.delay=rt,this.id=this.id||this.requestAsyncId(st,this.id,rt),this},et.prototype.requestAsyncId=function(tt,rt,nt){return nt===void 0&&(nt=0),intervalProvider.setInterval(tt.flush.bind(tt,this),nt)},et.prototype.recycleAsyncId=function(tt,rt,nt){if(nt===void 0&&(nt=0),nt!=null&&this.delay===nt&&this.pending===!1)return rt;intervalProvider.clearInterval(rt)},et.prototype.execute=function(tt,rt){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var nt=this._execute(tt,rt);if(nt)return nt;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},et.prototype._execute=function(tt,rt){var nt=!1,st;try{this.work(tt)}catch(ot){nt=!0,st=!!ot&&ot||new Error(ot)}if(nt)return this.unsubscribe(),st},et.prototype.unsubscribe=function(){if(!this.closed){var tt=this,rt=tt.id,nt=tt.scheduler,st=nt.actions;this.work=this.state=this.scheduler=null,this.pending=!1,arrRemove(st,this),rt!=null&&(this.id=this.recycleAsyncId(nt,rt,null)),this.delay=null,_e.prototype.unsubscribe.call(this)}},et}(Action),nextHandle=1,resolved,activeHandles={};function findAndClearHandle(_e){return _e in activeHandles?(delete activeHandles[_e],!0):!1}var Immediate={setImmediate:function(_e){var et=nextHandle++;return activeHandles[et]=!0,resolved||(resolved=Promise.resolve()),resolved.then(function(){return findAndClearHandle(et)&&_e()}),et},clearImmediate:function(_e){findAndClearHandle(_e)}},setImmediate$1=Immediate.setImmediate,clearImmediate=Immediate.clearImmediate,immediateProvider={setImmediate:function(){for(var _e=[],et=0;et<arguments.length;et++)_e[et]=arguments[et];var tt=immediateProvider.delegate;return((tt==null?void 0:tt.setImmediate)||setImmediate$1).apply(void 0,__spreadArray([],__read(_e)))},clearImmediate:function(_e){return clearImmediate(_e)},delegate:void 0},AsapAction=function(_e){__extends$1(et,_e);function et(tt,rt){var nt=_e.call(this,tt,rt)||this;return nt.scheduler=tt,nt.work=rt,nt}return et.prototype.requestAsyncId=function(tt,rt,nt){return nt===void 0&&(nt=0),nt!==null&&nt>0?_e.prototype.requestAsyncId.call(this,tt,rt,nt):(tt.actions.push(this),tt._scheduled||(tt._scheduled=immediateProvider.setImmediate(tt.flush.bind(tt,void 0))))},et.prototype.recycleAsyncId=function(tt,rt,nt){if(nt===void 0&&(nt=0),nt!=null&&nt>0||nt==null&&this.delay>0)return _e.prototype.recycleAsyncId.call(this,tt,rt,nt);tt.actions.length===0&&(immediateProvider.clearImmediate(rt),tt._scheduled=void 0)},et}(AsyncAction),Scheduler=function(){function _e(et,tt){tt===void 0&&(tt=_e.now),this.schedulerActionCtor=et,this.now=tt}return _e.prototype.schedule=function(et,tt,rt){return tt===void 0&&(tt=0),new this.schedulerActionCtor(this,et).schedule(rt,tt)},_e.now=dateTimestampProvider.now,_e}(),AsyncScheduler=function(_e){__extends$1(et,_e);function et(tt,rt){rt===void 0&&(rt=Scheduler.now);var nt=_e.call(this,tt,rt)||this;return nt.actions=[],nt._active=!1,nt._scheduled=void 0,nt}return et.prototype.flush=function(tt){var rt=this.actions;if(this._active){rt.push(tt);return}var nt;this._active=!0;do if(nt=tt.execute(tt.state,tt.delay))break;while(tt=rt.shift());if(this._active=!1,nt){for(;tt=rt.shift();)tt.unsubscribe();throw nt}},et}(Scheduler),AsapScheduler=function(_e){__extends$1(et,_e);function et(){return _e!==null&&_e.apply(this,arguments)||this}return et.prototype.flush=function(tt){this._active=!0,this._scheduled=void 0;var rt=this.actions,nt,st=-1;tt=tt||rt.shift();var ot=rt.length;do if(nt=tt.execute(tt.state,tt.delay))break;while(++st<ot&&(tt=rt.shift()));if(this._active=!1,nt){for(;++st<ot&&(tt=rt.shift());)tt.unsubscribe();throw nt}},et}(AsyncScheduler);new AsapScheduler(AsapAction);new AsyncScheduler(AsyncAction);var QueueAction=function(_e){__extends$1(et,_e);function et(tt,rt){var nt=_e.call(this,tt,rt)||this;return nt.scheduler=tt,nt.work=rt,nt}return et.prototype.schedule=function(tt,rt){return rt===void 0&&(rt=0),rt>0?_e.prototype.schedule.call(this,tt,rt):(this.delay=rt,this.state=tt,this.scheduler.flush(this),this)},et.prototype.execute=function(tt,rt){return rt>0||this.closed?_e.prototype.execute.call(this,tt,rt):this._execute(tt,rt)},et.prototype.requestAsyncId=function(tt,rt,nt){return nt===void 0&&(nt=0),nt!=null&&nt>0||nt==null&&this.delay>0?_e.prototype.requestAsyncId.call(this,tt,rt,nt):tt.flush(this)},et}(AsyncAction),QueueScheduler=function(_e){__extends$1(et,_e);function et(){return _e!==null&&_e.apply(this,arguments)||this}return et}(AsyncScheduler);new QueueScheduler(QueueAction);var AnimationFrameAction=function(_e){__extends$1(et,_e);function et(tt,rt){var nt=_e.call(this,tt,rt)||this;return nt.scheduler=tt,nt.work=rt,nt}return et.prototype.requestAsyncId=function(tt,rt,nt){return nt===void 0&&(nt=0),nt!==null&&nt>0?_e.prototype.requestAsyncId.call(this,tt,rt,nt):(tt.actions.push(this),tt._scheduled||(tt._scheduled=animationFrameProvider.requestAnimationFrame(function(){return tt.flush(void 0)})))},et.prototype.recycleAsyncId=function(tt,rt,nt){if(nt===void 0&&(nt=0),nt!=null&&nt>0||nt==null&&this.delay>0)return _e.prototype.recycleAsyncId.call(this,tt,rt,nt);tt.actions.length===0&&(animationFrameProvider.cancelAnimationFrame(rt),tt._scheduled=void 0)},et}(AsyncAction),AnimationFrameScheduler=function(_e){__extends$1(et,_e);function et(){return _e!==null&&_e.apply(this,arguments)||this}return et.prototype.flush=function(tt){this._active=!0,this._scheduled=void 0;var rt=this.actions,nt,st=-1;tt=tt||rt.shift();var ot=rt.length;do if(nt=tt.execute(tt.state,tt.delay))break;while(++st<ot&&(tt=rt.shift()));if(this._active=!1,nt){for(;++st<ot&&(tt=rt.shift());)tt.unsubscribe();throw nt}},et}(AsyncScheduler);new AnimationFrameScheduler(AnimationFrameAction);(function(_e){__extends$1(et,_e);function et(tt,rt){tt===void 0&&(tt=VirtualAction),rt===void 0&&(rt=1/0);var nt=_e.call(this,tt,function(){return nt.frame})||this;return nt.maxFrames=rt,nt.frame=0,nt.index=-1,nt}return et.prototype.flush=function(){for(var tt=this,rt=tt.actions,nt=tt.maxFrames,st,ot;(ot=rt[0])&&ot.delay<=nt&&(rt.shift(),this.frame=ot.delay,!(st=ot.execute(ot.state,ot.delay))););if(st){for(;ot=rt.shift();)ot.unsubscribe();throw st}},et.frameTimeFactor=10,et})(AsyncScheduler);var VirtualAction=function(_e){__extends$1(et,_e);function et(tt,rt,nt){nt===void 0&&(nt=tt.index+=1);var st=_e.call(this,tt,rt)||this;return st.scheduler=tt,st.work=rt,st.index=nt,st.active=!0,st.index=tt.index=nt,st}return et.prototype.schedule=function(tt,rt){if(rt===void 0&&(rt=0),Number.isFinite(rt)){if(!this.id)return _e.prototype.schedule.call(this,tt,rt);this.active=!1;var nt=new et(this.scheduler,this.work);return this.add(nt),nt.schedule(tt,rt)}else return Subscription.EMPTY},et.prototype.requestAsyncId=function(tt,rt,nt){nt===void 0&&(nt=0),this.delay=tt.frame+nt;var st=tt.actions;return st.push(this),st.sort(et.sortActions),!0},et.prototype.recycleAsyncId=function(tt,rt,nt){},et.prototype._execute=function(tt,rt){if(this.active===!0)return _e.prototype._execute.call(this,tt,rt)},et.sortActions=function(tt,rt){return tt.delay===rt.delay?tt.index===rt.index?0:tt.index>rt.index?1:-1:tt.delay>rt.delay?1:-1},et}(AsyncAction),EMPTY=new Observable(function(_e){return _e.complete()});function scheduleArray(_e,et){return new Observable(function(tt){var rt=0;return et.schedule(function(){rt===_e.length?tt.complete():(tt.next(_e[rt++]),tt.closed||this.schedule())})})}function fromArrayLike(_e){return new Observable(function(et){for(var tt=0;tt<_e.length&&!et.closed;tt++)et.next(_e[tt]);et.complete()})}function internalFromArray(_e,et){return et?scheduleArray(_e,et):fromArrayLike(_e)}function isScheduler(_e){return _e&&isFunction$1(_e.schedule)}function last$1(_e){return _e[_e.length-1]}function popScheduler(_e){return isScheduler(last$1(_e))?_e.pop():void 0}function of(){for(var _e=[],et=0;et<arguments.length;et++)_e[et]=arguments[et];var tt=popScheduler(_e);return tt?scheduleArray(_e,tt):internalFromArray(_e)}function throwError(_e,et){var tt=isFunction$1(_e)?_e:function(){return _e},rt=function(nt){return nt.error(tt())};return new Observable(et?function(nt){return et.schedule(rt,0,nt)}:rt)}var NotificationKind;(function(_e){_e.NEXT="N",_e.ERROR="E",_e.COMPLETE="C"})(NotificationKind||(NotificationKind={}));(function(){function _e(et,tt,rt){this.kind=et,this.value=tt,this.error=rt,this.hasValue=et==="N"}return _e.prototype.observe=function(et){return observeNotification(this,et)},_e.prototype.do=function(et,tt,rt){var nt=this,st=nt.kind,ot=nt.value,at=nt.error;return st==="N"?et==null?void 0:et(ot):st==="E"?tt==null?void 0:tt(at):rt==null?void 0:rt()},_e.prototype.accept=function(et,tt,rt){var nt;return isFunction$1((nt=et)===null||nt===void 0?void 0:nt.next)?this.observe(et):this.do(et,tt,rt)},_e.prototype.toObservable=function(){var et=this,tt=et.kind,rt=et.value,nt=et.error,st=tt==="N"?of(rt):tt==="E"?throwError(function(){return nt}):tt==="C"?EMPTY:0;if(!st)throw new TypeError("Unexpected notification kind "+tt);return st},_e.createNext=function(et){return new _e("N",et)},_e.createError=function(et){return new _e("E",void 0,et)},_e.createComplete=function(){return _e.completeNotification},_e.completeNotification=new _e("C"),_e})();function observeNotification(_e,et){var tt,rt,nt,st=_e,ot=st.kind,at=st.value,ut=st.error;if(typeof ot!="string")throw new TypeError('Invalid notification, missing "kind"');ot==="N"?(tt=et.next)===null||tt===void 0||tt.call(et,at):ot==="E"?(rt=et.error)===null||rt===void 0||rt.call(et,ut):(nt=et.complete)===null||nt===void 0||nt.call(et)}createErrorClass(function(_e){return function(){_e(this),this.name="EmptyError",this.message="no elements in sequence"}});createErrorClass(function(_e){return function(){_e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}});createErrorClass(function(_e){return function(et){_e(this),this.name="NotFoundError",this.message=et}});createErrorClass(function(_e){return function(et){_e(this),this.name="SequenceError",this.message=et}});createErrorClass(function(_e){return function(et){et===void 0&&(et=null),_e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=et}});function filter(_e,et){return operate(function(tt,rt){var nt=0;tt.subscribe(new OperatorSubscriber(rt,function(st){return _e.call(et,st,nt++)&&rt.next(st)}))})}(function(_e){__extends$1(et,_e);function et(){var tt=_e!==null&&_e.apply(this,arguments)||this;return tt.activeGroups=0,tt.teardownAttempted=!1,tt}return et.prototype.unsubscribe=function(){this.teardownAttempted=!0,this.activeGroups===0&&_e.prototype.unsubscribe.call(this)},et})(OperatorSubscriber);class Bus{constructor(){m$2(this,"agents",{}),m$2(this,"comm",new Subject)}setAgentFor(et,tt,rt){let nt=this.getActionMapping(et);nt[tt]=rt}getAgentFor(et,tt){return this.getActionMapping(et)[tt]}publish(et,tt,rt){return Promise.resolve().then(()=>{var nt;return(nt=this.getAgentFor(et,tt))!=null?nt:explorer.requestAgentFor(et,tt)}).then(nt=>{const st=nt.activate(et,tt,rt);return this.comm.next({res:et,action:tt,input:rt,output:st}),st})}subscribe(et,tt){return this.comm.asObservable().pipe(filter(rt=>rt.res===et&&rt.action===tt))}getActionMapping(et){let tt=this.agents[et];if(typeof tt>"u"){tt={};for(let rt of Object.values(ACTION))tt[rt]=null;this.agents[et]=tt}return tt}}class BusFactory{static get instance(){return this._instance=this._instance||new Bus}}m$2(BusFactory,"_instance");const y$1=class{constructor(et){m$2(this,"managedResource"),m$2(this,"handlerFor",{comment:y$1.defaultHandler,copy:y$1.defaultHandler,create:y$1.defaultHandler,delete:y$1.defaultHandler,export:y$1.defaultHandler,initialize:y$1.defaultHandler,manage:y$1.defaultHandler,properties:y$1.defaultHandler,move:y$1.defaultHandler,open:y$1.defaultHandler,print:y$1.defaultHandler,publish:y$1.defaultHandler,search:y$1.defaultHandler,share:y$1.defaultHandler,distribute:y$1.defaultHandler,pages_list:y$1.defaultHandler,register:y$1.defaultHandler,trash:y$1.defaultHandler,publish_moodle:y$1.defaultHandler,restore:y$1.defaultHandler}),this.managedResource=et,this.initialize()}initialize(){for(let et in Object.values(ACTION))this.handlerFor[et]=y$1.defaultHandler;this.registerHandlers()}setHandler(et,tt){BusFactory.instance.setAgentFor(this.managedResource,et,this),this.handlerFor[et]=tt}getHandler(et){return this.handlerFor[et]}activate(et,tt,rt){return Promise.resolve().then(()=>this.getHandler(tt).bind(this)(rt))}};let AbstractBusAgent=y$1;m$2(AbstractBusAgent,"defaultHandler",function(_e){throw new Error(ERROR_CODE.NOT_SUPPORTED)});console.log("Blog agent loading....");class BlogAgent extends AbstractBusAgent{constructor(){super(RESOURCE.BLOG),m$2(this,"ctx",null),m$2(this,"http",TransportFrameworkFactory.instance().newHttpInstance()),m$2(this,"checkHttpResponse",et=>{if(this.http.latestResponse.status>=300)throw this.http.latestResponse.statusText;return et}),this.registerHandlers(),console.log("Blog agent initialized!")}registerHandlers(){this.setHandler(ACTION.OPEN,this.openBlog),this.setHandler(ACTION.CREATE,this.createBlog),this.setHandler(ACTION.MANAGE,this.onManage),this.setHandler(ACTION.UPD_PROPS,this.onUpdateProps),this.setHandler(ACTION.PRINT,this.onPrint),this.setHandler(ACTION.PUBLISH,this.onPublish)}onPrint(et){window.open(`/blog/print/blog#/print/${et.resourceId}?comments=${et.withComments||!0}`,"_blank")}openBlog(et){window.open(`/blog#/view/${et.resourceId}`,"_self")}createBlog(et){window.open("/blog#/edit/new","_self")}onManage(et){const tt={genericProps:[{key:PROP_KEY.TITLE},{key:PROP_KEY.IMAGE},{key:PROP_KEY.URL}]};return Promise.resolve().then(()=>tt)}onUpdateProps(et){const tt={resources:et.resources};return alert("TODO: update properties"),Promise.resolve().then(()=>tt)}async onPublish(et){const tt=new FormData;return tt.append("title",et.title),tt.append("cover",et.cover),tt.append("coverName",et.cover.name),tt.append("coverType",et.cover.type),tt.append("teacherAvatar",et.teacherAvatar),tt.append("teacherAvatarName",et.teacherAvatar.name||`teacherAvatar_${et.userId}`),tt.append("teacherAvatarType",et.teacherAvatar.type),tt.append("language",et.language),et.activityType.forEach(rt=>{tt.append("activityType[]",rt)}),et.subjectArea.forEach(rt=>{tt.append("subjectArea[]",rt)}),et.age.forEach(rt=>{tt.append("age[]",rt.toString())}),tt.append("description",et.description),et.keyWords.split(",").forEach(rt=>{tt.append("keyWords[]",rt.trim())}),tt.append("licence",et.licence),tt.append("pdfUri",`${window.location.origin}/blog/print/blog#/print/${et.resourceId}`),tt.append("application",et.application?et.application:""),tt.append("resourceId",et.resourceId),tt.append("teacherSchool",et.userStructureName),this.http.post("/appregistry/library/resource",tt,{headers:{"Content-Type":"multipart/form-data"}}).then(this.checkHttpResponse)}}const factory$1=()=>new BlogAgent;class FolderAgent extends AbstractBusAgent{constructor(){super(RESOURCE.FOLDER),m$2(this,"ctx",null),m$2(this,"http",TransportFrameworkFactory.instance().newHttpInstance({paramsSerializer:function(et){return Object.entries(et).map(tt=>tt[1]instanceof Array?tt[1].map(rt=>`${tt[0]}=${encodeURIComponent(rt)}`).join("&"):["string","number","boolean"].indexOf(typeof tt[1])>=0?`${tt[0]}=${encodeURIComponent(tt[1])}`:"").join("&")}})),m$2(this,"checkHttpResponse",et=>{if(this.http.latestResponse.status>=300)throw this.http.latestResponse.statusText;return et}),this.registerHandlers()}registerHandlers(){this.setHandler(ACTION.INITIALIZE,this.createContext),this.setHandler(ACTION.SEARCH,this.searchContext),this.setHandler(ACTION.CREATE,this.createFolder),this.setHandler(ACTION.OPEN,this.listSubfolders),this.setHandler(ACTION.MOVE,this.moveToFolder),this.setHandler(ACTION.DELETE,this.deleteFolders),this.setHandler(ACTION.TRASH,this.trashFolders),this.setHandler(ACTION.MANAGE,this.onManage),this.setHandler(ACTION.UPD_PROPS,this.updateFolder)}createContext(et){return this.http.get("/explorer/context",{queryParams:this.toQueryParams(et)}).then(this.checkHttpResponse)}searchContext(et){return this.http.get("/explorer/resources",{queryParams:this.toQueryParams(et)}).then(this.checkHttpResponse)}createFolder(et){return this.http.post("/explorer/folders",this.createFolderToBodyParams(et)).then(this.checkHttpResponse)}updateFolder(et){return this.http.put(`/explorer/folders/${et.folderId}`,this.createFolderToBodyParams(et)).then(this.checkHttpResponse)}moveToFolder(et){return this.http.post(`/explorer/folders/${et.folderId}/move`,this.moveToBodyParams(et)).then(this.checkHttpResponse)}listSubfolders(et){return this.http.get(`/explorer/folders/${et}/move`).then(this.checkHttpResponse)}deleteFolders(et){return this.http.deleteJson("/explorer",et).then(this.checkHttpResponse)}trashFolders({trash:et,resourceType:tt,...rt}){return this.http.putJson(`/explorer/${et?"trash":"restore"}`,rt).then(this.checkHttpResponse)}onManage(et){const tt={genericProps:[{key:PROP_KEY.TITLE},{key:PROP_KEY.IMAGE},{key:PROP_KEY.URL}]};return Promise.resolve().then(()=>tt)}toQueryParams(et){let tt={application:et.app,start_idx:et.pagination.startIdx,page_size:et.pagination.pageSize,resource_type:et.types};return et.orders&&(tt.order_by=Object.entries(et.orders).map(rt=>`${rt[0]}:${rt[1]}`)),et.filters&&Object.assign(tt,et.filters),typeof et.search=="string"&&(tt.search=et.search),tt}createFolderToBodyParams(et){return{application:et.app,resourceType:et.type,parentId:et.parentId,name:et.name}}moveToBodyParams(et){return{application:et.application,resourceType:this.managedResource,resourceIds:et.resourceIds,folderIds:et.folderIds}}}const factory=()=>new FolderAgent;class AgentLoader{load(et){let tt=appNameForResource[et];if(typeof tt!="string")throw new Error(`The resource type ${et} is not supported yet.`);switch(tt){case APP.EXPLORER:factory();break;case APP.BLOG:factory$1();break;default:throw new Error(`The resource type ${et} is not supported yet.`)}return Promise.resolve()}}class ExplorerContext{constructor(et,tt){m$2(this,"searchParameters"),m$2(this,"context"),m$2(this,"bus"),m$2(this,"latestResults",new Subject),this.context=null,this.bus=ExplorerFrameworkFactory.instance().getBus(),this.searchParameters={types:et,app:tt,filters:{},pagination:{startIdx:0,pageSize:20}}}clear(){this.searchParameters.filters={owner:!0,shared:!0,public:!0},this.searchParameters.pagination.startIdx=0,this.searchParameters.pagination.pageSize=20,this.context=null}isInitialized(){return this.context!==null}getContext(){if(this.context!==null)return this.context}getSearchParameters(){return this.searchParameters}duplicateSearchParameters(){return JSON.parse(JSON.stringify(this.searchParameters))}latestResources(){return this.latestResults.asObservable()}initialize(){const et=this.duplicateSearchParameters();return Promise.resolve().then(()=>this.bus.publish(RESOURCE.FOLDER,ACTION.INITIALIZE,et)).then(tt=>{if(this.context=tt,!this.context)throw new Error(ERROR_CODE.UNKNOWN);return this.latestResults.next({input:et,output:this.context}),this.context})}getResources(){const et=this.duplicateSearchParameters();return this.bus.publish(RESOURCE.FOLDER,ACTION.SEARCH,et).then(tt=>{let rt=tt;if(!rt)throw new Error(ERROR_CODE.UNKNOWN);return this.latestResults.next({input:et,output:rt}),rt})}getSubFolders(et){throw new Error("Method not implemented.")}createFolder(et,tt,rt){const nt={app:this.searchParameters.app,name:rt,parentId:tt,type:et};return this.bus.publish(RESOURCE.FOLDER,ACTION.CREATE,nt).then(st=>{let ot=st;if(!ot)throw new Error(ERROR_CODE.UNKNOWN);return ot})}updateFolder(et,tt,rt,nt){const st={folderId:et,app:this.searchParameters.app,name:nt,parentId:rt,type:tt};return this.bus.publish(RESOURCE.FOLDER,ACTION.UPD_PROPS,st).then(ot=>{let at=ot;if(!at)throw new Error(ERROR_CODE.UNKNOWN);return at})}copy(et,tt,rt){const nt={application:this.searchParameters.app,folderId:et,resourceIds:tt,folderIds:rt};return this.bus.publish(RESOURCE.FOLDER,ACTION.COPY,nt).then(st=>{})}move(et,tt,rt){const nt={application:this.searchParameters.app,folderId:et,resourceIds:tt,folderIds:rt};return this.bus.publish(RESOURCE.FOLDER,ACTION.MOVE,nt).then(st=>{})}delete(et,tt){const rt={application:this.searchParameters.app,resourceType:this.searchParameters.types[0],resourceIds:et,folderIds:tt};return this.bus.publish(RESOURCE.FOLDER,ACTION.DELETE,rt).then(nt=>{})}trash(et,tt,rt){const nt={trash:et,application:this.searchParameters.app,resourceType:this.searchParameters.types[0],resourceIds:tt,folderIds:rt};return this.bus.publish(RESOURCE.FOLDER,ACTION.TRASH,nt).then(st=>{})}manageProperties(et,tt){const rt={resources:tt};return this.bus.publish(et,ACTION.MANAGE,rt).then(nt=>{let st=nt;if(!st)throw new Error(ERROR_CODE.UNKNOWN);return st})}updateProperties(et,tt,rt){const nt={resources:tt,props:rt};return this.bus.publish(et,ACTION.UPD_PROPS,nt).then(st=>{let ot=st;if(!ot)throw new Error(ERROR_CODE.UNKNOWN);return ot})}publish(et,tt){return this.bus.publish(et,ACTION.PUBLISH,tt).then(rt=>{let nt=rt;if(!nt)throw new Error(ERROR_CODE.UNKNOWN);return nt})}}class ExplorerFramework{constructor(){m$2(this,"_agentLoader")}get agentLoader(){return this._agentLoader||(this._agentLoader=new AgentLoader),this._agentLoader}setAgentLoader(et){et&&(this._agentLoader=et)}requestAgentFor(et,tt){return this.agentLoader.load(et).then(()=>{let rt=this.getBus().getAgentFor(et,tt);if(!rt)throw new Error(ERROR_CODE.AGENT_NOT_FOUND);return rt})}createContext(et,tt){return new ExplorerContext(et,tt)}getBus(){return BusFactory.instance}}const explorer=new ExplorerFramework;class ExplorerFrameworkFactory{static instance(){return explorer}}const RESOURCE={FOLDER:"folder",BLOG:"blog",EXERCISE:"exercise"},appNameForResource={folder:APP.EXPLORER,blog:APP.BLOG,exercise:APP.EXERCIZER},ACTION={INITIALIZE:"initialize",SEARCH:"search",CREATE:"create",OPEN:"open",MANAGE:"manage",UPD_PROPS:"properties",COMMENT:"comment",DELETE:"delete",TRASH:"trash",RESTORE:"restore",MOVE:"move",COPY:"copy",EXPORT:"export",SHARE:"share",PRINT:"print",PAGES_LIST:"pages_list",DISTRIBUTE:"distribute",REGISTER:"register",PUBLISH:"publish",PUBLISH_MOODLE:"publish_moodle"},FOLDER={BIN:"bin",DEFAULT:"default"},PROP_KEY={TITLE:"title",IMAGE:"image",COLOR:"color",DESCRIPTION:"description",URL:"url"},ASYNC_DATA_NAME={SESSION_READY:"sessionReady",LANG_READY:"langReady",SKIN_READY:"skinReady",OVERRIDE_READY:"overrideReady"};class Promisified{constructor(){m$2(this,"_resolution"),m$2(this,"_rejection"),m$2(this,"_promise",new Promise((et,tt)=>{this._resolution=et,this._rejection=tt}))}get promise(){return this._promise}resolve(et){this._resolution&&this._resolution(et)}reject(et){this._rejection&&this._rejection(et)}}class NotifyFramework{constructor(){m$2(this,"promises",{}),m$2(this,"subject",new Subject)}asyncData(et){return typeof this.promises[et]>"u"&&(this.promises[et]=new Promisified),this.promises[et]}onSessionReady(){return this.asyncData(ASYNC_DATA_NAME.SESSION_READY)}onLangReady(){return this.asyncData(ASYNC_DATA_NAME.LANG_READY)}onSkinReady(){return this.asyncData(ASYNC_DATA_NAME.SKIN_READY)}onOverridesReady(){return this.asyncData(ASYNC_DATA_NAME.OVERRIDE_READY)}promisify(){return new Promisified}events(){return this.subject}}const notify=new NotifyFramework,LAYER_NAME={WIDGETS:"widgets",EXPLORER:"explorer"},EVENT_NAME={USERPREF_CHANGED:"userprefChanged",SEARCH_RESULTED:"searchResulted"};function getDefaultExportFromCjs(_e){return _e&&_e.__esModule&&Object.prototype.hasOwnProperty.call(_e,"default")?_e.default:_e}var axios$3={exports:{}},axios$2={exports:{}},bind$2=function(_e,et){return function(){for(var tt=new Array(arguments.length),rt=0;rt<tt.length;rt++)tt[rt]=arguments[rt];return _e.apply(et,tt)}},bind$1=bind$2,toString=Object.prototype.toString;function isArray(_e){return toString.call(_e)==="[object Array]"}function isUndefined(_e){return typeof _e>"u"}function isBuffer(_e){return _e!==null&&!isUndefined(_e)&&_e.constructor!==null&&!isUndefined(_e.constructor)&&typeof _e.constructor.isBuffer=="function"&&_e.constructor.isBuffer(_e)}function isArrayBuffer(_e){return toString.call(_e)==="[object ArrayBuffer]"}function isFormData(_e){return typeof FormData<"u"&&_e instanceof FormData}function isArrayBufferView(_e){var et;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?et=ArrayBuffer.isView(_e):et=_e&&_e.buffer&&_e.buffer instanceof ArrayBuffer,et}function isString(_e){return typeof _e=="string"}function isNumber(_e){return typeof _e=="number"}function isObject(_e){return _e!==null&&typeof _e=="object"}function isPlainObject(_e){if(toString.call(_e)!=="[object Object]")return!1;var et=Object.getPrototypeOf(_e);return et===null||et===Object.prototype}function isDate(_e){return toString.call(_e)==="[object Date]"}function isFile(_e){return toString.call(_e)==="[object File]"}function isBlob(_e){return toString.call(_e)==="[object Blob]"}function isFunction(_e){return toString.call(_e)==="[object Function]"}function isStream(_e){return isObject(_e)&&isFunction(_e.pipe)}function isURLSearchParams(_e){return typeof URLSearchParams<"u"&&_e instanceof URLSearchParams}function trim$1(_e){return _e.replace(/^\s*/,"").replace(/\s*$/,"")}function isStandardBrowserEnv(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function forEach(_e,et){if(!(_e===null||typeof _e>"u"))if(typeof _e!="object"&&(_e=[_e]),isArray(_e))for(var tt=0,rt=_e.length;tt<rt;tt++)et.call(null,_e[tt],tt,_e);else for(var nt in _e)Object.prototype.hasOwnProperty.call(_e,nt)&&et.call(null,_e[nt],nt,_e)}function merge(){var _e={};function et(nt,st){isPlainObject(_e[st])&&isPlainObject(nt)?_e[st]=merge(_e[st],nt):isPlainObject(nt)?_e[st]=merge({},nt):isArray(nt)?_e[st]=nt.slice():_e[st]=nt}for(var tt=0,rt=arguments.length;tt<rt;tt++)forEach(arguments[tt],et);return _e}function extend(_e,et,tt){return forEach(et,function(rt,nt){tt&&typeof rt=="function"?_e[nt]=bind$1(rt,tt):_e[nt]=rt}),_e}function stripBOM(_e){return _e.charCodeAt(0)===65279&&(_e=_e.slice(1)),_e}var utils$9={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isObject,isPlainObject,isUndefined,isDate,isFile,isBlob,isFunction,isStream,isURLSearchParams,isStandardBrowserEnv,forEach,merge,extend,trim:trim$1,stripBOM},utils$8=utils$9;function encode(_e){return encodeURIComponent(_e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var buildURL$1=function(_e,et,tt){if(!et)return _e;var rt;if(tt)rt=tt(et);else if(utils$8.isURLSearchParams(et))rt=et.toString();else{var nt=[];utils$8.forEach(et,function(ot,at){ot===null||typeof ot>"u"||(utils$8.isArray(ot)?at=at+"[]":ot=[ot],utils$8.forEach(ot,function(ut){utils$8.isDate(ut)?ut=ut.toISOString():utils$8.isObject(ut)&&(ut=JSON.stringify(ut)),nt.push(encode(at)+"="+encode(ut))}))}),rt=nt.join("&")}if(rt){var st=_e.indexOf("#");st!==-1&&(_e=_e.slice(0,st)),_e+=(_e.indexOf("?")===-1?"?":"&")+rt}return _e},utils$7=utils$9;function InterceptorManager$1(){this.handlers=[]}InterceptorManager$1.prototype.use=function(_e,et){return this.handlers.push({fulfilled:_e,rejected:et}),this.handlers.length-1};InterceptorManager$1.prototype.eject=function(_e){this.handlers[_e]&&(this.handlers[_e]=null)};InterceptorManager$1.prototype.forEach=function(_e){utils$7.forEach(this.handlers,function(et){et!==null&&_e(et)})};var InterceptorManager_1=InterceptorManager$1,utils$6=utils$9,transformData$1=function(_e,et,tt){return utils$6.forEach(tt,function(rt){_e=rt(_e,et)}),_e},isCancel$1,hasRequiredIsCancel;function requireIsCancel(){return hasRequiredIsCancel||(hasRequiredIsCancel=1,isCancel$1=function(_e){return!!(_e&&_e.__CANCEL__)}),isCancel$1}var utils$5=utils$9,normalizeHeaderName$1=function(_e,et){utils$5.forEach(_e,function(tt,rt){rt!==et&&rt.toUpperCase()===et.toUpperCase()&&(_e[et]=tt,delete _e[rt])})},enhanceError,hasRequiredEnhanceError;function requireEnhanceError(){return hasRequiredEnhanceError||(hasRequiredEnhanceError=1,enhanceError=function(_e,et,tt,rt,nt){return _e.config=et,tt&&(_e.code=tt),_e.request=rt,_e.response=nt,_e.isAxiosError=!0,_e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},_e}),enhanceError}var createError,hasRequiredCreateError;function requireCreateError(){if(hasRequiredCreateError)return createError;hasRequiredCreateError=1;var _e=requireEnhanceError();return createError=function(et,tt,rt,nt,st){var ot=new Error(et);return _e(ot,tt,rt,nt,st)},createError}var settle,hasRequiredSettle;function requireSettle(){if(hasRequiredSettle)return settle;hasRequiredSettle=1;var _e=requireCreateError();return settle=function(et,tt,rt){var nt=rt.config.validateStatus;!rt.status||!nt||nt(rt.status)?et(rt):tt(_e("Request failed with status code "+rt.status,rt.config,null,rt.request,rt))},settle}var cookies,hasRequiredCookies;function requireCookies(){if(hasRequiredCookies)return cookies;hasRequiredCookies=1;var _e=utils$9;return cookies=_e.isStandardBrowserEnv()?function(){return{write:function(et,tt,rt,nt,st,ot){var at=[];at.push(et+"="+encodeURIComponent(tt)),_e.isNumber(rt)&&at.push("expires="+new Date(rt).toGMTString()),_e.isString(nt)&&at.push("path="+nt),_e.isString(st)&&at.push("domain="+st),ot===!0&&at.push("secure"),document.cookie=at.join("; ")},read:function(et){var tt=document.cookie.match(new RegExp("(^|;\\s*)("+et+")=([^;]*)"));return tt?decodeURIComponent(tt[3]):null},remove:function(et){this.write(et,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),cookies}var isAbsoluteURL,hasRequiredIsAbsoluteURL;function requireIsAbsoluteURL(){return hasRequiredIsAbsoluteURL||(hasRequiredIsAbsoluteURL=1,isAbsoluteURL=function(_e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(_e)}),isAbsoluteURL}var combineURLs,hasRequiredCombineURLs;function requireCombineURLs(){return hasRequiredCombineURLs||(hasRequiredCombineURLs=1,combineURLs=function(_e,et){return et?_e.replace(/\/+$/,"")+"/"+et.replace(/^\/+/,""):_e}),combineURLs}var buildFullPath,hasRequiredBuildFullPath;function requireBuildFullPath(){if(hasRequiredBuildFullPath)return buildFullPath;hasRequiredBuildFullPath=1;var _e=requireIsAbsoluteURL(),et=requireCombineURLs();return buildFullPath=function(tt,rt){return tt&&!_e(rt)?et(tt,rt):rt},buildFullPath}var parseHeaders,hasRequiredParseHeaders;function requireParseHeaders(){if(hasRequiredParseHeaders)return parseHeaders;hasRequiredParseHeaders=1;var _e=utils$9,et=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return parseHeaders=function(tt){var rt={},nt,st,ot;return tt&&_e.forEach(tt.split(`
|
|
64
|
-
`),function(at){if(ot=at.indexOf(":"),nt=_e.trim(at.substr(0,ot)).toLowerCase(),st=_e.trim(at.substr(ot+1)),nt){if(rt[nt]&&et.indexOf(nt)>=0)return;nt==="set-cookie"?rt[nt]=(rt[nt]?rt[nt]:[]).concat([st]):rt[nt]=rt[nt]?rt[nt]+", "+st:st}}),rt},parseHeaders}var isURLSameOrigin,hasRequiredIsURLSameOrigin;function requireIsURLSameOrigin(){if(hasRequiredIsURLSameOrigin)return isURLSameOrigin;hasRequiredIsURLSameOrigin=1;var _e=utils$9;return isURLSameOrigin=_e.isStandardBrowserEnv()?function(){var et=/(msie|trident)/i.test(navigator.userAgent),tt=document.createElement("a"),rt;function nt(st){var ot=st;return et&&(tt.setAttribute("href",ot),ot=tt.href),tt.setAttribute("href",ot),{href:tt.href,protocol:tt.protocol?tt.protocol.replace(/:$/,""):"",host:tt.host,search:tt.search?tt.search.replace(/^\?/,""):"",hash:tt.hash?tt.hash.replace(/^#/,""):"",hostname:tt.hostname,port:tt.port,pathname:tt.pathname.charAt(0)==="/"?tt.pathname:"/"+tt.pathname}}return rt=nt(window.location.href),function(st){var ot=_e.isString(st)?nt(st):st;return ot.protocol===rt.protocol&&ot.host===rt.host}}():function(){return function(){return!0}}(),isURLSameOrigin}var xhr,hasRequiredXhr;function requireXhr(){if(hasRequiredXhr)return xhr;hasRequiredXhr=1;var _e=utils$9,et=requireSettle(),tt=requireCookies(),rt=buildURL$1,nt=requireBuildFullPath(),st=requireParseHeaders(),ot=requireIsURLSameOrigin(),at=requireCreateError();return xhr=function(ut){return new Promise(function(lt,dt){var ct=ut.data,ft=ut.headers;_e.isFormData(ct)&&delete ft["Content-Type"];var ht=new XMLHttpRequest;if(ut.auth){var mt=ut.auth.username||"",vt=ut.auth.password?unescape(encodeURIComponent(ut.auth.password)):"";ft.Authorization="Basic "+btoa(mt+":"+vt)}var wt=nt(ut.baseURL,ut.url);if(ht.open(ut.method.toUpperCase(),rt(wt,ut.params,ut.paramsSerializer),!0),ht.timeout=ut.timeout,ht.onreadystatechange=function(){if(!(!ht||ht.readyState!==4)&&!(ht.status===0&&!(ht.responseURL&&ht.responseURL.indexOf("file:")===0))){var yt="getAllResponseHeaders"in ht?st(ht.getAllResponseHeaders()):null,xt=!ut.responseType||ut.responseType==="text"?ht.responseText:ht.response,St={data:xt,status:ht.status,statusText:ht.statusText,headers:yt,config:ut,request:ht};et(lt,dt,St),ht=null}},ht.onabort=function(){!ht||(dt(at("Request aborted",ut,"ECONNABORTED",ht)),ht=null)},ht.onerror=function(){dt(at("Network Error",ut,null,ht)),ht=null},ht.ontimeout=function(){var yt="timeout of "+ut.timeout+"ms exceeded";ut.timeoutErrorMessage&&(yt=ut.timeoutErrorMessage),dt(at(yt,ut,"ECONNABORTED",ht)),ht=null},_e.isStandardBrowserEnv()){var gt=(ut.withCredentials||ot(wt))&&ut.xsrfCookieName?tt.read(ut.xsrfCookieName):void 0;gt&&(ft[ut.xsrfHeaderName]=gt)}if("setRequestHeader"in ht&&_e.forEach(ft,function(yt,xt){typeof ct>"u"&&xt.toLowerCase()==="content-type"?delete ft[xt]:ht.setRequestHeader(xt,yt)}),_e.isUndefined(ut.withCredentials)||(ht.withCredentials=!!ut.withCredentials),ut.responseType)try{ht.responseType=ut.responseType}catch(yt){if(ut.responseType!=="json")throw yt}typeof ut.onDownloadProgress=="function"&&ht.addEventListener("progress",ut.onDownloadProgress),typeof ut.onUploadProgress=="function"&&ht.upload&&ht.upload.addEventListener("progress",ut.onUploadProgress),ut.cancelToken&&ut.cancelToken.promise.then(function(yt){!ht||(ht.abort(),dt(yt),ht=null)}),ct||(ct=null),ht.send(ct)})},xhr}var utils$4=utils$9,normalizeHeaderName=normalizeHeaderName$1,DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(_e,et){!utils$4.isUndefined(_e)&&utils$4.isUndefined(_e["Content-Type"])&&(_e["Content-Type"]=et)}function getDefaultAdapter(){var _e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(_e=requireXhr()),_e}var defaults$2={adapter:getDefaultAdapter(),transformRequest:[function(_e,et){return normalizeHeaderName(et,"Accept"),normalizeHeaderName(et,"Content-Type"),utils$4.isFormData(_e)||utils$4.isArrayBuffer(_e)||utils$4.isBuffer(_e)||utils$4.isStream(_e)||utils$4.isFile(_e)||utils$4.isBlob(_e)?_e:utils$4.isArrayBufferView(_e)?_e.buffer:utils$4.isURLSearchParams(_e)?(setContentTypeIfUnset(et,"application/x-www-form-urlencoded;charset=utf-8"),_e.toString()):utils$4.isObject(_e)?(setContentTypeIfUnset(et,"application/json;charset=utf-8"),JSON.stringify(_e)):_e}],transformResponse:[function(_e){if(typeof _e=="string")try{_e=JSON.parse(_e)}catch{}return _e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(_e){return _e>=200&&_e<300}};defaults$2.headers={common:{Accept:"application/json, text/plain, */*"}};utils$4.forEach(["delete","get","head"],function(_e){defaults$2.headers[_e]={}});utils$4.forEach(["post","put","patch"],function(_e){defaults$2.headers[_e]=utils$4.merge(DEFAULT_CONTENT_TYPE)});var defaults_1=defaults$2,utils$3=utils$9,transformData=transformData$1,isCancel=requireIsCancel(),defaults$1=defaults_1;function throwIfCancellationRequested(_e){_e.cancelToken&&_e.cancelToken.throwIfRequested()}var dispatchRequest$1=function(_e){throwIfCancellationRequested(_e),_e.headers=_e.headers||{},_e.data=transformData(_e.data,_e.headers,_e.transformRequest),_e.headers=utils$3.merge(_e.headers.common||{},_e.headers[_e.method]||{},_e.headers),utils$3.forEach(["delete","get","head","post","put","patch","common"],function(tt){delete _e.headers[tt]});var et=_e.adapter||defaults$1.adapter;return et(_e).then(function(tt){return throwIfCancellationRequested(_e),tt.data=transformData(tt.data,tt.headers,_e.transformResponse),tt},function(tt){return isCancel(tt)||(throwIfCancellationRequested(_e),tt&&tt.response&&(tt.response.data=transformData(tt.response.data,tt.response.headers,_e.transformResponse))),Promise.reject(tt)})},utils$2=utils$9,mergeConfig$2=function(_e,et){et=et||{};var tt={},rt=["url","method","data"],nt=["headers","auth","proxy","params"],st=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],ot=["validateStatus"];function at(ct,ft){return utils$2.isPlainObject(ct)&&utils$2.isPlainObject(ft)?utils$2.merge(ct,ft):utils$2.isPlainObject(ft)?utils$2.merge({},ft):utils$2.isArray(ft)?ft.slice():ft}function ut(ct){utils$2.isUndefined(et[ct])?utils$2.isUndefined(_e[ct])||(tt[ct]=at(void 0,_e[ct])):tt[ct]=at(_e[ct],et[ct])}utils$2.forEach(rt,function(ct){utils$2.isUndefined(et[ct])||(tt[ct]=at(void 0,et[ct]))}),utils$2.forEach(nt,ut),utils$2.forEach(st,function(ct){utils$2.isUndefined(et[ct])?utils$2.isUndefined(_e[ct])||(tt[ct]=at(void 0,_e[ct])):tt[ct]=at(void 0,et[ct])}),utils$2.forEach(ot,function(ct){ct in et?tt[ct]=at(_e[ct],et[ct]):ct in _e&&(tt[ct]=at(void 0,_e[ct]))});var lt=rt.concat(nt).concat(st).concat(ot),dt=Object.keys(_e).concat(Object.keys(et)).filter(function(ct){return lt.indexOf(ct)===-1});return utils$2.forEach(dt,ut),tt},utils$1=utils$9,buildURL=buildURL$1,InterceptorManager=InterceptorManager_1,dispatchRequest=dispatchRequest$1,mergeConfig$1=mergeConfig$2;function Axios$1(_e){this.defaults=_e,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}Axios$1.prototype.request=function(_e){typeof _e=="string"?(_e=arguments[1]||{},_e.url=arguments[0]):_e=_e||{},_e=mergeConfig$1(this.defaults,_e),_e.method?_e.method=_e.method.toLowerCase():this.defaults.method?_e.method=this.defaults.method.toLowerCase():_e.method="get";var et=[dispatchRequest,void 0],tt=Promise.resolve(_e);for(this.interceptors.request.forEach(function(rt){et.unshift(rt.fulfilled,rt.rejected)}),this.interceptors.response.forEach(function(rt){et.push(rt.fulfilled,rt.rejected)});et.length;)tt=tt.then(et.shift(),et.shift());return tt};Axios$1.prototype.getUri=function(_e){return _e=mergeConfig$1(this.defaults,_e),buildURL(_e.url,_e.params,_e.paramsSerializer).replace(/^\?/,"")};utils$1.forEach(["delete","get","head","options"],function(_e){Axios$1.prototype[_e]=function(et,tt){return this.request(mergeConfig$1(tt||{},{method:_e,url:et,data:(tt||{}).data}))}});utils$1.forEach(["post","put","patch"],function(_e){Axios$1.prototype[_e]=function(et,tt,rt){return this.request(mergeConfig$1(rt||{},{method:_e,url:et,data:tt}))}});var Axios_1=Axios$1,Cancel_1,hasRequiredCancel;function requireCancel(){if(hasRequiredCancel)return Cancel_1;hasRequiredCancel=1;function _e(et){this.message=et}return _e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},_e.prototype.__CANCEL__=!0,Cancel_1=_e,Cancel_1}var CancelToken_1,hasRequiredCancelToken;function requireCancelToken(){if(hasRequiredCancelToken)return CancelToken_1;hasRequiredCancelToken=1;var _e=requireCancel();function et(tt){if(typeof tt!="function")throw new TypeError("executor must be a function.");var rt;this.promise=new Promise(function(st){rt=st});var nt=this;tt(function(st){nt.reason||(nt.reason=new _e(st),rt(nt.reason))})}return et.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},et.source=function(){var tt,rt=new et(function(nt){tt=nt});return{token:rt,cancel:tt}},CancelToken_1=et,CancelToken_1}var spread,hasRequiredSpread;function requireSpread(){return hasRequiredSpread||(hasRequiredSpread=1,spread=function(_e){return function(et){return _e.apply(null,et)}}),spread}var isAxiosError,hasRequiredIsAxiosError;function requireIsAxiosError(){return hasRequiredIsAxiosError||(hasRequiredIsAxiosError=1,isAxiosError=function(_e){return typeof _e=="object"&&_e.isAxiosError===!0}),isAxiosError}var utils=utils$9,bind=bind$2,Axios=Axios_1,mergeConfig$3=mergeConfig$2,defaults$3=defaults_1;function createInstance(_e){var et=new Axios(_e),tt=bind(Axios.prototype.request,et);return utils.extend(tt,Axios.prototype,et),utils.extend(tt,et),tt}var axios$1=createInstance(defaults$3);axios$1.Axios=Axios;axios$1.create=function(_e){return createInstance(mergeConfig$3(axios$1.defaults,_e))};axios$1.Cancel=requireCancel();axios$1.CancelToken=requireCancelToken();axios$1.isCancel=requireIsCancel();axios$1.all=function(_e){return Promise.all(_e)};axios$1.spread=requireSpread();axios$1.isAxiosError=requireIsAxiosError();axios$2.exports=axios$1;axios$2.exports.default=axios$1;(function(_e){_e.exports=axios$2.exports})(axios$3);const axios=getDefaultExportFromCjs(axios$3.exports),loadedScripts$1={};class Http{constructor(et){m$2(this,"axios"),m$2(this,"_latestResponse"),this.axios=axios.create(et)}setCdn(et){et&&XMLHttpRequest&&!XMLHttpRequest.prototype.cdnUrl&&(XMLHttpRequest.prototype.cdnUrl=et,XMLHttpRequest.prototype.baseOpen=XMLHttpRequest.prototype.open,XMLHttpRequest.prototype.open=function(){const tt=arguments[1];return tt.startsWith("/infra/public")&&(arguments[1]=et+tt),/^\/([^\/]*)\/public/.test(tt)&&(arguments[1]=et+tt),tt.startsWith("/assets")&&(arguments[1]=et+tt),tt=="/conf/public"&&(arguments[1]=tt),tt.startsWith("http")&&(arguments[1]=tt),this.baseOpen.apply(this,arguments)})}toAxiosConfig(et){if(et){const tt=Object.assign({},this.axios.defaults);return et.headers&&(tt.headers&&(tt.headers=Object.assign({},this.axios.defaults.headers)),Object.assign(tt.headers,et.headers)),et.responseType&&(tt.responseType=et.responseType),et.queryParams&&(tt.params=Object.assign({},et.queryParams)),tt}else return this.axios.defaults}toCdnUrl(et){const tt=ConfigurationFrameworkFactory.instance().Platform.cdnDomain;if((tt==null?void 0:tt.length)>0&&et!=="/conf/public"){const rt=""+et;(rt.startsWith("/infra/public")||rt.startsWith("/assets")||/^\/([^\/]*)\/public/.test(rt))&&(et=tt+rt)}return et}mapAxiosError(et,tt){return et.response?this._latestResponse=et.response:et.request?this._latestResponse={status:408,statusText:ERROR_CODE.TIME_OUT}:this._latestResponse={status:500,statusText:ERROR_CODE.UNKNOWN},!tt||tt.disableNotifications,this._latestResponse}mapAxiosResponse(et,tt){return this._latestResponse=et,et.data}get latestResponse(){return this._latestResponse}get(et,tt){return this.axios.get(this.toCdnUrl(et),this.toAxiosConfig(tt)).then(rt=>this.mapAxiosResponse(rt,tt)).catch(rt=>this.mapAxiosError(rt,tt))}post(et,tt,rt){return this.axios.post(et,tt,this.toAxiosConfig(rt)).then(nt=>this.mapAxiosResponse(nt,rt)).catch(nt=>this.mapAxiosError(nt,rt))}postFile(et,tt,rt){const nt=this.toAxiosConfig(rt);return nt.headers&&nt.headers["Content-Type"]&&delete nt.headers["Content-Type"],this.axios.post(et,tt,nt).then(st=>this.mapAxiosResponse(st,rt)).catch(st=>this.mapAxiosError(st,rt))}postJson(et,tt,rt){const nt=this.toAxiosConfig();return nt.headers&&(nt.headers["Content-Type"]="application/json"),this.axios.post(et,tt,this.toAxiosConfig(rt)).then(st=>this.mapAxiosResponse(st,rt)).catch(st=>this.mapAxiosError(st,rt))}put(et,tt,rt){return this.axios.put(et,tt,this.toAxiosConfig(rt)).then(nt=>this.mapAxiosResponse(nt,rt)).catch(nt=>this.mapAxiosError(nt,rt))}putJson(et,tt,rt){const nt=this.toAxiosConfig(rt);return nt.headers&&(nt.headers["Content-Type"]="application/json"),this.axios.put(et,tt,nt).then(st=>this.mapAxiosResponse(st,rt)).catch(st=>this.mapAxiosError(st,rt))}delete(et,tt){return this.axios.delete(et,this.toAxiosConfig(tt)).then(rt=>this.mapAxiosResponse(rt,tt)).catch(rt=>this.mapAxiosError(rt,tt))}deleteJson(et,tt){return this.axios.delete(et,{data:tt}).then(rt=>this.mapAxiosResponse(rt)).catch(rt=>this.mapAxiosError(rt))}getScript(et,tt,rt){const nt=rt??"exports",st=this.toAxiosConfig(tt);return st.headers&&(st.headers.Accept="application/javascript"),this.axios.get(this.toCdnUrl(et),st).then(ot=>this.mapAxiosResponse(ot,tt)).then(ot=>{try{const at=`"use strict";var ${nt.split(".")[0]}={};${ot};return ${nt};`;return Function(at)()}catch{return ot}}).catch(ot=>{throw this.mapAxiosError(ot,tt),ot})}loadScript(et,tt){return loadedScripts$1[et]?Promise.resolve():this.getScript(et,tt).then(rt=>{loadedScripts$1[et]=!0})}}class TransportFramework{constructor(){m$2(this,"_http",new Http)}get http(){return this._http}newHttpInstance(et){return new Http(et)}}const transport=new TransportFramework;class TransportFrameworkFactory{static instance(){return transport}}const http$2=transport.http;class Session{constructor(){m$2(this,"_me",null),m$2(this,"_currentLanguage",""),m$2(this,"_notLoggedIn",!0),m$2(this,"_description"),m$2(this,"_profile")}get currentLanguage(){return this._currentLanguage}get notLoggedIn(){return this._notLoggedIn}get description(){return this._description}get avatarUrl(){let et=this.description.photo;return(!et||et==="no-avatar.jpg"||et==="no-avatar.svg")&&(et=ConfigurationFrameworkFactory.instance().Platform.theme.basePath+"/img/illustrations/no-avatar.svg"),et}get user(){return this._me}get currentApp(){return configure.Platform.apps.currentApp}async initialize(){return http$2.get("/auth/oauth2/userinfo").then(et=>{if(http$2.latestResponse.status<200||http$2.latestResponse.status>=300)throw ERROR_CODE.NOT_LOGGED_IN;return this.setCurrentModel(et),this._notLoggedIn?this.loadDefaultLanguage():this.loadUserLanguage()}).then(et=>(this.setCurrentLanguage(et),this.loadDescription())).then(()=>this.getUserProfile()).then(()=>{notify.onSessionReady().resolve(this._me)}).catch(et=>{if(et===ERROR_CODE.NOT_LOGGED_IN)return Promise.resolve();notify.onSessionReady().reject(et)})}setCurrentModel(et){this._me=et,this._notLoggedIn=!(et&&et.sessionMetadata&&et.sessionMetadata.userId)}hasWorkflow(et){var tt;return et===void 0||((tt=this._me)==null?void 0:tt.authorizedActions.findIndex(rt=>rt.name===et))!==-1}hasRight(et,tt){if(tt==="owner")return et.owner&&et.owner.userId===this._me.userId;const rt=tt.right||tt,nt=et.shared.filter(ot=>(this._me.groupsIds||[]).indexOf(ot.groupId)!==-1||ot.userId===this._me.userId).find(ot=>ot[rt]||ot.manager)!==void 0,st=tt.workflow?this.hasWorkflow(tt.workflow):!0;return nt&&st}get latestQuotaAndUsage(){return http$2.get(`/workspace/quota/user/${this._me.userId}`).then(et=>(this._description&&(this._description.quota=et.quota,this._description.storage=et.storage),et)).catch(()=>({quota:0,storage:0}))}setCurrentLanguage(et){this._currentLanguage=et,notify.onLangReady().resolve(et)}loadDefaultLanguage(){return http$2.get("/locale").then(et=>et.locale).catch(()=>this._currentLanguage)}loadDescription(){return Promise.all([http$2.get("/userbook/api/person",{requestName:"refreshAvatar"}),http$2.get("/directory/userbook/"+this._me.userId)]).then(et=>(et[0].status==="ok"&&et[0].result&&et[0].result.length>0?this._description=et[0].result[0]:this._description={},this._description.type&&!this._description.profiles&&(this._description.profiles=this._description.type),Object.assign(this._description,et[1]),this._description))}get profile(){return this._profile}getUserProfile(){return http$2.get("/userbook/api/person").then(et=>et.result).then(et=>this._profile=et[0].type)}loadUserLanguage(){return http$2.get("/userbook/preference/language").then(et=>{try{return JSON.parse(et.preference)["default-domain"]}catch{return this.loadDefaultLanguage()}}).catch(()=>this.loadDefaultLanguage())}getEmailValidationInfos(){return http$2.get("/directory/user/mailstate")}checkEmail(et){return http$2.put("/directory/user/mailstate",{email:et})}tryEmailValidation(et){return http$2.post("/directory/user/mailstate",{key:et})}getMobileValidationInfos(){return http$2.get("/directory/user/mobilestate")}checkMobile(et){return http$2.put("/directory/user/mobilestate",{mobile:et})}tryMobileValidation(et){return http$2.post("/directory/user/mobilestate",{key:et})}getMfaInfos(){return http$2.get("/auth/user/mfa/code")}tryMfaCode(et){return http$2.post("/auth/user/mfa/code",{key:et})}}class SessionFramework{constructor(){m$2(this,"session",new Session)}initialize(){return this.session.initialize()}login(et,tt,rt,nt){const st=new FormData;return st.append("email",et),st.append("password",tt),typeof rt<"u"&&st.append("rememberMe",""+rt),typeof nt<"u"&&st.append("secureLocation",""+nt),transport.http.post("/auth/login",st,{headers:{"content-type":"application/x-www-form-urlencoded"}}).finally(()=>{switch(transport.http.latestResponse.status){case 200:throw ERROR_CODE.MALFORMED_DATA}})}logout(){return transport.http.get("/auth/logout").finally(()=>{})}}const session=new SessionFramework;class Theme{constructor(){m$2(this,"_conf"),m$2(this,"_loaded"),m$2(this,"skinName",""),m$2(this,"themeName",""),m$2(this,"skin","raw"),m$2(this,"themeUrl","/assets/themes/raw/default/"),m$2(this,"templateOverrides",{}),m$2(this,"portalTemplate","/assets/themes/raw/portal.html"),m$2(this,"basePath",""),m$2(this,"logoutCallback","/"),m$2(this,"skins",[]),m$2(this,"is1D",!1),m$2(this,"is2D",!1),m$2(this,"_onSkinReady",notify.onSkinReady()),m$2(this,"_onOverrideReady",notify.onOverridesReady())}initialize(et){return notify.onSessionReady().promise.then(()=>this.load(et))}get version(){return configure.Platform.deploymentTag}get cdnDomain(){return configure.Platform.cdnDomain}async onFullyReady(){return await this._loaded,this}onSkinReady(){return this._onSkinReady.promise}onOverrideReady(){return this._onOverrideReady.promise}async getConf(et){var tt;return this._conf=(tt=this._conf)!=null?tt:await transport.http.getScript("/assets/theme-conf.js",{queryParams:{v:et??this.version}},"exports.conf"),this._conf}load(et){return et=et??this.version,this._loaded||(this._loaded=(session.session.notLoggedIn?this.loadDisconnected(et):this.loadConnected(et)).then(async()=>{var tt,rt;const nt=await this.listSkins();this.is1D=((tt=nt.find(st=>st.child===this.skin))==null?void 0:tt.parent)==="panda",this.is2D=((rt=nt.find(st=>st.child===this.skin))==null?void 0:rt.parent)==="theme-open-ent"})),this._loaded}loadDisconnected(et){return new Promise((tt,rt)=>{transport.http.get("/skin",{queryParams:{v:this.version}}).then(nt=>{this.skin=nt.skin,this.themeUrl=`${this.cdnDomain}/assets/themes/${nt.skin}/skins/default/`,this.basePath=this.themeUrl+"../../",this._onSkinReady.resolve(this),transport.http.get(`/assets/themes/${nt.skin}/template/override.json`,{disableNotifications:!0,queryParams:{v:et}}).then(st=>{this.templateOverrides=st,this._onOverrideReady.resolve(st),tt()}).catch(st=>{if(transport.http.latestResponse.status===404)tt();else throw st})}).catch(nt=>{this._onSkinReady.reject(nt),this._onOverrideReady.reject(nt),rt()})})}loadConnected(et){return new Promise((tt,rt)=>{this.loadDefaultTheme(et).then(()=>{this._onSkinReady.resolve(this),transport.http.get(`/assets/themes/${this.skin}/template/override.json`,{disableNotifications:!0,queryParams:{v:et}}).then(nt=>{this.templateOverrides=nt,this._onOverrideReady.resolve(nt),tt()}).catch(nt=>{if(transport.http.latestResponse.status===404)tt(),this._onSkinReady.reject(nt),this._onOverrideReady.reject(nt);else throw nt})})})}async loadDefaultTheme(et){return session.session.notLoggedIn?Promise.reject():transport.http.get("/theme",{queryParams:{_:et}}).then(tt=>{this.skinName=tt.skinName,this.themeName=tt.themeName,this.themeUrl=tt.skin,this.basePath=`${this.cdnDomain}${this.themeUrl}../../`,this.skin=this.themeUrl.split("/assets/themes/")[1].split("/")[0],this.portalTemplate=`${this.cdnDomain}/assets/themes/${this.skin}/portal.html`,this.logoutCallback=tt.logoutCallback})}listThemes(){return transport.http.get("/themes")}async setDefaultTheme(et){await transport.http.get("/userbook/api/edit-userbook-info?prop=theme-"+this.skin+"&value="+et._id),await this.loadDefaultTheme(this.version)}listSkins(){return this.skins.length>0?Promise.resolve(this.skins):this.getConf().then(et=>{const tt=et.overriding.find(rt=>rt.child===this.skin);return tt!=null&&tt.group?this.skins=this.skins.concat(et.overriding.filter(rt=>rt.group===tt.group)):this.skins=this.skins.concat(et.overriding),this.skins})}async getHelpPath(){var et;const tt=(await this.listSkins()).find(rt=>rt.child===this.skin);return(et=tt==null?void 0:tt.help)!=null?et:"/help"}}const bundle$1={},promises$1={},defaultDiacriticsRemovalMap$1=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}];class Idiom{translate(et,tt){et=et??"";let rt=bundle$1[et]===void 0?et:bundle$1[et];if(tt&&typeof tt=="object")for(let nt in tt)typeof tt[nt]<"u"&&(rt=rt.replace(new RegExp("\\${"+nt+"}","g"),""+tt[nt]));return rt}addBundlePromise(et){return this.loadBundlePromise(session.session.currentLanguage,et)}addBundle(et,tt){this.loadBundle(session.session.currentLanguage,et,tt)}loadBundlePromise(et,tt){return this.loadBundle(et,tt),promises$1[tt]}loadBundle(et,tt,rt){const nt=promises$1[tt];if(nt)rt&&nt.then(rt).catch(rt);else{const st=new Promisified;promises$1[tt]=st.promise;const ot={};et&&(ot["Accept-Language"]=et),transport.http.get(tt,{headers:ot}).then(at=>{Object.assign(bundle$1,at),typeof rt=="function"&&rt(),st.resolve()}).catch(at=>{typeof rt=="function"&&rt(),st.reject()})}}addTranslations(et,tt){notify.onLangReady().promise.then(rt=>{this.loadBundle(rt,et+"/"+rt+".json",tt)})}addAllTranslations(et){return et&&et.length>0?notify.onLangReady().promise.then(tt=>Promise.all(et.map(rt=>this.loadBundlePromise(tt,rt+"/"+tt+".json")))).then(()=>{}):Promise.reject()}addKeys(et){for(var tt in et)typeof bundle$1[tt]!="string"&&(bundle$1[tt]=et[tt])}removeAccents(et){for(var tt=0;tt<defaultDiacriticsRemovalMap$1.length;tt++)et=et.replace(defaultDiacriticsRemovalMap$1[tt].letters,defaultDiacriticsRemovalMap$1[tt].base);return et}}class UserPreferences{constructor(){m$2(this,"data",{})}get(et){return this.data[et]}load(et,tt){return transport.http.get("/userbook/preference/"+et).then(rt=>{try{return JSON.parse(rt.preference)}catch{return tt??{}}}).then(rt=>(this.data[et]=rt??{},rt))}update(et,tt){return tt!==void 0&&(this.data[et]=tt),this}save(et){return transport.http.putJson("/userbook/preference/"+et,this.data[et])}}class User{constructor(){m$2(this,"_me",null),m$2(this,"_keepOpenOnLogout",!1),m$2(this,"_preferences",new UserPreferences),m$2(this,"_bookmarkedApps",[])}get keepOpenOnLogout(){return this._keepOpenOnLogout}get preferences(){return this._preferences}get bookmarkedApps(){return this._bookmarkedApps}initialize(et){return this.loadPublicConf(),notify.onSessionReady().promise.then(tt=>{tt&&this.setCurrentModel(tt)})}setCurrentModel(et){this._me=et,this._preferences=new UserPreferences,this.loadBookmarks()}loadPublicConf(){return transport.http.get("/conf/public").then(et=>(this._keepOpenOnLogout=(et==null?void 0:et.keepOpenOnLogout)||!1,et))}async loadBookmarks(){await transport.http.get("/userbook/preference/apps").then(et=>{et.preference||(et.preference=null);const tt=JSON.parse(et.preference);let rt;if(tt&&tt.length&&typeof tt.concat=="function"){this._bookmarkedApps=tt,rt={bookmarks:tt.map(ot=>ot.name),applications:[]},transport.http.putJson("/userbook/preference/apps",rt);return}else rt=tt;rt||(rt={bookmarks:[],applications:[]});let nt=!0;const st=[];rt.bookmarks.forEach((ot,at)=>{const ut=this._me.apps.find(lt=>lt.name===ot);if(ut){let lt=Object.assign({},ut);this._bookmarkedApps.push(lt)}else st.push(ot),nt=!1}),st.forEach(ot=>{let at=rt.bookmarks.indexOf(ot);at!==-1&&rt.bookmarks.splice(at,1)}),nt||transport.http.putJson("/userbook/preference/apps",rt)})}loadAppPrefs(et){return this.preferences.load(et,{})}saveAppPrefs(et){return this.preferences.save(et)}loadLanguage(){return this.preferences.load("language",{"default-domain":session.session.currentLanguage}).then(et=>et["default-domain"])}saveLanguage(et){return this.preferences.update("language",{"default-domain":et}).save("language")}}const http$1=transport==null?void 0:transport.http;class AppConf{constructor(){m$2(this,"_publicConf",{}),m$2(this,"_currentApp"),m$2(this,"_appConf",{})}get currentApp(){var et;return(et=this._currentApp)!=null?et:null}setCurrentApp(et){return this._currentApp=et,this}async initialize(et,tt=!1){tt||this.setCurrentApp(et),await Promise.all([this.getPublicConf(et),this.loadI18n(et)])}async getPublicConf(et){return this._publicConf[et]||(this._publicConf[et]=await http$1.get(`/${et}/conf/public`,{queryParams:{_:configure.Platform.deploymentTag}})),this._publicConf[et]}async getWebAppConf(et){var tt;let rt;return this._appConf[et]||(await http$1.get("/applications-list")).apps.forEach(nt=>{if(nt!=null&&nt.prefix){const st=nt.prefix.replace("/","");this._appConf[st]=nt}else nt!=null&&nt.name&&nt.name.toLowerCase()==et&&(rt=nt)}),(tt=this._appConf[et])!=null?tt:rt}async loadI18n(et){return await notify.onLangReady().promise,configure.Platform.idiom.addBundlePromise(`/${et}/i18n`)}}class Analytics{constructor(){m$2(this,"_status","void"),m$2(this,"_params")}get status(){return this._status}xiti(){return this.parametersWithCheck("xiti",!1)}parameters(et){return this.parametersWithCheck(et,!0)}async parametersWithCheck(et,tt){return this.initialize().promise.then(rt=>!tt||rt.type===et||rt.type==="multiple"?rt[et]:void 0)}initialize(){return this._params||(this._params=notify.promisify(),this._status="pending",Promise.all([transport.http.get("/analyticsConf"),transport.http.get("/xiti/config")]).then(async et=>{var tt;if(!et||!et[0]||!et[0].type)throw ERROR_CODE.MALFORMED_DATA;et[1]&&et[1].active&&(et[0].xiti=await this.initializeXiti(et[1])),(tt=this._params)==null||tt.resolve(et[0]),this._status="ready"}).catch(et=>{var tt;throw this._status="failed",(tt=this._params)==null||tt.reject(),et})),this._params}async initializeXiti(et){var tt;if(!et.structureMap||!configure.Platform.apps.currentApp)return;const rt=await notify.onSessionReady().promise,nt=session.session.description;let st;for(let dt of rt.structures){const ct=et.structureMap[dt];if(ct&&ct.collectiviteId&&ct.UAI){st=ct;break}}if(!st||!st.active)return;const ot=await configure.Platform.apps.getPublicConf(configure.Platform.apps.currentApp);if(!ot)return;const at=ot.xiti;if(!at||!at.LIBELLE_SERVICE||!st.UAI)return;function ut(dt){let ct="";for(let ft=0;ft<dt.length;ft++)ct+=dt.charCodeAt(ft);return ct}const lt={Student:"ELEVE",Teacher:"ENSEIGNANT",Relative:"PARENT",Personnel:"ADMIN_VIE_SCOL_TECH",Guest:"AUTRE"};return{LIBELLE_SERVICE:at.LIBELLE_SERVICE,TYPE:at.OUTIL?"TIERS":"NATIF",OUTIL:at.OUTIL?at.OUTIL:"",STRUCT_ID:st.collectiviteId,STRUCT_UAI:st.UAI,PROJET:st.projetId?st.projetId:et.ID_PROJET,EXPLOITANT:et.ID_EXPLOITANT,PLATFORME:st.plateformeId?st.plateformeId:et.ID_PLATEFORME,ID_PERSO:ut(rt.userId),PROFILE:nt.profiles&&nt.profiles.length>0&&(tt=lt[nt.profiles[0]])!=null?tt:""}}}class ConfigurationFramework{constructor(){m$2(this,"Platform",{deploymentTag:"",cdnDomain:"",apps:new AppConf,theme:new Theme,analytics:new Analytics,idiom:new Idiom,listLanguages:()=>transport.http.get("/languages")}),m$2(this,"School",{}),m$2(this,"User",new User)}async initialize(et,tt){if(!et){const nt=lt=>(lt<10?"0":"")+lt.toFixed(0),st=new Date,ot=st.getFullYear(),at=st.getMonth()+1,ut=st.getDate();et=`${ot}${nt(at)}${nt(ut)}`}const rt=et;this.Platform.deploymentTag=et,typeof tt=="string"&&tt.length>0&&(this.Platform.cdnDomain=tt),transport.http.setCdn(this.Platform.cdnDomain),await Promise.all([this.Platform.theme.initialize(rt),notify.onSessionReady().promise.then(nt=>this.Platform.idiom.addBundlePromise("/i18n")),this.User.initialize(rt)])}}const configure=new ConfigurationFramework;class ConfigurationFrameworkFactory{static instance(){return configure}}const WIDGET_POSITION={LEFT:"left",RIGHT:"right"},firstLevelWidgets=["birthday","mood","calendar-widget","notes"],secondLevelWidgets=["agenda-widget","carnet-de-bord","my-apps","rss-widget","bookmark-widget","cursus-widget","maxicours-widget","school-widget"],defaultWidgetPosition={"last-infos-widget":WIDGET_POSITION.LEFT,birthday:WIDGET_POSITION.LEFT,"calendar-widget":WIDGET_POSITION.RIGHT,"carnet-de-bord":WIDGET_POSITION.LEFT,"record-me":WIDGET_POSITION.RIGHT,mood:WIDGET_POSITION.LEFT,"my-apps":WIDGET_POSITION.RIGHT,notes:WIDGET_POSITION.RIGHT,"rss-widget":WIDGET_POSITION.LEFT,"bookmark-widget":WIDGET_POSITION.RIGHT,qwant:WIDGET_POSITION.RIGHT,"qwant-junior":WIDGET_POSITION.LEFT,"agenda-widget":WIDGET_POSITION.LEFT,"cursus-widget":WIDGET_POSITION.LEFT,"maxicours-widget":WIDGET_POSITION.RIGHT,"universalis-widget":WIDGET_POSITION.RIGHT,"briefme-widget":WIDGET_POSITION.LEFT,"school-widget":WIDGET_POSITION.LEFT},defaultWidgetOrder={"school-widget":0,"my-apps":10,"record-me":15,"last-infos-widget":20,qwant:30,"qwant-junior":30,"universalis-widget":35,"agenda-widget":40,"bookmark-widget":50,"carnet-de-bord":60,"maxicours-widget":70,"cursus-widget":80,"briefme-widget":90,"rss-widget":100,mood:110,birthday:120,"calendar-widget":130,notes:140};class WidgetFramework{constructor(){m$2(this,"_initialized"),m$2(this,"_widgets",[]),m$2(this,"_userPrefs",{})}initialize(et,tt){return this._initialized||(this._initialized=new Promisified,notify.onSessionReady().promise.then(rt=>{var nt;rt&&rt.widgets?(rt.widgets.forEach(st=>{this._widgets.push(new Widget(st))}),this.loadUserPrefs().then(()=>{var st;(st=this._initialized)==null||st.resolve()}).catch(st=>{var ot;(ot=this._initialized)==null||ot.reject()})):(nt=this._initialized)==null||nt.reject()})),this._initialized.promise}get list(){return this._widgets}lookup(et){return this._widgets.find(tt=>tt.platformConf.name===et)}lookupDefaultPosition(et){return defaultWidgetPosition[et]}get userPrefs(){return this._userPrefs}async loadUserPrefs(){await configure.User.preferences.load("widgets",{}).then(et=>this.applyUserPrefs(et))}saveUserPrefs(){return configure.User.preferences.update("widgets",this._userPrefs).save("widgets").then(()=>{notify.events().next({name:EVENT_NAME.USERPREF_CHANGED,layer:LAYER_NAME.WIDGETS})})}async applyUserPrefs(et){this._userPrefs=et??this._userPrefs;const tt=configure.Platform.theme,rt=[];tt.listSkins().then(nt=>{var st;const ot=((st=nt.find(ut=>ut.child===tt.skin))==null?void 0:st.parent)==="panda"?secondLevelWidgets:firstLevelWidgets;this._widgets=this._widgets.filter((ut,lt)=>{var dt,ct;const ft=ut.platformConf.name;return ot.indexOf(ft)!==-1?!1:(this._userPrefs[ft]||(this._userPrefs[ft]={index:(dt=defaultWidgetOrder[ft])!=null?dt:999,show:!0,position:ut.platformConf.position}),ut.platformConf.mandatory&&(this._userPrefs[ft].show=!0,this._userPrefs[ft].index=(ct=defaultWidgetOrder[ft])!=null?ct:999),ut.platformConf.i18n&&rt.push(ut.platformConf.i18n),ut.applyUserPref(this._userPrefs[ft]),!0)});const at=new Idiom;this._widgets=this._widgets.sort((ut,lt)=>{const dt=at.translate(`timeline.settings.${ut.platformConf.name}`).toLowerCase(),ct=at.translate(`timeline.settings.${lt.platformConf.name}`).toLowerCase();return dt<ct?-1:dt>ct?1:0})})}}class Widget{constructor(et){m$2(this,"_schoolConf",{}),m$2(this,"_userPref"),this._platformConf=et,this._userPref=null}get platformConf(){return this._platformConf}get schoolConf(){return this._schoolConf}get userPref(){return this._userPref}applyUserPref(et){var tt,rt;this._userPref=et,this._userPref.position=(rt=(tt=this._userPref.position)!=null?tt:widgets.lookupDefaultPosition(this._platformConf.name))!=null?rt:"left"}}const widgets=new WidgetFramework;transport==null||transport.http;var O$1;(O$1=session==null?void 0:session.session)==null||O$1.user;const x$1=class{constructor(et){m$2(this,"checkHttpResponse",tt=>{if(this.http.latestResponse.status>=300)throw this.http.latestResponse.statusText;return tt}),this.context=et}static register({application:et,resourceType:tt},rt){x$1.registry.set(`${et}:main`,rt),x$1.registry.set(`${et}:${tt}`,rt)}static findService({application:et,resourceType:tt},rt){const nt=x$1.registry.get(`${et}:${tt}`);if(nt===void 0)throw`Service not found: ${et}:${tt}`;return nt(rt)}static findMainService({application:et},tt){const rt=x$1.registry.get(`${et}:main`);if(rt===void 0)throw`Service not found: ${et}`;return rt(tt)}get http(){return this.context.http()}getShareReadUrl(et){return`/${this.getApplication()}/share/json/${et}?search=`}getSaveShareUrl(et){return`/${this.getApplication()}/share/resource/${et}`}gotoPrint(et,tt){window.open(this.getPrintUrl(et,tt),"_blank")}gotoView(et){window.open(this.getViewUrl(et),"_self")}gotoForm(et){window.open(this.getFormUrl(et),"_self")}async publish(et){const tt=new FormData;tt.append("title",et.title),tt.append("cover",et.cover),tt.append("coverName",et.cover.name),tt.append("coverType",et.cover.type),tt.append("teacherAvatar",et.teacherAvatar),tt.append("teacherAvatarName",et.teacherAvatar.name||`teacherAvatar_${et.userId}`),tt.append("teacherAvatarType",et.teacherAvatar.type),tt.append("language",et.language),et.activityType.forEach(nt=>{tt.append("activityType[]",nt)}),et.subjectArea.forEach(nt=>{tt.append("subjectArea[]",nt)}),et.age.forEach(nt=>{tt.append("age[]",nt.toString())}),tt.append("description",et.description),et.keyWords.split(",").forEach(nt=>{tt.append("keyWords[]",nt.trim())}),tt.append("licence",et.licence),tt.append("pdfUri",`${window.location.origin}${this.getPrintUrl(et.resourceEntId)}`),tt.append("application",et.application?et.application:""),tt.append("resourceId",et.resourceId),tt.append("teacherSchool",et.userStructureName);const rt=await this.http.post("/appregistry/library/resource",tt,{headers:{"Content-Type":"multipart/form-data"}});return this.checkHttpResponse(rt)}async createContext(et){const tt=await this.http.get("/explorer/context",{queryParams:this.toQueryParams(et)});return this.checkHttpResponse(tt)}async searchContext(et){const tt=await this.http.get("/explorer/resources",{queryParams:this.toQueryParams(et)});return this.checkHttpResponse(tt)}async createFolder(et){const tt=await this.http.post("/explorer/folders",this.createFolderToBodyParams(et));return this.checkHttpResponse(tt)}async updateFolder(et){const tt=await this.http.put(`/explorer/folders/${et.folderId}`,this.createFolderToBodyParams(et));return this.checkHttpResponse(tt)}async moveToFolder(et){const tt=await this.http.post(`/explorer/folders/${et.folderId}/move`,this.moveToBodyParams(et));return this.checkHttpResponse(tt)}async listSubfolders(et){const tt=await this.http.get(`/explorer/folders/${et}`);return this.checkHttpResponse(tt)}async deleteAll(et){const tt=await this.http.deleteJson("/explorer",et);return this.checkHttpResponse(tt)}async trashAll({resourceType:et,...tt}){const rt=await this.http.putJson("/explorer/trash",tt);return this.checkHttpResponse(rt)}async restoreAll({resourceType:et,...tt}){const rt=await this.http.putJson("/explorer/restore",tt);return this.checkHttpResponse(rt)}async getThumbnailPath(et){if(typeof et>"u")return et;if(typeof et=="string")if(et.startsWith("blob:")){const tt=await fetch(et).then(rt=>rt.blob());return`/workspace/document/${(await this.context.workspace().saveFile(tt,{visibility:"protected",application:this.getApplication()}))._id}`}else return et;else return`/workspace/document/${(await this.context.workspace().saveFile(et,{visibility:"protected",application:this.getApplication()}))._id}`}toQueryParams(et){let tt={application:et.app,start_idx:et.pagination.startIdx,page_size:et.pagination.pageSize,resource_type:et.types[0],trashed:et.trashed};if(et.orders&&Object.entries(et.orders).length){const[[rt,nt]]=Object.entries(et.orders);tt.order_by=`${rt}:${nt}`}return et.filters&&Object.assign(tt,et.filters),typeof et.search=="string"&&(tt.search=et.search),tt}createFolderToBodyParams(et){return{application:et.app,resourceType:et.type,parentId:et.parentId,name:et.name}}moveToBodyParams(et){return{application:et.application,resourceType:this.getResourceType(),resourceIds:et.resourceIds,folderIds:et.folderIds}}};let ResourceService=x$1;m$2(ResourceService,"registry",new Map);class BlogResourceService extends ResourceService{async update(et){const tt=await this.getThumbnailPath(et.thumbnail),rt=await this.http.put(`/blog/${et.entId}`,{trashed:et.trashed,_id:et.entId,title:et.name,thumbnail:tt,description:et.description,visibility:et.public?"PUBLIC":"OWNER",slug:et.public?et.slug:"","publish-type":et["publish-type"]||"RESTRAINT","comment-type":"IMMEDIATE"});return this.checkHttpResponse(rt),{thumbnail:tt,entId:et.entId}}getResourceType(){return RESOURCE.BLOG}getApplication(){return APP.BLOG}getFormUrl(et){return et?`/blog?folderid=${et}#/edit/new`:"/blog#/edit/new"}getViewUrl(et){return`/blog#/view/${et}`}getPrintUrl(et,tt){return`/blog/print/blog#/print/${et}?comments=${tt||!0}`}}ResourceService.register({application:RESOURCE.BLOG,resourceType:RESOURCE.BLOG},_e=>new BlogResourceService(_e));const globalCache={},mutexPromise={};class CacheService{constructor(et){this.context=et}get http(){return this.context.http()}async fromCacheIfPossible(et,tt,rt){if(mutexPromise[et]&&await mutexPromise[et],globalCache[et])return globalCache[et];try{const nt=tt();mutexPromise[et]=nt;const st=await nt;return rt(st)&&(globalCache[et]=st),st}catch(nt){throw console.error(`Failed to retrieve value for: ${et}`,nt),nt}}clearCache(et){if(et)delete globalCache[et];else for(const tt in globalCache)globalCache.hasOwnProperty(tt)&&delete globalCache[tt]}async httpGet(et,tt){return this.fromCacheIfPossible(et,async()=>{const rt=await this.http.get(et,tt),nt={...this.http.latestResponse};return{value:rt,response:nt}},({response:rt})=>!(rt.status<200||rt.status>=300))}async httpGetJson(et,tt){const{response:rt,value:nt}=await this.httpGet(et,tt);if(rt.status<200||rt.status>=300)throw`Bad http status (${rt.status}) for url: ${et}`;return nt}}class ConfService{constructor(et){this.context=et}get http(){return this.context.http()}get cdnDomain(){return configure.Platform.cdnDomain}async getConf(et){const[tt,rt]=await Promise.all([this.getThemeConf(),this.getApplicationsList()]),[nt,st]=await Promise.all([this.getTheme({conf:tt}),this.getWebAppConf({app:et,applications:rt})]);return{applications:rt,conf:tt,currentApp:st,theme:nt}}getCdnUrl(){console.warn("[getCdnUrl] Not implemented yet")}async savePreference(et,tt){this.http.putJson(`/userbook/preference/${et}`,tt)}async getPreference(et){const tt=await this.http.get(`/userbook/preference/${et}`);return JSON.parse(tt.preference)}async getThemeConf(et){return await this.http.getScript("/assets/theme-conf.js",{queryParams:{v:et}},"exports.conf")}async getApplicationsList(){return(await this.http.get("/applications-list")).apps}async getWebAppConf({app:et,applications:tt}){return tt.find(rt=>{if(rt!=null&&rt.prefix)return(rt==null?void 0:rt.prefix.replace("/",""))===et})}async getTheme({version:et,conf:tt}){const rt=await this.http.get("/theme",{queryParams:{_:et}}),nt=rt.themeName,st=tt==null?void 0:tt.overriding.find(ct=>ct.child===nt).skins,ot="/assets/themes/ode-bootstrap",at=tt==null?void 0:tt.overriding.find(ct=>ct.child===nt).bootstrapVersion,ut=`${this.cdnDomain}/assets/themes/${at}`,lt=`${ut}/skins/${rt.skinName}`,dt=(tt==null?void 0:tt.overriding.find(ct=>ct.child===nt).parent)==="panda";return{basePath:`${this.cdnDomain}${rt.skin}../../`,bootstrap:ot,bootstrapPath:ut,bootstrapUrl:lt,bootstrapVersion:at,is1d:dt,logoutCallback:rt.logoutCallback,skin:rt.skin.split("/assets/themes/")[1].split("/")[0],skinName:rt.skinName,skins:st,themeName:rt.themeName,themeUrl:rt.skin}}}class DirectoryService{constructor(et){this.odeServices=et}get http(){return this.odeServices.http()}get cache(){return this.odeServices.cache()}getAvatarUrl(et,tt,rt="100x100"){return tt==="user"?`/userbook/avatar/${et}?thumbnail=${rt}`:"/assets/img/illustrations/group-avatar.svg"}getDirectoryUrl(et,tt){return tt==="user"?`/userbook/annuaire#/${et}`:`/userbook/annuaire#/group-view/${et}`}async getBookMarks(){return(await this.cache.httpGetJson("/directory/sharebookmark/all")).map(({id:et,name:tt})=>({id:et,displayName:tt,members:[]}))}async getBookMarkById(et){const{groups:tt,id:rt,name:nt,users:st}=await this.http.get(`/directory/sharebookmark/${et}`);return{id:rt,displayName:nt,groups:tt.map(({name:ot,id:at})=>({displayName:ot,id:at})),users:st.map(({displayName:ot,id:at,profile:ut})=>({profile:ut,displayName:ot,firstName:"",lastName:"",login:"",id:at}))}}async saveBookmarks(et,{bookmarks:tt,groups:rt,users:nt}){this.cache.clearCache("/directory/sharebookmark/all");const st=nt.map(ct=>typeof ct=="string"?ct:ct.id),ot=rt.map(ct=>typeof ct=="string"?ct:ct.id),at=tt.map(async ct=>{if(typeof ct=="string"){const{displayName:ft,groups:ht,id:mt,users:vt}=await this.getBookMarkById(ct),wt=vt.map(yt=>yt.id),gt=ht.map(yt=>yt.id);return{displayName:ft,id:mt,members:[...gt,...wt]}}else return Promise.resolve(ct)}),ut=(await Promise.all(at)).map(ct=>ct.members).reduce((ct,ft)=>[...ct,...ft],[]),lt={name:et,members:[...st,...ot,...ut]},{id:dt}=await this.http.postJson("/directory/sharebookmark",lt);return{id:dt,displayName:et,members:lt.members}}}const loadedScripts={};class HttpService{constructor(et,tt){m$2(this,"axios"),m$2(this,"_latestResponse"),this.context=et,this.axios=axios.create(tt)}setCdn(et){et&&XMLHttpRequest&&!XMLHttpRequest.prototype.cdnUrl&&(XMLHttpRequest.prototype.cdnUrl=et,XMLHttpRequest.prototype.baseOpen=XMLHttpRequest.prototype.open,XMLHttpRequest.prototype.open=function(){const tt=arguments[1];return tt.startsWith("/infra/public")&&(arguments[1]=et+tt),/^\/([^\/]*)\/public/.test(tt)&&(arguments[1]=et+tt),tt.startsWith("/assets")&&(arguments[1]=et+tt),tt=="/conf/public"&&(arguments[1]=tt),tt.startsWith("http")&&(arguments[1]=tt),this.baseOpen.apply(this,arguments)})}toAxiosConfig(et){if(et){const tt=Object.assign({},this.axios.defaults);return et.headers&&(tt.headers=Object.assign({},this.axios.defaults.headers),Object.assign(tt.headers,et.headers)),et.responseType&&(tt.responseType=et.responseType),et.queryParams&&(tt.params=Object.assign({},et.queryParams)),tt}else return this.axios.defaults}toCdnUrl(et){const tt=this.context.conf().getCdnUrl()||"";if(tt.length>0&&et!=="/conf/public"){const rt=""+et;(rt.startsWith("/infra/public")||rt.startsWith("/assets")||/^\/([^\/]*)\/public/.test(rt))&&(et=tt+rt)}return et}mapAxiosError(et,tt){return console.error("[HttpService]",et),et.response?this._latestResponse=et.response:et.request?this._latestResponse={status:408,statusText:ERROR_CODE.TIME_OUT}:this._latestResponse={status:500,statusText:ERROR_CODE.UNKNOWN},!tt||tt.disableNotifications,this._latestResponse}mapAxiosResponse(et,tt){return this._latestResponse=et,et.data}get latestResponse(){return this._latestResponse}async get(et,tt){try{const rt=await this.axios.get(this.toCdnUrl(et),this.toAxiosConfig(tt));return this.mapAxiosResponse(rt,tt)}catch(rt){return this.mapAxiosError(rt,tt)}}async post(et,tt,rt){try{const nt=await this.axios.post(et,tt,this.toAxiosConfig(rt));return this.mapAxiosResponse(nt,rt)}catch(nt){return this.mapAxiosError(nt,rt)}}async postFile(et,tt,rt){const nt=this.toAxiosConfig(rt);nt.headers&&nt.headers["Content-Type"]&&delete nt.headers["Content-Type"];try{const st=await this.axios.post(et,tt,{...nt,headers:{"Content-Type":"multipart/form-data"}});return this.mapAxiosResponse(st,rt)}catch(st){return this.mapAxiosError(st,rt)}}async postJson(et,tt,rt){const nt=this.toAxiosConfig();nt.headers&&(nt.headers["Content-Type"]="application/json");try{const st=await this.axios.post(et,tt,this.toAxiosConfig(rt));return this.mapAxiosResponse(st,rt)}catch(st){return this.mapAxiosError(st,rt)}}async put(et,tt,rt){try{const nt=await this.axios.put(et,tt,this.toAxiosConfig(rt));return this.mapAxiosResponse(nt,rt)}catch(nt){return this.mapAxiosError(nt,rt)}}async putFile(et,tt,rt){try{const nt=this.toAxiosConfig(rt);nt.headers&&nt.headers["Content-Type"]&&delete nt.headers["Content-Type"];const st=await this.axios.put(et,tt,{...nt,headers:{"Content-Type":"multipart/form-data"}});return this.mapAxiosResponse(st,rt)}catch(nt){return this.mapAxiosError(nt,rt)}}async putJson(et,tt,rt){const nt=this.toAxiosConfig(rt);nt.headers&&(nt.headers["Content-Type"]="application/json");try{const st=await this.axios.put(et,tt,nt);return this.mapAxiosResponse(st,rt)}catch(st){return this.mapAxiosError(st,rt)}}async delete(et,tt){try{const rt=await this.axios.delete(et,this.toAxiosConfig(tt));return this.mapAxiosResponse(rt,tt)}catch(rt){return this.mapAxiosError(rt,tt)}}async deleteJson(et,tt){try{const rt=await this.axios.delete(et,{data:tt});return this.mapAxiosResponse(rt)}catch(rt){return this.mapAxiosError(rt)}}getScript(et,tt,rt){const nt=rt??"exports",st=this.toAxiosConfig(tt);return st.headers&&(st.headers.Accept="application/javascript"),this.axios.get(this.toCdnUrl(et),st).then(ot=>this.mapAxiosResponse(ot,tt)).then(ot=>{try{const at=`"use strict";var ${nt.split(".")[0]}={};${ot};return ${nt};`;return Function(at)()}catch{return ot}}).catch(ot=>{throw this.mapAxiosError(ot,tt),ot})}loadScript(et,tt){return loadedScripts[et]?Promise.resolve():this.getScript(et,tt).then(rt=>{loadedScripts[et]=!0})}}class RightService{constructor(et){this.context=et}get session(){return this.context.session()}parseResourceRight(et){const tt=et.split(":");if(tt.length===2){if(tt[0]==="creator")return{id:tt[1],right:"creator",type:"creator"}}else return tt.length===3?{id:tt[1],right:tt[2],type:tt[0]}:void 0}parseResourceRights(et){return et.map(tt=>this.parseResourceRight(tt)).filter(tt=>tt!==void 0)}hasResourceRight({id:et,groupIds:tt},rt,nt){const st=nt.map(ot=>typeof ot=="string"?this.parseResourceRight(ot):ot).filter(ot=>ot!==void 0);for(const ot of st)if(ot.id===et&&ot.type==="creator"||ot.id===et&&ot.type==="user"&&ot.right===rt||tt.includes(ot.id)&&ot.type==="group"&&ot.right===rt)return!0;return!1}async sessionHasResourceRight(et,tt){try{const rt=await this.session.getUser();return!!rt&&this.hasResourceRight({groupIds:rt.groupsIds,id:rt.userId},et,tt)}catch(rt){return console.error(rt),!1}}async sessionHasAtLeastOneResourceRight(et,tt){for(const rt of et)if(await this.sessionHasResourceRight(rt,tt))return!0;return!1}async sessionHasResourceRightForEachList(et,tt){let rt=0;for(const nt of tt)await this.sessionHasResourceRight(et,nt)&&rt++;return rt===tt.length}async sessionHasAtLeastOneResourceRightForEachList(et,tt){for(const rt of et){let nt=0;for(const st of tt)await this.sessionHasResourceRight(rt,st)&&nt++;if(nt===tt.length)return!0}return!1}hasWorkflowRight(et,tt){return tt.findIndex(rt=>rt===et)!==-1}async sessionHasWorkflowRight(et){try{const tt=await this.session.getUser();return!!tt&&this.hasWorkflowRight(et,tt.authorizedActions.map(rt=>rt.name))}catch(tt){return console.error(tt),!1}}async sessionHasWorkflowRights(et){const tt={};try{const rt=await this.session.getUser();for(const nt of et)tt[nt]=!!rt&&this.hasWorkflowRight(nt,rt.authorizedActions.map(st=>st.name))}catch(rt){console.error(rt);for(const nt of et)tt[nt]=!1}return tt}}class SessionService{constructor(et){this.context=et}get http(){return this.context.http()}get cache(){return this.context.cache()}onLogout(){this.cache.clearCache()}onRefreshSession(){this.cache.clearCache()}async getSession(){const et=await this.getUser(),[tt,rt,nt,st,ot]=await Promise.all([this.getCurrentLanguage(et),this.latestQuotaAndUsage(et),this.loadDescription(et),this.getUserProfile(),this.getBookmarks(et)]);return{user:et,quotaAndUsage:rt,currentLanguage:tt,userDescription:nt,userProfile:st,bookmarkedApps:ot}}login(et,tt,rt,nt){const st=new FormData;return st.append("email",et),st.append("password",tt),typeof rt<"u"&&st.append("rememberMe",""+rt),typeof nt<"u"&&st.append("secureLocation",""+nt),this.http.post("/auth/login",st,{headers:{"content-type":"application/x-www-form-urlencoded"}}).finally(()=>{switch(this.http.latestResponse.status){case 200:throw ERROR_CODE.MALFORMED_DATA}})}logout(){return this.http.get("/auth/logout").finally(()=>{})}async latestQuotaAndUsage(et){try{return await this.http.get(`/workspace/quota/user/${et==null?void 0:et.userId}`)}catch(tt){return console.error(tt),{quota:0,storage:0}}}async getCurrentLanguage(et){const tt=(et==null?void 0:et.sessionMetadata)&&(et==null?void 0:et.sessionMetadata.userId);try{let rt;return tt?rt=await this.loadUserLanguage():rt=await this.loadDefaultLanguage(),rt}catch(rt){console.error(rt)}}async loadUserLanguage(){try{const et=await this.http.get("/userbook/preference/language");return JSON.parse(et.preference)["default-domain"]}catch{return await this.loadDefaultLanguage()}}async loadDefaultLanguage(){return(await this.cache.httpGetJson("/locale")).locale}async getUser(){const{response:et,value:tt}=await this.cache.httpGet("/auth/oauth2/userinfo");if(et.status<200||et.status>=300)throw ERROR_CODE.NOT_LOGGED_IN;return tt}hasWorkflow({workflowName:et,user:tt}){return et===void 0||(tt==null?void 0:tt.authorizedActions.findIndex(rt=>rt.name===et))!==-1}async loadDescription(et){try{const[tt,rt]=await Promise.all([this.getUserProfile({requestName:"refreshAvatar"}),this.http.get("/directory/userbook/"+(et==null?void 0:et.userId))]);return{...tt,...rt}}catch(tt){return console.error(tt),{}}}async getBookmarks(et){const tt=await this.http.get("/userbook/preference/apps");tt.preference||(tt.preference=null);const rt=JSON.parse(tt.preference);let nt;nt=rt,nt||(nt={bookmarks:[],applications:[]});let st=[];return nt.bookmarks.forEach((ot,at)=>{const ut=et==null?void 0:et.apps.find(lt=>lt.name===ot);if(ut){let lt=Object.assign({},ut);st.push(lt)}}),st}async getUserProfile(et){const{response:tt,value:rt}=await this.cache.httpGet("/userbook/api/person",et);if(tt.status<200||tt.status>=300)throw ERROR_CODE.NOT_LOGGED_IN;return rt.result[0].type}async isAdml(){const et=await this.getUser();return(et==null?void 0:et.functions.ADMIN_LOCAL)!==void 0}}class StringUtils{static removeAccents(et){for(var tt=0;tt<defaultDiacriticsRemovalMap$1.length;tt++)et=et.replace(defaultDiacriticsRemovalMap$1[tt].letters,defaultDiacriticsRemovalMap$1[tt].base);return et}}class ShareService{constructor(et){this.context=et}get directory(){return this.context.directory()}get http(){return this.context.http()}get cache(){return this.context.cache()}async searchShareSubjects(et,tt,rt){const nt=StringUtils.removeAccents(rt).toLowerCase(),st=await this.cache.httpGetJson(`/${et}/share/json/${tt}?search=${rt}`),ot=st.users.visibles.filter(({username:ut,firstName:lt,lastName:dt,login:ct})=>{const ft=StringUtils.removeAccents(dt||"").toLowerCase(),ht=StringUtils.removeAccents(lt||"").toLowerCase(),mt=StringUtils.removeAccents(ut||"").toLowerCase(),vt=StringUtils.removeAccents(ct||"").toLowerCase();return mt.includes(nt)||ht.includes(nt)||ft.includes(nt)||vt.includes(nt)}).map(ut=>({avatarUrl:this.directory.getAvatarUrl(ut.id,"user"),directoryUrl:this.directory.getDirectoryUrl(ut.id,"user"),displayName:ut.username,id:ut.id,profile:ut.profile,type:"user"})),at=st.groups.visibles.filter(({name:ut})=>StringUtils.removeAccents(ut||"").toLowerCase().includes(nt)).map(ut=>({avatarUrl:this.directory.getAvatarUrl(ut.id,"group"),directoryUrl:this.directory.getDirectoryUrl(ut.id,"group"),displayName:ut.name,id:ut.id,type:"group"}));return[...(await this.directory.getBookMarks()).filter(({displayName:ut})=>StringUtils.removeAccents(ut||"").toLowerCase().includes(nt)).map(ut=>({avatarUrl:"",directoryUrl:"",profile:"",displayName:ut.displayName,id:ut.id,type:"sharebookmark"})),...ot,...at]}async getShareMapping(et){const tt=await this.cache.httpGetJson(`/${et}/rights/sharing`);for(const rt of Object.keys(tt))if(rt.includes(".")){const nt=rt.split(".")[1],st=tt[rt];delete tt[rt],tt[nt]=st}return tt}getActionsAvailableFor({id:et,type:tt},rt,nt){const st=(tt==="user"?rt.users.checked[et]:rt.groups.checked[et])||[],ot=Object.keys(nt),at=[];for(const ut of ot)nt[ut].filter(lt=>st.includes(lt)).length>0&&at.push(ut);return at}async getRightsForResource(et,tt){const rt=await this.directory.getBookMarks(),nt=this.context.resource(et,et).getShareReadUrl(tt),st=await this.cache.httpGetJson(nt),ot=await this.getShareMapping(et),at=await this.cache.httpGetJson("/infra/public/json/sharing-rights.json"),ut=Object.keys(st.users.checked).map(ht=>st.users.visibles.find(mt=>mt.id===ht)).filter(ht=>ht!==void 0).map(ht=>{const mt=this.getActionsAvailableFor({id:ht.id,type:"user"},st,ot);return{id:ht.id,type:"user",displayName:ht.username,profile:ht.profile,avatarUrl:this.directory.getAvatarUrl(ht.id,"user"),directoryUrl:this.directory.getDirectoryUrl(ht.id,"user"),actions:mt.map(vt=>{const wt=at[vt];return{displayName:vt,id:vt,priority:wt.priority}})}}).sort((ht,mt)=>(ht.displayName||"").localeCompare(mt.displayName)),lt=Object.keys(st.groups.checked).map(ht=>st.groups.visibles.find(mt=>mt.id===ht)).filter(ht=>ht!==void 0).map(ht=>{const mt=this.getActionsAvailableFor({id:ht.id,type:"group"},st,ot);return{id:ht.id,type:"group",displayName:ht.name,profile:void 0,avatarUrl:this.directory.getAvatarUrl(ht.id,"group"),directoryUrl:this.directory.getDirectoryUrl(ht.id,"group"),actions:mt.map(vt=>{const wt=at[vt];return{displayName:vt,id:vt,priority:wt.priority}})}}).sort((ht,mt)=>(ht.displayName||"").localeCompare(mt.displayName)),dt=[...ut,...lt],ct=st.groups.visibles.map(({groupDisplayName:ht,id:mt,name:vt})=>({displayName:ht||vt,id:mt})),ft=st.users.visibles.map(({id:ht,profile:mt,username:vt,firstName:wt,lastName:gt,login:yt})=>({displayName:vt,firstName:wt,lastName:gt,login:yt,profile:mt,id:ht}));return{rights:dt,visibleBookmarks:rt,visibleGroups:ct,visibleUsers:ft}}async saveRights(et,tt,rt){const nt=await this.getShareMapping(et),st={bookmarks:{},groups:{},users:{}};for(const ut of rt){const lt=ut.actions.map(ct=>nt[ct.id]).reduce((ct,ft)=>[...ct,...ft],[]),dt=[...new Set(lt)];dt.length>0&&(ut.type==="user"?st.users[ut.id]=dt:ut.type==="group"?st.groups[ut.id]=dt:st.bookmarks[ut.id]=dt)}const ot=this.context.resource(et,et),at=ot.getSaveShareUrl(tt);return this.cache.clearCache(ot.getShareReadUrl(tt)),await this.http.putJson(at,st)}async getActionsForApp(et){const tt=await this.cache.httpGetJson("/infra/public/json/sharing-rights.json"),rt=await this.getShareMapping(et);return Object.keys(tt).map(nt=>{const st=tt[nt];return{displayName:nt,id:nt,priority:st.priority,requires:st.requires}}).filter(nt=>{var st;return((st=rt[nt.id])==null?void 0:st.length)>0}).sort((nt,st)=>nt.priority-st.priority)}}const S$1=class{constructor(){m$2(this,"wordExtensions",new Set),m$2(this,"excelExtensions",new Set),m$2(this,"pptExtensions",new Set),m$2(this,"fileExtensionMap",new Map),m$2(this,"csvContentType",new Set),m$2(this,"csvExtensions",new Set),m$2(this,"txtExtensions",new Set),m$2(this,"PDF","application/pdf"),m$2(this,"OCTET_STREAM","application/octet-stream"),this.txtExtensions.add("txt"),this.wordExtensions.add("doc"),this.wordExtensions.add("dot"),this.wordExtensions.add("docx"),this.wordExtensions.add("dotx"),this.wordExtensions.add("docm"),this.wordExtensions.add("dotm"),this.wordExtensions.add("odt"),this.wordExtensions.add("ott"),this.wordExtensions.add("oth"),this.wordExtensions.add("odm"),this.excelExtensions.add("xls"),this.excelExtensions.add("xlt"),this.excelExtensions.add("xla"),this.excelExtensions.add("xlsx"),this.excelExtensions.add("xltx"),this.excelExtensions.add("xlsm"),this.excelExtensions.add("xltm"),this.excelExtensions.add("xlam"),this.excelExtensions.add("xlsb"),this.excelExtensions.add("ods"),this.excelExtensions.add("ots"),this.pptExtensions.add("ppt"),this.pptExtensions.add("pot"),this.pptExtensions.add("pps"),this.pptExtensions.add("ppa"),this.pptExtensions.add("pptx"),this.pptExtensions.add("potx"),this.pptExtensions.add("ppsx"),this.pptExtensions.add("ppam"),this.pptExtensions.add("pptm"),this.pptExtensions.add("potm"),this.pptExtensions.add("ppsm"),this.pptExtensions.add("odp"),this.pptExtensions.add("otp"),this.csvExtensions.add("csv"),this.fileExtensionMap.set("doc","application/msword"),this.fileExtensionMap.set("dot","application/msword"),this.fileExtensionMap.set("docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"),this.fileExtensionMap.set("dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"),this.fileExtensionMap.set("docm","application/vnd.ms-word.document.macroEnabled.12"),this.fileExtensionMap.set("dotm","application/vnd.ms-word.template.macroEnabled.12"),this.fileExtensionMap.set("xls","application/vnd.ms-excel"),this.fileExtensionMap.set("xlt","application/vnd.ms-excel"),this.fileExtensionMap.set("xla","application/vnd.ms-excel"),this.fileExtensionMap.set("xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),this.fileExtensionMap.set("xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"),this.fileExtensionMap.set("xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"),this.fileExtensionMap.set("xltm","application/vnd.ms-excel.template.macroEnabled.12"),this.fileExtensionMap.set("xlam","application/vnd.ms-excel.addin.macroEnabled.12"),this.fileExtensionMap.set("xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"),this.fileExtensionMap.set("ppt","application/vnd.ms-powerpoint"),this.fileExtensionMap.set("pot","application/vnd.ms-powerpoint"),this.fileExtensionMap.set("pps","application/vnd.ms-powerpoint"),this.fileExtensionMap.set("ppa","application/vnd.ms-powerpoint"),this.fileExtensionMap.set("pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"),this.fileExtensionMap.set("potx","application/vnd.openxmlformats-officedocument.presentationml.template"),this.fileExtensionMap.set("ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"),this.fileExtensionMap.set("ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"),this.fileExtensionMap.set("pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"),this.fileExtensionMap.set("potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"),this.fileExtensionMap.set("ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"),this.fileExtensionMap.set("odt","application/vnd.oasis.opendocument.text"),this.fileExtensionMap.set("ott","application/vnd.oasis.opendocument.text-template"),this.fileExtensionMap.set("oth","application/vnd.oasis.opendocument.text-web"),this.fileExtensionMap.set("odm","application/vnd.oasis.opendocument.text-master"),this.fileExtensionMap.set("odg","application/vnd.oasis.opendocument.graphics"),this.fileExtensionMap.set("otg","application/vnd.oasis.opendocument.graphics-template"),this.fileExtensionMap.set("odp","application/vnd.oasis.opendocument.presentation"),this.fileExtensionMap.set("otp","application/vnd.oasis.opendocument.presentation-template"),this.fileExtensionMap.set("ods","application/vnd.oasis.opendocument.spreadsheet"),this.fileExtensionMap.set("ots","application/vnd.oasis.opendocument.spreadsheet-template"),this.fileExtensionMap.set("odc","application/vnd.oasis.opendocument.chart"),this.fileExtensionMap.set("odf","application/vnd.oasis.opendocument.formula"),this.fileExtensionMap.set("odb","application/vnd.oasis.opendocument.database"),this.fileExtensionMap.set("odi","application/vnd.oasis.opendocument.image"),this.fileExtensionMap.set("oxt","application/vnd.openofficeorg.extension"),this.fileExtensionMap.set("txt","text/plain"),this.csvContentType.add("text/comma-separated-values"),this.csvContentType.add("text/csv"),this.csvContentType.add("application/csv")}getContentTypeForExtension(et){if(this.fileExtensionMap.has(et))return this.fileExtensionMap.get(et)}getExtensionForContentType(et){for(const tt of Array.from(this.fileExtensionMap.keys()))if((this.fileExtensionMap.get(tt)||"").toLowerCase()==(et||"").toLowerCase())return tt;return null}isWordLike(et,tt){const rt=this.getExtensionForContentType(et);return rt?this.wordExtensions.has(rt):et==this.OCTET_STREAM&&tt?this.wordExtensions.has(tt):!1}isExcelLike(et,tt){const rt=this.getExtensionForContentType(et);return rt?this.excelExtensions.has(rt):et==this.OCTET_STREAM&&tt?this.excelExtensions.has(tt):!1}isCsvLike(et,tt){return this.csvContentType.has(et)?!0:et==this.OCTET_STREAM&&tt?this.csvExtensions.has(tt):!1}isPowerpointLike(et,tt){const rt=this.getExtensionForContentType(et);return rt?this.pptExtensions.has(rt):et==this.OCTET_STREAM&&tt?this.pptExtensions.has(tt):!1}isTxtLike(et,tt){const rt=this.getExtensionForContentType(et);return rt?this.txtExtensions.has(rt):et==this.OCTET_STREAM&&tt?this.txtExtensions.has(tt):!1}};let MimeTypeUtils=S$1;m$2(MimeTypeUtils,"INSTANCE",new S$1);class FileTypeUtils{static registerContentTypeToFileType(et){this.fileTypes.push(et)}static getFileType(et,tt=!1,rt){if(rt&&(rt=rt.trim()),!et)return"unknown";this.fileTypes||console.warn("[Element.role] should not have emptyRoles",this);for(let st of this.fileTypes||[]){const ot=st(et,tt);if(ot)return ot}const nt={csv:function(st){return!!MimeTypeUtils.INSTANCE.isCsvLike(st,rt)},doc:function(st){return MimeTypeUtils.INSTANCE.isWordLike(st,rt)?!0:st.indexOf("document")!==-1&&st.indexOf("wordprocessing")!==-1},xls:function(st){return MimeTypeUtils.INSTANCE.isExcelLike(st,rt)?!0:st.indexOf("document")!==-1&&st.indexOf("spreadsheet")!==-1||st.indexOf("ms-excel")!==-1},img:function(st){return st.indexOf("image")!==-1},pdf:function(st){return st.indexOf("pdf")!==-1||st==="application/x-download"},ppt:function(st){return MimeTypeUtils.INSTANCE.isPowerpointLike(st,rt)?!0:st.indexOf("document")!==-1&&st.indexOf("presentation")!==-1||st.indexOf("powerpoint")!==-1},txt:function(st){return MimeTypeUtils.INSTANCE.isTxtLike(st,rt)},video:function(st){return st.indexOf("video")!==-1},audio:function(st){return st.indexOf("audio")!==-1},zip:function(st){return st.indexOf("zip")!==-1||st.indexOf("rar")!==-1||st.indexOf("tar")!==-1||st.indexOf("7z")!==-1}};for(let st in nt)if(nt[st](et))return st;return"unknown"}}m$2(FileTypeUtils,"fileTypes",[]);class WorkspaceService{constructor(et){this.context=et}get http(){return this.context.http()}async saveFile(et,tt){const rt=et.name||"",nt=rt.split("."),st=et.type||"application/octet-stream",ot=nt.length>1?nt[nt.length-1]:"",at={"content-type":st,filename:rt,size:et.size,extension:ot,role:FileTypeUtils.getFileType(st,!1,ot)},ut=rt.replace("."+at.extension,""),lt=at.extension?ut+"."+at.extension:ut,dt=new FormData;dt.append("file",et,lt);const ct=[];return((tt==null?void 0:tt.visibility)==="public"||(tt==null?void 0:tt.visibility)==="protected")&&ct.push(`${tt.visibility}=true`),tt!=null&&tt.application&&ct.push(`application=${tt.application}`),at.role==="img"&&ct.push("quality=1"),tt!=null&&tt.parentId&&ct.push(`parentId=${tt.parentId}`),await this.http.postFile(`/workspace/document?${ct.join("&")}`,dt)}}const bundle={},promises={},defaultDiacriticsRemovalMap=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}];class IdiomService{constructor(et){this.context=et}get http(){return this.context.http()}async getIdiom(et,tt){await Promise.all([this.addBundlePromise(et,"/i18n"),this.addBundlePromise(et,`/${tt}/i18n`)])}translate(et,tt){et=et??"";let rt=bundle[et]===void 0?et:bundle[et];if(tt&&typeof tt=="object")for(let nt in tt)typeof tt[nt]<"u"&&(rt=rt.replace(new RegExp("\\${"+nt+"}","g"),""+tt[nt]));return rt}addBundlePromise(et,tt){return this.loadBundlePromise(et,tt)}addBundle(et,tt,rt){this.loadBundle(et,tt,rt)}loadBundlePromise(et,tt){return this.loadBundle(et,tt),promises[tt]}loadBundle(et,tt,rt){const nt=promises[tt];if(nt)rt&&nt.then(rt).catch(rt);else{const st=new Promisified;promises[tt]=st.promise;const ot={};et&&(ot["Accept-Language"]=et),this.http.get(tt,{headers:ot}).then(at=>{Object.assign(bundle,at),typeof rt=="function"&&rt(),st.resolve()}).catch(at=>{typeof rt=="function"&&rt(),st.reject()})}}addTranslations(et,tt){notify.onLangReady().promise.then(rt=>{this.loadBundle(rt,et+"/"+rt+".json",tt)})}addAllTranslations(et){return et&&et.length>0?notify.onLangReady().promise.then(tt=>Promise.all(et.map(rt=>this.loadBundlePromise(tt,rt+"/"+tt+".json")))).then(()=>{}):Promise.reject()}addKeys(et){for(var tt in et)typeof bundle[tt]!="string"&&(bundle[tt]=et[tt])}removeAccents(et){for(var tt=0;tt<defaultDiacriticsRemovalMap.length;tt++)et=et.replace(defaultDiacriticsRemovalMap[tt].letters,defaultDiacriticsRemovalMap[tt].base);return et}}let ATTag;class AnalyticsService{constructor(_e){this.context=_e}get http(){return this.context.http()}get session(){return this.context.session()}async trackPageLoad(_e,et){const[tt]=await Promise.all([this.getXitiConfig(et.name.toLowerCase()),this.loadXitiScript()]);if(!tt||!ATInternet)return;let rt=tt.LIBELLE_SERVICE.default||null;for(let nt in tt.LIBELLE_SERVICE)if(nt!=="default"&&_e.indexOf(nt)>=0){rt=tt.LIBELLE_SERVICE[nt];break}ATTag=new ATInternet.Tracker.Tag({site:tt.STRUCT_ID}),ATTag.setProps({SERVICE:rt,TYPE:tt.TYPE,OUTIL:tt.OUTIL,UAI:tt.STRUCT_UAI,PROJET:tt.PROJET,EXPLOITANT:tt.EXPLOITANT,PLATEFORME:tt.PLATFORME,PROFIL:tt.PROFILE},!0),ATTag.identifiedVisitor.set({id:tt.ID_PERSO,category:tt.PROFILE}),ATTag.page.set({name:(et==null?void 0:et.prefix)==="userbook"?"directory":et==null?void 0:et.prefix,chapter1:"",chapter2:"",chapter3:"",level2:tt.STRUCT_UAI}),ATTag.dispatch()}async getXitiConfig(_e){const[et,tt]=await Promise.all([this.http.get("/analyticsConf"),this.http.get("/xiti/config")]);if(!(et!=null&&et.type))throw ERROR_CODE.MALFORMED_DATA;return tt!=null&&tt.active&&(et.xiti=await this.getXitiTrackingParams(tt,_e)),et.xiti}async loadXitiScript(){if(typeof ATInternet>"u"){const scriptPath="/xiti/public/js/lib/smarttag_ENT.js",response=await this.http.get(scriptPath,{headers:{Accept:"application/javascript"}});if(this.http.latestResponse.status!=200)throw"Error while loading XiTi script";eval(response)}}async getXitiTrackingParams(_e,et){var tt;if(!_e.structureMap||!et)return;const rt=await this.session.getUser(),nt=await this.session.getUserProfile();let st;if(!(rt!=null&&rt.structures))return;for(let dt of rt.structures){const ct=_e.structureMap[dt];if(ct&&ct.collectiviteId&&ct.UAI){st=ct;break}}if(!st||!st.active)return;const ot=await configure.Platform.apps.getPublicConf(et);if(!ot)return;const at=ot.xiti;if(!at||!at.LIBELLE_SERVICE||!st.UAI)return;function ut(dt){let ct="";for(let ft=0;ft<dt.length;ft++)ct+=dt.charCodeAt(ft);return ct}const lt={Student:"ELEVE",Teacher:"ENSEIGNANT",Relative:"PARENT",Personnel:"ADMIN_VIE_SCOL_TECH",Guest:"AUTRE"};return{LIBELLE_SERVICE:at.LIBELLE_SERVICE,TYPE:at.OUTIL?"TIERS":"NATIF",OUTIL:at.OUTIL?at.OUTIL:"",STRUCT_ID:st.collectiviteId,STRUCT_UAI:st.UAI,PROJET:st.projetId?st.projetId:_e.ID_PROJET,EXPLOITANT:_e.ID_EXPLOITANT,PLATFORME:st.plateformeId?st.plateformeId:_e.ID_PLATEFORME,ID_PERSO:ut(rt.userId),PROFILE:nt&&nt.length>0&&(tt=lt[nt[0]])!=null?tt:""}}}class OdeServices{constructor(){m$2(this,"_analytics"),m$2(this,"_cache"),m$2(this,"_conf"),m$2(this,"_directory"),m$2(this,"_http"),m$2(this,"_idiom"),m$2(this,"_rights"),m$2(this,"_session"),m$2(this,"_share"),m$2(this,"_workspace"),this._analytics=new AnalyticsService(this),this._cache=new CacheService(this),this._conf=new ConfService(this),this._directory=new DirectoryService(this),this._http=new HttpService(this),this._idiom=new IdiomService(this),this._rights=new RightService(this),this._session=new SessionService(this),this._share=new ShareService(this),this._workspace=new WorkspaceService(this)}analytics(){return this._analytics}cache(){return this._cache}conf(){return this._conf}directory(){return this._directory}http(){return this._http}idiom(){return this._idiom}resource(et,tt){return tt?ResourceService.findService({application:et,resourceType:tt},this):ResourceService.findMainService({application:et},this)}rights(){return this._rights}session(){return this._session}share(){return this._share}workspace(){return this._workspace}}const odeServices=new OdeServices;function useSession(){return useQuery({queryKey:["session"],queryFn:async()=>await odeServices.session().getSession(),suspense:!0})}function useConf({appCode:_e}){return useQuery({queryKey:["conf"],queryFn:async()=>await odeServices.conf().getConf(_e),suspense:!0})}const OdeClientContext=reactExports.createContext(null);function OdeClientProvider({children:_e,params:et}){const tt=et.app,rt=useSession(),nt=useConf({appCode:tt}),st=(nt==null?void 0:nt.isSuccess)&&(rt==null?void 0:rt.isSuccess);reactExports.useEffect(()=>{var lt,dt,ct,ft,ht,mt,vt,wt,gt,yt;const at=document.getElementById("theme"),ut=document.getElementById("favicon");at.href=`${(dt=(lt=nt==null?void 0:nt.data)==null?void 0:lt.theme)==null?void 0:dt.bootstrapUrl}/theme.css`,ut.href=`${(ft=(ct=nt==null?void 0:nt.data)==null?void 0:ct.theme)==null?void 0:ft.basePath}/img/illustrations/favicon.ico`,[{data:"data-skin",value:(mt=(ht=nt==null?void 0:nt.data)==null?void 0:ht.theme)==null?void 0:mt.skinName},{data:"data-theme",value:(wt=(vt=nt==null?void 0:nt.data)==null?void 0:vt.theme)==null?void 0:wt.themeName},{data:"data-bootstrap",value:(yt=(gt=nt==null?void 0:nt.data)==null?void 0:gt.theme)==null?void 0:yt.bootstrapVersion.split("-").at(-1)}].forEach(xt=>{var St;return(St=document.querySelector("html"))==null?void 0:St.setAttribute(xt.data,xt.value)})},[nt==null?void 0:nt.data]),reactExports.useEffect(()=>{var at,ut;(ut=document.querySelector("html"))==null||ut.setAttribute("lang",((at=rt==null?void 0:rt.data)==null?void 0:at.currentLanguage)||"fr")},[rt==null?void 0:rt.data]);const ot=reactExports.useMemo(()=>{var at,ut,lt,dt,ct,ft,ht;return{appCode:tt,applications:(at=nt==null?void 0:nt.data)==null?void 0:at.applications,confQuery:nt,currentApp:(ut=nt==null?void 0:nt.data)==null?void 0:ut.currentApp,currentLanguage:(lt=rt==null?void 0:rt.data)==null?void 0:lt.currentLanguage,init:st,sessionQuery:rt,theme:(dt=nt==null?void 0:nt.data)==null?void 0:dt.theme,user:(ct=rt==null?void 0:rt.data)==null?void 0:ct.user,userDescription:(ft=rt==null?void 0:rt.data)==null?void 0:ft.userDescription,userProfile:(ht=rt==null?void 0:rt.data)==null?void 0:ht.userProfile}},[tt,nt,st,rt]);return jsxRuntimeExports.jsx(OdeClientContext.Provider,{value:ot,children:_e})}function useOdeClient(){const _e=reactExports.useContext(OdeClientContext);if(!_e)throw new Error("Cannot be used outside of OdeClientProvider");return _e}function useBookmark(){var tt;const{sessionQuery:_e}=useOdeClient(),et=new Set;return(tt=_e==null?void 0:_e.data)==null?void 0:tt.bookmarkedApps.filter(rt=>{const nt=et.has(rt.displayName);return et.add(rt.displayName),!nt})}function useTheme(){const{theme:_e}=useOdeClient();return{theme:_e}}function useUser(){const{user:_e,userDescription:et,userProfile:tt}=useOdeClient(),{theme:rt}=useTheme();function nt(){let st=et==null?void 0:et.picture;return(!st||st==="no-avatar.jpg"||st==="no-avatar.svg")&&(st=`${rt==null?void 0:rt.basePath}/img/illustrations/no-avatar.svg`),st}return{user:{..._e,type:tt},avatar:nt(),userDescription:et}}function useHasWorkflow(){const{user:_e}=useUser();return{workflows:{conversation:{view:odeServices.session().hasWorkflow({workflowName:"org.entcore.conversation.controllers.ConversationController|view",user:_e})},community:{view:odeServices.session().hasWorkflow({workflowName:"net.atos.entng.community.controllers.CommunityController|view",user:_e})},search:{view:odeServices.session().hasWorkflow({workflowName:"fr.openent.searchengine.controllers.SearchEngineController|view",user:_e})},zimbra:{view:odeServices.session().hasWorkflow({workflowName:"fr.openent.zimbra.controllers.ZimbraController|view",user:_e}),preauth:odeServices.session().hasWorkflow({workflowName:"fr.openent.zimbra.controllers.ZimbraController|preauth",user:_e})}}}}const DEFAULT_EVENTS=["mousedown","touchstart"];function useClickOutside(_e,et,tt){const rt=reactExports.useRef();return reactExports.useEffect(()=>{const nt=st=>{const{target:ot}=st??{};if(Array.isArray(tt)){const at=(ot==null?void 0:ot.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(ot)&&ot.tagName!=="HTML";tt.every(ut=>!!ut&&!st.composedPath().includes(ut))&&!at&&_e()}else rt.current&&!rt.current.contains(ot)&&_e()};return(et||DEFAULT_EVENTS).forEach(st=>{document.addEventListener(st,nt)}),()=>{(et||DEFAULT_EVENTS).forEach(st=>{document.removeEventListener(st,nt)})}},[rt,_e,tt,et]),rt}let e={data:""},t$1=_e=>typeof window=="object"?((_e?_e.querySelector("#_goober"):window._goober)||Object.assign((_e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:_e||e,l=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,a=/\/\*[^]*?\*\/| +/g,n$2=/\n+/g,o=(_e,et)=>{let tt="",rt="",nt="";for(let st in _e){let ot=_e[st];st[0]=="@"?st[1]=="i"?tt=st+" "+ot+";":rt+=st[1]=="f"?o(ot,st):st+"{"+o(ot,st[1]=="k"?"":et)+"}":typeof ot=="object"?rt+=o(ot,et?et.replace(/([^,])+/g,at=>st.replace(/(^:.*)|([^,])+/g,ut=>/&/.test(ut)?ut.replace(/&/g,at):at?at+" "+ut:ut)):st):ot!=null&&(st=/^--/.test(st)?st:st.replace(/[A-Z]/g,"-$&").toLowerCase(),nt+=o.p?o.p(st,ot):st+":"+ot+";")}return tt+(et&&nt?et+"{"+nt+"}":nt)+rt},c$1={},s=_e=>{if(typeof _e=="object"){let et="";for(let tt in _e)et+=tt+s(_e[tt]);return et}return _e},i$1=(_e,et,tt,rt,nt)=>{let st=s(_e),ot=c$1[st]||(c$1[st]=(ut=>{let lt=0,dt=11;for(;lt<ut.length;)dt=101*dt+ut.charCodeAt(lt++)>>>0;return"go"+dt})(st));if(!c$1[ot]){let ut=st!==_e?_e:(lt=>{let dt,ct,ft=[{}];for(;dt=l.exec(lt.replace(a,""));)dt[4]?ft.shift():dt[3]?(ct=dt[3].replace(n$2," ").trim(),ft.unshift(ft[0][ct]=ft[0][ct]||{})):ft[0][dt[1]]=dt[2].replace(n$2," ").trim();return ft[0]})(_e);c$1[ot]=o(nt?{["@keyframes "+ot]:ut}:ut,tt?"":"."+ot)}let at=tt&&c$1.g?c$1.g:null;return tt&&(c$1.g=c$1[ot]),((ut,lt,dt,ct)=>{ct?lt.data=lt.data.replace(ct,ut):lt.data.indexOf(ut)===-1&&(lt.data=dt?ut+lt.data:lt.data+ut)})(c$1[ot],et,rt,at),ot},p$1=(_e,et,tt)=>_e.reduce((rt,nt,st)=>{let ot=et[st];if(ot&&ot.call){let at=ot(tt),ut=at&&at.props&&at.props.className||/^go/.test(at)&&at;ot=ut?"."+ut:at&&typeof at=="object"?at.props?"":o(at,""):at===!1?"":at}return rt+nt+(ot??"")},"");function u$2(_e){let et=this||{},tt=_e.call?_e(et.p):_e;return i$1(tt.unshift?tt.raw?p$1(tt,[].slice.call(arguments,1),et.p):tt.reduce((rt,nt)=>Object.assign(rt,nt&&nt.call?nt(et.p):nt),{}):tt,t$1(et.target),et.g,et.o,et.k)}let d,f,g$1;u$2.bind({g:1});let h$3=u$2.bind({k:1});function m$1(_e,et,tt,rt){o.p=et,d=_e,f=tt,g$1=rt}function j(_e,et){let tt=this||{};return function(){let rt=arguments;function nt(st,ot){let at=Object.assign({},st),ut=at.className||nt.className;tt.p=Object.assign({theme:f&&f()},at),tt.o=/ *go\d+/.test(ut),at.className=u$2.apply(tt,rt)+(ut?" "+ut:""),et&&(at.ref=ot);let lt=_e;return _e[0]&&(lt=at.as||_e,delete at.as),g$1&<[0]&&g$1(at),d(lt,at)}return et?et(nt):nt}}var W=_e=>typeof _e=="function",T=(_e,et)=>W(_e)?_e(et):_e,U=(()=>{let _e=0;return()=>(++_e).toString()})(),b=(()=>{let _e;return()=>{if(_e===void 0&&typeof window<"u"){let et=matchMedia("(prefers-reduced-motion: reduce)");_e=!et||et.matches}return _e}})(),Q=20,S=new Map,X=1e3,$$1=_e=>{if(S.has(_e))return;let et=setTimeout(()=>{S.delete(_e),u$1({type:4,toastId:_e})},X);S.set(_e,et)},J=_e=>{let et=S.get(_e);et&&clearTimeout(et)},v$2=(_e,et)=>{switch(et.type){case 0:return{..._e,toasts:[et.toast,..._e.toasts].slice(0,Q)};case 1:return et.toast.id&&J(et.toast.id),{..._e,toasts:_e.toasts.map(st=>st.id===et.toast.id?{...st,...et.toast}:st)};case 2:let{toast:tt}=et;return _e.toasts.find(st=>st.id===tt.id)?v$2(_e,{type:1,toast:tt}):v$2(_e,{type:0,toast:tt});case 3:let{toastId:rt}=et;return rt?$$1(rt):_e.toasts.forEach(st=>{$$1(st.id)}),{..._e,toasts:_e.toasts.map(st=>st.id===rt||rt===void 0?{...st,visible:!1}:st)};case 4:return et.toastId===void 0?{..._e,toasts:[]}:{..._e,toasts:_e.toasts.filter(st=>st.id!==et.toastId)};case 5:return{..._e,pausedAt:et.time};case 6:let nt=et.time-(_e.pausedAt||0);return{..._e,pausedAt:void 0,toasts:_e.toasts.map(st=>({...st,pauseDuration:st.pauseDuration+nt}))}}},A=[],P={toasts:[],pausedAt:void 0},u$1=_e=>{P=v$2(P,_e),A.forEach(et=>{et(P)})},Y={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},I$1=(_e={})=>{let[et,tt]=reactExports.useState(P);reactExports.useEffect(()=>(A.push(tt),()=>{let nt=A.indexOf(tt);nt>-1&&A.splice(nt,1)}),[et]);let rt=et.toasts.map(nt=>{var st,ot;return{..._e,..._e[nt.type],...nt,duration:nt.duration||((st=_e[nt.type])==null?void 0:st.duration)||(_e==null?void 0:_e.duration)||Y[nt.type],style:{..._e.style,...(ot=_e[nt.type])==null?void 0:ot.style,...nt.style}}});return{...et,toasts:rt}},G$1=(_e,et="blank",tt)=>({createdAt:Date.now(),visible:!0,type:et,ariaProps:{role:"status","aria-live":"polite"},message:_e,pauseDuration:0,...tt,id:(tt==null?void 0:tt.id)||U()}),h$2=_e=>(et,tt)=>{let rt=G$1(et,_e,tt);return u$1({type:2,toast:rt}),rt.id},n$1=(_e,et)=>h$2("blank")(_e,et);n$1.error=h$2("error");n$1.success=h$2("success");n$1.loading=h$2("loading");n$1.custom=h$2("custom");n$1.dismiss=_e=>{u$1({type:3,toastId:_e})};n$1.remove=_e=>u$1({type:4,toastId:_e});n$1.promise=(_e,et,tt)=>{let rt=n$1.loading(et.loading,{...tt,...tt==null?void 0:tt.loading});return _e.then(nt=>(n$1.success(T(et.success,nt),{id:rt,...tt,...tt==null?void 0:tt.success}),nt)).catch(nt=>{n$1.error(T(et.error,nt),{id:rt,...tt,...tt==null?void 0:tt.error})}),_e};var Z=(_e,et)=>{u$1({type:1,toast:{id:_e,height:et}})},ee=()=>{u$1({type:5,time:Date.now()})},D=_e=>{let{toasts:et,pausedAt:tt}=I$1(_e);reactExports.useEffect(()=>{if(tt)return;let st=Date.now(),ot=et.map(at=>{if(at.duration===1/0)return;let ut=(at.duration||0)+at.pauseDuration-(st-at.createdAt);if(ut<0){at.visible&&n$1.dismiss(at.id);return}return setTimeout(()=>n$1.dismiss(at.id),ut)});return()=>{ot.forEach(at=>at&&clearTimeout(at))}},[et,tt]);let rt=reactExports.useCallback(()=>{tt&&u$1({type:6,time:Date.now()})},[tt]),nt=reactExports.useCallback((st,ot)=>{let{reverseOrder:at=!1,gutter:ut=8,defaultPosition:lt}=ot||{},dt=et.filter(ht=>(ht.position||lt)===(st.position||lt)&&ht.height),ct=dt.findIndex(ht=>ht.id===st.id),ft=dt.filter((ht,mt)=>mt<ct&&ht.visible).length;return dt.filter(ht=>ht.visible).slice(...at?[ft+1]:[0,ft]).reduce((ht,mt)=>ht+(mt.height||0)+ut,0)},[et]);return{toasts:et,handlers:{updateHeight:Z,startPause:ee,endPause:rt,calculateOffset:nt}}},oe=h$3`
|
|
48
|
+
*/var Wr=b;function RS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var PS=typeof Object.is=="function"?Object.is:RS,jS=Wr.useState,NS=Wr.useEffect,TS=Wr.useLayoutEffect,_S=Wr.useDebugValue;function AS(e,t){var n=t(),r=jS({inst:{value:n,getSnapshot:t}}),i=r[0].inst,s=r[1];return TS(function(){i.value=n,i.getSnapshot=t,Gl(i)&&s({inst:i})},[e,n,t]),NS(function(){return Gl(i)&&s({inst:i}),e(function(){Gl(i)&&s({inst:i})})},[e]),_S(n),n}function Gl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!PS(e,n)}catch{return!0}}function IS(e,t){return t()}var LS=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?IS:AS;o0.useSyncExternalStore=Wr.useSyncExternalStore!==void 0?Wr.useSyncExternalStore:LS;s0.exports=o0;var a0=s0.exports;const l0=a0.useSyncExternalStore,pp=b.createContext(void 0),u0=b.createContext(!1);function c0(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=pp),window.ReactQueryClientContext):pp)}const lt=({context:e}={})=>{const t=b.useContext(c0(e,b.useContext(u0)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},MS=({client:e,children:t,context:n,contextSharing:r=!1})=>{b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const i=c0(n,r);return b.createElement(u0.Provider,{value:!n&&r},b.createElement(i.Provider,{value:e},t))},d0=b.createContext(!1),DS=()=>b.useContext(d0);d0.Provider;function FS(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const $S=b.createContext(FS()),zS=()=>b.useContext($S);function f0(e,t){return typeof e=="function"?e(...t):!!e}const BS=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},US=e=>{b.useEffect(()=>{e.clearReset()},[e])},VS=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&f0(n,[e.error,r]),HS=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},qS=(e,t)=>e.isLoading&&e.isFetching&&!t,QS=(e,t,n)=>(e==null?void 0:e.suspense)&&qS(t,n),WS=(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 h0(e,t){const n=lt({context:e.context}),r=DS(),i=zS(),s=n.defaultQueryOptions(e);s._optimisticResults=r?"isRestoring":"optimistic",s.onError&&(s.onError=ue.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=ue.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=ue.batchCalls(s.onSettled)),HS(s),BS(s,i),US(i);const[o]=b.useState(()=>new t(n,s)),a=o.getOptimisticResult(s);if(l0(b.useCallback(l=>{const u=r?()=>{}:o.subscribe(ue.batchCalls(l));return o.updateResult(),u},[o,r]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),b.useEffect(()=>{o.setOptions(s,{listeners:!1})},[s,o]),QS(s,a,r))throw WS(s,o,i);if(VS({result:a,errorResetBoundary:i,useErrorBoundary:s.useErrorBoundary,query:o.getCurrentQuery()}))throw a.error;return s.notifyOnChangeProps?a:o.trackResult(a)}function Dd(e,t,n){const r=yr(e,t,n);return h0(r,t1)}function fn(e,t,n){const r=aw(e,t,n),i=lt({context:r.context}),[s]=b.useState(()=>new Ew(i,r));b.useEffect(()=>{s.setOptions(r)},[s,r]);const o=l0(b.useCallback(l=>s.subscribe(ue.batchCalls(l)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),a=b.useCallback((l,u)=>{s.mutate(l,u).catch(KS)},[s]);if(o.error&&f0(s.options.useErrorBoundary,[o.error]))throw o.error;return{...o,mutate:a,mutateAsync:o.mutate}}function KS(){}function ZS(e,t,n){const r=yr(e,t,n);return h0(r,bw)}function XS(){return Dd({queryKey:["session"],queryFn:async()=>await G.session().getSession(),suspense:!0})}function p0({appCode:e}){return Dd({queryKey:["conf"],queryFn:async()=>await G.conf().getConf(e),suspense:!0})}const m0=b.createContext(null);function GS({children:e,params:t}){const n=t.app,r=XS(),i=p0({appCode:n}),s=(i==null?void 0:i.isSuccess)&&(r==null?void 0:r.isSuccess);b.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=b.useMemo(()=>{var a,l,u,c,d,h;return{appCode:n,applications:(a=i==null?void 0:i.data)==null?void 0:a.applications,confQuery:i,currentApp:(l=i==null?void 0:i.data)==null?void 0:l.currentApp,currentLanguage:(u=r==null?void 0:r.data)==null?void 0:u.currentLanguage,init:s,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,i,s,r]);return f.jsx(m0.Provider,{value:o,children:e})}function At(){const e=b.useContext(m0);if(!e)throw new Error("Cannot be used outside of OdeClientProvider");return e}function YS(){var r;const{sessionQuery:e}=At(),t=new Set;return(r=e==null?void 0:e.data)==null?void 0:r.bookmarkedApps.filter(i=>{const s=t.has(i.displayName);return t.add(i.displayName),!s})}function zi(e){const[t,n]=b.useState();return b.useEffect(()=>{(async()=>{let r;typeof e=="string"?r=await G.rights().sessionHasWorkflowRight(e):await G.rights().sessionHasWorkflowRights(e),n(r)})()},[e]),t}function JS(){const e=typeof document<"u",[t,n]=b.useState(()=>document.title);return b.useEffect(()=>{e&&n(document.title)},[e]),t}function g0(){const[e,t]=b.useState(!1),n=b.useRef(null),r=()=>{t(!0)},i=()=>{t(!1)};return b.useEffect(()=>{const s=n.current;if(s)return s.addEventListener("mouseover",r),s.addEventListener("mouseout",i),()=>{s.removeEventListener("mouseover",r),s.removeEventListener("mouseout",i)}},[n]),[n,e]}function e4({user:e,avatar:t}){const{t:n}=xe(),r=JS(),[i,s]=b.useState(!0),[o,a]=g0(),l=b.useId(),u=b.useId(),c=t,d=e==null?void 0:e.username,h=n("welcome",{username:e==null?void 0:e.username}),m=YS(),p=zi("net.atos.entng.community.controllers.CommunityController|view"),y=zi("org.entcore.conversation.controllers.ConversationController|view"),x=zi("fr.openent.searchengine.controllers.SearchEngineController|view"),g=b.useCallback(()=>{s(!i)},[i]),v=async()=>{await G.session().logout(),window.location.href="/auth/login"};return b.useMemo(()=>({title:r,bookmarkedApps:m,appsRef:o,isAppsHovered:a,popoverAppsId:l,popoverSearchId:u,userAvatar:c,userName:d,welcomeUser:h,communityWorkflow:p,conversationWorflow:y,searchWorkflow:x,isCollapsed:i,toggleCollapsedNav:g,handleLogout:v}),[o,m,p,y,a,i,l,u,x,r,g,c,d,h])}function v0(){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 i(a){const l=t(a);return l?`bg-app-${l}`:"bg-app-placeholder"}function s(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:i,getBackgroundLightIconClass:s,getIconCode:t,getWidgetIconClass:o,isIconUrl:n}}function Ya(){return["/assets/themes/edifice-bootstrap/images","/assets/themes/edifice-bootstrap/icons","/assets/themes/edifice-bootstrap/fonts"]}const y0=b.createContext(null);function t4({children:e}){var i;const{appCode:t}=At(),n=p0({appCode:t});b.useEffect(()=>{var u,c,d,h,m,p,y,x,g;const s=document.getElementById("favicon");s.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=(p=n==null?void 0:n.data)==null?void 0:p.theme)==null?void 0:y.skinName},{data:"data-theme",value:(g=(x=n==null?void 0:n.data)==null?void 0:x.theme)==null?void 0:g.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=b.useMemo(()=>{var s;return{theme:(s=n==null?void 0:n.data)==null?void 0:s.theme}},[(i=n==null?void 0:n.data)==null?void 0:i.theme]);return f.jsx(y0.Provider,{value:r,children:e})}function Fd(){const e=b.useContext(y0);if(!e)throw new Error("Cannot be used outside of OdeClientProvider");return e}function $d(){const{user:e,userDescription:t,userProfile:n}=At(),{theme:r}=Fd();function i(){let s=t==null?void 0:t.picture;return(!s||s==="no-avatar.jpg"||s==="no-avatar.svg")&&(s=`${r==null?void 0:r.basePath}/img/illustrations/no-avatar.svg`),s}return{user:{...e,type:n},avatar:i(),userDescription:t}}function n4(){const[e,t]=b.useState("pending"),{currentApp:n}=At();b.useEffect(()=>{r()},[]);const r=async()=>{if(!n){t("[Xiti] Error, currentApp is not defined.");return}try{await G.analytics().trackPageLoad(window.location.pathname,n),console.info(`[Xiti] Success tracking page ${window.location.pathname}`),t(`[Xiti] Success tracking page ${window.location.pathname}`)}catch(i){console.error("[Xiti] Error Tracking Page Load",i),t(`[Xiti] Error Tracking Page Load: ${i}`)}};return{xitiStatus:e}}const mp=["mousedown","touchstart"];function r4(e,t,n){const r=b.useRef();return b.useEffect(()=>{const i=s=>{const{target:o}=s??{};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&&!s.composedPath().includes(u))&&!a&&e()}else r.current&&!r.current.contains(o)&&e()};return(t||mp).forEach(s=>{document.addEventListener(s,i)}),()=>{(t||mp).forEach(s=>{document.removeEventListener(s,i)})}},[r,e,n,t]),r}let i4={data:""},s4=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||i4,o4=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,a4=/\/\*[^]*?\*\/| +/g,gp=/\n+/g,xn=(e,t)=>{let n="",r="",i="";for(let s in e){let o=e[s];s[0]=="@"?s[1]=="i"?n=s+" "+o+";":r+=s[1]=="f"?xn(o,s):s+"{"+xn(o,s[1]=="k"?"":t)+"}":typeof o=="object"?r+=xn(o,t?t.replace(/([^,])+/g,a=>s.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):s):o!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=xn.p?xn.p(s,o):s+":"+o+";")}return n+(t&&i?t+"{"+i+"}":i)+r},Xt={},w0=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+w0(e[n]);return t}return e},l4=(e,t,n,r,i)=>{let s=w0(e),o=Xt[s]||(Xt[s]=(l=>{let u=0,c=11;for(;u<l.length;)c=101*c+l.charCodeAt(u++)>>>0;return"go"+c})(s));if(!Xt[o]){let l=s!==e?e:(u=>{let c,d,h=[{}];for(;c=o4.exec(u.replace(a4,""));)c[4]?h.shift():c[3]?(d=c[3].replace(gp," ").trim(),h.unshift(h[0][d]=h[0][d]||{})):h[0][c[1]]=c[2].replace(gp," ").trim();return h[0]})(e);Xt[o]=xn(i?{["@keyframes "+o]:l}:l,n?"":"."+o)}let a=n&&Xt.g?Xt.g:null;return n&&(Xt.g=Xt[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)})(Xt[o],t,r,a),o},u4=(e,t,n)=>e.reduce((r,i,s)=>{let o=t[s];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?"":xn(a,""):a===!1?"":a}return r+i+(o??"")},"");function Ja(e){let t=this||{},n=e.call?e(t.p):e;return l4(n.unshift?n.raw?u4(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,s4(t.target),t.g,t.o,t.k)}let x0,gc,vc;Ja.bind({g:1});let un=Ja.bind({k:1});function c4(e,t,n,r){xn.p=t,x0=e,gc=n,vc=r}function zn(e,t){let n=this||{};return function(){let r=arguments;function i(s,o){let a=Object.assign({},s),l=a.className||i.className;n.p=Object.assign({theme:gc&&gc()},a),n.o=/ *go\d+/.test(l),a.className=Ja.apply(n,r)+(l?" "+l:""),t&&(a.ref=o);let u=e;return e[0]&&(u=a.as||e,delete a.as),vc&&u[0]&&vc(a),x0(u,a)}return t?t(i):i}}var d4=e=>typeof e=="function",ka=(e,t)=>d4(e)?e(t):e,f4=(()=>{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}})(),h4=20,Do=new Map,p4=1e3,vp=e=>{if(Do.has(e))return;let t=setTimeout(()=>{Do.delete(e),fr({type:4,toastId:e})},p4);Do.set(e,t)},m4=e=>{let t=Do.get(e);t&&clearTimeout(t)},yc=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,h4)};case 1:return t.toast.id&&m4(t.toast.id),{...e,toasts:e.toasts.map(s=>s.id===t.toast.id?{...s,...t.toast}:s)};case 2:let{toast:n}=t;return e.toasts.find(s=>s.id===n.id)?yc(e,{type:1,toast:n}):yc(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?vp(r):e.toasts.forEach(s=>{vp(s.id)}),{...e,toasts:e.toasts.map(s=>s.id===r||r===void 0?{...s,visible:!1}:s)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(s=>s.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(s=>({...s,pauseDuration:s.pauseDuration+i}))}}},Fo=[],$o={toasts:[],pausedAt:void 0},fr=e=>{$o=yc($o,e),Fo.forEach(t=>{t($o)})},g4={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},v4=(e={})=>{let[t,n]=b.useState($o);b.useEffect(()=>(Fo.push(n),()=>{let i=Fo.indexOf(n);i>-1&&Fo.splice(i,1)}),[t]);let r=t.toasts.map(i=>{var s,o;return{...e,...e[i.type],...i,duration:i.duration||((s=e[i.type])==null?void 0:s.duration)||(e==null?void 0:e.duration)||g4[i.type],style:{...e.style,...(o=e[i.type])==null?void 0:o.style,...i.style}}});return{...t,toasts:r}},y4=(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)||f4()}),Ds=e=>(t,n)=>{let r=y4(t,e,n);return fr({type:2,toast:r}),r.id},nt=(e,t)=>Ds("blank")(e,t);nt.error=Ds("error");nt.success=Ds("success");nt.loading=Ds("loading");nt.custom=Ds("custom");nt.dismiss=e=>{fr({type:3,toastId:e})};nt.remove=e=>fr({type:4,toastId:e});nt.promise=(e,t,n)=>{let r=nt.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(i=>(nt.success(ka(t.success,i),{id:r,...n,...n==null?void 0:n.success}),i)).catch(i=>{nt.error(ka(t.error,i),{id:r,...n,...n==null?void 0:n.error})}),e};var w4=(e,t)=>{fr({type:1,toast:{id:e,height:t}})},x4=()=>{fr({type:5,time:Date.now()})},S4=e=>{let{toasts:t,pausedAt:n}=v4(e);b.useEffect(()=>{if(n)return;let s=Date.now(),o=t.map(a=>{if(a.duration===1/0)return;let l=(a.duration||0)+a.pauseDuration-(s-a.createdAt);if(l<0){a.visible&&nt.dismiss(a.id);return}return setTimeout(()=>nt.dismiss(a.id),l)});return()=>{o.forEach(a=>a&&clearTimeout(a))}},[t,n]);let r=b.useCallback(()=>{n&&fr({type:6,time:Date.now()})},[n]),i=b.useCallback((s,o)=>{let{reverseOrder:a=!1,gutter:l=8,defaultPosition:u}=o||{},c=t.filter(m=>(m.position||u)===(s.position||u)&&m.height),d=c.findIndex(m=>m.id===s.id),h=c.filter((m,p)=>p<d&&m.visible).length;return c.filter(m=>m.visible).slice(...a?[h+1]:[0,h]).reduce((m,p)=>m+(p.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:w4,startPause:x4,endPause:r,calculateOffset:i}}},b4=un`
|
|
65
49
|
from {
|
|
66
50
|
transform: scale(0) rotate(45deg);
|
|
67
51
|
opacity: 0;
|
|
@@ -69,7 +53,7 @@ from {
|
|
|
69
53
|
to {
|
|
70
54
|
transform: scale(1) rotate(45deg);
|
|
71
55
|
opacity: 1;
|
|
72
|
-
}`,
|
|
56
|
+
}`,E4=un`
|
|
73
57
|
from {
|
|
74
58
|
transform: scale(0);
|
|
75
59
|
opacity: 0;
|
|
@@ -77,7 +61,7 @@ from {
|
|
|
77
61
|
to {
|
|
78
62
|
transform: scale(1);
|
|
79
63
|
opacity: 1;
|
|
80
|
-
}`,
|
|
64
|
+
}`,C4=un`
|
|
81
65
|
from {
|
|
82
66
|
transform: scale(0) rotate(90deg);
|
|
83
67
|
opacity: 0;
|
|
@@ -85,28 +69,28 @@ from {
|
|
|
85
69
|
to {
|
|
86
70
|
transform: scale(1) rotate(90deg);
|
|
87
71
|
opacity: 1;
|
|
88
|
-
}`,
|
|
72
|
+
}`,k4=zn("div")`
|
|
89
73
|
width: 20px;
|
|
90
74
|
opacity: 0;
|
|
91
75
|
height: 20px;
|
|
92
76
|
border-radius: 10px;
|
|
93
|
-
background: ${
|
|
77
|
+
background: ${e=>e.primary||"#ff4b4b"};
|
|
94
78
|
position: relative;
|
|
95
79
|
transform: rotate(45deg);
|
|
96
80
|
|
|
97
|
-
animation: ${
|
|
81
|
+
animation: ${b4} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
98
82
|
forwards;
|
|
99
83
|
animation-delay: 100ms;
|
|
100
84
|
|
|
101
85
|
&:after,
|
|
102
86
|
&:before {
|
|
103
87
|
content: '';
|
|
104
|
-
animation: ${
|
|
88
|
+
animation: ${E4} 0.15s ease-out forwards;
|
|
105
89
|
animation-delay: 150ms;
|
|
106
90
|
position: absolute;
|
|
107
91
|
border-radius: 3px;
|
|
108
92
|
opacity: 0;
|
|
109
|
-
background: ${
|
|
93
|
+
background: ${e=>e.secondary||"#fff"};
|
|
110
94
|
bottom: 9px;
|
|
111
95
|
left: 4px;
|
|
112
96
|
height: 2px;
|
|
@@ -114,27 +98,27 @@ to {
|
|
|
114
98
|
}
|
|
115
99
|
|
|
116
100
|
&:before {
|
|
117
|
-
animation: ${
|
|
101
|
+
animation: ${C4} 0.15s ease-out forwards;
|
|
118
102
|
animation-delay: 180ms;
|
|
119
103
|
transform: rotate(90deg);
|
|
120
104
|
}
|
|
121
|
-
`,
|
|
105
|
+
`,O4=un`
|
|
122
106
|
from {
|
|
123
107
|
transform: rotate(0deg);
|
|
124
108
|
}
|
|
125
109
|
to {
|
|
126
110
|
transform: rotate(360deg);
|
|
127
111
|
}
|
|
128
|
-
`,
|
|
112
|
+
`,R4=zn("div")`
|
|
129
113
|
width: 12px;
|
|
130
114
|
height: 12px;
|
|
131
115
|
box-sizing: border-box;
|
|
132
116
|
border: 2px solid;
|
|
133
117
|
border-radius: 100%;
|
|
134
|
-
border-color: ${
|
|
135
|
-
border-right-color: ${
|
|
136
|
-
animation: ${
|
|
137
|
-
`,
|
|
118
|
+
border-color: ${e=>e.secondary||"#e0e0e0"};
|
|
119
|
+
border-right-color: ${e=>e.primary||"#616161"};
|
|
120
|
+
animation: ${O4} 1s linear infinite;
|
|
121
|
+
`,P4=un`
|
|
138
122
|
from {
|
|
139
123
|
transform: scale(0) rotate(45deg);
|
|
140
124
|
opacity: 0;
|
|
@@ -142,7 +126,7 @@ from {
|
|
|
142
126
|
to {
|
|
143
127
|
transform: scale(1) rotate(45deg);
|
|
144
128
|
opacity: 1;
|
|
145
|
-
}`,
|
|
129
|
+
}`,j4=un`
|
|
146
130
|
0% {
|
|
147
131
|
height: 0;
|
|
148
132
|
width: 0;
|
|
@@ -156,43 +140,43 @@ to {
|
|
|
156
140
|
100% {
|
|
157
141
|
opacity: 1;
|
|
158
142
|
height: 10px;
|
|
159
|
-
}`,
|
|
143
|
+
}`,N4=zn("div")`
|
|
160
144
|
width: 20px;
|
|
161
145
|
opacity: 0;
|
|
162
146
|
height: 20px;
|
|
163
147
|
border-radius: 10px;
|
|
164
|
-
background: ${
|
|
148
|
+
background: ${e=>e.primary||"#61d345"};
|
|
165
149
|
position: relative;
|
|
166
150
|
transform: rotate(45deg);
|
|
167
151
|
|
|
168
|
-
animation: ${
|
|
152
|
+
animation: ${P4} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
169
153
|
forwards;
|
|
170
154
|
animation-delay: 100ms;
|
|
171
155
|
&:after {
|
|
172
156
|
content: '';
|
|
173
157
|
box-sizing: border-box;
|
|
174
|
-
animation: ${
|
|
158
|
+
animation: ${j4} 0.2s ease-out forwards;
|
|
175
159
|
opacity: 0;
|
|
176
160
|
animation-delay: 200ms;
|
|
177
161
|
position: absolute;
|
|
178
162
|
border-right: 2px solid;
|
|
179
163
|
border-bottom: 2px solid;
|
|
180
|
-
border-color: ${
|
|
164
|
+
border-color: ${e=>e.secondary||"#fff"};
|
|
181
165
|
bottom: 6px;
|
|
182
166
|
left: 6px;
|
|
183
167
|
height: 10px;
|
|
184
168
|
width: 6px;
|
|
185
169
|
}
|
|
186
|
-
`,
|
|
170
|
+
`,T4=zn("div")`
|
|
187
171
|
position: absolute;
|
|
188
|
-
`,
|
|
172
|
+
`,_4=zn("div")`
|
|
189
173
|
position: relative;
|
|
190
174
|
display: flex;
|
|
191
175
|
justify-content: center;
|
|
192
176
|
align-items: center;
|
|
193
177
|
min-width: 20px;
|
|
194
178
|
min-height: 20px;
|
|
195
|
-
`,
|
|
179
|
+
`,A4=un`
|
|
196
180
|
from {
|
|
197
181
|
transform: scale(0.6);
|
|
198
182
|
opacity: 0.4;
|
|
@@ -200,20 +184,20 @@ from {
|
|
|
200
184
|
to {
|
|
201
185
|
transform: scale(1);
|
|
202
186
|
opacity: 1;
|
|
203
|
-
}`,
|
|
187
|
+
}`,I4=zn("div")`
|
|
204
188
|
position: relative;
|
|
205
189
|
transform: scale(0.6);
|
|
206
190
|
opacity: 0.4;
|
|
207
191
|
min-width: 20px;
|
|
208
|
-
animation: ${
|
|
192
|
+
animation: ${A4} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
209
193
|
forwards;
|
|
210
|
-
`,
|
|
211
|
-
0% {transform: translate3d(0,${
|
|
194
|
+
`,L4=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?b.createElement(I4,null,t):t:n==="blank"?null:b.createElement(_4,null,b.createElement(R4,{...r}),n!=="loading"&&b.createElement(T4,null,n==="error"?b.createElement(k4,{...r}):b.createElement(N4,{...r})))},M4=e=>`
|
|
195
|
+
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
|
|
212
196
|
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
|
|
213
|
-
`,
|
|
197
|
+
`,D4=e=>`
|
|
214
198
|
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
|
|
215
|
-
100% {transform: translate3d(0,${
|
|
216
|
-
`,
|
|
199
|
+
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
|
|
200
|
+
`,F4="0%{opacity:0;} 100%{opacity:1;}",$4="0%{opacity:1;} 100%{opacity:0;}",z4=zn("div")`
|
|
217
201
|
display: flex;
|
|
218
202
|
align-items: center;
|
|
219
203
|
background: #fff;
|
|
@@ -225,21 +209,21 @@ to {
|
|
|
225
209
|
pointer-events: auto;
|
|
226
210
|
padding: 8px 10px;
|
|
227
211
|
border-radius: 8px;
|
|
228
|
-
`,
|
|
212
|
+
`,B4=zn("div")`
|
|
229
213
|
display: flex;
|
|
230
214
|
justify-content: center;
|
|
231
215
|
margin: 4px 10px;
|
|
232
216
|
color: inherit;
|
|
233
217
|
flex: 1 1 auto;
|
|
234
218
|
white-space: pre-line;
|
|
235
|
-
`,
|
|
219
|
+
`,U4=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=S0()?[F4,$4]:[M4(n),D4(n)];return{animation:t?`${un(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${un(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},V4=b.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?U4(e.position||t||"top-center",e.visible):{opacity:0},s=b.createElement(L4,{toast:e}),o=b.createElement(B4,{...e.ariaProps},ka(e.message,e));return b.createElement(z4,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:s,message:o}):b.createElement(b.Fragment,null,s,o))});c4(b.createElement);var H4=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let s=b.useCallback(o=>{if(o){let a=()=>{let l=o.getBoundingClientRect().height;r(e,l)};a(),new MutationObserver(a).observe(o,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return b.createElement("div",{ref:s,className:t,style:n},i)},q4=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:S0()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},Q4=Ja`
|
|
236
220
|
z-index: 9999;
|
|
237
221
|
> * {
|
|
238
222
|
pointer-events: auto;
|
|
239
223
|
}
|
|
240
|
-
`,O=16,Ie=({reverseOrder:_e,position:et="top-center",toastOptions:tt,gutter:rt,children:nt,containerStyle:st,containerClassName:ot})=>{let{toasts:at,handlers:ut}=D(tt);return reactExports.createElement("div",{style:{position:"fixed",zIndex:9999,top:O,left:O,right:O,bottom:O,pointerEvents:"none",...st},className:ot,onMouseEnter:ut.startPause,onMouseLeave:ut.endPause},at.map(lt=>{let dt=lt.position||et,ct=ut.calculateOffset(lt,{reverseOrder:_e,gutter:rt,defaultPosition:et}),ft=Re(dt,ct);return reactExports.createElement(Ee,{id:lt.id,key:lt.id,onHeightUpdate:ut.updateHeight,className:lt.visible?ve:"",style:ft},lt.type==="custom"?T(lt.message,lt):nt?nt(lt):reactExports.createElement(F$1,{toast:lt,position:dt}))}))},_t=n$1;function useHotToast(_e){return{hotToast:{success:(et,tt)=>_t.custom(jsxRuntimeExports.jsx(_e,{type:"success",isToast:!0,isDismissible:tt==null?void 0:tt.isDismissible,className:"mb-12",children:et}),{duration:tt==null?void 0:tt.duration}),error:(et,tt)=>_t.custom(jsxRuntimeExports.jsx(_e,{type:"danger",isToast:!0,isDismissible:tt==null?void 0:tt.isDismissible,className:"mb-12",children:et}),{duration:tt==null?void 0:tt.duration}),info:(et,tt)=>_t.custom(jsxRuntimeExports.jsx(_e,{type:"info",isToast:!0,isDismissible:tt==null?void 0:tt.isDismissible,className:"mb-12",children:et}),{duration:tt==null?void 0:tt.duration}),warning:(et,tt)=>_t.custom(jsxRuntimeExports.jsx(_e,{type:"warning",isToast:!0,isDismissible:tt==null?void 0:tt.isDismissible,className:"mb-12",children:et}),{duration:tt==null?void 0:tt.duration}),loading:_t.loading}}}function useHover(){const[_e,et]=reactExports.useState(!1),tt=reactExports.useRef(null),rt=()=>{et(!0)},nt=()=>{et(!1)};return reactExports.useEffect(()=>{const st=tt.current;if(st)return st.addEventListener("mouseover",rt),st.addEventListener("mouseout",nt),()=>{st.removeEventListener("mouseover",rt),st.removeEventListener("mouseout",nt)}},[]),[tt,_e]}function useImage({src:_e,placeholder:et}){const[tt,rt]=reactExports.useState(_e||et),nt=reactExports.useCallback(()=>{rt(et)},[et]);return reactExports.useEffect(()=>{rt(_e)},[_e]),{imgSrc:tt,onError:nt}}function useKeyPress(_e,et){const tt=reactExports.useCallback(({code:rt})=>{et.includes(rt)&&_e()},[_e,et]);reactExports.useEffect(()=>(window.addEventListener("keydown",tt),()=>{window.removeEventListener("keydown",tt)}),[tt])}function useTitle(){const _e=typeof document<"u",[et,tt]=reactExports.useState(()=>document.title);return reactExports.useEffect(()=>{_e&&tt(document.title)},[_e]),et}function useToggle(_e=!1){const[et,tt]=reactExports.useState(_e),rt=reactExports.useCallback(()=>{tt(nt=>!nt)},[]);return[et,rt]}function useTrapFocus(){const _e=reactExports.useRef(null),et='button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';return reactExports.useEffect(()=>{const tt=_e.current,rt=tt.querySelectorAll(et)[0],nt=tt.querySelectorAll(et),st=_e&&(nt==null?void 0:nt[nt.length-1]),ot=at=>{at.key==="Tab"&&(at.shiftKey?document.activeElement===rt&&(st.focus(),at.preventDefault()):document.activeElement===st&&(rt.focus(),at.preventDefault()))};if(tt)return tt.addEventListener("keydown",ot),()=>{tt.removeEventListener("keydown",ot)}},[]),_e}function useScrollToTop(){const _e=document.querySelector("html");return()=>{_e&&_e.scrollIntoView()}}function useHeader({user:_e,avatar:et}){const{t:tt}=useTranslation(),rt=reactExports.useRef(null),nt=useTitle(),[st,ot]=reactExports.useState(!0),[at,ut]=useHover(),[lt,dt]=useHover(),ct=reactExports.useId(),ft=reactExports.useId(),[ht,mt]=reactExports.useState(0),vt=et,wt=_e==null?void 0:_e.username,gt=tt("welcome",{username:_e==null?void 0:_e.username}),yt=useBookmark(),{workflows:{conversation:xt,zimbra:St,community:bt,search:$t}}=useHasWorkflow(),At=bt.view,Tt=$t.view,Ft=xt.view,Pt=St.view,Dt=St.preauth,[Mt,It]=reactExports.useState(""),Et=reactExports.useCallback(async()=>{if(Pt)try{const jt=await odeServices.http().get("/zimbra/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});jt.status!==200&&mt(0),mt(jt.count)}catch{console.error("error"),mt(0)}else try{const jt=await odeServices.http().get("/conversation/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});mt(jt.count)}catch{console.error("error"),mt(0)}},[Pt]),Rt=reactExports.useCallback(()=>{let jt="";odeServices.http().get("/userbook/preference/zimbra").then(Nt=>{try{Nt.preference&&JSON.parse(Nt.preference).modeExpert&&Dt?jt="/zimbra/preauth":jt=window.location.origin+"/zimbra/zimbra"}catch{jt="/zimbra/zimbra"}}),It(jt)},[Dt]);reactExports.useEffect(()=>{(async()=>{try{await Et()}catch(jt){console.error(jt)}})(),Rt()},[Rt,Et]);function Ot(){if(rt.current){const jt=rt.current.value;window.location.href=`/searchengine#/${jt}`}}const kt=reactExports.useCallback(()=>{ot(!st)},[st]),Ct=async()=>{await odeServices.session().logout(),window.location.href="/auth/login"};return reactExports.useMemo(()=>({inputRef:rt,conversation:xt,zimbra:St,community:bt,title:nt,bookmarkedApps:yt,appsRef:at,isAppsHovered:ut,popoverAppsId:ct,searchRef:lt,isSearchHovered:dt,popoverSearchId:ft,messages:ht,userAvatar:vt,userName:wt,welcomeUser:gt,communityWorkflow:At,conversationWorflow:Ft,zimbraWorkflow:Pt,searchWorkflow:Tt,isCollapsed:st,msgLink:Mt,redirectToSearch:Ot,toggleCollapsedNav:kt,handleLogout:Ct}),[at,yt,bt,At,xt,Ft,ut,st,dt,ht,Mt,ct,ft,lt,Tt,nt,kt,vt,wt,gt,St,Pt])}function useOdeIcons(){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 et(at){let ut="";switch(ut=(at==null?void 0:at.icon)!==void 0?at==null?void 0:at.icon.trim().toLowerCase():"placeholder",ut&&ut.length>0?ut.endsWith("-large")&&(ut=ut.replace("-large","")):ut=(at==null?void 0:at.displayName)!==void 0?at==null?void 0:at.displayName.trim().toLowerCase():"",ut){case"admin.title":ut="admin";break;case"banques des savoirs":ut="banquesavoir";break;case"collaborativewall":ut="collaborative-wall";break;case"communautés":ut="community";break;case"directory.user":ut="userbook";break;case"emploi du temps":ut="edt";break;case"messagerie":ut="conversation";break;case"news":ut="actualites";break;case"homeworks":case"cahier de texte":ut="cahier-de-texte";break;case"diary":case"cahier de texte 2d":ut="cahier-textes";break}return ut}function tt(at){return at&&(at.startsWith("/")||at.startsWith("http://")||at.startsWith("https://"))}function rt(at){const ut=et(at);return ut?`color-app-${ut}`:"color-app-placeholder"}function nt(at){const ut=et(at);return ut?`bg-app-${ut}`:"bg-app-placeholder"}function st(at){const ut=et(at);return ut?`bg-light-${ut}`:"bg-light-placeholder"}function ot(at){return _e[at.platformConf.name]}return{getIconClass:rt,getBackgroundIconClass:nt,getBackgroundLightIconClass:st,getIconCode:et,getWidgetIconClass:ot,isIconUrl:tt}}function useXitiTrackPageLoad(){const[_e,et]=reactExports.useState("pending"),{currentApp:tt}=useOdeClient();reactExports.useEffect(()=>{rt()},[]);const rt=async()=>{if(!tt){et("[Xiti] Error, currentApp is not defined.");return}try{await odeServices.analytics().trackPageLoad(window.location.pathname,tt),console.info(`[Xiti] Success tracking page ${window.location.pathname}`),et(`[Xiti] Success tracking page ${window.location.pathname}`)}catch(nt){console.error("[Xiti] Error Tracking Page Load",nt),et(`[Xiti] Error Tracking Page Load: ${nt}`)}};return{xitiStatus:_e}}const ReactQueryDevtools=function(){return null};var createRoot,m=reactDomExports;createRoot=m.createRoot,m.hydrateRoot;function r$1(_e){var et,tt,rt="";if(typeof _e=="string"||typeof _e=="number")rt+=_e;else if(typeof _e=="object")if(Array.isArray(_e))for(et=0;et<_e.length;et++)_e[et]&&(tt=r$1(_e[et]))&&(rt&&(rt+=" "),rt+=tt);else for(et in _e)_e[et]&&(rt&&(rt+=" "),rt+=et);return rt}function clsx(){for(var _e,et,tt=0,rt="";tt<arguments.length;)(_e=arguments[tt++])&&(et=r$1(_e))&&(rt&&(rt+=" "),rt+=et);return rt}function Main({children:_e,className:et,...tt}){const rt=clsx("container-fluid",et);return jsxRuntimeExports.jsx("main",{className:rt,...tt,children:_e})}Main.displayName="Main";const ActionBar=reactExports.forwardRef(({children:_e},et)=>jsxRuntimeExports.jsx("div",{ref:et,className:"actionbar",children:_e}));ActionBar.displayName="ActionBar";const ActionBar$1=ActionBar,SvgAlertCircle=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.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":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.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"}),jsxRuntimeExports.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"})]}),SvgAlertCircle$1=SvgAlertCircle,SvgArrowLeft=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.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":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.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"}),jsxRuntimeExports.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"})]}),SvgArrowLeft$1=SvgArrowLeft,SvgArrowRight=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.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":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.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"}),jsxRuntimeExports.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"})]}),SvgArrowRight$1=SvgArrowRight,SvgBookmark=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.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"})]}),SvgBookmark$1=SvgBookmark,SvgBurgerMenu=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.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":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.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"})]}),SvgBurgerMenu$1=SvgBurgerMenu,SvgClose=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.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":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.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"}),jsxRuntimeExports.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"})]}),SvgClose$1=SvgClose,SvgCopy=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.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":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.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"})]}),SvgCopy$1=SvgCopy,SvgDelete=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.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":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.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"})]}),SvgDelete$1=SvgDelete,SvgEdit=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.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":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.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"}),jsxRuntimeExports.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"})]}),SvgEdit$1=SvgEdit,SvgError=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.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":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.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"})]}),SvgError$1=SvgError,SvgFiles=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.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":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.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"})]}),SvgFiles$1=SvgFiles,SvgFolder=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.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":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.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"})]}),SvgFolder$1=SvgFolder,SvgGlobe=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.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":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.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"})]}),SvgGlobe$1=SvgGlobe,SvgInfoCircle=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.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":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.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"}),jsxRuntimeExports.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"})]}),SvgInfoCircle$1=SvgInfoCircle,SvgLoader=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.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":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.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"})]}),SvgLoader$1=SvgLoader,SvgOptions=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.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":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("circle",{cx:12,cy:4,r:2.5,fill:"currentColor"}),jsxRuntimeExports.jsx("circle",{cx:12,cy:12,r:2.5,fill:"currentColor"}),jsxRuntimeExports.jsx("circle",{cx:12,cy:20,r:2.5,fill:"currentColor"})]}),SvgOptions$1=SvgOptions,SvgPlus=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.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":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.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"})]}),SvgPlus$1=SvgPlus,SvgRafterDown=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.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":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.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"})]}),SvgRafterDown$1=SvgRafterDown,SvgRafterRight=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.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":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.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"})]}),SvgRafterRight$1=SvgRafterRight,SvgRafterUp=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.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":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.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"})]}),SvgRafterUp$1=SvgRafterUp,SvgSave=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.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":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.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"})]}),SvgSave$1=SvgSave,SvgSearch$2=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.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":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.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"})]}),SvgSearch$1$1=SvgSearch$2,SvgSuccessOutline=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.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":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.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"}),jsxRuntimeExports.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"})]}),SvgSuccessOutline$1=SvgSuccessOutline,SvgUsers=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.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":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("g",{fill:"currentColor",fillRule:"evenodd",clipPath:"url(#users_svg__a)",clipRule:"evenodd",children:jsxRuntimeExports.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"})}),jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("clipPath",{id:"users_svg__a",children:jsxRuntimeExports.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),SvgUsers$1=SvgUsers,Alert=reactExports.forwardRef(({type:_e="success",className:et="",children:tt,button:rt,isDismissible:nt=!1,isToast:st=!1,autoClose:ot=!1,autoCloseDelay:at=3e3,onClose:ut,onVisibilityChange:lt},dt)=>{const[ct,ft]=reactExports.useState(!0),ht=reactExports.useRef(null),mt=reactExports.useCallback(()=>{ft(!1),ut==null||ut()},[ut]);reactExports.useImperativeHandle(dt,()=>({show:vt,hide:mt,...ht.current})),reactExports.useLayoutEffect(()=>{lt==null||lt(ct)},[ct,lt]),reactExports.useEffect(()=>{ot&&ct&&setTimeout(()=>{mt()},at)},[ot,at,mt,ct]);const vt=()=>{ft(!0)},wt={success:{icon:jsxRuntimeExports.jsx(SvgSuccessOutline$1,{}),classModifier:"alert-success"},warning:{icon:jsxRuntimeExports.jsx(SvgAlertCircle$1,{}),classModifier:"alert-warning"},info:{icon:jsxRuntimeExports.jsx(SvgInfoCircle$1,{}),classModifier:"alert-info"},danger:{icon:jsxRuntimeExports.jsx(SvgError$1,{}),classModifier:"alert-danger"}},gt={"is-dismissible":nt,"is-toast ":st},yt=clsx("alert gap-12",wt[_e].classModifier,gt,et);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ct?jsxRuntimeExports.jsxs("div",{ref:ht,className:yt,role:"alert",children:[wt[_e].icon,jsxRuntimeExports.jsx("div",{className:"alert-content small",children:tt}),rt&&jsxRuntimeExports.jsx("div",{className:"ms-12",children:rt}),nt&&jsxRuntimeExports.jsx("div",{className:"btn-close-container",children:jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-close","data-bs-dismiss":"alert","aria-label":"Close",onClick:mt})}),ot&&jsxRuntimeExports.jsx("div",{className:"alert-progress",style:{transform:"scaleX(0)"}})]}):null})});Alert.displayName="Alert";const Alert$1=Alert,Context$1=reactExports.createContext({code:"placeholder",displayName:"Application",headingStyle:"h3",icon:"",isHeading:!1,level:"h1",bgCode:""});function useAppCard(){const _e=reactExports.useContext(Context$1);if(!_e)throw new Error("AppCard compound components cannot be rendered outside the AppCard component");return _e}const Heading=reactExports.forwardRef(({level:_e="h1",headingStyle:et="h1",children:tt,className:rt,...nt},st)=>{const ot=clsx(et,rt);return jsxRuntimeExports.jsx(_e,{ref:st,className:ot,...nt,children:tt})});Heading.displayName="Heading";const Heading$1=Heading,AppName=()=>{const{isHeading:_e,level:et,headingStyle:tt,displayName:rt}=useAppCard(),{t:nt}=useTranslation();return _e?jsxRuntimeExports.jsx(Heading$1,{level:et,headingStyle:tt,children:nt(rt)}):jsxRuntimeExports.jsx("p",{children:nt(rt)})};AppName.displayName="AppCard.Name";const AppName$1=AppName,AppResource=({resourceName:_e})=>{const{isHeading:et,level:tt,headingStyle:rt}=useAppCard();if(_e)return et?jsxRuntimeExports.jsxs(Heading$1,{level:tt,headingStyle:rt,children:["- ",_e]}):jsxRuntimeExports.jsxs("p",{children:["- ",_e]})};AppResource.displayName="AppCard.Resource";const AppResource$1=AppResource,Root$3=reactExports.forwardRef(({app:_e,as:et,children:tt,headingStyle:rt,isHeading:nt=!1,level:st,className:ot,...at},ut)=>{const{getIconClass:lt,getBackgroundLightIconClass:dt,getIconCode:ct}=useOdeIcons(),{icon:ft}=_e,ht=_e.displayName||"Application",mt=clsx("application application-react application-title",lt(_e),ot),vt=reactExports.useMemo(()=>({icon:ft,displayName:ht,isHeading:nt,level:st,headingStyle:rt,code:ct(_e),bgCode:dt(_e)}),[_e,ht,dt,ct,rt,ft,nt,st]),wt=et||"div";return jsxRuntimeExports.jsx(Context$1.Provider,{value:vt,children:jsxRuntimeExports.jsx(wt,{ref:ut,className:mt,...at,children:tt})})}),AppCard=Object.assign(Root$3,{Name:AppName$1,Resource:AppResource$1});Root$3.displayName="AppCard";const AppCard$1=AppCard,Image=reactExports.forwardRef(({src:_e,alt:et,imgPlaceholder:tt,ratio:rt,objectFit:nt,className:st,...ot},at)=>{const ut=tt??"/assets/themes/ode-bootstrap/images/image-placeholder.png",{imgSrc:lt,onError:dt}=useImage({src:_e,placeholder:ut}),ct={"ratio ratio-1x1":rt==="1","ratio ratio-4x3":rt==="4","ratio ratio-16x9":rt==="16","ratio ratio-21x9":rt==="21"},ft={"object-fit-contain":nt==="contain","object-fit-cover":nt==="cover","object-fit-fill":nt==="fill","object-fit-scale":nt==="scale","object-fit-none":nt==="none"},ht=clsx({...ct}),mt=clsx({...ft},st),vt=jsxRuntimeExports.jsx("img",{alt:et,onError:dt,ref:at,src:lt,className:mt,...ot});return rt?jsxRuntimeExports.jsx("div",{className:ht,children:vt}):vt});Image.displayName="Image";const Image$1=Image,AppIcon=reactExports.forwardRef(({app:_e,size:et="24",iconFit:tt="contain",variant:rt="square"},nt)=>{const{isIconUrl:st,getIconCode:ot}=useOdeIcons(),at=rt==="square",ut=rt==="rounded",lt=rt==="circle",dt=tt==="contain",ct=tt==="ratio",ft={"icon-xs":et==="24","icon-sm":et==="40","icon-md":et==="48","icon-lg":et==="80","icon-xl":et==="160"},ht={square:at,rounded:ut,"rounded-circle":lt},mt={"icon-contain":dt,"icon-ratio":ct},vt=(_e==null?void 0:_e.icon)!==void 0?_e.icon:"placeholder",wt=(_e==null?void 0:_e.displayName)!==void 0?_e.displayName:"",gt=_e?ot(_e):"",yt=st(vt),xt=gt||"placeholder",St=clsx("app-icon",{...ft,...ht,...mt,[`bg-light-${xt}`]:xt&&!dt,[`color-app-${xt}`]:xt});return yt?jsxRuntimeExports.jsx(Image$1,{src:vt,alt:wt,objectFit:"contain",width:et,height:et,className:"h-full"}):jsxRuntimeExports.jsx("div",{className:St,style:{width:et+"px",height:et+"px"},children:jsxRuntimeExports.jsx("svg",{ref:nt,width:et,height:et,role:"img",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:jsxRuntimeExports.jsx("use",{xlinkHref:`/assets/themes/ode-bootstrap/icons/apps.svg#${xt}`})})})});AppIcon.displayName="AppIcon";const AppIcon$1=AppIcon,Avatar=reactExports.forwardRef(({variant:_e="square",size:et="md",alt:tt,src:rt,imgPlaceholder:nt,className:st,...ot},at)=>{const ut=nt||"/assets/themes/ode-bootstrap/images/no-avatar.svg",lt=clsx("avatar",{"avatar-xs":et==="xs","avatar-sm":et==="sm","avatar-md":et==="md","avatar-lg":et==="lg","avatar-xl":et==="xl",square:_e==="square",rounded:_e==="rounded","rounded-circle":_e==="circle"},st);return jsxRuntimeExports.jsx("div",{ref:at,className:lt,children:jsxRuntimeExports.jsx(Image$1,{src:rt||ut,alt:tt,imgPlaceholder:ut,...ot})})});Avatar.displayName="Avatar";const Avatar$1=Avatar,Loading=reactExports.forwardRef((_e,et)=>{const{isLoading:tt,loadingIcon:rt,loadingPosition:nt="left",children:st,...ot}=_e,at=()=>{let lt;return rt?lt=rt:lt=jsxRuntimeExports.jsx(SvgLoader$1,{...ot,"aria-label":"Loading"}),lt},ut=clsx("loading",{"is-loading":tt});return jsxRuntimeExports.jsxs("div",{className:ut,role:"status",ref:et,children:[(!nt||nt==="left")&&at(),st,nt==="right"&&at()]})});Loading.displayName="Loading";const Loading$1=Loading,Button=reactExports.forwardRef(({color:_e="primary",type:et="button",size:tt="md",children:rt,isLoading:nt,loadingIcon:st,loadingPosition:ot,leftIcon:at,rightIcon:ut,className:lt,variant:dt="filled",...ct},ft)=>{const ht=clsx("btn",{[`btn-filled btn-${_e}`]:dt==="filled",[`btn-${dt}-${_e}`]:dt==="outline"||dt==="ghost","btn-icon":!rt,"btn-loading":nt,"btn-lg":tt==="lg","btn-sm":tt==="sm"},lt);return jsxRuntimeExports.jsx("button",{ref:ft,className:ht,type:et,...ct,children:nt?jsxRuntimeExports.jsx(Loading$1,{isLoading:!0,loadingIcon:st,loadingPosition:ot,children:rt}):jsxRuntimeExports.jsxs("span",{children:[at,rt,ut]})})});Button.displayName="Button";const Button$1=Button,IconButton=reactExports.forwardRef(({icon:_e,className:et,...tt},rt)=>{const nt={...tt,className:clsx("btn-icon btn-sm",et)};return jsxRuntimeExports.jsx(Button$1,{ref:rt,...nt,children:_e})});IconButton.displayName="IconButton";const IconButton$1=IconButton,SearchButton=reactExports.forwardRef(({icon:_e=jsxRuntimeExports.jsx(SvgSearch$1$1,{}),onClick:et,...tt},rt)=>{const nt=clsx("btn-search btn-sm");return jsxRuntimeExports.jsx(IconButton$1,{ref:rt,className:nt,icon:_e,...tt,onClick:et})});SearchButton.displayName="SearchButton";const SearchButton$1=SearchButton,SvgCommunity=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.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":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.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"})]}),SvgCommunity$1=SvgCommunity,SvgDisconnect=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.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":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.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"})]}),SvgDisconnect$1=SvgDisconnect,SvgHome=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.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":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.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"})]}),SvgHome$1=SvgHome,SvgMyApps=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.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":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.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"})]}),SvgMyApps$1=SvgMyApps,SvgNeoAssistance=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.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":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.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"})]}),SvgNeoAssistance$1=SvgNeoAssistance,SvgNeoMessaging=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.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":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.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"})]}),SvgNeoMessaging$1=SvgNeoMessaging,SvgNewRelease=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.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"})]}),SvgNewRelease$1=SvgNewRelease,SvgOneAssistance=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.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":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.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"})]}),SvgOneAssistance$1=SvgOneAssistance,SvgOneMessaging=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.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":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.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"})]}),SvgOneMessaging$1=SvgOneMessaging,SvgOneProfile=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.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":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.jsx("g",{clipPath:"url(#one-profile_svg__a)",children:jsxRuntimeExports.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"})}),jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("clipPath",{id:"one-profile_svg__a",children:jsxRuntimeExports.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),SvgOneProfile$1=SvgOneProfile,SvgSearch=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.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":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.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"})]}),SvgSearch$1=SvgSearch,SvgUserbook=({title:_e,titleId:et,...tt})=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":et,...tt,children:[_e?jsxRuntimeExports.jsx("title",{id:et,children:_e}):null,jsxRuntimeExports.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"})]}),SvgUserbook$1=SvgUserbook;var __defProp=Object.defineProperty,__export=(_e,et)=>{for(var tt in et)__defProp(_e,tt,{get:et[tt],enumerable:!0})},globals_exports={};__export(globals_exports,{assign:()=>assign,colors:()=>colors,createStringInterpolator:()=>createStringInterpolator,skipAnimation:()=>skipAnimation,to:()=>to,willAdvance:()=>willAdvance});var updateQueue=makeQueue(),raf=_e=>schedule(_e,updateQueue),writeQueue=makeQueue();raf.write=_e=>schedule(_e,writeQueue);var onStartQueue=makeQueue();raf.onStart=_e=>schedule(_e,onStartQueue);var onFrameQueue=makeQueue();raf.onFrame=_e=>schedule(_e,onFrameQueue);var onFinishQueue=makeQueue();raf.onFinish=_e=>schedule(_e,onFinishQueue);var timeouts=[];raf.setTimeout=(_e,et)=>{const tt=raf.now()+et,rt=()=>{const st=timeouts.findIndex(ot=>ot.cancel==rt);~st&&timeouts.splice(st,1),pendingCount-=~st?1:0},nt={time:tt,handler:_e,cancel:rt};return timeouts.splice(findTimeout(tt),0,nt),pendingCount+=1,start(),nt};var findTimeout=_e=>~(~timeouts.findIndex(et=>et.time>_e)||~timeouts.length);raf.cancel=_e=>{onStartQueue.delete(_e),onFrameQueue.delete(_e),onFinishQueue.delete(_e),updateQueue.delete(_e),writeQueue.delete(_e)};raf.sync=_e=>{sync=!0,raf.batchedUpdates(_e),sync=!1};raf.throttle=_e=>{let et;function tt(){try{_e(...et)}finally{et=null}}function rt(...nt){et=nt,raf.onStart(tt)}return rt.handler=_e,rt.cancel=()=>{onStartQueue.delete(tt),et=null},rt};var nativeRaf=typeof window<"u"?window.requestAnimationFrame:()=>{};raf.use=_e=>nativeRaf=_e;raf.now=typeof performance<"u"?()=>performance.now():Date.now;raf.batchedUpdates=_e=>_e();raf.catch=console.error;raf.frameLoop="always";raf.advance=()=>{raf.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):update()};var ts=-1,pendingCount=0,sync=!1;function schedule(_e,et){sync?(et.delete(_e),_e(0)):(et.add(_e),start())}function start(){ts<0&&(ts=0,raf.frameLoop!=="demand"&&nativeRaf(loop))}function stop(){ts=-1}function loop(){~ts&&(nativeRaf(loop),raf.batchedUpdates(update))}function update(){const _e=ts;ts=raf.now();const et=findTimeout(ts);if(et&&(eachSafely(timeouts.splice(0,et),tt=>tt.handler()),pendingCount-=et),!pendingCount){stop();return}onStartQueue.flush(),updateQueue.flush(_e?Math.min(64,ts-_e):16.667),onFrameQueue.flush(),writeQueue.flush(),onFinishQueue.flush()}function makeQueue(){let _e=new Set,et=_e;return{add(tt){pendingCount+=et==_e&&!_e.has(tt)?1:0,_e.add(tt)},delete(tt){return pendingCount-=et==_e&&_e.has(tt)?1:0,_e.delete(tt)},flush(tt){et.size&&(_e=new Set,pendingCount-=et.size,eachSafely(et,rt=>rt(tt)&&_e.add(rt)),pendingCount+=_e.size,et=_e)}}}function eachSafely(_e,et){_e.forEach(tt=>{try{et(tt)}catch(rt){raf.catch(rt)}})}function noop(){}var defineHidden=(_e,et,tt)=>Object.defineProperty(_e,et,{value:tt,writable:!0,configurable:!0}),is={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 isEqual(_e,et){if(is.arr(_e)){if(!is.arr(et)||_e.length!==et.length)return!1;for(let tt=0;tt<_e.length;tt++)if(_e[tt]!==et[tt])return!1;return!0}return _e===et}var each=(_e,et)=>_e.forEach(et);function eachProp(_e,et,tt){if(is.arr(_e)){for(let rt=0;rt<_e.length;rt++)et.call(tt,_e[rt],`${rt}`);return}for(const rt in _e)_e.hasOwnProperty(rt)&&et.call(tt,_e[rt],rt)}var toArray=_e=>is.und(_e)?[]:is.arr(_e)?_e:[_e];function flush(_e,et){if(_e.size){const tt=Array.from(_e);_e.clear(),each(tt,et)}}var flushCalls=(_e,...et)=>flush(_e,tt=>tt(...et)),isSSR=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),createStringInterpolator,to,colors=null,skipAnimation=!1,willAdvance=noop,assign=_e=>{_e.to&&(to=_e.to),_e.now&&(raf.now=_e.now),_e.colors!==void 0&&(colors=_e.colors),_e.skipAnimation!=null&&(skipAnimation=_e.skipAnimation),_e.createStringInterpolator&&(createStringInterpolator=_e.createStringInterpolator),_e.requestAnimationFrame&&raf.use(_e.requestAnimationFrame),_e.batchedUpdates&&(raf.batchedUpdates=_e.batchedUpdates),_e.willAdvance&&(willAdvance=_e.willAdvance),_e.frameLoop&&(raf.frameLoop=_e.frameLoop)},startQueue=new Set,currentFrame=[],prevFrame=[],priority=0,frameLoop={get idle(){return!startQueue.size&&!currentFrame.length},start(_e){priority>_e.priority?(startQueue.add(_e),raf.onStart(flushStartQueue)):(startSafely(_e),raf(advance))},advance,sort(_e){if(priority)raf.onFrame(()=>frameLoop.sort(_e));else{const et=currentFrame.indexOf(_e);~et&&(currentFrame.splice(et,1),startUnsafely(_e))}},clear(){currentFrame=[],startQueue.clear()}};function flushStartQueue(){startQueue.forEach(startSafely),startQueue.clear(),raf(advance)}function startSafely(_e){currentFrame.includes(_e)||startUnsafely(_e)}function startUnsafely(_e){currentFrame.splice(findIndex(currentFrame,et=>et.priority>_e.priority),0,_e)}function advance(_e){const et=prevFrame;for(let tt=0;tt<currentFrame.length;tt++){const rt=currentFrame[tt];priority=rt.priority,rt.idle||(willAdvance(rt),rt.advance(_e),rt.idle||et.push(rt))}return priority=0,prevFrame=currentFrame,prevFrame.length=0,currentFrame=et,currentFrame.length>0}function findIndex(_e,et){const tt=_e.findIndex(et);return tt<0?_e.length:tt}var clamp=(_e,et,tt)=>Math.min(Math.max(tt,_e),et),colors2={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},NUMBER="[-+]?\\d*\\.?\\d+",PERCENTAGE=NUMBER+"%";function call(..._e){return"\\(\\s*("+_e.join(")\\s*,\\s*(")+")\\s*\\)"}var rgb=new RegExp("rgb"+call(NUMBER,NUMBER,NUMBER)),rgba=new RegExp("rgba"+call(NUMBER,NUMBER,NUMBER,NUMBER)),hsl=new RegExp("hsl"+call(NUMBER,PERCENTAGE,PERCENTAGE)),hsla=new RegExp("hsla"+call(NUMBER,PERCENTAGE,PERCENTAGE,NUMBER)),hex3=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6=/^#([0-9a-fA-F]{6})$/,hex8=/^#([0-9a-fA-F]{8})$/;function normalizeColor(_e){let et;return typeof _e=="number"?_e>>>0===_e&&_e>=0&&_e<=4294967295?_e:null:(et=hex6.exec(_e))?parseInt(et[1]+"ff",16)>>>0:colors&&colors[_e]!==void 0?colors[_e]:(et=rgb.exec(_e))?(parse255(et[1])<<24|parse255(et[2])<<16|parse255(et[3])<<8|255)>>>0:(et=rgba.exec(_e))?(parse255(et[1])<<24|parse255(et[2])<<16|parse255(et[3])<<8|parse1(et[4]))>>>0:(et=hex3.exec(_e))?parseInt(et[1]+et[1]+et[2]+et[2]+et[3]+et[3]+"ff",16)>>>0:(et=hex8.exec(_e))?parseInt(et[1],16)>>>0:(et=hex4.exec(_e))?parseInt(et[1]+et[1]+et[2]+et[2]+et[3]+et[3]+et[4]+et[4],16)>>>0:(et=hsl.exec(_e))?(hslToRgb(parse360(et[1]),parsePercentage(et[2]),parsePercentage(et[3]))|255)>>>0:(et=hsla.exec(_e))?(hslToRgb(parse360(et[1]),parsePercentage(et[2]),parsePercentage(et[3]))|parse1(et[4]))>>>0:null}function hue2rgb(_e,et,tt){return tt<0&&(tt+=1),tt>1&&(tt-=1),tt<1/6?_e+(et-_e)*6*tt:tt<1/2?et:tt<2/3?_e+(et-_e)*(2/3-tt)*6:_e}function hslToRgb(_e,et,tt){const rt=tt<.5?tt*(1+et):tt+et-tt*et,nt=2*tt-rt,st=hue2rgb(nt,rt,_e+1/3),ot=hue2rgb(nt,rt,_e),at=hue2rgb(nt,rt,_e-1/3);return Math.round(st*255)<<24|Math.round(ot*255)<<16|Math.round(at*255)<<8}function parse255(_e){const et=parseInt(_e,10);return et<0?0:et>255?255:et}function parse360(_e){return(parseFloat(_e)%360+360)%360/360}function parse1(_e){const et=parseFloat(_e);return et<0?0:et>1?255:Math.round(et*255)}function parsePercentage(_e){const et=parseFloat(_e);return et<0?0:et>100?1:et/100}function colorToRgba(_e){let et=normalizeColor(_e);if(et===null)return _e;et=et||0;const tt=(et&4278190080)>>>24,rt=(et&16711680)>>>16,nt=(et&65280)>>>8,st=(et&255)/255;return`rgba(${tt}, ${rt}, ${nt}, ${st})`}var createInterpolator=(_e,et,tt)=>{if(is.fun(_e))return _e;if(is.arr(_e))return createInterpolator({range:_e,output:et,extrapolate:tt});if(is.str(_e.output[0]))return createStringInterpolator(_e);const rt=_e,nt=rt.output,st=rt.range||[0,1],ot=rt.extrapolateLeft||rt.extrapolate||"extend",at=rt.extrapolateRight||rt.extrapolate||"extend",ut=rt.easing||(lt=>lt);return lt=>{const dt=findRange(lt,st);return interpolate(lt,st[dt],st[dt+1],nt[dt],nt[dt+1],ut,ot,at,rt.map)}};function interpolate(_e,et,tt,rt,nt,st,ot,at,ut){let lt=ut?ut(_e):_e;if(lt<et){if(ot==="identity")return lt;ot==="clamp"&&(lt=et)}if(lt>tt){if(at==="identity")return lt;at==="clamp"&&(lt=tt)}return rt===nt?rt:et===tt?_e<=et?rt:nt:(et===-1/0?lt=-lt:tt===1/0?lt=lt-et:lt=(lt-et)/(tt-et),lt=st(lt),rt===-1/0?lt=-lt:nt===1/0?lt=lt+rt:lt=lt*(nt-rt)+rt,lt)}function findRange(_e,et){for(var tt=1;tt<et.length-1&&!(et[tt]>=_e);++tt);return tt-1}var steps=(_e,et="end")=>tt=>{tt=et==="end"?Math.min(tt,.999):Math.max(tt,.001);const rt=tt*_e,nt=et==="end"?Math.floor(rt):Math.ceil(rt);return clamp(0,1,nt/_e)},c1=1.70158,c2=c1*1.525,c3=c1+1,c4=2*Math.PI/3,c5=2*Math.PI/4.5,bounceOut=_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,easings={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=>c3*_e*_e*_e-c1*_e*_e,easeOutBack:_e=>1+c3*Math.pow(_e-1,3)+c1*Math.pow(_e-1,2),easeInOutBack:_e=>_e<.5?Math.pow(2*_e,2)*((c2+1)*2*_e-c2)/2:(Math.pow(2*_e-2,2)*((c2+1)*(_e*2-2)+c2)+2)/2,easeInElastic:_e=>_e===0?0:_e===1?1:-Math.pow(2,10*_e-10)*Math.sin((_e*10-10.75)*c4),easeOutElastic:_e=>_e===0?0:_e===1?1:Math.pow(2,-10*_e)*Math.sin((_e*10-.75)*c4)+1,easeInOutElastic:_e=>_e===0?0:_e===1?1:_e<.5?-(Math.pow(2,20*_e-10)*Math.sin((20*_e-11.125)*c5))/2:Math.pow(2,-20*_e+10)*Math.sin((20*_e-11.125)*c5)/2+1,easeInBounce:_e=>1-bounceOut(1-_e),easeOutBounce:bounceOut,easeInOutBounce:_e=>_e<.5?(1-bounceOut(1-2*_e))/2:(1+bounceOut(2*_e-1))/2,steps},$get=Symbol.for("FluidValue.get"),$observers=Symbol.for("FluidValue.observers"),hasFluidValue=_e=>!!(_e&&_e[$get]),getFluidValue=_e=>_e&&_e[$get]?_e[$get]():_e,getFluidObservers=_e=>_e[$observers]||null;function callFluidObserver(_e,et){_e.eventObserved?_e.eventObserved(et):_e(et)}function callFluidObservers(_e,et){const tt=_e[$observers];tt&&tt.forEach(rt=>{callFluidObserver(rt,et)})}var FluidValue=class{constructor(_e){if(!_e&&!(_e=this.get))throw Error("Unknown getter");setFluidGetter(this,_e)}},setFluidGetter=(_e,et)=>setHidden(_e,$get,et);function addFluidObserver(_e,et){if(_e[$get]){let tt=_e[$observers];tt||setHidden(_e,$observers,tt=new Set),tt.has(et)||(tt.add(et),_e.observerAdded&&_e.observerAdded(tt.size,et))}return et}function removeFluidObserver(_e,et){const tt=_e[$observers];if(tt&&tt.has(et)){const rt=tt.size-1;rt?tt.delete(et):_e[$observers]=null,_e.observerRemoved&&_e.observerRemoved(rt,et)}}var setHidden=(_e,et,tt)=>Object.defineProperty(_e,et,{value:tt,writable:!0,configurable:!0}),numberRegex=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,colorRegex=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,unitRegex=new RegExp(`(${numberRegex.source})(%|[a-z]+)`,"i"),rgbaRegex=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,cssVariableRegex=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,variableToRgba=_e=>{const[et,tt]=parseCSSVariable(_e);if(!et||isSSR())return _e;const rt=window.getComputedStyle(document.documentElement).getPropertyValue(et);if(rt)return rt.trim();if(tt&&tt.startsWith("--")){const nt=window.getComputedStyle(document.documentElement).getPropertyValue(tt);return nt||_e}else{if(tt&&cssVariableRegex.test(tt))return variableToRgba(tt);if(tt)return tt}return _e},parseCSSVariable=_e=>{const et=cssVariableRegex.exec(_e);if(!et)return[,];const[,tt,rt]=et;return[tt,rt]},namedColorRegex,rgbaRound=(_e,et,tt,rt,nt)=>`rgba(${Math.round(et)}, ${Math.round(tt)}, ${Math.round(rt)}, ${nt})`,createStringInterpolator2=_e=>{namedColorRegex||(namedColorRegex=colors?new RegExp(`(${Object.keys(colors).join("|")})(?!\\w)`,"g"):/^\b$/);const et=_e.output.map(st=>getFluidValue(st).replace(cssVariableRegex,variableToRgba).replace(colorRegex,colorToRgba).replace(namedColorRegex,colorToRgba)),tt=et.map(st=>st.match(numberRegex).map(Number)),nt=tt[0].map((st,ot)=>tt.map(at=>{if(!(ot in at))throw Error('The arity of each "output" value must be equal');return at[ot]})).map(st=>createInterpolator({..._e,output:st}));return st=>{var ut;const ot=!unitRegex.test(et[0])&&((ut=et.find(lt=>unitRegex.test(lt)))==null?void 0:ut.replace(numberRegex,""));let at=0;return et[0].replace(numberRegex,()=>`${nt[at++](st)}${ot||""}`).replace(rgbaRegex,rgbaRound)}},prefix="react-spring: ",once=_e=>{const et=_e;let tt=!1;if(typeof et!="function")throw new TypeError(`${prefix}once requires a function parameter`);return(...rt)=>{tt||(et(...rt),tt=!0)}},warnInterpolate=once(console.warn);function deprecateInterpolate(){warnInterpolate(`${prefix}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var warnDirectCall=once(console.warn);function deprecateDirectCall(){warnDirectCall(`${prefix}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 isAnimatedString(_e){return is.str(_e)&&(_e[0]=="#"||/\d/.test(_e)||!isSSR()&&cssVariableRegex.test(_e)||_e in(colors||{}))}var useIsomorphicLayoutEffect=isSSR()?reactExports.useEffect:reactExports.useLayoutEffect,useIsMounted=()=>{const _e=reactExports.useRef(!1);return useIsomorphicLayoutEffect(()=>(_e.current=!0,()=>{_e.current=!1}),[]),_e};function useForceUpdate(){const _e=reactExports.useState()[1],et=useIsMounted();return()=>{et.current&&_e(Math.random())}}function useMemoOne(_e,et){const[tt]=reactExports.useState(()=>({inputs:et,result:_e()})),rt=reactExports.useRef(),nt=rt.current;let st=nt;return st?et&&st.inputs&&areInputsEqual(et,st.inputs)||(st={inputs:et,result:_e()}):st=tt,reactExports.useEffect(()=>{rt.current=st,nt==tt&&(tt.inputs=tt.result=void 0)},[st]),st.result}function areInputsEqual(_e,et){if(_e.length!==et.length)return!1;for(let tt=0;tt<_e.length;tt++)if(_e[tt]!==et[tt])return!1;return!0}var useOnce=_e=>reactExports.useEffect(_e,emptyDeps),emptyDeps=[];function usePrev(_e){const et=reactExports.useRef();return reactExports.useEffect(()=>{et.current=_e}),et.current}var $node=Symbol.for("Animated:node"),isAnimated=_e=>!!_e&&_e[$node]===_e,getAnimated=_e=>_e&&_e[$node],setAnimated=(_e,et)=>defineHidden(_e,$node,et),getPayload=_e=>_e&&_e[$node]&&_e[$node].getPayload(),Animated=class{constructor(){setAnimated(this,this)}getPayload(){return this.payload||[]}},AnimatedValue=class extends Animated{constructor(_e){super(),this._value=_e,this.done=!0,this.durationProgress=0,is.num(this._value)&&(this.lastPosition=this._value)}static create(_e){return new AnimatedValue(_e)}getPayload(){return[this]}getValue(){return this._value}setValue(_e,et){return is.num(_e)&&(this.lastPosition=_e,et&&(_e=Math.round(_e/et)*et,this.done&&(this.lastPosition=_e))),this._value===_e?!1:(this._value=_e,!0)}reset(){const{done:_e}=this;this.done=!1,is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,_e&&(this.lastVelocity=null),this.v0=null)}},AnimatedString=class extends AnimatedValue{constructor(_e){super(0),this._string=null,this._toString=createInterpolator({output:[_e,_e]})}static create(_e){return new AnimatedString(_e)}getValue(){const _e=this._string;return _e??(this._string=this._toString(this._value))}setValue(_e){if(is.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=createInterpolator({output:[this.getValue(),_e]})),this._value=0,super.reset()}},TreeContext={dependencies:null},AnimatedObject=class extends Animated{constructor(_e){super(),this.source=_e,this.setValue(_e)}getValue(_e){const et={};return eachProp(this.source,(tt,rt)=>{isAnimated(tt)?et[rt]=tt.getValue(_e):hasFluidValue(tt)?et[rt]=getFluidValue(tt):_e||(et[rt]=tt)}),et}setValue(_e){this.source=_e,this.payload=this._makePayload(_e)}reset(){this.payload&&each(this.payload,_e=>_e.reset())}_makePayload(_e){if(_e){const et=new Set;return eachProp(_e,this._addToPayload,et),Array.from(et)}}_addToPayload(_e){TreeContext.dependencies&&hasFluidValue(_e)&&TreeContext.dependencies.add(_e);const et=getPayload(_e);et&&each(et,tt=>this.add(tt))}},AnimatedArray=class extends AnimatedObject{constructor(_e){super(_e)}static create(_e){return new AnimatedArray(_e)}getValue(){return this.source.map(_e=>_e.getValue())}setValue(_e){const et=this.getPayload();return _e.length==et.length?et.map((tt,rt)=>tt.setValue(_e[rt])).some(Boolean):(super.setValue(_e.map(makeAnimated)),!0)}};function makeAnimated(_e){return(isAnimatedString(_e)?AnimatedString:AnimatedValue).create(_e)}function getAnimatedType(_e){const et=getAnimated(_e);return et?et.constructor:is.arr(_e)?AnimatedArray:isAnimatedString(_e)?AnimatedString:AnimatedValue}var withAnimated=(_e,et)=>{const tt=!is.fun(_e)||_e.prototype&&_e.prototype.isReactComponent;return reactExports.forwardRef((rt,nt)=>{const st=reactExports.useRef(null),ot=tt&&reactExports.useCallback(mt=>{st.current=updateRef(nt,mt)},[nt]),[at,ut]=getAnimatedState(rt,et),lt=useForceUpdate(),dt=()=>{const mt=st.current;if(tt&&!mt)return;(mt?et.applyAnimatedValues(mt,at.getValue(!0)):!1)===!1&<()},ct=new PropsObserver(dt,ut),ft=reactExports.useRef();useIsomorphicLayoutEffect(()=>(ft.current=ct,each(ut,mt=>addFluidObserver(mt,ct)),()=>{ft.current&&(each(ft.current.deps,mt=>removeFluidObserver(mt,ft.current)),raf.cancel(ft.current.update))})),reactExports.useEffect(dt,[]),useOnce(()=>()=>{const mt=ft.current;each(mt.deps,vt=>removeFluidObserver(vt,mt))});const ht=et.getComponentProps(at.getValue());return reactExports.createElement(_e,{...ht,ref:ot})})},PropsObserver=class{constructor(_e,et){this.update=_e,this.deps=et}eventObserved(_e){_e.type=="change"&&raf.write(this.update)}};function getAnimatedState(_e,et){const tt=new Set;return TreeContext.dependencies=tt,_e.style&&(_e={..._e,style:et.createAnimatedStyle(_e.style)}),_e=new AnimatedObject(_e),TreeContext.dependencies=null,[_e,tt]}function updateRef(_e,et){return _e&&(is.fun(_e)?_e(et):_e.current=et),et}var cacheKey=Symbol.for("AnimatedComponent"),createHost=(_e,{applyAnimatedValues:et=()=>!1,createAnimatedStyle:tt=nt=>new AnimatedObject(nt),getComponentProps:rt=nt=>nt}={})=>{const nt={applyAnimatedValues:et,createAnimatedStyle:tt,getComponentProps:rt},st=ot=>{const at=getDisplayName(ot)||"Anonymous";return is.str(ot)?ot=st[ot]||(st[ot]=withAnimated(ot,nt)):ot=ot[cacheKey]||(ot[cacheKey]=withAnimated(ot,nt)),ot.displayName=`Animated(${at})`,ot};return eachProp(_e,(ot,at)=>{is.arr(_e)&&(at=getDisplayName(ot)),st[at]=st(ot)}),{animated:st}},getDisplayName=_e=>is.str(_e)?_e:_e&&is.str(_e.displayName)?_e.displayName:is.fun(_e)&&_e.name||null;function callProp(_e,...et){return is.fun(_e)?_e(...et):_e}var matchProp=(_e,et)=>_e===!0||!!(et&&_e&&(is.fun(_e)?_e(et):toArray(_e).includes(et))),resolveProp=(_e,et)=>is.obj(_e)?et&&_e[et]:_e,getDefaultProp=(_e,et)=>_e.default===!0?_e[et]:_e.default?_e.default[et]:void 0,noopTransform=_e=>_e,getDefaultProps=(_e,et=noopTransform)=>{let tt=DEFAULT_PROPS;_e.default&&_e.default!==!0&&(_e=_e.default,tt=Object.keys(_e));const rt={};for(const nt of tt){const st=et(_e[nt],nt);is.und(st)||(rt[nt]=st)}return rt},DEFAULT_PROPS=["config","onProps","onStart","onChange","onPause","onResume","onRest"],RESERVED_PROPS={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 getForwardProps(_e){const et={};let tt=0;if(eachProp(_e,(rt,nt)=>{RESERVED_PROPS[nt]||(et[nt]=rt,tt++)}),tt)return et}function inferTo(_e){const et=getForwardProps(_e);if(et){const tt={to:et};return eachProp(_e,(rt,nt)=>nt in et||(tt[nt]=rt)),tt}return{..._e}}function computeGoal(_e){return _e=getFluidValue(_e),is.arr(_e)?_e.map(computeGoal):isAnimatedString(_e)?globals_exports.createStringInterpolator({range:[0,1],output:[_e,_e]})(1):_e}function hasProps(_e){for(const et in _e)return!0;return!1}function isAsyncTo(_e){return is.fun(_e)||is.arr(_e)&&is.obj(_e[0])}function detachRefs(_e,et){var tt;(tt=_e.ref)==null||tt.delete(_e),et==null||et.delete(_e)}function replaceRef(_e,et){var tt;et&&_e.ref!==et&&((tt=_e.ref)==null||tt.delete(_e),et.add(_e),_e.ref=et)}var config={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}},defaults={...config.default,mass:1,damping:1,easing:easings.linear,clamp:!1},AnimationConfig=class{constructor(){this.velocity=0,Object.assign(this,defaults)}};function mergeConfig(_e,et,tt){tt&&(tt={...tt},sanitizeConfig(tt,et),et={...tt,...et}),sanitizeConfig(_e,et),Object.assign(_e,et);for(const ot in defaults)_e[ot]==null&&(_e[ot]=defaults[ot]);let{frequency:rt,damping:nt}=_e;const{mass:st}=_e;return is.und(rt)||(rt<.01&&(rt=.01),nt<0&&(nt=0),_e.tension=Math.pow(2*Math.PI/rt,2)*st,_e.friction=4*Math.PI*nt*st/rt),_e}function sanitizeConfig(_e,et){if(!is.und(et.decay))_e.duration=void 0;else{const tt=!is.und(et.tension)||!is.und(et.friction);(tt||!is.und(et.frequency)||!is.und(et.damping)||!is.und(et.mass))&&(_e.duration=void 0,_e.decay=void 0),tt&&(_e.frequency=void 0)}}var emptyArray=[],Animation=class{constructor(){this.changed=!1,this.values=emptyArray,this.toValues=null,this.fromValues=emptyArray,this.config=new AnimationConfig,this.immediate=!1}};function scheduleProps(_e,{key:et,props:tt,defaultProps:rt,state:nt,actions:st}){return new Promise((ot,at)=>{let ut,lt,dt=matchProp(tt.cancel??(rt==null?void 0:rt.cancel),et);if(dt)ht();else{is.und(tt.pause)||(nt.paused=matchProp(tt.pause,et));let mt=rt==null?void 0:rt.pause;mt!==!0&&(mt=nt.paused||matchProp(mt,et)),ut=callProp(tt.delay||0,et),mt?(nt.resumeQueue.add(ft),st.pause()):(st.resume(),ft())}function ct(){nt.resumeQueue.add(ft),nt.timeouts.delete(lt),lt.cancel(),ut=lt.time-raf.now()}function ft(){ut>0&&!globals_exports.skipAnimation?(nt.delayed=!0,lt=raf.setTimeout(ht,ut),nt.pauseQueue.add(ct),nt.timeouts.add(lt)):ht()}function ht(){nt.delayed&&(nt.delayed=!1),nt.pauseQueue.delete(ct),nt.timeouts.delete(lt),_e<=(nt.cancelId||0)&&(dt=!0);try{st.start({...tt,callId:_e,cancel:dt},ot)}catch(mt){at(mt)}}})}var getCombinedResult=(_e,et)=>et.length==1?et[0]:et.some(tt=>tt.cancelled)?getCancelledResult(_e.get()):et.every(tt=>tt.noop)?getNoopResult(_e.get()):getFinishedResult(_e.get(),et.every(tt=>tt.finished)),getNoopResult=_e=>({value:_e,noop:!0,finished:!0,cancelled:!1}),getFinishedResult=(_e,et,tt=!1)=>({value:_e,finished:et,cancelled:tt}),getCancelledResult=_e=>({value:_e,cancelled:!0,finished:!1});function runAsync(_e,et,tt,rt){const{callId:nt,parentId:st,onRest:ot}=et,{asyncTo:at,promise:ut}=tt;return!st&&_e===at&&!et.reset?ut:tt.promise=(async()=>{tt.asyncId=nt,tt.asyncTo=_e;const lt=getDefaultProps(et,(wt,gt)=>gt==="onRest"?void 0:wt);let dt,ct;const ft=new Promise((wt,gt)=>(dt=wt,ct=gt)),ht=wt=>{const gt=nt<=(tt.cancelId||0)&&getCancelledResult(rt)||nt!==tt.asyncId&&getFinishedResult(rt,!1);if(gt)throw wt.result=gt,ct(wt),wt},mt=(wt,gt)=>{const yt=new BailSignal,xt=new SkipAnimationSignal;return(async()=>{if(globals_exports.skipAnimation)throw stopAsync(tt),xt.result=getFinishedResult(rt,!1),ct(xt),xt;ht(yt);const St=is.obj(wt)?{...wt}:{...gt,to:wt};St.parentId=nt,eachProp(lt,($t,At)=>{is.und(St[At])&&(St[At]=$t)});const bt=await rt.start(St);return ht(yt),tt.paused&&await new Promise($t=>{tt.resumeQueue.add($t)}),bt})()};let vt;if(globals_exports.skipAnimation)return stopAsync(tt),getFinishedResult(rt,!1);try{let wt;is.arr(_e)?wt=(async gt=>{for(const yt of gt)await mt(yt)})(_e):wt=Promise.resolve(_e(mt,rt.stop.bind(rt))),await Promise.all([wt.then(dt),ft]),vt=getFinishedResult(rt.get(),!0,!1)}catch(wt){if(wt instanceof BailSignal)vt=wt.result;else if(wt instanceof SkipAnimationSignal)vt=wt.result;else throw wt}finally{nt==tt.asyncId&&(tt.asyncId=st,tt.asyncTo=st?at:void 0,tt.promise=st?ut:void 0)}return is.fun(ot)&&raf.batchedUpdates(()=>{ot(vt,rt,rt.item)}),vt})()}function stopAsync(_e,et){flush(_e.timeouts,tt=>tt.cancel()),_e.pauseQueue.clear(),_e.resumeQueue.clear(),_e.asyncId=_e.asyncTo=_e.promise=void 0,et&&(_e.cancelId=et)}var BailSignal=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.")}},SkipAnimationSignal=class extends Error{constructor(){super("SkipAnimationSignal")}},isFrameValue=_e=>_e instanceof FrameValue,nextId=1,FrameValue=class extends FluidValue{constructor(){super(...arguments),this.id=nextId++,this._priority=0}get priority(){return this._priority}set priority(_e){this._priority!=_e&&(this._priority=_e,this._onPriorityChange(_e))}get(){const _e=getAnimated(this);return _e&&_e.getValue()}to(..._e){return globals_exports.to(this,_e)}interpolate(..._e){return deprecateInterpolate(),globals_exports.to(this,_e)}toJSON(){return this.get()}observerAdded(_e){_e==1&&this._attach()}observerRemoved(_e){_e==0&&this._detach()}_attach(){}_detach(){}_onChange(_e,et=!1){callFluidObservers(this,{type:"change",parent:this,value:_e,idle:et})}_onPriorityChange(_e){this.idle||frameLoop.sort(this),callFluidObservers(this,{type:"priority",parent:this,priority:_e})}},$P=Symbol.for("SpringPhase"),HAS_ANIMATED=1,IS_ANIMATING=2,IS_PAUSED=4,hasAnimated=_e=>(_e[$P]&HAS_ANIMATED)>0,isAnimating=_e=>(_e[$P]&IS_ANIMATING)>0,isPaused=_e=>(_e[$P]&IS_PAUSED)>0,setActiveBit=(_e,et)=>et?_e[$P]|=IS_ANIMATING|HAS_ANIMATED:_e[$P]&=~IS_ANIMATING,setPausedBit=(_e,et)=>et?_e[$P]|=IS_PAUSED:_e[$P]&=~IS_PAUSED,SpringValue=class extends FrameValue{constructor(_e,et){if(super(),this.animation=new Animation,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,!is.und(_e)||!is.und(et)){const tt=is.obj(_e)?{..._e}:{...et,from:_e};is.und(tt.default)&&(tt.default=!0),this.start(tt)}}get idle(){return!(isAnimating(this)||this._state.asyncTo)||isPaused(this)}get goal(){return getFluidValue(this.animation.to)}get velocity(){const _e=getAnimated(this);return _e instanceof AnimatedValue?_e.lastVelocity||0:_e.getPayload().map(et=>et.lastVelocity||0)}get hasAnimated(){return hasAnimated(this)}get isAnimating(){return isAnimating(this)}get isPaused(){return isPaused(this)}get isDelayed(){return this._state.delayed}advance(_e){let et=!0,tt=!1;const rt=this.animation;let{toValues:nt}=rt;const{config:st}=rt,ot=getPayload(rt.to);!ot&&hasFluidValue(rt.to)&&(nt=toArray(getFluidValue(rt.to))),rt.values.forEach((lt,dt)=>{if(lt.done)return;const ct=lt.constructor==AnimatedString?1:ot?ot[dt].lastPosition:nt[dt];let ft=rt.immediate,ht=ct;if(!ft){if(ht=lt.lastPosition,st.tension<=0){lt.done=!0;return}let mt=lt.elapsedTime+=_e;const vt=rt.fromValues[dt],wt=lt.v0!=null?lt.v0:lt.v0=is.arr(st.velocity)?st.velocity[dt]:st.velocity;let gt;const yt=st.precision||(vt==ct?.005:Math.min(1,Math.abs(ct-vt)*.001));if(is.und(st.duration))if(st.decay){const xt=st.decay===!0?.998:st.decay,St=Math.exp(-(1-xt)*mt);ht=vt+wt/(1-xt)*(1-St),ft=Math.abs(lt.lastPosition-ht)<=yt,gt=wt*St}else{gt=lt.lastVelocity==null?wt:lt.lastVelocity;const xt=st.restVelocity||yt/10,St=st.clamp?0:st.bounce,bt=!is.und(St),$t=vt==ct?lt.v0>0:vt<ct;let At,Tt=!1;const Ft=1,Pt=Math.ceil(_e/Ft);for(let Dt=0;Dt<Pt&&(At=Math.abs(gt)>xt,!(!At&&(ft=Math.abs(ct-ht)<=yt,ft)));++Dt){bt&&(Tt=ht==ct||ht>ct==$t,Tt&&(gt=-gt*St,ht=ct));const Mt=-st.tension*1e-6*(ht-ct),It=-st.friction*.001*gt,Et=(Mt+It)/st.mass;gt=gt+Et*Ft,ht=ht+gt*Ft}}else{let xt=1;st.duration>0&&(this._memoizedDuration!==st.duration&&(this._memoizedDuration=st.duration,lt.durationProgress>0&&(lt.elapsedTime=st.duration*lt.durationProgress,mt=lt.elapsedTime+=_e)),xt=(st.progress||0)+mt/this._memoizedDuration,xt=xt>1?1:xt<0?0:xt,lt.durationProgress=xt),ht=vt+st.easing(xt)*(ct-vt),gt=(ht-lt.lastPosition)/_e,ft=xt==1}lt.lastVelocity=gt,Number.isNaN(ht)&&(console.warn("Got NaN while animating:",this),ft=!0)}ot&&!ot[dt].done&&(ft=!1),ft?lt.done=!0:et=!1,lt.setValue(ht,st.round)&&(tt=!0)});const at=getAnimated(this),ut=at.getValue();if(et){const lt=getFluidValue(rt.to);(ut!==lt||tt)&&!st.decay?(at.setValue(lt),this._onChange(lt)):tt&&st.decay&&this._onChange(ut),this._stop()}else tt&&this._onChange(ut)}set(_e){return raf.batchedUpdates(()=>{this._stop(),this._focus(_e),this._set(_e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(isAnimating(this)){const{to:_e,config:et}=this.animation;raf.batchedUpdates(()=>{this._onStart(),et.decay||this._set(_e,!1),this._stop()})}return this}update(_e){return(this.queue||(this.queue=[])).push(_e),this}start(_e,et){let tt;return is.und(_e)?(tt=this.queue||[],this.queue=[]):tt=[is.obj(_e)?_e:{...et,to:_e}],Promise.all(tt.map(rt=>this._update(rt))).then(rt=>getCombinedResult(this,rt))}stop(_e){const{to:et}=this.animation;return this._focus(this.get()),stopAsync(this._state,_e&&this._lastCallId),raf.batchedUpdates(()=>this._stop(et,_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 et=this.key||"";let{to:tt,from:rt}=_e;tt=is.obj(tt)?tt[et]:tt,(tt==null||isAsyncTo(tt))&&(tt=void 0),rt=is.obj(rt)?rt[et]:rt,rt==null&&(rt=void 0);const nt={to:tt,from:rt};return hasAnimated(this)||(_e.reverse&&([tt,rt]=[rt,tt]),rt=getFluidValue(rt),is.und(rt)?getAnimated(this)||this._set(tt):this._set(rt)),nt}_update({..._e},et){const{key:tt,defaultProps:rt}=this;_e.default&&Object.assign(rt,getDefaultProps(_e,(ot,at)=>/^on/.test(at)?resolveProp(ot,tt):ot)),mergeActiveFn(this,_e,"onProps"),sendEvent(this,"onProps",_e,this);const nt=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 st=this._state;return scheduleProps(++this._lastCallId,{key:tt,props:_e,defaultProps:rt,state:st,actions:{pause:()=>{isPaused(this)||(setPausedBit(this,!0),flushCalls(st.pauseQueue),sendEvent(this,"onPause",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},resume:()=>{isPaused(this)&&(setPausedBit(this,!1),isAnimating(this)&&this._resume(),flushCalls(st.resumeQueue),sendEvent(this,"onResume",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},start:this._merge.bind(this,nt)}}).then(ot=>{if(_e.loop&&ot.finished&&!(et&&ot.noop)){const at=createLoopUpdate(_e);if(at)return this._update(at,!0)}return ot})}_merge(_e,et,tt){if(et.cancel)return this.stop(!0),tt(getCancelledResult(this));const rt=!is.und(_e.to),nt=!is.und(_e.from);if(rt||nt)if(et.callId>this._lastToId)this._lastToId=et.callId;else return tt(getCancelledResult(this));const{key:st,defaultProps:ot,animation:at}=this,{to:ut,from:lt}=at;let{to:dt=ut,from:ct=lt}=_e;nt&&!rt&&(!et.default||is.und(dt))&&(dt=ct),et.reverse&&([dt,ct]=[ct,dt]);const ft=!isEqual(ct,lt);ft&&(at.from=ct),ct=getFluidValue(ct);const ht=!isEqual(dt,ut);ht&&this._focus(dt);const mt=isAsyncTo(et.to),{config:vt}=at,{decay:wt,velocity:gt}=vt;(rt||nt)&&(vt.velocity=0),et.config&&!mt&&mergeConfig(vt,callProp(et.config,st),et.config!==ot.config?callProp(ot.config,st):void 0);let yt=getAnimated(this);if(!yt||is.und(dt))return tt(getFinishedResult(this,!0));const xt=is.und(et.reset)?nt&&!et.default:!is.und(ct)&&matchProp(et.reset,st),St=xt?ct:this.get(),bt=computeGoal(dt),$t=is.num(bt)||is.arr(bt)||isAnimatedString(bt),At=!mt&&(!$t||matchProp(ot.immediate||et.immediate,st));if(ht){const Dt=getAnimatedType(dt);if(Dt!==yt.constructor)if(At)yt=this._set(bt);else throw Error(`Cannot animate between ${yt.constructor.name} and ${Dt.name}, as the "to" prop suggests`)}const Tt=yt.constructor;let Ft=hasFluidValue(dt),Pt=!1;if(!Ft){const Dt=xt||!hasAnimated(this)&&ft;(ht||Dt)&&(Pt=isEqual(computeGoal(St),bt),Ft=!Pt),(!isEqual(at.immediate,At)&&!At||!isEqual(vt.decay,wt)||!isEqual(vt.velocity,gt))&&(Ft=!0)}if(Pt&&isAnimating(this)&&(at.changed&&!xt?Ft=!0:Ft||this._stop(ut)),!mt&&((Ft||hasFluidValue(ut))&&(at.values=yt.getPayload(),at.toValues=hasFluidValue(dt)?null:Tt==AnimatedString?[1]:toArray(bt)),at.immediate!=At&&(at.immediate=At,!At&&!xt&&this._set(ut)),Ft)){const{onRest:Dt}=at;each(ACTIVE_EVENTS,It=>mergeActiveFn(this,et,It));const Mt=getFinishedResult(this,checkFinished(this,ut));flushCalls(this._pendingCalls,Mt),this._pendingCalls.add(tt),at.changed&&raf.batchedUpdates(()=>{var It;at.changed=!xt,Dt==null||Dt(Mt,this),xt?callProp(ot.onRest,Mt):(It=at.onStart)==null||It.call(at,Mt,this)})}xt&&this._set(St),mt?tt(runAsync(et.to,et,this._state,this)):Ft?this._start():isAnimating(this)&&!ht?this._pendingCalls.add(tt):tt(getNoopResult(St))}_focus(_e){const et=this.animation;_e!==et.to&&(getFluidObservers(this)&&this._detach(),et.to=_e,getFluidObservers(this)&&this._attach())}_attach(){let _e=0;const{to:et}=this.animation;hasFluidValue(et)&&(addFluidObserver(et,this),isFrameValue(et)&&(_e=et.priority+1)),this.priority=_e}_detach(){const{to:_e}=this.animation;hasFluidValue(_e)&&removeFluidObserver(_e,this)}_set(_e,et=!0){const tt=getFluidValue(_e);if(!is.und(tt)){const rt=getAnimated(this);if(!rt||!isEqual(tt,rt.getValue())){const nt=getAnimatedType(tt);!rt||rt.constructor!=nt?setAnimated(this,nt.create(tt)):rt.setValue(tt),rt&&raf.batchedUpdates(()=>{this._onChange(tt,et)})}}return getAnimated(this)}_onStart(){const _e=this.animation;_e.changed||(_e.changed=!0,sendEvent(this,"onStart",getFinishedResult(this,checkFinished(this,_e.to)),this))}_onChange(_e,et){et||(this._onStart(),callProp(this.animation.onChange,_e,this)),callProp(this.defaultProps.onChange,_e,this),super._onChange(_e,et)}_start(){const _e=this.animation;getAnimated(this).reset(getFluidValue(_e.to)),_e.immediate||(_e.fromValues=_e.values.map(et=>et.lastPosition)),isAnimating(this)||(setActiveBit(this,!0),isPaused(this)||this._resume())}_resume(){globals_exports.skipAnimation?this.finish():frameLoop.start(this)}_stop(_e,et){if(isAnimating(this)){setActiveBit(this,!1);const tt=this.animation;each(tt.values,nt=>{nt.done=!0}),tt.toValues&&(tt.onChange=tt.onPause=tt.onResume=void 0),callFluidObservers(this,{type:"idle",parent:this});const rt=et?getCancelledResult(this.get()):getFinishedResult(this.get(),checkFinished(this,_e??tt.to));flushCalls(this._pendingCalls,rt),tt.changed&&(tt.changed=!1,sendEvent(this,"onRest",rt,this))}}};function checkFinished(_e,et){const tt=computeGoal(et),rt=computeGoal(_e.get());return isEqual(rt,tt)}function createLoopUpdate(_e,et=_e.loop,tt=_e.to){const rt=callProp(et);if(rt){const nt=rt!==!0&&inferTo(rt),st=(nt||_e).reverse,ot=!nt||nt.reset;return createUpdate({..._e,loop:et,default:!1,pause:void 0,to:!st||isAsyncTo(tt)?tt:void 0,from:ot?_e.from:void 0,reset:ot,...nt})}}function createUpdate(_e){const{to:et,from:tt}=_e=inferTo(_e),rt=new Set;return is.obj(et)&&findDefined(et,rt),is.obj(tt)&&findDefined(tt,rt),_e.keys=rt.size?Array.from(rt):null,_e}function declareUpdate(_e){const et=createUpdate(_e);return is.und(et.default)&&(et.default=getDefaultProps(et)),et}function findDefined(_e,et){eachProp(_e,(tt,rt)=>tt!=null&&et.add(rt))}var ACTIVE_EVENTS=["onStart","onRest","onChange","onPause","onResume"];function mergeActiveFn(_e,et,tt){_e.animation[tt]=et[tt]!==getDefaultProp(et,tt)?resolveProp(et[tt],_e.key):void 0}function sendEvent(_e,et,...tt){var rt,nt,st,ot;(nt=(rt=_e.animation)[et])==null||nt.call(rt,...tt),(ot=(st=_e.defaultProps)[et])==null||ot.call(st,...tt)}var BATCHED_EVENTS=["onStart","onChange","onRest"],nextId2=1,Controller=class{constructor(_e,et){this.id=nextId2++,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),et&&(this._flush=et),_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((et,tt)=>_e[tt]=et.get()),_e}set(_e){for(const et in _e){const tt=_e[et];is.und(tt)||this.springs[et].set(tt)}}update(_e){return _e&&this.queue.push(createUpdate(_e)),this}start(_e){let{queue:et}=this;return _e?et=toArray(_e).map(createUpdate):this.queue=[],this._flush?this._flush(this,et):(prepareKeys(this,et),flushUpdateQueue(this,et))}stop(_e,et){if(_e!==!!_e&&(et=_e),et){const tt=this.springs;each(toArray(et),rt=>tt[rt].stop(!!_e))}else stopAsync(this._state,this._lastAsyncId),this.each(tt=>tt.stop(!!_e));return this}pause(_e){if(is.und(_e))this.start({pause:!0});else{const et=this.springs;each(toArray(_e),tt=>et[tt].pause())}return this}resume(_e){if(is.und(_e))this.start({pause:!1});else{const et=this.springs;each(toArray(_e),tt=>et[tt].resume())}return this}each(_e){eachProp(this.springs,_e)}_onFrame(){const{onStart:_e,onChange:et,onRest:tt}=this._events,rt=this._active.size>0,nt=this._changed.size>0;(rt&&!this._started||nt&&!this._started)&&(this._started=!0,flush(_e,([at,ut])=>{ut.value=this.get(),at(ut,this,this._item)}));const st=!rt&&this._started,ot=nt||st&&tt.size?this.get():null;nt&&et.size&&flush(et,([at,ut])=>{ut.value=ot,at(ut,this,this._item)}),st&&(this._started=!1,flush(tt,([at,ut])=>{ut.value=ot,at(ut,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;raf.onFrame(this._onFrame)}};function flushUpdateQueue(_e,et){return Promise.all(et.map(tt=>flushUpdate(_e,tt))).then(tt=>getCombinedResult(_e,tt))}async function flushUpdate(_e,et,tt){const{keys:rt,to:nt,from:st,loop:ot,onRest:at,onResolve:ut}=et,lt=is.obj(et.default)&&et.default;ot&&(et.loop=!1),nt===!1&&(et.to=null),st===!1&&(et.from=null);const dt=is.arr(nt)||is.fun(nt)?nt:void 0;dt?(et.to=void 0,et.onRest=void 0,lt&&(lt.onRest=void 0)):each(BATCHED_EVENTS,vt=>{const wt=et[vt];if(is.fun(wt)){const gt=_e._events[vt];et[vt]=({finished:yt,cancelled:xt})=>{const St=gt.get(wt);St?(yt||(St.finished=!1),xt&&(St.cancelled=!0)):gt.set(wt,{value:null,finished:yt||!1,cancelled:xt||!1})},lt&&(lt[vt]=et[vt])}});const ct=_e._state;et.pause===!ct.paused?(ct.paused=et.pause,flushCalls(et.pause?ct.pauseQueue:ct.resumeQueue)):ct.paused&&(et.pause=!0);const ft=(rt||Object.keys(_e.springs)).map(vt=>_e.springs[vt].start(et)),ht=et.cancel===!0||getDefaultProp(et,"cancel")===!0;(dt||ht&&ct.asyncId)&&ft.push(scheduleProps(++_e._lastAsyncId,{props:et,state:ct,actions:{pause:noop,resume:noop,start(vt,wt){ht?(stopAsync(ct,_e._lastAsyncId),wt(getCancelledResult(_e))):(vt.onRest=at,wt(runAsync(dt,vt,ct,_e)))}}})),ct.paused&&await new Promise(vt=>{ct.resumeQueue.add(vt)});const mt=getCombinedResult(_e,await Promise.all(ft));if(ot&&mt.finished&&!(tt&&mt.noop)){const vt=createLoopUpdate(et,ot,nt);if(vt)return prepareKeys(_e,[vt]),flushUpdate(_e,vt,!0)}return ut&&raf.batchedUpdates(()=>ut(mt,_e,_e.item)),mt}function getSprings(_e,et){const tt={..._e.springs};return et&&each(toArray(et),rt=>{is.und(rt.keys)&&(rt=createUpdate(rt)),is.obj(rt.to)||(rt={...rt,to:void 0}),prepareSprings(tt,rt,nt=>createSpring(nt))}),setSprings(_e,tt),tt}function setSprings(_e,et){eachProp(et,(tt,rt)=>{_e.springs[rt]||(_e.springs[rt]=tt,addFluidObserver(tt,_e))})}function createSpring(_e,et){const tt=new SpringValue;return tt.key=_e,et&&addFluidObserver(tt,et),tt}function prepareSprings(_e,et,tt){et.keys&&each(et.keys,rt=>{(_e[rt]||(_e[rt]=tt(rt)))._prepareNode(et)})}function prepareKeys(_e,et){each(et,tt=>{prepareSprings(_e.springs,tt,rt=>createSpring(rt,_e))})}var SpringContext=({children:_e,...et})=>{const tt=reactExports.useContext(ctx),rt=et.pause||!!tt.pause,nt=et.immediate||!!tt.immediate;et=useMemoOne(()=>({pause:rt,immediate:nt}),[rt,nt]);const{Provider:st}=ctx;return reactExports.createElement(st,{value:et},_e)},ctx=makeContext(SpringContext,{});SpringContext.Provider=ctx.Provider;SpringContext.Consumer=ctx.Consumer;function makeContext(_e,et){return Object.assign(_e,reactExports.createContext(et)),_e.Provider._context=_e,_e.Consumer._context=_e,_e}var SpringRef=()=>{const _e=[],et=function(rt){deprecateDirectCall();const nt=[];return each(_e,(st,ot)=>{if(is.und(rt))nt.push(st.start());else{const at=tt(rt,st,ot);at&&nt.push(st.start(at))}}),nt};et.current=_e,et.add=function(rt){_e.includes(rt)||_e.push(rt)},et.delete=function(rt){const nt=_e.indexOf(rt);~nt&&_e.splice(nt,1)},et.pause=function(){return each(_e,rt=>rt.pause(...arguments)),this},et.resume=function(){return each(_e,rt=>rt.resume(...arguments)),this},et.set=function(rt){each(_e,(nt,st)=>{const ot=is.fun(rt)?rt(st,nt):rt;ot&&nt.set(ot)})},et.start=function(rt){const nt=[];return each(_e,(st,ot)=>{if(is.und(rt))nt.push(st.start());else{const at=this._getProps(rt,st,ot);at&&nt.push(st.start(at))}}),nt},et.stop=function(){return each(_e,rt=>rt.stop(...arguments)),this},et.update=function(rt){return each(_e,(nt,st)=>nt.update(this._getProps(rt,nt,st))),this};const tt=function(rt,nt,st){return is.fun(rt)?rt(st,nt):rt};return et._getProps=tt,et};function useSprings(_e,et,tt){const rt=is.fun(et)&&et;rt&&!tt&&(tt=[]);const nt=reactExports.useMemo(()=>rt||arguments.length==3?SpringRef():void 0,[]),st=reactExports.useRef(0),ot=useForceUpdate(),at=reactExports.useMemo(()=>({ctrls:[],queue:[],flush(gt,yt){const xt=getSprings(gt,yt);return st.current>0&&!at.queue.length&&!Object.keys(xt).some(bt=>!gt.springs[bt])?flushUpdateQueue(gt,yt):new Promise(bt=>{setSprings(gt,xt),at.queue.push(()=>{bt(flushUpdateQueue(gt,yt))}),ot()})}}),[]),ut=reactExports.useRef([...at.ctrls]),lt=[],dt=usePrev(_e)||0;reactExports.useMemo(()=>{each(ut.current.slice(_e,dt),gt=>{detachRefs(gt,nt),gt.stop(!0)}),ut.current.length=_e,ct(dt,_e)},[_e]),reactExports.useMemo(()=>{ct(0,Math.min(dt,_e))},tt);function ct(gt,yt){for(let xt=gt;xt<yt;xt++){const St=ut.current[xt]||(ut.current[xt]=new Controller(null,at.flush)),bt=rt?rt(xt,St):et[xt];bt&&(lt[xt]=declareUpdate(bt))}}const ft=ut.current.map((gt,yt)=>getSprings(gt,lt[yt])),ht=reactExports.useContext(SpringContext),mt=usePrev(ht),vt=ht!==mt&&hasProps(ht);useIsomorphicLayoutEffect(()=>{st.current++,at.ctrls=ut.current;const{queue:gt}=at;gt.length&&(at.queue=[],each(gt,yt=>yt())),each(ut.current,(yt,xt)=>{nt==null||nt.add(yt),vt&&yt.start({default:ht});const St=lt[xt];St&&(replaceRef(yt,St.ref),yt.ref?yt.queue.push(St):yt.start(St))})}),useOnce(()=>()=>{each(at.ctrls,gt=>gt.stop(!0))});const wt=ft.map(gt=>({...gt}));return nt?[wt,nt]:wt}function useSpring(_e,et){const tt=is.fun(_e),[[rt],nt]=useSprings(1,tt?_e:[_e],tt?et||[]:et);return tt||arguments.length==2?[rt,nt]:rt}function useTransition(_e,et,tt){const rt=is.fun(et)&&et,{reset:nt,sort:st,trail:ot=0,expires:at=!0,exitBeforeEnter:ut=!1,onDestroyed:lt,ref:dt,config:ct}=rt?rt():et,ft=reactExports.useMemo(()=>rt||arguments.length==3?SpringRef():void 0,[]),ht=toArray(_e),mt=[],vt=reactExports.useRef(null),wt=nt?null:vt.current;useIsomorphicLayoutEffect(()=>{vt.current=mt}),useOnce(()=>(each(mt,Et=>{ft==null||ft.add(Et.ctrl),Et.ctrl.ref=ft}),()=>{each(vt.current,Et=>{Et.expired&&clearTimeout(Et.expirationId),detachRefs(Et.ctrl,ft),Et.ctrl.stop(!0)})}));const gt=getKeys(ht,rt?rt():et,wt),yt=nt&&vt.current||[];useIsomorphicLayoutEffect(()=>each(yt,({ctrl:Et,item:Rt,key:Ot})=>{detachRefs(Et,ft),callProp(lt,Rt,Ot)}));const xt=[];if(wt&&each(wt,(Et,Rt)=>{Et.expired?(clearTimeout(Et.expirationId),yt.push(Et)):(Rt=xt[Rt]=gt.indexOf(Et.key),~Rt&&(mt[Rt]=Et))}),each(ht,(Et,Rt)=>{mt[Rt]||(mt[Rt]={key:gt[Rt],item:Et,phase:"mount",ctrl:new Controller},mt[Rt].ctrl.item=Et)}),xt.length){let Et=-1;const{leave:Rt}=rt?rt():et;each(xt,(Ot,kt)=>{const Ct=wt[kt];~Ot?(Et=mt.indexOf(Ct),mt[Et]={...Ct,item:ht[Ot]}):Rt&&mt.splice(++Et,0,Ct)})}is.fun(st)&&mt.sort((Et,Rt)=>st(Et.item,Rt.item));let St=-ot;const bt=useForceUpdate(),$t=getDefaultProps(et),At=new Map,Tt=reactExports.useRef(new Map),Ft=reactExports.useRef(!1);each(mt,(Et,Rt)=>{const Ot=Et.key,kt=Et.phase,Ct=rt?rt():et;let jt,Nt;const Bt=callProp(Ct.delay||0,Ot);if(kt=="mount")jt=Ct.enter,Nt="enter";else{const Vt=gt.indexOf(Ot)<0;if(kt!="leave")if(Vt)jt=Ct.leave,Nt="leave";else if(jt=Ct.update)Nt="update";else return;else if(!Vt)jt=Ct.enter,Nt="enter";else return}if(jt=callProp(jt,Et.item,Rt),jt=is.obj(jt)?inferTo(jt):{to:jt},!jt.config){const Vt=ct||$t.config;jt.config=callProp(Vt,Et.item,Rt,Nt)}St+=ot;const Lt={...$t,delay:Bt+St,ref:dt,immediate:Ct.immediate,reset:!1,...jt};if(Nt=="enter"&&is.und(Lt.from)){const Vt=rt?rt():et,Qt=is.und(Vt.initial)||wt?Vt.from:Vt.initial;Lt.from=callProp(Qt,Et.item,Rt)}const{onResolve:zt}=Lt;Lt.onResolve=Vt=>{callProp(zt,Vt);const Qt=vt.current,Ut=Qt.find(Wt=>Wt.key===Ot);if(Ut&&!(Vt.cancelled&&Ut.phase!="update")&&Ut.ctrl.idle){const Wt=Qt.every(Ht=>Ht.ctrl.idle);if(Ut.phase=="leave"){const Ht=callProp(at,Ut.item);if(Ht!==!1){const Gt=Ht===!0?0:Ht;if(Ut.expired=!0,!Wt&&Gt>0){Gt<=2147483647&&(Ut.expirationId=setTimeout(bt,Gt));return}}}Wt&&Qt.some(Ht=>Ht.expired)&&(Tt.current.delete(Ut),ut&&(Ft.current=!0),bt())}};const qt=getSprings(Et.ctrl,Lt);Nt==="leave"&&ut?Tt.current.set(Et,{phase:Nt,springs:qt,payload:Lt}):At.set(Et,{phase:Nt,springs:qt,payload:Lt})});const Pt=reactExports.useContext(SpringContext),Dt=usePrev(Pt),Mt=Pt!==Dt&&hasProps(Pt);useIsomorphicLayoutEffect(()=>{Mt&&each(mt,Et=>{Et.ctrl.start({default:Pt})})},[Pt]),each(At,(Et,Rt)=>{if(Tt.current.size){const Ot=mt.findIndex(kt=>kt.key===Rt.key);mt.splice(Ot,1)}}),useIsomorphicLayoutEffect(()=>{each(Tt.current.size?Tt.current:At,({phase:Et,payload:Rt},Ot)=>{const{ctrl:kt}=Ot;Ot.phase=Et,ft==null||ft.add(kt),Mt&&Et=="enter"&&kt.start({default:Pt}),Rt&&(replaceRef(kt,Rt.ref),(kt.ref||ft)&&!Ft.current?kt.update(Rt):(kt.start(Rt),Ft.current&&(Ft.current=!1)))})},nt?void 0:tt);const It=Et=>reactExports.createElement(reactExports.Fragment,null,mt.map((Rt,Ot)=>{const{springs:kt}=At.get(Rt)||Rt.ctrl,Ct=Et({...kt},Rt.item,Rt,Ot);return Ct&&Ct.type?reactExports.createElement(Ct.type,{...Ct.props,key:is.str(Rt.key)||is.num(Rt.key)?Rt.key:Rt.ctrl.id,ref:Ct.ref}):Ct}));return ft?[It,ft]:It}var nextKey=1;function getKeys(_e,{key:et,keys:tt=et},rt){if(tt===null){const nt=new Set;return _e.map(st=>{const ot=rt&&rt.find(at=>at.item===st&&at.phase!=="leave"&&!nt.has(at));return ot?(nt.add(ot),ot.key):nextKey++})}return is.und(tt)?_e:is.fun(tt)?_e.map(tt):toArray(tt)}var Interpolation=class extends FrameValue{constructor(_e,et){super(),this.source=_e,this.idle=!0,this._active=new Set,this.calc=createInterpolator(...et);const tt=this._get(),rt=getAnimatedType(tt);setAnimated(this,rt.create(tt))}advance(_e){const et=this._get(),tt=this.get();isEqual(et,tt)||(getAnimated(this).setValue(et),this._onChange(et,this.idle)),!this.idle&&checkIdle(this._active)&&becomeIdle(this)}_get(){const _e=is.arr(this.source)?this.source.map(getFluidValue):toArray(getFluidValue(this.source));return this.calc(..._e)}_start(){this.idle&&!checkIdle(this._active)&&(this.idle=!1,each(getPayload(this),_e=>{_e.done=!1}),globals_exports.skipAnimation?(raf.batchedUpdates(()=>this.advance()),becomeIdle(this)):frameLoop.start(this))}_attach(){let _e=1;each(toArray(this.source),et=>{hasFluidValue(et)&&addFluidObserver(et,this),isFrameValue(et)&&(et.idle||this._active.add(et),_e=Math.max(_e,et.priority+1))}),this.priority=_e,this._start()}_detach(){each(toArray(this.source),_e=>{hasFluidValue(_e)&&removeFluidObserver(_e,this)}),this._active.clear(),becomeIdle(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=toArray(this.source).reduce((et,tt)=>Math.max(et,(isFrameValue(tt)?tt.priority:0)+1),0))}};function isIdle(_e){return _e.idle!==!1}function checkIdle(_e){return!_e.size||Array.from(_e).every(isIdle)}function becomeIdle(_e){_e.idle||(_e.idle=!0,each(getPayload(_e),et=>{et.done=!0}),callFluidObservers(_e,{type:"idle",parent:_e}))}globals_exports.assign({createStringInterpolator:createStringInterpolator2,to:(_e,et)=>new Interpolation(_e,et)});var k=/^--/;function I(_e,et){return et==null||typeof et=="boolean"||et===""?"":typeof et=="number"&&et!==0&&!k.test(_e)&&!(c.hasOwnProperty(_e)&&c[_e])?et+"px":(""+et).trim()}var v$1={};function V(_e,et){if(!_e.nodeType||!_e.setAttribute)return!1;let tt=_e.nodeName==="filter"||_e.parentNode&&_e.parentNode.nodeName==="filter",{style:rt,children:nt,scrollTop:st,scrollLeft:ot,viewBox:at,...ut}=et,lt=Object.values(ut),dt=Object.keys(ut).map(ct=>tt||_e.hasAttribute(ct)?ct:v$1[ct]||(v$1[ct]=ct.replace(/([A-Z])/g,ft=>"-"+ft.toLowerCase())));nt!==void 0&&(_e.textContent=nt);for(let ct in rt)if(rt.hasOwnProperty(ct)){let ft=I(ct,rt[ct]);k.test(ct)?_e.style.setProperty(ct,ft):_e.style[ct]=ft}dt.forEach((ct,ft)=>{_e.setAttribute(ct,lt[ft])}),st!==void 0&&(_e.scrollTop=st),ot!==void 0&&(_e.scrollLeft=ot),at!==void 0&&_e.setAttribute("viewBox",at)}var c={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},F=(_e,et)=>_e+et.charAt(0).toUpperCase()+et.substring(1),L=["Webkit","Ms","Moz","O"];c=Object.keys(c).reduce((_e,et)=>(L.forEach(tt=>_e[F(tt,et)]=_e[et]),_e),c);var _=/^(matrix|translate|scale|rotate|skew)/,$=/^(translate)/,G=/^(rotate|skew)/,y=(_e,et)=>is.num(_e)&&_e!==0?_e+et:_e,h$1=(_e,et)=>is.arr(_e)?_e.every(tt=>h$1(tt,et)):is.num(_e)?_e===et:parseFloat(_e)===et,g=class extends AnimatedObject{constructor({x:_e,y:et,z:tt,...rt}){let nt=[],st=[];(_e||et||tt)&&(nt.push([_e||0,et||0,tt||0]),st.push(ot=>[`translate3d(${ot.map(at=>y(at,"px")).join(",")})`,h$1(ot,0)])),eachProp(rt,(ot,at)=>{if(at==="transform")nt.push([ot||""]),st.push(ut=>[ut,ut===""]);else if(_.test(at)){if(delete rt[at],is.und(ot))return;let ut=$.test(at)?"px":G.test(at)?"deg":"";nt.push(toArray(ot)),st.push(at==="rotate3d"?([lt,dt,ct,ft])=>[`rotate3d(${lt},${dt},${ct},${y(ft,ut)})`,h$1(ft,0)]:lt=>[`${at}(${lt.map(dt=>y(dt,ut)).join(",")})`,h$1(lt,at.startsWith("scale")?1:0)])}}),nt.length&&(rt.transform=new x(nt,st)),super(rt)}},x=class extends FluidValue{constructor(et,tt){super();Kt(this,"_value",null);this.inputs=et,this.transforms=tt}get(){return this._value||(this._value=this._get())}_get(){let et="",tt=!0;return each(this.inputs,(rt,nt)=>{let st=getFluidValue(rt[0]),[ot,at]=this.transforms[nt](is.arr(st)?st:rt.map(getFluidValue));et+=" "+ot,tt=tt&&at}),tt?"none":et}observerAdded(et){et==1&&each(this.inputs,tt=>each(tt,rt=>hasFluidValue(rt)&&addFluidObserver(rt,this)))}observerRemoved(et){et==0&&each(this.inputs,tt=>each(tt,rt=>hasFluidValue(rt)&&removeFluidObserver(rt,this)))}eventObserved(et){et.type=="change"&&(this._value=null),callFluidObservers(this,et)}},C=["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"];globals_exports.assign({batchedUpdates:reactDomExports.unstable_batchedUpdates,createStringInterpolator:createStringInterpolator2,colors:colors2});var q$1=createHost(C,{applyAnimatedValues:V,createAnimatedStyle:_e=>new g(_e),getComponentProps:({scrollTop:_e,scrollLeft:et,...tt})=>tt}),it$1=q$1.animated;const Context=reactExports.createContext(null),useFormControl=()=>{const _e=reactExports.useContext(Context);if(!_e)throw new Error("Cannot be rendered outside the FormControl component");return _e},Input=reactExports.forwardRef(({noValidationIcon:_e,placeholder:et,size:tt="md",type:rt="text",className:nt,...st},ot)=>{const{id:at,isRequired:ut,isReadOnly:lt,status:dt}=useFormControl(),ct=clsx({"form-control":!lt,"form-control-lg":tt==="lg","form-control-sm":tt==="sm","is-invalid":dt==="invalid","is-valid":dt==="valid","form-control-plaintext":lt,"no-validation-icon":_e},nt);return jsxRuntimeExports.jsx("input",{ref:ot,id:at,className:ct,type:rt,placeholder:et,required:ut,readOnly:lt,...st})});Input.displayName="Input";const Input$1=Input,Label=reactExports.forwardRef(({leftIcon:_e,optionalText:et="Optional",requiredText:tt="*",children:rt,className:nt},st)=>{const{id:ot,isOptional:at,isRequired:ut}=useFormControl(),lt=clsx("form-label",{"has-icon":_e},nt),dt=at&&!ut,ct=ut&&!at;return reactExports.useEffect(()=>{if(at&&ut)throw new Error("Cannot be optional and required at the same time")},[at,ut]),jsxRuntimeExports.jsxs("label",{ref:st,htmlFor:ot,className:lt,children:[_e,rt,dt&&jsxRuntimeExports.jsxs("em",{className:"optional",children:["- ",et]}),ct&&jsxRuntimeExports.jsx("em",{className:"required",children:tt})]})});Label.displayName="Label";const Label$1=Label,FormText=({children:_e})=>{const{status:et}=useFormControl(),tt=clsx("form-text",{"is-invalid":et==="invalid",valid:et==="valid"});return jsxRuntimeExports.jsx("p",{className:tt,children:jsxRuntimeExports.jsx("em",{children:_e})})};FormText.displayName="Text";const FormText$1=FormText,Root$2=reactExports.forwardRef(({children:_e,className:et,id:tt,isOptional:rt,isReadOnly:nt,isRequired:st,status:ot,...at},ut)=>{const lt=reactExports.useMemo(()=>({id:tt,isOptional:rt,isRequired:st,isReadOnly:nt,status:ot}),[tt,rt,nt,st,ot]);return jsxRuntimeExports.jsx(Context.Provider,{value:lt,children:jsxRuntimeExports.jsx("div",{ref:ut,className:et,...at,children:_e})})}),FormControl=Object.assign(Root$2,{Label:Label$1,Input:Input$1,Text:FormText$1});Root$2.displayName="FormControl";const FormControl$1=FormControl,Grid=({children:_e,className:et,...tt})=>{const rt=clsx("grid",et);return jsxRuntimeExports.jsx("div",{className:rt,...tt,children:_e})},Column=({sm:_e,md:et,lg:tt,xl:rt,children:nt,className:st,as:ot,...at})=>{const ut=ot||"div",lt=clsx({[`g-col-${_e}`]:_e,[et?`g-col-md-${et}`:""]:et,[tt?`g-col-lg-${tt}`:""]:tt,[rt?`g-col-xl-${rt}`:""]:rt},st);return jsxRuntimeExports.jsx(ut,{className:lt,...at,children:nt})};Grid.displayName="Grid";Column.displayName="Grid.Col";Grid.Col=Column;function Badge({children:_e}){return jsxRuntimeExports.jsx("span",{className:"position-absolute badge rounded-pill bg-warning",children:_e})}function Navbar({children:_e,className:et,...tt}){const rt=clsx("navbar",et);return jsxRuntimeExports.jsx("nav",{className:rt,...tt,children:_e})}function NavBarNav({children:_e,className:et,...tt}){const rt=clsx("navbar-nav",et);return jsxRuntimeExports.jsx("ul",{className:rt,...tt,children:_e})}const NavItem=reactExports.forwardRef(({children:_e,className:et,...tt},rt)=>{const nt=clsx("nav-item",et);return jsxRuntimeExports.jsx("li",{ref:rt,className:nt,...tt,children:_e})});NavItem.displayName="NavItem";const VisuallyHidden=reactExports.forwardRef(({children:_e},et)=>jsxRuntimeExports.jsx("span",{className:"visually-hidden",ref:et,children:_e}));VisuallyHidden.displayName="VisuallyHidden";const VisuallyHidden$1=VisuallyHidden;function NavLink({link:_e,className:et,children:tt,translate:rt,...nt}){const st=clsx("nav-link",et);return jsxRuntimeExports.jsxs("a",{href:_e,className:st,...nt,children:[tt,rt&&jsxRuntimeExports.jsx(VisuallyHidden$1,{children:jsxRuntimeExports.jsx("span",{className:"nav-text",children:rt})})]})}const NavSearch=reactExports.forwardRef(({children:_e},et)=>jsxRuntimeExports.jsxs(FormControl$1,{id:"my-search-input",className:"search-text input-group py-8 px-12",children:[jsxRuntimeExports.jsx(FormControl$1.Input,{ref:et,size:"sm",type:"text",name:"my-search-input",placeholder:"Rechercher"}),_e]}));NavSearch.displayName="NavSearch";const WidgetAppsFooter=()=>{const{t:_e}=useTranslation();return jsxRuntimeExports.jsx("div",{className:"widget-footer",children:jsxRuntimeExports.jsx("div",{className:"widget-footer-action",children:jsxRuntimeExports.jsx("a",{href:"/welcome",className:"link",children:_e("plus")})})})},WidgetAppsBody=({bookmarkedApps:_e})=>{const{t:et}=useTranslation();return jsxRuntimeExports.jsxs("div",{className:"widget-body d-flex flex-wrap",children:[!_e.length&&jsxRuntimeExports.jsx("div",{className:"text-dark",children:et("navbar.myapps.more")}),_e.slice(0,6).map((tt,rt)=>jsxRuntimeExports.jsx("a",{href:tt.address,className:"bookmarked-app",children:jsxRuntimeExports.jsx(AppIcon$1,{app:tt,size:"32"})},rt))]})};var lib$2={},lib$1={};(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 et;(function(rt){rt.Root="root",rt.Text="text",rt.Directive="directive",rt.Comment="comment",rt.Script="script",rt.Style="style",rt.Tag="tag",rt.CDATA="cdata",rt.Doctype="doctype"})(et=_e.ElementType||(_e.ElementType={}));function tt(rt){return rt.type===et.Tag||rt.type===et.Script||rt.type===et.Style}_e.isTag=tt,_e.Root=et.Root,_e.Text=et.Text,_e.Directive=et.Directive,_e.Comment=et.Comment,_e.Script=et.Script,_e.Style=et.Style,_e.Tag=et.Tag,_e.CDATA=et.CDATA,_e.Doctype=et.Doctype})(lib$1);var node={},__extends=commonjsGlobal&&commonjsGlobal.__extends||function(){var _e=function(et,tt){return _e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(rt,nt){rt.__proto__=nt}||function(rt,nt){for(var st in nt)Object.prototype.hasOwnProperty.call(nt,st)&&(rt[st]=nt[st])},_e(et,tt)};return function(et,tt){if(typeof tt!="function"&&tt!==null)throw new TypeError("Class extends value "+String(tt)+" is not a constructor or null");_e(et,tt);function rt(){this.constructor=et}et.prototype=tt===null?Object.create(tt):(rt.prototype=tt.prototype,new rt)}}(),__assign=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign=Object.assign||function(_e){for(var et,tt=1,rt=arguments.length;tt<rt;tt++){et=arguments[tt];for(var nt in et)Object.prototype.hasOwnProperty.call(et,nt)&&(_e[nt]=et[nt])}return _e},__assign.apply(this,arguments)};Object.defineProperty(node,"__esModule",{value:!0});node.cloneNode=node.hasChildren=node.isDocument=node.isDirective=node.isComment=node.isText=node.isCDATA=node.isTag=node.Element=node.Document=node.CDATA=node.NodeWithChildren=node.ProcessingInstruction=node.Comment=node.Text=node.DataNode=node.Node=void 0;var domelementtype_1=lib$1,Node=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(et){this.parent=et},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"previousSibling",{get:function(){return this.prev},set:function(et){this.prev=et},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"nextSibling",{get:function(){return this.next},set:function(et){this.next=et},enumerable:!1,configurable:!0}),_e.prototype.cloneNode=function(et){return et===void 0&&(et=!1),cloneNode(this,et)},_e}();node.Node=Node;var DataNode=function(_e){__extends(et,_e);function et(tt){var rt=_e.call(this)||this;return rt.data=tt,rt}return Object.defineProperty(et.prototype,"nodeValue",{get:function(){return this.data},set:function(tt){this.data=tt},enumerable:!1,configurable:!0}),et}(Node);node.DataNode=DataNode;var Text$1=function(_e){__extends(et,_e);function et(){var tt=_e!==null&&_e.apply(this,arguments)||this;return tt.type=domelementtype_1.ElementType.Text,tt}return Object.defineProperty(et.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),et}(DataNode);node.Text=Text$1;var Comment$1=function(_e){__extends(et,_e);function et(){var tt=_e!==null&&_e.apply(this,arguments)||this;return tt.type=domelementtype_1.ElementType.Comment,tt}return Object.defineProperty(et.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),et}(DataNode);node.Comment=Comment$1;var ProcessingInstruction$1=function(_e){__extends(et,_e);function et(tt,rt){var nt=_e.call(this,rt)||this;return nt.name=tt,nt.type=domelementtype_1.ElementType.Directive,nt}return Object.defineProperty(et.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),et}(DataNode);node.ProcessingInstruction=ProcessingInstruction$1;var NodeWithChildren=function(_e){__extends(et,_e);function et(tt){var rt=_e.call(this)||this;return rt.children=tt,rt}return Object.defineProperty(et.prototype,"firstChild",{get:function(){var tt;return(tt=this.children[0])!==null&&tt!==void 0?tt:null},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"childNodes",{get:function(){return this.children},set:function(tt){this.children=tt},enumerable:!1,configurable:!0}),et}(Node);node.NodeWithChildren=NodeWithChildren;var CDATA=function(_e){__extends(et,_e);function et(){var tt=_e!==null&&_e.apply(this,arguments)||this;return tt.type=domelementtype_1.ElementType.CDATA,tt}return Object.defineProperty(et.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),et}(NodeWithChildren);node.CDATA=CDATA;var Document=function(_e){__extends(et,_e);function et(){var tt=_e!==null&&_e.apply(this,arguments)||this;return tt.type=domelementtype_1.ElementType.Root,tt}return Object.defineProperty(et.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),et}(NodeWithChildren);node.Document=Document;var Element$1=function(_e){__extends(et,_e);function et(tt,rt,nt,st){nt===void 0&&(nt=[]),st===void 0&&(st=tt==="script"?domelementtype_1.ElementType.Script:tt==="style"?domelementtype_1.ElementType.Style:domelementtype_1.ElementType.Tag);var ot=_e.call(this,nt)||this;return ot.name=tt,ot.attribs=rt,ot.type=st,ot}return Object.defineProperty(et.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"tagName",{get:function(){return this.name},set:function(tt){this.name=tt},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"attributes",{get:function(){var tt=this;return Object.keys(this.attribs).map(function(rt){var nt,st;return{name:rt,value:tt.attribs[rt],namespace:(nt=tt["x-attribsNamespace"])===null||nt===void 0?void 0:nt[rt],prefix:(st=tt["x-attribsPrefix"])===null||st===void 0?void 0:st[rt]}})},enumerable:!1,configurable:!0}),et}(NodeWithChildren);node.Element=Element$1;function isTag(_e){return(0,domelementtype_1.isTag)(_e)}node.isTag=isTag;function isCDATA(_e){return _e.type===domelementtype_1.ElementType.CDATA}node.isCDATA=isCDATA;function isText(_e){return _e.type===domelementtype_1.ElementType.Text}node.isText=isText;function isComment(_e){return _e.type===domelementtype_1.ElementType.Comment}node.isComment=isComment;function isDirective(_e){return _e.type===domelementtype_1.ElementType.Directive}node.isDirective=isDirective;function isDocument(_e){return _e.type===domelementtype_1.ElementType.Root}node.isDocument=isDocument;function hasChildren$1(_e){return Object.prototype.hasOwnProperty.call(_e,"children")}node.hasChildren=hasChildren$1;function cloneNode(_e,et){et===void 0&&(et=!1);var tt;if(isText(_e))tt=new Text$1(_e.data);else if(isComment(_e))tt=new Comment$1(_e.data);else if(isTag(_e)){var rt=et?cloneChildren(_e.children):[],nt=new Element$1(_e.name,__assign({},_e.attribs),rt);rt.forEach(function(ut){return ut.parent=nt}),_e.namespace!=null&&(nt.namespace=_e.namespace),_e["x-attribsNamespace"]&&(nt["x-attribsNamespace"]=__assign({},_e["x-attribsNamespace"])),_e["x-attribsPrefix"]&&(nt["x-attribsPrefix"]=__assign({},_e["x-attribsPrefix"])),tt=nt}else if(isCDATA(_e)){var rt=et?cloneChildren(_e.children):[],st=new CDATA(rt);rt.forEach(function(lt){return lt.parent=st}),tt=st}else if(isDocument(_e)){var rt=et?cloneChildren(_e.children):[],ot=new Document(rt);rt.forEach(function(lt){return lt.parent=ot}),_e["x-mode"]&&(ot["x-mode"]=_e["x-mode"]),tt=ot}else if(isDirective(_e)){var at=new ProcessingInstruction$1(_e.name,_e.data);_e["x-name"]!=null&&(at["x-name"]=_e["x-name"],at["x-publicId"]=_e["x-publicId"],at["x-systemId"]=_e["x-systemId"]),tt=at}else throw new Error("Not implemented yet: ".concat(_e.type));return tt.startIndex=_e.startIndex,tt.endIndex=_e.endIndex,_e.sourceCodeLocation!=null&&(tt.sourceCodeLocation=_e.sourceCodeLocation),tt}node.cloneNode=cloneNode;function cloneChildren(_e){for(var et=_e.map(function(rt){return cloneNode(rt,!0)}),tt=1;tt<et.length;tt++)et[tt].prev=et[tt-1],et[tt-1].next=et[tt];return et}(function(_e){var et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(at,ut,lt,dt){dt===void 0&&(dt=lt);var ct=Object.getOwnPropertyDescriptor(ut,lt);(!ct||("get"in ct?!ut.__esModule:ct.writable||ct.configurable))&&(ct={enumerable:!0,get:function(){return ut[lt]}}),Object.defineProperty(at,dt,ct)}:function(at,ut,lt,dt){dt===void 0&&(dt=lt),at[dt]=ut[lt]}),tt=commonjsGlobal&&commonjsGlobal.__exportStar||function(at,ut){for(var lt in at)lt!=="default"&&!Object.prototype.hasOwnProperty.call(ut,lt)&&et(ut,at,lt)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.DomHandler=void 0;var rt=lib$1,nt=node;tt(node,_e);var st={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},ot=function(){function at(ut,lt,dt){this.dom=[],this.root=new nt.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof lt=="function"&&(dt=lt,lt=st),typeof ut=="object"&&(lt=ut,ut=void 0),this.callback=ut??null,this.options=lt??st,this.elementCB=dt??null}return at.prototype.onparserinit=function(ut){this.parser=ut},at.prototype.onreset=function(){this.dom=[],this.root=new nt.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},at.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},at.prototype.onerror=function(ut){this.handleCallback(ut)},at.prototype.onclosetag=function(){this.lastNode=null;var ut=this.tagStack.pop();this.options.withEndIndices&&(ut.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(ut)},at.prototype.onopentag=function(ut,lt){var dt=this.options.xmlMode?rt.ElementType.Tag:void 0,ct=new nt.Element(ut,lt,void 0,dt);this.addNode(ct),this.tagStack.push(ct)},at.prototype.ontext=function(ut){var lt=this.lastNode;if(lt&<.type===rt.ElementType.Text)lt.data+=ut,this.options.withEndIndices&&(lt.endIndex=this.parser.endIndex);else{var dt=new nt.Text(ut);this.addNode(dt),this.lastNode=dt}},at.prototype.oncomment=function(ut){if(this.lastNode&&this.lastNode.type===rt.ElementType.Comment){this.lastNode.data+=ut;return}var lt=new nt.Comment(ut);this.addNode(lt),this.lastNode=lt},at.prototype.oncommentend=function(){this.lastNode=null},at.prototype.oncdatastart=function(){var ut=new nt.Text(""),lt=new nt.CDATA([ut]);this.addNode(lt),ut.parent=lt,this.lastNode=ut},at.prototype.oncdataend=function(){this.lastNode=null},at.prototype.onprocessinginstruction=function(ut,lt){var dt=new nt.ProcessingInstruction(ut,lt);this.addNode(dt)},at.prototype.handleCallback=function(ut){if(typeof this.callback=="function")this.callback(ut,this.dom);else if(ut)throw ut},at.prototype.addNode=function(ut){var lt=this.tagStack[this.tagStack.length-1],dt=lt.children[lt.children.length-1];this.options.withStartIndices&&(ut.startIndex=this.parser.startIndex),this.options.withEndIndices&&(ut.endIndex=this.parser.endIndex),lt.children.push(ut),dt&&(ut.prev=dt,dt.next=ut),ut.parent=lt,this.lastNode=null},at}();_e.DomHandler=ot,_e.default=ot})(lib$2);var HTML="html",HEAD="head",BODY="body",FIRST_TAG_REGEX=/<([a-zA-Z]+[0-9]?)/,HEAD_TAG_REGEX=/<head[^]*>/i,BODY_TAG_REGEX=/<body[^]*>/i,parseFromDocument=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},parseFromString=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},DOMParser=typeof window=="object"&&window.DOMParser;if(typeof DOMParser=="function"){var domParser=new DOMParser,mimeType="text/html";parseFromString=function(_e,et){return et&&(_e="<"+et+">"+_e+"</"+et+">"),domParser.parseFromString(_e,mimeType)},parseFromDocument=parseFromString}if(typeof document=="object"&&document.implementation){var doc=document.implementation.createHTMLDocument();parseFromDocument=function(_e,et){if(et){var tt=doc.documentElement.querySelector(et);return tt.innerHTML=_e,doc}return doc.documentElement.innerHTML=_e,doc}}var template=typeof document=="object"?document.createElement("template"):{},parseFromTemplate;template.content&&(parseFromTemplate=function(_e){return template.innerHTML=_e,template.content.childNodes});function domparser$1(_e){var et,tt=_e.match(FIRST_TAG_REGEX);tt&&tt[1]&&(et=tt[1].toLowerCase());var rt,nt,st;switch(et){case HTML:return rt=parseFromString(_e),HEAD_TAG_REGEX.test(_e)||(nt=rt.querySelector(HEAD),nt&&nt.parentNode.removeChild(nt)),BODY_TAG_REGEX.test(_e)||(nt=rt.querySelector(BODY),nt&&nt.parentNode.removeChild(nt)),rt.querySelectorAll(HTML);case HEAD:case BODY:return rt=parseFromDocument(_e),st=rt.querySelectorAll(et),BODY_TAG_REGEX.test(_e)&&HEAD_TAG_REGEX.test(_e)?st[0].parentNode.childNodes:st;default:return parseFromTemplate?parseFromTemplate(_e):(nt=parseFromDocument(_e,BODY).querySelector(BODY),nt.childNodes)}}var domparser_1=domparser$1,utilities$5={},constants$1={};constants$1.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 domhandler$1=lib$2,constants=constants$1,CASE_SENSITIVE_TAG_NAMES=constants.CASE_SENSITIVE_TAG_NAMES,Comment=domhandler$1.Comment,Element=domhandler$1.Element,ProcessingInstruction=domhandler$1.ProcessingInstruction,Text=domhandler$1.Text,caseSensitiveTagNamesMap={},tagName;for(var i=0,len=CASE_SENSITIVE_TAG_NAMES.length;i<len;i++)tagName=CASE_SENSITIVE_TAG_NAMES[i],caseSensitiveTagNamesMap[tagName.toLowerCase()]=tagName;function getCaseSensitiveTagName(_e){return caseSensitiveTagNamesMap[_e]}function formatAttributes(_e){for(var et={},tt,rt=0,nt=_e.length;rt<nt;rt++)tt=_e[rt],et[tt.name]=tt.value;return et}function formatTagName(_e){_e=_e.toLowerCase();var et=getCaseSensitiveTagName(_e);return et||_e}function formatDOM$1(_e,et,tt){et=et||null;for(var rt=[],nt,st=0,ot=_e.length;st<ot;st++){var at=_e[st],ut;switch(at.nodeType){case 1:nt=formatTagName(at.nodeName),ut=new Element(nt,formatAttributes(at.attributes)),ut.children=formatDOM$1(nt==="template"?at.content.childNodes:at.childNodes,ut);break;case 3:ut=new Text(at.nodeValue);break;case 8:ut=new Comment(at.nodeValue);break;default:continue}var lt=rt[st-1]||null;lt&&(lt.next=ut),ut.parent=et,ut.prev=lt,ut.next=null,rt.push(ut)}return tt&&(ut=new ProcessingInstruction(tt.substring(0,tt.indexOf(" ")).toLowerCase(),tt),ut.next=rt[0]||null,ut.parent=et,rt.unshift(ut),rt[1]&&(rt[1].prev=rt[0])),rt}utilities$5.formatAttributes=formatAttributes;utilities$5.formatDOM=formatDOM$1;var domparser=domparser_1,utilities$4=utilities$5,formatDOM=utilities$4.formatDOM,DIRECTIVE_REGEX=/<(![a-zA-Z\s]+)>/;function HTMLDOMParser(_e){if(typeof _e!="string")throw new TypeError("First argument must be a string");if(_e==="")return[];var et=_e.match(DIRECTIVE_REGEX),tt;return et&&et[1]&&(tt=et[1]),formatDOM(domparser(_e),null,tt)}var htmlToDom=HTMLDOMParser,lib={},possibleStandardNamesOptimized$1={},SAME$1=0;possibleStandardNamesOptimized$1.SAME=SAME$1;var CAMELCASE$1=1;possibleStandardNamesOptimized$1.CAMELCASE=CAMELCASE$1;possibleStandardNamesOptimized$1.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(lib,"__esModule",{value:!0});function _slicedToArray(_e,et){return _arrayWithHoles(_e)||_iterableToArrayLimit(_e,et)||_unsupportedIterableToArray(_e,et)||_nonIterableRest()}function _arrayWithHoles(_e){if(Array.isArray(_e))return _e}function _iterableToArrayLimit(_e,et){var tt=_e==null?null:typeof Symbol<"u"&&_e[Symbol.iterator]||_e["@@iterator"];if(tt!=null){var rt=[],nt=!0,st=!1,ot,at;try{for(tt=tt.call(_e);!(nt=(ot=tt.next()).done)&&(rt.push(ot.value),!(et&&rt.length===et));nt=!0);}catch(ut){st=!0,at=ut}finally{try{!nt&&tt.return!=null&&tt.return()}finally{if(st)throw at}}return rt}}function _unsupportedIterableToArray(_e,et){if(_e){if(typeof _e=="string")return _arrayLikeToArray(_e,et);var tt=Object.prototype.toString.call(_e).slice(8,-1);if(tt==="Object"&&_e.constructor&&(tt=_e.constructor.name),tt==="Map"||tt==="Set")return Array.from(_e);if(tt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(tt))return _arrayLikeToArray(_e,et)}}function _arrayLikeToArray(_e,et){(et==null||et>_e.length)&&(et=_e.length);for(var tt=0,rt=new Array(et);tt<et;tt++)rt[tt]=_e[tt];return rt}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
241
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var
|
|
242
|
-
`,FORWARD_SLASH="/",ASTERISK="*",EMPTY_STRING="",TYPE_COMMENT="comment",TYPE_DECLARATION="declaration",inlineStyleParser=function(_e,et){if(typeof _e!="string")throw new TypeError("First argument must be a string");if(!_e)return[];et=et||{};var tt=1,rt=1;function nt(mt){var vt=mt.match(NEWLINE_REGEX);vt&&(tt+=vt.length);var wt=mt.lastIndexOf(NEWLINE);rt=~wt?mt.length-wt:rt+mt.length}function st(){var mt={line:tt,column:rt};return function(vt){return vt.position=new ot(mt),lt(),vt}}function ot(mt){this.start=mt,this.end={line:tt,column:rt},this.source=et.source}ot.prototype.content=_e;function at(mt){var vt=new Error(et.source+":"+tt+":"+rt+": "+mt);if(vt.reason=mt,vt.filename=et.source,vt.line=tt,vt.column=rt,vt.source=_e,!et.silent)throw vt}function ut(mt){var vt=mt.exec(_e);if(vt){var wt=vt[0];return nt(wt),_e=_e.slice(wt.length),vt}}function lt(){ut(WHITESPACE_REGEX)}function dt(mt){var vt;for(mt=mt||[];vt=ct();)vt!==!1&&mt.push(vt);return mt}function ct(){var mt=st();if(!(FORWARD_SLASH!=_e.charAt(0)||ASTERISK!=_e.charAt(1))){for(var vt=2;EMPTY_STRING!=_e.charAt(vt)&&(ASTERISK!=_e.charAt(vt)||FORWARD_SLASH!=_e.charAt(vt+1));)++vt;if(vt+=2,EMPTY_STRING===_e.charAt(vt-1))return at("End of comment missing");var wt=_e.slice(2,vt-2);return rt+=2,nt(wt),_e=_e.slice(vt),rt+=2,mt({type:TYPE_COMMENT,comment:wt})}}function ft(){var mt=st(),vt=ut(PROPERTY_REGEX);if(vt){if(ct(),!ut(COLON_REGEX))return at("property missing ':'");var wt=ut(VALUE_REGEX),gt=mt({type:TYPE_DECLARATION,property:trim(vt[0].replace(COMMENT_REGEX,EMPTY_STRING)),value:wt?trim(wt[0].replace(COMMENT_REGEX,EMPTY_STRING)):EMPTY_STRING});return ut(SEMICOLON_REGEX),gt}}function ht(){var mt=[];dt(mt);for(var vt;vt=ft();)vt!==!1&&(mt.push(vt),dt(mt));return mt}return lt(),ht()};function trim(_e){return _e?_e.replace(TRIM_REGEX,EMPTY_STRING):EMPTY_STRING}var parse=inlineStyleParser;function StyleToObject(_e,et){var tt=null;if(!_e||typeof _e!="string")return tt;for(var rt,nt=parse(_e),st=typeof et=="function",ot,at,ut=0,lt=nt.length;ut<lt;ut++)rt=nt[ut],ot=rt.property,at=rt.value,st?et(ot,at,rt):at&&(tt||(tt={}),tt[ot]=at);return tt}styleToObject.exports=StyleToObject;styleToObject.exports.default=StyleToObject;var styleToObjectExports=styleToObject.exports,utilities$3={};utilities$3.__esModule=!0;utilities$3.camelCase=void 0;var CUSTOM_PROPERTY_REGEX=/^--[a-zA-Z0-9-]+$/,HYPHEN_REGEX=/-([a-z])/g,NO_HYPHEN_REGEX=/^[^-]+$/,VENDOR_PREFIX_REGEX=/^-(webkit|moz|ms|o|khtml)-/,MS_VENDOR_PREFIX_REGEX=/^-(ms)-/,skipCamelCase=function(_e){return!_e||NO_HYPHEN_REGEX.test(_e)||CUSTOM_PROPERTY_REGEX.test(_e)},capitalize=function(_e,et){return et.toUpperCase()},trimHyphen=function(_e,et){return"".concat(et,"-")},camelCase=function(_e,et){return et===void 0&&(et={}),skipCamelCase(_e)?_e:(_e=_e.toLowerCase(),et.reactCompat?_e=_e.replace(MS_VENDOR_PREFIX_REGEX,trimHyphen):_e=_e.replace(VENDOR_PREFIX_REGEX,trimHyphen),_e.replace(HYPHEN_REGEX,capitalize))};utilities$3.camelCase=camelCase;(function(_e){var et=commonjsGlobal&&commonjsGlobal.__importDefault||function(st){return st&&st.__esModule?st:{default:st}};_e.__esModule=!0;var tt=et(styleToObjectExports),rt=utilities$3;function nt(st,ot){var at={};return!st||typeof st!="string"||(0,tt.default)(st,function(ut,lt){ut&<&&(at[(0,rt.camelCase)(ut,ot)]=lt)}),at}_e.default=nt})(cjs);var React$1=reactExports,styleToJS=cjs.default;function invertObject(_e,et){if(!_e||typeof _e!="object")throw new TypeError("First argument must be an object");var tt,rt,nt=typeof et=="function",st={},ot={};for(tt in _e){if(rt=_e[tt],nt&&(st=et(tt,rt),st&&st.length===2)){ot[st[0]]=st[1];continue}typeof rt=="string"&&(ot[rt]=tt)}return ot}function isCustomComponent(_e,et){if(_e.indexOf("-")===-1)return et&&typeof et.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 styleToJSOptions={reactCompat:!0};function setStyleProp$1(_e,et){if(_e!=null)try{et.style=styleToJS(_e,styleToJSOptions)}catch{et.style={}}}var PRESERVE_CUSTOM_ATTRIBUTES=React$1.version.split(".")[0]>=16,elementsWithNoTextChildren=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);function canTextBeChildOfNode$1(_e){return!elementsWithNoTextChildren.has(_e.name)}var utilities$2={PRESERVE_CUSTOM_ATTRIBUTES,invertObject,isCustomComponent,setStyleProp:setStyleProp$1,canTextBeChildOfNode:canTextBeChildOfNode$1,elementsWithNoTextChildren},reactProperty=lib,utilities$1=utilities$2,UNCONTROLLED_COMPONENT_ATTRIBUTES=["checked","value"],UNCONTROLLED_COMPONENT_NAMES=["input","select","textarea"],VALUE_ONLY_INPUTS={reset:!0,submit:!0},attributesToProps$3=function _e(et,tt){et=et||{};var rt,nt,st,ot,at,ut={},lt=et.type&&VALUE_ONLY_INPUTS[et.type];for(rt in et){if(st=et[rt],reactProperty.isCustomAttribute(rt)){ut[rt]=st;continue}if(nt=rt.toLowerCase(),ot=getPropName(nt),ot){switch(at=reactProperty.getPropertyInfo(ot),UNCONTROLLED_COMPONENT_ATTRIBUTES.indexOf(ot)!==-1&&UNCONTROLLED_COMPONENT_NAMES.indexOf(tt)!==-1&&!lt&&(ot=getPropName("default"+nt)),ut[ot]=st,at&&at.type){case reactProperty.BOOLEAN:ut[ot]=!0;break;case reactProperty.OVERLOADED_BOOLEAN:st===""&&(ut[ot]=!0);break}continue}utilities$1.PRESERVE_CUSTOM_ATTRIBUTES&&(ut[rt]=st)}return utilities$1.setStyleProp(et.style,ut),ut};function getPropName(_e){return reactProperty.possibleStandardNames[_e]}var React=reactExports,attributesToProps$2=attributesToProps$3,utilities=utilities$2,setStyleProp=utilities.setStyleProp,canTextBeChildOfNode=utilities.canTextBeChildOfNode;function domToReact$2(_e,et){et=et||{};for(var tt=et.library||React,rt=tt.cloneElement,nt=tt.createElement,st=tt.isValidElement,ot=[],at,ut,lt=typeof et.replace=="function",dt,ct,ft,ht=et.trim,mt=0,vt=_e.length;mt<vt;mt++){if(at=_e[mt],lt&&(dt=et.replace(at),st(dt))){vt>1&&(dt=rt(dt,{key:dt.key||mt})),ot.push(dt);continue}if(at.type==="text"){if(ut=!at.data.trim().length,ut&&at.parent&&!canTextBeChildOfNode(at.parent)||ht&&ut)continue;ot.push(at.data);continue}switch(ct=at.attribs,skipAttributesToProps(at)?setStyleProp(ct.style,ct):ct&&(ct=attributesToProps$2(ct,at.name)),ft=null,at.type){case"script":case"style":at.children[0]&&(ct.dangerouslySetInnerHTML={__html:at.children[0].data});break;case"tag":at.name==="textarea"&&at.children[0]?ct.defaultValue=at.children[0].data:at.children&&at.children.length&&(ft=domToReact$2(at.children,et));break;default:continue}vt>1&&(ct.key=mt),ot.push(nt(at.name,ct,ft))}return ot.length===1?ot[0]:ot}function skipAttributesToProps(_e){return utilities.PRESERVE_CUSTOM_ATTRIBUTES&&_e.type==="tag"&&utilities.isCustomComponent(_e.name,_e.attribs)}var domToReact_1=domToReact$2,domhandler=lib$2,htmlToDOM=htmlToDom,attributesToProps$1=attributesToProps$3,domToReact$1=domToReact_1;htmlToDOM=typeof htmlToDOM.default=="function"?htmlToDOM.default:htmlToDOM;var domParserOptions={lowerCaseAttributeNames:!1};function HTMLReactParser(_e,et){if(typeof _e!="string")throw new TypeError("First argument must be a string");return _e===""?[]:(et=et||{},domToReact$1(htmlToDOM(_e,et.htmlparser2||domParserOptions),et))}HTMLReactParser.domToReact=domToReact$1;HTMLReactParser.htmlToDOM=htmlToDOM;HTMLReactParser.attributesToProps=attributesToProps$1;HTMLReactParser.Comment=domhandler.Comment;HTMLReactParser.Element=domhandler.Element;HTMLReactParser.ProcessingInstruction=domhandler.ProcessingInstruction;HTMLReactParser.Text=domhandler.Text;var htmlReactParser=HTMLReactParser;HTMLReactParser.default=HTMLReactParser;const HTMLReactParser$1=getDefaultExportFromCjs$1(htmlReactParser);var domToReact=HTMLReactParser$1.domToReact;HTMLReactParser$1.htmlToDOM;var attributesToProps=HTMLReactParser$1.attributesToProps;HTMLReactParser$1.Comment;HTMLReactParser$1.Element;HTMLReactParser$1.ProcessingInstruction;HTMLReactParser$1.Text;function useHelp(){var ht,mt;const{appCode:_e}=useOdeClient(),{theme:et}=useTheme(),[tt,rt]=reactExports.useState(""),[nt,st]=reactExports.useState(!0),[ot,at]=reactExports.useState(!1),[ut,lt]=reactExports.useState(!1),dt=et!=null&&et.is1d?"/help-1d":"/help-2d";reactExports.useEffect(()=>{(async()=>{let vt="";vt=dt+"/application/"+_e+"/",!_e&&window.location.pathname!=="/adapter"?vt=dt+"/application/portal/":window.location.pathname==="/adapter"?vt=dt+"/application/"+window.location.search.split("eliot=")[1].split("&")[0]+"/":window.location.pathname.includes("/directory/class-admin")?vt=dt+"/application/parametrage-de-la-classe/":(window.location.pathname.includes("/userbook/mon-compte")||window.location.pathname.includes("/timeline/preferencesView")||window.location.pathname.includes("/timeline/historyView"))&&(vt=dt+"/application/userbook/");try{const wt=await fetch(vt),gt=await wt.text();if(wt.status===404){lt(!0);return}rt(gt),lt(!1)}catch(wt){lt(!0),console.error(wt)}})()},[_e,dt]);const ct=(mt=(ht=HTMLReactParser$1(tt,{replace:vt=>{const wt=vt;if(wt.attribs&&wt.attribs.id==="TOC")return jsxRuntimeExports.jsxs("nav",{id:"TOC",children:[jsxRuntimeExports.jsx(Button$1,{onClick:()=>{st(!nt)},children:jsxRuntimeExports.jsx(SvgBurgerMenu$1,{})}),domToReact(wt.children,{replace:gt=>{const yt=gt;if(yt.attribs&&yt.name==="ul")return jsxRuntimeExports.jsx("ul",{id:"TOC-list",style:{display:nt?"block":"none"},children:domToReact(yt.children,{replace:xt=>{const St=xt;if(St.attribs&&St.name==="a")return jsxRuntimeExports.jsx("a",{...attributesToProps(St.attribs),children:jsxRuntimeExports.jsx("span",{onClick:()=>{st(!1)},children:domToReact(St.children)})})}})})}})]});if(wt.attribs&&wt.attribs.class==="section level2"){const gt=attributesToProps(vt.attribs);return jsxRuntimeExports.jsx("div",{...gt,className:"section level2",style:{display:wt.attribs.id!=="présentation"?"none":"block"},children:domToReact(wt.children,{replace:yt=>{const xt=yt;if(xt.attribs&&xt.name==="p")return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});if(xt.attribs&&xt.name==="img"){const St=yt.attribs.src;return jsxRuntimeExports.jsx("img",{...attributesToProps(xt.attribs),src:`${dt}/${St}`,alt:""})}}})})}}}))==null?void 0:ht.props)==null?void 0:mt.children.find(vt=>vt.type==="body").props.children,ft=ct==null?void 0:ct.find(vt=>vt.type==="p").props.children;return{html:tt,visibility:nt,isModalOpen:ot,setIsModalOpen:at,parsedContent:ct,parsedHeadline:ft,error:ut}}const ModalContext=reactExports.createContext({ariaLabelId:"",ariaDescriptionId:"",focusId:""});ModalContext.displayName="ModalContext";const useModalContext=()=>{const _e=reactExports.useContext(ModalContext);if(!_e)throw new Error("Cannot be rendered outside the Modal component");return _e},ModalBody=_e=>{const{ariaDescriptionId:et}=useModalContext(),{children:tt,className:rt}=_e,nt=clsx("modal-body",rt);return jsxRuntimeExports.jsx("div",{id:et,className:nt,children:tt})};ModalBody.displayName="Modal.Body";const ModalBody$1=ModalBody,ModalFooter=_e=>jsxRuntimeExports.jsx("div",{className:"modal-footer",children:_e.children});ModalFooter.displayName="Modal.Footer";const ModalFooter$1=ModalFooter,ModalHeader=_e=>{const{onModalClose:et,children:tt}=_e,{ariaLabelId:rt,focusId:nt}=useModalContext(),st=reactExports.useRef(null);return reactExports.useEffect(()=>{var ot;nt||((ot=st.current)==null||ot.focus())},[nt]),jsxRuntimeExports.jsxs("div",{className:"modal-header",children:[jsxRuntimeExports.jsx("h2",{id:rt,className:"modal-title",tabIndex:-1,children:tt}),jsxRuntimeExports.jsx("button",{ref:st,type:"button",className:"btn btn-close","aria-label":"Close",onClick:et})]})};ModalHeader.displayName="Modal.Header";const ModalHeader$1=ModalHeader,ModalSubtitle=_e=>jsxRuntimeExports.jsx("p",{className:"modal-subtitle",children:_e.children});ModalSubtitle.displayName="Modal.Subtitle";const ModalSubtitle$1=ModalSubtitle,Root$1=reactExports.forwardRef((_e,et)=>{const{id:tt,isOpen:rt,onModalClose:nt,size:st="md",scrollable:ot,focusId:at,children:ut}=_e,lt=`aria_label_${tt}`,dt=`aria_desc_${tt}`,ct=useClickOutside(nt),ft=useTrapFocus();useKeyPress(nt,["Escape"]),reactExports.useEffect(()=>{var wt;return rt&&(document.body.style.overflow="hidden",at&&((wt=document.getElementById(at))==null||wt.focus())),()=>{document.body.style.overflow=""}},[at,rt]);const ht=clsx("modal-dialog",{[`modal-${st}`]:st,"modal-dialog-scrollable":ot}),mt={ariaLabelId:lt,ariaDescriptionId:dt,focusId:at},vt=useTransition(rt,{from:{x:-50,opacity:0},enter:{x:0,opacity:1},leave:{x:50,opacity:0}});return jsxRuntimeExports.jsx(ModalContext.Provider,{value:mt,children:vt((wt,gt)=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[gt&&jsxRuntimeExports.jsx(it$1.div,{id:tt,ref:et,role:"dialog","aria-modal":"true","aria-labelledby":lt,"aria-describedby":dt,className:`modal fade ${gt?"show d-block":""}`,style:wt,tabIndex:-1,children:jsxRuntimeExports.jsx("div",{id:`${tt}_ref`,ref:yt=>{ct.current=yt,gt&&(ft.current=yt)},className:ht,children:jsxRuntimeExports.jsx("div",{className:"modal-content",children:ut})})}),gt&&jsxRuntimeExports.jsx(it$1.div,{className:"modal-backdrop fade show",style:{opacity:.65}})]}))})}),Modal=Object.assign(Root$1,{Header:ModalHeader$1,Subtitle:ModalSubtitle$1,Body:ModalBody$1,Footer:ModalFooter$1});Root$1.displayName="Modal";const Modal$1=Modal;function Help({isHelpOpen:_e,setIsHelpOpen:et,parsedHeadline:tt,parsedContent:rt,error:nt}){const{t:st}=useTranslation(),ot=()=>{et(!1)};return _e?reactDomExports.createPortal(jsxRuntimeExports.jsxs(Modal$1,{id:"help-modal",isOpen:_e,onModalClose:ot,scrollable:!0,size:"xl",children:[jsxRuntimeExports.jsx(Modal$1.Header,{onModalClose:ot,children:st("navbar.help")}),jsxRuntimeExports.jsx(Modal$1.Subtitle,{children:nt?st("help.notfound.title"):tt}),jsxRuntimeExports.jsx(Modal$1.Body,{className:nt?"d-flex":null,children:nt?st("help.notfound.text"):rt})]}),document.getElementById("portal")):null}const Logo=reactExports.forwardRef(({src:_e,is1d:et,translate:tt="Retour accueil"},rt)=>{const nt=clsx("navbar-brand d-none d-md-block");return jsxRuntimeExports.jsx("a",{ref:rt,className:nt,href:"/timeline/timeline","aria-label":tt,children:jsxRuntimeExports.jsx("img",{className:"logo",src:_e,alt:`logo ${et?"ONE":"NEO"}`,width:"300",height:"52"})})});Logo.displayName="Logo";const Logo$1=Logo,PopoverBody=({children:_e,className:et})=>{const tt=clsx("popover-body",et);return jsxRuntimeExports.jsx("div",{className:tt,children:_e})},PopoverFooter=({children:_e,className:et})=>{const tt=clsx("popover-footer p-8",et);return jsxRuntimeExports.jsx("div",{className:tt,children:_e})},Popover=reactExports.forwardRef(({children:_e,className:et,id:tt,isVisible:rt,...nt},st)=>{const ot=clsx("popover d-block position-absolute top-100 start-50 translate-middle-x",et);return useTransition(rt,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0}})((at,ut)=>ut&&jsxRuntimeExports.jsx(it$1.div,{ref:st,"aria-labelledby":tt,className:ot,role:"tooltip",style:at,...nt,children:_e}))});Popover.displayName="Popover";function Header({is1d:_e=!1,src:et=""}){const{user:tt,avatar:rt}=useUser(),{t:nt}=useTranslation(),{inputRef:st,title:ot,bookmarkedApps:at,appsRef:ut,isAppsHovered:lt,popoverAppsId:dt,searchRef:ct,isSearchHovered:ft,popoverSearchId:ht,messages:mt,userAvatar:vt,userName:wt,welcomeUser:gt,communityWorkflow:yt,conversationWorflow:xt,zimbraWorkflow:St,searchWorkflow:bt,isCollapsed:$t,msgLink:At,redirectToSearch:Tt,toggleCollapsedNav:Ft,handleLogout:Pt}=useHeader({user:tt,avatar:rt}),{isModalOpen:Dt,setIsModalOpen:Mt,parsedContent:It,parsedHeadline:Et,error:Rt}=useHelp(),Ot=clsx("header header-react",{"no-2d":_e,"no-1d":!_e}),kt=mt>0;return jsxRuntimeExports.jsx("header",{className:Ot,children:_e?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"container-fluid",children:jsxRuntimeExports.jsxs(Navbar,{children:[jsxRuntimeExports.jsx("a",{className:"navbar-title d-md-none text-truncate h4",href:"/timeline/timeline",children:ot}),jsxRuntimeExports.jsxs("div",{className:"d-none d-md-inline-flex gap-12 align-items-center",children:[jsxRuntimeExports.jsx(Avatar$1,{alt:wt,size:"sm",src:vt,variant:"circle",width:"32",height:"32"}),jsxRuntimeExports.jsx("span",{className:"navbar-text",children:gt})]}),jsxRuntimeExports.jsxs(NavBarNav,{className:"gap-8","aria-hidden":"false","aria-label":nt("navbar.main.navigation"),children:[xt&&jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("a",{href:"/conversation/conversation",className:"nav-link",children:[jsxRuntimeExports.jsx(SvgOneMessaging$1,{className:"icon notification"}),kt&&jsxRuntimeExports.jsx(Badge,{children:mt}),jsxRuntimeExports.jsx(VisuallyHidden$1,{children:nt("navbar.messages")})]})}),jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsx(NavLink,{link:"/userbook/mon-compte",className:"dropdown-item",translate:nt("navbar.myaccount"),children:jsxRuntimeExports.jsx(SvgOneProfile$1,{className:"icon user"})})}),jsxRuntimeExports.jsxs(NavItem,{children:[jsxRuntimeExports.jsxs("button",{className:"nav-link",onClick:()=>{Mt(!0)},children:[jsxRuntimeExports.jsx(SvgOneAssistance$1,{className:"icon help"}),jsxRuntimeExports.jsx(VisuallyHidden$1,{children:nt("navbar.help")})]}),jsxRuntimeExports.jsx(Help,{isHelpOpen:Dt,setIsHelpOpen:Mt,parsedContent:It,parsedHeadline:Et,error:Rt})]}),jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("button",{className:"nav-link",onClick:Pt,children:[jsxRuntimeExports.jsx(SvgDisconnect$1,{className:"icon logout"}),jsxRuntimeExports.jsx(VisuallyHidden$1,{children:nt("navbar.disconnect")})]})}),jsxRuntimeExports.jsx(NavItem,{className:"d-md-none",children:jsxRuntimeExports.jsx("button",{className:"nav-link btn btn-naked",type:"button","aria-controls":"navbarCollapsed","aria-expanded":!$t,"aria-label":nt("navbar.secondary.navigation"),onClick:Ft,children:jsxRuntimeExports.jsx(SvgRafterDown$1,{className:"icon rafter-down",width:"20",height:"20"})})})]})]})}),jsxRuntimeExports.jsx(Navbar,{className:"no-2d navbar-secondary navbar-expand-md","aria-label":nt("navbar.secondary.navigation"),children:jsxRuntimeExports.jsx("div",{className:"container-fluid",children:jsxRuntimeExports.jsxs("div",{className:`collapse navbar-collapse ${$t?"":"show"}`,id:"navbarCollapsed",children:[jsxRuntimeExports.jsx(Logo$1,{is1d:!0,src:`${et}/img/illustrations/logo.png`,translate:nt("navbar.home")}),jsxRuntimeExports.jsxs(NavBarNav,{className:"gap-8",children:[jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("a",{href:"/timeline/timeline",className:"button",children:[jsxRuntimeExports.jsx(SvgNewRelease$1,{color:"#fff",className:"d-md-none"}),jsxRuntimeExports.jsx("span",{className:"d-inline-block",children:nt("portal.header.navigation.whatsnew")})]})}),jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("a",{href:"/userbook/annuaire",className:"button",children:[jsxRuntimeExports.jsx(SvgUserbook$1,{color:"#fff",className:"d-md-none"}),jsxRuntimeExports.jsx("span",{className:"d-inline-block",children:nt("portal.header.navigation.classMembers")})]})}),jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("a",{href:"/welcome",className:"button",children:[jsxRuntimeExports.jsx(SvgMyApps$1,{color:"#fff",className:"d-md-none"}),jsxRuntimeExports.jsx("span",{className:"d-inline-block",children:nt("portal.header.navigation.myapps")})]})})]})]})})})]}):jsxRuntimeExports.jsx(Navbar,{className:"navbar-expand-md",children:jsxRuntimeExports.jsxs("div",{className:"container-fluid",children:[jsxRuntimeExports.jsx(Logo$1,{src:`${et}/img/illustrations/logo.png`}),jsxRuntimeExports.jsx("a",{href:"/timeline/timeline",className:"navbar-title text-truncate d-md-none",children:ot}),jsxRuntimeExports.jsxs("ul",{className:"navbar-nav",children:[jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsx(NavLink,{link:"/timeline/timeline",translate:nt("navbar.home"),children:jsxRuntimeExports.jsx(SvgHome$1,{color:"#fff"})})}),jsxRuntimeExports.jsxs(NavItem,{className:"position-relative",ref:ut,id:dt,"aria-haspopup":"true","aria-expanded":lt,children:[jsxRuntimeExports.jsx(NavLink,{link:"/welcome",translate:nt("navbar.applications"),children:jsxRuntimeExports.jsx(SvgMyApps$1,{color:"#fff"})}),jsxRuntimeExports.jsxs(Popover,{className:"top-100",id:dt,isVisible:lt,children:[jsxRuntimeExports.jsx(PopoverBody,{children:jsxRuntimeExports.jsx(WidgetAppsBody,{bookmarkedApps:at})}),jsxRuntimeExports.jsx(PopoverFooter,{className:"widget-footer border-top border-ghost",children:jsxRuntimeExports.jsx(WidgetAppsFooter,{})})]})]}),xt&&jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs(NavLink,{className:"position-relative",link:"/conversation/conversation",translate:nt("conversation"),children:[jsxRuntimeExports.jsx(SvgNeoMessaging$1,{color:"#fff"}),kt&&jsxRuntimeExports.jsx(Badge,{children:mt})]})}),St&&jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs(NavLink,{className:"position-relative",link:At,translate:nt("conversation"),children:[jsxRuntimeExports.jsx(SvgNeoMessaging$1,{color:"#fff"}),kt&&jsxRuntimeExports.jsx(Badge,{children:mt})]})}),jsxRuntimeExports.jsxs(NavItem,{children:[jsxRuntimeExports.jsxs("button",{className:"nav-link btn btn-naked",onClick:()=>{Mt(!0)},children:[jsxRuntimeExports.jsx(SvgNeoAssistance$1,{color:"#fff"}),jsxRuntimeExports.jsx(VisuallyHidden$1,{children:nt("support")})]}),jsxRuntimeExports.jsx(Help,{isHelpOpen:Dt,setIsHelpOpen:Mt,parsedContent:It,parsedHeadline:Et,error:Rt})]}),jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("div",{className:"dropdown",children:[jsxRuntimeExports.jsx("button",{className:"nav-link btn btn-naked d-md-none",type:"button","aria-controls":"dropdown-navbar","aria-expanded":!$t,"aria-label":nt("navbar.open.menu"),onClick:Ft,children:jsxRuntimeExports.jsx(SvgRafterDown$1,{className:"icon rafter-down",width:"20",height:"20",color:"#fff"})}),jsxRuntimeExports.jsxs("ul",{className:`dropdown-menu dropdown-menu-end ${$t?"":"show"}`,id:"dropdown-navbar",children:[yt&&jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("a",{href:"/community",className:"nav-link dropdown-item",children:[jsxRuntimeExports.jsx(SvgCommunity$1,{className:"icon community"}),jsxRuntimeExports.jsx("span",{className:"nav-text",children:nt("navbar.community")})]})}),bt&&jsxRuntimeExports.jsxs(NavItem,{id:ht,className:"position-relative",ref:ct,"aria-haspopup":"true","aria-expanded":ft,children:[jsxRuntimeExports.jsxs("a",{href:"/searchengine",className:"nav-link dropdown-item",children:[jsxRuntimeExports.jsx(SvgSearch$1,{className:"icon search"}),jsxRuntimeExports.jsx("span",{className:"nav-text",children:nt("navbar.search")})]}),jsxRuntimeExports.jsx(Popover,{id:ht,isVisible:ft,children:jsxRuntimeExports.jsx(NavSearch,{ref:st,children:jsxRuntimeExports.jsx(SearchButton$1,{type:"submit",size:"sm",onClick:Tt,"aria-label":nt("navbar.search")})})})]}),jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsxs("a",{href:"/userbook/mon-compte",className:"nav-link dropdown-item",children:[jsxRuntimeExports.jsx(Avatar$1,{alt:wt,size:"sm",src:vt,variant:"circle",className:"bg-white",width:"32",height:"32"}),jsxRuntimeExports.jsx("span",{className:"nav-text",children:nt("navbar.myaccount")})]})}),jsxRuntimeExports.jsx(NavItem,{children:jsxRuntimeExports.jsx("hr",{className:"dropdown-divider"})}),jsxRuntimeExports.jsxs(NavItem,{children:[jsxRuntimeExports.jsx("button",{className:"nav-link btn logout","aria-labelledby":"logout-label",onClick:Pt,children:jsxRuntimeExports.jsx(SvgDisconnect$1,{className:"icon logout"})}),jsxRuntimeExports.jsx("span",{id:"logout-label",className:"nav-text",children:nt("navbar.disconnect")})]})]})]})})]})]})})})}const Layout=({children:_e,...et})=>{const{theme:tt}=useTheme();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Header,{is1d:tt==null?void 0:tt.is1d,src:tt==null?void 0:tt.basePath}),jsxRuntimeExports.jsx(Main,{className:clsx("d-flex flex-column bg-white",{"rounded-4 border":tt==null?void 0:tt.is1d,"mt-24":tt==null?void 0:tt.is1d}),...et,children:_e}),jsxRuntimeExports.jsx(Ie,{toastOptions:{position:"top-right"}})]})};Layout.displayName="Layout";const Layout$1=Layout,LoadingScreen=reactExports.forwardRef(({position:_e=!0},et)=>{const tt="/assets/themes/ode-bootstrap/images/screen-loading.gif",rt=clsx("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 jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{ref:et,className:rt,children:jsxRuntimeExports.jsx("div",{className:"bg-white rounded-circle mx-auto",children:jsxRuntimeExports.jsx("img",{src:tt,alt:"loading"})})}),!_e&&jsxRuntimeExports.jsx("div",{className:"modal-backdrop fade show"})]})});LoadingScreen.displayName="LoadingScreen";const LoadingScreen$1=LoadingScreen;function useTreeItemEvents(_e,et,tt,rt,nt,st,ot,at,ut){const lt=ft=>{ft.preventDefault(),nt==null||nt(_e),ft.stopPropagation()},dt=ft=>{(ft.code==="Enter"||ft.code==="Space")&&(ft.preventDefault(),nt==null||nt(_e),ft.stopPropagation())},ct=()=>{rt(!tt),tt?st==null||st(_e):ot==null||ot(_e)};return{handleItemClick:lt,handleItemKeyDown:dt,handleItemFoldUnfoldClick:ft=>{ft.preventDefault(),ct(),ft.stopPropagation()},handleItemFoldUnfoldKeyDown:ft=>{(ft.code==="Enter"||ft.code==="Space")&&(ft.preventDefault(),ct(),ft.stopPropagation())},handleItemFocus:ft=>{ft.preventDefault(),at==null||at(_e)},handleItemBlur:ft=>{ft.preventDefault(),ut==null||ut(_e)}}}const TreeItem=_e=>{const{nodeId:et,label:tt,children:rt,section:nt,selected:st,onItemSelect:ot,onItemFold:at,onItemUnfold:ut,onItemFocus:lt,onItemBlur:dt,selectedNodesIds:ct}=_e,[ft,ht]=reactExports.useState(!1),{handleItemClick:mt,handleItemKeyDown:vt,handleItemFoldUnfoldClick:wt,handleItemFoldUnfoldKeyDown:gt,handleItemFocus:yt,handleItemBlur:xt}=useTreeItemEvents(et,tt,ft,ht,ot,at,ut,lt,dt);reactExports.useEffect(()=>{if(ct!=null&&ct.length&&(ct==null?void 0:ct.length)>=1){const $t=ct[ct.length-1];ct.some(At=>At===et&&et!==$t?(ht(!0),At===et):(ht(!1),!1))}else ht(!1)},[et,ct]);const St=nt?16:12,bt=()=>jsxRuntimeExports.jsx("li",{id:`listitem_${et}`,role:"treeitem","aria-selected":st,"aria-expanded":ft,children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("div",{className:"action-container d-flex align-items-center gap-8 px-2",children:[jsxRuntimeExports.jsxs("div",{className:"py-8",tabIndex:0,role:"button",onClick:wt,onKeyDown:gt,"aria-label":"fold/unfold button",children:[Array.isArray(rt)&&!ft&&jsxRuntimeExports.jsx(SvgRafterRight$1,{title:"RafterRight",width:St,height:St}),Array.isArray(rt)&&ft&&jsxRuntimeExports.jsx(SvgRafterDown$1,{title:"RafterDown",width:St,height:St}),!Array.isArray(rt)&&jsxRuntimeExports.jsx(SvgRafterRight$1,{title:"RafterRight",width:St,height:St,"aria-hidden":"true",className:"opacity-0"})]}),jsxRuntimeExports.jsxs("div",{tabIndex:0,role:"button",className:"flex-fill d-flex align-items-center text-truncate gap-8 py-8",onClick:mt,onKeyDown:vt,onFocus:yt,onBlur:xt,children:[nt&&jsxRuntimeExports.jsx(SvgFolder$1,{title:"Folder",width:20,height:20}),jsxRuntimeExports.jsx("span",{className:"text-truncate",children:tt})]})]}),Array.isArray(rt)&&jsxRuntimeExports.jsx("ul",{role:"group",children:rt})]})},et);return nt?jsxRuntimeExports.jsx("ul",{role:"tree",className:"m-0 p-0",children:bt()}):bt()};TreeItem.displayName="TreeItem";const TreeItem$1=TreeItem,TreeView=reactExports.forwardRef((_e,et)=>{const{data:tt,onTreeItemSelect:rt,onTreeItemFold:nt,onTreeItemUnfold:st,onTreeItemFocus:ot,onTreeItemBlur:at,selectedNodesIds:ut}=_e,[lt,dt]=reactExports.useState("default");reactExports.useEffect(()=>{ut!=null&&ut.length&&(ut==null?void 0:ut.length)>=1?dt(ut[ut.length-1]):dt("")},[ut]);const ct=gt=>{dt(gt),rt==null||rt(gt)},ft=gt=>{nt==null||nt(gt)},ht=gt=>{st==null||st(gt)},mt=gt=>{ot==null||ot(gt)},vt=gt=>{at==null||at(gt)},wt=gt=>jsxRuntimeExports.jsx(TreeItem$1,{nodeId:gt.id,label:gt.name,section:gt.section,selectedNodesIds:ut,selected:lt===gt.id,onItemSelect:ct,onItemFold:ft,onItemUnfold:ht,onItemFocus:mt,onItemBlur:vt,children:Array.isArray(gt.children)?gt.children.map(yt=>wt(yt)):null},gt.id);return jsxRuntimeExports.jsx("div",{ref:et,id:"treeview",className:"treeview",children:wt(tt)})});TreeView.displayName="TreeView";const TreeView$1=TreeView;class TreeNodeFolderWrapper{constructor(et){Kt(this,"id");Kt(this,"name");Kt(this,"childNumber");Kt(this,"section",!1);Kt(this,"children",[]);this.folder=et,this.id=et.id,this.name=et.name,this.childNumber=et.childNumber}}const searchContext=async _e=>{const et=await odeServices.resource(_e.app).searchContext(_e);return{...et,folders:et.folders.filter(tt=>!tt.trashed)}},createFolder=async({searchParams:_e,name:et,parentId:tt})=>{const rt={name:et,parentId:tt,app:_e.app,type:_e.types[0]};return await odeServices.resource(_e.app).createFolder(rt)},updateFolder=async({folderId:_e,searchParams:et,parentId:tt,name:rt})=>{const nt={folderId:_e,name:rt,parentId:tt,app:et.app,type:et.types[0]};return await odeServices.resource(et.app).updateFolder(nt)},trashAll=async({searchParams:_e,resourceIds:et,folderIds:tt})=>{const rt={application:_e.app,resourceType:_e.types[0],resourceIds:et,folderIds:tt};return await odeServices.resource(_e.app).trashAll(rt)},deleteAll=async({searchParams:_e,resourceIds:et,folderIds:tt})=>{const rt={application:_e.app,resourceType:_e.types[0],resourceIds:et,folderIds:tt};return await odeServices.resource(_e.app).deleteAll(rt)},restoreAll=async({searchParams:_e,resourceIds:et,folderIds:tt})=>{const rt={application:_e.app,resourceType:_e.types[0],resourceIds:et,folderIds:tt};return await odeServices.resource(_e.app).restoreAll(rt)},moveToFolder=async({searchParams:_e,resourceIds:et,folderId:tt,folderIds:rt})=>{const nt={application:_e.app,folderId:tt,resourceIds:et,folderIds:rt};return await odeServices.resource(_e.app).moveToFolder(nt)},shareResource=async({searchParams:_e,entId:et,shares:tt})=>await odeServices.share().saveRights(_e.app,et,tt),updateResource=async({searchParams:_e,params:et})=>await odeServices.resource(_e.app).update(et),sessionHasWorkflowRights=async _e=>await odeServices.rights().sessionHasWorkflowRights(_e),goToResource=({searchParams:_e,assetId:et})=>odeServices.resource(_e.app).gotoView(et),createResource=({searchParams:_e,safeFolderId:et})=>odeServices.resource(_e.app).gotoForm(et),printResource=({searchParams:_e,assetId:et})=>odeServices.resource(_e.app).gotoPrint(et),publishResource=async({searchParams:_e,params:et})=>await odeServices.resource(_e.app).publish(et),getOnboardingTrash=async()=>await odeServices.conf().getPreference("showOnboardingTrash"),saveOnboardingTrash=async({onSuccess:_e})=>{const et=await odeServices.conf().savePreference("showOnboardingTrash",JSON.stringify({showOnboardingTrash:!1}));return _e==null||_e(),et};function arrayUnique(_e){return _e.filter((et,tt)=>_e.indexOf(et)===tt)}function modifyNode(_e,et){return doModify(_e,et)||_e}function doModify(_e,et,tt){var nt;const rt=et(_e,tt);if((nt=rt==null?void 0:rt.children)!=null&&nt.length){const st=[];for(const ot of(rt==null?void 0:rt.children)||[]){const at=doModify(ot,et,rt);at&&st.push(at)}return{...rt,children:st}}return rt}function addNode(_e,{parentId:et,newFolder:tt}){return modifyNode(_e,rt=>{var nt;if(rt.id===et){const st=[...((nt=rt.folder)==null?void 0:nt.ancestors)||[]],ot=arrayUnique([...st,rt.id]);return{...rt,children:[...rt.children||[],new TreeNodeFolderWrapper({...tt,ancestors:ot})]}}else return rt})}function deleteNode(_e,{folders:et}){return modifyNode(_e,tt=>{if(!et.includes(tt.id))return tt})}const rootElement=document.querySelector("[data-ode-app]");let _appParams;function getAppParams(){var _e;if(_appParams)return _appParams;if(_appParams={app:APP.PORTAL,types:["folder"],filters:[],actions:[],trashActions:[],orders:[]},(_e=rootElement==null?void 0:rootElement.dataset)!=null&&_e.odeApp){const{odeApp:et}=rootElement.dataset;try{const tt=JSON.parse(et);Object.assign(_appParams,tt)}catch(tt){console.error("[AppParams] could not parse app params from root data attributes:",rootElement==null?void 0:rootElement.dataset,tt)}}else console.error("[AppParams] could not found app params from root data attributes:",rootElement==null?void 0:rootElement.dataset);return _appParams}function findNodeById(_e,et){var rt,nt;let tt;return(et==null?void 0:et.id)===_e?et:((rt=et==null?void 0:et.children)!=null&&rt.length&&((nt=et==null?void 0:et.children)==null||nt.every(st=>(tt=findNodeById(_e,st),tt===void 0))),tt)}function moveNode(_e,{destinationId:et,folders:tt}){return modifyNode(_e,(rt,nt)=>{var st,ot;if(et===rt.id){const at=[...((st=rt.folder)==null?void 0:st.ancestors)||[]],ut=arrayUnique([...at,rt.id]),lt=[...rt.children||[]],dt=((ot=rt.children)==null?void 0:ot.map(ft=>ft.id))||[];for(const ft of tt)if(!dt.includes(ft)){const ht=findNodeById(ft,_e);ht&<.push({...ht,folder:{...ht==null?void 0:ht.folder,ancestors:ut}})}return{...rt,children:lt}}else return tt.includes(rt.id)&&et!==(nt==null?void 0:nt.id)?void 0:rt})}function updateNode(_e,{folderId:et,newFolder:tt}){return modifyNode(_e,rt=>rt.id===et?new TreeNodeFolderWrapper(tt):rt)}const wrapTreeNode=(_e,et,tt)=>modifyNode(_e,rt=>(rt.id===tt&&(rt.children=et==null?void 0:et.map(nt=>new TreeNodeFolderWrapper(nt))),rt)),createStoreImpl=_e=>{let et;const tt=new Set,rt=(ut,lt)=>{const dt=typeof ut=="function"?ut(et):ut;if(!Object.is(dt,et)){const ct=et;et=lt??typeof dt!="object"?dt:Object.assign({},et,dt),tt.forEach(ft=>ft(et,ct))}},nt=()=>et,at={setState:rt,getState:nt,subscribe:ut=>(tt.add(ut),()=>tt.delete(ut)),destroy:()=>{({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),tt.clear()}};return et=_e(rt,nt,at),at},createStore=_e=>_e?createStoreImpl(_e):createStoreImpl;var withSelector={exports:{}},withSelector_production_min={};/**
|
|
224
|
+
`,mo=16,W4=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,containerStyle:s,containerClassName:o})=>{let{toasts:a,handlers:l}=S4(n);return b.createElement("div",{style:{position:"fixed",zIndex:9999,top:mo,left:mo,right:mo,bottom:mo,pointerEvents:"none",...s},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=q4(c,d);return b.createElement(H4,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?Q4:"",style:h},u.type==="custom"?ka(u.message,u):i?i(u):b.createElement(V4,{toast:u,position:c}))}))},vi=nt;function It(e){return{hotToast:{success:(n,r)=>vi.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)=>vi.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)=>vi.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)=>vi.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:vi.loading}}}function K4({src:e,placeholder:t}){const[n,r]=b.useState(e||t),i=b.useCallback(()=>{r(t)},[t]);return b.useEffect(()=>{r(e)},[e]),{imgSrc:n,onError:i}}function Z4(e,t){const n=b.useCallback(({code:r})=>{t.includes(r)&&e()},[e,t]);b.useEffect(()=>(window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}),[n])}function X4(e=!1){const[t,n]=b.useState(e),r=b.useCallback(()=>{n(i=>!i)},[]);return[t,r]}function G4(e,t){const[n,r]=b.useState(e);return b.useEffect(()=>{const i=setTimeout(()=>{r(e)},t||500);return()=>{clearTimeout(i)}},[e,t]),n}function Y4(){const e=b.useRef(null),t='button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';return b.useEffect(()=>{const n=e.current,r=n.querySelectorAll(t)[0],i=n.querySelectorAll(t),s=e&&(i==null?void 0:i[i.length-1]),o=a=>{a.key==="Tab"&&(a.shiftKey?document.activeElement===r&&(s.focus(),a.preventDefault()):document.activeElement===s&&(r.focus(),a.preventDefault()))};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}},[]),e}function J4(){const e=document.querySelector("html");return()=>{e&&e.scrollIntoView()}}const b0=b.forwardRef(({children:e},t)=>f.jsx("div",{ref:t,className:"actionbar",children:e}));b0.displayName="ActionBar";const e3=b0,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:"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"})]}),n3=t3,r3=({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"})]}),i3=r3,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:"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"})]}),Ck=s3,o3=({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"})]}),kk=o3,a3=({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"})]}),l3=a3,u3=({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"})]}),Ok=u3,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:"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"})]}),Rk=c3,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",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"})]}),f3=d3,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:"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"})]}),Pk=h3,p3=({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"})]}),m3=p3,g3=({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"})]}),jk=g3,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:"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"})]}),y3=v3,w3=({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"})]}),x3=w3,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:"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"})]}),Nk=S3,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",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"})]}),E3=b3,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:"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"})]}),k3=C3,O3=({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"})]}),Tk=O3,R3=({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"})]}),P3=R3,j3=({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"})]}),wc=j3,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:"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"})]}),T3=N3,_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",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"})]}),yp=_3,A3=({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"})]}),I3=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:"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"})]}),_k=L3,M3=({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"})]}),D3=M3,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:"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"})]}),$3=F3,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("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"})})})]}),Ak=z3;function E0(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=E0(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Z(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=E0(e))&&(r&&(r+=" "),r+=t);return r}const C0=b.forwardRef(({type:e="success",className:t="",children:n,button:r,isDismissible:i=!1,isToast:s=!1,autoClose:o=!1,autoCloseDelay:a=3e3,onClose:l,onVisibilityChange:u},c)=>{const[d,h]=b.useState(!0),m=b.useRef(null),p=b.useCallback(()=>{h(!1),l==null||l()},[l]);b.useImperativeHandle(c,()=>({show:y,hide:p,...m.current})),b.useLayoutEffect(()=>{u==null||u(d)},[d,u]),b.useEffect(()=>{o&&d&&setTimeout(()=>{p()},a)},[o,a,p,d]);const y=()=>{h(!0)},x={success:{icon:f.jsx($3,{}),classModifier:"alert-success"},warning:{icon:f.jsx(n3,{}),classModifier:"alert-warning"},info:{icon:f.jsx(E3,{}),classModifier:"alert-info"},danger:{icon:f.jsx(m3,{}),classModifier:"alert-danger"}},g={"is-dismissible":i,"is-toast ":s},v=Z("alert gap-12",x[e].classModifier,g,t);return f.jsx(f.Fragment,{children:d?f.jsxs("div",{ref:m,className:v,role:"alert",children:[x[e].icon,f.jsx("div",{className:"alert-content small",children:n}),r&&f.jsx("div",{className:"ms-12",children:r}),i&&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:p})}),o&&f.jsx("div",{className:"alert-progress",style:{transform:"scaleX(0)"}})]}):null})});C0.displayName="Alert";const Lt=C0,k0=b.forwardRef(({children:e,render:t,isFullscreen:n=!1},r)=>{const i=Z("d-flex p-16 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:i,children:[e,t?f.jsx("div",{className:"d-flex align-items-center gap-8",children:t()}):null]})});k0.displayName="AppHeader";const B3=k0,O0=b.forwardRef(({src:e,alt:t,imgPlaceholder:n,ratio:r,objectFit:i,className:s,...o},a)=>{const[l]=Ya(),u=n??`${l}/common/image-placeholder.png`,{imgSrc:c,onError:d}=K4({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":i==="contain","object-fit-cover":i==="cover","object-fit-fill":i==="fill","object-fit-scale":i==="scale","object-fit-none":i==="none"},p=Z({...h}),y=Z({...m},s),x=f.jsx("img",{alt:t,onError:d,ref:a,src:c,className:y,...o});return r?f.jsx("div",{className:p,children:x}):x});O0.displayName="Image";const R0=O0,P0=b.forwardRef(({app:e,size:t="24",iconFit:n="contain",variant:r="square"},i)=>{const{isIconUrl:s,getIconCode:o}=v0(),[,a]=Ya(),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"},p={square:l,rounded:u,"rounded-circle":c},y={"icon-contain":d,"icon-ratio":h},x=(e==null?void 0:e.icon)!==void 0?e.icon:"placeholder",g=(e==null?void 0:e.displayName)!==void 0?e.displayName:"",v=e?o(e):"",w=s(x),S=v||"placeholder",C=Z("app-icon",{...m,...p,...y,[`bg-light-${S}`]:S&&!d,[`color-app-${S}`]:S});return w?f.jsx(R0,{src:x,alt:g,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:i,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#${S}`})})})});P0.displayName="AppIcon";const xc=P0,j0=b.forwardRef(({variant:e="square",size:t="md",alt:n,src:r,imgPlaceholder:i,className:s,...o},a)=>{const[l]=Ya(),u=i||`${l}/avatar/no-avatar.svg`,y=Z("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"}},s);return f.jsx("div",{ref:a,className:y,children:f.jsx(R0,{src:r||u,alt:n,imgPlaceholder:u,...o})})});j0.displayName="Avatar";const wp=j0,N0=b.forwardRef(({children:e,className:t,...n},r)=>{const i=Z("breadcrumb-item",t);return f.jsx("li",{ref:r,className:i,...n,children:e})});N0.displayName="BreadcrumbItem";const Yl=N0,T0=b.forwardRef(({children:e,className:t},n)=>{const r=Z("breadcrumb d-flex align-items-center mb-0",t);return f.jsx("ol",{ref:n,className:r,children:e})});T0.displayName="BreadcrumbList";const U3=T0,_0=b.forwardRef(({children:e,app:t,className:n},r)=>{const{t:i}=xe(),{getIconClass:s}=v0(),o=Z("d-flex align-items-center mb-0",s(t),n),a={"--edifice-breadcrumb-divider":"-"};return f.jsx("nav",{ref:r,className:o,"aria-label":i("breadcrumb"),style:a,children:e})});_0.displayName="BreadcrumbNav";const V3=_0,A0=b.forwardRef((e,t)=>{const{isLoading:n,loadingIcon:r,loadingPosition:i="left",children:s,...o}=e,a=()=>{let u;return r?u=r:u=f.jsx(k3,{...o,"aria-label":"Loading"}),u},l=Z("loading",{"is-loading":n});return f.jsxs("div",{className:l,role:"status",ref:t,children:[(!i||i==="left")&&a(),s,i==="right"&&a()]})});A0.displayName="Loading";const H3=A0,I0=b.forwardRef(({color:e="primary",type:t="button",size:n="md",children:r,isLoading:i,loadingIcon:s,loadingPosition:o,leftIcon:a,rightIcon:l,className:u,variant:c="filled",...d},h)=>{const m=Z("btn",{[`btn-filled btn-${e}`]:c==="filled",[`btn-${c}-${e}`]:c==="outline"||c==="ghost","btn-icon":!r,"btn-loading":i,"btn-lg":n==="lg","btn-sm":n==="sm"},u);return f.jsx("button",{ref:h,className:m,type:t,...d,children:i?f.jsx(H3,{isLoading:!0,loadingIcon:s,loadingPosition:o,children:r}):f.jsxs("span",{children:[a,r,l]})})});I0.displayName="Button";const ri=I0,L0=b.forwardRef(({icon:e,className:t,...n},r)=>{const i={...n,className:Z("btn-icon",t)};return f.jsx(ri,{ref:r,...i,children:e})});L0.displayName="IconButton";const zd=L0,M0=b.forwardRef(({app:e,name:t},n)=>{const{t:r}=xe();return f.jsx(V3,{app:e,ref:n,children:f.jsx(U3,{className:"gap-12",children:t?f.jsxs(f.Fragment,{children:[f.jsx(Yl,{children:f.jsxs("a",{href:e==null?void 0:e.address,className:"d-flex",children:[f.jsx(zd,{variant:"ghost",color:"tertiary",icon:f.jsx(T3,{}),"aria-label":r(e==null?void 0:e.displayName)}),f.jsx(xc,{app:e,size:"40"})]})}),f.jsx(Yl,{className:"h3","aria-current":"page",children:f.jsx("h1",{className:"h3",children:t})})]}):f.jsxs(Yl,{className:"gap-12 d-flex align-items-center",children:[f.jsx(xc,{app:e,size:"40"}),f.jsx("h1",{className:"h3",children:r(e==null?void 0:e.displayName)})]})})})});M0.displayName="Breadcrumb";const q3=M0,D0=b.forwardRef(({icon:e=f.jsx(D3,{}),onClick:t,...n},r)=>{const i=Z("btn-search btn-sm");return f.jsx(zd,{ref:r,className:i,icon:e,...n,onClick:t})});D0.displayName="SearchButton";const F0=D0,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:"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"})]}),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:"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"})]}),xp=K3,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"})]}),X3=Z3,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",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"})]}),Sp=G3,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:"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"})]}),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:"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"})]}),bp=e5,t5=({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"})]}),n5=t5,r5=({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"})]}),i5=r5,s5=({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"})]}),o5=s5,a5=({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"})})})]}),l5=a5,u5=({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"})]}),c5=u5,d5=({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"})]}),f5=d5;var Ep=function(t){return t.reduce(function(n,r){var i=r[0],s=r[1];return n[i]=s,n},{})},Cp=typeof window<"u"&&window.document&&window.document.createElement?b.useLayoutEffect:b.useEffect,Ze="top",wt="bottom",xt="right",Xe="left",Bd="auto",Fs=[Ze,wt,xt,Xe],Kr="start",gs="end",h5="clippingParents",$0="viewport",yi="popper",p5="reference",kp=Fs.reduce(function(e,t){return e.concat([t+"-"+Kr,t+"-"+gs])},[]),z0=[].concat(Fs,[Bd]).reduce(function(e,t){return e.concat([t,t+"-"+Kr,t+"-"+gs])},[]),m5="beforeRead",g5="read",v5="afterRead",y5="beforeMain",w5="main",x5="afterMain",S5="beforeWrite",b5="write",E5="afterWrite",C5=[m5,g5,v5,y5,w5,x5,S5,b5,E5];function Qt(e){return e?(e.nodeName||"").toLowerCase():null}function st(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function lr(e){var t=st(e).Element;return e instanceof t||e instanceof Element}function gt(e){var t=st(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ud(e){if(typeof ShadowRoot>"u")return!1;var t=st(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function k5(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},s=t.elements[n];!gt(s)||!Qt(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(o){var a=i[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function O5(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],s=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=o.reduce(function(l,u){return l[u]="",l},{});!gt(i)||!Qt(i)||(Object.assign(i.style,a),Object.keys(s).forEach(function(l){i.removeAttribute(l)}))})}}const R5={name:"applyStyles",enabled:!0,phase:"write",fn:k5,effect:O5,requires:["computeStyles"]};function qt(e){return e.split("-")[0]}var nr=Math.max,Oa=Math.min,Zr=Math.round;function Sc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function B0(){return!/^((?!chrome|android).)*safari/i.test(Sc())}function Xr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,s=1;t&>(e)&&(i=e.offsetWidth>0&&Zr(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Zr(r.height)/e.offsetHeight||1);var o=lr(e)?st(e):window,a=o.visualViewport,l=!B0()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/i,c=(r.top+(l&&a?a.offsetTop:0))/s,d=r.width/i,h=r.height/s;return{width:d,height:h,top:c,right:u+d,bottom:c+h,left:u,x:u,y:c}}function Vd(e){var t=Xr(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function U0(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ud(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function cn(e){return st(e).getComputedStyle(e)}function P5(e){return["table","td","th"].indexOf(Qt(e))>=0}function Bn(e){return((lr(e)?e.ownerDocument:e.document)||window.document).documentElement}function el(e){return Qt(e)==="html"?e:e.assignedSlot||e.parentNode||(Ud(e)?e.host:null)||Bn(e)}function Op(e){return!gt(e)||cn(e).position==="fixed"?null:e.offsetParent}function j5(e){var t=/firefox/i.test(Sc()),n=/Trident/i.test(Sc());if(n&>(e)){var r=cn(e);if(r.position==="fixed")return null}var i=el(e);for(Ud(i)&&(i=i.host);gt(i)&&["html","body"].indexOf(Qt(i))<0;){var s=cn(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function $s(e){for(var t=st(e),n=Op(e);n&&P5(n)&&cn(n).position==="static";)n=Op(n);return n&&(Qt(n)==="html"||Qt(n)==="body"&&cn(n).position==="static")?t:n||j5(e)||t}function Hd(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Bi(e,t,n){return nr(e,Oa(t,n))}function N5(e,t,n){var r=Bi(e,t,n);return r>n?n:r}function V0(){return{top:0,right:0,bottom:0,left:0}}function H0(e){return Object.assign({},V0(),e)}function q0(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var T5=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,H0(typeof t!="number"?t:q0(t,Fs))};function _5(e){var t,n=e.state,r=e.name,i=e.options,s=n.elements.arrow,o=n.modifiersData.popperOffsets,a=qt(n.placement),l=Hd(a),u=[Xe,xt].indexOf(a)>=0,c=u?"height":"width";if(!(!s||!o)){var d=T5(i.padding,n),h=Vd(s),m=l==="y"?Ze:Xe,p=l==="y"?wt:xt,y=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],x=o[l]-n.rects.reference[l],g=$s(s),v=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,w=y/2-x/2,S=d[m],C=v-h[c]-d[p],k=v/2-h[c]/2+w,O=Bi(S,k,C),R=l;n.modifiersData[r]=(t={},t[R]=O,t.centerOffset=O-k,t)}}function A5(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||U0(t.elements.popper,i)&&(t.elements.arrow=i))}const I5={name:"arrow",enabled:!0,phase:"main",fn:_5,effect:A5,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Gr(e){return e.split("-")[1]}var L5={top:"auto",right:"auto",bottom:"auto",left:"auto"};function M5(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Zr(n*i)/i||0,y:Zr(r*i)/i||0}}function Rp(e){var t,n=e.popper,r=e.popperRect,i=e.placement,s=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,h=o.x,m=h===void 0?0:h,p=o.y,y=p===void 0?0:p,x=typeof c=="function"?c({x:m,y}):{x:m,y};m=x.x,y=x.y;var g=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),w=Xe,S=Ze,C=window;if(u){var k=$s(n),O="clientHeight",R="clientWidth";if(k===st(n)&&(k=Bn(n),cn(k).position!=="static"&&a==="absolute"&&(O="scrollHeight",R="scrollWidth")),k=k,i===Ze||(i===Xe||i===xt)&&s===gs){S=wt;var A=d&&k===C&&C.visualViewport?C.visualViewport.height:k[O];y-=A-r.height,y*=l?1:-1}if(i===Xe||(i===Ze||i===wt)&&s===gs){w=xt;var I=d&&k===C&&C.visualViewport?C.visualViewport.width:k[R];m-=I-r.width,m*=l?1:-1}}var M=Object.assign({position:a},u&&L5),z=c===!0?M5({x:m,y},st(n)):{x:m,y};if(m=z.x,y=z.y,l){var B;return Object.assign({},M,(B={},B[S]=v?"0":"",B[w]=g?"0":"",B.transform=(C.devicePixelRatio||1)<=1?"translate("+m+"px, "+y+"px)":"translate3d("+m+"px, "+y+"px, 0)",B))}return Object.assign({},M,(t={},t[S]=v?y+"px":"",t[w]=g?m+"px":"",t.transform="",t))}function D5(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,s=n.adaptive,o=s===void 0?!0:s,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:qt(t.placement),variation:Gr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Rp(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Rp(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const F5={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:D5,data:{}};var go={passive:!0};function $5(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,s=i===void 0?!0:i,o=r.resize,a=o===void 0?!0:o,l=st(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&u.forEach(function(c){c.addEventListener("scroll",n.update,go)}),a&&l.addEventListener("resize",n.update,go),function(){s&&u.forEach(function(c){c.removeEventListener("scroll",n.update,go)}),a&&l.removeEventListener("resize",n.update,go)}}const z5={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:$5,data:{}};var B5={left:"right",right:"left",bottom:"top",top:"bottom"};function zo(e){return e.replace(/left|right|bottom|top/g,function(t){return B5[t]})}var U5={start:"end",end:"start"};function Pp(e){return e.replace(/start|end/g,function(t){return U5[t]})}function qd(e){var t=st(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Qd(e){return Xr(Bn(e)).left+qd(e).scrollLeft}function V5(e,t){var n=st(e),r=Bn(e),i=n.visualViewport,s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;var u=B0();(u||!u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a+Qd(e),y:l}}function H5(e){var t,n=Bn(e),r=qd(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=nr(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=nr(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+Qd(e),l=-r.scrollTop;return cn(i||n).direction==="rtl"&&(a+=nr(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:o,x:a,y:l}}function Wd(e){var t=cn(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Q0(e){return["html","body","#document"].indexOf(Qt(e))>=0?e.ownerDocument.body:gt(e)&&Wd(e)?e:Q0(el(e))}function Ui(e,t){var n;t===void 0&&(t=[]);var r=Q0(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=st(r),o=i?[s].concat(s.visualViewport||[],Wd(r)?r:[]):r,a=t.concat(o);return i?a:a.concat(Ui(el(o)))}function bc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function q5(e,t){var n=Xr(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function jp(e,t,n){return t===$0?bc(V5(e,n)):lr(t)?q5(t,n):bc(H5(Bn(e)))}function Q5(e){var t=Ui(el(e)),n=["absolute","fixed"].indexOf(cn(e).position)>=0,r=n&>(e)?$s(e):e;return lr(r)?t.filter(function(i){return lr(i)&&U0(i,r)&&Qt(i)!=="body"}):[]}function W5(e,t,n,r){var i=t==="clippingParents"?Q5(e):[].concat(t),s=[].concat(i,[n]),o=s[0],a=s.reduce(function(l,u){var c=jp(e,u,r);return l.top=nr(c.top,l.top),l.right=Oa(c.right,l.right),l.bottom=Oa(c.bottom,l.bottom),l.left=nr(c.left,l.left),l},jp(e,o,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function W0(e){var t=e.reference,n=e.element,r=e.placement,i=r?qt(r):null,s=r?Gr(r):null,o=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(i){case Ze:l={x:o,y:t.y-n.height};break;case wt:l={x:o,y:t.y+t.height};break;case xt:l={x:t.x+t.width,y:a};break;case Xe:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=i?Hd(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(s){case Kr:l[u]=l[u]-(t[c]/2-n[c]/2);break;case gs:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function vs(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,s=n.strategy,o=s===void 0?e.strategy:s,a=n.boundary,l=a===void 0?h5:a,u=n.rootBoundary,c=u===void 0?$0:u,d=n.elementContext,h=d===void 0?yi:d,m=n.altBoundary,p=m===void 0?!1:m,y=n.padding,x=y===void 0?0:y,g=H0(typeof x!="number"?x:q0(x,Fs)),v=h===yi?p5:yi,w=e.rects.popper,S=e.elements[p?v:h],C=W5(lr(S)?S:S.contextElement||Bn(e.elements.popper),l,c,o),k=Xr(e.elements.reference),O=W0({reference:k,element:w,strategy:"absolute",placement:i}),R=bc(Object.assign({},w,O)),A=h===yi?R:k,I={top:C.top-A.top+g.top,bottom:A.bottom-C.bottom+g.bottom,left:C.left-A.left+g.left,right:A.right-C.right+g.right},M=e.modifiersData.offset;if(h===yi&&M){var z=M[i];Object.keys(I).forEach(function(B){var E=[xt,wt].indexOf(B)>=0?1:-1,P=[Ze,wt].indexOf(B)>=0?"y":"x";I[B]+=z[P]*E})}return I}function K5(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,s=n.rootBoundary,o=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?z0:l,c=Gr(r),d=c?a?kp:kp.filter(function(p){return Gr(p)===c}):Fs,h=d.filter(function(p){return u.indexOf(p)>=0});h.length===0&&(h=d);var m=h.reduce(function(p,y){return p[y]=vs(e,{placement:y,boundary:i,rootBoundary:s,padding:o})[qt(y)],p},{});return Object.keys(m).sort(function(p,y){return m[p]-m[y]})}function Z5(e){if(qt(e)===Bd)return[];var t=zo(e);return[Pp(e),t,Pp(t)]}function X5(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!0:o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,m=n.flipVariations,p=m===void 0?!0:m,y=n.allowedAutoPlacements,x=t.options.placement,g=qt(x),v=g===x,w=l||(v||!p?[zo(x)]:Z5(x)),S=[x].concat(w).reduce(function(he,J){return he.concat(qt(J)===Bd?K5(t,{placement:J,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:y}):J)},[]),C=t.rects.reference,k=t.rects.popper,O=new Map,R=!0,A=S[0],I=0;I<S.length;I++){var M=S[I],z=qt(M),B=Gr(M)===Kr,E=[Ze,wt].indexOf(z)>=0,P=E?"width":"height",L=vs(t,{placement:M,boundary:c,rootBoundary:d,altBoundary:h,padding:u}),F=E?B?xt:Xe:B?wt:Ze;C[P]>k[P]&&(F=zo(F));var j=zo(F),N=[];if(s&&N.push(L[z]<=0),a&&N.push(L[F]<=0,L[j]<=0),N.every(function(he){return he})){A=M,R=!1;break}O.set(M,N)}if(R)for(var $=p?3:1,W=function(J){var K=S.find(function(ie){var ge=O.get(ie);if(ge)return ge.slice(0,J).every(function(Fe){return Fe})});if(K)return A=K,"break"},H=$;H>0;H--){var Ye=W(H);if(Ye==="break")break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}}const G5={name:"flip",enabled:!0,phase:"main",fn:X5,requiresIfExists:["offset"],data:{_skip:!1}};function Np(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Tp(e){return[Ze,xt,wt,Xe].some(function(t){return e[t]>=0})}function Y5(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,o=vs(t,{elementContext:"reference"}),a=vs(t,{altBoundary:!0}),l=Np(o,r),u=Np(a,i,s),c=Tp(l),d=Tp(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const J5={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Y5};function eb(e,t,n){var r=qt(e),i=[Xe,Ze].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=s[0],a=s[1];return o=o||0,a=(a||0)*i,[Xe,xt].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function tb(e){var t=e.state,n=e.options,r=e.name,i=n.offset,s=i===void 0?[0,0]:i,o=z0.reduce(function(c,d){return c[d]=eb(d,t.rects,s),c},{}),a=o[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}const nb={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tb};function rb(e){var t=e.state,n=e.name;t.modifiersData[n]=W0({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ib={name:"popperOffsets",enabled:!0,phase:"read",fn:rb,data:{}};function sb(e){return e==="x"?"y":"x"}function ob(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!1:o,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,h=n.tether,m=h===void 0?!0:h,p=n.tetherOffset,y=p===void 0?0:p,x=vs(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),g=qt(t.placement),v=Gr(t.placement),w=!v,S=Hd(g),C=sb(S),k=t.modifiersData.popperOffsets,O=t.rects.reference,R=t.rects.popper,A=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,I=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(k){if(s){var B,E=S==="y"?Ze:Xe,P=S==="y"?wt:xt,L=S==="y"?"height":"width",F=k[S],j=F+x[E],N=F-x[P],$=m?-R[L]/2:0,W=v===Kr?O[L]:R[L],H=v===Kr?-R[L]:-O[L],Ye=t.elements.arrow,he=m&&Ye?Vd(Ye):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:V0(),K=J[E],ie=J[P],ge=Bi(0,O[L],he[L]),Fe=w?O[L]/2-$-ge-K-I.mainAxis:W-ge-K-I.mainAxis,Mt=w?-O[L]/2+$+ge+ie+I.mainAxis:H+ge+ie+I.mainAxis,bl=t.elements.arrow&&$s(t.elements.arrow),Iy=bl?S==="y"?bl.clientTop||0:bl.clientLeft||0:0,kf=(B=M==null?void 0:M[S])!=null?B:0,Ly=F+Fe-kf-Iy,My=F+Mt-kf,Of=Bi(m?Oa(j,Ly):j,F,m?nr(N,My):N);k[S]=Of,z[S]=Of-F}if(a){var Rf,Dy=S==="x"?Ze:Xe,Fy=S==="x"?wt:xt,qn=k[C],Ks=C==="y"?"height":"width",Pf=qn+x[Dy],jf=qn-x[Fy],El=[Ze,Xe].indexOf(g)!==-1,Nf=(Rf=M==null?void 0:M[C])!=null?Rf:0,Tf=El?Pf:qn-O[Ks]-R[Ks]-Nf+I.altAxis,_f=El?qn+O[Ks]+R[Ks]-Nf-I.altAxis:jf,Af=m&&El?N5(Tf,qn,_f):Bi(m?Tf:Pf,qn,m?_f:jf);k[C]=Af,z[C]=Af-qn}t.modifiersData[r]=z}}const ab={name:"preventOverflow",enabled:!0,phase:"main",fn:ob,requiresIfExists:["offset"]};function lb(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ub(e){return e===st(e)||!gt(e)?qd(e):lb(e)}function cb(e){var t=e.getBoundingClientRect(),n=Zr(t.width)/e.offsetWidth||1,r=Zr(t.height)/e.offsetHeight||1;return n!==1||r!==1}function db(e,t,n){n===void 0&&(n=!1);var r=gt(t),i=gt(t)&&cb(t),s=Bn(t),o=Xr(e,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Qt(t)!=="body"||Wd(s))&&(a=ub(t)),gt(t)?(l=Xr(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=Qd(s))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function fb(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function i(s){n.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&i(l)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||i(s)}),r}function hb(e){var t=fb(e);return C5.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function pb(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function mb(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var _p={placement:"bottom",modifiers:[],strategy:"absolute"};function Ap(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function gb(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,s=i===void 0?_p:i;return function(a,l,u){u===void 0&&(u=s);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},_p,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},d=[],h=!1,m={state:c,setOptions:function(g){var v=typeof g=="function"?g(c.options):g;y(),c.options=Object.assign({},s,c.options,v),c.scrollParents={reference:lr(a)?Ui(a):a.contextElement?Ui(a.contextElement):[],popper:Ui(l)};var w=hb(mb([].concat(r,c.options.modifiers)));return c.orderedModifiers=w.filter(function(S){return S.enabled}),p(),m.update()},forceUpdate:function(){if(!h){var g=c.elements,v=g.reference,w=g.popper;if(Ap(v,w)){c.rects={reference:db(v,$s(w),c.options.strategy==="fixed"),popper:Vd(w)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(I){return c.modifiersData[I.name]=Object.assign({},I.data)});for(var S=0;S<c.orderedModifiers.length;S++){if(c.reset===!0){c.reset=!1,S=-1;continue}var C=c.orderedModifiers[S],k=C.fn,O=C.options,R=O===void 0?{}:O,A=C.name;typeof k=="function"&&(c=k({state:c,options:R,name:A,instance:m})||c)}}}},update:pb(function(){return new Promise(function(x){m.forceUpdate(),x(c)})}),destroy:function(){y(),h=!0}};if(!Ap(a,l))return m;m.setOptions(u).then(function(x){!h&&u.onFirstUpdate&&u.onFirstUpdate(x)});function p(){c.orderedModifiers.forEach(function(x){var g=x.name,v=x.options,w=v===void 0?{}:v,S=x.effect;if(typeof S=="function"){var C=S({state:c,name:g,instance:m,options:w}),k=function(){};d.push(C||k)}})}function y(){d.forEach(function(x){return x()}),d=[]}return m}}var vb=[z5,ib,F5,R5,nb,G5,ab,I5,J5],yb=gb({defaultModifiers:vb}),wb=typeof Element<"u",xb=typeof Map=="function",Sb=typeof Set=="function",bb=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Bo(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Bo(e[r],t[r]))return!1;return!0}var s;if(xb&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;for(s=e.entries();!(r=s.next()).done;)if(!Bo(r.value[1],t.get(r.value[0])))return!1;return!0}if(Sb&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(bb&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(wb&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!Bo(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var Eb=function(t,n){try{return Bo(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const Cb=js(Eb);var kb=[],Ob=function(t,n,r){r===void 0&&(r={});var i=b.useRef(null),s={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||kb},o=b.useState({styles:{popper:{position:s.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=o[0],l=o[1],u=b.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(m){var p=m.state,y=Object.keys(p.elements);Ms.flushSync(function(){l({styles:Ep(y.map(function(x){return[x,p.styles[x]||{}]})),attributes:Ep(y.map(function(x){return[x,p.attributes[x]]}))})})},requires:["computeStyles"]}},[]),c=b.useMemo(function(){var h={onFirstUpdate:s.onFirstUpdate,placement:s.placement,strategy:s.strategy,modifiers:[].concat(s.modifiers,[u,{name:"applyStyles",enabled:!1}])};return Cb(i.current,h)?i.current||h:(i.current=h,h)},[s.onFirstUpdate,s.placement,s.strategy,s.modifiers,u]),d=b.useRef();return Cp(function(){d.current&&d.current.setOptions(c)},[c]),Cp(function(){if(!(t==null||n==null)){var h=r.createPopper||yb,m=h(t,n,c);return d.current=m,function(){m.destroy(),d.current=null}}},[t,n,r.createPopper]),{state:d.current?d.current.state:null,styles:a.styles,attributes:a.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}},Rb=Object.defineProperty,Pb=(e,t)=>{for(var n in t)Rb(e,n,{get:t[n],enumerable:!0})},_t={};Pb(_t,{assign:()=>Tb,colors:()=>In,createStringInterpolator:()=>ef,skipAnimation:()=>ev,to:()=>J0,willAdvance:()=>tf});var Kd=Bs(),V=e=>zs(e,Kd),Zd=Bs();V.write=e=>zs(e,Zd);var tl=Bs();V.onStart=e=>zs(e,tl);var Xd=Bs();V.onFrame=e=>zs(e,Xd);var Gd=Bs();V.onFinish=e=>zs(e,Gd);var Fr=[];V.setTimeout=(e,t)=>{const n=V.now()+t,r=()=>{const s=Fr.findIndex(o=>o.cancel==r);~s&&Fr.splice(s,1),Cn-=~s?1:0},i={time:n,handler:e,cancel:r};return Fr.splice(K0(n),0,i),Cn+=1,Z0(),i};var K0=e=>~(~Fr.findIndex(t=>t.time>e)||~Fr.length);V.cancel=e=>{tl.delete(e),Xd.delete(e),Gd.delete(e),Kd.delete(e),Zd.delete(e)};V.sync=e=>{Ec=!0,V.batchedUpdates(e),Ec=!1};V.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,V.onStart(n)}return r.handler=e,r.cancel=()=>{tl.delete(n),t=null},r};var Yd=typeof window<"u"?window.requestAnimationFrame:()=>{};V.use=e=>Yd=e;V.now=typeof performance<"u"?()=>performance.now():Date.now;V.batchedUpdates=e=>e();V.catch=console.error;V.frameLoop="always";V.advance=()=>{V.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):G0()};var En=-1,Cn=0,Ec=!1;function zs(e,t){Ec?(t.delete(e),e(0)):(t.add(e),Z0())}function Z0(){En<0&&(En=0,V.frameLoop!=="demand"&&Yd(X0))}function jb(){En=-1}function X0(){~En&&(Yd(X0),V.batchedUpdates(G0))}function G0(){const e=En;En=V.now();const t=K0(En);if(t&&(Y0(Fr.splice(0,t),n=>n.handler()),Cn-=t),!Cn){jb();return}tl.flush(),Kd.flush(e?Math.min(64,En-e):16.667),Xd.flush(),Zd.flush(),Gd.flush()}function Bs(){let e=new Set,t=e;return{add(n){Cn+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Cn-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Cn-=t.size,Y0(t,r=>r(n)&&e.add(r)),Cn+=e.size,t=e)}}}function Y0(e,t){e.forEach(n=>{try{t(n)}catch(r){V.catch(r)}})}function Cc(){}var Nb=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),T={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 Yt(e,t){if(T.arr(e)){if(!T.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 U=(e,t)=>e.forEach(t);function Wt(e,t,n){if(T.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 _e=e=>T.und(e)?[]:T.arr(e)?e:[e];function Vi(e,t){if(e.size){const n=Array.from(e);e.clear(),U(n,t)}}var Pi=(e,...t)=>Vi(e,n=>n(...t)),Jd=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),ef,J0,In=null,ev=!1,tf=Cc,Tb=e=>{e.to&&(J0=e.to),e.now&&(V.now=e.now),e.colors!==void 0&&(In=e.colors),e.skipAnimation!=null&&(ev=e.skipAnimation),e.createStringInterpolator&&(ef=e.createStringInterpolator),e.requestAnimationFrame&&V.use(e.requestAnimationFrame),e.batchedUpdates&&(V.batchedUpdates=e.batchedUpdates),e.willAdvance&&(tf=e.willAdvance),e.frameLoop&&(V.frameLoop=e.frameLoop)},Hi=new Set,ht=[],Jl=[],Ra=0,nl={get idle(){return!Hi.size&&!ht.length},start(e){Ra>e.priority?(Hi.add(e),V.onStart(_b)):(tv(e),V(kc))},advance:kc,sort(e){if(Ra)V.onFrame(()=>nl.sort(e));else{const t=ht.indexOf(e);~t&&(ht.splice(t,1),nv(e))}},clear(){ht=[],Hi.clear()}};function _b(){Hi.forEach(tv),Hi.clear(),V(kc)}function tv(e){ht.includes(e)||nv(e)}function nv(e){ht.splice(Ab(ht,t=>t.priority>e.priority),0,e)}function kc(e){const t=Jl;for(let n=0;n<ht.length;n++){const r=ht[n];Ra=r.priority,r.idle||(tf(r),r.advance(e),r.idle||t.push(r))}return Ra=0,Jl=ht,Jl.length=0,ht=t,ht.length>0}function Ab(e,t){const n=e.findIndex(t);return n<0?e.length:n}var Ib=(e,t,n)=>Math.min(Math.max(n,e),t),Lb={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},Pt="[-+]?\\d*\\.?\\d+",Pa=Pt+"%";function rl(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Mb=new RegExp("rgb"+rl(Pt,Pt,Pt)),Db=new RegExp("rgba"+rl(Pt,Pt,Pt,Pt)),Fb=new RegExp("hsl"+rl(Pt,Pa,Pa)),$b=new RegExp("hsla"+rl(Pt,Pa,Pa,Pt)),zb=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Bb=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Ub=/^#([0-9a-fA-F]{6})$/,Vb=/^#([0-9a-fA-F]{8})$/;function Hb(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Ub.exec(e))?parseInt(t[1]+"ff",16)>>>0:In&&In[e]!==void 0?In[e]:(t=Mb.exec(e))?(vr(t[1])<<24|vr(t[2])<<16|vr(t[3])<<8|255)>>>0:(t=Db.exec(e))?(vr(t[1])<<24|vr(t[2])<<16|vr(t[3])<<8|Mp(t[4]))>>>0:(t=zb.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Vb.exec(e))?parseInt(t[1],16)>>>0:(t=Bb.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Fb.exec(e))?(Ip(Lp(t[1]),vo(t[2]),vo(t[3]))|255)>>>0:(t=$b.exec(e))?(Ip(Lp(t[1]),vo(t[2]),vo(t[3]))|Mp(t[4]))>>>0:null}function eu(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 Ip(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,s=eu(i,r,e+1/3),o=eu(i,r,e),a=eu(i,r,e-1/3);return Math.round(s*255)<<24|Math.round(o*255)<<16|Math.round(a*255)<<8}function vr(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Lp(e){return(parseFloat(e)%360+360)%360/360}function Mp(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function vo(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Dp(e){let t=Hb(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,s=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${s})`}var ys=(e,t,n)=>{if(T.fun(e))return e;if(T.arr(e))return ys({range:e,output:t,extrapolate:n});if(T.str(e.output[0]))return ef(e);const r=e,i=r.output,s=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=Qb(u,s);return qb(u,s[c],s[c+1],i[c],i[c+1],l,o,a,r.map)}};function qb(e,t,n,r,i,s,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===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=s(u),r===-1/0?u=-u:i===1/0?u=u+r:u=u*(i-r)+r,u)}function Qb(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var Wb=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,i=t==="end"?Math.floor(r):Math.ceil(r);return Ib(0,1,i/e)},ja=1.70158,yo=ja*1.525,Fp=ja+1,$p=2*Math.PI/3,zp=2*Math.PI/4.5,wo=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,Kb={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=>Fp*e*e*e-ja*e*e,easeOutBack:e=>1+Fp*Math.pow(e-1,3)+ja*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((yo+1)*2*e-yo)/2:(Math.pow(2*e-2,2)*((yo+1)*(e*2-2)+yo)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*$p),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*$p)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*zp))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*zp)/2+1,easeInBounce:e=>1-wo(1-e),easeOutBounce:wo,easeInOutBounce:e=>e<.5?(1-wo(1-2*e))/2:(1+wo(2*e-1))/2,steps:Wb},ws=Symbol.for("FluidValue.get"),Yr=Symbol.for("FluidValue.observers"),ft=e=>!!(e&&e[ws]),ze=e=>e&&e[ws]?e[ws]():e,Bp=e=>e[Yr]||null;function Zb(e,t){e.eventObserved?e.eventObserved(t):e(t)}function xs(e,t){const n=e[Yr];n&&n.forEach(r=>{Zb(r,t)})}var rv=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Xb(this,e)}},Xb=(e,t)=>iv(e,ws,t);function ii(e,t){if(e[ws]){let n=e[Yr];n||iv(e,Yr,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Ss(e,t){const n=e[Yr];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Yr]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var iv=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Uo=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Gb=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Up=new RegExp(`(${Uo.source})(%|[a-z]+)`,"i"),Yb=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,il=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,sv=e=>{const[t,n]=Jb(e);if(!t||Jd())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||e}else{if(n&&il.test(n))return sv(n);if(n)return n}return e},Jb=e=>{const t=il.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},tu,eE=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,ov=e=>{tu||(tu=In?new RegExp(`(${Object.keys(In).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(s=>ze(s).replace(il,sv).replace(Gb,Dp).replace(tu,Dp)),n=t.map(s=>s.match(Uo).map(Number)),i=n[0].map((s,o)=>n.map(a=>{if(!(o in a))throw Error('The arity of each "output" value must be equal');return a[o]})).map(s=>ys({...e,output:s}));return s=>{var l;const o=!Up.test(t[0])&&((l=t.find(u=>Up.test(u)))==null?void 0:l.replace(Uo,""));let a=0;return t[0].replace(Uo,()=>`${i[a++](s)}${o||""}`).replace(Yb,eE)}},nf="react-spring: ",av=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${nf}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},tE=av(console.warn);function nE(){tE(`${nf}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var rE=av(console.warn);function iE(){rE(`${nf}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 sl(e){return T.str(e)&&(e[0]=="#"||/\d/.test(e)||!Jd()&&il.test(e)||e in(In||{}))}var Jn=Jd()?b.useEffect:b.useLayoutEffect,sE=()=>{const e=b.useRef(!1);return Jn(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function rf(){const e=b.useState()[1],t=sE();return()=>{t.current&&e(Math.random())}}function oE(e,t){const[n]=b.useState(()=>({inputs:t,result:e()})),r=b.useRef(),i=r.current;let s=i;return s?t&&s.inputs&&aE(t,s.inputs)||(s={inputs:t,result:e()}):s=n,b.useEffect(()=>{r.current=s,i==n&&(n.inputs=n.result=void 0)},[s]),s.result}function aE(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 sf=e=>b.useEffect(e,lE),lE=[];function Oc(e){const t=b.useRef();return b.useEffect(()=>{t.current=e}),t.current}var bs=Symbol.for("Animated:node"),uE=e=>!!e&&e[bs]===e,zt=e=>e&&e[bs],of=(e,t)=>Nb(e,bs,t),ol=e=>e&&e[bs]&&e[bs].getPayload(),lv=class{constructor(){of(this,this)}getPayload(){return this.payload||[]}},Us=class extends lv{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,T.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Us(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return T.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,T.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Es=class extends Us{constructor(e){super(0),this._string=null,this._toString=ys({output:[e,e]})}static create(e){return new Es(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(T.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=ys({output:[this.getValue(),e]})),this._value=0,super.reset()}},Na={dependencies:null},al=class extends lv{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Wt(this.source,(n,r)=>{uE(n)?t[r]=n.getValue(e):ft(n)?t[r]=ze(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&U(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Wt(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Na.dependencies&&ft(e)&&Na.dependencies.add(e);const t=ol(e);t&&U(t,n=>this.add(n))}},uv=class extends al{constructor(e){super(e)}static create(e){return new uv(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(cE)),!0)}};function cE(e){return(sl(e)?Es:Us).create(e)}function Rc(e){const t=zt(e);return t?t.constructor:T.arr(e)?uv:sl(e)?Es:Us}var Vp=(e,t)=>{const n=!T.fun(e)||e.prototype&&e.prototype.isReactComponent;return b.forwardRef((r,i)=>{const s=b.useRef(null),o=n&&b.useCallback(p=>{s.current=hE(i,p)},[i]),[a,l]=fE(r,t),u=rf(),c=()=>{const p=s.current;if(n&&!p)return;(p?t.applyAnimatedValues(p,a.getValue(!0)):!1)===!1&&u()},d=new dE(c,l),h=b.useRef();Jn(()=>(h.current=d,U(l,p=>ii(p,d)),()=>{h.current&&(U(h.current.deps,p=>Ss(p,h.current)),V.cancel(h.current.update))})),b.useEffect(c,[]),sf(()=>()=>{const p=h.current;U(p.deps,y=>Ss(y,p))});const m=t.getComponentProps(a.getValue());return b.createElement(e,{...m,ref:o})})},dE=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&V.write(this.update)}};function fE(e,t){const n=new Set;return Na.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new al(e),Na.dependencies=null,[e,n]}function hE(e,t){return e&&(T.fun(e)?e(t):e.current=t),t}var Hp=Symbol.for("AnimatedComponent"),pE=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new al(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},s=o=>{const a=qp(o)||"Anonymous";return T.str(o)?o=s[o]||(s[o]=Vp(o,i)):o=o[Hp]||(o[Hp]=Vp(o,i)),o.displayName=`Animated(${a})`,o};return Wt(e,(o,a)=>{T.arr(e)&&(a=qp(o)),s[a]=s(o)}),{animated:s}},qp=e=>T.str(e)?e:e&&T.str(e.displayName)?e.displayName:T.fun(e)&&e.name||null;function Be(e,...t){return T.fun(e)?e(...t):e}var qi=(e,t)=>e===!0||!!(t&&e&&(T.fun(e)?e(t):_e(e).includes(t))),cv=(e,t)=>T.obj(e)?t&&e[t]:e,dv=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,mE=e=>e,ll=(e,t=mE)=>{let n=gE;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const s=t(e[i],i);T.und(s)||(r[i]=s)}return r},gE=["config","onProps","onStart","onChange","onPause","onResume","onRest"],vE={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 yE(e){const t={};let n=0;if(Wt(e,(r,i)=>{vE[i]||(t[i]=r,n++)}),n)return t}function af(e){const t=yE(e);if(t){const n={to:t};return Wt(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function Cs(e){return e=ze(e),T.arr(e)?e.map(Cs):sl(e)?_t.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function fv(e){for(const t in e)return!0;return!1}function Pc(e){return T.fun(e)||T.arr(e)&&T.obj(e[0])}function jc(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function hv(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var wE={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}},Nc={...wE.default,mass:1,damping:1,easing:Kb.linear,clamp:!1},xE=class{constructor(){this.velocity=0,Object.assign(this,Nc)}};function SE(e,t,n){n&&(n={...n},Qp(n,t),t={...n,...t}),Qp(e,t),Object.assign(e,t);for(const o in Nc)e[o]==null&&(e[o]=Nc[o]);let{frequency:r,damping:i}=e;const{mass:s}=e;return T.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*s,e.friction=4*Math.PI*i*s/r),e}function Qp(e,t){if(!T.und(t.decay))e.duration=void 0;else{const n=!T.und(t.tension)||!T.und(t.friction);(n||!T.und(t.frequency)||!T.und(t.damping)||!T.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Wp=[],bE=class{constructor(){this.changed=!1,this.values=Wp,this.toValues=null,this.fromValues=Wp,this.config=new xE,this.immediate=!1}};function pv(e,{key:t,props:n,defaultProps:r,state:i,actions:s}){return new Promise((o,a)=>{let l,u,c=qi(n.cancel??(r==null?void 0:r.cancel),t);if(c)m();else{T.und(n.pause)||(i.paused=qi(n.pause,t));let p=r==null?void 0:r.pause;p!==!0&&(p=i.paused||qi(p,t)),l=Be(n.delay||0,t),p?(i.resumeQueue.add(h),s.pause()):(s.resume(),h())}function d(){i.resumeQueue.add(h),i.timeouts.delete(u),u.cancel(),l=u.time-V.now()}function h(){l>0&&!_t.skipAnimation?(i.delayed=!0,u=V.setTimeout(m,l),i.pauseQueue.add(d),i.timeouts.add(u)):m()}function m(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{s.start({...n,callId:e,cancel:c},o)}catch(p){a(p)}}})}var lf=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?$r(e.get()):t.every(n=>n.noop)?mv(e.get()):Rt(e.get(),t.every(n=>n.finished)),mv=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Rt=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),$r=e=>({value:e,cancelled:!0,finished:!1});function gv(e,t,n,r){const{callId:i,parentId:s,onRest:o}=t,{asyncTo:a,promise:l}=n;return!s&&e===a&&!t.reset?l:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const u=ll(t,(x,g)=>g==="onRest"?void 0:x);let c,d;const h=new Promise((x,g)=>(c=x,d=g)),m=x=>{const g=i<=(n.cancelId||0)&&$r(r)||i!==n.asyncId&&Rt(r,!1);if(g)throw x.result=g,d(x),x},p=(x,g)=>{const v=new Kp,w=new Zp;return(async()=>{if(_t.skipAnimation)throw ks(n),w.result=Rt(r,!1),d(w),w;m(v);const S=T.obj(x)?{...x}:{...g,to:x};S.parentId=i,Wt(u,(k,O)=>{T.und(S[O])&&(S[O]=k)});const C=await r.start(S);return m(v),n.paused&&await new Promise(k=>{n.resumeQueue.add(k)}),C})()};let y;if(_t.skipAnimation)return ks(n),Rt(r,!1);try{let x;T.arr(e)?x=(async g=>{for(const v of g)await p(v)})(e):x=Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([x.then(c),h]),y=Rt(r.get(),!0,!1)}catch(x){if(x instanceof Kp)y=x.result;else if(x instanceof Zp)y=x.result;else throw x}finally{i==n.asyncId&&(n.asyncId=s,n.asyncTo=s?a:void 0,n.promise=s?l:void 0)}return T.fun(o)&&V.batchedUpdates(()=>{o(y,r,r.item)}),y})()}function ks(e,t){Vi(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Kp=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.")}},Zp=class extends Error{constructor(){super("SkipAnimationSignal")}},Tc=e=>e instanceof uf,EE=1,uf=class extends rv{constructor(){super(...arguments),this.id=EE++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=zt(this);return e&&e.getValue()}to(...e){return _t.to(this,e)}interpolate(...e){return nE(),_t.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){xs(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||nl.sort(this),xs(this,{type:"priority",parent:this,priority:e})}},ur=Symbol.for("SpringPhase"),vv=1,_c=2,Ac=4,nu=e=>(e[ur]&vv)>0,pn=e=>(e[ur]&_c)>0,wi=e=>(e[ur]&Ac)>0,Xp=(e,t)=>t?e[ur]|=_c|vv:e[ur]&=~_c,Gp=(e,t)=>t?e[ur]|=Ac:e[ur]&=~Ac,CE=class extends uf{constructor(e,t){if(super(),this.animation=new bE,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,!T.und(e)||!T.und(t)){const n=T.obj(e)?{...e}:{...t,from:e};T.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(pn(this)||this._state.asyncTo)||wi(this)}get goal(){return ze(this.animation.to)}get velocity(){const e=zt(this);return e instanceof Us?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return nu(this)}get isAnimating(){return pn(this)}get isPaused(){return wi(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:s}=r,o=ol(r.to);!o&&ft(r.to)&&(i=_e(ze(r.to))),r.values.forEach((u,c)=>{if(u.done)return;const d=u.constructor==Es?1:o?o[c].lastPosition:i[c];let h=r.immediate,m=d;if(!h){if(m=u.lastPosition,s.tension<=0){u.done=!0;return}let p=u.elapsedTime+=e;const y=r.fromValues[c],x=u.v0!=null?u.v0:u.v0=T.arr(s.velocity)?s.velocity[c]:s.velocity;let g;const v=s.precision||(y==d?.005:Math.min(1,Math.abs(d-y)*.001));if(T.und(s.duration))if(s.decay){const w=s.decay===!0?.998:s.decay,S=Math.exp(-(1-w)*p);m=y+x/(1-w)*(1-S),h=Math.abs(u.lastPosition-m)<=v,g=x*S}else{g=u.lastVelocity==null?x:u.lastVelocity;const w=s.restVelocity||v/10,S=s.clamp?0:s.bounce,C=!T.und(S),k=y==d?u.v0>0:y<d;let O,R=!1;const A=1,I=Math.ceil(e/A);for(let M=0;M<I&&(O=Math.abs(g)>w,!(!O&&(h=Math.abs(d-m)<=v,h)));++M){C&&(R=m==d||m>d==k,R&&(g=-g*S,m=d));const z=-s.tension*1e-6*(m-d),B=-s.friction*.001*g,E=(z+B)/s.mass;g=g+E*A,m=m+g*A}}else{let w=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,u.durationProgress>0&&(u.elapsedTime=s.duration*u.durationProgress,p=u.elapsedTime+=e)),w=(s.progress||0)+p/this._memoizedDuration,w=w>1?1:w<0?0:w,u.durationProgress=w),m=y+s.easing(w)*(d-y),g=(m-u.lastPosition)/e,h=w==1}u.lastVelocity=g,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,s.round)&&(n=!0)});const a=zt(this),l=a.getValue();if(t){const u=ze(r.to);(l!==u||n)&&!s.decay?(a.setValue(u),this._onChange(u)):n&&s.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return V.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(pn(this)){const{to:e,config:t}=this.animation;V.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 T.und(e)?(n=this.queue||[],this.queue=[]):n=[T.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>lf(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),ks(this._state,e&&this._lastCallId),V.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=T.obj(n)?n[t]:n,(n==null||Pc(n))&&(n=void 0),r=T.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return nu(this)||(e.reverse&&([n,r]=[r,n]),r=ze(r),T.und(r)?zt(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,ll(e,(o,a)=>/^on/.test(a)?cv(o,n):o)),Jp(this,e,"onProps"),Si(this,"onProps",e,this);const i=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 s=this._state;return pv(++this._lastCallId,{key:n,props:e,defaultProps:r,state:s,actions:{pause:()=>{wi(this)||(Gp(this,!0),Pi(s.pauseQueue),Si(this,"onPause",Rt(this,xi(this,this.animation.to)),this))},resume:()=>{wi(this)&&(Gp(this,!1),pn(this)&&this._resume(),Pi(s.resumeQueue),Si(this,"onResume",Rt(this,xi(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const a=yv(e);if(a)return this._update(a,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n($r(this));const r=!T.und(e.to),i=!T.und(e.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n($r(this));const{key:s,defaultProps:o,animation:a}=this,{to:l,from:u}=a;let{to:c=l,from:d=u}=e;i&&!r&&(!t.default||T.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);const h=!Yt(d,u);h&&(a.from=d),d=ze(d);const m=!Yt(c,l);m&&this._focus(c);const p=Pc(t.to),{config:y}=a,{decay:x,velocity:g}=y;(r||i)&&(y.velocity=0),t.config&&!p&&SE(y,Be(t.config,s),t.config!==o.config?Be(o.config,s):void 0);let v=zt(this);if(!v||T.und(c))return n(Rt(this,!0));const w=T.und(t.reset)?i&&!t.default:!T.und(d)&&qi(t.reset,s),S=w?d:this.get(),C=Cs(c),k=T.num(C)||T.arr(C)||sl(C),O=!p&&(!k||qi(o.immediate||t.immediate,s));if(m){const M=Rc(c);if(M!==v.constructor)if(O)v=this._set(C);else throw Error(`Cannot animate between ${v.constructor.name} and ${M.name}, as the "to" prop suggests`)}const R=v.constructor;let A=ft(c),I=!1;if(!A){const M=w||!nu(this)&&h;(m||M)&&(I=Yt(Cs(S),C),A=!I),(!Yt(a.immediate,O)&&!O||!Yt(y.decay,x)||!Yt(y.velocity,g))&&(A=!0)}if(I&&pn(this)&&(a.changed&&!w?A=!0:A||this._stop(l)),!p&&((A||ft(l))&&(a.values=v.getPayload(),a.toValues=ft(c)?null:R==Es?[1]:_e(C)),a.immediate!=O&&(a.immediate=O,!O&&!w&&this._set(l)),A)){const{onRest:M}=a;U(OE,B=>Jp(this,t,B));const z=Rt(this,xi(this,l));Pi(this._pendingCalls,z),this._pendingCalls.add(n),a.changed&&V.batchedUpdates(()=>{var B;a.changed=!w,M==null||M(z,this),w?Be(o.onRest,z):(B=a.onStart)==null||B.call(a,z,this)})}w&&this._set(S),p?n(gv(t.to,t,this._state,this)):A?this._start():pn(this)&&!m?this._pendingCalls.add(n):n(mv(S))}_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;ft(t)&&(ii(t,this),Tc(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;ft(e)&&Ss(e,this)}_set(e,t=!0){const n=ze(e);if(!T.und(n)){const r=zt(this);if(!r||!Yt(n,r.getValue())){const i=Rc(n);!r||r.constructor!=i?of(this,i.create(n)):r.setValue(n),r&&V.batchedUpdates(()=>{this._onChange(n,t)})}}return zt(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Si(this,"onStart",Rt(this,xi(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Be(this.animation.onChange,e,this)),Be(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;zt(this).reset(ze(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),pn(this)||(Xp(this,!0),wi(this)||this._resume())}_resume(){_t.skipAnimation?this.finish():nl.start(this)}_stop(e,t){if(pn(this)){Xp(this,!1);const n=this.animation;U(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),xs(this,{type:"idle",parent:this});const r=t?$r(this.get()):Rt(this.get(),xi(this,e??n.to));Pi(this._pendingCalls,r),n.changed&&(n.changed=!1,Si(this,"onRest",r,this))}}};function xi(e,t){const n=Cs(t),r=Cs(e.get());return Yt(r,n)}function yv(e,t=e.loop,n=e.to){const r=Be(t);if(r){const i=r!==!0&&af(r),s=(i||e).reverse,o=!i||i.reset;return Os({...e,loop:t,default:!1,pause:void 0,to:!s||Pc(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function Os(e){const{to:t,from:n}=e=af(e),r=new Set;return T.obj(t)&&Yp(t,r),T.obj(n)&&Yp(n,r),e.keys=r.size?Array.from(r):null,e}function kE(e){const t=Os(e);return T.und(t.default)&&(t.default=ll(t)),t}function Yp(e,t){Wt(e,(n,r)=>n!=null&&t.add(r))}var OE=["onStart","onRest","onChange","onPause","onResume"];function Jp(e,t,n){e.animation[n]=t[n]!==dv(t,n)?cv(t[n],e.key):void 0}function Si(e,t,...n){var r,i,s,o;(i=(r=e.animation)[t])==null||i.call(r,...n),(o=(s=e.defaultProps)[t])==null||o.call(s,...n)}var RE=["onStart","onChange","onRest"],PE=1,wv=class{constructor(e,t){this.id=PE++,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];T.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Os(e)),this}start(e){let{queue:t}=this;return e?t=_e(e).map(Os):this.queue=[],this._flush?this._flush(this,t):(Cv(this,t),Ic(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;U(_e(t),r=>n[r].stop(!!e))}else ks(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(T.und(e))this.start({pause:!0});else{const t=this.springs;U(_e(e),n=>t[n].pause())}return this}resume(e){if(T.und(e))this.start({pause:!1});else{const t=this.springs;U(_e(e),n=>t[n].resume())}return this}each(e){Wt(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,Vi(e,([a,l])=>{l.value=this.get(),a(l,this,this._item)}));const s=!r&&this._started,o=i||s&&n.size?this.get():null;i&&t.size&&Vi(t,([a,l])=>{l.value=o,a(l,this,this._item)}),s&&(this._started=!1,Vi(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;V.onFrame(this._onFrame)}};function Ic(e,t){return Promise.all(t.map(n=>xv(e,n))).then(n=>lf(e,n))}async function xv(e,t,n){const{keys:r,to:i,from:s,loop:o,onRest:a,onResolve:l}=t,u=T.obj(t.default)&&t.default;o&&(t.loop=!1),i===!1&&(t.to=null),s===!1&&(t.from=null);const c=T.arr(i)||T.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):U(RE,y=>{const x=t[y];if(T.fun(x)){const g=e._events[y];t[y]=({finished:v,cancelled:w})=>{const S=g.get(x);S?(v||(S.finished=!1),w&&(S.cancelled=!0)):g.set(x,{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,Pi(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||dv(t,"cancel")===!0;(c||m&&d.asyncId)&&h.push(pv(++e._lastAsyncId,{props:t,state:d,actions:{pause:Cc,resume:Cc,start(y,x){m?(ks(d,e._lastAsyncId),x($r(e))):(y.onRest=a,x(gv(c,y,d,e)))}}})),d.paused&&await new Promise(y=>{d.resumeQueue.add(y)});const p=lf(e,await Promise.all(h));if(o&&p.finished&&!(n&&p.noop)){const y=yv(t,o,i);if(y)return Cv(e,[y]),xv(e,y,!0)}return l&&V.batchedUpdates(()=>l(p,e,e.item)),p}function Lc(e,t){const n={...e.springs};return t&&U(_e(t),r=>{T.und(r.keys)&&(r=Os(r)),T.obj(r.to)||(r={...r,to:void 0}),Ev(n,r,i=>bv(i))}),Sv(e,n),n}function Sv(e,t){Wt(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,ii(n,e))})}function bv(e,t){const n=new CE;return n.key=e,t&&ii(n,t),n}function Ev(e,t,n){t.keys&&U(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function Cv(e,t){U(t,n=>{Ev(e.springs,n,r=>bv(r,e))})}var Vs=({children:e,...t})=>{const n=b.useContext(Ta),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=oE(()=>({pause:r,immediate:i}),[r,i]);const{Provider:s}=Ta;return b.createElement(s,{value:t},e)},Ta=jE(Vs,{});Vs.Provider=Ta.Provider;Vs.Consumer=Ta.Consumer;function jE(e,t){return Object.assign(e,b.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var kv=()=>{const e=[],t=function(r){iE();const i=[];return U(e,(s,o)=>{if(T.und(r))i.push(s.start());else{const a=n(r,s,o);a&&i.push(s.start(a))}}),i};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const i=e.indexOf(r);~i&&e.splice(i,1)},t.pause=function(){return U(e,r=>r.pause(...arguments)),this},t.resume=function(){return U(e,r=>r.resume(...arguments)),this},t.set=function(r){U(e,(i,s)=>{const o=T.fun(r)?r(s,i):r;o&&i.set(o)})},t.start=function(r){const i=[];return U(e,(s,o)=>{if(T.und(r))i.push(s.start());else{const a=this._getProps(r,s,o);a&&i.push(s.start(a))}}),i},t.stop=function(){return U(e,r=>r.stop(...arguments)),this},t.update=function(r){return U(e,(i,s)=>i.update(this._getProps(r,i,s))),this};const n=function(r,i,s){return T.fun(r)?r(s,i):r};return t._getProps=n,t};function NE(e,t,n){const r=T.fun(t)&&t;r&&!n&&(n=[]);const i=b.useMemo(()=>r||arguments.length==3?kv():void 0,[]),s=b.useRef(0),o=rf(),a=b.useMemo(()=>({ctrls:[],queue:[],flush(g,v){const w=Lc(g,v);return s.current>0&&!a.queue.length&&!Object.keys(w).some(C=>!g.springs[C])?Ic(g,v):new Promise(C=>{Sv(g,w),a.queue.push(()=>{C(Ic(g,v))}),o()})}}),[]),l=b.useRef([...a.ctrls]),u=[],c=Oc(e)||0;b.useMemo(()=>{U(l.current.slice(e,c),g=>{jc(g,i),g.stop(!0)}),l.current.length=e,d(c,e)},[e]),b.useMemo(()=>{d(0,Math.min(c,e))},n);function d(g,v){for(let w=g;w<v;w++){const S=l.current[w]||(l.current[w]=new wv(null,a.flush)),C=r?r(w,S):t[w];C&&(u[w]=kE(C))}}const h=l.current.map((g,v)=>Lc(g,u[v])),m=b.useContext(Vs),p=Oc(m),y=m!==p&&fv(m);Jn(()=>{s.current++,a.ctrls=l.current;const{queue:g}=a;g.length&&(a.queue=[],U(g,v=>v())),U(l.current,(v,w)=>{i==null||i.add(v),y&&v.start({default:m});const S=u[w];S&&(hv(v,S.ref),v.ref?v.queue.push(S):v.start(S))})}),sf(()=>()=>{U(a.ctrls,g=>g.stop(!0))});const x=h.map(g=>({...g}));return i?[x,i]:x}function Ik(e,t){const n=T.fun(e),[[r],i]=NE(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,i]:r}function ul(e,t,n){const r=T.fun(t)&&t,{reset:i,sort:s,trail:o=0,expires:a=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,h=b.useMemo(()=>r||arguments.length==3?kv():void 0,[]),m=_e(e),p=[],y=b.useRef(null),x=i?null:y.current;Jn(()=>{y.current=p}),sf(()=>(U(p,E=>{h==null||h.add(E.ctrl),E.ctrl.ref=h}),()=>{U(y.current,E=>{E.expired&&clearTimeout(E.expirationId),jc(E.ctrl,h),E.ctrl.stop(!0)})}));const g=_E(m,r?r():t,x),v=i&&y.current||[];Jn(()=>U(v,({ctrl:E,item:P,key:L})=>{jc(E,h),Be(u,P,L)}));const w=[];if(x&&U(x,(E,P)=>{E.expired?(clearTimeout(E.expirationId),v.push(E)):(P=w[P]=g.indexOf(E.key),~P&&(p[P]=E))}),U(m,(E,P)=>{p[P]||(p[P]={key:g[P],item:E,phase:"mount",ctrl:new wv},p[P].ctrl.item=E)}),w.length){let E=-1;const{leave:P}=r?r():t;U(w,(L,F)=>{const j=x[F];~L?(E=p.indexOf(j),p[E]={...j,item:m[L]}):P&&p.splice(++E,0,j)})}T.fun(s)&&p.sort((E,P)=>s(E.item,P.item));let S=-o;const C=rf(),k=ll(t),O=new Map,R=b.useRef(new Map),A=b.useRef(!1);U(p,(E,P)=>{const L=E.key,F=E.phase,j=r?r():t;let N,$;const W=Be(j.delay||0,L);if(F=="mount")N=j.enter,$="enter";else{const J=g.indexOf(L)<0;if(F!="leave")if(J)N=j.leave,$="leave";else if(N=j.update)$="update";else return;else if(!J)N=j.enter,$="enter";else return}if(N=Be(N,E.item,P),N=T.obj(N)?af(N):{to:N},!N.config){const J=d||k.config;N.config=Be(J,E.item,P,$)}S+=o;const H={...k,delay:W+S,ref:c,immediate:j.immediate,reset:!1,...N};if($=="enter"&&T.und(H.from)){const J=r?r():t,K=T.und(J.initial)||x?J.from:J.initial;H.from=Be(K,E.item,P)}const{onResolve:Ye}=H;H.onResolve=J=>{Be(Ye,J);const K=y.current,ie=K.find(ge=>ge.key===L);if(ie&&!(J.cancelled&&ie.phase!="update")&&ie.ctrl.idle){const ge=K.every(Fe=>Fe.ctrl.idle);if(ie.phase=="leave"){const Fe=Be(a,ie.item);if(Fe!==!1){const Mt=Fe===!0?0:Fe;if(ie.expired=!0,!ge&&Mt>0){Mt<=2147483647&&(ie.expirationId=setTimeout(C,Mt));return}}}ge&&K.some(Fe=>Fe.expired)&&(R.current.delete(ie),l&&(A.current=!0),C())}};const he=Lc(E.ctrl,H);$==="leave"&&l?R.current.set(E,{phase:$,springs:he,payload:H}):O.set(E,{phase:$,springs:he,payload:H})});const I=b.useContext(Vs),M=Oc(I),z=I!==M&&fv(I);Jn(()=>{z&&U(p,E=>{E.ctrl.start({default:I})})},[I]),U(O,(E,P)=>{if(R.current.size){const L=p.findIndex(F=>F.key===P.key);p.splice(L,1)}}),Jn(()=>{U(R.current.size?R.current:O,({phase:E,payload:P},L)=>{const{ctrl:F}=L;L.phase=E,h==null||h.add(F),z&&E=="enter"&&F.start({default:I}),P&&(hv(F,P.ref),(F.ref||h)&&!A.current?F.update(P):(F.start(P),A.current&&(A.current=!1)))})},i?void 0:n);const B=E=>b.createElement(b.Fragment,null,p.map((P,L)=>{const{springs:F}=O.get(P)||P.ctrl,j=E({...F},P.item,P,L);return j&&j.type?b.createElement(j.type,{...j.props,key:T.str(P.key)||T.num(P.key)?P.key:P.ctrl.id,ref:j.ref}):j}));return h?[B,h]:B}var TE=1;function _E(e,{key:t,keys:n=t},r){if(n===null){const i=new Set;return e.map(s=>{const o=r&&r.find(a=>a.item===s&&a.phase!=="leave"&&!i.has(a));return o?(i.add(o),o.key):TE++})}return T.und(n)?e:T.fun(n)?e.map(n):_e(n)}var AE=class extends uf{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=ys(...t);const n=this._get(),r=Rc(n);of(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Yt(t,n)||(zt(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&em(this._active)&&ru(this)}_get(){const e=T.arr(this.source)?this.source.map(ze):_e(ze(this.source));return this.calc(...e)}_start(){this.idle&&!em(this._active)&&(this.idle=!1,U(ol(this),e=>{e.done=!1}),_t.skipAnimation?(V.batchedUpdates(()=>this.advance()),ru(this)):nl.start(this))}_attach(){let e=1;U(_e(this.source),t=>{ft(t)&&ii(t,this),Tc(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){U(_e(this.source),e=>{ft(e)&&Ss(e,this)}),this._active.clear(),ru(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=_e(this.source).reduce((t,n)=>Math.max(t,(Tc(n)?n.priority:0)+1),0))}};function IE(e){return e.idle!==!1}function em(e){return!e.size||Array.from(e).every(IE)}function ru(e){e.idle||(e.idle=!0,U(ol(e),t=>{t.done=!0}),xs(e,{type:"idle",parent:e}))}_t.assign({createStringInterpolator:ov,to:(e,t)=>new AE(e,t)});var Ov=/^--/;function LE(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Ov.test(e)&&!(Qi.hasOwnProperty(e)&&Qi[e])?t+"px":(""+t).trim()}var tm={};function ME(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:i,scrollTop:s,scrollLeft:o,viewBox:a,...l}=t,u=Object.values(l),c=Object.keys(l).map(d=>n||e.hasAttribute(d)?d:tm[d]||(tm[d]=d.replace(/([A-Z])/g,h=>"-"+h.toLowerCase())));i!==void 0&&(e.textContent=i);for(const d in r)if(r.hasOwnProperty(d)){const h=LE(d,r[d]);Ov.test(d)?e.style.setProperty(d,h):e.style[d]=h}c.forEach((d,h)=>{e.setAttribute(d,u[h])}),s!==void 0&&(e.scrollTop=s),o!==void 0&&(e.scrollLeft=o),a!==void 0&&e.setAttribute("viewBox",a)}var Qi={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},DE=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),FE=["Webkit","Ms","Moz","O"];Qi=Object.keys(Qi).reduce((e,t)=>(FE.forEach(n=>e[DE(n,t)]=e[t]),e),Qi);var $E=/^(matrix|translate|scale|rotate|skew)/,zE=/^(translate)/,BE=/^(rotate|skew)/,iu=(e,t)=>T.num(e)&&e!==0?e+t:e,Vo=(e,t)=>T.arr(e)?e.every(n=>Vo(n,t)):T.num(e)?e===t:parseFloat(e)===t,UE=class extends al{constructor({x:e,y:t,z:n,...r}){const i=[],s=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),s.push(o=>[`translate3d(${o.map(a=>iu(a,"px")).join(",")})`,Vo(o,0)])),Wt(r,(o,a)=>{if(a==="transform")i.push([o||""]),s.push(l=>[l,l===""]);else if($E.test(a)){if(delete r[a],T.und(o))return;const l=zE.test(a)?"px":BE.test(a)?"deg":"";i.push(_e(o)),s.push(a==="rotate3d"?([u,c,d,h])=>[`rotate3d(${u},${c},${d},${iu(h,l)})`,Vo(h,0)]:u=>[`${a}(${u.map(c=>iu(c,l)).join(",")})`,Vo(u,a.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new VE(i,s)),super(r)}},VE=class extends rv{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 U(this.inputs,(n,r)=>{const i=ze(n[0]),[s,o]=this.transforms[r](T.arr(i)?i:n.map(ze));e+=" "+s,t=t&&o}),t?"none":e}observerAdded(e){e==1&&U(this.inputs,t=>U(t,n=>ft(n)&&ii(n,this)))}observerRemoved(e){e==0&&U(this.inputs,t=>U(t,n=>ft(n)&&Ss(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),xs(this,e)}},HE=["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"];_t.assign({batchedUpdates:Ms.unstable_batchedUpdates,createStringInterpolator:ov,colors:Lb});var qE=pE(HE,{applyAnimatedValues:ME,createAnimatedStyle:e=>new UE(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Rs=qE.animated;const Rv=({trigger:e,content:t})=>{const[n,r]=b.useState(null),[i,s]=b.useState(null),{styles:o,attributes:a}=Ob(n,i,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,12]}}]}),[l,u]=b.useState(!1),c=ul(l,{from:{opacity:0,y:10},enter:{opacity:1,y:0},leave:{opacity:0,y:10}}),d=()=>{u(m=>!m)},h=Am.cloneElement(e,{ref:r,onClick:d,state:l?"selected":"default"});return b.useEffect(()=>{const m=p=>{i&&!i.contains(p.target)&&n&&!n.contains(p.target)&&u(!1)};return document.addEventListener("mousedown",m,!0),document.addEventListener("touchstart",m,!0),()=>{document.removeEventListener("mousedown",m,!0),document.removeEventListener("touchstart",m,!0)}},[i,n]),f.jsxs(f.Fragment,{children:[h,c((m,p)=>f.jsx(f.Fragment,{children:p&&f.jsx(Rs.div,{className:Z("bg-white shadow rounded-4 d-block show py-12 px-8","bs-tooltip-auto"),ref:s,style:{...o.popper,...m},...a.popper,children:t})}))]})};Rv.displayName="Dropdown";const QE=Rv,Pv=b.forwardRef(({title:e="",state:t,variant:n,icon:r,size:i="lg",grow:s=!1,badgeContent:o,...a},l)=>{const u=Z("dropdown-trigger",t,i,n,s&&"flex-grow-1 justify-content-between");return f.jsxs("button",{ref:l,className:u,...a,type:"button",children:[r&&f.jsx("div",{className:"dropdown-trigger-icon",children:r}),f.jsx("div",{children:e}),o?f.jsx("div",{children:f.jsx("span",{className:"badge text-bg-secondary rounded-pill",children:o})}):f.jsx("div",{className:"dropdown-trigger-carret-icon",children:f.jsx(I3,{width:16,height:16})})]})});Pv.displayName="DropdownTrigger";const WE=Pv,jv=({options:e,hideCheckbox:t,isMonoSelection:n,onChange:r,model:i=[]})=>{const[s,o]=b.useState(i),a=l=>{o(n?[l]:u=>{const c=[...u];return u.includes(l)?c.splice(c.indexOf(l),1):c.push(l),c})};return b.useEffect(()=>{r==null||r(s)},[s]),f.jsx(f.Fragment,{children:f.jsx("div",{className:"select-list",children:e==null?void 0:e.map(l=>f.jsxs("div",{className:Z("select-list-option",t&&s.includes(l.value)&&"text-secondary fw-bold"),role:"checkbox","aria-checked":s.includes(l.value),onMouseUp:()=>{a(l.value)},tabIndex:0,onKeyDown:u=>{u.key==="Enter"&&a(l.value)},children:[f.jsx("div",{className:"select-list-option-icon",children:l.icon&&Am.createElement(l.icon,{width:"20px",height:"20px"})}),f.jsx("div",{className:"select-list-option-label",children:l.label}),!t&&f.jsx("div",{className:"select-list-option-checkbox",children:f.jsx("input",{readOnly:!0,type:"checkbox",tabIndex:-1,checked:s.includes(l.value),className:"form-check-input c-pointer",id:"option.value"})})]},l.value))})})};jv.displayName="SelectList";const KE=jv,Nv=b.createContext(null),cf=()=>{const e=b.useContext(Nv);if(!e)throw new Error("Cannot be rendered outside the FormControl component");return e},Tv=({children:e})=>{const{status:t}=cf(),n=Z("form-text",{"is-invalid":t==="invalid",valid:t==="valid"});return f.jsx("p",{className:n,children:f.jsx("em",{children:e})})};Tv.displayName="Text";const ZE=Tv,_v=b.forwardRef(({leftIcon:e,optionalText:t="Optional",requiredText:n="*",children:r,className:i},s)=>{const{id:o,isOptional:a,isRequired:l}=cf(),u=Z("form-label",{"has-icon":e},i),c=a&&!l,d=l&&!a;return b.useEffect(()=>{if(a&&l)throw new Error("Cannot be optional and required at the same time")},[a,l]),f.jsxs("label",{ref:s,htmlFor:o,className:u,children:[e,r,c&&f.jsxs("em",{className:"optional",children:["- ",t]}),d&&f.jsx("em",{className:"required",children:n})]})});_v.displayName="Label";const XE=_v,Av=b.forwardRef(({noValidationIcon:e,placeholder:t,size:n="md",type:r="text",className:i,...s},o)=>{const{id:a,isRequired:l,isReadOnly:u,status:c}=cf(),d=Z({"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},i);return f.jsx("input",{ref:o,id:a,className:d,type:r,placeholder:t,required:l,readOnly:u,...s})});Av.displayName="Input";const Iv=Av,Lv=b.forwardRef(({children:e,className:t,id:n,isOptional:r,isReadOnly:i,isRequired:s,status:o,...a},l)=>{const u=b.useMemo(()=>({id:n,isOptional:r,isRequired:s,isReadOnly:i,status:o}),[n,r,i,s,o]);return f.jsx(Nv.Provider,{value:u,children:f.jsx("div",{ref:l,className:t,...a,children:e})})}),GE=Object.assign(Lv,{Label:XE,Input:Iv,Text:ZE});Lv.displayName="FormControl";const Mc=GE,Wi=({children:e,className:t,...n})=>{const r=Z("grid",t);return f.jsx("div",{className:r,...n,children:e})},Mv=({sm:e,md:t,lg:n,xl:r,children:i,className:s,as:o,...a})=>{const l=o||"div",u=Z({[`g-col-${e}`]:e,[t?`g-col-md-${t}`:""]:t,[n?`g-col-lg-${n}`:""]:n,[r?`g-col-xl-${r}`:""]:r},s);return f.jsx(l,{className:u,...a,children:i})};Wi.displayName="Grid";Mv.displayName="Grid.Col";Wi.Col=Mv;const Dv=b.forwardRef(({position:e=!0},t)=>{const[n]=Ya(),r=`${n}/loading/screen-loading.gif`,i=Z("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:i,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"})]})});Dv.displayName="LoadingScreen";const Ve=Dv,Fv=b.forwardRef(({src:e,is1d:t,translate:n="Retour accueil"},r)=>{const i=Z("navbar-brand d-none d-md-block"),s=`logo ${t?"ONE":"NEO"}`;return f.jsx("a",{ref:r,className:i,href:"/timeline/timeline","aria-label":n,children:f.jsx("img",{className:"logo",src:e,alt:s,width:"300",height:"52"})})});Fv.displayName="Logo";const nm=Fv,df=b.createContext({ariaLabelId:"",ariaDescriptionId:"",focusId:""});df.displayName="ModalContext";const $v=()=>{const e=b.useContext(df);if(!e)throw new Error("Cannot be rendered outside the Modal component");return e},zv=e=>{const{ariaDescriptionId:t}=$v(),{children:n,className:r}=e,i=Z("modal-body",r);return f.jsx("div",{id:t,className:i,children:n})};zv.displayName="Modal.Body";const YE=zv,Bv=e=>f.jsx("div",{className:"modal-footer",children:e.children});Bv.displayName="Modal.Footer";const JE=Bv,Uv=e=>{const{onModalClose:t,children:n}=e,{ariaLabelId:r,focusId:i}=$v(),s=b.useRef(null);return b.useEffect(()=>{var o;i||(o=s.current)==null||o.focus()},[i]),f.jsxs("div",{className:"modal-header",children:[f.jsx("h2",{id:r,className:"modal-title",tabIndex:-1,children:n}),f.jsx("button",{ref:s,type:"button",className:"btn btn-close","aria-label":"Close",onClick:t})]})};Uv.displayName="Modal.Header";const eC=Uv,Vv=e=>f.jsx("p",{className:"modal-subtitle",children:e.children});Vv.displayName="Modal.Subtitle";const tC=Vv,Hv=b.forwardRef((e,t)=>{const{id:n,isOpen:r,onModalClose:i,size:s="md",scrollable:o,focusId:a,children:l}=e,u=`aria_label_${n}`,c=`aria_desc_${n}`,d=r4(i),h=Y4();Z4(i,["Escape"]),b.useEffect(()=>{if(r&&(document.body.style.overflow="hidden",a)){const x=document.getElementById(a);x==null||x.focus()}return()=>{document.body.style.overflow=""}},[a,r]);const m=Z("modal-dialog",{[`modal-${s}`]:s,"modal-dialog-scrollable":o}),p={ariaLabelId:u,ariaDescriptionId:c,focusId:a},y=ul(r,{from:{x:-50,opacity:0},enter:{x:0,opacity:1},leave:{x:50,opacity:0}});return f.jsx(df.Provider,{value:p,children:y((x,g)=>f.jsxs(f.Fragment,{children:[g&&f.jsx(Rs.div,{id:n,ref:t,role:"dialog","aria-modal":"true","aria-labelledby":u,"aria-describedby":c,className:`modal fade ${g?"show d-block":""}`,style:x,tabIndex:-1,children:f.jsx("div",{id:`${n}_ref`,ref:v=>{d.current=v,g&&(h.current=v)},className:m,children:f.jsx("div",{className:"modal-content",children:l})})}),g&&f.jsx(Rs.div,{className:"modal-backdrop fade show",style:{opacity:.65}})]}))})}),nC=Object.assign(Hv,{Header:eC,Subtitle:tC,Body:YE,Footer:JE});Hv.displayName="Modal";const kn=nC,rC=({children:e,className:t})=>{const n=Z("popover-body",t);return f.jsx("div",{className:n,children:e})},iC=({children:e,className:t})=>{const n=Z("popover-footer p-8",t);return f.jsx("div",{className:n,children:e})},ff=b.forwardRef(({children:e,className:t,id:n,isVisible:r,...i},s)=>{const o=Z("popover d-block position-absolute top-100 start-50 translate-middle-x",t);return ul(r,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0}})((l,u)=>u&&f.jsx(Rs.div,{ref:s,"aria-labelledby":n,className:o,role:"tooltip",style:l,...i,children:e}))});ff.displayName="Popover";function sC(e,t,n,r,i,s,o,a,l){const u=x=>{x.preventDefault(),i==null||i(e),x.stopPropagation()},c=x=>{(x.code==="Enter"||x.code==="Space")&&(x.preventDefault(),i==null||i(e),x.stopPropagation())},d=()=>{r(!n),n?s==null||s(e):o==null||o(e)};return{handleItemClick:u,handleItemKeyDown:c,handleItemFoldUnfoldClick:x=>{x.preventDefault(),d(),x.stopPropagation()},handleItemFoldUnfoldKeyDown:x=>{(x.code==="Enter"||x.code==="Space")&&(x.preventDefault(),d(),x.stopPropagation())},handleItemFocus:x=>{x.preventDefault(),a==null||a(e)},handleItemBlur:x=>{x.preventDefault(),l==null||l(e)}}}const qv=e=>{const{nodeId:t,label:n,children:r,section:i,selected:s,onItemSelect:o,onItemFold:a,onItemUnfold:l,onItemFocus:u,onItemBlur:c,selectedNodesIds:d}=e,[h,m]=b.useState(!1),{handleItemClick:p,handleItemKeyDown:y,handleItemFoldUnfoldClick:x,handleItemFoldUnfoldKeyDown:g,handleItemFocus:v,handleItemBlur:w}=sC(t,n,h,m,o,a,l,u,c);b.useEffect(()=>{if(d!=null&&d.length&&(d==null?void 0:d.length)>=1){const k=d[d.length-1];d.some(O=>O===t&&t!==k?(m(!0),O===t):(m(!1),!1))}else m(!1)},[t,d]);const S=i?16:12,C=()=>f.jsx("li",{id:`listitem_${t}`,role:"treeitem","aria-selected":s,"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:x,onKeyDown:g,"aria-label":"fold/unfold button",children:[Array.isArray(r)&&!h&&f.jsx(yp,{title:"RafterRight",width:S,height:S}),Array.isArray(r)&&h&&f.jsx(wc,{title:"RafterDown",width:S,height:S}),!Array.isArray(r)&&f.jsx(yp,{title:"RafterRight",width:S,height:S,"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:p,onKeyDown:y,onFocus:v,onBlur:w,children:[i&&f.jsx(x3,{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 i?f.jsx("ul",{role:"tree",className:"m-0 p-0",children:C()}):C()};qv.displayName="TreeItem";const oC=qv,Qv=b.forwardRef((e,t)=>{const{data:n,onTreeItemSelect:r,onTreeItemFold:i,onTreeItemUnfold:s,onTreeItemFocus:o,onTreeItemBlur:a,selectedNodesIds:l}=e,[u,c]=b.useState("default");b.useEffect(()=>{l!=null&&l.length&&(l==null?void 0:l.length)>=1?c(l[l.length-1]):c("")},[l]);const d=g=>{c(g),r==null||r(g)},h=g=>{i==null||i(g)},m=g=>{s==null||s(g)},p=g=>{o==null||o(g)},y=g=>{a==null||a(g)},x=g=>f.jsx(oC,{nodeId:g.id,label:g.name,section:g.section,selectedNodesIds:l,selected:u===g.id,onItemSelect:d,onItemFold:h,onItemUnfold:m,onItemFocus:p,onItemBlur:y,children:Array.isArray(g.children)?g.children.map(v=>x(v)):null},g.id);return f.jsx("div",{ref:t,id:"treeview",className:"treeview",children:x(n)})});Qv.displayName="TreeView";const aC=Qv,Wv=b.forwardRef(({children:e},t)=>f.jsx("span",{className:"visually-hidden",ref:t,children:e}));Wv.displayName="VisuallyHidden";const ji=Wv,lC=()=>{const e=zi("fr.openent.zimbra.controllers.ZimbraController|view"),t=zi("fr.openent.zimbra.controllers.ZimbraController|preauth"),[n,r]=b.useState(0),[i,s]=b.useState(""),o=b.useCallback(async()=>{if(e)try{const l=await G.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 G.http().get("/conversation/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});r(l.count)}catch{console.error("error"),r(0)}},[e]),a=b.useCallback(()=>{let l="";G.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"}}),s(l)},[t]);return b.useEffect(()=>{(async()=>{try{await o()}catch(l){console.error(l)}})(),a()},[a,o]),{messages:n,msgLink:i,zimbraWorkflow:e}},uC=lC;function su({children:e}){return f.jsx("span",{className:"position-absolute badge rounded-pill bg-warning",children:e})}function ou({children:e,className:t,...n}){const r=Z("navbar",t);return f.jsx("nav",{className:r,...n,children:e})}function rm({children:e,className:t,...n}){const r=Z("navbar-nav",t);return f.jsx("ul",{className:r,...n,children:e})}const de=b.forwardRef(({children:e,className:t,...n},r)=>{const i=Z("nav-item",t);return f.jsx("li",{ref:r,className:i,...n,children:e})});de.displayName="NavItem";function bi({link:e,className:t,children:n,translate:r,...i}){const s=Z("nav-link",t);return f.jsxs("a",{href:e,className:s,...i,children:[n,r&&f.jsx(ji,{children:f.jsx("span",{className:"nav-text",children:r})})]})}const cC=()=>{const{t:e}=xe();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")})})})},dC=({bookmarkedApps:e})=>{const{t}=xe();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(xc,{app:n,size:"32"})},r))]})};var hf={},pf={};(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})(pf);var q={},Un=He&&He.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},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)}}(),Ki=He&&He.__assign||function(){return Ki=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ki.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 Ge=pf,mf=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),gf(this,t)},e}();q.Node=mf;var cl=function(e){Un(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}(mf);q.DataNode=cl;var Kv=function(e){Un(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ge.ElementType.Text,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(cl);q.Text=Kv;var Zv=function(e){Un(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ge.ElementType.Comment,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(cl);q.Comment=Zv;var Xv=function(e){Un(t,e);function t(n,r){var i=e.call(this,r)||this;return i.name=n,i.type=Ge.ElementType.Directive,i}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(cl);q.ProcessingInstruction=Xv;var dl=function(e){Un(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}(mf);q.NodeWithChildren=dl;var Gv=function(e){Un(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ge.ElementType.CDATA,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(dl);q.CDATA=Gv;var Yv=function(e){Un(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ge.ElementType.Root,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(dl);q.Document=Yv;var Jv=function(e){Un(t,e);function t(n,r,i,s){i===void 0&&(i=[]),s===void 0&&(s=n==="script"?Ge.ElementType.Script:n==="style"?Ge.ElementType.Style:Ge.ElementType.Tag);var o=e.call(this,i)||this;return o.name=n,o.attribs=r,o.type=s,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 i,s;return{name:r,value:n.attribs[r],namespace:(i=n["x-attribsNamespace"])===null||i===void 0?void 0:i[r],prefix:(s=n["x-attribsPrefix"])===null||s===void 0?void 0:s[r]}})},enumerable:!1,configurable:!0}),t}(dl);q.Element=Jv;function ey(e){return(0,Ge.isTag)(e)}q.isTag=ey;function ty(e){return e.type===Ge.ElementType.CDATA}q.isCDATA=ty;function ny(e){return e.type===Ge.ElementType.Text}q.isText=ny;function ry(e){return e.type===Ge.ElementType.Comment}q.isComment=ry;function iy(e){return e.type===Ge.ElementType.Directive}q.isDirective=iy;function sy(e){return e.type===Ge.ElementType.Root}q.isDocument=sy;function fC(e){return Object.prototype.hasOwnProperty.call(e,"children")}q.hasChildren=fC;function gf(e,t){t===void 0&&(t=!1);var n;if(ny(e))n=new Kv(e.data);else if(ry(e))n=new Zv(e.data);else if(ey(e)){var r=t?au(e.children):[],i=new Jv(e.name,Ki({},e.attribs),r);r.forEach(function(l){return l.parent=i}),e.namespace!=null&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=Ki({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=Ki({},e["x-attribsPrefix"])),n=i}else if(ty(e)){var r=t?au(e.children):[],s=new Gv(r);r.forEach(function(u){return u.parent=s}),n=s}else if(sy(e)){var r=t?au(e.children):[],o=new Yv(r);r.forEach(function(u){return u.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}else if(iy(e)){var a=new Xv(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=gf;function au(e){for(var t=e.map(function(r){return gf(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=He&&He.__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=He&&He.__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=pf,i=q;n(q,e);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=function(){function a(l,u,c){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(c=u,u=s),typeof l=="object"&&(u=l,l=void 0),this.callback=l??null,this.options=u??s,this.elementCB=c??null}return a.prototype.onparserinit=function(l){this.parser=l},a.prototype.onreset=function(){this.dom=[],this.root=new i.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 i.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 i.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 i.Comment(l);this.addNode(u),this.lastNode=u},a.prototype.oncommentend=function(){this.lastNode=null},a.prototype.oncdatastart=function(){var l=new i.Text(""),u=new i.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 i.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})(hf);var im="html",sm="head",xo="body",hC=/<([a-zA-Z]+[0-9]?)/,om=/<head[^]*>/i,am=/<body[^]*>/i,_a=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},Dc=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},lm=typeof window=="object"&&window.DOMParser;if(typeof lm=="function"){var pC=new lm,mC="text/html";Dc=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),pC.parseFromString(e,mC)},_a=Dc}if(typeof document=="object"&&document.implementation){var So=document.implementation.createHTMLDocument();_a=function(e,t){if(t){var n=So.documentElement.querySelector(t);return n.innerHTML=e,So}return So.documentElement.innerHTML=e,So}}var lu=typeof document=="object"?document.createElement("template"):{},Fc;lu.content&&(Fc=function(e){return lu.innerHTML=e,lu.content.childNodes});function gC(e){var t,n=e.match(hC);n&&n[1]&&(t=n[1].toLowerCase());var r,i,s;switch(t){case im:return r=Dc(e),om.test(e)||(i=r.querySelector(sm),i&&i.parentNode.removeChild(i)),am.test(e)||(i=r.querySelector(xo),i&&i.parentNode.removeChild(i)),r.querySelectorAll(im);case sm:case xo:return r=_a(e),s=r.querySelectorAll(t),am.test(e)&&om.test(e)?s[0].parentNode.childNodes:s;default:return Fc?Fc(e):(i=_a(e,xo).querySelector(xo),i.childNodes)}}var vC=gC,vf={},oy={};oy.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 fl=hf,yC=oy,um=yC.CASE_SENSITIVE_TAG_NAMES,wC=fl.Comment,xC=fl.Element,SC=fl.ProcessingInstruction,bC=fl.Text,ay={},uu;for(var cu=0,EC=um.length;cu<EC;cu++)uu=um[cu],ay[uu.toLowerCase()]=uu;function CC(e){return ay[e]}function ly(e){for(var t={},n,r=0,i=e.length;r<i;r++)n=e[r],t[n.name]=n.value;return t}function kC(e){e=e.toLowerCase();var t=CC(e);return t||e}function uy(e,t,n){t=t||null;for(var r=[],i,s=0,o=e.length;s<o;s++){var a=e[s],l;switch(a.nodeType){case 1:i=kC(a.nodeName),l=new xC(i,ly(a.attributes)),l.children=uy(i==="template"?a.content.childNodes:a.childNodes,l);break;case 3:l=new bC(a.nodeValue);break;case 8:l=new wC(a.nodeValue);break;default:continue}var u=r[s-1]||null;u&&(u.next=l),l.parent=t,l.prev=u,l.next=null,r.push(l)}return n&&(l=new SC(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}vf.formatAttributes=ly;vf.formatDOM=uy;var OC=vC,RC=vf,PC=RC.formatDOM,jC=/<(![a-zA-Z\s]+)>/;function NC(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(e==="")return[];var t=e.match(jC),n;return t&&t[1]&&(n=t[1]),PC(OC(e),null,n)}var TC=NC,St={},hl={},_C=0;hl.SAME=_C;var AC=1;hl.CAMELCASE=AC;hl.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(St,"__esModule",{value:!0});function IC(e,t){return LC(e)||MC(e,t)||DC(e,t)||FC()}function LC(e){if(Array.isArray(e))return e}function MC(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,s=!1,o,a;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(l){s=!0,a=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(s)throw a}}return r}}function DC(e,t){if(e){if(typeof e=="string")return cm(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 cm(e,t)}}function cm(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 FC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
225
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var cy=0,Vn=1,pl=2,ml=3,yf=4,dy=5,fy=6;function $C(e){return Ce.hasOwnProperty(e)?Ce[e]:null}function Me(e,t,n,r,i,s,o){this.acceptsBooleans=t===pl||t===ml||t===yf,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var Ce={},zC=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];zC.forEach(function(e){Ce[e]=new Me(e,cy,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=IC(e,2),n=t[0],r=t[1];Ce[n]=new Me(n,Vn,!1,r,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ce[e]=new Me(e,pl,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ce[e]=new Me(e,pl,!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 Me(e,ml,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ce[e]=new Me(e,ml,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ce[e]=new Me(e,yf,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ce[e]=new Me(e,fy,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ce[e]=new Me(e,dy,!1,e.toLowerCase(),null,!1,!1)});var wf=/[\-\:]([a-z])/g,xf=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(wf,xf);Ce[t]=new Me(t,Vn,!1,e,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(wf,xf);Ce[t]=new Me(t,Vn,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(wf,xf);Ce[t]=new Me(t,Vn,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ce[e]=new Me(e,Vn,!1,e.toLowerCase(),null,!1,!1)});var BC="xlinkHref";Ce[BC]=new Me("xlinkHref",Vn,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ce[e]=new Me(e,Vn,!1,e.toLowerCase(),null,!0,!0)});var Sf=hl,UC=Sf.CAMELCASE,VC=Sf.SAME,dm=Sf.possibleStandardNames,HC=":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",qC=HC+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",QC=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+qC+"]*$")),WC=Object.keys(dm).reduce(function(e,t){var n=dm[t];return n===VC?e[t]=t:n===UC?e[t.toLowerCase()]=t:e[t]=n,e},{});St.BOOLEAN=ml;St.BOOLEANISH_STRING=pl;St.NUMERIC=dy;St.OVERLOADED_BOOLEAN=yf;St.POSITIVE_NUMERIC=fy;St.RESERVED=cy;St.STRING=Vn;St.getPropertyInfo=$C;St.isCustomAttribute=QC;St.possibleStandardNames=WC;var hy={},bf={exports:{}},fm=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,KC=/\n/g,ZC=/^\s*/,XC=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,GC=/^:\s*/,YC=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,JC=/^[;\s]*/,e8=/^\s+|\s+$/g,t8=`
|
|
226
|
+
`,hm="/",pm="*",Kn="",n8="comment",r8="declaration",i8=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 i(p){var y=p.match(KC);y&&(n+=y.length);var x=p.lastIndexOf(t8);r=~x?p.length-x:r+p.length}function s(){var p={line:n,column:r};return function(y){return y.position=new o(p),u(),y}}function o(p){this.start=p,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(p){var y=new Error(t.source+":"+n+":"+r+": "+p);if(y.reason=p,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function l(p){var y=p.exec(e);if(y){var x=y[0];return i(x),e=e.slice(x.length),y}}function u(){l(ZC)}function c(p){var y;for(p=p||[];y=d();)y!==!1&&p.push(y);return p}function d(){var p=s();if(!(hm!=e.charAt(0)||pm!=e.charAt(1))){for(var y=2;Kn!=e.charAt(y)&&(pm!=e.charAt(y)||hm!=e.charAt(y+1));)++y;if(y+=2,Kn===e.charAt(y-1))return a("End of comment missing");var x=e.slice(2,y-2);return r+=2,i(x),e=e.slice(y),r+=2,p({type:n8,comment:x})}}function h(){var p=s(),y=l(XC);if(y){if(d(),!l(GC))return a("property missing ':'");var x=l(YC),g=p({type:r8,property:mm(y[0].replace(fm,Kn)),value:x?mm(x[0].replace(fm,Kn)):Kn});return l(JC),g}}function m(){var p=[];c(p);for(var y;y=h();)y!==!1&&(p.push(y),c(p));return p}return u(),m()};function mm(e){return e?e.replace(e8,Kn):Kn}var s8=i8;function py(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,i=s8(e),s=typeof t=="function",o,a,l=0,u=i.length;l<u;l++)r=i[l],o=r.property,a=r.value,s?t(o,a,r):a&&(n||(n={}),n[o]=a);return n}bf.exports=py;bf.exports.default=py;var o8=bf.exports,gl={};gl.__esModule=!0;gl.camelCase=void 0;var a8=/^--[a-zA-Z0-9-]+$/,l8=/-([a-z])/g,u8=/^[^-]+$/,c8=/^-(webkit|moz|ms|o|khtml)-/,d8=/^-(ms)-/,f8=function(e){return!e||u8.test(e)||a8.test(e)},h8=function(e,t){return t.toUpperCase()},gm=function(e,t){return"".concat(t,"-")},p8=function(e,t){return t===void 0&&(t={}),f8(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(d8,gm):e=e.replace(c8,gm),e.replace(l8,h8))};gl.camelCase=p8;(function(e){var t=He&&He.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};e.__esModule=!0;var n=t(o8),r=gl;function i(s,o){var a={};return!s||typeof s!="string"||(0,n.default)(s,function(l,u){l&&u&&(a[(0,r.camelCase)(l,o)]=u)}),a}e.default=i})(hy);var m8=b,g8=hy.default;function v8(e,t){if(!e||typeof e!="object")throw new TypeError("First argument must be an object");var n,r,i=typeof t=="function",s={},o={};for(n in e){if(r=e[n],i&&(s=t(n,r),s&&s.length===2)){o[s[0]]=s[1];continue}typeof r=="string"&&(o[r]=n)}return o}function y8(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 w8={reactCompat:!0};function x8(e,t){if(e!=null)try{t.style=g8(e,w8)}catch{t.style={}}}var S8=m8.version.split(".")[0]>=16,my=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);function b8(e){return!my.has(e.name)}var gy={PRESERVE_CUSTOM_ATTRIBUTES:S8,invertObject:v8,isCustomComponent:y8,setStyleProp:x8,canTextBeChildOfNode:b8,elementsWithNoTextChildren:my},Ni=St,vm=gy,E8=["checked","value"],C8=["input","select","textarea"],k8={reset:!0,submit:!0},vy=function(t,n){t=t||{};var r,i,s,o,a,l={},u=t.type&&k8[t.type];for(r in t){if(s=t[r],Ni.isCustomAttribute(r)){l[r]=s;continue}if(i=r.toLowerCase(),o=ym(i),o){switch(a=Ni.getPropertyInfo(o),E8.indexOf(o)!==-1&&C8.indexOf(n)!==-1&&!u&&(o=ym("default"+i)),l[o]=s,a&&a.type){case Ni.BOOLEAN:l[o]=!0;break;case Ni.OVERLOADED_BOOLEAN:s===""&&(l[o]=!0);break}continue}vm.PRESERVE_CUSTOM_ATTRIBUTES&&(l[r]=s)}return vm.setStyleProp(t.style,l),l};function ym(e){return Ni.possibleStandardNames[e]}var O8=b,R8=vy,Aa=gy,P8=Aa.setStyleProp,j8=Aa.canTextBeChildOfNode;function yy(e,t){t=t||{};for(var n=t.library||O8,r=n.cloneElement,i=n.createElement,s=n.isValidElement,o=[],a,l,u=typeof t.replace=="function",c,d,h,m=t.trim,p=0,y=e.length;p<y;p++){if(a=e[p],u&&(c=t.replace(a),s(c))){y>1&&(c=r(c,{key:c.key||p})),o.push(c);continue}if(a.type==="text"){if(l=!a.data.trim().length,l&&a.parent&&!j8(a.parent)||m&&l)continue;o.push(a.data);continue}switch(d=a.attribs,N8(a)?P8(d.style,d):d&&(d=R8(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=yy(a.children,t));break;default:continue}y>1&&(d.key=p),o.push(i(a.name,d,h))}return o.length===1?o[0]:o}function N8(e){return Aa.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&Aa.isCustomComponent(e.name,e.attribs)}var T8=yy,vl=hf,Tr=TC,_8=vy,wy=T8;Tr=typeof Tr.default=="function"?Tr.default:Tr;var A8={lowerCaseAttributeNames:!1};function Kt(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e===""?[]:(t=t||{},wy(Tr(e,t.htmlparser2||A8),t))}Kt.domToReact=wy;Kt.htmlToDOM=Tr;Kt.attributesToProps=_8;Kt.Comment=vl.Comment;Kt.Element=vl.Element;Kt.ProcessingInstruction=vl.ProcessingInstruction;Kt.Text=vl.Text;var I8=Kt;Kt.default=Kt;const Hn=js(I8);var bo=Hn.domToReact;Hn.htmlToDOM;var du=Hn.attributesToProps;Hn.Comment;Hn.Element;Hn.ProcessingInstruction;Hn.Text;function L8(){var y;const{appCode:e}=At(),{theme:t}=Fd(),[n,r]=b.useState(""),[i,s]=b.useState(!0),[o,a]=b.useState(!1),[l,u]=b.useState(!1),c=t!=null&&t.is1d?"/help-1d":"/help-2d";b.useEffect(()=>{(async()=>{let x="";x=c+"/application/"+e+"/",!e&&window.location.pathname!=="/adapter"?x=c+"/application/portal/":window.location.pathname==="/adapter"?x=c+"/application/"+window.location.search.split("eliot=")[1].split("&")[0]+"/":window.location.pathname.includes("/directory/class-admin")?x=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"))&&(x=c+"/application/userbook/");try{const g=await fetch(x),v=await g.text();if(g.status===404){u(!0);return}r(v),u(!1)}catch(g){u(!0),console.error(g)}})()},[e,c]);const h=Hn(n,{replace:x=>{const g=x;if(g.attribs&&g.attribs.id==="TOC")return f.jsxs("nav",{id:"TOC",children:[f.jsx(ri,{onClick:()=>{s(!i)},children:f.jsx(l3,{})}),bo(g.children,{replace:v=>{const w=v;if(w.attribs&&w.name==="ul")return f.jsx("ul",{id:"TOC-list",style:{display:i?"block":"none"},children:bo(w.children,{replace:S=>{const C=S;if(C.attribs&&C.name==="a")return f.jsx("a",{...du(C.attribs),children:f.jsx("span",{onClick:()=>{s(!1)},children:bo(C.children)})})}})})}})]});if(g.attribs&&g.attribs.class==="section level2"){const v=du(x.attribs);return f.jsx("div",{...v,className:"section level2",style:{display:g.attribs.id!=="présentation"?"none":"block"},children:bo(g.children,{replace:w=>{const S=w;if(S.attribs&&S.name==="p")return f.jsx(f.Fragment,{});if(S.attribs&&S.name==="img"){const C=w.attribs.src;return f.jsx("img",{...du(S.attribs),src:`${c}/${C}`,alt:""})}}})})}}}),m=(y=h==null?void 0:h.props)==null?void 0:y.children.find(x=>x.type==="body").props.children,p=m==null?void 0:m.find(x=>x.type==="p").props.children;return{html:n,visibility:i,isModalOpen:o,setIsModalOpen:a,parsedContent:m,parsedHeadline:p,error:l}}const xy=()=>{const[e,t]=g0(),n=b.useRef(null),r=b.useId(),{t:i}=xe();function s(){if(n.current){const o=n.current.value;window.location.href=`/searchengine#/${o}`}}return f.jsxs(de,{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(c5,{className:"icon search"}),f.jsx("span",{className:"nav-text",children:i("navbar.search")})]}),f.jsx(ff,{id:r,isVisible:t,children:f.jsxs(Mc,{id:"my-search-input",className:"search-text input-group py-8 px-12",children:[f.jsx(Mc.Input,{ref:n,size:"sm",type:"text",name:"my-search-input",placeholder:"Rechercher"}),f.jsx(F0,{type:"submit",size:"sm",onClick:s,"aria-label":i("navbar.search")})]})})]})};xy.displayName="SearchEngine";const M8=xy;function wm({isHelpOpen:e,setIsHelpOpen:t,parsedHeadline:n,parsedContent:r,error:i}){const{t:s}=xe(),o=()=>{t(!1)};return e?Ms.createPortal(f.jsxs(kn,{id:"help-modal",isOpen:e,onModalClose:o,scrollable:!0,size:"xl",children:[f.jsx(kn.Header,{onModalClose:o,children:s("navbar.help")}),f.jsx(kn.Subtitle,{children:i?s("help.notfound.title"):n}),f.jsx(kn.Body,{className:i?"d-flex":null,children:i?s("help.notfound.text"):r})]}),document.getElementById("portal")):null}const Sy=({is1d:e=!1,src:t=""})=>{const{t:n}=xe(),{messages:r,msgLink:i,zimbraWorkflow:s}=uC(),{user:o,avatar:a}=$d(),{isModalOpen:l,setIsModalOpen:u,parsedContent:c,parsedHeadline:d,error:h}=L8(),m=Z("header",{"no-2d":e,"no-1d":!e}),{title:p,bookmarkedApps:y,appsRef:x,isAppsHovered:g,popoverAppsId:v,userAvatar:w,userName:S,welcomeUser:C,communityWorkflow:k,conversationWorflow:O,searchWorkflow:R,isCollapsed:A,toggleCollapsedNav:I,handleLogout:M}=e4({user:o,avatar:a}),z=r>0;return f.jsx("header",{className:m,children:e?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"container-fluid",children:f.jsxs(ou,{children:[f.jsx("a",{className:"navbar-title d-md-none text-truncate h4",href:"/timeline/timeline",children:p}),f.jsxs("div",{className:"d-none d-md-inline-flex gap-12 align-items-center",children:[f.jsx(wp,{alt:S,size:"sm",src:w,variant:"circle",width:"32",height:"32"}),f.jsx("span",{className:"navbar-text",children:C})]}),f.jsxs(rm,{className:"gap-8","aria-hidden":"false","aria-label":n("navbar.main.navigation"),children:[O&&f.jsx(de,{children:f.jsxs("a",{href:"/conversation/conversation",className:"nav-link",children:[f.jsx(o5,{className:"icon notification"}),z&&f.jsx(su,{children:r}),f.jsx(ji,{children:n("navbar.messages")})]})}),f.jsx(de,{children:f.jsx(bi,{link:"/userbook/mon-compte",className:"dropdown-item",translate:n("navbar.myaccount"),children:f.jsx(l5,{className:"icon user"})})}),f.jsxs(de,{children:[f.jsxs("button",{className:"nav-link",onClick:()=>{u(!0)},children:[f.jsx(i5,{className:"icon help"}),f.jsx(ji,{children:n("navbar.help")})]}),f.jsx(wm,{isHelpOpen:l,setIsHelpOpen:u,parsedContent:c,parsedHeadline:d,error:h})]}),f.jsx(de,{children:f.jsxs("button",{className:"nav-link",onClick:M,children:[f.jsx(xp,{className:"icon logout"}),f.jsx(ji,{children:n("navbar.disconnect")})]})}),f.jsx(de,{className:"d-md-none",children:f.jsx("button",{className:"nav-link btn btn-naked",type:"button","aria-controls":"navbarCollapsed","aria-expanded":!A,"aria-label":n("navbar.secondary.navigation"),onClick:I,children:f.jsx(wc,{className:"icon rafter-down",width:"20",height:"20"})})})]})]})}),f.jsx(ou,{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 ${A?"":"show"}`,id:"navbarCollapsed",children:[f.jsx(nm,{is1d:!0,src:`${t}/img/illustrations/logo.png`,translate:n("navbar.home")}),f.jsxs(rm,{className:"gap-8",children:[f.jsx(de,{children:f.jsxs("a",{href:"/timeline/timeline",className:"button",children:[f.jsx(n5,{color:"#fff",className:"d-md-none"}),f.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.whatsnew")})]})}),f.jsx(de,{children:f.jsxs("a",{href:"/userbook/annuaire",className:"button",children:[f.jsx(f5,{color:"#fff",className:"d-md-none"}),f.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.classMembers")})]})}),f.jsx(de,{children:f.jsxs("a",{href:"/welcome",className:"button",children:[f.jsx(Sp,{color:"#fff",className:"d-md-none"}),f.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.myapps")})]})})]})]})})})]}):f.jsx(ou,{className:"navbar-expand-md",children:f.jsxs("div",{className:"container-fluid",children:[f.jsx(nm,{src:`${t}/img/illustrations/logo.png`}),f.jsx("a",{href:"/timeline/timeline",className:"navbar-title text-truncate d-md-none",children:p}),f.jsxs("ul",{className:"navbar-nav",children:[f.jsx(de,{children:f.jsx(bi,{link:"/timeline/timeline",translate:n("navbar.home"),children:f.jsx(X3,{color:"#fff"})})}),f.jsxs(de,{className:"position-relative",ref:x,id:v,"aria-haspopup":"true","aria-expanded":g,children:[f.jsx(bi,{link:"/welcome",translate:n("navbar.applications"),children:f.jsx(Sp,{color:"#fff"})}),f.jsxs(ff,{className:"top-100 widget",id:v,isVisible:g,children:[f.jsx(rC,{children:f.jsx(dC,{bookmarkedApps:y})}),f.jsx(iC,{className:"widget-footer border-top border-ghost",children:f.jsx(cC,{})})]})]}),O&&f.jsx(de,{children:f.jsxs(bi,{className:"position-relative",link:"/conversation/conversation",translate:n("conversation"),children:[f.jsx(bp,{color:"#fff"}),z&&f.jsx(su,{children:r})]})}),s&&f.jsx(de,{children:f.jsxs(bi,{className:"position-relative",link:i,translate:n("conversation"),children:[f.jsx(bp,{color:"#fff"}),z&&f.jsx(su,{children:r})]})}),f.jsxs(de,{children:[f.jsxs("button",{className:"nav-link btn btn-naked",onClick:()=>{u(!0)},children:[f.jsx(J3,{color:"#fff"}),f.jsx(ji,{children:n("support")})]}),f.jsx(wm,{isHelpOpen:l,setIsHelpOpen:u,parsedContent:c,parsedHeadline:d,error:h})]}),f.jsx(de,{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":!A,"aria-label":n("navbar.open.menu"),onClick:I,children:f.jsx(wc,{className:"icon rafter-down",width:"20",height:"20",color:"#fff"})}),f.jsxs("ul",{className:`dropdown-menu dropdown-menu-end ${A?"":"show"}`,id:"dropdown-navbar",children:[k&&f.jsx(de,{children:f.jsxs("a",{href:"/community",className:"nav-link dropdown-item",children:[f.jsx(W3,{className:"icon community"}),f.jsx("span",{className:"nav-text",children:n("navbar.community")})]})}),R?f.jsx(M8,{}):null,f.jsx(de,{children:f.jsxs("a",{href:"/userbook/mon-compte",className:"nav-link dropdown-item",children:[f.jsx(wp,{alt:S,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(de,{children:f.jsx("hr",{className:"dropdown-divider"})}),f.jsx(de,{children:f.jsxs("a",{href:"/auth/logout?callback=",className:"nav-link dropdown-item",children:[f.jsx(xp,{className:"icon logout"}),f.jsx("span",{id:"logout-label",className:"nav-text",children:n("navbar.disconnect")})]})})]})]})})]})]})})})};Sy.displayName="Header";const D8=Sy;function by({children:e,className:t,...n}){const r=Z("container-fluid",t);return f.jsx("main",{className:r,...n,children:e})}by.displayName="Main";const Ey=({children:e,...t})=>{const{theme:n}=Fd();return f.jsxs(f.Fragment,{children:[f.jsx(D8,{is1d:n==null?void 0:n.is1d,src:n==null?void 0:n.basePath}),f.jsx(by,{className:Z("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(W4,{toastOptions:{position:"top-right"}})]})};Ey.displayName="Layout";const F8=Ey,$8=function(){return null};var Cy,xm=Ms;Cy=xm.createRoot,xm.hydrateRoot;const Ft=document.querySelector("[data-ode-app]");let Ei;function Hs(){var e;if(Ei)return Ei;if(Ei={app:Eo.PORTAL,types:["folder"],filters:[],actions:[],trashActions:[],orders:[]},(e=Ft==null?void 0:Ft.dataset)!=null&&e.odeApp){const{odeApp:t}=Ft.dataset;try{const n=JSON.parse(t);Object.assign(Ei,n)}catch(n){console.error("[AppParams] could not parse app params from root data attributes:",Ft==null?void 0:Ft.dataset,n)}}else console.error("[AppParams] could not found app params from root data attributes:",Ft==null?void 0:Ft.dataset);return Ei}const Sm=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))}},i=()=>t,a={setState:r,getState:i,subscribe:l=>(n.add(l),()=>n.delete(l)),destroy:()=>{n.clear()}};return t=e(r,i,a),a},z8=e=>e?Sm(e):Sm;var ky={exports:{}},Oy={};/**
|
|
243
227
|
* @license React
|
|
244
228
|
* use-sync-external-store-shim/with-selector.production.min.js
|
|
245
229
|
*
|
|
@@ -247,4 +231,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
247
231
|
*
|
|
248
232
|
* This source code is licensed under the MIT license found in the
|
|
249
233
|
* LICENSE file in the root directory of this source tree.
|
|
250
|
-
*/var h=reactExports,n=shimExports;function p(_e,et){return _e===et&&(_e!==0||1/_e===1/et)||_e!==_e&&et!==et}var q=typeof Object.is=="function"?Object.is:p,r=n.useSyncExternalStore,t=h.useRef,u=h.useEffect,v=h.useMemo,w=h.useDebugValue;withSelector_production_min.useSyncExternalStoreWithSelector=function(_e,et,tt,rt,nt){var st=t(null);if(st.current===null){var ot={hasValue:!1,value:null};st.current=ot}else ot=st.current;st=v(function(){function ut(ht){if(!lt){if(lt=!0,dt=ht,ht=rt(ht),nt!==void 0&&ot.hasValue){var mt=ot.value;if(nt(mt,ht))return ct=mt}return ct=ht}if(mt=ct,q(dt,ht))return mt;var vt=rt(ht);return nt!==void 0&&nt(mt,vt)?mt:(dt=ht,ct=vt)}var lt=!1,dt,ct,ft=tt===void 0?null:tt;return[function(){return ut(et())},ft===null?void 0:function(){return ut(ft())}]},[et,tt,rt,nt]);var at=r(_e,st[0],st[1]);return u(function(){ot.hasValue=!0,ot.value=at},[at]),w(at),at};withSelector.exports=withSelector_production_min;var withSelectorExports=withSelector.exports;const useSyncExternalStoreExports=getDefaultExportFromCjs$1(withSelectorExports),{useSyncExternalStoreWithSelector}=useSyncExternalStoreExports;function useStore(_e,et=_e.getState,tt){const rt=useSyncExternalStoreWithSelector(_e.subscribe,_e.getState,_e.getServerState||_e.getState,et,tt);return reactExports.useDebugValue(rt),rt}const createImpl=_e=>{({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&typeof _e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const et=typeof _e=="function"?createStore(_e):_e,tt=(rt,nt)=>useStore(et,rt,nt);return Object.assign(tt,et),tt},create=_e=>_e?createImpl(_e):createImpl;function getAncestors(_e,et){var rt;const tt=findNodeById(_e,et);return(rt=tt==null?void 0:tt.folder)!=null&&rt.ancestors?[...(tt==null?void 0:tt.folder.ancestors)||[],_e]:_e===FOLDER.BIN?[FOLDER.BIN]:[FOLDER.DEFAULT]}function hasChildren(_e,et){return et.id===_e&&et.children?et.children.length>0:et.children?et.children.some(tt=>hasChildren(et.id,tt)):!1}const{app,types,filters,orders}=getAppParams(),useStoreContext=create()((_e,et)=>({filters,orders,searchParams:{app,types,filters:{folder:"default"},orders:{updatedAt:"desc"},pagination:{startIdx:0,pageSize:48,maxIdx:0},trashed:!1},treeData:{id:FOLDER.DEFAULT,name:"Mes blogs",section:!0,children:[]},selectedNodesIds:["default"],currentFolder:{id:"default"},selectedFolders:[],selectedResources:[],folderIds:[],resourceIds:[],resourceIsTrash:!1,resourceActionDisable:!1,updaters:{setTreeData:tt=>_e(()=>({treeData:tt})),setSearchParams:tt=>_e(()=>({searchParams:tt})),setSelectedFolders:tt=>_e(()=>({selectedFolders:tt})),setSelectedResources:tt=>_e(()=>({selectedResources:tt})),setFolderIds:tt=>_e(()=>({folderIds:tt})),setResourceIds:tt=>_e(()=>({resourceIds:tt})),setResourceIsTrash:tt=>_e(()=>({resourceIsTrash:tt})),setResourceActionDisable:tt=>_e(()=>({resourceActionDisable:tt})),setCurrentFolder:tt=>_e(()=>({currentFolder:tt})),clearSelectedItems:()=>_e(()=>({selectedFolders:[],selectedResources:[]})),clearSelectedIds:()=>_e(()=>({resourceIds:[],folderIds:[]})),openResource:tt=>{try{const{searchParams:rt}=et();goToResource({searchParams:rt,assetId:tt.assetId})}catch(rt){console.error("explorer open failed: ",rt)}},createResource:()=>{try{const{searchParams:tt,currentFolder:rt}=et(),nt=parseInt((rt==null?void 0:rt.id)||"default"),st=isNaN(nt)?void 0:nt;createResource({searchParams:tt,safeFolderId:st})}catch(tt){console.error("explorer create failed: ",tt)}},printSelectedResource:()=>{try{const{searchParams:tt,selectedResources:rt,resourceIds:nt}=et();if(rt.length!==1)throw new Error("Cannot open more than 1 resource");const st=rt.find(ot=>ot.id===nt[0]);printResource({searchParams:tt,assetId:st.assetId})}catch(tt){console.error("explorer print failed: ",tt)}},publishApi:async(tt,rt)=>{const{searchParams:nt}=et();return await publishResource({searchParams:nt,params:rt})},openFolder:({folderId:tt,folder:rt})=>{const{searchParams:nt,treeData:st}=et(),ot=nt.filters.folder,at=getAncestors(tt,st),ut=arrayUnique([...at,tt]);ot!==tt&&_e(lt=>({...lt,folderIds:[],resourceIds:[],selectedNodesIds:ut,currentFolder:rt||{id:tt},searchParams:{...nt,filters:{...nt.filters,folder:tt},trashed:tt===FOLDER.BIN}}))},foldTreeItem:()=>_e(tt=>({...tt,status:"fold"})),unfoldTreeItem:async(tt,rt)=>{const{treeData:nt,searchParams:st}=et();if(_e(ot=>({...ot,status:"unfold"})),!hasChildren(tt,nt)){await rt.prefetchInfiniteQuery({queryKey:["prefetchContext",{folderId:tt,trashed:!1}],queryFn:async()=>await searchContext({...st,filters:{...st.filters,folder:tt}})});const ot=rt.getQueryData(["prefetchContext",{folderId:tt,trashed:!1}]);_e(at=>{var ut;return{...at,treeData:wrapTreeNode(nt,(ut=ot==null?void 0:ot.pages[0])==null?void 0:ut.folders,tt||FOLDER.DEFAULT)}})}},selectTreeItem:tt=>{const{treeData:rt}=et(),{openFolder:nt}=et().updaters,st=findNodeById(tt,rt);useScrollToTop()(),_e(at=>({...at,selectedResources:[]})),nt({folder:st,folderId:tt})},gotoPreviousFolder:()=>{const{selectedNodesIds:tt,treeData:rt}=et(),{openFolder:nt}=et().updaters,st=tt.length;if(st<2)return;const ot=findNodeById(tt[st-2],rt);nt({folder:ot,folderId:(ot==null?void 0:ot.id)||FOLDER.DEFAULT})},goToTrash:()=>_e(tt=>({...tt,selectedNodesIds:[],selectedResources:[],resourceIds:[],folderIds:[],searchParams:{...tt.searchParams,filters:{folder:FOLDER.BIN},trashed:!0},currentFolder:{id:FOLDER.BIN}}))}})),useSearchParams=()=>useStoreContext(_e=>_e.searchParams),useSelectedNodesIds=()=>useStoreContext(_e=>_e.selectedNodesIds),useTreeData=()=>useStoreContext(_e=>_e.treeData),useSelectedFolders=()=>useStoreContext(_e=>_e.selectedFolders),useSelectedResources=()=>useStoreContext(_e=>_e.selectedResources),useFolderIds=()=>useStoreContext(_e=>_e.folderIds),useResourceIds=()=>useStoreContext(_e=>_e.resourceIds),useCurrentFolder=()=>useStoreContext(_e=>_e.currentFolder),useStoreActions=()=>useStoreContext(_e=>_e.updaters),useIsTrash=()=>{const _e=useCurrentFolder();return(_e==null?void 0:_e.id)===FOLDER.BIN},useResourceIsTrash=()=>useStoreContext(_e=>_e.resourceIsTrash),useResourceActionDisable=()=>useStoreContext(_e=>_e.resourceActionDisable),useIsRoot=()=>{const _e=useCurrentFolder();return(_e==null?void 0:_e.id)==="default"},useHasSelectedNodes=()=>useSelectedNodesIds().length>1,{actions}=getAppParams(),useActions=()=>useQuery({queryKey:["actions"],queryFn:async()=>{const _e=actions.map(tt=>tt.workflow);return await sessionHasWorkflowRights(_e)},select:_e=>actions.map(et=>({...et,available:_e[et.workflow]}))}),useSearchContext=()=>{const{appCode:_e}=useOdeClient(),{t:et}=useTranslation(),tt=useQueryClient(),rt=useSearchParams(),nt=useCurrentFolder(),st=useTreeData(),{setTreeData:ot,setSearchParams:at}=useStoreActions(),ut=["context",{folderId:rt.filters.folder,trashed:rt.trashed}];return useInfiniteQuery({queryKey:ut,queryFn:async({pageParam:lt=0})=>await searchContext({...rt,pagination:{...rt.pagination,startIdx:lt}}),onSuccess:async lt=>{var ct,ft;await tt.cancelQueries({queryKey:ut});const dt=(ct=lt==null?void 0:lt.pages[0])==null?void 0:ct.folders;(nt==null?void 0:nt.id)==="default"?ot({id:FOLDER.DEFAULT,section:!0,children:dt.map(ht=>new TreeNodeFolderWrapper(ht)),name:et("explorer.filters.mine",{ns:_e})}):ot(wrapTreeNode(st,dt,rt.filters.folder||FOLDER.DEFAULT)),at({...rt,pagination:(ft=lt==null?void 0:lt.pages[(lt==null?void 0:lt.pages.length)-1])==null?void 0:ft.pagination})},getNextPageParam:lt=>lt.pagination.startIdx+lt.pagination.pageSize})},useTrash=()=>{const _e=useQueryClient(),et=useSearchParams(),tt=useTreeData(),rt=useFolderIds(),nt=useResourceIds(),{clearSelectedItems:st,clearSelectedIds:ot,setTreeData:at,setSearchParams:ut}=useStoreActions(),lt=["context",{folderId:et.filters.folder,trashed:et.trashed}];return useMutation({mutationFn:async()=>await trashAll({searchParams:et,folderIds:rt,resourceIds:nt}),onSuccess:async dt=>{if(await _e.cancelQueries({queryKey:lt}),_e.getQueryData(lt))return _e.setQueryData(lt,ft=>{var ht;if(ft){const mt={...ft,pages:ft==null?void 0:ft.pages.map(wt=>{var gt;return{...wt,folders:wt.folders.filter(yt=>!rt.includes(yt.id)),pagination:{...wt.pagination,maxIdx:((gt=wt==null?void 0:wt.pagination)==null?void 0:gt.maxIdx)-dt.resources.length},resources:wt.resources.filter(yt=>!nt.includes(yt.id))}})},vt=deleteNode(tt,{folders:rt});return at(vt),ut({...et,pagination:{...et.pagination,maxIdx:((ht=et.pagination)==null?void 0:ht.maxIdx)-dt.resources.length}}),mt}})},onSettled:()=>{st(),ot()}})},useRestore=()=>{const _e=useQueryClient(),et=useSearchParams(),tt=useFolderIds(),rt=useResourceIds(),{setFolderIds:nt,setResourceIds:st,setSelectedResources:ot,setSelectedFolders:at}=useStoreActions(),ut=["context",{folderId:et.filters.folder,trashed:et.trashed}];return useMutation({mutationFn:async()=>await restoreAll({searchParams:et,folderIds:tt,resourceIds:rt}),onSuccess:async()=>{if(await _e.cancelQueries({queryKey:ut}),_e.getQueryData(ut))return _e.setQueryData(ut,dt=>{if(dt)return{...dt,pages:dt==null?void 0:dt.pages.map(ct=>({...ct,folders:ct.folders.filter(ft=>!tt.includes(ft.id)),resources:ct.resources.filter(ft=>!rt.includes(ft.id))}))}})},onSettled:()=>{st([]),ot([]),nt([]),at([])}})},useDelete=()=>{const _e=useQueryClient(),et=useSearchParams(),tt=useFolderIds(),rt=useResourceIds(),{clearSelectedItems:nt,clearSelectedIds:st}=useStoreActions(),ot=["context",{folderId:et.filters.folder,trashed:et.trashed}];return useMutation({mutationFn:async()=>await deleteAll({searchParams:et,folderIds:tt,resourceIds:rt}),onSuccess:async()=>{if(await _e.cancelQueries({queryKey:ot}),_e.getQueryData(ot))return _e.setQueryData(ot,ut=>{if(ut)return{...ut,pages:ut==null?void 0:ut.pages.map(dt=>({...dt,folders:dt.folders.filter(ct=>!tt.includes(ct.id)),resources:dt.resources.filter(ct=>!rt.includes(ct.id))}))}})},onSettled:()=>{nt(),st()}})},useMoveItem=()=>{const _e=useQueryClient(),et=useSearchParams(),tt=useTreeData(),rt=useFolderIds(),nt=useResourceIds(),{clearSelectedIds:st,clearSelectedItems:ot,setTreeData:at,setSearchParams:ut}=useStoreActions(),lt=["context",{folderId:et.filters.folder,trashed:et.trashed}];return useMutation({mutationFn:async dt=>await moveToFolder({searchParams:et,folderId:dt,folderIds:rt,resourceIds:nt}),onSuccess:async(dt,ct)=>{if(_e.getQueryData(lt))return _e.setQueryData(lt,ht=>{var mt;if(ht){const vt=moveNode(tt,{destinationId:ct,folders:rt}),wt={...ht,pages:ht==null?void 0:ht.pages.map(gt=>{var yt;return{...gt,folders:gt.folders.filter(xt=>!rt.includes(xt.id)),pagination:{...gt.pagination,maxIdx:((yt=gt.pagination)==null?void 0:yt.maxIdx)-dt.resources.length},resources:gt.resources.filter(xt=>!nt.includes(xt.id))}})};return at(vt),ut({...et,pagination:{...et.pagination,maxIdx:((mt=et.pagination)==null?void 0:mt.maxIdx)-dt.resources.length}}),wt}})},onSettled:()=>{ot(),st()}})},useCreateFolder=()=>{const _e=useQueryClient(),et=useSearchParams(),tt=useTreeData(),{setTreeData:rt}=useStoreActions(),nt=["context",{folderId:et.filters.folder,trashed:et.trashed}];return useMutation({mutationFn:async({name:st,parentId:ot})=>await createFolder({searchParams:et,name:st,parentId:ot}),onSuccess:async(st,ot)=>{await _e.cancelQueries({queryKey:nt});const at=_e.getQueryData(nt),ut={...st,parentId:ot.parentId,children:[],rights:[`creator:${st==null?void 0:st.creator_id}`]};if(at)return _e.setQueryData(nt,lt=>{if(lt){const dt={...lt,pages:lt==null?void 0:lt.pages.map(ft=>({...ft,folders:[...ft.folders,ut]}))},ct=addNode(tt,{parentId:ot.parentId,newFolder:ut});return rt(ct),dt}})},onSettled:async()=>await _e.cancelQueries({queryKey:nt})})},useUpdatefolder=()=>{const _e=useQueryClient(),et=useSearchParams(),tt=useTreeData(),{setFolderIds:rt,setSelectedFolders:nt,setTreeData:st}=useStoreActions(),ot=["context",{folderId:et.filters.folder,trashed:et.trashed}];return useMutation({mutationFn:async({folderId:at,name:ut,parentId:lt})=>await updateFolder({searchParams:et,folderId:at,parentId:lt,name:ut}),onSuccess:async(at,ut)=>{if(await _e.cancelQueries({queryKey:ot}),_e.getQueryData(ot))return _e.setQueryData(ot,dt=>{if(dt){const ct={...dt,pages:dt==null?void 0:dt.pages.map(ht=>({...ht,folders:ht.folders.map(mt=>mt.id===at.id?{...at,parentId:ut.parentId,rights:mt.rights}:mt)}))},ft=updateNode(tt,{folderId:ut.folderId,newFolder:at});return st(ft),ct}})},onSettled:()=>{rt([]),nt([])}})},useShareResource=()=>{const _e=useQueryClient(),et=useSearchParams(),{setResourceIds:tt,setSelectedResources:rt}=useStoreActions(),nt=["context",{folderId:et.filters.folder,trashed:et.trashed}];return useMutation({mutationFn:async({entId:st,shares:ot})=>await shareResource({searchParams:et,entId:st,shares:ot}),onSuccess:async(st,ot)=>{if(await _e.cancelQueries({queryKey:nt}),_e.getQueryData(nt))return _e.setQueryData(nt,ut=>{if(ut)return{...ut,pages:ut==null?void 0:ut.pages.map(lt=>({...lt,resources:lt.resources.map(dt=>{if(dt.assetId===(ot==null?void 0:ot.entId)){let ct=[`creator:${dt.creatorId}`];return(ot==null?void 0:ot.shares.length)>=1&&(ct=[...ct,...ot.shares.flatMap(ft=>ft.actions.map(ht=>`${ft.type}:${ft.id}:${ht.id}`))]),{...dt,rights:ct}}else return dt})}))}})},onSettled:()=>{tt([]),rt([])}})},useUpdateResource=()=>{const _e=useQueryClient(),et=useSearchParams(),tt=["context",{folderId:et.filters.folder,trashed:et.trashed}];return useMutation({mutationFn:async rt=>await updateResource({searchParams:et,params:rt}),onSuccess:async(rt,nt)=>{if(await _e.cancelQueries({queryKey:tt}),_e.getQueryData(tt))return _e.setQueryData(tt,ot=>{if(ot)return{...ot,pages:ot==null?void 0:ot.pages.map(at=>({...at,resources:at.resources.map(ut=>{if(ut.assetId===(nt==null?void 0:nt.entId)){const{name:lt,thumbnail:dt,public:ct,description:ft,slug:ht,...mt}=nt;return{...ut,...mt,name:lt,thumbnail:dt,public:ct,description:ft,slug:ht}}else return ut})}))}})}})},{trashActions}=getAppParams();function useActionBar(){const[_e,et]=reactExports.useState(!1),[tt,rt]=reactExports.useState("void"),[nt,st]=reactExports.useState(),{t:ot}=useTranslation(),{hotToast:at}=useHotToast(Alert$1),ut=useCurrentFolder(),lt=useResourceIds(),dt=useSelectedResources(),ct=useSelectedFolders(),ft=useFolderIds(),ht=useIsTrash(),mt=useRestore(),vt=useResourceIsTrash(),{openResource:wt,createResource:gt,printSelectedResource:yt,openFolder:xt,clearSelectedItems:St,clearSelectedIds:bt}=useStoreActions(),{data:$t}=useActions();reactExports.useEffect(()=>{if(lt.length===0&&ft.length===0){et(!1);return}if(vt){et(!1);return}et(!0)},[lt,ft]);async function At(Ut){var Wt;switch((Wt=document.getElementById("root"))==null||Wt.setAttribute("aria-hidden","true"),st(Ut),Ut.id){case ACTION.OPEN:return lt.length>0?wt(dt[0]):xt({folder:ct[0],folderId:ct[0].id});case ACTION.CREATE:return gt();case ACTION.MOVE:return rt("move");case ACTION.PRINT:return yt();case ACTION.DELETE:return rt("delete");case ACTION.RESTORE:return await Pt();case ACTION.PUBLISH:return rt("publish");case ACTION.UPD_PROPS:case"edit":return Vt();case ACTION.SHARE:return rt("share");default:throw Error(`Unknown action: ${Ut.id}`)}}function Tt(Ut){const Wt=lt.length+ft.length,Ht=lt.length===1||ft.length===1,Gt=Wt===1,Yt=ft.length===0;switch(Ut.id){case ACTION.OPEN:return Gt;case ACTION.MANAGE:return Ht;case ACTION.PUBLISH:return Ht&&Yt;case ACTION.UPD_PROPS:return Ht&&Yt;case ACTION.SHARE:return Yt&&Ht;case ACTION.PRINT:return Ht&&Yt;case"edit":return Gt;default:return!0}}function Ft(){return!0}async function Pt(){try{if(ht)await mt.mutate(),at.success(ot("explorer.trash.toast"));else throw new Error("Cannot restore untrashed resources");Dt()}catch(Ut){console.error(Ut)}}function Dt(){var Ut;rt("void"),nt!=null&&nt.id&&((Ut=document.getElementById(nt==null?void 0:nt.id))==null||Ut.focus())}const Mt=Ut=>()=>{tt===Ut&&(Dt(),St(),bt())},It=Mt("move"),Et=Mt("move"),Rt=Mt("delete"),Ot=Mt("delete"),kt=Mt("publish"),Ct=Mt("publish"),jt=Mt("edit_folder"),Nt=Mt("edit_folder"),Bt=Mt("edit_resource"),Lt=Mt("edit_resource"),zt=Mt("share"),qt=Mt("share");function Vt(){lt&<.length>0?rt("edit_resource"):rt("edit_folder")}function Qt(Ut){return Ut.id==="edit"&&ft.length>0?"explorer.rename":`explorer.actions.${Ut.id}`}return{onRestore:Pt,actions:ht?trashActions:$t,selectedElement:[...dt,...ct],currentFolderId:ut==null?void 0:ut.id,overrideLabel:Qt,handleClick:At,isActivable:ht?Ft:Tt,isActionBarOpen:_e,isMoveModalOpen:tt==="move",onMoveCancel:It,onMoveSuccess:Et,isDeleteModalOpen:tt==="delete",onDeleteCancel:Ot,onDeleteSuccess:Rt,isPublishModalOpen:tt==="publish",onPublishCancel:Ct,onPublishSuccess:kt,isEditFolderOpen:tt==="edit_folder",onEditFolderCancel:Nt,onEditFolderSuccess:jt,isEditResourceOpen:tt==="edit_resource",onEditResourceCancel:Lt,onEditResourceSuccess:Bt,isShareResourceOpen:tt==="share",onShareResourceCancel:qt,onShareResourceSuccess:zt,onClearActionBar:Dt}}function useAccessControl({roles:_e,rights:et,action:tt}){const[rt,nt]=reactExports.useState(!1),{user:st}=useUser(),ot=useIsTrash();reactExports.useEffect(()=>{lt()},[_e,et]);const at=async function(dt){const ct=dt instanceof Array?dt:[dt];if(_e instanceof Array){const ft=await odeServices.rights().sessionHasAtLeastOneResourceRight(_e,ct);nt(ft)}else{const ft=await odeServices.rights().sessionHasResourceRight(_e,ct);nt(ft)}},ut=async function(dt){if(_e instanceof Array){const ct=await odeServices.rights().sessionHasAtLeastOneResourceRightForEachList(_e,dt);nt(ct)}else{const ct=await odeServices.rights().sessionHasResourceRightForEachList(_e,dt);nt(ct)}},lt=async function(){var dt,ct,ft;if(_e===void 0){nt(!0);return}if(ot&&((ct=(dt=et[0])==null?void 0:dt.trashedBy)!=null&&ct.includes(st==null?void 0:st.userId))&&tt==="restore"&&!((ft=et[0])!=null&&ft.trashed)){nt(!0);return}if(et instanceof Array)if(et.length>0)if(typeof et[0]=="string")await at(et);else{const ht=et.map(mt=>mt.rights);await ut(ht)}else nt(!1);else typeof et=="string"?await at(et):await at(et.rights)};return{visible:rt,refreshState:lt}}function AccessControl({resourceRights:_e,roleExpected:et,action:tt,children:rt,renderWhenForbidden:nt}){const{t:st}=useTranslation(),{overrideLabel:ot}=useActionBar(),{visible:at}=useAccessControl({roles:et,rights:_e,action:tt==null?void 0:tt.id}),{setResourceActionDisable:ut}=useStoreActions(),lt=useIsTrash();return at?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:rt}):nt?nt():lt&&!at?jsxRuntimeExports.jsx(Button$1,{type:"button",color:"primary",variant:"filled",onClick:()=>{ut(!0)},children:st(ot(tt))}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}const ShareResourceModal=reactExports.lazy(async()=>await __vitePreload(()=>import("./ShareResourceModal.js"),["ShareResourceModal.js","SelectList.js","Tooltip.js","usePopper.js"])),DeleteModal=reactExports.lazy(async()=>await __vitePreload(()=>import("./DeleteModal.js"),[])),MoveModal=reactExports.lazy(async()=>await __vitePreload(()=>import("./MoveModal.js"),[])),EditFolderModal=reactExports.lazy(async()=>await __vitePreload(()=>import("./EditFolderModal.js"),["EditFolderModal.js","index.esm.js"])),EditResourceModal=reactExports.lazy(async()=>await __vitePreload(()=>import("./EditResourceModal.js"),["EditResourceModal.js","ImagePicker.js","index.esm.js"])),PublishModal=reactExports.lazy(async()=>await __vitePreload(()=>import("./PublishModal.js"),["PublishModal.js","usePopper.js","SelectList.js","ImagePicker.js","index.esm.js"]));function ActionBarContainer(){const{t:_e}=useTranslation(),{actions:et,selectedElement:tt,isMoveModalOpen:rt,isDeleteModalOpen:nt,isPublishModalOpen:st,isActionBarOpen:ot,isEditFolderOpen:at,overrideLabel:ut,onEditFolderCancel:lt,onEditFolderSuccess:dt,isEditResourceOpen:ct,onEditResourceCancel:ft,onEditResourceSuccess:ht,isShareResourceOpen:mt,onShareResourceCancel:vt,onShareResourceSuccess:wt,onMoveCancel:gt,onMoveSuccess:yt,onDeleteCancel:xt,onDeleteSuccess:St,onPublishCancel:bt,onPublishSuccess:$t,isActivable:At,handleClick:Tt}=useActionBar(),Ft=useTransition(ot,{from:{opacity:0,transform:"translateY(100%)"},enter:{opacity:1,transform:"translateY(0)"},leave:{opacity:0,transform:"translateY(100%)"}});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Ft((Pt,Dt)=>Dt&&jsxRuntimeExports.jsx(it$1.div,{className:"position-fixed bottom-0 start-0 end-0 z-3",style:Pt,children:jsxRuntimeExports.jsx(ActionBar$1,{children:et==null?void 0:et.filter(Mt=>Mt.available&&Mt.target==="actionbar").map(Mt=>At(Mt)&&jsxRuntimeExports.jsx(AccessControl,{resourceRights:tt,roleExpected:Mt.right,action:Mt,children:jsxRuntimeExports.jsx(Button$1,{id:Mt.id,type:"button",color:"primary",variant:"filled",onClick:()=>{Tt(Mt)},children:_e(ut(Mt))},Mt.id)},Mt.id))})})),jsxRuntimeExports.jsxs(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx(LoadingScreen$1,{}),children:[rt&&jsxRuntimeExports.jsx(MoveModal,{isOpen:rt,onCancel:gt,onSuccess:yt}),nt&&jsxRuntimeExports.jsx(DeleteModal,{isOpen:nt,onCancel:xt,onSuccess:St}),st&&jsxRuntimeExports.jsx(PublishModal,{isOpen:st,onCancel:bt,onSuccess:$t}),at&&jsxRuntimeExports.jsx(EditFolderModal,{edit:!0,isOpen:at,onCancel:lt,onSuccess:dt}),ct&&jsxRuntimeExports.jsx(EditResourceModal,{edit:!0,isOpen:ct,onCancel:ft,onSuccess:ht}),mt&&jsxRuntimeExports.jsx(ShareResourceModal,{isOpen:mt,onCancel:vt,onSuccess:wt})]})]})}const AppHeader=({children:_e})=>jsxRuntimeExports.jsx("div",{className:"d-flex justify-content-between p-16 mx-n16 border-bottom",children:_e}),EmptyScreenApp=reactExports.lazy(async()=>await __vitePreload(()=>import("./EmptyScreenApp.js"),["EmptyScreenApp.js","EmptyScreen.js"])),EmptyScreenNoContentInFolder=reactExports.lazy(async()=>await __vitePreload(()=>import("./EmptyScreenNoContentInFolder.js"),["EmptyScreenNoContentInFolder.js","EmptyScreen.js"])),EmptyScreenTrash=reactExports.lazy(async()=>await __vitePreload(()=>import("./EmptyScreenTrash.js"),["EmptyScreenTrash.js","EmptyScreen.js"])),FoldersList=reactExports.lazy(async()=>await __vitePreload(()=>import("./FoldersList.js"),["FoldersList.js","Card.js","Tooltip.js","usePopper.js"])),ResourcesList=reactExports.lazy(async()=>await __vitePreload(()=>import("./ResourcesList.js"),["ResourcesList.js","Card.js","Tooltip.js","usePopper.js"])),List=()=>{const _e=useIsRoot(),et=useIsTrash(),tt=useHasSelectedNodes(),{data:rt,isLoading:nt}=useSearchContext(),st=(rt==null?void 0:rt.pages[0].folders.length)===0,ot=(rt==null?void 0:rt.pages[0].resources.length)===0,at=st&&ot;return jsxRuntimeExports.jsxs(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx(LoadingScreen$1,{}),children:[!at&&!nt&&jsxRuntimeExports.jsxs(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx(LoadingScreen$1,{}),children:[jsxRuntimeExports.jsx(FoldersList,{}),jsxRuntimeExports.jsx(ResourcesList,{})]}),_e&&at&&jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx(LoadingScreen$1,{}),children:jsxRuntimeExports.jsx(EmptyScreenApp,{})}),tt&&at&&!et&&jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx(LoadingScreen$1,{}),children:jsxRuntimeExports.jsx(EmptyScreenNoContentInFolder,{})}),et&&(rt==null?void 0:rt.pages[0].resources.length)===0&&jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx(LoadingScreen$1,{}),children:jsxRuntimeExports.jsx(EmptyScreenTrash,{})})]})};var dayjs_min={exports:{}};(function(_e,et){(function(tt,rt){_e.exports=rt()})(commonjsGlobal,function(){var tt=1e3,rt=6e4,nt=36e5,st="millisecond",ot="second",at="minute",ut="hour",lt="day",dt="week",ct="month",ft="quarter",ht="year",mt="date",vt="Invalid Date",wt=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,gt=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,yt={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(It){var Et=["th","st","nd","rd"],Rt=It%100;return"["+It+(Et[(Rt-20)%10]||Et[Rt]||Et[0])+"]"}},xt=function(It,Et,Rt){var Ot=String(It);return!Ot||Ot.length>=Et?It:""+Array(Et+1-Ot.length).join(Rt)+It},St={s:xt,z:function(It){var Et=-It.utcOffset(),Rt=Math.abs(Et),Ot=Math.floor(Rt/60),kt=Rt%60;return(Et<=0?"+":"-")+xt(Ot,2,"0")+":"+xt(kt,2,"0")},m:function It(Et,Rt){if(Et.date()<Rt.date())return-It(Rt,Et);var Ot=12*(Rt.year()-Et.year())+(Rt.month()-Et.month()),kt=Et.clone().add(Ot,ct),Ct=Rt-kt<0,jt=Et.clone().add(Ot+(Ct?-1:1),ct);return+(-(Ot+(Rt-kt)/(Ct?kt-jt:jt-kt))||0)},a:function(It){return It<0?Math.ceil(It)||0:Math.floor(It)},p:function(It){return{M:ct,y:ht,w:dt,d:lt,D:mt,h:ut,m:at,s:ot,ms:st,Q:ft}[It]||String(It||"").toLowerCase().replace(/s$/,"")},u:function(It){return It===void 0}},bt="en",$t={};$t[bt]=yt;var At=function(It){return It instanceof Dt},Tt=function It(Et,Rt,Ot){var kt;if(!Et)return bt;if(typeof Et=="string"){var Ct=Et.toLowerCase();$t[Ct]&&(kt=Ct),Rt&&($t[Ct]=Rt,kt=Ct);var jt=Et.split("-");if(!kt&&jt.length>1)return It(jt[0])}else{var Nt=Et.name;$t[Nt]=Et,kt=Nt}return!Ot&&kt&&(bt=kt),kt||!Ot&&bt},Ft=function(It,Et){if(At(It))return It.clone();var Rt=typeof Et=="object"?Et:{};return Rt.date=It,Rt.args=arguments,new Dt(Rt)},Pt=St;Pt.l=Tt,Pt.i=At,Pt.w=function(It,Et){return Ft(It,{locale:Et.$L,utc:Et.$u,x:Et.$x,$offset:Et.$offset})};var Dt=function(){function It(Rt){this.$L=Tt(Rt.locale,null,!0),this.parse(Rt)}var Et=It.prototype;return Et.parse=function(Rt){this.$d=function(Ot){var kt=Ot.date,Ct=Ot.utc;if(kt===null)return new Date(NaN);if(Pt.u(kt))return new Date;if(kt instanceof Date)return new Date(kt);if(typeof kt=="string"&&!/Z$/i.test(kt)){var jt=kt.match(wt);if(jt){var Nt=jt[2]-1||0,Bt=(jt[7]||"0").substring(0,3);return Ct?new Date(Date.UTC(jt[1],Nt,jt[3]||1,jt[4]||0,jt[5]||0,jt[6]||0,Bt)):new Date(jt[1],Nt,jt[3]||1,jt[4]||0,jt[5]||0,jt[6]||0,Bt)}}return new Date(kt)}(Rt),this.$x=Rt.x||{},this.init()},Et.init=function(){var Rt=this.$d;this.$y=Rt.getFullYear(),this.$M=Rt.getMonth(),this.$D=Rt.getDate(),this.$W=Rt.getDay(),this.$H=Rt.getHours(),this.$m=Rt.getMinutes(),this.$s=Rt.getSeconds(),this.$ms=Rt.getMilliseconds()},Et.$utils=function(){return Pt},Et.isValid=function(){return this.$d.toString()!==vt},Et.isSame=function(Rt,Ot){var kt=Ft(Rt);return this.startOf(Ot)<=kt&&kt<=this.endOf(Ot)},Et.isAfter=function(Rt,Ot){return Ft(Rt)<this.startOf(Ot)},Et.isBefore=function(Rt,Ot){return this.endOf(Ot)<Ft(Rt)},Et.$g=function(Rt,Ot,kt){return Pt.u(Rt)?this[Ot]:this.set(kt,Rt)},Et.unix=function(){return Math.floor(this.valueOf()/1e3)},Et.valueOf=function(){return this.$d.getTime()},Et.startOf=function(Rt,Ot){var kt=this,Ct=!!Pt.u(Ot)||Ot,jt=Pt.p(Rt),Nt=function(Wt,Ht){var Gt=Pt.w(kt.$u?Date.UTC(kt.$y,Ht,Wt):new Date(kt.$y,Ht,Wt),kt);return Ct?Gt:Gt.endOf(lt)},Bt=function(Wt,Ht){return Pt.w(kt.toDate()[Wt].apply(kt.toDate("s"),(Ct?[0,0,0,0]:[23,59,59,999]).slice(Ht)),kt)},Lt=this.$W,zt=this.$M,qt=this.$D,Vt="set"+(this.$u?"UTC":"");switch(jt){case ht:return Ct?Nt(1,0):Nt(31,11);case ct:return Ct?Nt(1,zt):Nt(0,zt+1);case dt:var Qt=this.$locale().weekStart||0,Ut=(Lt<Qt?Lt+7:Lt)-Qt;return Nt(Ct?qt-Ut:qt+(6-Ut),zt);case lt:case mt:return Bt(Vt+"Hours",0);case ut:return Bt(Vt+"Minutes",1);case at:return Bt(Vt+"Seconds",2);case ot:return Bt(Vt+"Milliseconds",3);default:return this.clone()}},Et.endOf=function(Rt){return this.startOf(Rt,!1)},Et.$set=function(Rt,Ot){var kt,Ct=Pt.p(Rt),jt="set"+(this.$u?"UTC":""),Nt=(kt={},kt[lt]=jt+"Date",kt[mt]=jt+"Date",kt[ct]=jt+"Month",kt[ht]=jt+"FullYear",kt[ut]=jt+"Hours",kt[at]=jt+"Minutes",kt[ot]=jt+"Seconds",kt[st]=jt+"Milliseconds",kt)[Ct],Bt=Ct===lt?this.$D+(Ot-this.$W):Ot;if(Ct===ct||Ct===ht){var Lt=this.clone().set(mt,1);Lt.$d[Nt](Bt),Lt.init(),this.$d=Lt.set(mt,Math.min(this.$D,Lt.daysInMonth())).$d}else Nt&&this.$d[Nt](Bt);return this.init(),this},Et.set=function(Rt,Ot){return this.clone().$set(Rt,Ot)},Et.get=function(Rt){return this[Pt.p(Rt)]()},Et.add=function(Rt,Ot){var kt,Ct=this;Rt=Number(Rt);var jt=Pt.p(Ot),Nt=function(zt){var qt=Ft(Ct);return Pt.w(qt.date(qt.date()+Math.round(zt*Rt)),Ct)};if(jt===ct)return this.set(ct,this.$M+Rt);if(jt===ht)return this.set(ht,this.$y+Rt);if(jt===lt)return Nt(1);if(jt===dt)return Nt(7);var Bt=(kt={},kt[at]=rt,kt[ut]=nt,kt[ot]=tt,kt)[jt]||1,Lt=this.$d.getTime()+Rt*Bt;return Pt.w(Lt,this)},Et.subtract=function(Rt,Ot){return this.add(-1*Rt,Ot)},Et.format=function(Rt){var Ot=this,kt=this.$locale();if(!this.isValid())return kt.invalidDate||vt;var Ct=Rt||"YYYY-MM-DDTHH:mm:ssZ",jt=Pt.z(this),Nt=this.$H,Bt=this.$m,Lt=this.$M,zt=kt.weekdays,qt=kt.months,Vt=function(Ht,Gt,Yt,Xt){return Ht&&(Ht[Gt]||Ht(Ot,Ct))||Yt[Gt].slice(0,Xt)},Qt=function(Ht){return Pt.s(Nt%12||12,Ht,"0")},Ut=kt.meridiem||function(Ht,Gt,Yt){var Xt=Ht<12?"AM":"PM";return Yt?Xt.toLowerCase():Xt},Wt={YY:String(this.$y).slice(-2),YYYY:Pt.s(this.$y,4,"0"),M:Lt+1,MM:Pt.s(Lt+1,2,"0"),MMM:Vt(kt.monthsShort,Lt,qt,3),MMMM:Vt(qt,Lt),D:this.$D,DD:Pt.s(this.$D,2,"0"),d:String(this.$W),dd:Vt(kt.weekdaysMin,this.$W,zt,2),ddd:Vt(kt.weekdaysShort,this.$W,zt,3),dddd:zt[this.$W],H:String(Nt),HH:Pt.s(Nt,2,"0"),h:Qt(1),hh:Qt(2),a:Ut(Nt,Bt,!0),A:Ut(Nt,Bt,!1),m:String(Bt),mm:Pt.s(Bt,2,"0"),s:String(this.$s),ss:Pt.s(this.$s,2,"0"),SSS:Pt.s(this.$ms,3,"0"),Z:jt};return Ct.replace(gt,function(Ht,Gt){return Gt||Wt[Ht]||jt.replace(":","")})},Et.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Et.diff=function(Rt,Ot,kt){var Ct,jt=Pt.p(Ot),Nt=Ft(Rt),Bt=(Nt.utcOffset()-this.utcOffset())*rt,Lt=this-Nt,zt=Pt.m(this,Nt);return zt=(Ct={},Ct[ht]=zt/12,Ct[ct]=zt,Ct[ft]=zt/3,Ct[dt]=(Lt-Bt)/6048e5,Ct[lt]=(Lt-Bt)/864e5,Ct[ut]=Lt/nt,Ct[at]=Lt/rt,Ct[ot]=Lt/tt,Ct)[jt]||Lt,kt?zt:Pt.a(zt)},Et.daysInMonth=function(){return this.endOf(ct).$D},Et.$locale=function(){return $t[this.$L]},Et.locale=function(Rt,Ot){if(!Rt)return this.$L;var kt=this.clone(),Ct=Tt(Rt,Ot,!0);return Ct&&(kt.$L=Ct),kt},Et.clone=function(){return Pt.w(this.$d,this)},Et.toDate=function(){return new Date(this.valueOf())},Et.toJSON=function(){return this.isValid()?this.toISOString():null},Et.toISOString=function(){return this.$d.toISOString()},Et.toString=function(){return this.$d.toUTCString()},It}(),Mt=Dt.prototype;return Ft.prototype=Mt,[["$ms",st],["$s",ot],["$m",at],["$H",ut],["$W",lt],["$M",ct],["$y",ht],["$D",mt]].forEach(function(It){Mt[It[1]]=function(Et){return this.$g(Et,It[0],It[1])}}),Ft.extend=function(It,Et){return It.$i||(It(Et,Dt,Ft),It.$i=!0),Ft},Ft.locale=Tt,Ft.isDayjs=At,Ft.unix=function(It){return Ft(1e3*It)},Ft.en=$t[bt],Ft.Ls=$t,Ft.p={},Ft})})(dayjs_min);var dayjs_minExports=dayjs_min.exports;const dayjs=getDefaultExportFromCjs$1(dayjs_minExports);var relativeTime$1={exports:{}};(function(_e,et){(function(tt,rt){_e.exports=rt()})(commonjsGlobal,function(){return function(tt,rt,nt){tt=tt||{};var st=rt.prototype,ot={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function at(lt,dt,ct,ft){return st.fromToBase(lt,dt,ct,ft)}nt.en.relativeTime=ot,st.fromToBase=function(lt,dt,ct,ft,ht){for(var mt,vt,wt,gt=ct.$locale().relativeTime||ot,yt=tt.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],xt=yt.length,St=0;St<xt;St+=1){var bt=yt[St];bt.d&&(mt=ft?nt(lt).diff(ct,bt.d,!0):ct.diff(lt,bt.d,!0));var $t=(tt.rounding||Math.round)(Math.abs(mt));if(wt=mt>0,$t<=bt.r||!bt.r){$t<=1&&St>0&&(bt=yt[St-1]);var At=gt[bt.l];ht&&($t=ht(""+$t)),vt=typeof At=="string"?At.replace("%d",$t):At($t,dt,bt.l,wt);break}}if(dt)return vt;var Tt=wt?gt.future:gt.past;return typeof Tt=="function"?Tt(vt):Tt.replace("%s",vt)},st.to=function(lt,dt){return at(lt,dt,this,!0)},st.from=function(lt,dt){return at(lt,dt,this)};var ut=function(lt){return lt.$u?nt.utc():nt()};st.toNow=function(lt){return this.to(ut(this),lt)},st.fromNow=function(lt){return this.from(ut(this),lt)}}})})(relativeTime$1);var relativeTimeExports=relativeTime$1.exports;const relativeTime=getDefaultExportFromCjs$1(relativeTimeExports);var de={exports:{}};(function(_e,et){(function(tt,rt){_e.exports=rt(dayjs_minExports)})(commonjsGlobal,function(tt){function rt(ut){return ut&&typeof ut=="object"&&"default"in ut?ut:{default:ut}}var nt=rt(tt),st={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function ot(ut,lt,dt){var ct=st[dt];return Array.isArray(ct)&&(ct=ct[lt?0:1]),ct.replace("%d",ut)}var at={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(ut){return ut+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:ot,m:ot,mm:ot,h:ot,hh:ot,d:ot,dd:ot,M:ot,MM:ot,y:ot,yy:ot}};return nt.default.locale(at,null,!0),at})})(de);var es={exports:{}};(function(_e,et){(function(tt,rt){_e.exports=rt(dayjs_minExports)})(commonjsGlobal,function(tt){function rt(ot){return ot&&typeof ot=="object"&&"default"in ot?ot:{default:ot}}var nt=rt(tt),st={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(ot){return ot+"º"}};return nt.default.locale(st,null,!0),st})})(es);var pt={exports:{}};(function(_e,et){(function(tt,rt){_e.exports=rt(dayjs_minExports)})(commonjsGlobal,function(tt){function rt(ot){return ot&&typeof ot=="object"&&"default"in ot?ot:{default:ot}}var nt=rt(tt),st={name:"pt",weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sab".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sa".split("_"),months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(ot){return ot+"º"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},relativeTime:{future:"em %s",past:"há %s",s:"alguns segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"}};return nt.default.locale(st,null,!0),st})})(pt);var fr={exports:{}};(function(_e,et){(function(tt,rt){_e.exports=rt(dayjs_minExports)})(commonjsGlobal,function(tt){function rt(ot){return ot&&typeof ot=="object"&&"default"in ot?ot:{default:ot}}var nt=rt(tt),st={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(ot){return""+ot+(ot===1?"er":"")}};return nt.default.locale(st,null,!0),st})})(fr);var it={exports:{}};(function(_e,et){(function(tt,rt){_e.exports=rt(dayjs_minExports)})(commonjsGlobal,function(tt){function rt(ot){return ot&&typeof ot=="object"&&"default"in ot?ot:{default:ot}}var nt=rt(tt),st={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un' ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(ot){return ot+"º"}};return nt.default.locale(st,null,!0),st})})(it);dayjs.extend(relativeTime);function capitalizeFirstLetter(_e){return _e.charAt(0).toUpperCase()+_e.slice(1)}const useLibraryUrl=()=>{var at;const{user:_e}=useOdeClient(),et=capitalizeFirstLetter(getAppParams().app),tt=(at=_e.apps.find(ut=>ut.isExternal&&ut.address.includes("library")&&ut.name.includes("library")))==null?void 0:at.address.split("?"),rt=tt==null?void 0:tt[0],nt=tt==null?void 0:tt[1],st=`application%5B0%5D=${et}&page=1&sort_field=views&sort_order=desc`;return{libraryUrl:`${rt}search/?${nt}&${st}`}};function ActionResourceDisableModal({isOpen:_e,onCancel:et=()=>({})}){const{t:tt}=useTranslation();return reactDomExports.createPortal(jsxRuntimeExports.jsxs(Modal$1,{isOpen:_e,onModalClose:et,id:"trash_action_disable_resource",children:[jsxRuntimeExports.jsx(Modal$1.Header,{onModalClose:()=>et(),children:tt("explorer.trash.action.modal.title")}),jsxRuntimeExports.jsx(Modal$1.Body,{children:jsxRuntimeExports.jsx("p",{className:"body",children:tt("explorer.trash.action.modal.text")})}),jsxRuntimeExports.jsx(Modal$1.Footer,{children:jsxRuntimeExports.jsx(Button$1,{color:"primary",onClick:et,type:"button",variant:"outline",children:tt("close")})})]}),document.getElementById("portal"))}const TrashButton=({id:_e,selected:et,onSelect:tt})=>{const{t:rt}=useTranslation();return jsxRuntimeExports.jsx("div",{className:"treeview",children:jsxRuntimeExports.jsx("ul",{role:"tree",className:"m-0 p-0",children:jsxRuntimeExports.jsx("li",{id:_e,role:"treeitem","aria-selected":et,children:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("div",{className:"action-container",children:jsxRuntimeExports.jsx("div",{onClick:tt,role:"button",tabIndex:0,children:jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center gap-8 py-8 ps-24",children:[jsxRuntimeExports.jsx(SvgDelete$1,{width:"20",height:"20"}),jsxRuntimeExports.jsx("span",{children:rt("explorer.tree.trash")})]})})})})})})})},CreateModal=reactExports.lazy(async()=>await __vitePreload(()=>import("./EditFolderModal.js"),["EditFolderModal.js","index.esm.js"])),TreeViewContainer=()=>{const _e=useQueryClient(),{t:et}=useTranslation(),[tt,rt]=useToggle(),nt=useTreeData(),st=useIsTrash(),ot=useSelectedNodesIds(),{goToTrash:at,selectTreeItem:ut,unfoldTreeItem:lt,foldTreeItem:dt}=useStoreActions(),ct=async ft=>{await lt(ft,_e)};return nt?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(TreeView$1,{data:nt,selectedNodesIds:ot,onTreeItemSelect:ut,onTreeItemFold:dt,onTreeItemUnfold:ct}),jsxRuntimeExports.jsx(TrashButton,{id:FOLDER.BIN,selected:st,onSelect:at}),jsxRuntimeExports.jsx("div",{className:"d-grid my-16",children:jsxRuntimeExports.jsx(Button$1,{disabled:st,type:"button",color:"primary",variant:"outline",leftIcon:jsxRuntimeExports.jsx(SvgPlus$1,{}),onClick:rt,children:et("explorer.folder.new")})}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx(LoadingScreen$1,{}),children:tt&&jsxRuntimeExports.jsx(CreateModal,{edit:!1,isOpen:tt,onSuccess:rt,onCancel:rt})})]}):null};function Breadcrumb(){const{appCode:_e}=useOdeClient(),{t:et}=useTranslation(["common",_e]),tt=useSelectedNodesIds(),rt=useIsTrash(),nt=useCurrentFolder(),{gotoPreviousFolder:st}=useStoreActions(),ot=et("explorer.tree.trash"),at=et("explorer.filters.mine",{ns:_e}),ut=(nt==null?void 0:nt.name)||at;return jsxRuntimeExports.jsx("div",{className:"py-16",children:tt.length>1&&!rt?jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center gap-8",children:[jsxRuntimeExports.jsx(IconButton$1,{icon:jsxRuntimeExports.jsx(SvgArrowLeft$1,{}),variant:"ghost",color:"tertiary","aria-label":et("back"),className:"ms-n16",onClick:st}),jsxRuntimeExports.jsx("p",{className:"body py-8 text-truncate",children:jsxRuntimeExports.jsx("strong",{children:ut})})]}):jsxRuntimeExports.jsx("h2",{className:"body py-8 fw-bold",children:rt?ot:at})})}const useActionDisableModal=()=>{const _e=useResourceActionDisable(),{clearSelectedIds:et,setResourceActionDisable:tt,clearSelectedItems:rt}=useStoreActions();return{isActionDisableModalOpen:_e,onActionDisableCancel:()=>{et(),rt(),tt(!1)}}},useOnboardingModal=()=>{const[_e,et]=reactExports.useState(!1),[tt,rt]=reactExports.useState(!0);return reactExports.useEffect(()=>{(async()=>{const st=await getOnboardingTrash();if(st){et(JSON.parse(st==null?void 0:st.showOnboardingTrash));return}et(!0)})()},[]),{isOnboardingTrash:_e,isOpen:tt,handleSavePreference:async()=>{await saveOnboardingTrash({onSuccess:()=>rt(!1)})},setIsOpen:rt}},useTrashModal=()=>{const _e=useResourceIsTrash(),{clearSelectedIds:et,setResourceIsTrash:tt,clearSelectedItems:rt}=useStoreActions();return{isTrashedModalOpen:_e,onTrashedCancel:()=>{et(),rt(),tt(!1)}}},isActionAvailable=({workflow:_e,actions:et})=>{const tt=et==null?void 0:et.filter(rt=>rt.id===_e&&rt.available);return tt&&tt.length>0},OnboardingTrash=reactExports.lazy(async()=>await __vitePreload(()=>import("./OnboardingTrash.js"),[])),AppAction=reactExports.lazy(async()=>await __vitePreload(()=>import("./AppAction.js"),[])),Library=reactExports.lazy(async()=>await __vitePreload(()=>import("./Library.js"),[])),TrashedResourceModal=reactExports.lazy(async()=>await __vitePreload(()=>import("./TrashedResourceModal.js"),[]));function Explorer(){const{currentApp:_e,appCode:et}=useOdeClient();useTranslation();const{isOnboardingTrash:tt,isOpen:rt,setIsOpen:nt,handleSavePreference:st}=useOnboardingModal(),{data:ot}=useActions(),{isTrashedModalOpen:at,onTrashedCancel:ut}=useTrashModal(),{isActionDisableModalOpen:lt,onActionDisableCancel:dt}=useActionDisableModal();useXitiTrackPageLoad();const ct=ot==null?void 0:ot.find(ht=>ht.id==="publish"),{libraryUrl:ft}=useLibraryUrl();return console.log({appCode:et}),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(AppHeader,{children:[jsxRuntimeExports.jsxs(AppCard$1,{app:_e,isHeading:!0,headingStyle:"h3",level:"h1",children:[jsxRuntimeExports.jsx(AppIcon$1,{app:_e,size:"40"}),jsxRuntimeExports.jsx(AppCard$1.Name,{})]}),isActionAvailable({workflow:"create",actions:ot})&&jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx(LoadingScreen$1,{}),children:jsxRuntimeExports.jsx(AppAction,{})})]}),jsxRuntimeExports.jsxs(Grid,{className:"flex-grow-1",children:[jsxRuntimeExports.jsxs(Grid.Col,{sm:"3",lg:"2",xl:"3",className:"border-end pt-16 pe-16 d-none d-lg-block",as:"aside",children:[jsxRuntimeExports.jsx(TreeViewContainer,{}),(ct==null?void 0:ct.available)&&ft&&jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx(LoadingScreen$1,{}),children:jsxRuntimeExports.jsx(Library,{url:ft})})]}),jsxRuntimeExports.jsxs(Grid.Col,{sm:"4",md:"8",lg:"6",xl:"9",children:[jsxRuntimeExports.jsx(Breadcrumb,{}),jsxRuntimeExports.jsx(List,{})]}),jsxRuntimeExports.jsx(ActionBarContainer,{}),tt&&jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx(LoadingScreen$1,{}),children:jsxRuntimeExports.jsx(OnboardingTrash,{isOpen:rt,setIsOpen:nt,handleSavePreference:st})}),at&&jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx(LoadingScreen$1,{}),children:jsxRuntimeExports.jsx(TrashedResourceModal,{isOpen:at,onCancel:ut})}),lt&&jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx(LoadingScreen$1,{}),children:jsxRuntimeExports.jsx(ActionResourceDisableModal,{isOpen:lt,onCancel:dt})})]})]})}function Root(){const{init:_e}=useOdeClient();return _e?_e?jsxRuntimeExports.jsx(Layout$1,{children:jsxRuntimeExports.jsx(Explorer,{})}):null:jsxRuntimeExports.jsx(LoadingScreen$1,{position:!1})}const root=document.getElementById("root"),queryClient=new QueryClient({queryCache:new QueryCache({onError:_e=>{_e==="0090"&&window.location.replace("/auth/login")}}),defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}});createRoot(root).render(jsxRuntimeExports.jsx(reactExports.StrictMode,{children:jsxRuntimeExports.jsxs(QueryClientProvider,{client:queryClient,children:[jsxRuntimeExports.jsx(OdeClientProvider,{params:getAppParams(),children:jsxRuntimeExports.jsx(Root,{})}),jsxRuntimeExports.jsx(ReactQueryDevtools,{initialIsOpen:!1})]})}));export{it$1 as $,APP as A,Button$1 as B,useTrash as C,useIsTrash as D,useMoveItem as E,FormControl$1 as F,useSelectedFolders as G,Heading$1 as H,Image$1 as I,useQueryClient as J,useTreeData as K,Loading$1 as L,Modal$1 as M,useCurrentFolder as N,useCreateFolder as O,useUpdatefolder as P,FOLDER as Q,React$2 as R,SvgPlus$1 as S,TreeView$1 as T,Label$1 as U,VisuallyHidden$1 as V,FormText$1 as W,SvgCopy$1 as X,useActions as Y,isActionAvailable as Z,useTransition as _,useTranslation as a,SvgRafterUp$1 as a0,useFormControl as a1,TransportFrameworkFactory as a2,useResourceIds as a3,capitalizeFirstLetter as a4,RESOURCE as a5,SvgEdit$1 as a6,SvgDelete$1 as a7,AppIcon$1 as a8,useSearchContext as a9,useFolderIds as aa,useSpring as ab,useScrollToTop as ac,dayjs as ad,SvgOptions$1 as ae,SvgFiles$1 as af,SvgOneProfile$1 as ag,SvgGlobe$1 as ah,SvgUsers$1 as ai,useOdeIcons as aj,getDefaultExportFromCjs$1 as ak,reactDomExports as b,useStoreActions as c,SvgArrowRight$1 as d,useTheme as e,clsx as f,useSearchParams as g,useUser as h,useSelectedResources as i,jsxRuntimeExports as j,useUpdateResource as k,useShareResource as l,useHotToast as m,SvgBookmark$1 as n,odeServices as o,Alert$1 as p,Avatar$1 as q,reactExports as r,SvgRafterDown$1 as s,IconButton$1 as t,useOdeClient as u,SvgClose$1 as v,SvgSave$1 as w,SvgInfoCircle$1 as x,Input$1 as y,useDelete as z};
|
|
234
|
+
*/var yl=b,B8=a0;function U8(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var V8=typeof Object.is=="function"?Object.is:U8,H8=B8.useSyncExternalStore,q8=yl.useRef,Q8=yl.useEffect,W8=yl.useMemo,K8=yl.useDebugValue;Oy.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var s=q8(null);if(s.current===null){var o={hasValue:!1,value:null};s.current=o}else o=s.current;s=W8(function(){function l(m){if(!u){if(u=!0,c=m,m=r(m),i!==void 0&&o.hasValue){var p=o.value;if(i(p,m))return d=p}return d=m}if(p=d,V8(c,m))return p;var y=r(m);return i!==void 0&&i(p,y)?p:(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,i]);var a=H8(e,s[0],s[1]);return Q8(function(){o.hasValue=!0,o.value=a},[a]),K8(a),a};ky.exports=Oy;var Z8=ky.exports;const X8=js(Z8),{useSyncExternalStoreWithSelector:G8}=X8;function Y8(e,t=e.getState,n){const r=G8(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return b.useDebugValue(r),r}const bm=e=>{const t=typeof e=="function"?z8(e):e,n=(r,i)=>Y8(t,r,i);return Object.assign(n,t),n},J8=e=>e?bm(e):bm,Ry=async e=>{const t=await G.resource(e.app).searchContext(e);return{...t,folders:t.folders.filter(n=>!n.trashed)}},e6=async({searchParams:e,name:t,parentId:n})=>{const r={name:t,parentId:n,app:e.app,type:e.types[0]};return await G.resource(e.app).createFolder(r)},t6=async({folderId:e,searchParams:t,parentId:n,name:r})=>{const i={folderId:e,name:r,parentId:n,app:t.app,type:t.types[0]};return await G.resource(t.app).updateFolder(i)},n6=async({searchParams:e,resourceIds:t,useAssetIds:n,folderIds:r})=>{const i={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:r};return await G.resource(e.app).trashAll(i,n)},r6=async({searchParams:e,resourceIds:t,useAssetIds:n,folderIds:r})=>{const i={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:r};return await G.resource(e.app).deleteAll(i,n)},i6=async({searchParams:e,resourceIds:t,folderIds:n,useAssetIds:r})=>{const i={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:n};return await G.resource(e.app).restoreAll(i,r)},s6=async({searchParams:e,resourceIds:t,folderId:n,folderIds:r,useAssetIds:i})=>{const s={application:e.app,folderId:n,resourceIds:t,folderIds:r};return await G.resource(e.app).moveToFolder(s,i)},o6=async({searchParams:e,entId:t,shares:n})=>await G.share().saveRights(e.app,t,n),a6=async({searchParams:e,params:t})=>await G.resource(e.app).update(t),l6=async e=>await G.rights().sessionHasWorkflowRights(e),u6=({searchParams:e,assetId:t})=>G.resource(e.app).gotoView(t),c6=({searchParams:e,params:t})=>G.resource(e.app).create(t),d6=({searchParams:e,assetId:t})=>G.resource(e.app).gotoPrint(t),f6=async({searchParams:e,params:t})=>await G.resource(e.app).publish(t),h6=async()=>await G.conf().getPreference("showOnboardingTrash"),p6=async({onSuccess:e})=>{const t=await G.conf().savePreference("showOnboardingTrash",JSON.stringify({showOnboardingTrash:!1}));return e==null||e(),t};function Ef(e){return e.filter((t,n)=>e.indexOf(t)===n)}function Ps(e,t){var r,i;let n;return(t==null?void 0:t.id)===e?t:((r=t==null?void 0:t.children)!=null&&r.length&&((i=t==null?void 0:t.children)==null||i.every(s=>(n=Ps(e,s),n===void 0))),n)}function m6(e,t){var r;const n=Ps(e,t);return(r=n==null?void 0:n.folder)!=null&&r.ancestors?[...(n==null?void 0:n.folder.ancestors)||[],e]:e===et.BIN?[et.BIN]:[et.DEFAULT]}function Py(e,t){return t.id===e&&t.children?t.children.length>0:t.children?t.children.some(n=>Py(t.id,n)):!1}function qs(e,t){return jy(e,t)||e}function jy(e,t,n){var i;const r=t(e,n);if((i=r==null?void 0:r.children)!=null&&i.length){const s=[];for(const o of(r==null?void 0:r.children)||[]){const a=jy(o,t,r);a&&s.push(a)}return{...r,children:s}}return r}class wl{constructor(t){hr(this,"id");hr(this,"name");hr(this,"childNumber");hr(this,"section",!1);hr(this,"children",[]);this.folder=t,this.id=t.id,this.name=t.name,this.childNumber=t.childNumber}}const Ny=(e,t,n)=>qs(e,r=>(r.id===n&&(r.children=t==null?void 0:t.map(i=>new wl(i))),r)),{app:g6,types:v6,filters:y6,orders:w6}=Hs(),De=J8()((e,t)=>({filters:y6,orders:w6,searchConfig:{minLength:1},searchParams:{app:g6,types:v6,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:et.DEFAULT,name:Zt("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(({searchParams:r})=>({searchParams:{...r,...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();u6({searchParams:r,assetId:n.assetId})}catch(r){console.error("explorer open failed: ",r)}},printSelectedResource:()=>{try{const{searchParams:n,selectedResources:r,resourceIds:i}=t();if(r.length!==1)throw new Error("Cannot open more than 1 resource");const s=r.find(o=>o.id===i[0]);d6({searchParams:n,assetId:s.assetId})}catch(n){console.error("explorer print failed: ",n)}},publishApi:async(n,r)=>{const{searchParams:i}=t();return await f6({searchParams:i,params:r})},openFolder:({folderId:n,folder:r})=>{const{searchParams:i,treeData:s}=t(),o=i.filters.folder,a=m6(n,s),l=Ef([...a,n]);o!==n&&e(u=>({...u,folderIds:[],resourceIds:[],selectedNodesIds:l,currentFolder:r||{id:n},searchParams:{...i,filters:{...i.filters,folder:n},trashed:n===et.BIN}}))},foldTreeItem:()=>e(n=>({...n,status:"fold"})),unfoldTreeItem:async(n,r)=>{const{treeData:i,searchParams:s}=t();if(e(o=>({...o,status:"unfold"})),!Py(n,i)){await r.prefetchInfiniteQuery({queryKey:["prefetchContext",{folderId:n,trashed:!1}],queryFn:async()=>await Ry({...s,filters:{...s.filters,folder:n}})});const o=r.getQueryData(["prefetchContext",{folderId:n,trashed:!1}]);e(a=>{var l;return{...a,treeData:Ny(i,(l=o==null?void 0:o.pages[0])==null?void 0:l.folders,n||et.DEFAULT)}})}},selectTreeItem:n=>{const{treeData:r}=t(),{openFolder:i}=t().updaters,s=Ps(n,r);J4()(),e(a=>({...a,searchParams:{...a.searchParams,search:void 0},status:"select",selectedResources:[]})),i({folder:s,folderId:n})},gotoPreviousFolder:()=>{const{selectedNodesIds:n,treeData:r}=t(),{openFolder:i}=t().updaters,s=n.length;if(s<2)return;const o=Ps(n[s-2],r);i({folder:o,folderId:(o==null?void 0:o.id)||et.DEFAULT})},goToTrash:()=>e(n=>({...n,selectedNodesIds:[],selectedResources:[],resourceIds:[],folderIds:[],searchParams:{...n.searchParams,filters:{folder:et.BIN},trashed:!0},currentFolder:{id:et.BIN}}))}})),bt=()=>De(e=>e.searchParams),Cf=()=>De(e=>e.selectedNodesIds),si=()=>De(e=>e.treeData),x6=()=>De(e=>e.selectedFolders),S6=()=>De(e=>e.selectedResources),b6=()=>De(e=>e.searchConfig),Qs=()=>De(e=>e.folderIds),Ws=()=>De(e=>e.resourceIds),xl=()=>De(e=>e.selectedResources.map(t=>t.assetId)),Sl=()=>De(e=>e.selectedResources.filter(t=>t.assetId===t.id)),oi=()=>De(e=>e.currentFolder),Ne=()=>De(e=>e.updaters),ai=()=>{const e=oi();return(e==null?void 0:e.id)===et.BIN},Ty=()=>De(e=>e.resourceIsTrash),E6=()=>De(e=>e.resourceActionDisable),C6=()=>{const e=oi();return(e==null?void 0:e.id)==="default"},k6=()=>Cf().length>1,O6=()=>De(e=>e.status);function R6(){const{appCode:e}=At(),{t}=xe(["common",e]),n=Cf(),r=ai(),i=oi(),{gotoPreviousFolder:s}=Ne(),o=t("explorer.tree.trash"),a=t("explorer.filters.mine",{ns:e}),l=(i==null?void 0:i.name)||a;return f.jsx("div",{className:"py-16",children:n.length>1&&!r?f.jsxs("div",{className:"d-flex align-items-center gap-8",children:[f.jsx(zd,{icon:f.jsx(i3,{}),variant:"ghost",color:"tertiary","aria-label":t("back"),className:"ms-n16",onClick:s}),f.jsx("p",{className:"body py-8 text-truncate",children:f.jsx("strong",{children:l})})]}):f.jsx("h2",{className:"body py-8 fw-bold",children:r?o:a})})}function P6(e,{parentId:t,newFolder:n}){return qs(e,r=>{var i;if(r.id===t){const s=[...((i=r.folder)==null?void 0:i.ancestors)||[]],o=Ef([...s,r.id]);return{...r,children:[...r.children||[],new wl({...n,ancestors:o})]}}else return r})}function j6(e,{folders:t}){return qs(e,n=>{if(!t.includes(n.id))return n})}function N6(e,t){return t=t.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[.,\\/#!$%\\^&\\*;:{}=\-_`~()]/g,""),e=e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[.,\\/#!$%\\^&\\*;:{}=\-_`~()]/g,""),e.includes(t)}function T6(e,{destinationId:t,folders:n}){return qs(e,(r,i)=>{var s,o;if(t===r.id){const a=[...((s=r.folder)==null?void 0:s.ancestors)||[]],l=Ef([...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=Ps(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!==(i==null?void 0:i.id)?void 0:r})}function _6(e,{folderId:t,newFolder:n}){return qs(e,r=>r.id===t?new wl(n):r)}const{actions:Em,app:A6}=Hs(),_y=()=>Dd({queryKey:["actions"],queryFn:async()=>{const e=Em.map(n=>n.workflow);return await l6(e)},select:e=>Em.map(t=>({...t,available:e[t.workflow]}))}),I6=()=>{const{hotToast:e}=It(Lt),{appCode:t}=At(),{t:n}=xe(),r=lt(),i=bt(),s=oi(),o=si(),{setTreeData:a,setSearchParams:l,setSearchConfig:u}=Ne(),{filters:c,trashed:d,search:h}=i,m=["context",{folderId:c.folder,filters:c,trashed:d,search:h}];return ZS({queryKey:m,queryFn:async({pageParam:p=0})=>await Ry({...i,pagination:{...i.pagination,startIdx:p}}),onError(p){typeof p=="string"&&e.error(n(p))},onSuccess:async p=>{var x,g,v,w;await r.cancelQueries({queryKey:m});const y=[...((x=p==null?void 0:p.pages[0])==null?void 0:x.folders)??[]];(g=p==null?void 0:p.pages[0])!=null&&g.folders&&(p.pages[0].folders=p.pages[0].folders.filter(S=>i.search?N6(S.name,i.search.toString()):!0)),(v=p==null?void 0:p.pages[0])!=null&&v.searchConfig&&u(p.pages[0].searchConfig),(s==null?void 0:s.id)==="default"?a({id:et.DEFAULT,section:!0,children:y.map(S=>new wl(S)),name:n("explorer.filters.mine",{ns:t})}):a(Ny(o,y,i.filters.folder||et.DEFAULT)),l({...i,pagination:(w=p==null?void 0:p.pages[(p==null?void 0:p.pages.length)-1])==null?void 0:w.pagination})},retry:!1,getNextPageParam:p=>p.pagination.startIdx+p.pagination.pageSize})},Lk=()=>{const{hotToast:e}=It(Lt),t=lt(),n=bt(),r=si(),i=Qs(),s=xl(),o=Ws(),a=Sl().length>0,l=a?s:o,{clearSelectedItems:u,clearSelectedIds:c,setTreeData:d,setSearchParams:h}=Ne(),{filters:m,trashed:p}=n,y=["context",{folderId:m.folder,filters:m,trashed:p}];return fn({mutationFn:async()=>await n6({searchParams:n,folderIds:i,resourceIds:l,useAssetIds:a}),onError(x){typeof x=="string"&&e.error(Zt(x))},onSuccess:async x=>{if(await t.cancelQueries({queryKey:y}),t.getQueryData(y))return t.setQueryData(y,v=>{var w;if(v){const S={...v,pages:v==null?void 0:v.pages.map(k=>{var O;return{...k,folders:k.folders.filter(R=>!i.includes(R.id)),pagination:{...k.pagination,maxIdx:((O=k==null?void 0:k.pagination)==null?void 0:O.maxIdx)-x.resources.length},resources:k.resources.filter(R=>a?!s.includes(R.assetId):!l.includes(R.id))}})},C=j6(r,{folders:i});return d(C),h({...n,pagination:{...n.pagination,maxIdx:((w=n.pagination)==null?void 0:w.maxIdx)-x.resources.length}}),S}})},onSettled:()=>{u(),c()}})},L6=()=>{const{hotToast:e}=It(Lt),t=lt(),n=bt(),r=Qs(),i=xl(),s=Ws(),o=Sl().length>0,a=o?i:s,{setFolderIds:l,setResourceIds:u,setSelectedResources:c,setSelectedFolders:d}=Ne(),{filters:h,trashed:m}=n,p=["context",{folderId:h.folder,filters:h,trashed:m}];return fn({mutationFn:async()=>await i6({searchParams:n,folderIds:r,resourceIds:a,useAssetIds:o}),onError(y){typeof y=="string"&&e.error(Zt(y))},onSuccess:async()=>{if(await t.cancelQueries({queryKey:p}),t.getQueryData(p))return t.setQueryData(p,x=>{if(x)return{...x,pages:x==null?void 0:x.pages.map(g=>({...g,folders:g.folders.filter(v=>!r.includes(v.id)),resources:g.resources.filter(v=>o?!i.includes(v.assetId):!a.includes(v.id))}))}})},onSettled:()=>{u([]),c([]),l([]),d([])}})},Mk=()=>{const{hotToast:e}=It(Lt),t=lt(),n=bt(),r=Qs(),i=xl(),s=Ws(),o=Sl().length>0,a=o?i:s,{clearSelectedItems:l,clearSelectedIds:u}=Ne(),{filters:c,trashed:d}=n,h=["context",{folderId:c.folder,filters:c,trashed:d}];return fn({mutationFn:async()=>await r6({searchParams:n,folderIds:r,resourceIds:a,useAssetIds:o}),onError(m){typeof m=="string"&&e.error(Zt(m))},onSuccess:async()=>{if(await t.cancelQueries({queryKey:h}),t.getQueryData(h))return t.setQueryData(h,p=>{if(p)return{...p,pages:p==null?void 0:p.pages.map(x=>({...x,folders:x.folders.filter(g=>!r.includes(g.id)),resources:x.resources.filter(g=>o?!i.includes(g.assetId):!a.includes(g.id))}))}})},onSettled:()=>{l(),u()}})},Dk=()=>{const{hotToast:e}=It(Lt),t=lt(),n=bt(),r=si(),i=Qs(),s=xl(),o=Ws(),a=Sl().length>0,l=a?s:o,{clearSelectedIds:u,clearSelectedItems:c,setTreeData:d,setSearchParams:h}=Ne(),{filters:m,trashed:p}=n,y=["context",{folderId:m.folder,filters:m,trashed:p}];return fn({mutationFn:async x=>await s6({searchParams:n,folderId:x,folderIds:i,resourceIds:l,useAssetIds:a}),onError(x){typeof x=="string"&&e.error(Zt(x))},onSuccess:async(x,g)=>{if(t.getQueryData(y))return t.setQueryData(y,w=>{var S;if(w){const C=T6(r,{destinationId:g,folders:i}),k={...w,pages:w==null?void 0:w.pages.map(O=>{var R;return{...O,folders:O.folders.filter(A=>!i.includes(A.id)),pagination:{...O.pagination,maxIdx:((R=O.pagination)==null?void 0:R.maxIdx)-x.resources.length},resources:O.resources.filter(A=>a?!s.includes(A.assetId):!l.includes(A.id))}})};return d(C),h({...n,pagination:{...n.pagination,maxIdx:((S=n.pagination)==null?void 0:S.maxIdx)-x.resources.length}}),k}})},onSettled:()=>{c(),u()}})},Fk=()=>{const{hotToast:e}=It(Lt),t=lt(),n=bt(),r=si(),{setTreeData:i}=Ne(),{filters:s,trashed:o}=n,a=["context",{folderId:s.folder,filters:s,trashed:o}];return fn({mutationFn:async({name:l,parentId:u})=>await e6({searchParams:n,name:l,parentId:u}),onError(l){typeof l=="string"&&e.error(Zt(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]}))},p=P6(r,{parentId:u.parentId,newFolder:d});return i(p),m}})}})},$k=()=>{const{hotToast:e}=It(Lt),t=lt(),n=bt(),r=si(),{setFolderIds:i,setSelectedFolders:s,setTreeData:o}=Ne(),{filters:a,trashed:l}=n,u=["context",{folderId:a.folder,filters:a,trashed:l}];return fn({mutationFn:async({folderId:c,name:d,parentId:h})=>await t6({searchParams:n,folderId:c,parentId:h,name:d}),onError(c){typeof c=="string"&&e.error(Zt(c))},onSuccess:async(c,d)=>{if(await t.cancelQueries({queryKey:u}),t.getQueryData(u))return t.setQueryData(u,m=>{if(m){const p={...m,pages:m==null?void 0:m.pages.map(x=>({...x,folders:x.folders.map(g=>g.id===c.id?{...c,parentId:d.parentId,rights:g.rights}:g)}))},y=_6(r,{folderId:d.folderId,newFolder:c});return o(y),p}})},onSettled:()=>{i([]),s([])}})},zk=()=>{const{hotToast:e}=It(Lt),t=lt(),n=bt(),{setResourceIds:r,setSelectedResources:i}=Ne(),{filters:s,trashed:o}=n,a=["context",{folderId:s.folder,filters:s,trashed:o}];return fn({mutationFn:async({entId:l,shares:u})=>await o6({searchParams:n,entId:l,shares:u}),onError(l){typeof l=="string"&&e.error(Zt(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 p=[`creator:${m.creatorId}`];return(u==null?void 0:u.shares.length)>=1&&(p=[...p,...u.shares.flatMap(y=>y.actions.map(x=>`${y.type}:${y.id}:${x.id}`))]),{...m,rights:p}}else return m})}))}})},onSettled:()=>{r([]),i([])}})},Bk=()=>{const{hotToast:e}=It(Lt),t=lt(),n=bt(),{filters:r,trashed:i}=n,s=["context",{folderId:r.folder,filters:r,trashed:i}];return fn({mutationFn:async o=>await a6({searchParams:n,params:o}),onError(o){typeof o=="string"&&e.error(Zt(o))},onSuccess:async(o,a)=>{if(await t.cancelQueries({queryKey:s}),t.getQueryData(s))return t.setQueryData(s,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:p,description:y,slug:x,...g}=a;return{...d,...g,name:h,thumbnail:m,public:p,description:y,slug:x}}else return d})}))}})}})},Uk=()=>{const{hotToast:e}=It(Lt),t=lt(),n=bt(),{user:r}=$d(),i=["context",{folderId:n.filters.folder,filters:n.filters,trashed:n.trashed}];return fn({mutationFn:async s=>await c6({searchParams:n,params:s}),onError(s){typeof s=="string"&&e.error(Zt(s))},onSuccess:async(s,o)=>{var u,c,d;await t.cancelQueries({queryKey:i});const a=t.getQueryData(i),l={...o,thumbnail:o.thumbnail,application:A6,assetId:s._id||s.entId||"",id:s._id||s.entId||"",creatorId:r==null?void 0:r.userId,creatorName:r==null?void 0:r.username,createdAt:Date.now(),modifiedAt:((u=s.modified)==null?void 0:u.$date)||"",modifierId:((c=s.author)==null?void 0:c.userId)||"",modifierName:((d=s.author)==null?void 0:d.username)||"",updatedAt:Date.now(),trashed:!1,rights:[`creator:${r==null?void 0:r.userId}`]};if(a)return t.setQueryData(i,h=>{if(h)return{...h,pages:h==null?void 0:h.pages.map(m=>({...m,resources:[l,...m.resources]}))}})}})},{trashActions:M6}=Hs();function Ay(){const[e,t]=b.useState(!1),[n,r]=b.useState("void"),[i,s]=b.useState(),{t:o}=xe(),{hotToast:a}=It(Lt),l=oi(),u=Ws(),c=S6(),d=x6(),h=Qs(),m=ai(),p=L6(),y=Ty(),{openResource:x,printSelectedResource:g,openFolder:v,clearSelectedItems:w,clearSelectedIds:S}=Ne(),{data:C}=_y();b.useEffect(()=>{if(u.length===0&&h.length===0){t(!1);return}if(y){t(!1);return}t(!0)},[u,h]);async function k(K){var ie;switch((ie=document.getElementById("root"))==null||ie.setAttribute("aria-hidden","true"),s(K),K.id){case $e.OPEN:return u.length>0?x(c[0]):v({folder:d[0],folderId:d[0].id});case $e.MOVE:return r("move");case $e.PRINT:return g();case $e.DELETE:return r("delete");case $e.RESTORE:return await A();case $e.PUBLISH:return r("publish");case $e.UPD_PROPS:case"edit":return he();case $e.SHARE:return r("share");default:throw Error(`Unknown action: ${K.id}`)}}function O(K){const ie=u.length+h.length,ge=u.length===1||h.length===1,Fe=ie===1,Mt=h.length===0;switch(K.id){case $e.OPEN:return Fe;case $e.MANAGE:return ge;case $e.PUBLISH:return ge&&Mt;case $e.UPD_PROPS:return ge&&Mt;case $e.SHARE:return Mt&≥case $e.PRINT:return ge&&Mt;case"edit":return Fe;default:return!0}}function R(){return!0}async function A(){try{if(m)await p.mutate(),a.success(o("explorer.trash.toast"));else throw new Error("Cannot restore untrashed resources");I()}catch(K){console.error(K)}}function I(){var K;r("void"),i!=null&&i.id&&((K=document.getElementById(i==null?void 0:i.id))==null||K.focus())}const M=K=>()=>{n===K&&(I(),w(),S())},z=M("move"),B=M("move"),E=M("delete"),P=M("delete"),L=M("publish"),F=M("publish"),j=M("edit_folder"),N=M("edit_folder"),$=M("edit_resource"),W=M("edit_resource"),H=M("share"),Ye=M("share");function he(){u&&u.length>0?r("edit_resource"):r("edit_folder")}function J(K){return K.id==="edit"&&h.length>0?"explorer.rename":`explorer.actions.${K.id}`}return{onRestore:A,actions:m?M6:C,selectedElement:[...c,...d],currentFolderId:l==null?void 0:l.id,overrideLabel:J,handleClick:k,isActivable:m?R:O,isActionBarOpen:e,isMoveModalOpen:n==="move",onMoveCancel:z,onMoveSuccess:B,isDeleteModalOpen:n==="delete",onDeleteCancel:P,onDeleteSuccess:E,isPublishModalOpen:n==="publish",onPublishCancel:F,onPublishSuccess:L,isEditFolderOpen:n==="edit_folder",onEditFolderCancel:N,onEditFolderSuccess:j,isEditResourceOpen:n==="edit_resource",onEditResourceCancel:W,onEditResourceSuccess:$,isShareResourceOpen:n==="share",onShareResourceCancel:Ye,onShareResourceSuccess:H,onClearActionBar:I}}function D6({roles:e,rights:t,action:n}){const[r,i]=b.useState(!1),{user:s}=$d(),o=ai();b.useEffect(()=>{u()},[e,t]);const a=async function(c){const d=c instanceof Array?c:[c];if(e instanceof Array){const h=await G.rights().sessionHasAtLeastOneResourceRight(e,d);i(h)}else{const h=await G.rights().sessionHasResourceRight(e,d);i(h)}},l=async function(c){if(e instanceof Array){const d=await G.rights().sessionHasAtLeastOneResourceRightForEachList(e,c);i(d)}else{const d=await G.rights().sessionHasResourceRightForEachList(e,c);i(d)}},u=async function(){var c,d,h;if(e===void 0){i(!0);return}if(o&&((d=(c=t[0])==null?void 0:c.trashedBy)!=null&&d.includes(s==null?void 0:s.userId))&&n==="restore"&&!((h=t[0])!=null&&h.trashed)){i(!0);return}if(t instanceof Array)if(t.length>0)if(typeof t[0]=="string")await a(t);else{const m=t.map(p=>p.rights);await l(m)}else i(!1);else typeof t=="string"?await a(t):await a(t.rights)};return{visible:r,refreshState:u}}function F6({resourceRights:e,roleExpected:t,action:n,children:r,renderWhenForbidden:i}){const{t:s}=xe(),{overrideLabel:o}=Ay(),{visible:a}=D6({roles:t,rights:e,action:n==null?void 0:n.id}),{setResourceActionDisable:l}=Ne(),u=ai();return a?f.jsx(f.Fragment,{children:r}):i?i():u&&!a?f.jsx(ri,{type:"button",color:"primary",variant:"filled",onClick:()=>{l(!0)},children:s(o(n))}):f.jsx(f.Fragment,{})}const $6=b.lazy(async()=>await we(()=>import("./ShareResourceModal.js"),["ShareResourceModal.js","Heading.js","Tooltip.js"])),z6=b.lazy(async()=>await we(()=>import("./DeleteModal.js"),[])),B6=b.lazy(async()=>await we(()=>import("./MoveModal.js"),[])),U6=b.lazy(async()=>await we(()=>import("./EditFolderModal.js"),["EditFolderModal.js","index.esm.js"])),V6=b.lazy(async()=>await we(()=>import("./EditResourceModal.js"),["EditResourceModal.js","Heading.js","index.esm.js","TextArea.js"])),H6=b.lazy(async()=>await we(()=>import("./PublishModal.js"),["PublishModal.js","index.esm.js","Heading.js","TextArea.js"]));function q6(){const{t:e}=xe(),{actions:t,selectedElement:n,isMoveModalOpen:r,isDeleteModalOpen:i,isPublishModalOpen:s,isActionBarOpen:o,isEditFolderOpen:a,overrideLabel:l,onEditFolderCancel:u,onEditFolderSuccess:c,isEditResourceOpen:d,onEditResourceCancel:h,onEditResourceSuccess:m,isShareResourceOpen:p,onShareResourceCancel:y,onShareResourceSuccess:x,onMoveCancel:g,onMoveSuccess:v,onDeleteCancel:w,onDeleteSuccess:S,onPublishCancel:C,onPublishSuccess:k,isActivable:O,handleClick:R}=Ay(),A=ul(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:[A((I,M)=>M&&f.jsx(Rs.div,{className:"position-fixed bottom-0 start-0 end-0 z-3",style:I,children:f.jsx(e3,{children:t==null?void 0:t.filter(z=>z.available&&z.target==="actionbar").map(z=>O(z)&&f.jsx(F6,{resourceRights:n,roleExpected:z.right,action:z,children:f.jsx(ri,{id:z.id,type:"button",color:"primary",variant:"filled",onClick:()=>{R(z)},children:e(l(z))},z.id)},z.id))})})),f.jsxs(b.Suspense,{fallback:f.jsx(Ve,{}),children:[r&&f.jsx(B6,{isOpen:r,onCancel:g,onSuccess:v}),i&&f.jsx(z6,{isOpen:i,onCancel:w,onSuccess:S}),s&&f.jsx(H6,{isOpen:s,onCancel:C,onSuccess:k}),a&&f.jsx(U6,{edit:!0,isOpen:a,onCancel:u,onSuccess:c}),d&&f.jsx(V6,{edit:!0,isOpen:d,onCancel:h,onSuccess:m}),p&&f.jsx($6,{isOpen:p,onCancel:y,onSuccess:x})]})]})}function Q6(e){return e.charAt(0).toUpperCase()+e.slice(1)}const W6=()=>{var a;const{user:e}=At(),t=Q6(Hs().app),n=(a=e.apps.find(l=>l.isExternal&&l.address.includes("library")&&l.name.includes("library")))==null?void 0:a.address.split("?");let r=n==null?void 0:n[0];r!=null&&r.endsWith("/")||(r=`${r}/`);const i=n==null?void 0:n[1],s=`application%5B0%5D=${t}&page=1&sort_field=views&sort_order=desc`;return{libraryUrl:`${r}search/?${i}&${s}`}},K6=b.lazy(async()=>await we(()=>import("./EmptyScreenApp.js"),["EmptyScreenApp.js","EmptyScreen.js","Heading.js"])),Z6=b.lazy(async()=>await we(()=>import("./EmptyScreenSearch.js"),["EmptyScreenSearch.js","EmptyScreen.js","Heading.js"])),X6=b.lazy(async()=>await we(()=>import("./EmptyScreenError.js"),["EmptyScreenError.js","EmptyScreen.js","Heading.js"])),G6=b.lazy(async()=>await we(()=>import("./EmptyScreenNoContentInFolder.js"),["EmptyScreenNoContentInFolder.js","EmptyScreen.js","Heading.js"])),Y6=b.lazy(async()=>await we(()=>import("./EmptyScreenTrash.js"),["EmptyScreenTrash.js","EmptyScreen.js","Heading.js"])),J6=b.lazy(async()=>await we(()=>import("./FoldersList.js"),["FoldersList.js","Card.js","Tooltip.js"])),ek=b.lazy(async()=>await we(()=>import("./ResourcesList.js"),["ResourcesList.js","Card.js","Tooltip.js"])),tk=()=>{const e=C6(),t=ai(),n=k6(),r=bt(),{data:i,isError:s,isLoading:o,isFetching:a,fetchNextPage:l}=I6(),u=(i==null?void 0:i.pages[0].folders.length)===0,c=(i==null?void 0:i.pages[0].resources.length)===0,d=u&&c;return s?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(X6,{})}):r.search&&d?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(Z6,{})}):!d&&!o?f.jsxs(b.Suspense,{fallback:f.jsx(Ve,{}),children:[f.jsx(J6,{data:i,isFetching:a}),f.jsx(ek,{data:i,isFetching:a,fetchNextPage:l})]}):e&&d?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(K6,{})}):n&&d&&!t?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(G6,{})}):t&&(i==null?void 0:i.pages[0].resources.length)===0?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(Y6,{})}):null};function nk({isOpen:e,onCancel:t=()=>({})}){const{t:n}=xe();return Ms.createPortal(f.jsxs(kn,{isOpen:e,onModalClose:t,id:"trash_action_disable_resource",children:[f.jsx(kn.Header,{onModalClose:()=>t(),children:n("explorer.trash.action.modal.title")}),f.jsx(kn.Body,{children:f.jsx("p",{className:"body",children:n("explorer.trash.action.modal.text")})}),f.jsx(kn.Footer,{children:f.jsx(ri,{color:"primary",onClick:t,type:"button",variant:"outline",children:n("close")})})]}),document.getElementById("portal"))}const rk=()=>{const[e,t]=b.useState(""),n=G4(e,500),r=b6(),i=O6(),s=bt(),{setSearchParams:o}=Ne(),a=c=>{const d=c.target.value;t(d)},l=c=>{(c.key==="Enter"||c.key==="Return")&&(o({search:n||void 0}),c.preventDefault())},u=c=>{o({search:n||void 0}),c.preventDefault()};return b.useEffect(()=>{const d=n.length==0||n.length>=r.minLength?{search:n||void 0}:{};o({...s,...d,filters:{...s.filters,folder:void 0}})},[n,r.minLength]),b.useEffect(()=>{i==="select"&&t("")},[i]),{inputSearch:e,handleInputSearchChange:a,handleKeyPress:l,handleSearchSubmit:u}},ik=()=>{const[e,t]=b.useState([]),n=oi(),{setSearchParams:r}=Ne();return b.useEffect(()=>{const i=()=>e.includes(1)?!0:void 0,s=()=>e.includes(2)?!0:void 0,o=()=>e.includes(7)?!0:void 0;r({filters:{owner:i(),public:o(),shared:s(),folder:n?n.id:"default"}})},[n,r,e]),[e,t]},sk=({options:e})=>{const{appCode:t}=At(),{t:n}=xe(),[r,i]=ik(),{inputSearch:s,handleInputSearchChange:o,handleKeyPress:a,handleSearchSubmit:l}=rk();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(Mc,{id:"search",className:"input-group",children:[f.jsx(Iv,{type:"search",placeholder:n("explorer.label.search",{ns:t}),size:"lg",noValidationIcon:!0,value:s,onChange:o,onKeyDown:a}),f.jsx(F0,{type:"submit","aria-label":n("explorer.label.search",{ns:t}),onClick:l})]}),f.jsx(QE,{content:f.jsx(KE,{model:r,onChange:u=>i(u),options:e}),trigger:f.jsx(WE,{icon:f.jsx(y3,{width:20}),title:n("Filtres "),variant:"ghost",badgeContent:r.length>0?r.length:void 0})})]})},ok=({id:e,selected:t,onSelect:n})=>{const{t:r}=xe();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(f3,{width:"20",height:"20"}),f.jsx("span",{children:r("explorer.tree.trash")})]})})})})})})})},ak=b.lazy(async()=>await we(()=>import("./EditFolderModal.js"),["EditFolderModal.js","index.esm.js"])),lk=()=>{const e=lt(),{t}=xe(),[n,r]=X4(),i=si(),s=ai(),o=Cf(),{goToTrash:a,selectTreeItem:l,unfoldTreeItem:u,foldTreeItem:c}=Ne(),d=async h=>{await u(h,e)};return i?f.jsxs(f.Fragment,{children:[f.jsx(aC,{data:i,selectedNodesIds:o,onTreeItemSelect:l,onTreeItemFold:c,onTreeItemUnfold:d}),f.jsx(ok,{id:et.BIN,selected:s,onSelect:a}),f.jsx("div",{className:"d-grid my-16",children:f.jsx(ri,{disabled:s,type:"button",color:"primary",variant:"outline",leftIcon:f.jsx(P3,{}),onClick:r,children:t("explorer.folder.new")})}),f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:n&&f.jsx(ak,{edit:!1,isOpen:n,onSuccess:r,onCancel:r})})]}):null},uk=()=>{const e=E6(),{clearSelectedIds:t,setResourceActionDisable:n,clearSelectedItems:r}=Ne();return{isActionDisableModalOpen:e,onActionDisableCancel:()=>{t(),r(),n(!1)}}},ck=()=>{const[e,t]=b.useState(!1),[n,r]=b.useState(!0);return b.useEffect(()=>{(async()=>{const s=await h6();if(s){t(JSON.parse(s==null?void 0:s.showOnboardingTrash));return}t(!0)})()},[]),{isOnboardingTrash:e,isOpen:n,handleSavePreference:async()=>{await p6({onSuccess:()=>r(!1)})},setIsOpen:r}},dk=()=>{const e=Ty(),{clearSelectedIds:t,setResourceIsTrash:n,clearSelectedItems:r}=Ne();return{isTrashedModalOpen:e,onTrashedCancel:()=>{t(),r(),n(!1)}}},fk=({workflow:e,actions:t})=>{const n=t==null?void 0:t.filter(r=>r.id===e&&r.available);return n&&n.length>0},hk=b.lazy(async()=>await we(()=>import("./OnboardingTrash.js"),[])),pk=b.lazy(async()=>await we(()=>import("./AppAction.js"),[])),mk=b.lazy(async()=>await we(()=>import("./Library.js"),[])),gk=b.lazy(async()=>await we(()=>import("./TrashedResourceModal.js"),[]));function vk(){const{currentApp:e,appCode:t}=At(),{isOnboardingTrash:n,isOpen:r,setIsOpen:i,handleSavePreference:s}=ck(),{data:o}=_y(),{isTrashedModalOpen:a,onTrashedCancel:l}=dk(),{isActionDisableModalOpen:u,onActionDisableCancel:c}=uk();n4();const d=o==null?void 0:o.find(y=>y.id==="publish"),{libraryUrl:h}=W6(),{t:m}=xe(),p=[{label:m("explorer.filter.owner",{ns:t}),value:1},{label:m("explorer.filter.shared",{ns:t}),value:2},...(e==null?void 0:e.displayName)==Eo.EXERCIZER?[{label:"Exercices interactifs",value:3}]:[],...(e==null?void 0:e.displayName)==Eo.EXERCIZER?[{label:"Exercices à rendre",value:4}]:[],...(e==null?void 0:e.displayName)=="pages"?[{label:"Projets publics",value:5}]:[],...(e==null?void 0:e.displayName)=="pages"?[{label:"Projets internes",value:6}]:[],...(e==null?void 0:e.displayName)==Eo.BLOG?[{label:m("explorer.filter.public",{ns:t}),value:7}]:[]];return f.jsxs(f.Fragment,{children:[f.jsx(B3,{render:()=>fk({workflow:"create",actions:o})?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(pk,{})}):null,children:f.jsx(q3,{app:e})}),f.jsxs(Wi,{className:"flex-grow-1",children:[f.jsxs(Wi.Col,{sm:"3",lg:"2",xl:"3",className:"border-end pt-16 pe-16 d-none d-lg-block",as:"aside",children:[f.jsx(lk,{}),(d==null?void 0:d.available)&&h&&f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(mk,{url:h})})]}),f.jsxs(Wi.Col,{sm:"4",md:"8",lg:"6",xl:"9",children:[f.jsx(sk,{options:p}),f.jsx(R6,{}),f.jsx(tk,{})]}),f.jsx(q6,{}),n&&f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(hk,{isOpen:r,setIsOpen:i,handleSavePreference:s})}),a&&f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(gk,{isOpen:a,onCancel:l})}),u&&f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(nk,{isOpen:u,onCancel:c})})]})]})}function yk(){const{init:e}=At();return e?e?f.jsx(F8,{children:f.jsx(vk,{})}):null:f.jsx(Ve,{position:!1})}const wk=document.getElementById("root"),xk=new ww({queryCache:new Ym({onError:e=>{e==="0090"&&window.location.replace("/auth/login")}}),defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}});Cy(wk).render(f.jsx(b.StrictMode,{children:f.jsxs(MS,{client:xk,children:[f.jsx(GS,{params:Hs(),children:f.jsx(t4,{children:f.jsx(yk,{})})}),f.jsx($8,{initialIsOpen:!1})]})}));export{_y as $,Lt as A,ri as B,KE as C,Mk as D,Lk as E,Mc as F,ai as G,Dk as H,R0 as I,x6 as J,Ne as K,Ve as L,kn as M,lt as N,si as O,oi as P,Fk as Q,Am as R,P3 as S,aC as T,$k as U,ji as V,XE as W,ZE as X,Rk as Y,Uk as Z,we as _,Ms as a,fk as a0,cf as a1,Q6 as a2,Hs as a3,QE as a4,WE as a5,Pk as a6,f3 as a7,xc as a8,Qs as a9,Ik as aa,J4 as ab,Rs as ac,He as ad,js as ae,Ws as af,jk as ag,Nk as ah,Ak as ai,l5 as aj,Tk as ak,v0 as al,Ob as am,Ya as b,X4 as c,At as d,Ck as e,Fd as f,Z as g,bt as h,$d as i,f as j,G4 as k,S6 as l,Bk as m,zk as n,It as o,kk as p,wp as q,b as r,wc as s,zd as t,xe as u,Ok as v,_k as w,E3 as x,Iv as y,H3 as z};
|